diff --git a/.gitignore b/.gitignore index 6e6685321ea3998b8cad97000bdb9b66cb9b6ce4..d82a8f13b15e1d016405c288035aee0c4d7d2d17 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.pyc /conf/ /logs/ -/results/ \ No newline at end of file +/results/ +.idea \ No newline at end of file diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..59f779429f7bb90fcb7580ad5ea9f94f62032020 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,190 @@ +stages: + - link + - sync + - test + - notice + +before_script: + - git config --global http.lowSpeedLimit 0 + - git config --global http.lowSpeedTime 999999 + - git config --global http.postBuffer 10485760000 + +variables: + GIT_DEPTH: 1 + +workflow: + rules: + - if: $CI_PROJECT_NAMESPACE == "oepkgs" && $CI_PIPELINE_SOURCE != "merge_request_event" + when: always + +check_json_data_format: + 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 x86_64 + - cd .. + - os_test mugen check_json_data_format + only: + - branches + tags: + - docker_mugen_runner + +check_testcase_unique_in_testsuite: + 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 x86_64 + - cd .. + - os_test mugen check_testcase_unique_in_testsuite + only: + - branches + tags: + - docker_mugen_runner + +check_testsuite_name_is_src_name: + 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 x86_64 + - cd .. + - os_test mugen check_testsuite_name_is_src_name + only: + - branches + 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 diff --git a/suite2cases/389-ds-base.json b/suite2cases/389-ds-base.json index 248dc94a42ed5d91832f912e56cd3dce6e300819..3aa69b68d7b07bd6487a229f2adfe1ee5b2d5e7b 100644 --- a/suite2cases/389-ds-base.json +++ b/suite2cases/389-ds-base.json @@ -1,104 +1,106 @@ { "path": "$OET_PATH/testcases/cli-test/389-ds-base", + "cpu": 2, + "memory": 4, "cases": [ { - "name":"oe_test_dsconf_backend_02" + "name": "oe_test_dsconf_backend_02" }, { - "name":"oe_test_dsconf_backend_03" + "name": "oe_test_dsconf_backend_03" }, { - "name":"oe_test_dsconf_backend_04" + "name": "oe_test_dsconf_backend_04" }, { - "name":"oe_test_dsconf_chaining_01" + "name": "oe_test_dsconf_chaining_01" }, { - "name":"oe_test_dsconf_chaining_02" + "name": "oe_test_dsconf_chaining_02" }, { - "name":"oe_test_dsconf_config" + "name": "oe_test_dsconf_config" }, { - "name":"oe_test_dsconf_monitor" + "name": "oe_test_dsconf_monitor" }, { - "name":"oe_test_dsconf_plugin_01" + "name": "oe_test_dsconf_plugin_01" }, { - "name":"oe_test_dsconf_plugin_05" + "name": "oe_test_dsconf_plugin_05" }, { - "name":"oe_test_dsconf_plugin_06" + "name": "oe_test_dsconf_plugin_06" }, { - "name":"oe_test_dsconf_plugin_07" + "name": "oe_test_dsconf_plugin_07" }, { - "name":"oe_test_dsconf_pwpolicy" + "name": "oe_test_dsconf_pwpolicy" }, { - "name":"oe_test_dsconf_sasl" + "name": "oe_test_dsconf_sasl" }, { - "name":"oe_test_dsconf_schema_01" + "name": "oe_test_dsconf_schema_01" }, { - "name":"oe_test_dsconf_security_01" + "name": "oe_test_dsconf_security_01" }, { - "name":"oe_test_dsconf_security_02" + "name": "oe_test_dsconf_security_02" }, { - "name":"oe_test_dsconf_security_03" + "name": "oe_test_dsconf_security_03" }, { - "name":"oe_test_dsconf_security_04" + "name": "oe_test_dsconf_security_04" }, { - "name":"oe_test_dsconf_security_05" + "name": "oe_test_dsconf_security_05" }, { - "name":"oe_test_dsconf_security_06" + "name": "oe_test_dsconf_security_06" }, { - "name":"oe_test_dscreate" + "name": "oe_test_dscreate" }, { - "name":"oe_test_dsctl_01" + "name": "oe_test_dsctl_01" }, { - "name":"oe_test_dsctl_03" + "name": "oe_test_dsctl_03" }, { - "name":"oe_test_dsctl_04" + "name": "oe_test_dsctl_04" }, { - "name":"oe_test_dsctl_dsrc" + "name": "oe_test_dsctl_dsrc" }, { - "name":"oe_test_dsctl_tls" + "name": "oe_test_dsctl_tls" }, { - "name":"oe_test_dsidm_client_config" + "name": "oe_test_dsidm_client_config" }, { - "name":"oe_test_dsidm_group" + "name": "oe_test_dsidm_group" }, { - "name":"oe_test_dsidm_user" + "name": "oe_test_dsidm_user" }, { - "name":"oe_test_dbscan" + "name": "oe_test_dbscan" }, { - "name":"oe_test_ldclt" + "name": "oe_test_ldclt" }, { - "name":"oe_test_ns-slapd" + "name": "oe_test_ns-slapd" }, { - "name":"oe_test_readnsstate" + "name": "oe_test_readnsstate" } ] } \ No newline at end of file diff --git a/suite2cases/389-ds-base_1.4.3.20.json b/suite2cases/389-ds-base_1.4.3.20.json index 6248962e860a901a35a6f0c2d5a883adae84b39b..353144dc6e49fea17bda73296c6336b317153e96 100644 --- a/suite2cases/389-ds-base_1.4.3.20.json +++ b/suite2cases/389-ds-base_1.4.3.20.json @@ -1,194 +1,196 @@ { "path": "$OET_PATH/testcases/cli-test/389-ds-base", + "cpu": 2, + "memory": 4, "cases": [ { - "name":"oe_test_dsconf" + "name": "oe_test_dsconf" }, { - "name":"oe_test_dsconf_backend_01" + "name": "oe_test_dsconf_backend_01" }, { - "name":"oe_test_dsconf_backend_02" + "name": "oe_test_dsconf_backend_02" }, { - "name":"oe_test_dsconf_backend_03" + "name": "oe_test_dsconf_backend_03" }, { - "name":"oe_test_dsconf_backend_04" + "name": "oe_test_dsconf_backend_04" }, { - "name":"oe_test_dsconf_backend_05" + "name": "oe_test_dsconf_backend_05" }, { - "name":"oe_test_dsconf_backup" + "name": "oe_test_dsconf_backup" }, { - "name":"oe_test_dsconf_chaining_01" + "name": "oe_test_dsconf_chaining_01" }, { - "name":"oe_test_dsconf_chaining_02" + "name": "oe_test_dsconf_chaining_02" }, { - "name":"oe_test_dsconf_config" + "name": "oe_test_dsconf_config" }, { - "name":"oe_test_dsconf_monitor" + "name": "oe_test_dsconf_monitor" }, { - "name":"oe_test_dsconf_plugin_01" + "name": "oe_test_dsconf_plugin_01" }, { - "name":"oe_test_dsconf_plugin_02" + "name": "oe_test_dsconf_plugin_02" }, { - "name":"oe_test_dsconf_plugin_03" + "name": "oe_test_dsconf_plugin_03" }, { - "name":"oe_test_dsconf_plugin_04" + "name": "oe_test_dsconf_plugin_04" }, { - "name":"oe_test_dsconf_plugin_05" + "name": "oe_test_dsconf_plugin_05" }, { - "name":"oe_test_dsconf_plugin_06" + "name": "oe_test_dsconf_plugin_06" }, { - "name":"oe_test_dsconf_plugin_07" + "name": "oe_test_dsconf_plugin_07" }, { - "name":"oe_test_dsconf_pwpolicy" + "name": "oe_test_dsconf_pwpolicy" }, { - "name":"oe_test_dsconf_repl-agmt" + "name": "oe_test_dsconf_repl-agmt" }, { - "name":"oe_test_dsconf_repl-conflict_01" + "name": "oe_test_dsconf_repl-conflict_01" }, { - "name":"oe_test_dsconf_repl-conflict_02" + "name": "oe_test_dsconf_repl-conflict_02" }, { - "name":"oe_test_dsconf_repl-tasks" + "name": "oe_test_dsconf_repl-tasks" }, { - "name":"oe_test_dsconf_repl-winsync-agmt" + "name": "oe_test_dsconf_repl-winsync-agmt" }, { - "name":"oe_test_dsconf_replication" + "name": "oe_test_dsconf_replication" }, { - "name":"oe_test_dsconf_sasl" + "name": "oe_test_dsconf_sasl" }, { - "name":"oe_test_dsconf_schema_01" + "name": "oe_test_dsconf_schema_01" }, { - "name":"oe_test_dsconf_schema_02" + "name": "oe_test_dsconf_schema_02" }, { - "name":"oe_test_dsconf_schema_03" + "name": "oe_test_dsconf_schema_03" }, { - "name":"oe_test_dsconf_schema_04" + "name": "oe_test_dsconf_schema_04" }, { - "name":"oe_test_dsconf_security_01" + "name": "oe_test_dsconf_security_01" }, { - "name":"oe_test_dsconf_security_02" + "name": "oe_test_dsconf_security_02" }, { - "name":"oe_test_dsconf_security_03" + "name": "oe_test_dsconf_security_03" }, { - "name":"oe_test_dsconf_security_04" + "name": "oe_test_dsconf_security_04" }, { - "name":"oe_test_dsconf_security_05" + "name": "oe_test_dsconf_security_05" }, { - "name":"oe_test_dsconf_security_06" + "name": "oe_test_dsconf_security_06" }, { - "name":"oe_test_dscreate" + "name": "oe_test_dscreate" }, { - "name":"oe_test_dsctl_01" + "name": "oe_test_dsctl_01" }, { - "name":"oe_test_dsctl_02" + "name": "oe_test_dsctl_02" }, { - "name":"oe_test_dsctl_03" + "name": "oe_test_dsctl_03" }, { - "name":"oe_test_dsctl_04" + "name": "oe_test_dsctl_04" }, { - "name":"oe_test_dsctl_cockpit" + "name": "oe_test_dsctl_cockpit" }, { - "name":"oe_test_dsctl_dsrc" + "name": "oe_test_dsctl_dsrc" }, { - "name":"oe_test_dsctl_ldifgen" + "name": "oe_test_dsctl_ldifgen" }, { - "name":"oe_test_dsctl_tls" + "name": "oe_test_dsctl_tls" }, { - "name":"oe_test_dsidm" + "name": "oe_test_dsidm" }, { - "name":"oe_test_dsidm_account" + "name": "oe_test_dsidm_account" }, { - "name":"oe_test_dsidm_client_config" + "name": "oe_test_dsidm_client_config" }, { - "name":"oe_test_dsidm_group" + "name": "oe_test_dsidm_group" }, { - "name":"oe_test_dsidm_organizationalunit" + "name": "oe_test_dsidm_organizationalunit" }, { - "name":"oe_test_dsidm_posixgroup" + "name": "oe_test_dsidm_posixgroup" }, { - "name":"oe_test_dsidm_role" + "name": "oe_test_dsidm_role" }, { - "name":"oe_test_dsidm_user" + "name": "oe_test_dsidm_user" }, { - "name":"oe_test_service_dirsrv-snmp" + "name": "oe_test_service_dirsrv-snmp" }, { - "name":"oe_test_target_dirsrv" + "name": "oe_test_target_dirsrv" }, { - "name":"oe_test_dbscan" + "name": "oe_test_dbscan" }, { - "name":"oe_test_ds-logpipe" + "name": "oe_test_ds-logpipe" }, { - "name":"oe_test_ldclt" + "name": "oe_test_ldclt" }, { - "name":"oe_test_logconv" + "name": "oe_test_logconv" }, { - "name":"oe_test_ns-slapd" + "name": "oe_test_ns-slapd" }, { - "name":"oe_test_pwdhash" + "name": "oe_test_pwdhash" }, { - "name":"oe_test_readnsstate" + "name": "oe_test_readnsstate" }, { - "name":"oe_test_ds-replcheck" + "name": "oe_test_ds-replcheck" } ] } \ No newline at end of file diff --git a/suite2cases/CUnit.json b/suite2cases/CUnit.json new file mode 100644 index 0000000000000000000000000000000000000000..58a91bc87c5c399c490394ffb388ce8b3c46659a --- /dev/null +++ b/suite2cases/CUnit.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/CUnit", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_CUnit_install_and_remove_CUnit" + }, + { + "name": "oe_test_CUnit_install_and_remove_CUnit-devel" + }, + { + "name": "oe_test_CUnit_install_and_remove_CUnit-help" + }, + { + "name": "oe_test_CUnit_install_and_remove_CUnit-debugsource" + }, + { + "name": "oe_test_CUnit_install_and_remove_CUnit-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/Cython.json b/suite2cases/Cython.json new file mode 100644 index 0000000000000000000000000000000000000000..52429d0ef316b3cb4cac2656214b124fef3890ab --- /dev/null +++ b/suite2cases/Cython.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/Cython", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_Cython_install_and_remove_Cython" + }, + { + "name": "oe_test_Cython_install_and_remove_python3-Cython" + }, + { + "name": "oe_test_Cython_install_and_remove_Cython-debuginfo" + }, + { + "name": "oe_test_Cython_install_and_remove_Cython-debugsource" + }, + { + "name": "oe_test_Cython_install_and_remove_python2-Cython" + } + ] +} \ No newline at end of file diff --git a/suite2cases/Echarts.json b/suite2cases/Echarts.json index 936a452cf4eab7a79761d4893aad4c942f103373..ff6e79d2b3c82546f66818e4529a46e1260956f4 100644 --- a/suite2cases/Echarts.json +++ b/suite2cases/Echarts.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/Echarts", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_Echarts" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/FS_Device.json b/suite2cases/FS_Device.json index 25edac2c2bd0ae1553d5304d173a63723f8d97e2..6d2fb296bd29abb1be61f48f8679c68a69150ac7 100644 --- a/suite2cases/FS_Device.json +++ b/suite2cases/FS_Device.json @@ -1,7 +1,11 @@ { "path": "${OET_PATH}/testcases/system-test/fs-test/FS_Device", - "add disk": [20], + "add disk": [ + 20 + ], "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_check_dm_info" @@ -12,7 +16,9 @@ { "name": "oe_test_raid_auto_mount", "machine num": 2, - "add disk": [20] + "add disk": [ + 20 + ] }, { "name": "oe_test_raid_compress" @@ -59,7 +65,9 @@ { "name": "oe_test_swap_auto_mount", "machine num": 2, - "add disk": [20] + "add disk": [ + 20 + ] }, { "name": "oe_test_swap_close", @@ -72,5 +80,4 @@ "name": "oe_test_swap_mkswap" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/FS_Directory.json b/suite2cases/FS_Directory.json index 8682c262074b23a2bfdce8cc17c344eacc5cc91f..eca937cdc4fb5f1442e9c23157b7b8c8c38d66fa 100644 --- a/suite2cases/FS_Directory.json +++ b/suite2cases/FS_Directory.json @@ -1,7 +1,11 @@ { "path": "${OET_PATH}/testcases/system-test/fs-test/FS_Directory", - "add disk": [20], + "add disk": [ + 20 + ], "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_FSIO_dir_access" @@ -104,5 +108,4 @@ "machine num": 2 } ] -} - +} \ No newline at end of file diff --git a/suite2cases/FS_Docker.json b/suite2cases/FS_Docker.json index f6cd796a9bff4cd63a92b18a62727ef8ba5f2805..01a55c9ca1dc1d8666607847457ee8723a0bbf6e 100644 --- a/suite2cases/FS_Docker.json +++ b/suite2cases/FS_Docker.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/system-test/fs-test/FS_Docker", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_docker_check_overlay2fs" @@ -32,5 +34,4 @@ "name": "oe_test_docker_write_upperdir" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/FS_File.json b/suite2cases/FS_File.json index 636636a5ea1b5cc964285588f581320b5aed3211..4b883d4a301382d319f177ed0c768f69441583ad 100644 --- a/suite2cases/FS_File.json +++ b/suite2cases/FS_File.json @@ -1,6 +1,10 @@ { "path": "${OET_PATH}/testcases/system-test/fs-test/FS_File", - "add disk": [20], + "add disk": [ + 20 + ], + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_FSIO_act_alias" @@ -122,6 +126,5 @@ { "name": "oe_test_FSIO_zip_unzip_overfs" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/FS_FileSystem.json b/suite2cases/FS_FileSystem.json index 22585aac595b463f4783263ad8806f8cfc4ada8f..b910e5247c663eea53d6fa69a7628bc398eecce5 100644 --- a/suite2cases/FS_FileSystem.json +++ b/suite2cases/FS_FileSystem.json @@ -1,7 +1,11 @@ { "path": "${OET_PATH}/testcases/system-test/fs-test/FS_FileSystem", - "add disk": [20], + "add disk": [ + 20 + ], "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_FSIO_change_fs" @@ -39,7 +43,9 @@ { "name": "oe_test_FSIO_mount_automount", "machine num": 2, - "add disk": [20] + "add disk": [ + 20 + ] }, { "name": "oe_test_FSIO_mount_block_dir" @@ -104,7 +110,9 @@ { "name": "oe_test_FSIO_mount_reboot", "machine num": 2, - "add disk": [20] + "add disk": [ + 20 + ] }, { "name": "oe_test_FSIO_mount_remount" @@ -190,12 +198,11 @@ { "name": "oe_test_FSIO_xfs_resize2fs" }, - { + { "name": "oe_test_FSIO_create_squashfs" - }, - { + }, + { "name": "oe_test_FSIO_mount_tmpfs" - } + } ] -} - +} \ No newline at end of file diff --git a/suite2cases/FS_IO.json b/suite2cases/FS_IO.json index 52e850cef60502c1efce5d6ec6afb9227a668fbf..58b0ce9a5acb30c72f370bc5f3ae3fafea19177d 100644 --- a/suite2cases/FS_IO.json +++ b/suite2cases/FS_IO.json @@ -1,6 +1,10 @@ { "path": "${OET_PATH}/testcases/system-test/fs-test/FS_IO", - "add disk": [20], + "add disk": [ + 20 + ], + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_FSIO_aio_cancel" @@ -129,5 +133,4 @@ "name": "oe_test_FSIO_truncate" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/FS_Negative.json b/suite2cases/FS_Negative.json index d10371a0b6e84d593fcfd9d0bf14fe0829141bc5..fcbe4ce04afd1ea8d05126953d2c60af38fbfcdb 100644 --- a/suite2cases/FS_Negative.json +++ b/suite2cases/FS_Negative.json @@ -1,7 +1,11 @@ { "path": "${OET_PATH}/testcases/system-test/fs-test/FS_Negative", - "add disk": [20], + "add disk": [ + 20 + ], "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_FSIO_boot_full_data" @@ -49,4 +53,4 @@ "name": "oe_test_FSIO_fread_larger_memsize" } ] -} +} \ No newline at end of file diff --git a/suite2cases/FS_iSula.json b/suite2cases/FS_iSula.json index 4753978dce31890f4e24c655ae4ba7b41f8f4b57..4079e9accc3d7d5e55e182d707736b94fbb7792d 100644 --- a/suite2cases/FS_iSula.json +++ b/suite2cases/FS_iSula.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/system-test/fs-test/FS_iSula", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_isula_check_overlay2fs" @@ -26,5 +28,4 @@ "name": "oe_test_isula_write_in_isula" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/GConf2.json b/suite2cases/GConf2.json new file mode 100644 index 0000000000000000000000000000000000000000..b006485467e1218f19c292842ebedafb8b3cee5c --- /dev/null +++ b/suite2cases/GConf2.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/GConf2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_GConf2_install_and_remove_GConf2" + }, + { + "name": "oe_test_GConf2_install_and_remove_GConf2-devel" + }, + { + "name": "oe_test_GConf2_install_and_remove_GConf2-debuginfo" + }, + { + "name": "oe_test_GConf2_install_and_remove_GConf2-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/GraphicsMagick.json b/suite2cases/GraphicsMagick.json index bbb401a088fa915af37904e6cec69fc27d5d37b8..f2bada20feaaa1da3e620fefb53c4bc01cdf3bd9 100644 --- a/suite2cases/GraphicsMagick.json +++ b/suite2cases/GraphicsMagick.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/GraphicsMagick", - "cases": [ - { - "name": "oe_test_GraphicsMagick" - } - ] + "path": "$OET_PATH/testcases/cli-test/GraphicsMagick", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_GraphicsMagick" + } + ] } \ No newline at end of file diff --git a/suite2cases/ImageMagick.json b/suite2cases/ImageMagick.json index 5395dd97ee67850e50525a8b4ac9e1c78f2e70e0..32e60fbff2e7ad4a8a0a191c44093449f9ffe70f 100644 --- a/suite2cases/ImageMagick.json +++ b/suite2cases/ImageMagick.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/ImageMagick", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ImageMagick_01" @@ -24,6 +27,30 @@ }, { "name": "oe_test_ImageMagick_08" + }, + { + "name": "oe_test_ImageMagick_install_and_remove_ImageMagick" + }, + { + "name": "oe_test_ImageMagick_install_and_remove_ImageMagick-perl" + }, + { + "name": "oe_test_ImageMagick_install_and_remove_ImageMagick-c++-devel" + }, + { + "name": "oe_test_ImageMagick_install_and_remove_ImageMagick-devel" + }, + { + "name": "oe_test_ImageMagick_install_and_remove_ImageMagick-help" + }, + { + "name": "oe_test_ImageMagick_install_and_remove_ImageMagick-c++" + }, + { + "name": "oe_test_ImageMagick_install_and_remove_ImageMagick-debuginfo" + }, + { + "name": "oe_test_ImageMagick_install_and_remove_ImageMagick-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/Imath.json b/suite2cases/Imath.json new file mode 100644 index 0000000000000000000000000000000000000000..63bca28a271e34cf5a19e5327d959019d950f060 --- /dev/null +++ b/suite2cases/Imath.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/Imath", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_Imath_install_and_remove_Imath" + }, + { + "name": "oe_test_Imath_install_and_remove_python3-Imath" + }, + { + "name": "oe_test_Imath_install_and_remove_Imath-devel" + }, + { + "name": "oe_test_Imath_install_and_remove_Imath-debuginfo" + }, + { + "name": "oe_test_Imath_install_and_remove_Imath-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/Kmesh.json b/suite2cases/Kmesh.json index 26705ea11142d7dfb59e713e2d34953fc6af3bd5..f3a8add533a6080a6eaf552de3cd2e67f0faf223 100644 --- a/suite2cases/Kmesh.json +++ b/suite2cases/Kmesh.json @@ -1,26 +1,28 @@ { - "path": "$OET_PATH/testcases/cli-test/Kmesh", - "cases": [ - { - "name": "oe_test_base_function" - }, - { - "name": "oe_test_lb_policy_function" - }, - { - "name": "oe_test_dark_launch_function" - }, - { - "name": "oe_test_route_function" - }, - { - "name": "oe_test_service_function" - }, - { - "name": "oe_test_tcp_proxy_weight_cluster_function" - }, - { - "name": "oe_test_kmesh_mda_001" - } - ] + "path": "$OET_PATH/testcases/cli-test/Kmesh", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_base_function" + }, + { + "name": "oe_test_lb_policy_function" + }, + { + "name": "oe_test_dark_launch_function" + }, + { + "name": "oe_test_route_function" + }, + { + "name": "oe_test_service_function" + }, + { + "name": "oe_test_tcp_proxy_weight_cluster_function" + }, + { + "name": "oe_test_kmesh_mda_001" + } + ] } \ No newline at end of file diff --git a/suite2cases/ModemManager.json b/suite2cases/ModemManager.json index f2675e43f8363a0affbd13c4f0a6cfa4703add9a..3a452e9b3aea33d6775aff387fc6a7dadde9890d 100644 --- a/suite2cases/ModemManager.json +++ b/suite2cases/ModemManager.json @@ -1,8 +1,35 @@ { "path": "$OET_PATH/testcases/cli-test/ModemManager", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ModemManager" + }, + { + "name": "oe_test_ModemManager_install_and_remove_ModemManager" + }, + { + "name": "oe_test_ModemManager_install_and_remove_ModemManager-glib-devel" + }, + { + "name": "oe_test_ModemManager_install_and_remove_ModemManager-devel" + }, + { + "name": "oe_test_ModemManager_install_and_remove_ModemManager-glib" + }, + { + "name": "oe_test_ModemManager_install_and_remove_ModemManager-vala" + }, + { + "name": "oe_test_ModemManager_install_and_remove_ModemManager-debuginfo" + }, + { + "name": "oe_test_ModemManager_install_and_remove_ModemManager-help" + }, + { + "name": "oe_test_ModemManager_install_and_remove_ModemManager-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/NetworkManager.json b/suite2cases/NetworkManager.json index db87ea45c14f8388ff8dacf23d853cff8a84cf1a..27df41881db65e3eba08b7ab4d74d5b1b37d607f 100644 --- a/suite2cases/NetworkManager.json +++ b/suite2cases/NetworkManager.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/NetworkManager", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_NetworkManager-dispatcher" @@ -15,6 +18,48 @@ }, { "name": "oe_test_libnetfilter_conntrack" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-team" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-ppp" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-libnm-devel" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-config-server" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-wifi" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-wwan" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-bluetooth" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-libnm" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-ovs" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-cloud-setup" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-debugsource" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-help" + }, + { + "name": "oe_test_NetworkManager_install_and_remove_NetworkManager-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/OpenEXR.json b/suite2cases/OpenEXR.json index 46ebe5cdaaf0d98cfa166a5e2fe1a7594b637335..fb034bc098273aac7a0b456b038e816d0c3e9fdf 100644 --- a/suite2cases/OpenEXR.json +++ b/suite2cases/OpenEXR.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/OpenEXR", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_OpenEXR_cmd" @@ -21,6 +24,21 @@ }, { "name": "oe_test_OpenEXR_exrstdattr_03" + }, + { + "name": "oe_test_OpenEXR_install_and_remove_OpenEXR" + }, + { + "name": "oe_test_OpenEXR_install_and_remove_OpenEXR-libs" + }, + { + "name": "oe_test_OpenEXR_install_and_remove_OpenEXR-devel" + }, + { + "name": "oe_test_OpenEXR_install_and_remove_OpenEXR-debugsource" + }, + { + "name": "oe_test_OpenEXR_install_and_remove_OpenEXR-debuginfo" } ] } \ No newline at end of file diff --git a/suite2cases/OpenIPMI.json b/suite2cases/OpenIPMI.json index 74821b7a530d42e4ceb2866e56aace155d3dc385..4765e774c0bfadb84501d2780d7070ed408d8c2a 100644 --- a/suite2cases/OpenIPMI.json +++ b/suite2cases/OpenIPMI.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/OpenIPMI", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ipmi" } ] -} +} \ No newline at end of file diff --git a/suite2cases/PackageKit.json b/suite2cases/PackageKit.json index 979bc3ffe16844f5c408f98565eebe5b4aabb4d7..f3dec83be8826feb9236c14d444f6c7dd6231579 100644 --- a/suite2cases/PackageKit.json +++ b/suite2cases/PackageKit.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/PackageKit", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_packagekit-offline-update" @@ -7,8 +9,8 @@ { "name": "oe_test_service_packagekit" }, - { - "name":"oe_test_packagekit_pkcon" + { + "name": "oe_test_packagekit_pkcon" } ] -} +} \ No newline at end of file diff --git a/suite2cases/SDL.json b/suite2cases/SDL.json index b7b21652b4a0cc6ec7096b7a20bab685ff17a42e..6d16116b930ef9b1a3570bb19da43f482feeb2c6 100644 --- a/suite2cases/SDL.json +++ b/suite2cases/SDL.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/SDL", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libsdl1.2" + }, + { + "name": "oe_test_SDL_install_and_remove_SDL" + }, + { + "name": "oe_test_SDL_install_and_remove_SDL-devel" + }, + { + "name": "oe_test_SDL_install_and_remove_SDL-help" + }, + { + "name": "oe_test_SDL_install_and_remove_SDL-debuginfo" + }, + { + "name": "oe_test_SDL_install_and_remove_SDL-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/StratoVirt_user_guide.json b/suite2cases/StratoVirt_user_guide.json index 616539a39b709305c59aaa05c0c6ff9106ed07b3..54f812a5e12f5abe73be6dec19a92f379a5c241e 100644 --- a/suite2cases/StratoVirt_user_guide.json +++ b/suite2cases/StratoVirt_user_guide.json @@ -1,6 +1,8 @@ { "path": "${OET_PATH}/testcases/doc-test/virtualization/StratoVirt_user_guide", "machine type": "physical", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ready_environment", @@ -13,4 +15,4 @@ "name": "oe_test_manage_stratovirt_vm_resources" } ] -} +} \ No newline at end of file diff --git a/suite2cases/Xaw3d.json b/suite2cases/Xaw3d.json new file mode 100644 index 0000000000000000000000000000000000000000..1d10a9256fc2bdf5df0d39932b0f1e2454a205d4 --- /dev/null +++ b/suite2cases/Xaw3d.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/Xaw3d", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_Xaw3d_install_and_remove_Xaw3d" + }, + { + "name": "oe_test_Xaw3d_install_and_remove_Xaw3d-devel" + }, + { + "name": "oe_test_Xaw3d_install_and_remove_Xaw3d-help" + }, + { + "name": "oe_test_Xaw3d_install_and_remove_Xaw3d-debugsource" + }, + { + "name": "oe_test_Xaw3d_install_and_remove_Xaw3d-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/abattis-cantarell-fonts.json b/suite2cases/abattis-cantarell-fonts.json new file mode 100644 index 0000000000000000000000000000000000000000..3797176af622e20d713296a0a0f7cee1a0226889 --- /dev/null +++ b/suite2cases/abattis-cantarell-fonts.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/abattis-cantarell-fonts", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_abattis-cantarell-fonts_install_and_remove_abattis-cantarell-fonts" + }, + { + "name": "oe_test_abattis-cantarell-fonts_install_and_remove_abattis-cantarell-fonts-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/abrt.json b/suite2cases/abrt.json index 97e2ba64ab570db934c7d0c2a1741b69c386656b..bf0dcbfa16bd46e6177dfe4efd6ce369bb382d0c 100644 --- a/suite2cases/abrt.json +++ b/suite2cases/abrt.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/abrt", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_abrtd" @@ -23,4 +25,4 @@ "name": "oe_test_service_abrt-xorg" } ] -} +} \ No newline at end of file diff --git a/suite2cases/abseil-cpp.json b/suite2cases/abseil-cpp.json new file mode 100644 index 0000000000000000000000000000000000000000..88e2d5a3bc9faafffa279f86cbcc765b07968e37 --- /dev/null +++ b/suite2cases/abseil-cpp.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/abseil-cpp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_abseil-cpp_install_and_remove_abseil-cpp" + }, + { + "name": "oe_test_abseil-cpp_install_and_remove_abseil-cpp-devel" + }, + { + "name": "oe_test_abseil-cpp_install_and_remove_abseil-cpp-debuginfo" + }, + { + "name": "oe_test_abseil-cpp_install_and_remove_abseil-cpp-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/accountsservice.json b/suite2cases/accountsservice.json index 67dc92ab2253c065ac3b87ed5cd13bdfacf4fe13..cac6811807965f8f88715d642065b30e1687dbc4 100644 --- a/suite2cases/accountsservice.json +++ b/suite2cases/accountsservice.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/accountsservice", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_accounts-daemon" } ] -} +} \ No newline at end of file diff --git a/suite2cases/acl.json b/suite2cases/acl.json index 96b548c1aceed2c4d74aa680fb28c25bf2d8290a..04cdf944117dc46da6b70f06ce89b5e00526830b 100644 --- a/suite2cases/acl.json +++ b/suite2cases/acl.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/acl", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_acl_add_write_permissions" @@ -19,24 +22,24 @@ { "name": "oe_test_acl_chacl" }, - { - "name": "oe_test_acl_getfacl" - }, - { - "name": "oe_test_acl_setfacl" - }, { - "name": "oe_test_access_providepam" - }, + "name": "oe_test_acl_getfacl" + }, + { + "name": "oe_test_acl_setfacl" + }, { - "name": "oe_test_acl_file" - }, + "name": "oe_test_access_providepam" + }, { - "name": "oe_test_acl_default_kernel_setting" - }, + "name": "oe_test_acl_file" + }, { - "name": "oe_test_acl_backup_recovery" - }, + "name": "oe_test_acl_default_kernel_setting" + }, + { + "name": "oe_test_acl_backup_recovery" + }, { "name": "oe_test_acl_delete_acl" }, @@ -54,6 +57,27 @@ }, { "name": "oe_test_acl_default_inherit_fun02" + }, + { + "name": "oe_test_acl_install_and_remove_acl" + }, + { + "name": "oe_test_acl_install_and_remove_libacl-devel" + }, + { + "name": "oe_test_acl_install_and_remove_libacl" + }, + { + "name": "oe_test_acl_install_and_remove_acl-help" + }, + { + "name": "oe_test_acl_install_and_remove_acl-debuginfo" + }, + { + "name": "oe_test_acl_install_and_remove_acl-debugsource" + }, + { + "name": "oe_test_acl_install_and_remove_acl-devel" } ] -} +} \ No newline at end of file diff --git a/suite2cases/acpid.json b/suite2cases/acpid.json index 1a981b733b2974e0ca471cd3310ff8d814bceabb..e972cf4fbe121c0d53698fcb8aa7292010a740b9 100644 --- a/suite2cases/acpid.json +++ b/suite2cases/acpid.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/acpid", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_acpid" @@ -17,4 +19,4 @@ "name": "oe_test_acpid_03" } ] -} +} \ No newline at end of file diff --git a/suite2cases/activemq.json b/suite2cases/activemq.json index af998cf2c10247616fc0a9a2041ff7a15b768581..916a741278462efdf5db15f64cf7b7b9c2e86c2d 100644 --- a/suite2cases/activemq.json +++ b/suite2cases/activemq.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/activemq", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_activemq_fun_01" } ] -} +} \ No newline at end of file diff --git a/suite2cases/admin_guide.json b/suite2cases/admin_guide.json index 88d9d036f9b32ac29beb3571f12bf531f2a63bb1..ec51157988bab8bd4529dcdcf4b462e119ce8e11 100644 --- a/suite2cases/admin_guide.json +++ b/suite2cases/admin_guide.json @@ -9,6 +9,8 @@ 2 ], "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_basic_del_user" diff --git a/suite2cases/adobe-mappings-cmap.json b/suite2cases/adobe-mappings-cmap.json new file mode 100644 index 0000000000000000000000000000000000000000..05a81cdd21a5e4a2c997eec6fc73f0062c71406f --- /dev/null +++ b/suite2cases/adobe-mappings-cmap.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/adobe-mappings-cmap", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap" + }, + { + "name": "oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-devel" + }, + { + "name": "oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-lang" + }, + { + "name": "oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/adobe-mappings-pdf.json b/suite2cases/adobe-mappings-pdf.json new file mode 100644 index 0000000000000000000000000000000000000000..43a42284be85da53313cd9992cec786e7969241f --- /dev/null +++ b/suite2cases/adobe-mappings-pdf.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/adobe-mappings-pdf", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf" + }, + { + "name": "oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf-devel" + }, + { + "name": "oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/adwaita-icon-theme.json b/suite2cases/adwaita-icon-theme.json new file mode 100644 index 0000000000000000000000000000000000000000..157dc760764bfc0bf953586e8daecc211dc796d7 --- /dev/null +++ b/suite2cases/adwaita-icon-theme.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/adwaita-icon-theme", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_adwaita-icon-theme_install_and_remove_adwaita-icon-theme" + }, + { + "name": "oe_test_adwaita-icon-theme_install_and_remove_adwaita-cursor-theme" + }, + { + "name": "oe_test_adwaita-icon-theme_install_and_remove_adwaita-icon-theme-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/alertmanager.json b/suite2cases/alertmanager.json index 7bcb4a272d4c2e4f44c359608f8f53c51260a270..5bfc38a7fde8a9529949216cd30aac18b6e7b33b 100644 --- a/suite2cases/alertmanager.json +++ b/suite2cases/alertmanager.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/alertmanager", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_alertmanager" } ] -} +} \ No newline at end of file diff --git a/suite2cases/alsa-lib.json b/suite2cases/alsa-lib.json new file mode 100644 index 0000000000000000000000000000000000000000..b3674707dba087166a215effa524347f9e7d94eb --- /dev/null +++ b/suite2cases/alsa-lib.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/alsa-lib", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_alsa-lib_install_and_remove_alsa-lib" + }, + { + "name": "oe_test_alsa-lib_install_and_remove_alsa-lib-devel" + }, + { + "name": "oe_test_alsa-lib_install_and_remove_alsa-topology" + }, + { + "name": "oe_test_alsa-lib_install_and_remove_alsa-ucm" + }, + { + "name": "oe_test_alsa-lib_install_and_remove_alsa-lib-debuginfo" + }, + { + "name": "oe_test_alsa-lib_install_and_remove_alsa-lib-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/alsa-utils.json b/suite2cases/alsa-utils.json index 4354f339adac3a23c2a0490c0ed9eb1516879293..023880e1b2d8fbee4914e3aa9e37aa716824e750 100644 --- a/suite2cases/alsa-utils.json +++ b/suite2cases/alsa-utils.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/alsa-utils", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_alsa-restore" @@ -11,4 +13,4 @@ "name": "oe_test_alsa_tools" } ] -} +} \ No newline at end of file diff --git a/suite2cases/amanda.json b/suite2cases/amanda.json index 445077358a3fc2e9755221c6a8182b5551fbb63b..944d91c8ff2deddc23b407189fdf3e03134c6dc8 100644 --- a/suite2cases/amanda.json +++ b/suite2cases/amanda.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/amanda", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_amanda_amcheck" @@ -16,17 +18,17 @@ { "name": "oe_test_socket_amanda" }, - { - "name": "oe_test_amanda_aespipe" - }, + { + "name": "oe_test_amanda_aespipe" + }, { "name": "oe_test_socket_amanda-udp" }, - { - "name": "oe_test_amanda_dump" - }, + { + "name": "oe_test_amanda_dump" + }, { "name": "oe_test_socket_kamanda" } ] -} +} \ No newline at end of file diff --git a/suite2cases/anaconda.json b/suite2cases/anaconda.json index b263514a68a89909e72ca2ef53a937b3b54ef7e2..d3d616c3947221b23dea33f20bc10a042a17f898 100644 --- a/suite2cases/anaconda.json +++ b/suite2cases/anaconda.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/anaconda", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_anaconda-direct" @@ -30,6 +33,27 @@ }, { "name": "oe_test_service_anaconda-fips" + }, + { + "name": "oe_test_anaconda_install_and_remove_anaconda" + }, + { + "name": "oe_test_anaconda_install_and_remove_anaconda-tui" + }, + { + "name": "oe_test_anaconda_install_and_remove_anaconda-dracut" + }, + { + "name": "oe_test_anaconda_install_and_remove_anaconda-core" + }, + { + "name": "oe_test_anaconda_install_and_remove_anaconda-devel" + }, + { + "name": "oe_test_anaconda_install_and_remove_anaconda-debugsource" + }, + { + "name": "oe_test_anaconda_install_and_remove_anaconda-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/annobin.json b/suite2cases/annobin.json index f71e13bf7deab0c9cd9aa898a2e937fd9be75e3f..9f76c099c7f198204f08592773b6c5114ff0dc13 100644 --- a/suite2cases/annobin.json +++ b/suite2cases/annobin.json @@ -1,8 +1,29 @@ { "path": "\"${OET_PATH}\"/testcases/cli-test/annobin", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_annobin" + }, + { + "name": "oe_test_annobin_install_and_remove_annobin" + }, + { + "name": "oe_test_annobin_install_and_remove_annobin-annocheck" + }, + { + "name": "oe_test_annobin_install_and_remove_annobin-help" + }, + { + "name": "oe_test_annobin_install_and_remove_annobin-tests" + }, + { + "name": "oe_test_annobin_install_and_remove_annobin-debuginfo" + }, + { + "name": "oe_test_annobin_install_and_remove_annobin-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ansible.json b/suite2cases/ansible.json index 8778e7212bee7b42b77eda063fa2dd23c9e0cc44..225ed7be0bea4d669071f2ebd055035c77499250 100644 --- a/suite2cases/ansible.json +++ b/suite2cases/ansible.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/ansible", - "machine num":2, + "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ansible_01" diff --git a/suite2cases/ant.json b/suite2cases/ant.json index d02a589e170636dd950618f4bbfd46b780451c77..efd4f774f1074995f7c979c9b4cce9e53a9f1c63 100644 --- a/suite2cases/ant.json +++ b/suite2cases/ant.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/ant", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ant_001" @@ -13,8 +16,77 @@ { "name": "oe_test_ant_004" }, - { - "name": "oe_test_ant_005" - } + { + "name": "oe_test_ant_005" + }, + { + "name": "oe_test_ant_install_and_remove_ant" + }, + { + "name": "oe_test_ant_install_and_remove_ant-lib" + }, + { + "name": "oe_test_ant_install_and_remove_ant-apache-bsf" + }, + { + "name": "oe_test_ant_install_and_remove_ant-commons-logging" + }, + { + "name": "oe_test_ant_install_and_remove_ant-commons-net" + }, + { + "name": "oe_test_ant_install_and_remove_ant-apache-bcel" + }, + { + "name": "oe_test_ant_install_and_remove_ant-apache-regexp" + }, + { + "name": "oe_test_ant_install_and_remove_ant-apache-xalan2" + }, + { + "name": "oe_test_ant_install_and_remove_ant-jdepend" + }, + { + "name": "oe_test_ant_install_and_remove_ant-testutil" + }, + { + "name": "oe_test_ant_install_and_remove_ant-jmf" + }, + { + "name": "oe_test_ant_install_and_remove_ant-antlr" + }, + { + "name": "oe_test_ant_install_and_remove_ant-apache-oro" + }, + { + "name": "oe_test_ant_install_and_remove_ant-imageio" + }, + { + "name": "oe_test_ant_install_and_remove_ant-javamail" + }, + { + "name": "oe_test_ant_install_and_remove_ant-jsch" + }, + { + "name": "oe_test_ant_install_and_remove_ant-junit" + }, + { + "name": "oe_test_ant_install_and_remove_ant-xz" + }, + { + "name": "oe_test_ant_install_and_remove_ant-help" + }, + { + "name": "oe_test_ant_install_and_remove_ant-swing" + }, + { + "name": "oe_test_ant_install_and_remove_ant-apache-resolver" + }, + { + "name": "oe_test_ant_install_and_remove_ant-apache-log4j" + }, + { + "name": "oe_test_ant_install_and_remove_ant-junit5" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/anthy.json b/suite2cases/anthy.json index 550848f6ccd5660545a9746b309ae76057b709c4..1c5385a20ca59a4996b26b536ca132c47306fb3e 100755 --- a/suite2cases/anthy.json +++ b/suite2cases/anthy.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/anthy", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_anthy_01" + }, + { + "name": "oe_test_anthy_install_and_remove_anthy" + }, + { + "name": "oe_test_anthy_install_and_remove_anthy-devel" + }, + { + "name": "oe_test_anthy_install_and_remove_anthy-debuginfo" + }, + { + "name": "oe_test_anthy_install_and_remove_anthy-debugsource" + }, + { + "name": "oe_test_anthy_install_and_remove_anthy-help" } ] } \ No newline at end of file diff --git a/suite2cases/aops-ceres.json b/suite2cases/aops-ceres.json index 623f3b167a6300802f5dce181b5a0ee0d1c581f1..987ea63ac76b934d3cb097409e978a3ebcf12393 100644 --- a/suite2cases/aops-ceres.json +++ b/suite2cases/aops-ceres.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/aops-ceres", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_aops-ceres" } ] -} +} \ No newline at end of file diff --git a/suite2cases/apache-parent.json b/suite2cases/apache-parent.json new file mode 100644 index 0000000000000000000000000000000000000000..1bdfd4edd5aec078502b306976ea8c94d6e2210a --- /dev/null +++ b/suite2cases/apache-parent.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/apache-parent", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_apache-parent_install_and_remove_apache-parent" + } + ] +} \ No newline at end of file diff --git a/suite2cases/apr.json b/suite2cases/apr.json index c424ceda2247993973b8d30ccd812fc6c6b59d43..f59c99cb2f3d0caf34314f48991b96adbb0b5aae 100644 --- a/suite2cases/apr.json +++ b/suite2cases/apr.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/apr", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_apr_001" @@ -8,4 +10,4 @@ "name": "oe_test_apr_002" } ] -} +} \ No newline at end of file diff --git a/suite2cases/aqute-bnd.json b/suite2cases/aqute-bnd.json index d96ae8cbda594d574cf826a769c4888ea50f1120..07dcb818dd034adef1fb2a502aa36a33b17b1e1a 100644 --- a/suite2cases/aqute-bnd.json +++ b/suite2cases/aqute-bnd.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/aqute-bnd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_aqute_bnd_01" @@ -17,4 +19,4 @@ "name": "oe_test_aqute_bnd_05" } ] -} +} \ No newline at end of file diff --git a/suite2cases/argon2.json b/suite2cases/argon2.json new file mode 100644 index 0000000000000000000000000000000000000000..490fcddb306603ae818eecd3fbccb815fcd8d60e --- /dev/null +++ b/suite2cases/argon2.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/argon2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_argon2_install_and_remove_argon2" + }, + { + "name": "oe_test_argon2_install_and_remove_libargon2" + }, + { + "name": "oe_test_argon2_install_and_remove_libargon2-devel" + }, + { + "name": "oe_test_argon2_install_and_remove_argon2-debuginfo" + }, + { + "name": "oe_test_argon2_install_and_remove_argon2-help" + }, + { + "name": "oe_test_argon2_install_and_remove_argon2-debugsource" + }, + { + "name": "oe_test_argon2_install_and_remove_argon2-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/argus.json b/suite2cases/argus.json index c01af62115adfc5cece1689a47ccdec147c523f9..13b7fb2b29332d7eb6cca41cf2cf6439b52c3039 100644 --- a/suite2cases/argus.json +++ b/suite2cases/argus.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/argus", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_argus_01" @@ -17,4 +19,4 @@ "name": "oe_test_service_argus" } ] -} +} \ No newline at end of file diff --git a/suite2cases/arptables.json b/suite2cases/arptables.json index f370822de233f057593896970d815974d33f251a..33bbdc82cfe4a1e2183f8621ccc736995425f67f 100644 --- a/suite2cases/arptables.json +++ b/suite2cases/arptables.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/arptables", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_arptables" @@ -8,4 +10,4 @@ "name": "oe_test_arptables_function" } ] -} +} \ No newline at end of file diff --git a/suite2cases/arpwatch.json b/suite2cases/arpwatch.json index 2be87dfe52dc285321deb1a966f3ea174097f96a..7d225f34d7efb4d13a19523bde931144a20010cf 100644 --- a/suite2cases/arpwatch.json +++ b/suite2cases/arpwatch.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/arpwatch", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_arpwatch" } ] -} +} \ No newline at end of file diff --git a/suite2cases/asciidoc.json b/suite2cases/asciidoc.json index 3ab4c2906883af86998a21082b9dae662af5b06c..21776d26a8eac777520f21004000f7b66fbfceb7 100755 --- a/suite2cases/asciidoc.json +++ b/suite2cases/asciidoc.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/asciidoc", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_asciidoc_asciidoc_01" @@ -15,7 +18,21 @@ }, { "name": "oe_test_asciidoc_a2x_03" + }, + { + "name": "oe_test_asciidoc_install_and_remove_asciidoc" + }, + { + "name": "oe_test_asciidoc_install_and_remove_asciidoc-help" + }, + { + "name": "oe_test_asciidoc_install_and_remove_asciidoc-doc" + }, + { + "name": "oe_test_asciidoc_install_and_remove_asciidoc-latex" + }, + { + "name": "oe_test_asciidoc_install_and_remove_asciidoc-music" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/aspell.json b/suite2cases/aspell.json index e3037d641a022c62e7eb24eda947ee8d80b1ab38..41fcd17786fa36deeae3b8afee20674f3e8a63e4 100644 --- a/suite2cases/aspell.json +++ b/suite2cases/aspell.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/aspell", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_aspell_01" @@ -30,6 +33,21 @@ }, { "name": "oe_test_aspell_word-list-compress" + }, + { + "name": "oe_test_aspell_install_and_remove_aspell" + }, + { + "name": "oe_test_aspell_install_and_remove_aspell-help" + }, + { + "name": "oe_test_aspell_install_and_remove_aspell-devel" + }, + { + "name": "oe_test_aspell_install_and_remove_aspell-debuginfo" + }, + { + "name": "oe_test_aspell_install_and_remove_aspell-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/assimp.json b/suite2cases/assimp.json index 2b193dc154f001456c35116d9158b3b4d808b684..817533405f6a9804d0815b4c7be35a6b3db3c511 100755 --- a/suite2cases/assimp.json +++ b/suite2cases/assimp.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/assimp", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_assimp_01" diff --git a/suite2cases/at-spi2-atk.json b/suite2cases/at-spi2-atk.json new file mode 100644 index 0000000000000000000000000000000000000000..5cbc94e0b9bbbd4980a8f0c80cb06b86eef6a2ee --- /dev/null +++ b/suite2cases/at-spi2-atk.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/at-spi2-atk", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_at-spi2-atk_install_and_remove_at-spi2-atk" + }, + { + "name": "oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-devel" + }, + { + "name": "oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-debuginfo" + }, + { + "name": "oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-help" + }, + { + "name": "oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/at-spi2-core.json b/suite2cases/at-spi2-core.json new file mode 100644 index 0000000000000000000000000000000000000000..881266cdcc432e8c08c50f1d4db2f9d97cdce2bc --- /dev/null +++ b/suite2cases/at-spi2-core.json @@ -0,0 +1,35 @@ +{ + "path": "$OET_PATH/testcases/cli-test/at-spi2-core", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_at-spi2-core_install_and_remove_at-spi2-core" + }, + { + "name": "oe_test_at-spi2-core_install_and_remove_atk" + }, + { + "name": "oe_test_at-spi2-core_install_and_remove_at-spi2-atk-devel" + }, + { + "name": "oe_test_at-spi2-core_install_and_remove_at-spi2-atk" + }, + { + "name": "oe_test_at-spi2-core_install_and_remove_at-spi2-core-devel" + }, + { + "name": "oe_test_at-spi2-core_install_and_remove_atk-devel" + }, + { + "name": "oe_test_at-spi2-core_install_and_remove_at-spi2-core-help" + }, + { + "name": "oe_test_at-spi2-core_install_and_remove_at-spi2-core-debuginfo" + }, + { + "name": "oe_test_at-spi2-core_install_and_remove_at-spi2-core-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/at.json b/suite2cases/at.json index fc5e19696044fb162d8a2ac85991ed7145c095de..cb17fedd79767c7fadf7572311d8aabeab0f51ba 100644 --- a/suite2cases/at.json +++ b/suite2cases/at.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/at", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_at_at" @@ -14,5 +16,4 @@ "name": "oe_test_atd_01" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/atf.json b/suite2cases/atf.json new file mode 100644 index 0000000000000000000000000000000000000000..92cb99e5efd70560d052d3f158ff144ef58ec39a --- /dev/null +++ b/suite2cases/atf.json @@ -0,0 +1,41 @@ +{ + "path": "$OET_PATH/testcases/cli-test/atf", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_atf_install_and_remove_atf" + }, + { + "name": "oe_test_atf_install_and_remove_libatf-sh" + }, + { + "name": "oe_test_atf_install_and_remove_atf-tests" + }, + { + "name": "oe_test_atf_install_and_remove_libatf-c" + }, + { + "name": "oe_test_atf_install_and_remove_libatf-c++-devel" + }, + { + "name": "oe_test_atf_install_and_remove_libatf-sh-devel" + }, + { + "name": "oe_test_atf_install_and_remove_libatf-c-devel" + }, + { + "name": "oe_test_atf_install_and_remove_libatf-c++" + }, + { + "name": "oe_test_atf_install_and_remove_atf-help" + }, + { + "name": "oe_test_atf_install_and_remove_atf-debuginfo" + }, + { + "name": "oe_test_atf_install_and_remove_atf-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/atk.json b/suite2cases/atk.json new file mode 100644 index 0000000000000000000000000000000000000000..e2dd6963e2dbce10658c6a8c1278775c814c4d81 --- /dev/null +++ b/suite2cases/atk.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/atk", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_atk_install_and_remove_atk" + }, + { + "name": "oe_test_atk_install_and_remove_atk-devel" + }, + { + "name": "oe_test_atk_install_and_remove_atk-debuginfo" + }, + { + "name": "oe_test_atk_install_and_remove_atk-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/atmel-firmware.json b/suite2cases/atmel-firmware.json new file mode 100644 index 0000000000000000000000000000000000000000..cd54e18f21ffee050ab7f2a2310ceec5dab4a584 --- /dev/null +++ b/suite2cases/atmel-firmware.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/atmel-firmware", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_atmel-firmware_install_and_remove_atmel-firmware" + }, + { + "name": "oe_test_atmel-firmware_install_and_remove_atmel-firmware-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/attest-tools.json b/suite2cases/attest-tools.json index 9dcabdf45bf6d0b0c8733aa26558f62074cc23d0..36a75bca5bceb50f52dedbe27a270963f858d630 100644 --- a/suite2cases/attest-tools.json +++ b/suite2cases/attest-tools.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/attest-tools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_attest_ra_server" @@ -8,4 +10,4 @@ "name": "oe_test_service_attest_tls_server" } ] -} +} \ No newline at end of file diff --git a/suite2cases/attr.json b/suite2cases/attr.json index 07644365ad315c03d400f5675fa8cba1b7a4748c..bcd0947073c4d54ae533e048beb64286268f07af 100644 --- a/suite2cases/attr.json +++ b/suite2cases/attr.json @@ -1,8 +1,26 @@ { "path": "${OET_PATH}/testcases/cli-test/attr", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_attr" + }, + { + "name": "oe_test_attr_install_and_remove_attr" + }, + { + "name": "oe_test_attr_install_and_remove_libattr-devel" + }, + { + "name": "oe_test_attr_install_and_remove_attr-help" + }, + { + "name": "oe_test_attr_install_and_remove_attr-debuginfo" + }, + { + "name": "oe_test_attr_install_and_remove_attr-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/atune.json b/suite2cases/atune.json index faa61f2a14d96920822b110df8584379c19e88b6..b1b162687996d1681172882f6e1b98e973e33ed8 100644 --- a/suite2cases/atune.json +++ b/suite2cases/atune.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/atune", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_atuned" @@ -21,9 +23,9 @@ }, { "name": "oe_test_service_atuned_04" - }, - { - "name": "oe_test_service_atuned_05" + }, + { + "name": "oe_test_service_atuned_05" }, { "name": "oe_test_service_atuned_06" @@ -37,7 +39,5 @@ { "name": "oe_test_service_atuned_09" } - ] -} - +} \ No newline at end of file diff --git a/suite2cases/audit.json b/suite2cases/audit.json index 9452883f7685aa48a855a5c3ef9e2ef7a090c6a0..84d5b19f09603f91f3b6c8af46494895af25d4ec 100644 --- a/suite2cases/audit.json +++ b/suite2cases/audit.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/audit", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_audit_monitor_file_access" @@ -100,15 +103,44 @@ { "name": "oe_test_ausyscall" }, - { + { "name": "oe_test_aulastlog" }, - { + { "name": "oe_test_audit_monitor_pipe_file" }, { "name": "oe_test_audit_monitor_socket_file" + }, + { + "name": "oe_test_audit_install_and_remove_audit" + }, + { + "name": "oe_test_audit_install_and_remove_audit-devel" + }, + { + "name": "oe_test_audit_install_and_remove_audit-libs" + }, + { + "name": "oe_test_audit_install_and_remove_audispd-plugins" + }, + { + "name": "oe_test_audit_install_and_remove_audispd-plugins-zos" + }, + { + "name": "oe_test_audit_install_and_remove_python3-audit" + }, + { + "name": "oe_test_audit_install_and_remove_audit-debugsource" + }, + { + "name": "oe_test_audit_install_and_remove_audit-debuginfo" + }, + { + "name": "oe_test_audit_install_and_remove_audit-help" + }, + { + "name": "oe_test_audit_install_and_remove_python2-audit" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/augeas.json b/suite2cases/augeas.json new file mode 100644 index 0000000000000000000000000000000000000000..a27b2b0201df0fde82981be87cca3cc244c93685 --- /dev/null +++ b/suite2cases/augeas.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/augeas", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_augeas_install_and_remove_augeas" + }, + { + "name": "oe_test_augeas_install_and_remove_augeas-devel" + }, + { + "name": "oe_test_augeas_install_and_remove_augeas-debugsource" + }, + { + "name": "oe_test_augeas_install_and_remove_augeas-help" + }, + { + "name": "oe_test_augeas_install_and_remove_augeas-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/auter.json b/suite2cases/auter.json index d29e3f1bc234a01a3117dbc77faf5048f36ff645..efe278c2cd74100be0f4f2fbde47c207bccc8f21 100644 --- a/suite2cases/auter.json +++ b/suite2cases/auter.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/auter", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_auter" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/authd.json b/suite2cases/authd.json index 098cd1513dab6ebba47cb5a2015ba7a155c8b76c..64113479d5ebce50301f2afc6e6b2c87c6fa31d2 100644 --- a/suite2cases/authd.json +++ b/suite2cases/authd.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/authd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_socket_auth" } ] -} +} \ No newline at end of file diff --git a/suite2cases/authselect.json b/suite2cases/authselect.json new file mode 100644 index 0000000000000000000000000000000000000000..eb307be0d283247b8ab2947164f6f96d5abcd339 --- /dev/null +++ b/suite2cases/authselect.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/authselect", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_authselect_install_and_remove_authselect" + }, + { + "name": "oe_test_authselect_install_and_remove_authselect-devel" + }, + { + "name": "oe_test_authselect_install_and_remove_authselect-compat" + }, + { + "name": "oe_test_authselect_install_and_remove_authselect-help" + }, + { + "name": "oe_test_authselect_install_and_remove_authselect-debugsource" + }, + { + "name": "oe_test_authselect_install_and_remove_authselect-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/authz.json b/suite2cases/authz.json index d4a35f1caef624a10f33818555f1172b705d294f..f5996df0dfce775482370160f83ed760807396d7 100644 --- a/suite2cases/authz.json +++ b/suite2cases/authz.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/authz", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_authz" } ] -} +} \ No newline at end of file diff --git a/suite2cases/autoconf-archive.json b/suite2cases/autoconf-archive.json new file mode 100644 index 0000000000000000000000000000000000000000..b24c2b2c527ae0cfd33842a59ca108aff9db7df7 --- /dev/null +++ b/suite2cases/autoconf-archive.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/autoconf-archive", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_autoconf-archive_install_and_remove_autoconf-archive" + } + ] +} \ No newline at end of file diff --git a/suite2cases/autoconf.json b/suite2cases/autoconf.json new file mode 100644 index 0000000000000000000000000000000000000000..0053f44049f78ad484f28a1fef7e810f9da8fd5a --- /dev/null +++ b/suite2cases/autoconf.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/autoconf", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_autoconf_install_and_remove_autoconf" + }, + { + "name": "oe_test_autoconf_install_and_remove_autoconf-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/autoconf213.json b/suite2cases/autoconf213.json index 4a912ae380a8772e24de9bf0e0d9a70856dfd5bf..ab0c123456c02acc9f85f694efa57bd85fda97c4 100644 --- a/suite2cases/autoconf213.json +++ b/suite2cases/autoconf213.json @@ -1,35 +1,37 @@ { - "path": "$OET_PATH/testcases/cli-test/autoconf213", - "cases": [ - { - "name": "oe_test_autoconf213_autoconf-2.13" - }, - { - "name": "oe_test_autoconf213_autoheader-2.13" - }, - { - "name": "oe_test_autoconf213_autoreconf-2.13_01" - }, - { - "name": "oe_test_autoconf213_autoreconf-2.13_02" - }, - { - "name": "oe_test_autoconf213_autoreconf-2.13_03" - }, - { - "name": "oe_test_autoconf213_autoreconf-2.13_04" - }, - { - "name": "oe_test_autoconf213_autoreconf-2.13_05" - }, - { - "name": "oe_test_autoconf213_autoreconf-2.13_06" - }, - { - "name": "oe_test_autoconf213_autoupdate-2.13" - }, - { - "name": "oe_test_autoconf213_ifnames-2.13" - } - ] + "path": "$OET_PATH/testcases/cli-test/autoconf213", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_autoconf213_autoconf-2.13" + }, + { + "name": "oe_test_autoconf213_autoheader-2.13" + }, + { + "name": "oe_test_autoconf213_autoreconf-2.13_01" + }, + { + "name": "oe_test_autoconf213_autoreconf-2.13_02" + }, + { + "name": "oe_test_autoconf213_autoreconf-2.13_03" + }, + { + "name": "oe_test_autoconf213_autoreconf-2.13_04" + }, + { + "name": "oe_test_autoconf213_autoreconf-2.13_05" + }, + { + "name": "oe_test_autoconf213_autoreconf-2.13_06" + }, + { + "name": "oe_test_autoconf213_autoupdate-2.13" + }, + { + "name": "oe_test_autoconf213_ifnames-2.13" + } + ] } \ No newline at end of file diff --git a/suite2cases/autofs.json b/suite2cases/autofs.json index 9829696491a6fecc99f7b9a0f74a13f3e94b5c40..65b93406cbb565f9a0677d80485c220303793d0f 100644 --- a/suite2cases/autofs.json +++ b/suite2cases/autofs.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/autofs", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_autofs", diff --git a/suite2cases/autogen.json b/suite2cases/autogen.json new file mode 100644 index 0000000000000000000000000000000000000000..acc6d522a7035c2d2aa55c12800d9d2c829a8d3a --- /dev/null +++ b/suite2cases/autogen.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/autogen", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_autogen_install_and_remove_autogen" + }, + { + "name": "oe_test_autogen_install_and_remove_autogen-help" + }, + { + "name": "oe_test_autogen_install_and_remove_autogen-devel" + }, + { + "name": "oe_test_autogen_install_and_remove_autogen-debugsource" + }, + { + "name": "oe_test_autogen_install_and_remove_autogen-debuginfo" + }, + { + "name": "oe_test_autogen_install_and_remove_autogen-libopts" + }, + { + "name": "oe_test_autogen_install_and_remove_autogen-libopts-devel" + }, + { + "name": "oe_test_autogen_install_and_remove_autogen-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/automake.json b/suite2cases/automake.json index 0ef9512d0ed234df015fac784e8301c0d6a767d2..95928c42a6c700bb642f65abbb29fc6a2a36d5eb 100644 --- a/suite2cases/automake.json +++ b/suite2cases/automake.json @@ -1,9 +1,17 @@ { "path": "$OET_PATH/testcases/cli-test/automake", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_automake" + }, + { + "name": "oe_test_automake_install_and_remove_automake" + }, + { + "name": "oe_test_automake_install_and_remove_automake-help" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/avahi.json b/suite2cases/avahi.json index b00687df42fec7bdda9f5bd61bfed172ce419872..a8e326cd63ff4c7d75b617fa71e679cad4454ce6 100644 --- a/suite2cases/avahi.json +++ b/suite2cases/avahi.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/avahi", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_avahi-daemon" @@ -9,6 +12,81 @@ }, { "name": "oe_test_socket_avahi-daemon" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-tools" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-compat-libdns_sd" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-compat-libdns_sd-devel" + }, + { + "name": "oe_test_avahi_install_and_remove_python2-avahi" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-glib" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-glib-devel" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-gobject" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-libs" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-ui-tools" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-autoipd" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-compat-howl" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-gobject-devel" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-ui-gtk3" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-ui" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-dnsconfd" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-compat-howl-devel" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-devel" + }, + { + "name": "oe_test_avahi_install_and_remove_python3-avahi" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-ui-devel" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-qt5" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-qt5-devel" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-help" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-debuginfo" + }, + { + "name": "oe_test_avahi_install_and_remove_avahi-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/aws-sdk-java.json b/suite2cases/aws-sdk-java.json index 5770aef27ca6962e174e64d6c1abc374899b224a..8617ecc5f5780e375036d49dc1469486f9673cf1 100644 --- a/suite2cases/aws-sdk-java.json +++ b/suite2cases/aws-sdk-java.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/aws-sdk-java", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_aws-sdk-java_001" diff --git a/suite2cases/axel.json b/suite2cases/axel.json index 81bb475b402365d84f8643d06780760c5f812d11..9cbcb9ba3115ad41534849d8f850b63af88a52d0 100644 --- a/suite2cases/axel.json +++ b/suite2cases/axel.json @@ -1,11 +1,13 @@ { - "path": "$OET_PATH/testcases/cli-test/axel", - "cases": [ - { - "name": "oe_test_axel_01" - }, - { - "name": "oe_test_axel_02" - } - ] + "path": "$OET_PATH/testcases/cli-test/axel", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_axel_01" + }, + { + "name": "oe_test_axel_02" + } + ] } \ No newline at end of file diff --git a/suite2cases/b43-openfwwf.json b/suite2cases/b43-openfwwf.json new file mode 100644 index 0000000000000000000000000000000000000000..643a25aeaea98712881ef206a4f542c0da7fe7be --- /dev/null +++ b/suite2cases/b43-openfwwf.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/b43-openfwwf", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_b43-openfwwf_install_and_remove_b43-openfwwf" + }, + { + "name": "oe_test_b43-openfwwf_install_and_remove_b43-openfwwf-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/b43-tools.json b/suite2cases/b43-tools.json index ecdb4c232f9c14a8d0722cc3ab31c8b6767be859..1a20a7225b8357e83a8e2305ca8812bad2ee7a8c 100644 --- a/suite2cases/b43-tools.json +++ b/suite2cases/b43-tools.json @@ -1,8 +1,20 @@ { "path": "$OET_PATH/testcases/cli-test/b43-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { - "name": "oe_test_b43-tools_b43-asm" + "name": "oe_test_b43-tools_b43-asm" + }, + { + "name": "oe_test_b43-tools_install_and_remove_b43-tools" + }, + { + "name": "oe_test_b43-tools_install_and_remove_b43-tools-debuginfo" + }, + { + "name": "oe_test_b43-tools_install_and_remove_b43-tools-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/babel.json b/suite2cases/babel.json new file mode 100644 index 0000000000000000000000000000000000000000..ed7f354626023ec7f45d15c12f7f17dc6900aa39 --- /dev/null +++ b/suite2cases/babel.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/babel", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_babel_install_and_remove_babel" + }, + { + "name": "oe_test_babel_install_and_remove_python3-babel" + }, + { + "name": "oe_test_babel_install_and_remove_babel-help" + }, + { + "name": "oe_test_babel_install_and_remove_python2-babel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/babeltrace.json b/suite2cases/babeltrace.json index 19a80b810367885a03711977d696ff8de9d9da72..550e52e5daa6cbbd5398c64ad2aa689e577ad01d 100644 --- a/suite2cases/babeltrace.json +++ b/suite2cases/babeltrace.json @@ -1,9 +1,29 @@ { "path": "\"${OET_PATH}\"/testcases/cli-test/babeltrace", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_babeltrace" + }, + { + "name": "oe_test_babeltrace_install_and_remove_babeltrace" + }, + { + "name": "oe_test_babeltrace_install_and_remove_libbabeltrace-devel" + }, + { + "name": "oe_test_babeltrace_install_and_remove_python3-babeltrace" + }, + { + "name": "oe_test_babeltrace_install_and_remove_babeltrace-debuginfo" + }, + { + "name": "oe_test_babeltrace_install_and_remove_babeltrace-debugsource" + }, + { + "name": "oe_test_babeltrace_install_and_remove_babeltrace-help" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/bacula.json b/suite2cases/bacula.json index 4185acee5d520c54893207d2fe238743cdfce4b9..d4e91eb35dea1bc0261fb7c5e3f15e3a8cde1053 100755 --- a/suite2cases/bacula.json +++ b/suite2cases/bacula.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/bacula", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_bacula-dir" diff --git a/suite2cases/bacula_9.4.4.json b/suite2cases/bacula_9.4.4.json index 15c917b56ac60bc1960694055e9e63b80df313f1..6188e9994accd15e36d144086743a4007270e304 100755 --- a/suite2cases/bacula_9.4.4.json +++ b/suite2cases/bacula_9.4.4.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/bacula", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_bacula_dbcheck_9.4.4_01" } ] -} +} \ No newline at end of file diff --git a/suite2cases/basesystem.json b/suite2cases/basesystem.json new file mode 100644 index 0000000000000000000000000000000000000000..6ca66200a10d7b89e0fe3a3b6000d4596ee65e5f --- /dev/null +++ b/suite2cases/basesystem.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/basesystem", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_basesystem_install_and_remove_basesystem" + } + ] +} \ No newline at end of file diff --git a/suite2cases/bash-completion.json b/suite2cases/bash-completion.json new file mode 100644 index 0000000000000000000000000000000000000000..755f484496d3256b93f2f2d7670f1081fa950b4d --- /dev/null +++ b/suite2cases/bash-completion.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/bash-completion", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_bash-completion_install_and_remove_bash-completion" + }, + { + "name": "oe_test_bash-completion_install_and_remove_bash-completion-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/bash.json b/suite2cases/bash.json index ec4d5b859bec17edbd8aad4f8bc46916bab2592c..02076808851ebc4a97cf43dd2d2ff5e1df061841 100644 --- a/suite2cases/bash.json +++ b/suite2cases/bash.json @@ -1,11 +1,35 @@ { "path": "$OET_PATH/testcases/cli-test/bash", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jobs" }, { "name": "oe_test_readarray" + }, + { + "name": "oe_test_bash_install_and_remove_bash" + }, + { + "name": "oe_test_bash_install_and_remove_bash-devel" + }, + { + "name": "oe_test_bash_install_and_remove_bash-help" + }, + { + "name": "oe_test_bash_install_and_remove_bash-debuginfo" + }, + { + "name": "oe_test_bash_install_and_remove_bash-debugsource" + }, + { + "name": "oe_test_bash_install_and_remove_bash-relocation" + }, + { + "name": "oe_test_bash_install_and_remove_bash-doc" } ] -} +} \ No newline at end of file diff --git a/suite2cases/batik.json b/suite2cases/batik.json index c57eb4318122bea1df48366c9520c727b7498864..bcdd11ff59a1f8e3c987b33b1bb0951e5c0301e2 100644 --- a/suite2cases/batik.json +++ b/suite2cases/batik.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/batik", - "cases": [ - { - "name": "oe_test_ttf2svg" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/batik", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ttf2svg" + } + ] +} \ No newline at end of file diff --git a/suite2cases/bc.json b/suite2cases/bc.json new file mode 100644 index 0000000000000000000000000000000000000000..548d7c3921e9180bfc5522e3d5b728218dfb26fd --- /dev/null +++ b/suite2cases/bc.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/bc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_bc_install_and_remove_bc" + }, + { + "name": "oe_test_bc_install_and_remove_bc-help" + }, + { + "name": "oe_test_bc_install_and_remove_bc-debuginfo" + }, + { + "name": "oe_test_bc_install_and_remove_bc-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/bcel.json b/suite2cases/bcel.json new file mode 100644 index 0000000000000000000000000000000000000000..9f0fdd987c06adcf7d2653846078c7dabee2f6b9 --- /dev/null +++ b/suite2cases/bcel.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/bcel", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_bcel_install_and_remove_bcel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/bcrypt.json b/suite2cases/bcrypt.json index eb59b05d12285f62269d8b278d781b19a9b08a68..021f222918f4ee4b910810b37e845a2f4434a993 100644 --- a/suite2cases/bcrypt.json +++ b/suite2cases/bcrypt.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/bcrypt", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_bcrypt" diff --git a/suite2cases/beakerlib.json b/suite2cases/beakerlib.json index 085a63b50a6971a2d08b32f1c8ecc703cc0337b1..cf8398921a16c61e97fee45f571c31abf76bdff2 100644 --- a/suite2cases/beakerlib.json +++ b/suite2cases/beakerlib.json @@ -1,11 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/beakerlib", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_beakerlib_01" }, { "name": "oe_test_beakerlib_lsb_release" + }, + { + "name": "oe_test_beakerlib_install_and_remove_beakerlib" + }, + { + "name": "oe_test_beakerlib_install_and_remove_beakerlib-vim-syntax" + }, + { + "name": "oe_test_beakerlib_install_and_remove_beakerlib-help" } ] } \ No newline at end of file diff --git a/suite2cases/bind.json b/suite2cases/bind.json index db0f8b16b452109f78885175f06ab60fe1eb4db2..b0506dab4f4791b6e8d41c4ab8de3373ba848715 100644 --- a/suite2cases/bind.json +++ b/suite2cases/bind.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/bind", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_named-chroot-setup" @@ -12,6 +15,66 @@ }, { "name": "oe_test_service_named" + }, + { + "name": "oe_test_bind_install_and_remove_bind" + }, + { + "name": "oe_test_bind_install_and_remove_bind-libs" + }, + { + "name": "oe_test_bind_install_and_remove_bind-dnssec-utils" + }, + { + "name": "oe_test_bind_install_and_remove_bind-license" + }, + { + "name": "oe_test_bind_install_and_remove_bind-dnssec-doc" + }, + { + "name": "oe_test_bind_install_and_remove_bind-utils" + }, + { + "name": "oe_test_bind_install_and_remove_bind-devel" + }, + { + "name": "oe_test_bind_install_and_remove_bind-chroot" + }, + { + "name": "oe_test_bind_install_and_remove_bind-debuginfo" + }, + { + "name": "oe_test_bind_install_and_remove_bind-debugsource" + }, + { + "name": "oe_test_bind_install_and_remove_bind-pkcs11" + }, + { + "name": "oe_test_bind_install_and_remove_bind-pkcs11-utils" + }, + { + "name": "oe_test_bind_install_and_remove_python3-bind" + }, + { + "name": "oe_test_bind_install_and_remove_bind-pkcs11-libs" + }, + { + "name": "oe_test_bind_install_and_remove_bind-pkcs11-devel" + }, + { + "name": "oe_test_bind_install_and_remove_bind-sdb" + }, + { + "name": "oe_test_bind_install_and_remove_bind-libs-lite" + }, + { + "name": "oe_test_bind_install_and_remove_bind-sdb-chroot" + }, + { + "name": "oe_test_bind_install_and_remove_bind-export-libs" + }, + { + "name": "oe_test_bind_install_and_remove_bind-export-devel" } ] -} +} \ No newline at end of file diff --git a/suite2cases/binutils.json b/suite2cases/binutils.json index 9c7ffda996dbbd1476aba40fa10410301f6740ff..1bd8a45a5950f7681e8245819fce2fe87afceb76 100644 --- a/suite2cases/binutils.json +++ b/suite2cases/binutils.json @@ -1,29 +1,65 @@ { - "path": "$OET_PATH/testcases/cli-test/binutils", - "cases": [ - { - "name": "oe_test_binutils_objcopy" - }, - { - "name": "oe_test_binutils_size" - }, - { - "name": "oe_test_binutils_strip" - }, - { - "name": "oe_test_binutils_addr2line" - }, - { - "name": "oe_test_binutils_ar" - }, - { - "name": "oe_test_binutils_nm" - }, - { - "name": "oe_test_binutils_objdump" - }, - { - "name": "oe_test_binutils_readelf" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/binutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_binutils_objcopy" + }, + { + "name": "oe_test_binutils_size" + }, + { + "name": "oe_test_binutils_strip" + }, + { + "name": "oe_test_binutils_addr2line" + }, + { + "name": "oe_test_binutils_ar" + }, + { + "name": "oe_test_binutils_nm" + }, + { + "name": "oe_test_binutils_objdump" + }, + { + "name": "oe_test_binutils_readelf" + }, + { + "name": "oe_test_binutils_install_and_remove_binutils" + }, + { + "name": "oe_test_binutils_install_and_remove_binutils-devel" + }, + { + "name": "oe_test_binutils_install_and_remove_binutils-gold" + }, + { + "name": "oe_test_binutils_install_and_remove_cross-binutils-aarch64" + }, + { + "name": "oe_test_binutils_install_and_remove_cross-binutils-x86_64" + }, + { + "name": "oe_test_binutils_install_and_remove_binutils-gprofng" + }, + { + "name": "oe_test_binutils_install_and_remove_cross-binutils-ppc64le" + }, + { + "name": "oe_test_binutils_install_and_remove_cross-binutils-s390x" + }, + { + "name": "oe_test_binutils_install_and_remove_binutils-debugsource" + }, + { + "name": "oe_test_binutils_install_and_remove_binutils-debuginfo" + }, + { + "name": "oe_test_binutils_install_and_remove_binutils-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/biometric-authentication.json b/suite2cases/biometric-authentication.json index 5522885ccc281898fadb7c75f9b6464e7105a989..4fd4fb5473d998ede661839160340cd60dd96ccc 100644 --- a/suite2cases/biometric-authentication.json +++ b/suite2cases/biometric-authentication.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/biometric-authentication", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_biometric-authentication" } ] -} +} \ No newline at end of file diff --git a/suite2cases/bird.json b/suite2cases/bird.json index a96ddbba9c2fe6ff57b3c614201f870f40a1f5a3..b80d3045b0bc56f6723a82cbd33ba69f65ca778a 100644 --- a/suite2cases/bird.json +++ b/suite2cases/bird.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/bird", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_birdcl_01" @@ -28,6 +30,5 @@ { "name": "oe_test_service_bird" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/bison.json b/suite2cases/bison.json index c41e54f80bafd1b8d33eeec6db24f04a5450e21f..29f83dbf0373990fcf087dc5ad507681ec3fd562 100644 --- a/suite2cases/bison.json +++ b/suite2cases/bison.json @@ -1,8 +1,29 @@ { "path": "${OET_PATH}/testcases/cli-test/bison", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_bison" + }, + { + "name": "oe_test_bison_install_and_remove_bison" + }, + { + "name": "oe_test_bison_install_and_remove_bison-lang" + }, + { + "name": "oe_test_bison_install_and_remove_bison-devel" + }, + { + "name": "oe_test_bison_install_and_remove_bison-help" + }, + { + "name": "oe_test_bison_install_and_remove_bison-debugsource" + }, + { + "name": "oe_test_bison_install_and_remove_bison-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/blackbox_exporter.json b/suite2cases/blackbox_exporter.json index b12e632e0c59e4759409e9d29496d6e5a2330a62..dbfc37019622368f88410f65e4ad04ba0e0775e3 100644 --- a/suite2cases/blackbox_exporter.json +++ b/suite2cases/blackbox_exporter.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/blackbox_exporter", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_blackbox_exporter" } ] -} +} \ No newline at end of file diff --git a/suite2cases/blkid.json b/suite2cases/blkid.json index 6751f4a89eed9095802de0cd7f498e8e7f631014..1e9c23e6ff802b5e19bf71d78407244ffae5d4b2 100644 --- a/suite2cases/blkid.json +++ b/suite2cases/blkid.json @@ -1,8 +1,10 @@ { "path": "${OET_PATH}/testcases/cli-test/blkid", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_blkid" } ] -} +} \ No newline at end of file diff --git a/suite2cases/blueman.json b/suite2cases/blueman.json index e26f35f0acaf1cd3d1af2583792cd742b53c85d7..6b8c03a28c7a223cb4c180bfb61a77fc952489c0 100644 --- a/suite2cases/blueman.json +++ b/suite2cases/blueman.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/blueman", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_blueman-mechanism" } ] -} +} \ No newline at end of file diff --git a/suite2cases/bluez.json b/suite2cases/bluez.json index 999911077dffb684872beb3b58c5a165ff5ee0f4..116e786b58cca3d0b57c14c47d3867233809d538 100644 --- a/suite2cases/bluez.json +++ b/suite2cases/bluez.json @@ -1,11 +1,35 @@ { "path": "$OET_PATH/testcases/cli-test/bluez", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_bluetooth-mesh" }, { "name": "oe_test_service_bluetooth" + }, + { + "name": "oe_test_bluez_install_and_remove_bluez" + }, + { + "name": "oe_test_bluez_install_and_remove_bluez-libs" + }, + { + "name": "oe_test_bluez_install_and_remove_bluez-devel" + }, + { + "name": "oe_test_bluez_install_and_remove_bluez-cups" + }, + { + "name": "oe_test_bluez_install_and_remove_bluez-help" + }, + { + "name": "oe_test_bluez_install_and_remove_bluez-debuginfo" + }, + { + "name": "oe_test_bluez_install_and_remove_bluez-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/bolt.json b/suite2cases/bolt.json index e68e4ea608e6664bd211d2347d2c5e659e61cf00..473bc4b5dd6b2ba4dc53da367fb86eca21868735 100644 --- a/suite2cases/bolt.json +++ b/suite2cases/bolt.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/bolt", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_bolt" } ] -} +} \ No newline at end of file diff --git a/suite2cases/boom-boot-1.3.json b/suite2cases/boom-boot-1.3.json index f3daf00e7c821035b409645e8e8699a75be1e7d4..6f7a65aee034f38c6ee3acd3033e74adaef97bb6 100644 --- a/suite2cases/boom-boot-1.3.json +++ b/suite2cases/boom-boot-1.3.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/boom-boot", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_boom_boot_1.3_01" @@ -11,4 +13,4 @@ "name": "oe_test_boom_boot_1.3_03" } ] -} +} \ No newline at end of file diff --git a/suite2cases/boom-boot.json b/suite2cases/boom-boot.json index 608b15109a8fab2fe3a5ae22157c73b7613c9e3c..66506c93170b9f46eacb3f01dcf14f981a02a4e8 100644 --- a/suite2cases/boom-boot.json +++ b/suite2cases/boom-boot.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/boom-boot", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_boom_boot_01" diff --git a/suite2cases/boost.json b/suite2cases/boost.json new file mode 100644 index 0000000000000000000000000000000000000000..c7d5ffd2c8a36cb57ac36e413b3c33ea4c0bb9b4 --- /dev/null +++ b/suite2cases/boost.json @@ -0,0 +1,188 @@ +{ + "path": "$OET_PATH/testcases/cli-test/boost", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_boost_install_and_remove_boost" + }, + { + "name": "oe_test_boost_install_and_remove_boost-filesystem" + }, + { + "name": "oe_test_boost_install_and_remove_boost-json" + }, + { + "name": "oe_test_boost_install_and_remove_boost-log" + }, + { + "name": "oe_test_boost_install_and_remove_boost-random" + }, + { + "name": "oe_test_boost_install_and_remove_boost-thread" + }, + { + "name": "oe_test_boost_install_and_remove_boost-type_erasure" + }, + { + "name": "oe_test_boost_install_and_remove_boost-help" + }, + { + "name": "oe_test_boost_install_and_remove_boost-atomic" + }, + { + "name": "oe_test_boost_install_and_remove_boost-container" + }, + { + "name": "oe_test_boost_install_and_remove_boost-context" + }, + { + "name": "oe_test_boost_install_and_remove_boost-fiber" + }, + { + "name": "oe_test_boost_install_and_remove_boost-math" + }, + { + "name": "oe_test_boost_install_and_remove_boost-nowide" + }, + { + "name": "oe_test_boost_install_and_remove_boost-program-options" + }, + { + "name": "oe_test_boost_install_and_remove_boost-python3" + }, + { + "name": "oe_test_boost_install_and_remove_boost-serialization" + }, + { + "name": "oe_test_boost_install_and_remove_boost-stacktrace" + }, + { + "name": "oe_test_boost_install_and_remove_boost-system" + }, + { + "name": "oe_test_boost_install_and_remove_boost-test" + }, + { + "name": "oe_test_boost_install_and_remove_boost-timer" + }, + { + "name": "oe_test_boost_install_and_remove_boost-wave" + }, + { + "name": "oe_test_boost_install_and_remove_boost-devel" + }, + { + "name": "oe_test_boost_install_and_remove_boost-chrono" + }, + { + "name": "oe_test_boost_install_and_remove_boost-contract" + }, + { + "name": "oe_test_boost_install_and_remove_boost-coroutine" + }, + { + "name": "oe_test_boost_install_and_remove_boost-date-time" + }, + { + "name": "oe_test_boost_install_and_remove_boost-graph" + }, + { + "name": "oe_test_boost_install_and_remove_boost-iostreams" + }, + { + "name": "oe_test_boost_install_and_remove_boost-locale" + }, + { + "name": "oe_test_boost_install_and_remove_boost-regex" + }, + { + "name": "oe_test_boost_install_and_remove_boost-url" + }, + { + "name": "oe_test_boost_install_and_remove_boost-debugsource" + }, + { + "name": "oe_test_boost_install_and_remove_boost-debuginfo" + }, + { + "name": "oe_test_boost_install_and_remove_boost-examples" + }, + { + "name": "oe_test_boost_install_and_remove_boost-openmpi-devel" + }, + { + "name": "oe_test_boost_install_and_remove_boost-mpich-devel" + }, + { + "name": "oe_test_boost_install_and_remove_boost-mpich-python3-devel" + }, + { + "name": "oe_test_boost_install_and_remove_boost-build" + }, + { + "name": "oe_test_boost_install_and_remove_boost-python3-devel" + }, + { + "name": "oe_test_boost_install_and_remove_boost-mpich" + }, + { + "name": "oe_test_boost_install_and_remove_boost-mpich-python3" + }, + { + "name": "oe_test_boost_install_and_remove_boost-graph-mpich" + }, + { + "name": "oe_test_boost_install_and_remove_boost-doctools" + }, + { + "name": "oe_test_boost_install_and_remove_boost-numpy3" + }, + { + "name": "oe_test_boost_install_and_remove_boost-openmpi" + }, + { + "name": "oe_test_boost_install_and_remove_boost-openmpi-python3" + }, + { + "name": "oe_test_boost_install_and_remove_boost-openmpi-python3-devel" + }, + { + "name": "oe_test_boost_install_and_remove_boost-graph-openmpi" + }, + { + "name": "oe_test_boost_install_and_remove_boost-jam" + }, + { + "name": "oe_test_boost_install_and_remove_boost-signals" + }, + { + "name": "oe_test_boost_install_and_remove_boost-python2" + }, + { + "name": "oe_test_boost_install_and_remove_boost-numpy2" + }, + { + "name": "oe_test_boost_install_and_remove_boost-python2-devel" + }, + { + "name": "oe_test_boost_install_and_remove_boost-static" + }, + { + "name": "oe_test_boost_install_and_remove_boost-b2" + }, + { + "name": "oe_test_boost_install_and_remove_boost-doc" + }, + { + "name": "oe_test_boost_install_and_remove_boost-mpich-python" + }, + { + "name": "oe_test_boost_install_and_remove_boost-python" + }, + { + "name": "oe_test_boost_install_and_remove_boost-openmpi-python" + } + ] +} \ No newline at end of file diff --git a/suite2cases/booth.json b/suite2cases/booth.json index 9e8c14c52ae094466fc456711405e470d00cdf02..e7f9f221024b905b388874cf2eefc05c444dc631 100644 --- a/suite2cases/booth.json +++ b/suite2cases/booth.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/booth", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_booth-arbitrator" } ] -} +} \ No newline at end of file diff --git a/suite2cases/bridge-utils.json b/suite2cases/bridge-utils.json new file mode 100644 index 0000000000000000000000000000000000000000..306b0a62c33e2ecd2b9d8a1098fbedb4171bbbeb --- /dev/null +++ b/suite2cases/bridge-utils.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/bridge-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_bridge-utils_install_and_remove_bridge-utils" + }, + { + "name": "oe_test_bridge-utils_install_and_remove_bridge-utils-debuginfo" + }, + { + "name": "oe_test_bridge-utils_install_and_remove_bridge-utils-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/brltty.json b/suite2cases/brltty.json index 859d31067927e72530ca866d88d466ee69dac1da..f593bc1304ddb3e90570acb54d19a70fbad2865f 100644 --- a/suite2cases/brltty.json +++ b/suite2cases/brltty.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/brltty", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_brltty" } ] -} +} \ No newline at end of file diff --git a/suite2cases/brotli.json b/suite2cases/brotli.json new file mode 100644 index 0000000000000000000000000000000000000000..50d1fced7882ca8a52a8ab35223fa7957106d902 --- /dev/null +++ b/suite2cases/brotli.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/brotli", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_brotli_install_and_remove_brotli" + }, + { + "name": "oe_test_brotli_install_and_remove_brotli-devel" + }, + { + "name": "oe_test_brotli_install_and_remove_python3-brotli" + }, + { + "name": "oe_test_brotli_install_and_remove_brotli-help" + }, + { + "name": "oe_test_brotli_install_and_remove_brotli-debugsource" + }, + { + "name": "oe_test_brotli_install_and_remove_brotli-debuginfo" + }, + { + "name": "oe_test_brotli_install_and_remove_python2-brotli" + } + ] +} \ No newline at end of file diff --git a/suite2cases/btrfs-progs.json b/suite2cases/btrfs-progs.json new file mode 100644 index 0000000000000000000000000000000000000000..e66ccfca3b2763c1ca4c4033da00802817b48b06 --- /dev/null +++ b/suite2cases/btrfs-progs.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/btrfs-progs", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_btrfs-progs_install_and_remove_btrfs-progs" + }, + { + "name": "oe_test_btrfs-progs_install_and_remove_btrfs-progs-help" + }, + { + "name": "oe_test_btrfs-progs_install_and_remove_btrfs-progs-devel" + }, + { + "name": "oe_test_btrfs-progs_install_and_remove_btrfs-progs-debugsource" + }, + { + "name": "oe_test_btrfs-progs_install_and_remove_btrfs-progs-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/bubblewrap.json b/suite2cases/bubblewrap.json new file mode 100644 index 0000000000000000000000000000000000000000..08f31caaa20e6b7ff9be18b4433350f5ef0f6274 --- /dev/null +++ b/suite2cases/bubblewrap.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/bubblewrap", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_bubblewrap_install_and_remove_bubblewrap" + }, + { + "name": "oe_test_bubblewrap_install_and_remove_bubblewrap-debuginfo" + }, + { + "name": "oe_test_bubblewrap_install_and_remove_bubblewrap-help" + }, + { + "name": "oe_test_bubblewrap_install_and_remove_bubblewrap-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/byacc.json b/suite2cases/byacc.json index 8bc6e2b800593c619b5e8f4735bfdccf2bc25a93..99dc696f79a291d3f49e9e8b44b35fc64c5099d9 100644 --- a/suite2cases/byacc.json +++ b/suite2cases/byacc.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/byacc", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_byacc_byacc_01" @@ -12,6 +15,18 @@ }, { "name": "oe_test_byacc_yacc_02" + }, + { + "name": "oe_test_byacc_install_and_remove_byacc" + }, + { + "name": "oe_test_byacc_install_and_remove_byacc-help" + }, + { + "name": "oe_test_byacc_install_and_remove_byacc-debugsource" + }, + { + "name": "oe_test_byacc_install_and_remove_byacc-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/byacc2.0.json b/suite2cases/byacc2.0.json index d6621f82b6afdf904703262967729d6c7781476c..06203f004d67cd034ed0f9a496b23ac469bad55f 100644 --- a/suite2cases/byacc2.0.json +++ b/suite2cases/byacc2.0.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/byacc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_byacc2.0_byacc_03" @@ -8,4 +10,4 @@ "name": "oe_test_byacc2.0_yacc_03" } ] -} +} \ No newline at end of file diff --git a/suite2cases/bzip2.json b/suite2cases/bzip2.json index 71212e15c7583c771f6692e33d44fee2fdf2fdf7..bfc8090564f22398b00e6a5847339c1c04340e85 100644 --- a/suite2cases/bzip2.json +++ b/suite2cases/bzip2.json @@ -1,23 +1,41 @@ { "path": "${OET_PATH}/testcases/cli-test/bzip2", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_bzip2" }, - { - "name": "oe_test_bzip2_01" - }, - { - "name": "oe_test_bzip2_02" - }, - { - "name": "oe_test_bzip2_03" - }, - { - "name": "oe_test_bzip2_04" - }, - { + { + "name": "oe_test_bzip2_01" + }, + { + "name": "oe_test_bzip2_02" + }, + { + "name": "oe_test_bzip2_03" + }, + { + "name": "oe_test_bzip2_04" + }, + { "name": "oe_test_bzegrep_001" + }, + { + "name": "oe_test_bzip2_install_and_remove_bzip2" + }, + { + "name": "oe_test_bzip2_install_and_remove_bzip2-devel" + }, + { + "name": "oe_test_bzip2_install_and_remove_bzip2-debugsource" + }, + { + "name": "oe_test_bzip2_install_and_remove_bzip2-help" + }, + { + "name": "oe_test_bzip2_install_and_remove_bzip2-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/c-ares.json b/suite2cases/c-ares.json new file mode 100644 index 0000000000000000000000000000000000000000..022b3967e863d78e11d063a10500f1aefbc60c25 --- /dev/null +++ b/suite2cases/c-ares.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/c-ares", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_c-ares_install_and_remove_c-ares" + }, + { + "name": "oe_test_c-ares_install_and_remove_c-ares-devel" + }, + { + "name": "oe_test_c-ares_install_and_remove_c-ares-help" + }, + { + "name": "oe_test_c-ares_install_and_remove_c-ares-debugsource" + }, + { + "name": "oe_test_c-ares_install_and_remove_c-ares-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ca-certificates.json b/suite2cases/ca-certificates.json new file mode 100644 index 0000000000000000000000000000000000000000..8452527d48fd67de0d0410ad25b6b435f7c88ff9 --- /dev/null +++ b/suite2cases/ca-certificates.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/ca-certificates", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ca-certificates_install_and_remove_ca-certificates" + } + ] +} \ No newline at end of file diff --git a/suite2cases/cachefilesd.json b/suite2cases/cachefilesd.json index 121850a2cdb3d506c876ce642ff8cd0e29d788cf..bcdaf5c8ea7821bf8da4305bee23da048b4e3f53 100644 --- a/suite2cases/cachefilesd.json +++ b/suite2cases/cachefilesd.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/cachefilesd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_cachefilesd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ceph.json b/suite2cases/ceph.json index 32c8cf3bf68e492f8a0715158762e2de0a13d4bc..349c99fffe1540f9093afcf388a6d81417425508 100644 --- a/suite2cases/ceph.json +++ b/suite2cases/ceph.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/ceph", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_rbdmap" @@ -38,4 +40,4 @@ "name": "oe_test_target_ceph-immutable-object-cache" } ] -} +} \ No newline at end of file diff --git a/suite2cases/certmonger.json b/suite2cases/certmonger.json index 5fb67788fd0a1b07885a4515693231721744681f..772a71b7a7867ce5758e2e7838d803d647023633 100644 --- a/suite2cases/certmonger.json +++ b/suite2cases/certmonger.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/certmonger", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_certmonger" } ] -} +} \ No newline at end of file diff --git a/suite2cases/cgdcbxd.json b/suite2cases/cgdcbxd.json index b439b659c6a7520bc6f7f1c5b9f1477242e10d7c..e013ba66d554b9bf9cb06154b263967a94da0655 100644 --- a/suite2cases/cgdcbxd.json +++ b/suite2cases/cgdcbxd.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/cgdcbxd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_cgdcbxd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/checkpolicy.json b/suite2cases/checkpolicy.json index e86d484c50908a6bfe08a9bdb64b610ae1bc5b18..24e0d126c3ada17c8978b45f70c20c3a0596049d 100644 --- a/suite2cases/checkpolicy.json +++ b/suite2cases/checkpolicy.json @@ -1,9 +1,11 @@ { "path": "$OET_PATH/testcases/cli-test/checkpolicy", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_checkpolicy" } - ] } \ No newline at end of file diff --git a/suite2cases/chrony.json b/suite2cases/chrony.json index 067a120a7d0cd674d78631cd73606ee493c14abf..0210169b95400b78f6235d171994cb1472d7e9ad 100644 --- a/suite2cases/chrony.json +++ b/suite2cases/chrony.json @@ -1,6 +1,9 @@ { "path": "$OET_PATH/testcases/cli-test/chrony", "machine num": 2, + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_chronyd" @@ -10,4 +13,4 @@ "machine num": 2 } ] -} +} \ No newline at end of file diff --git a/suite2cases/chrpath.json b/suite2cases/chrpath.json index d9bd6441b94af0a6ddcbb4e5f2df8569e198bbb9..1287ae093cb09da6892442028ec77c84876bf54c 100644 --- a/suite2cases/chrpath.json +++ b/suite2cases/chrpath.json @@ -1,8 +1,11 @@ { - "path": "$OET_PATH/testcases/cli-test/chrpath", - "cases": [ - { - "name": "oe_test_chrpath" - } - ] + "path": "$OET_PATH/testcases/cli-test/chrpath", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_chrpath" + } + ] } \ No newline at end of file diff --git a/suite2cases/clamav.json b/suite2cases/clamav.json index 19d974856a7a043d3eb792772e6fb4d842eaa348..7e15376ce90a9f79915e0dfdf0f850c5614d8580 100644 --- a/suite2cases/clamav.json +++ b/suite2cases/clamav.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/clamav", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_clamav-clamonacc" @@ -50,4 +52,4 @@ "name": "oe_test_clamav_sigtool_2" } ] -} +} \ No newline at end of file diff --git a/suite2cases/clang.json b/suite2cases/clang.json index 090fef0d71d1233f37d30dfe8eccf78483fdb3bd..9777d6fbbe593dd268ea0d78a8f1fffb78df21e9 100644 --- a/suite2cases/clang.json +++ b/suite2cases/clang.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/clang", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_clang_01" @@ -10,8 +13,8 @@ { "name": "oe_test_clang_03" }, - { - "name": "oe_test_clang_04" - } + { + "name": "oe_test_clang_04" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/clevis.json b/suite2cases/clevis.json index ae6475ec0662574e5edfe2eaffe51641a85c153c..b9742eb1501a702fb2ae9a9a90c5d8a054e4222e 100644 --- a/suite2cases/clevis.json +++ b/suite2cases/clevis.json @@ -1,7 +1,11 @@ { "path": "$OET_PATH/testcases/cli-test/clevis", "machine num": 2, - "add disk": [10], + "add disk": [ + 10 + ], + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_clevis-luks-askpass" @@ -9,7 +13,9 @@ { "name": "oe_test_high_nbde", "machine num": 2, - "add disk": [10] + "add disk": [ + 10 + ] }, { "name": "oe_test_install_clevis" @@ -21,4 +27,4 @@ "name": "oe_test_tang_nbde" } ] -} +} \ No newline at end of file diff --git a/suite2cases/cloud-init.json b/suite2cases/cloud-init.json index 7fa7dc86fc69a18815e8e7ffd88d4cd14c29b3b0..a7f094628ef3b8243091ade16cbf39860ef17791 100644 --- a/suite2cases/cloud-init.json +++ b/suite2cases/cloud-init.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/cloud-init", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_cloud-config" @@ -26,4 +28,4 @@ "name": "oe_test_socket_cloud-init-hotplugd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/cmake.json b/suite2cases/cmake.json index 4526a203ee439c230a2f0ac4742fb313ad873f26..6751399fad9ae3a2367e19a088e72dd9cb941259 100644 --- a/suite2cases/cmake.json +++ b/suite2cases/cmake.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/cmake", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ccmake" diff --git a/suite2cases/cobbler.json b/suite2cases/cobbler.json index b788b28371776a9dec407835abe9af8b85eba852..c4f16898c0c86113e00b6bcd280ac06ac0e73022 100644 --- a/suite2cases/cobbler.json +++ b/suite2cases/cobbler.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/cobbler", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_cobbler_distro" @@ -8,7 +10,7 @@ "name": "oe_test_cobbler_profile" }, { - "name": "oe_test_cobbler_system" + "name": "oe_test_cobbler_system" }, { "name": "oe_test_cobbler_repo" @@ -31,5 +33,5 @@ { "name": "oe_test_service_cobblerd" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/cockpit.json b/suite2cases/cockpit.json index debf526a41d8cbe2f339ceae04796d6efa21a6b5..56d4c03796e79f3c359d8be38302b230fb5ba168 100644 --- a/suite2cases/cockpit.json +++ b/suite2cases/cockpit.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/cockpit", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_cockpit-motd" @@ -13,8 +15,8 @@ { "name": "oe_test_service_cockpit-wsinstance-http" }, - { + { "name": "oe_test_cockpit" } ] -} +} \ No newline at end of file diff --git a/suite2cases/collectd.json b/suite2cases/collectd.json index e806e1db3d5368ff3753d46d2bb6876590d2a814..0c795dbe0749053193321a59789d1b92b2c515d8 100644 --- a/suite2cases/collectd.json +++ b/suite2cases/collectd.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/collectd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_collectd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/colm.json b/suite2cases/colm.json index ce3692dd0a73a39f80ded305ed5b418b310671aa..4b63fa5fdb2dc9b79d513b1b12ca26af5b347532 100644 --- a/suite2cases/colm.json +++ b/suite2cases/colm.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/colm", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_colm" diff --git a/suite2cases/color-filesystem.json b/suite2cases/color-filesystem.json new file mode 100644 index 0000000000000000000000000000000000000000..44110fb8115b9b9513c7cc1e2719de09d695a524 --- /dev/null +++ b/suite2cases/color-filesystem.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/color-filesystem", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_color-filesystem_install_and_remove_color-filesystem" + } + ] +} \ No newline at end of file diff --git a/suite2cases/colord.json b/suite2cases/colord.json index e884434b16831ba1625ae7792f13355a494a622b..f7151b7e5a416f6f15f75b31f1347f6dad679a71 100644 --- a/suite2cases/colord.json +++ b/suite2cases/colord.json @@ -1,8 +1,41 @@ { "path": "$OET_PATH/testcases/cli-test/colord", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_colord" + }, + { + "name": "oe_test_colord_install_and_remove_colord" + }, + { + "name": "oe_test_colord_install_and_remove_colord-devel" + }, + { + "name": "oe_test_colord_install_and_remove_colord-libs" + }, + { + "name": "oe_test_colord_install_and_remove_colord-help" + }, + { + "name": "oe_test_colord_install_and_remove_colord-debuginfo" + }, + { + "name": "oe_test_colord_install_and_remove_colord-debugsource" + }, + { + "name": "oe_test_colord_install_and_remove_colord-doc" + }, + { + "name": "oe_test_colord_install_and_remove_colord-devel-docs" + }, + { + "name": "oe_test_colord_install_and_remove_colord-extra-profiles" + }, + { + "name": "oe_test_colord_install_and_remove_colord-tests" } ] -} +} \ No newline at end of file diff --git a/suite2cases/compile-test.json b/suite2cases/compile-test.json index 1b29ae1cea4e3da2c18c820901e6263b516e36b3..f86ff4c42dd469d35c31c0c6cbe5d6e07ab570c2 100644 --- a/suite2cases/compile-test.json +++ b/suite2cases/compile-test.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/system-test/compile-test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_compile" diff --git a/suite2cases/conmon.json b/suite2cases/conmon.json index 68c44b12504b9b18c3ff8f250f250aae9a648bfa..e89cd70b4189eefcc628e343469fa8021ceda889 100644 --- a/suite2cases/conmon.json +++ b/suite2cases/conmon.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/cli-test/conmon", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_conmon_01" @@ -14,4 +16,4 @@ "name": "oe_test_conmon_04" } ] -} +} \ No newline at end of file diff --git a/suite2cases/conntrack-tools.json b/suite2cases/conntrack-tools.json index e3a56150a447654a0fd7817127f2a739a0d1dfaa..3a925dc148be02f401e1aa6107318fa00248148d 100644 --- a/suite2cases/conntrack-tools.json +++ b/suite2cases/conntrack-tools.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/conntrack-tools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_conntrackd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/console-setup.json b/suite2cases/console-setup.json index 17343d6e3f53c244ce10a606779475ccc27cd539..81f632b146a65881d35c3079bea3f515bab14ac8 100644 --- a/suite2cases/console-setup.json +++ b/suite2cases/console-setup.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/console-setup", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_console-setup_ckbcomp_01" @@ -12,7 +15,12 @@ }, { "name": "oe_test_console-setup_setupcon_02" + }, + { + "name": "oe_test_console-setup_install_and_remove_console-setup" + }, + { + "name": "oe_test_console-setup_install_and_remove_console-setup-help" } - ] } \ No newline at end of file diff --git a/suite2cases/container-exception-logger.json b/suite2cases/container-exception-logger.json index f200da3ff006fb413ba27066b182eac0611da4f9..e6266e93e8a3719df796ac536b7548d839d76d64 100644 --- a/suite2cases/container-exception-logger.json +++ b/suite2cases/container-exception-logger.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/container-exception-logger", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_container-exception-logger" diff --git a/suite2cases/containerd.json b/suite2cases/containerd.json index 62dc8998b3efde099b1f0e260b316279b93fdb49..dd7e57688a5fd0422731fdd3a5c85bc1d21ab9b5 100644 --- a/suite2cases/containerd.json +++ b/suite2cases/containerd.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/containerd", - "cases": [ - { - "name": "oe_test_containerd" - } - ] + "path": "$OET_PATH/testcases/cli-test/containerd", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_containerd" + } + ] } \ No newline at end of file diff --git a/suite2cases/coreutils.json b/suite2cases/coreutils.json index 8dfc7655c479320960dc2d242b4f3aeea5ef1d39..d761adf5997a8e1aee0ca368e6640748bc7afc37 100644 --- a/suite2cases/coreutils.json +++ b/suite2cases/coreutils.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/coreutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_numfmt" + }, + { + "name": "oe_test_coreutils_install_and_remove_coreutils" + }, + { + "name": "oe_test_coreutils_install_and_remove_coreutils-debugsource" + }, + { + "name": "oe_test_coreutils_install_and_remove_coreutils-help" + }, + { + "name": "oe_test_coreutils_install_and_remove_coreutils-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/corosync-qdevice.json b/suite2cases/corosync-qdevice.json index 0b095254d8665e76201b1fe36540feedede59e31..67f5aaa8adc331e806f0f99386419273e38ac2ad 100644 --- a/suite2cases/corosync-qdevice.json +++ b/suite2cases/corosync-qdevice.json @@ -1,7 +1,9 @@ { "path": "$OET_PATH/testcases/cli-test/corosync-qdevice", "machine num": 3, - "machine type": "physical", + "machine type": "physical", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_corosync-qdevice", @@ -14,4 +16,4 @@ "machine type": "physical" } ] -} +} \ No newline at end of file diff --git a/suite2cases/corosync.json b/suite2cases/corosync.json index 075daa47e8685b6526d9ed20862024a972e6bc37..a744e38e2e6cb8af22fda139f9afa9983e098863 100644 --- a/suite2cases/corosync.json +++ b/suite2cases/corosync.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/corosync", - "machine num": 2, + "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_spausedd" @@ -14,4 +16,4 @@ "machine num": 2 } ] -} +} \ No newline at end of file diff --git a/suite2cases/cowsay.json b/suite2cases/cowsay.json index 2d14b783118018acb21902f247c6b6139c05dac9..2014fb78d50d825a6838350bd5393d057da0e1bd 100644 --- a/suite2cases/cowsay.json +++ b/suite2cases/cowsay.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/cowsay", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_cowsay" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/cpio.json b/suite2cases/cpio.json index b8ffe102fab1c189d25200d76fd0919909b7fdf1..7139553c9967f141d62371fd35ece1156e873867 100644 --- a/suite2cases/cpio.json +++ b/suite2cases/cpio.json @@ -1,8 +1,23 @@ { "path": "${OET_PATH}/testcases/cli-test/cpio", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_cpio" + }, + { + "name": "oe_test_cpio_install_and_remove_cpio" + }, + { + "name": "oe_test_cpio_install_and_remove_cpio-debuginfo" + }, + { + "name": "oe_test_cpio_install_and_remove_cpio-debugsource" + }, + { + "name": "oe_test_cpio_install_and_remove_cpio-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/cpp-httplib.json b/suite2cases/cpp-httplib.json index 504e2a0c5bec9b1643179673e1e86bbc4136d311..2844294106cdbcabf55a2fd1589e7a2a33b3384e 100644 --- a/suite2cases/cpp-httplib.json +++ b/suite2cases/cpp-httplib.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/cpp-httplib", - "cases": [ - { - "name": "oe_test_cpp-httplib" - } - ] + "path": "$OET_PATH/testcases/cli-test/cpp-httplib", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_cpp-httplib" + } + ] } \ No newline at end of file diff --git a/suite2cases/cppcheck.json b/suite2cases/cppcheck.json index cce54250922dcefccc91f6e246a0ccbd3316fee7..92b47f9982ed22810c6543167b556d5d1396834d 100644 --- a/suite2cases/cppcheck.json +++ b/suite2cases/cppcheck.json @@ -1,11 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/cppcheck", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_cppcheck" }, { "name": "oe_test_cppcheck-htmlreport" + }, + { + "name": "oe_test_cppcheck_install_and_remove_cppcheck" + }, + { + "name": "oe_test_cppcheck_install_and_remove_cppcheck-help" + }, + { + "name": "oe_test_cppcheck_install_and_remove_cppcheck-debuginfo" + }, + { + "name": "oe_test_cppcheck_install_and_remove_cppcheck-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/cppunit.json b/suite2cases/cppunit.json new file mode 100644 index 0000000000000000000000000000000000000000..614ed5f15fb541a62342880b164a0debb3723cb5 --- /dev/null +++ b/suite2cases/cppunit.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/cppunit", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_cppunit_install_and_remove_cppunit" + }, + { + "name": "oe_test_cppunit_install_and_remove_cppunit-help" + }, + { + "name": "oe_test_cppunit_install_and_remove_cppunit-devel" + }, + { + "name": "oe_test_cppunit_install_and_remove_cppunit-debugsource" + }, + { + "name": "oe_test_cppunit_install_and_remove_cppunit-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/cracklib.json b/suite2cases/cracklib.json index 0d6572e6bc852455cd9006a4b9ea4451f161409f..cafcd5d82c998aa49781abb74dc20dd7a7f165bd 100644 --- a/suite2cases/cracklib.json +++ b/suite2cases/cracklib.json @@ -1,8 +1,32 @@ { "path": "$OET_PATH/testcases/cli-test/cracklib", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_cracklib" + }, + { + "name": "oe_test_cracklib_install_and_remove_cracklib" + }, + { + "name": "oe_test_cracklib_install_and_remove_cracklib-devel" + }, + { + "name": "oe_test_cracklib_install_and_remove_python3-cracklib" + }, + { + "name": "oe_test_cracklib_install_and_remove_cracklib-debuginfo" + }, + { + "name": "oe_test_cracklib_install_and_remove_cracklib-debugsource" + }, + { + "name": "oe_test_cracklib_install_and_remove_cracklib-help" + }, + { + "name": "oe_test_cracklib_install_and_remove_python2-cracklib" } ] -} +} \ No newline at end of file diff --git a/suite2cases/crash.json b/suite2cases/crash.json new file mode 100644 index 0000000000000000000000000000000000000000..5c54f55b7bf526f28613f2d6051517741ecedb12 --- /dev/null +++ b/suite2cases/crash.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/crash", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_crash_install_and_remove_crash" + }, + { + "name": "oe_test_crash_install_and_remove_crash-devel" + }, + { + "name": "oe_test_crash_install_and_remove_crash-help" + }, + { + "name": "oe_test_crash_install_and_remove_crash-debuginfo" + }, + { + "name": "oe_test_crash_install_and_remove_crash-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/createrepo_c.json b/suite2cases/createrepo_c.json index 463b0ddfc4c7ab172a97167891899f7980086e1e..091c3606e3a35289296fda655bfa0f3b100c5ba3 100644 --- a/suite2cases/createrepo_c.json +++ b/suite2cases/createrepo_c.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/createrepo_c", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_createrepo_c_local_repo" @@ -12,7 +15,27 @@ }, { "name": "oe_test_createrepo_c_BaseFun" + }, + { + "name": "oe_test_createrepo_c_install_and_remove_createrepo_c" + }, + { + "name": "oe_test_createrepo_c_install_and_remove_createrepo_c-devel" + }, + { + "name": "oe_test_createrepo_c_install_and_remove_python3-createrepo_c" + }, + { + "name": "oe_test_createrepo_c_install_and_remove_createrepo_c-help" + }, + { + "name": "oe_test_createrepo_c_install_and_remove_createrepo_c-debuginfo" + }, + { + "name": "oe_test_createrepo_c_install_and_remove_createrepo_c-debugsource" + }, + { + "name": "oe_test_createrepo_c_install_and_remove_python2-createrepo_c" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/cri-o.json b/suite2cases/cri-o.json index 50e983721f90f83cd1f276e31826814d71ad06b9..659f3f8357b71894775746ca16bb9f68110c8c33 100644 --- a/suite2cases/cri-o.json +++ b/suite2cases/cri-o.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/cri-o", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_crio-wipe" @@ -8,4 +10,4 @@ "name": "oe_test_service_crio" } ] -} +} \ No newline at end of file diff --git a/suite2cases/criu.json b/suite2cases/criu.json index b4d6231388c07948889fe33cb37d968e3eac63b5..13ca0c0172b00905e6525ca164aa3e820af55458 100644 --- a/suite2cases/criu.json +++ b/suite2cases/criu.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/criu", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_criu_base" @@ -61,5 +63,5 @@ { "name": "oe_test_criu_base_service" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/criu_3.15.json b/suite2cases/criu_3.15.json index 3081534a65f1efae0129b1b0da169311e8ac3864..bd426301fb77051a49f0d6775ecc2efbaf5f77a9 100644 --- a/suite2cases/criu_3.15.json +++ b/suite2cases/criu_3.15.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/criu", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_criu_3.15" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/criu_3.16.json b/suite2cases/criu_3.16.json index bc16a4c8bb8c2c8d3f1201bbee0236e10e5b4bfd..b817e46364240a1e0039287689ee08e6fa0bbd7f 100644 --- a/suite2cases/criu_3.16.json +++ b/suite2cases/criu_3.16.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/criu", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_criu_3.16" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/cronie.json b/suite2cases/cronie.json index 20617b02c745c1abd273ad086392b10e1b179ef1..68af34b70f18a0ddd3222ee519b598cc3ec7cc4e 100644 --- a/suite2cases/cronie.json +++ b/suite2cases/cronie.json @@ -1,11 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/cronie", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_crond" }, { "name": "oe_test_cronie" + }, + { + "name": "oe_test_cronie_install_and_remove_cronie" + }, + { + "name": "oe_test_cronie_install_and_remove_cronie-help" + }, + { + "name": "oe_test_cronie_install_and_remove_cronie-debugsource" + }, + { + "name": "oe_test_cronie_install_and_remove_cronie-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/crontabs.json b/suite2cases/crontabs.json index eb9b7410bf36c22da63674fd27fccd88ee8aaa88..67bee2d0830b494a774997f55e77329b1832f795 100644 --- a/suite2cases/crontabs.json +++ b/suite2cases/crontabs.json @@ -1,11 +1,20 @@ { "path": "$OET_PATH/testcases/cli-test/crontabs", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_crontabs" }, { "name": "oe_test_crontabs_002" + }, + { + "name": "oe_test_crontabs_install_and_remove_crontabs" + }, + { + "name": "oe_test_crontabs_install_and_remove_crontabs-help" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/crypto-policies.json b/suite2cases/crypto-policies.json new file mode 100644 index 0000000000000000000000000000000000000000..053170476f39e064ace27dc5c44530ba17e3b22c --- /dev/null +++ b/suite2cases/crypto-policies.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/crypto-policies", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_crypto-policies_install_and_remove_crypto-policies" + }, + { + "name": "oe_test_crypto-policies_install_and_remove_crypto-policies-scripts" + } + ] +} \ No newline at end of file diff --git a/suite2cases/cryptsetup.json b/suite2cases/cryptsetup.json index 2782bf018d557cbf1c94d6eb23900eb20ba2f9e4..d19ecfb4b0bc1eee3d56246918435e6db30616d0 100644 --- a/suite2cases/cryptsetup.json +++ b/suite2cases/cryptsetup.json @@ -1,6 +1,11 @@ { "path": "$OET_PATH/testcases/cli-test/cryptsetup", - "add disk": [10], + "add disk": [ + 10 + ], + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_encrypt_data" @@ -10,7 +15,39 @@ }, { "name": "oe_test_use_luks", - "add disk": [10] + "add disk": [ + 10 + ] + }, + { + "name": "oe_test_cryptsetup_install_and_remove_cryptsetup" + }, + { + "name": "oe_test_cryptsetup_install_and_remove_integritysetup" + }, + { + "name": "oe_test_cryptsetup_install_and_remove_cryptsetup-help" + }, + { + "name": "oe_test_cryptsetup_install_and_remove_cryptsetup-devel" + }, + { + "name": "oe_test_cryptsetup_install_and_remove_veritysetup" + }, + { + "name": "oe_test_cryptsetup_install_and_remove_cryptsetup-debuginfo" + }, + { + "name": "oe_test_cryptsetup_install_and_remove_cryptsetup-debugsource" + }, + { + "name": "oe_test_cryptsetup_install_and_remove_cryptsetup-reencrypt" + }, + { + "name": "oe_test_cryptsetup_install_and_remove_python2-cryptsetup" + }, + { + "name": "oe_test_cryptsetup_install_and_remove_cryptsetup-python3" } ] -} +} \ No newline at end of file diff --git a/suite2cases/cscope.json b/suite2cases/cscope.json new file mode 100644 index 0000000000000000000000000000000000000000..840489572a4df8c06efbfb5e9ac2f98a64f13f2b --- /dev/null +++ b/suite2cases/cscope.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/cscope", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_cscope_install_and_remove_cscope" + }, + { + "name": "oe_test_cscope_install_and_remove_cscope-help" + }, + { + "name": "oe_test_cscope_install_and_remove_cscope-debugsource" + }, + { + "name": "oe_test_cscope_install_and_remove_cscope-debuginfo" + }, + { + "name": "oe_test_cscope_install_and_remove_cscope-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/csmith-test.json b/suite2cases/csmith-test.json new file mode 100644 index 0000000000000000000000000000000000000000..11673398bc1311a8fc6c84c4136c793d99a1e534 --- /dev/null +++ b/suite2cases/csmith-test.json @@ -0,0 +1,10 @@ +{ + "path": "${OET_PATH}/testcases/system-test/compiler-test/csmith-test", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_csmith-test" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ctags.json b/suite2cases/ctags.json index c68a3e926129c39dc8ff84ad11d1f4c2d4b8cee1..9b2586d2d469b5e8f6a63bd43dbfb9c0d6e31fcf 100644 --- a/suite2cases/ctags.json +++ b/suite2cases/ctags.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/ctags", - "cases": [ - { - "name": "oe_test_ctags" - } - ] + "path": "$OET_PATH/testcases/cli-test/ctags", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ctags" + } + ] } \ No newline at end of file diff --git a/suite2cases/cups-filters.json b/suite2cases/cups-filters.json index 4208c6673b69bf47ad804ba5f650ec80ad6403c0..cd05175a3cd1aea50e8cfea6188b04e2bde2fd75 100644 --- a/suite2cases/cups-filters.json +++ b/suite2cases/cups-filters.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/cups-filters", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_cups-browsed" } ] -} +} \ No newline at end of file diff --git a/suite2cases/cups.json b/suite2cases/cups.json index 88a412092dd9d672548ead6d3282b262d4b64e8d..2f28b7b44832c86f8a0a58a86237f59e4b77e164 100644 --- a/suite2cases/cups.json +++ b/suite2cases/cups.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/cups", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_cups" @@ -9,6 +12,39 @@ }, { "name": "oe_test_socket_cups" + }, + { + "name": "oe_test_cups_install_and_remove_cups" + }, + { + "name": "oe_test_cups_install_and_remove_cups-devel" + }, + { + "name": "oe_test_cups_install_and_remove_cups-filesystem" + }, + { + "name": "oe_test_cups_install_and_remove_cups-ipptool" + }, + { + "name": "oe_test_cups_install_and_remove_cups-help" + }, + { + "name": "oe_test_cups_install_and_remove_cups-client" + }, + { + "name": "oe_test_cups_install_and_remove_cups-libs" + }, + { + "name": "oe_test_cups_install_and_remove_cups-lpd" + }, + { + "name": "oe_test_cups_install_and_remove_cups-printerapp" + }, + { + "name": "oe_test_cups_install_and_remove_cups-debuginfo" + }, + { + "name": "oe_test_cups_install_and_remove_cups-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/curl.json b/suite2cases/curl.json index 7a0b64a9c778f477c1f5cf4ef26577410c43a7ea..5fed9b1e419dc867dbae74317df505a92434f4ff 100644 --- a/suite2cases/curl.json +++ b/suite2cases/curl.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/curl", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_curl_curl-config_001" @@ -27,6 +30,27 @@ }, { "name": "oe_test_curl_curl_007" + }, + { + "name": "oe_test_curl_install_and_remove_curl" + }, + { + "name": "oe_test_curl_install_and_remove_libcurl" + }, + { + "name": "oe_test_curl_install_and_remove_libcurl-devel" + }, + { + "name": "oe_test_curl_install_and_remove_curl-help" + }, + { + "name": "oe_test_curl_install_and_remove_curl-debugsource" + }, + { + "name": "oe_test_curl_install_and_remove_curl-debuginfo" + }, + { + "name": "oe_test_curl_install_and_remove_curl-devel" } ] } \ No newline at end of file diff --git a/suite2cases/custodia.json b/suite2cases/custodia.json index e8c5abd5b550635f86e7d1844b13fd69df383867..3623461d0a289c650ae27e19ec3837dd7c0e8982 100644 --- a/suite2cases/custodia.json +++ b/suite2cases/custodia.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/custodia", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_custodia" @@ -13,5 +15,5 @@ { "name": "oe_test_custodia-cli_03" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/cvs.json b/suite2cases/cvs.json index d417847408395beeb6f987dac0f93ba252cc537d..caf4b8950232a85b6cbac43245db8707654bb33d 100644 --- a/suite2cases/cvs.json +++ b/suite2cases/cvs.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/cvs", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_socket_cvs" @@ -26,4 +28,4 @@ "name": "oe_test_cvs_cvs_06" } ] -} +} \ No newline at end of file diff --git a/suite2cases/cyrus-sasl.json b/suite2cases/cyrus-sasl.json index ccb435651987fca7914a5e4866f2ecd1c0403270..47e48a6249452743c1c07bf43cd1ede49435ef26 100644 --- a/suite2cases/cyrus-sasl.json +++ b/suite2cases/cyrus-sasl.json @@ -1,8 +1,53 @@ { "path": "$OET_PATH/testcases/cli-test/cyrus-sasl", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_saslauthd" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-devel" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-lib" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-sql" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-help" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-debugsource" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-debuginfo" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-gssapi" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-gs2" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-ldap" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-plain" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-md5" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-ntlm" + }, + { + "name": "oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-scram" } ] -} +} \ No newline at end of file diff --git a/suite2cases/da-tool.json b/suite2cases/da-tool.json index d331e8dbec42688e28449e3aa79e6db3043c3eb5..491030407b48fe3d067e1451e13870c65b59290c 100644 --- a/suite2cases/da-tool.json +++ b/suite2cases/da-tool.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/feature-test/da-tool", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_da-tool_01" @@ -38,4 +40,4 @@ "name": "oe_test_da-tool_12" } ] -} +} \ No newline at end of file diff --git a/suite2cases/dblatex.json b/suite2cases/dblatex.json index 9ddc05c7cc31642e304fd6b1d7cef443f6be03a0..97612ff1479f7045dd532424ba2f052db410462e 100644 --- a/suite2cases/dblatex.json +++ b/suite2cases/dblatex.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/dblatex", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dblatex_dblatex_01" @@ -18,6 +21,12 @@ }, { "name": "oe_test_dblatex_dblatex_06" + }, + { + "name": "oe_test_dblatex_install_and_remove_dblatex" + }, + { + "name": "oe_test_dblatex_install_and_remove_dblatex-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/dbus-glib.json b/suite2cases/dbus-glib.json new file mode 100644 index 0000000000000000000000000000000000000000..d82ffbe558eaf319e1e137a43703103f2f4168c5 --- /dev/null +++ b/suite2cases/dbus-glib.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/dbus-glib", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_dbus-glib_install_and_remove_dbus-glib" + }, + { + "name": "oe_test_dbus-glib_install_and_remove_dbus-glib-help" + }, + { + "name": "oe_test_dbus-glib_install_and_remove_dbus-glib-devel" + }, + { + "name": "oe_test_dbus-glib_install_and_remove_dbus-glib-debuginfo" + }, + { + "name": "oe_test_dbus-glib_install_and_remove_dbus-glib-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dbus-python.json b/suite2cases/dbus-python.json new file mode 100644 index 0000000000000000000000000000000000000000..5854f96dc551fcaf35f6df5f9a0972f8d434566d --- /dev/null +++ b/suite2cases/dbus-python.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/dbus-python", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_dbus-python_install_and_remove_dbus-python" + }, + { + "name": "oe_test_dbus-python_install_and_remove_dbus-python-devel" + }, + { + "name": "oe_test_dbus-python_install_and_remove_python3-dbus" + }, + { + "name": "oe_test_dbus-python_install_and_remove_dbus-python-help" + }, + { + "name": "oe_test_dbus-python_install_and_remove_dbus-python-debugsource" + }, + { + "name": "oe_test_dbus-python_install_and_remove_dbus-python-debuginfo" + }, + { + "name": "oe_test_dbus-python_install_and_remove_python2-dbus" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dbus.json b/suite2cases/dbus.json index 2788cdfc89305f6a36c170a64f743dfc9378efe1..5a6df8dace36300980d15b322cf7c2797a6b2831 100644 --- a/suite2cases/dbus.json +++ b/suite2cases/dbus.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/dbus", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_dbus" @@ -21,6 +24,36 @@ }, { "name": "oe_test_dbus_dbus-x11" + }, + { + "name": "oe_test_dbus_install_and_remove_dbus" + }, + { + "name": "oe_test_dbus_install_and_remove_dbus-libs" + }, + { + "name": "oe_test_dbus_install_and_remove_dbus-common" + }, + { + "name": "oe_test_dbus_install_and_remove_dbus-help" + }, + { + "name": "oe_test_dbus_install_and_remove_dbus-tools" + }, + { + "name": "oe_test_dbus_install_and_remove_dbus-devel" + }, + { + "name": "oe_test_dbus_install_and_remove_dbus-x11" + }, + { + "name": "oe_test_dbus_install_and_remove_dbus-daemon" + }, + { + "name": "oe_test_dbus_install_and_remove_dbus-debugsource" + }, + { + "name": "oe_test_dbus_install_and_remove_dbus-debuginfo" } ] } \ No newline at end of file diff --git a/suite2cases/dbxtool.json b/suite2cases/dbxtool.json index 57fb71d2c8d4b55c6167e4cbe9ca6737499ada36..e3483dd84341ab82816cd5d9db5ce798d048c30f 100644 --- a/suite2cases/dbxtool.json +++ b/suite2cases/dbxtool.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/dbxtool", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_dbxtool" } ] -} +} \ No newline at end of file diff --git a/suite2cases/dde-daemon.json b/suite2cases/dde-daemon.json index bf51530b2ce8c8230ad5c209daba974b7aa66187..04fc102c726e203bb619d08a9c705134495d82e6 100644 --- a/suite2cases/dde-daemon.json +++ b/suite2cases/dde-daemon.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/dde-daemon", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_dbus-com.deepin.dde.lockservice" } ] -} +} \ No newline at end of file diff --git a/suite2cases/debugedit.json b/suite2cases/debugedit.json new file mode 100644 index 0000000000000000000000000000000000000000..42b018c7ed27e5aed38156721a609cce87cd80d1 --- /dev/null +++ b/suite2cases/debugedit.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/debugedit", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_debugedit_install_and_remove_debugedit" + }, + { + "name": "oe_test_debugedit_install_and_remove_debugedit-debugsource" + }, + { + "name": "oe_test_debugedit_install_and_remove_debugedit-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/deepin-anything.json b/suite2cases/deepin-anything.json index d889a55143f42629dd27faf5928139a8a3e611fb..16f41f2a14006afe45899a5b08cc5337569f5420 100644 --- a/suite2cases/deepin-anything.json +++ b/suite2cases/deepin-anything.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/deepin-anything", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_deepin-anything-tool" } ] -} +} \ No newline at end of file diff --git a/suite2cases/deepin-devicemanager.json b/suite2cases/deepin-devicemanager.json index f318221e16efca9b4d369556370c70009c25cbc6..4e79aceca89ec661a947bcbebf58bfb127c001d6 100644 --- a/suite2cases/deepin-devicemanager.json +++ b/suite2cases/deepin-devicemanager.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/deepin-devicemanager", + "cpu": 2, + "memory": 4, "cases": [ { - "name":"oe_test_service_deepin-devicemanager" + "name": "oe_test_service_deepin-devicemanager" } ] -} +} \ No newline at end of file diff --git a/suite2cases/deepin-graphics-driver-manager.json b/suite2cases/deepin-graphics-driver-manager.json index 4e8d247784d6265199aa20121ca27b6a77394aab..5f362e61c0ae48e81a35fe8e664e549d3873d654 100644 --- a/suite2cases/deepin-graphics-driver-manager.json +++ b/suite2cases/deepin-graphics-driver-manager.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/deepin-graphics-driver-manager", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_driver-installer" } ] -} +} \ No newline at end of file diff --git a/suite2cases/dejagnu-test.json b/suite2cases/dejagnu-test.json new file mode 100644 index 0000000000000000000000000000000000000000..227382b3fb4d6a1caea0a676d22549fc48a41a1e --- /dev/null +++ b/suite2cases/dejagnu-test.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/system-test/compiler-test/dejagnu-test", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_dejagnu-test" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dejagnu.json b/suite2cases/dejagnu.json index 649ff167c7e460e55cc80b07dfbfa047a64d0219..cfad634b0fc370332251d6a75e9161bd7b40204e 100644 --- a/suite2cases/dejagnu.json +++ b/suite2cases/dejagnu.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/dejagnu", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dejagnu_runtest_01" @@ -9,6 +12,12 @@ }, { "name": "oe_test_dejagnu_runtest_03" + }, + { + "name": "oe_test_dejagnu_install_and_remove_dejagnu" + }, + { + "name": "oe_test_dejagnu_install_and_remove_dejagnu-help" } ] } \ No newline at end of file diff --git a/suite2cases/dejavu-fonts.json b/suite2cases/dejavu-fonts.json new file mode 100644 index 0000000000000000000000000000000000000000..ea8a3987157fb45cffc0a582c76571a1e374691e --- /dev/null +++ b/suite2cases/dejavu-fonts.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/dejavu-fonts", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_dejavu-fonts_install_and_remove_dejavu-fonts" + } + ] +} \ No newline at end of file diff --git a/suite2cases/derby.json b/suite2cases/derby.json index d1f8de1d38089970d7d9b6f2c29e083578a4756c..575e39b8621dd56a146b0c8816515c938f6d4166 100644 --- a/suite2cases/derby.json +++ b/suite2cases/derby.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/derby", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_derby" } ] -} +} \ No newline at end of file diff --git a/suite2cases/desktop-file-utils.json b/suite2cases/desktop-file-utils.json new file mode 100644 index 0000000000000000000000000000000000000000..d4a43cbfbcdca6f44dbe490cec3dcd891203299e --- /dev/null +++ b/suite2cases/desktop-file-utils.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/desktop-file-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_desktop-file-utils_install_and_remove_desktop-file-utils" + }, + { + "name": "oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-help" + }, + { + "name": "oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-debuginfo" + }, + { + "name": "oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dhcp.json b/suite2cases/dhcp.json index 391cdcd1278faca4b4faa32545c8ac6e3a094c87..a478078fe2debfd3aff95ba2b3e16cc0a63edf3e 100644 --- a/suite2cases/dhcp.json +++ b/suite2cases/dhcp.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/dhcp", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_dhcpd6" @@ -15,6 +18,21 @@ }, { "name": "oe_test_allocate_ipv6_addresses_dhcpd" + }, + { + "name": "oe_test_dhcp_install_and_remove_dhcp" + }, + { + "name": "oe_test_dhcp_install_and_remove_dhcp-devel" + }, + { + "name": "oe_test_dhcp_install_and_remove_dhcp-debuginfo" + }, + { + "name": "oe_test_dhcp_install_and_remove_dhcp-debugsource" + }, + { + "name": "oe_test_dhcp_install_and_remove_dhcp-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/diffstat.json b/suite2cases/diffstat.json new file mode 100644 index 0000000000000000000000000000000000000000..32ebdc98e48d3e372c8d30bcc995e38b8138113e --- /dev/null +++ b/suite2cases/diffstat.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/diffstat", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_diffstat_install_and_remove_diffstat" + }, + { + "name": "oe_test_diffstat_install_and_remove_diffstat-debugsource" + }, + { + "name": "oe_test_diffstat_install_and_remove_diffstat-debuginfo" + }, + { + "name": "oe_test_diffstat_install_and_remove_diffstat-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/diffutils.json b/suite2cases/diffutils.json index b1d2841953f6c07e940894d7c5be120139f7e5b0..66dd418c11a2e593c0b3d16ac6985838141a9101 100644 --- a/suite2cases/diffutils.json +++ b/suite2cases/diffutils.json @@ -1,17 +1,32 @@ { - "path": "$OET_PATH/testcases/cli-test/diffutils", - "cases": [ - { - "name": "oe_test_diffutils_001" - }, - { - "name": "oe_test_diffutils_002" - }, - { - "name": "oe_test_diffutils_003" - }, - { - "name": "oe_test_diffutils_004" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/diffutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_diffutils_001" + }, + { + "name": "oe_test_diffutils_002" + }, + { + "name": "oe_test_diffutils_003" + }, + { + "name": "oe_test_diffutils_004" + }, + { + "name": "oe_test_diffutils_install_and_remove_diffutils" + }, + { + "name": "oe_test_diffutils_install_and_remove_diffutils-debuginfo" + }, + { + "name": "oe_test_diffutils_install_and_remove_diffutils-debugsource" + }, + { + "name": "oe_test_diffutils_install_and_remove_diffutils-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/digest-list-tools.json b/suite2cases/digest-list-tools.json index cf55cfe807302fbfef108f1e88273dc35aa59546..b3a31c7bdaaf9d1154efdc0e42432aed99057b5a 100644 --- a/suite2cases/digest-list-tools.json +++ b/suite2cases/digest-list-tools.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/digest-list-tools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_setup-ima-digest-lists" } ] -} +} \ No newline at end of file diff --git a/suite2cases/dim-AT.json b/suite2cases/dim-AT.json index 7912be4b7dd75714a513455a134cc7f6940628c3..49435cfda15129e24a4d7d84a9a30ccc69baf6fe 100644 --- a/suite2cases/dim-AT.json +++ b/suite2cases/dim-AT.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/smoke-test/smoke-dim", "machine num": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dim_measure_001", @@ -11,5 +13,4 @@ "machine num": 1 } ] -} - +} \ No newline at end of file diff --git a/suite2cases/dim.json b/suite2cases/dim.json index 262acb6c0c7507396adca51fea3223abfbb29bf6..0eb886d4c81777b8b260bd26d89d9f1ba0795555 100644 --- a/suite2cases/dim.json +++ b/suite2cases/dim.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/dim", "machine num": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dim_measure_001", @@ -11,5 +13,4 @@ "machine num": 1 } ] -} - +} \ No newline at end of file diff --git a/suite2cases/ding-libs.json b/suite2cases/ding-libs.json new file mode 100644 index 0000000000000000000000000000000000000000..06285c360c570816b8fae8b4d358b6adf9206c3a --- /dev/null +++ b/suite2cases/ding-libs.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/ding-libs", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ding-libs_install_and_remove_ding-libs" + }, + { + "name": "oe_test_ding-libs_install_and_remove_ding-libs-devel" + }, + { + "name": "oe_test_ding-libs_install_and_remove_ding-libs-help" + }, + { + "name": "oe_test_ding-libs_install_and_remove_ding-libs-debuginfo" + }, + { + "name": "oe_test_ding-libs_install_and_remove_ding-libs-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dirsplit.json b/suite2cases/dirsplit.json index 196b52a7c28f8fdce833371376eeb565fe099d79..f9f26ba3f81e67bfe91d5b7cd2af596c40ffca76 100644 --- a/suite2cases/dirsplit.json +++ b/suite2cases/dirsplit.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/system-test/system-integration/os-basic/oe_test_dirsplit", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dirsplit" diff --git a/suite2cases/discount.json b/suite2cases/discount.json index 3a386af50e7eca3ed96fa8d3387ab7fd577ed01e..85cb3c7a91fe5ce35b4885275fb0a4f45ca516ce 100644 --- a/suite2cases/discount.json +++ b/suite2cases/discount.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/discount", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_discount_markdown_01" @@ -17,4 +19,4 @@ "name": "oe_test_discount-theme_01" } ] -} +} \ No newline at end of file diff --git a/suite2cases/distributed_file_test.json b/suite2cases/distributed_file_test.json index 8873cdaccf86e9080aec80ca39d3920820c4258c..3915fab68ebc4da184b1d71b2987342fd42a90f3 100644 --- a/suite2cases/distributed_file_test.json +++ b/suite2cases/distributed_file_test.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/embedded-test/distributed_file_test", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_mkdir_ls_001", @@ -99,4 +101,4 @@ "machine num": 2 } ] -} +} \ No newline at end of file diff --git a/suite2cases/djvulibre.json b/suite2cases/djvulibre.json index 81b0af165a2cd8cee764de147d13d2d67003d15d..a97d38ff28c60139dbce3f8a271a2887b6aa9e2e 100644 --- a/suite2cases/djvulibre.json +++ b/suite2cases/djvulibre.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/djvulibre", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_djvulibre_01" diff --git a/suite2cases/dkms.json b/suite2cases/dkms.json index 66b440e78569dcfb4b878cdffa270585d9dac173..d033bcf7f9e31b26583042a1467fcc036602cb7c 100644 --- a/suite2cases/dkms.json +++ b/suite2cases/dkms.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/dkms", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_dkms" } ] -} +} \ No newline at end of file diff --git a/suite2cases/dmidecode.json b/suite2cases/dmidecode.json index c09fd22225665a540f797b03a6953f554f44c009..f2eb9c80ea8a49966c318ecdbf740d8c3b9b3342 100755 --- a/suite2cases/dmidecode.json +++ b/suite2cases/dmidecode.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/cli-test/dmidecode", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dmidecode" diff --git a/suite2cases/dmraid.json b/suite2cases/dmraid.json new file mode 100644 index 0000000000000000000000000000000000000000..6ebd21239013082488aeb8e80a62c38a5f0ee4f3 --- /dev/null +++ b/suite2cases/dmraid.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/dmraid", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_dmraid_install_and_remove_dmraid" + }, + { + "name": "oe_test_dmraid_install_and_remove_dmraid-events" + }, + { + "name": "oe_test_dmraid_install_and_remove_dmraid-events-logwatch" + }, + { + "name": "oe_test_dmraid_install_and_remove_dmraid-devel" + }, + { + "name": "oe_test_dmraid_install_and_remove_dmraid-debuginfo" + }, + { + "name": "oe_test_dmraid_install_and_remove_dmraid-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dnf-plugins-core.json b/suite2cases/dnf-plugins-core.json new file mode 100644 index 0000000000000000000000000000000000000000..34509847575a6f24cb9891440b26851fb6ffdbc5 --- /dev/null +++ b/suite2cases/dnf-plugins-core.json @@ -0,0 +1,44 @@ +{ + "path": "$OET_PATH/testcases/cli-test/dnf-plugins-core", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_dnf-plugins-core_install_and_remove_dnf-plugins-core" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-versionlock" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-local" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-post-transaction-actions" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-leaves" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-show-leaves" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugins-core" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-modulesync" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_dnf-plugins-core-help" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugins-core" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugin-migrate" + }, + { + "name": "oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugin-versionlock" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dnf.json b/suite2cases/dnf.json index f1901aac325157ac2834921d7f6b0166002f7536..0f5875be3535be93c3a6d8e9d7b4f95b97540d7f 100644 --- a/suite2cases/dnf.json +++ b/suite2cases/dnf.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/dnf", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dnf_alias" @@ -12,13 +15,13 @@ }, { "name": "oe_test_dnf_automatic" - }, + }, { "name": "oe_test_dnf_check_diffenert-packages" - }, + }, { "name": "oe_test_dnf_makecache_clean" - }, + }, { "name": "oe_test_dnf_distro-sync_dnf-3" }, @@ -67,8 +70,29 @@ { "name": "oe_test_dnf_repeat-upgrade-downgrade" }, - { - "name":"oe_test_dnf_deplist" - } + { + "name": "oe_test_dnf_deplist" + }, + { + "name": "oe_test_dnf_install_and_remove_dnf" + }, + { + "name": "oe_test_dnf_install_and_remove_yum" + }, + { + "name": "oe_test_dnf_install_and_remove_dnf-data" + }, + { + "name": "oe_test_dnf_install_and_remove_python3-dnf" + }, + { + "name": "oe_test_dnf_install_and_remove_dnf-automatic" + }, + { + "name": "oe_test_dnf_install_and_remove_dnf-help" + }, + { + "name": "oe_test_dnf_install_and_remove_python2-dnf" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/dnsmasq.json b/suite2cases/dnsmasq.json index 1605507f53f8e56290d07a717a50b6fbb4564581..0cd535496e18b29da748044bce7186cbff1b37ca 100644 --- a/suite2cases/dnsmasq.json +++ b/suite2cases/dnsmasq.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/dnsmasq", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_dnsmasq" } ] -} +} \ No newline at end of file diff --git a/suite2cases/dnssec-trigger.json b/suite2cases/dnssec-trigger.json index 7fbbb3f9c41f02ba0afb97ae6195de8f41549677..df95c117fd98bce849ccf27cf0d59368da5520d1 100644 --- a/suite2cases/dnssec-trigger.json +++ b/suite2cases/dnssec-trigger.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/dnssec-trigger", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_dnssec-triggerd-keygen" diff --git a/suite2cases/docbook-dtds.json b/suite2cases/docbook-dtds.json new file mode 100644 index 0000000000000000000000000000000000000000..6fb717cf98d47ea3280256e151a22401ea4ac532 --- /dev/null +++ b/suite2cases/docbook-dtds.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/docbook-dtds", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_docbook-dtds_install_and_remove_docbook-dtds" + } + ] +} \ No newline at end of file diff --git a/suite2cases/docbook-style-dsssl.json b/suite2cases/docbook-style-dsssl.json new file mode 100644 index 0000000000000000000000000000000000000000..b92305fd3e99fa204d768aea40baefca4ba5095f --- /dev/null +++ b/suite2cases/docbook-style-dsssl.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/docbook-style-dsssl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_docbook-style-dsssl_install_and_remove_docbook-style-dsssl" + }, + { + "name": "oe_test_docbook-style-dsssl_install_and_remove_docbook-style-dsssl-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/docbook-style-xsl.json b/suite2cases/docbook-style-xsl.json new file mode 100644 index 0000000000000000000000000000000000000000..7915fb6cd99d945f10f8c8253a86f70f0845ed57 --- /dev/null +++ b/suite2cases/docbook-style-xsl.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/docbook-style-xsl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_docbook-style-xsl_install_and_remove_docbook-style-xsl" + } + ] +} \ No newline at end of file diff --git a/suite2cases/docbook-utils.json b/suite2cases/docbook-utils.json index e575567ea6658b3c9cbaf83e5a69eff05478ec65..5d7692398b15e93a353ae962e614e40a8234615c 100644 --- a/suite2cases/docbook-utils.json +++ b/suite2cases/docbook-utils.json @@ -1,14 +1,26 @@ { - "path": "$OET_PATH/testcases/cli-test/docbook-utils", - "cases": [ - { - "name": "oe_test_docbook-utils_jw_01" - }, - { - "name": "oe_test_docbook-utils_jw_02" - }, - { - "name": "oe_test_docbook-utils_sgmldiff" - } - ] + "path": "$OET_PATH/testcases/cli-test/docbook-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_docbook-utils_jw_01" + }, + { + "name": "oe_test_docbook-utils_jw_02" + }, + { + "name": "oe_test_docbook-utils_sgmldiff" + }, + { + "name": "oe_test_docbook-utils_install_and_remove_docbook-utils" + }, + { + "name": "oe_test_docbook-utils_install_and_remove_docbook-utils-pdf" + }, + { + "name": "oe_test_docbook-utils_install_and_remove_docbook-utils-help" + } + ] } \ No newline at end of file diff --git a/suite2cases/docbook2X.json b/suite2cases/docbook2X.json index 99adfc902906cc681cb9bbda8186f188a0703bfb..357663b1e628b32c7fd11dc419843613e2b8b9f4 100644 --- a/suite2cases/docbook2X.json +++ b/suite2cases/docbook2X.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/docbook2X", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_docbook2X_db2x_manxml" diff --git a/suite2cases/docbook5-schemas.json b/suite2cases/docbook5-schemas.json index de0283d15db70e7a3fe5a3a4c48a56cf76fcad87..2efdc7a644dcb2f261d3a45e643da1bba6cac4fb 100644 --- a/suite2cases/docbook5-schemas.json +++ b/suite2cases/docbook5-schemas.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/docbook5-schemas", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_docbook5_schemas" } ] -} +} \ No newline at end of file diff --git a/suite2cases/docbook5-style-xsl.json b/suite2cases/docbook5-style-xsl.json new file mode 100644 index 0000000000000000000000000000000000000000..d08e42b07fa19c464d638559703163431f161ff6 --- /dev/null +++ b/suite2cases/docbook5-style-xsl.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/docbook5-style-xsl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_docbook5-style-xsl_install_and_remove_docbook5-style-xsl" + }, + { + "name": "oe_test_docbook5-style-xsl_install_and_remove_docbook5-style-xsl-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/docker-engine.json b/suite2cases/docker-engine.json index 4768d1ce6f32bab337e69ee7b52419fd6009da54..93c7414f1e949c8b3a6144fda597b567fac188a5 100644 --- a/suite2cases/docker-engine.json +++ b/suite2cases/docker-engine.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/docker-engine", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_docker" } ] -} +} \ No newline at end of file diff --git a/suite2cases/dos2unix.json b/suite2cases/dos2unix.json index 5059bf3aaf743b027c85253e0f9ead97d18cbf1b..b94d7c732e113bd520069fea69f939d77de1efe3 100644 --- a/suite2cases/dos2unix.json +++ b/suite2cases/dos2unix.json @@ -1,8 +1,23 @@ { "path": "${OET_PATH}/testcases/cli-test/dos2unix", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dos2unix" + }, + { + "name": "oe_test_dos2unix_install_and_remove_dos2unix" + }, + { + "name": "oe_test_dos2unix_install_and_remove_dos2unix-help" + }, + { + "name": "oe_test_dos2unix_install_and_remove_dos2unix-debuginfo" + }, + { + "name": "oe_test_dos2unix_install_and_remove_dos2unix-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/dosfstools.json b/suite2cases/dosfstools.json index 43533785fc93012b691e9c5b71251bc4e0357d18..af0dbe7ec863ce89b271dcf07e48e140c5a1e173 100644 --- a/suite2cases/dosfstools.json +++ b/suite2cases/dosfstools.json @@ -1,8 +1,23 @@ { - "path": "$OET_PATH/testcases/cli-test/dosfstools", - "cases": [ - { - "name": "oe_test_dosfsck" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/dosfstools", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_dosfsck" + }, + { + "name": "oe_test_dosfstools_install_and_remove_dosfstools" + }, + { + "name": "oe_test_dosfstools_install_and_remove_dosfstools-help" + }, + { + "name": "oe_test_dosfstools_install_and_remove_dosfstools-debuginfo" + }, + { + "name": "oe_test_dosfstools_install_and_remove_dosfstools-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dovecot.json b/suite2cases/dovecot.json index d4b3e91e7a9ade40737dc96ddbe85d46762d225a..45246501e10ae874bd620c63a7bef680b709eeb2 100644 --- a/suite2cases/dovecot.json +++ b/suite2cases/dovecot.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/dovecot", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_dovecot-init" @@ -23,4 +25,4 @@ "name": "oe_test_dovecot_doveadm_3" } ] -} +} \ No newline at end of file diff --git a/suite2cases/doxygen.json b/suite2cases/doxygen.json index 84641f477320d42fc252afe205b27272ea23f3f7..69d61db434a528167f29be02bd67f314a972cb0b 100644 --- a/suite2cases/doxygen.json +++ b/suite2cases/doxygen.json @@ -1,8 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/doxygen", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_doxygen" + }, + { + "name": "oe_test_doxygen_install_and_remove_doxygen" + }, + { + "name": "oe_test_doxygen_install_and_remove_doxygen-doxywizard" + }, + { + "name": "oe_test_doxygen_install_and_remove_doxygen-debuginfo" + }, + { + "name": "oe_test_doxygen_install_and_remove_doxygen-debugsource" + }, + { + "name": "oe_test_doxygen_install_and_remove_doxygen-help" + }, + { + "name": "oe_test_doxygen_install_and_remove_doxygen-latex" } ] -} +} \ No newline at end of file diff --git a/suite2cases/dracut.json b/suite2cases/dracut.json index 4d4bba73c867f0a3a44d9aa9489a7e4c174ddfd4..e9767df55f234222ce501aca3f2d8c89490639cf 100644 --- a/suite2cases/dracut.json +++ b/suite2cases/dracut.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/dracut", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_dracut-cmdline" @@ -25,8 +28,38 @@ { "name": "oe_test_service_dracut-shutdown" }, - { - "name": "oe_test_service_dracut-initramfs" - } + { + "name": "oe_test_service_dracut-initramfs" + }, + { + "name": "oe_test_dracut_install_and_remove_dracut" + }, + { + "name": "oe_test_dracut_install_and_remove_dracut-network" + }, + { + "name": "oe_test_dracut_install_and_remove_dracut-live" + }, + { + "name": "oe_test_dracut_install_and_remove_dracut-config-generic" + }, + { + "name": "oe_test_dracut_install_and_remove_dracut-config-rescue" + }, + { + "name": "oe_test_dracut_install_and_remove_dracut-tools" + }, + { + "name": "oe_test_dracut_install_and_remove_dracut-squash" + }, + { + "name": "oe_test_dracut_install_and_remove_dracut-caps" + }, + { + "name": "oe_test_dracut_install_and_remove_dracut-debuginfo" + }, + { + "name": "oe_test_dracut_install_and_remove_dracut-debugsource" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/drpm.json b/suite2cases/drpm.json new file mode 100644 index 0000000000000000000000000000000000000000..f2f36ef20edf7c97b134c73d642d35f10e9fb3f4 --- /dev/null +++ b/suite2cases/drpm.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/drpm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_drpm_install_and_remove_drpm" + }, + { + "name": "oe_test_drpm_install_and_remove_drpm-help" + }, + { + "name": "oe_test_drpm_install_and_remove_drpm-devel" + }, + { + "name": "oe_test_drpm_install_and_remove_drpm-debugsource" + }, + { + "name": "oe_test_drpm_install_and_remove_drpm-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dtc.json b/suite2cases/dtc.json index 1581e4e4b0c5cf476288b9e50a43ccabdddda2ed..f7bf5aba2e85757ee592abd41df97616aac20eb0 100644 --- a/suite2cases/dtc.json +++ b/suite2cases/dtc.json @@ -1,9 +1,32 @@ { "path": "$OET_PATH/testcases/cli-test/dtc", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dtc" + }, + { + "name": "oe_test_dtc_install_and_remove_dtc" + }, + { + "name": "oe_test_dtc_install_and_remove_dtc-devel" + }, + { + "name": "oe_test_dtc_install_and_remove_python3-libfdt" + }, + { + "name": "oe_test_dtc_install_and_remove_dtc-help" + }, + { + "name": "oe_test_dtc_install_and_remove_dtc-debuginfo" + }, + { + "name": "oe_test_dtc_install_and_remove_dtc-debugsource" + }, + { + "name": "oe_test_dtc_install_and_remove_python2-libfdt" } - ] } \ No newline at end of file diff --git a/suite2cases/duktape.json b/suite2cases/duktape.json new file mode 100644 index 0000000000000000000000000000000000000000..962e7daf3339a45b4e48b72fd561649bfc8d4ce9 --- /dev/null +++ b/suite2cases/duktape.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/duktape", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_duktape_install_and_remove_duktape" + }, + { + "name": "oe_test_duktape_install_and_remove_duktape-devel" + }, + { + "name": "oe_test_duktape_install_and_remove_duktape-debugsource" + }, + { + "name": "oe_test_duktape_install_and_remove_duktape-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dwarves.json b/suite2cases/dwarves.json new file mode 100644 index 0000000000000000000000000000000000000000..622321f6e3c8adff44279e38ed071ec28fee1a30 --- /dev/null +++ b/suite2cases/dwarves.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/dwarves", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_dwarves_install_and_remove_dwarves" + }, + { + "name": "oe_test_dwarves_install_and_remove_libdwarves1" + }, + { + "name": "oe_test_dwarves_install_and_remove_libdwarves1-devel" + }, + { + "name": "oe_test_dwarves_install_and_remove_dwarves-debugsource" + }, + { + "name": "oe_test_dwarves_install_and_remove_dwarves-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dwz.json b/suite2cases/dwz.json new file mode 100644 index 0000000000000000000000000000000000000000..7bab8959e74640b7a38b1418298169f055d0bdbb --- /dev/null +++ b/suite2cases/dwz.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/dwz", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_dwz_install_and_remove_dwz" + }, + { + "name": "oe_test_dwz_install_and_remove_dwz-debugsource" + }, + { + "name": "oe_test_dwz_install_and_remove_dwz-help" + }, + { + "name": "oe_test_dwz_install_and_remove_dwz-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/dyninst.json b/suite2cases/dyninst.json new file mode 100644 index 0000000000000000000000000000000000000000..9c19697befb9689ff4d6c4e409e05567e06d05c2 --- /dev/null +++ b/suite2cases/dyninst.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/dyninst", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_dyninst_install_and_remove_dyninst" + }, + { + "name": "oe_test_dyninst_install_and_remove_dyninst-devel" + }, + { + "name": "oe_test_dyninst_install_and_remove_dyninst-help" + }, + { + "name": "oe_test_dyninst_install_and_remove_dyninst-debuginfo" + }, + { + "name": "oe_test_dyninst_install_and_remove_dyninst-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/e2fsprogs.json b/suite2cases/e2fsprogs.json index 8fd72acc420d340c341f55aff3341abfe4e76257..bdd94a265f56b4072f2a382a9adb6fa58f6a553c 100644 --- a/suite2cases/e2fsprogs.json +++ b/suite2cases/e2fsprogs.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/e2fsprogs", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_e2scrub_all" @@ -9,6 +12,42 @@ }, { "name": "oe_test_e2fsck_repair" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_e2fsprogs" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_e2fsprogs-help" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_e2fsprogs-devel" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_libss" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_e2fsprogs-libs" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_e2fsprogs-static" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_libcom_err" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_libcom_err-devel" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_libss-devel" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_e2fsprogs-debuginfo" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_e2fsprogs-debugsource" + }, + { + "name": "oe_test_e2fsprogs_install_and_remove_e2scrub" } ] } \ No newline at end of file diff --git a/suite2cases/easymock.json b/suite2cases/easymock.json index 6c5d8143a824367ecf655154b46e20ec32a4da82..8d1fa71005ec0c892fedbb892eb73e201c3c3885 100644 --- a/suite2cases/easymock.json +++ b/suite2cases/easymock.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/easymock", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_easymock_junit4" @@ -38,4 +40,4 @@ "name": "oe_test_easymock_simulate_object" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ebtables.json b/suite2cases/ebtables.json index efa6c88e1e3d4822fbb3942fa8572b2a256d7e76..309b03d0f4ef6e30038d4f8f06ee0cce4cb88fa2 100644 --- a/suite2cases/ebtables.json +++ b/suite2cases/ebtables.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/ebtables", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ebtables" + }, + { + "name": "oe_test_ebtables_install_and_remove_ebtables" + }, + { + "name": "oe_test_ebtables_install_and_remove_ebtables-help" + }, + { + "name": "oe_test_ebtables_install_and_remove_ebtables-debuginfo" + }, + { + "name": "oe_test_ebtables_install_and_remove_ebtables-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ed.json b/suite2cases/ed.json new file mode 100644 index 0000000000000000000000000000000000000000..f32bd4c65ea868ed2713882bf5566875cc23c806 --- /dev/null +++ b/suite2cases/ed.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/ed", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ed_install_and_remove_ed" + }, + { + "name": "oe_test_ed_install_and_remove_ed-help" + }, + { + "name": "oe_test_ed_install_and_remove_ed-debugsource" + }, + { + "name": "oe_test_ed_install_and_remove_ed-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/edac-utils.json b/suite2cases/edac-utils.json index 8de2df9e4f423ac6221ee80dab5de0f147a01851..bd4b886745dd41a8b6904104342c867b349ff19a 100644 --- a/suite2cases/edac-utils.json +++ b/suite2cases/edac-utils.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/edac-utils", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_edac" } ] -} +} \ No newline at end of file diff --git a/suite2cases/efi-rpm-macros.json b/suite2cases/efi-rpm-macros.json new file mode 100644 index 0000000000000000000000000000000000000000..356bc5ea230c7323bc291541e95bd9f9b8e9a41f --- /dev/null +++ b/suite2cases/efi-rpm-macros.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/efi-rpm-macros", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_efi-rpm-macros_install_and_remove_efi-rpm-macros" + }, + { + "name": "oe_test_efi-rpm-macros_install_and_remove_efi-srpm-macros" + }, + { + "name": "oe_test_efi-rpm-macros_install_and_remove_efi-filesystem" + } + ] +} \ No newline at end of file diff --git a/suite2cases/efibootmgr.json b/suite2cases/efibootmgr.json new file mode 100644 index 0000000000000000000000000000000000000000..5c738fce8ba49e139d9a0f6cc6a1e9f492498463 --- /dev/null +++ b/suite2cases/efibootmgr.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/efibootmgr", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_efibootmgr_install_and_remove_efibootmgr" + }, + { + "name": "oe_test_efibootmgr_install_and_remove_efibootmgr-help" + }, + { + "name": "oe_test_efibootmgr_install_and_remove_efibootmgr-debuginfo" + }, + { + "name": "oe_test_efibootmgr_install_and_remove_efibootmgr-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/efivar.json b/suite2cases/efivar.json index bca6897d1a28e5c299b702e52c5a43b405216a70..6f9a6dd9400a6f7716e045357c4f9d1f6e7a6f6c 100644 --- a/suite2cases/efivar.json +++ b/suite2cases/efivar.json @@ -1,8 +1,29 @@ { "path": "$OET_PATH/testcases/system-test/system-integration/os-basic/oe_test_efivar", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_efivar" + }, + { + "name": "oe_test_efivar_install_and_remove_efivar" + }, + { + "name": "oe_test_efivar_install_and_remove_efivar-libs" + }, + { + "name": "oe_test_efivar_install_and_remove_efivar-devel" + }, + { + "name": "oe_test_efivar_install_and_remove_efivar-help" + }, + { + "name": "oe_test_efivar_install_and_remove_efivar-debuginfo" + }, + { + "name": "oe_test_efivar_install_and_remove_efivar-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/egl-wayland.json b/suite2cases/egl-wayland.json new file mode 100644 index 0000000000000000000000000000000000000000..1af1ec37631de6cf6209352309cb0a5786a55b27 --- /dev/null +++ b/suite2cases/egl-wayland.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/egl-wayland", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_egl-wayland_install_and_remove_egl-wayland" + }, + { + "name": "oe_test_egl-wayland_install_and_remove_egl-wayland-devel" + }, + { + "name": "oe_test_egl-wayland_install_and_remove_egl-wayland-debugsource" + }, + { + "name": "oe_test_egl-wayland_install_and_remove_egl-wayland-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/eglexternalplatform.json b/suite2cases/eglexternalplatform.json new file mode 100644 index 0000000000000000000000000000000000000000..385fa6c3ae7396853a707df3740a2c4ac5fa1095 --- /dev/null +++ b/suite2cases/eglexternalplatform.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/eglexternalplatform", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_eglexternalplatform_install_and_remove_eglexternalplatform" + }, + { + "name": "oe_test_eglexternalplatform_install_and_remove_eglexternalplatform-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/elfutils.json b/suite2cases/elfutils.json index 6902450ab8d1de1f75406c0911343f709d062efa..a1c577207ad51d0757e2e99b4925896f81263e42 100644 --- a/suite2cases/elfutils.json +++ b/suite2cases/elfutils.json @@ -1,11 +1,62 @@ { "path": "$OET_PATH/testcases/cli-test/elfutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_elfutils" }, { "name": "oe_test_service_debuginfod" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-libelf" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-debuginfod" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-extra" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-devel" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-libelf-devel" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-default-yama-scope" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-debuginfod-client" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-debuginfod-client-devel" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-libs" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-help" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-debuginfo" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-debugsource" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-libelf-devel-static" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-doc" + }, + { + "name": "oe_test_elfutils_install_and_remove_elfutils-devel-static" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/elinks.json b/suite2cases/elinks.json index 05e3eced6ebc3ba0d023f5b7ade69ff719b53a8f..f40dd1406989a955156b221e567023f07d26418c 100644 --- a/suite2cases/elinks.json +++ b/suite2cases/elinks.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/elinks", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_elinks_base_01" diff --git a/suite2cases/emacs.json b/suite2cases/emacs.json new file mode 100644 index 0000000000000000000000000000000000000000..71dd5e2357852a0fcb95b4061b3555c76d235020 --- /dev/null +++ b/suite2cases/emacs.json @@ -0,0 +1,38 @@ +{ + "path": "$OET_PATH/testcases/cli-test/emacs", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_emacs_install_and_remove_emacs" + }, + { + "name": "oe_test_emacs_install_and_remove_emacs-common" + }, + { + "name": "oe_test_emacs_install_and_remove_emacs-devel" + }, + { + "name": "oe_test_emacs_install_and_remove_emacs-nox" + }, + { + "name": "oe_test_emacs_install_and_remove_emacs-filesystem" + }, + { + "name": "oe_test_emacs_install_and_remove_emacs-debuginfo" + }, + { + "name": "oe_test_emacs_install_and_remove_emacs-debugsource" + }, + { + "name": "oe_test_emacs_install_and_remove_emacs-help" + }, + { + "name": "oe_test_emacs_install_and_remove_emacs-lucid" + }, + { + "name": "oe_test_emacs_install_and_remove_emacs-terminal" + } + ] +} \ No newline at end of file diff --git a/suite2cases/embedded_application_develop_tests.json b/suite2cases/embedded_application_develop_tests.json index e06256c21e43715084633265a61d13ecfe57df83..0c63d7b2592d84c9119500953c0fdf2f88cdbeaa 100644 --- a/suite2cases/embedded_application_develop_tests.json +++ b/suite2cases/embedded_application_develop_tests.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/embedded-test/application_develop_tests", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_hello_world_test" @@ -11,4 +13,4 @@ "name": "oe_test_cpp_hello_world_test" } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_dsoftbus_3_1_basic_test.json b/suite2cases/embedded_dsoftbus_3_1_basic_test.json index 5104ebcc990b7411cd2ea5f4b491c1c911c5afc7..936186973c42a130b89510f4b7988843bebe5cc9 100644 --- a/suite2cases/embedded_dsoftbus_3_1_basic_test.json +++ b/suite2cases/embedded_dsoftbus_3_1_basic_test.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/embedded-test/dsoftbus_3_1_basic_test", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_PublishServiceInterface_001" diff --git a/suite2cases/embedded_dsoftbus_3_2_basic_test.json b/suite2cases/embedded_dsoftbus_3_2_basic_test.json index 4183700751a9ec2aa184657546dd22030be93035..31fe484058aafd3a773ecf3ae3104782a2c13517 100644 --- a/suite2cases/embedded_dsoftbus_3_2_basic_test.json +++ b/suite2cases/embedded_dsoftbus_3_2_basic_test.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/embedded-test/dsoftbus_3_2_basic_test", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_PublishServiceInterface_001" diff --git a/suite2cases/embedded_mcs_qemu_test.json b/suite2cases/embedded_mcs_qemu_test.json index c04146d9b49e423dc301ad81767e444eaea15645..06078cf1930e902c1d10e406512741815b087c16 100644 --- a/suite2cases/embedded_mcs_qemu_test.json +++ b/suite2cases/embedded_mcs_qemu_test.json @@ -1,9 +1,11 @@ { "path": "$OET_PATH/testcases/embedded-test/mcs_qemu_test", "machine num": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_mcs_qemu_test_001" } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_mcs_rpi4_test.json b/suite2cases/embedded_mcs_rpi4_test.json index 4c425789bd8bc5435f0a750ebae7a8d211557e82..f1a7318671958c76bca1e4e7e195435f4f405d1e 100644 --- a/suite2cases/embedded_mcs_rpi4_test.json +++ b/suite2cases/embedded_mcs_rpi4_test.json @@ -1,9 +1,11 @@ { "path": "$OET_PATH/testcases/embedded-test/mcs_qemu_test", "machine num": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_mcs_rpi4_test_001" } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_mcs_uniproton_test.json b/suite2cases/embedded_mcs_uniproton_test.json index 3a80f92485f800a82dc1754f5326e348b3328e7d..7f51d031903fd43d52d14471b18211ede5702ebf 100644 --- a/suite2cases/embedded_mcs_uniproton_test.json +++ b/suite2cases/embedded_mcs_uniproton_test.json @@ -1,9 +1,11 @@ { "path": "$OET_PATH/testcases/embedded-test/mcs_qemu_test", "machine num": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_mcs_uniproton_test_001" } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_os_basic_extra_test.json b/suite2cases/embedded_os_basic_extra_test.json index b5748eb9c769bdb8850dab80ff0bb8a36d631f70..e1d2bca034f48e5c77536267151b3cdcfe9c88dc 100644 --- a/suite2cases/embedded_os_basic_extra_test.json +++ b/suite2cases/embedded_os_basic_extra_test.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/embedded-test/os_basic_extra_test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_kmod_depmod" @@ -99,12 +101,12 @@ }, { "name": "oe_test_libpwquality_test_001" - }, - { - "name": "oe_test_curl_test_001" + }, + { + "name": "oe_test_curl_test_001" }, { "name": "oe_test_rpcbind_test_001" } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_os_basic_test.json b/suite2cases/embedded_os_basic_test.json index f7d2874a890a46e20ef0b6a100b113503d240cfb..34e98bfdf6b33a94c411930f59cf90cc36281d7f 100644 --- a/suite2cases/embedded_os_basic_test.json +++ b/suite2cases/embedded_os_basic_test.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/embedded-test/os_basic_tests", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_bashrc_umask" @@ -146,4 +148,4 @@ "name": "oe_test_basic_cmd_shopt" } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_security_config_test.json b/suite2cases/embedded_security_config_test.json index 0c89b17384d8d73d97cda4e91db2de9701b24436..993b2454a74630a9191839c7406c8e82af8f3ae1 100644 --- a/suite2cases/embedded_security_config_test.json +++ b/suite2cases/embedded_security_config_test.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/embedded-test/security_config_test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_check_file_sys_protect_001" @@ -62,4 +64,4 @@ "name": "oe_test_check_log_001" } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_third_party_packages_extra_test.json b/suite2cases/embedded_third_party_packages_extra_test.json index a8d3177366910e80e6a44c057f2008ffc90e1d33..9806297ee7882732189dbf887e40f185db5250ae 100644 --- a/suite2cases/embedded_third_party_packages_extra_test.json +++ b/suite2cases/embedded_third_party_packages_extra_test.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/embedded-test/third_party_packages_extra_test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libcgroup_test_001" @@ -47,4 +49,4 @@ "name": "oe_test_pyflakes_test_001" } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_third_party_packages_test.json b/suite2cases/embedded_third_party_packages_test.json index 2f0fdb90b87781c90f0a7c5f9bbc0846058690d2..c56b0e0366619dfc873fb6e00e0e6e2ac5f83a22 100644 --- a/suite2cases/embedded_third_party_packages_test.json +++ b/suite2cases/embedded_third_party_packages_test.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/embedded-test/third_party_packages_test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_busybox_test_001" @@ -112,14 +114,14 @@ { "name": "oe_test_libunwind_test_001" }, - { - "name": "oe_test_yajl_test_001" - }, - { - "name": "oe_test_lzo_test_001" - }, - { - "name": "oe_test_http-parser_test_001" - } + { + "name": "oe_test_yajl_test_001" + }, + { + "name": "oe_test_lzo_test_001" + }, + { + "name": "oe_test_http-parser_test_001" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_tiny_image_test.json b/suite2cases/embedded_tiny_image_test.json index a10c774fe65e24ab23979efa96723457c8f44c94..4d9191f396f6448359df7d53bb7d5d975166f3cf 100644 --- a/suite2cases/embedded_tiny_image_test.json +++ b/suite2cases/embedded_tiny_image_test.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/embedded-test/tiny_image_test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_check_aarch_tiny_image_001" } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_unixbench_test.json b/suite2cases/embedded_unixbench_test.json index bdb3ddf40bf863fd341b2a636bb1a6828eedd5c5..dba19721a567e02a2c6b663225662d5fa6fd9cc8 100644 --- a/suite2cases/embedded_unixbench_test.json +++ b/suite2cases/embedded_unixbench_test.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/embedded-test/unix_bench_tests", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_unix_bench_test_001" } ] -} +} \ No newline at end of file diff --git a/suite2cases/embedded_version_basic_tests.json b/suite2cases/embedded_version_basic_tests.json index addad49c7c73faf3385c4e1678488f26f5c2dc11..9e13ced59bc443a6978ecd1e77a2fdd2a9d4f7e8 100644 --- a/suite2cases/embedded_version_basic_tests.json +++ b/suite2cases/embedded_version_basic_tests.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/embedded-test/version_basic_tests", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_version_posix_suite_test_001" @@ -8,4 +10,4 @@ "name": "oe_test_version_ltp_test_001" } ] -} +} \ No newline at end of file diff --git a/suite2cases/enchant2.json b/suite2cases/enchant2.json index f772d4a3af441ce4cd47067eb4bf916ab4ad01c6..f3600cb6569fe2374dbfc9723e534012421850a0 100644 --- a/suite2cases/enchant2.json +++ b/suite2cases/enchant2.json @@ -1,11 +1,35 @@ { "path": "$OET_PATH/testcases/cli-test/enchant2", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_enchant2_base_enchant-2" }, { "name": "oe_test_enchant2_base_enchant-lsmod-2" + }, + { + "name": "oe_test_enchant2_install_and_remove_enchant2" + }, + { + "name": "oe_test_enchant2_install_and_remove_enchant2-devel" + }, + { + "name": "oe_test_enchant2_install_and_remove_enchant2-help" + }, + { + "name": "oe_test_enchant2_install_and_remove_enchant2-aspell" + }, + { + "name": "oe_test_enchant2_install_and_remove_enchant2-voikko" + }, + { + "name": "oe_test_enchant2_install_and_remove_enchant2-debugsource" + }, + { + "name": "oe_test_enchant2_install_and_remove_enchant2-debuginfo" } ] } \ No newline at end of file diff --git a/suite2cases/enchant2_2.3.3.json b/suite2cases/enchant2_2.3.3.json index b313180c4749df749ae972e82f19acbb5bdad1ea..be9f85fe52c152572bfa30ecd8a98a8eab390a07 100644 --- a/suite2cases/enchant2_2.3.3.json +++ b/suite2cases/enchant2_2.3.3.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/enchant2", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_enchant2_2.3.3_enchant-2" diff --git a/suite2cases/erlang.json b/suite2cases/erlang.json index 2abc1beee0d07d10d17962b4f541d163295f9e18..0bb713bfa6393cc628c21230bef84493f845124e 100644 --- a/suite2cases/erlang.json +++ b/suite2cases/erlang.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/erlang", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_epmd" @@ -8,4 +10,4 @@ "name": "oe_test_socket_epmd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/espeak-ng.json b/suite2cases/espeak-ng.json index e1a2d0b24ac009ba05eaf8aae48a2815917fe897..233dbe02113c15db538b822f5b65804e64d7231c 100644 --- a/suite2cases/espeak-ng.json +++ b/suite2cases/espeak-ng.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/espeak-ng", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_espeak_ng" } ] -} +} \ No newline at end of file diff --git a/suite2cases/etcd.json b/suite2cases/etcd.json index 4bd8b964792b39e98fede1f79bc42fc458f78475..653485694fda1017b09cd6e68c1c58bf4f6bfec9 100644 --- a/suite2cases/etcd.json +++ b/suite2cases/etcd.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/etcd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_etcd" diff --git a/suite2cases/etckeeper.json b/suite2cases/etckeeper.json index d098164fb480fe2554b4f38c81e04cd3553290a0..a4e54e24888e2398ab8fb4c41a9efab1b74447f1 100644 --- a/suite2cases/etckeeper.json +++ b/suite2cases/etckeeper.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/etckeeper", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_etckeeper" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ethtool.json b/suite2cases/ethtool.json new file mode 100644 index 0000000000000000000000000000000000000000..fb7106db2b449c7d2495b36a9bbb4450e45cad72 --- /dev/null +++ b/suite2cases/ethtool.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/ethtool", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ethtool_install_and_remove_ethtool" + }, + { + "name": "oe_test_ethtool_install_and_remove_ethtool-help" + }, + { + "name": "oe_test_ethtool_install_and_remove_ethtool-debuginfo" + }, + { + "name": "oe_test_ethtool_install_and_remove_ethtool-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/etmem.json b/suite2cases/etmem.json index c779e4d4ee182473a83cfcbe372a3b5fc0e0b4b6..6ae3734646635b49508001f10ca06f6e1d9bb936 100644 --- a/suite2cases/etmem.json +++ b/suite2cases/etmem.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/etmem", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_etmemd_001" @@ -8,4 +10,4 @@ "name": "oe_test_etmemd_002" } ] -} +} \ No newline at end of file diff --git a/suite2cases/exempi.json b/suite2cases/exempi.json index f534d4746e414a0e9604587c10287579ca2632e1..22cdfbdcc164d6d5d275ab0a9b37455c9655d030 100644 --- a/suite2cases/exempi.json +++ b/suite2cases/exempi.json @@ -1,9 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/exempi", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_exempi" + }, + { + "name": "oe_test_exempi_install_and_remove_exempi" + }, + { + "name": "oe_test_exempi_install_and_remove_exempi-debugsource" + }, + { + "name": "oe_test_exempi_install_and_remove_exempi-help" + }, + { + "name": "oe_test_exempi_install_and_remove_exempi-devel" + }, + { + "name": "oe_test_exempi_install_and_remove_exempi-debuginfo" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/expat.json b/suite2cases/expat.json new file mode 100644 index 0000000000000000000000000000000000000000..b1120b6d6a5d5bff1ecaade8feb657ebccab5a78 --- /dev/null +++ b/suite2cases/expat.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/expat", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_expat_install_and_remove_expat" + }, + { + "name": "oe_test_expat_install_and_remove_expat-devel" + }, + { + "name": "oe_test_expat_install_and_remove_expat-debuginfo" + }, + { + "name": "oe_test_expat_install_and_remove_expat-debugsource" + }, + { + "name": "oe_test_expat_install_and_remove_expat-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/expect.json b/suite2cases/expect.json new file mode 100644 index 0000000000000000000000000000000000000000..f59eaae47d20a42474770970fb5d4edbd6e3ded7 --- /dev/null +++ b/suite2cases/expect.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/expect", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_expect_install_and_remove_expect" + }, + { + "name": "oe_test_expect_install_and_remove_expect-help" + }, + { + "name": "oe_test_expect_install_and_remove_expect-devel" + }, + { + "name": "oe_test_expect_install_and_remove_expect-debuginfo" + }, + { + "name": "oe_test_expect_install_and_remove_expect-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/fakechroot.json b/suite2cases/fakechroot.json index a5d4c612fda8c6ce386d54bd25908a92c075ad86..ff1ee560d9d74fbd065a3c285afeeee1dba89a90 100644 --- a/suite2cases/fakechroot.json +++ b/suite2cases/fakechroot.json @@ -1,20 +1,35 @@ { - "path": "$OET_PATH/testcases/cli-test/fakechroot", - "cases": [ - { - "name": "oe_test_fakechroot_env_01" - }, - { - "name": "oe_test_fakechroot_env_02" - }, - { - "name": "oe_test_fakechroot_base_01" - }, - { - "name": "oe_test_fakechroot_base_02" - }, - { - "name": "oe_test_fakechroot_chroot" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/fakechroot", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_fakechroot_env_01" + }, + { + "name": "oe_test_fakechroot_env_02" + }, + { + "name": "oe_test_fakechroot_base_01" + }, + { + "name": "oe_test_fakechroot_base_02" + }, + { + "name": "oe_test_fakechroot_chroot" + }, + { + "name": "oe_test_fakechroot_install_and_remove_fakechroot" + }, + { + "name": "oe_test_fakechroot_install_and_remove_fakechroot-help" + }, + { + "name": "oe_test_fakechroot_install_and_remove_fakechroot-debuginfo" + }, + { + "name": "oe_test_fakechroot_install_and_remove_fakechroot-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/fakeroot.json b/suite2cases/fakeroot.json index c4e9d88a59ee986f583801aba76125706941adbd..8db805475da2e8b2f59b810c373c4c294868b8ea 100644 --- a/suite2cases/fakeroot.json +++ b/suite2cases/fakeroot.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/fakeroot", + "cpu": 2, + "memory": 4, "cases": [ { - "name": "oe_test_fakeroot_base" + "name": "oe_test_fakeroot_base" }, { - "name": "oe_test_fakeroot_faked" + "name": "oe_test_fakeroot_faked" } ] } \ No newline at end of file diff --git a/suite2cases/fapolicyd.json b/suite2cases/fapolicyd.json index a2b77e1491d307e34e22f6ac260aa56c8e7a275f..ce03bef93b2a5a69ab333c24369978f6a7bafaf9 100644 --- a/suite2cases/fapolicyd.json +++ b/suite2cases/fapolicyd.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/fapolicyd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fapolicyd-service" }, - { - "name": "oe_test_fapolicyd-bugfix" - } + { + "name": "oe_test_fapolicyd-bugfix" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/fastdfs.json b/suite2cases/fastdfs.json index 0f8a27c40527a65a14c0e95bd7b4b3265c41f0e0..34020f1a74f7ac165cf3e6e099bf7f1cfcab9bd3 100644 --- a/suite2cases/fastdfs.json +++ b/suite2cases/fastdfs.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/fastdfs", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fastdfs_01" diff --git a/suite2cases/fcgi.json b/suite2cases/fcgi.json index f5a759913679c9309e2025f9e89d5d066024f80d..5838061cb63511a3b8e2c5ad7ddfff591003bd53 100644 --- a/suite2cases/fcgi.json +++ b/suite2cases/fcgi.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/fcgi", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fcgi" diff --git a/suite2cases/fcoe-utils.json b/suite2cases/fcoe-utils.json index 16e893bbbbf2a8bed88001dce6f28f68e6e49755..f0e734e93e25ee98cbce43bab500781d4e3a2fd1 100644 --- a/suite2cases/fcoe-utils.json +++ b/suite2cases/fcoe-utils.json @@ -1,11 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/fcoe-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_fcoe" }, { "name": "oe_test_socket_fcoemon" + }, + { + "name": "oe_test_fcoe-utils_install_and_remove_fcoe-utils" + }, + { + "name": "oe_test_fcoe-utils_install_and_remove_fcoe-utils-help" + }, + { + "name": "oe_test_fcoe-utils_install_and_remove_fcoe-utils-debuginfo" + }, + { + "name": "oe_test_fcoe-utils_install_and_remove_fcoe-utils-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/fdupes.json b/suite2cases/fdupes.json new file mode 100644 index 0000000000000000000000000000000000000000..28ba52ca4034f97a1378eb452415de21cca68d21 --- /dev/null +++ b/suite2cases/fdupes.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/fdupes", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_fdupes_install_and_remove_fdupes" + }, + { + "name": "oe_test_fdupes_install_and_remove_fdupes-debuginfo" + }, + { + "name": "oe_test_fdupes_install_and_remove_fdupes-help" + }, + { + "name": "oe_test_fdupes_install_and_remove_fdupes-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/fence-virt.json b/suite2cases/fence-virt.json index 5b8fff8b1254e3fc067c922f1bb49f32512d0b81..15607a6cd50d53e820c45ce5a226b0af6d6310c0 100644 --- a/suite2cases/fence-virt.json +++ b/suite2cases/fence-virt.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/fence-virt", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_fence_virtd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/fetch-crl.json b/suite2cases/fetch-crl.json index bf8ffbd564666ade7ecb763c019877d5b9823a68..d8d3a17288f74d90293872957a53d1d2808d73d4 100644 --- a/suite2cases/fetch-crl.json +++ b/suite2cases/fetch-crl.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/fetch-crl", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_clean-crl" @@ -17,4 +19,4 @@ "name": "oe_test_fetch_crl_03" } ] -} +} \ No newline at end of file diff --git a/suite2cases/fetchmail.json b/suite2cases/fetchmail.json index 9a0fe26758ddb94b3129b5f612577e80f027d4c4..6a26b321fc0aca23ea00b6ca0b7b4f4f581f8240 100644 --- a/suite2cases/fetchmail.json +++ b/suite2cases/fetchmail.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/fetchmail", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_fetchmail" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ffmpeg.json b/suite2cases/ffmpeg.json index 39bdbc328322fb365721554e5f3cd97cdd39bc6c..57cdd05efeb3a0c2c999cf78ec38b53913d0426c 100644 --- a/suite2cases/ffmpeg.json +++ b/suite2cases/ffmpeg.json @@ -1,14 +1,16 @@ { - "path": "$OET_PATH/testcases/cli-test/ffmpeg", - "cases": [ - { - "name": "oe_test_ffmpeg" - }, - { - "name": "oe_test_ffmpeg_01" - }, - { - "name": "oe_test_ffmpeg_02" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/ffmpeg", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ffmpeg" + }, + { + "name": "oe_test_ffmpeg_01" + }, + { + "name": "oe_test_ffmpeg_02" + } + ] +} \ No newline at end of file diff --git a/suite2cases/fftw.json b/suite2cases/fftw.json index 2300f8d394f6081953ef13c69ef70a1fab7b0cdb..f729fa84d8d5326e400d0088ce2ebbf4d4215061 100644 --- a/suite2cases/fftw.json +++ b/suite2cases/fftw.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/fftw", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fftw_fftw-wisdom-to-conf" @@ -30,6 +33,60 @@ }, { "name": "oe_test_fftw_fftwl-wisdom_03" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-mpich-libs" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-openmpi-devel" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-openmpi-libs-single" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-libs" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-devel" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-libs-double" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-libs-single" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-libs-long" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-mpich-devel" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-mpich-libs-double" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-openmpi-libs" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-libs-quad" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-mpich-libs-single" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-mpich-libs-long" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-openmpi-libs-double" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-openmpi-libs-long" + }, + { + "name": "oe_test_fftw_install_and_remove_fftw-help" } ] } \ No newline at end of file diff --git a/suite2cases/figlet.json b/suite2cases/figlet.json index 691dd27faf5c43c58598bf7c07d2a0706ab7e237..62a955dda9a7bbff376a6374de427625c66acd77 100644 --- a/suite2cases/figlet.json +++ b/suite2cases/figlet.json @@ -1,17 +1,19 @@ { "path": "$OET_PATH/testcases/cli-test/figlet", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_figlet" - }, - { - "name": "oe_test_figlet_01" }, - { - "name": "oe_test_figlet_02" - }, - { - "name": "oe_test_figlet_03" + { + "name": "oe_test_figlet_01" + }, + { + "name": "oe_test_figlet_02" + }, + { + "name": "oe_test_figlet_03" } ] -} +} \ No newline at end of file diff --git a/suite2cases/file.json b/suite2cases/file.json index 80aad6882d77402fb2034145c1c8583b195ac9e3..0ac514fefd673457d01b992702dab65fdf949f23 100644 --- a/suite2cases/file.json +++ b/suite2cases/file.json @@ -1,8 +1,35 @@ { "path": "${OET_PATH}/testcases/cli-test/file/", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "file01" + }, + { + "name": "oe_test_file_install_and_remove_file" + }, + { + "name": "oe_test_file_install_and_remove_file-libs" + }, + { + "name": "oe_test_file_install_and_remove_file-devel" + }, + { + "name": "oe_test_file_install_and_remove_file-help" + }, + { + "name": "oe_test_file_install_and_remove_python3-magic" + }, + { + "name": "oe_test_file_install_and_remove_file-debugsource" + }, + { + "name": "oe_test_file_install_and_remove_file-debuginfo" + }, + { + "name": "oe_test_file_install_and_remove_python2-magic" } ] -} +} \ No newline at end of file diff --git a/suite2cases/filesystem.json b/suite2cases/filesystem.json new file mode 100644 index 0000000000000000000000000000000000000000..1e545732ba40005800ac1c2db49fe0a4c60dac0c --- /dev/null +++ b/suite2cases/filesystem.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/filesystem", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_filesystem_install_and_remove_filesystem" + }, + { + "name": "oe_test_filesystem_install_and_remove_filesystem-content" + }, + { + "name": "oe_test_filesystem_install_and_remove_filesystem-afs" + } + ] +} \ No newline at end of file diff --git a/suite2cases/findutils.json b/suite2cases/findutils.json new file mode 100644 index 0000000000000000000000000000000000000000..826f9fca915f0888965488c6aa93dafd295f60e5 --- /dev/null +++ b/suite2cases/findutils.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/findutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_findutils_install_and_remove_findutils" + }, + { + "name": "oe_test_findutils_install_and_remove_findutils-help" + }, + { + "name": "oe_test_findutils_install_and_remove_findutils-debugsource" + }, + { + "name": "oe_test_findutils_install_and_remove_findutils-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/fio.json b/suite2cases/fio.json index 4716425f8de044551441b884ea9fc0342ba415a7..2505a423f1beec14f6996bc343852c73c185ecaa 100644 --- a/suite2cases/fio.json +++ b/suite2cases/fio.json @@ -4,6 +4,8 @@ 2, 2 ], + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fio_001", diff --git a/suite2cases/fipscheck.json b/suite2cases/fipscheck.json new file mode 100644 index 0000000000000000000000000000000000000000..74f21a0ded5a157bf1072632e399adbcf82f2527 --- /dev/null +++ b/suite2cases/fipscheck.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/fipscheck", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_fipscheck_install_and_remove_fipscheck" + }, + { + "name": "oe_test_fipscheck_install_and_remove_fipscheck-devel" + }, + { + "name": "oe_test_fipscheck_install_and_remove_fipscheck-debuginfo" + }, + { + "name": "oe_test_fipscheck_install_and_remove_fipscheck-debugsource" + }, + { + "name": "oe_test_fipscheck_install_and_remove_fipscheck-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/firebird.json b/suite2cases/firebird.json index e015a07e987a8cd83f7ce5ca05b702f8ad234d2e..f803e09b109fe51c36da9efddfbdd3cf7d6053b2 100644 --- a/suite2cases/firebird.json +++ b/suite2cases/firebird.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/firebird", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_firebird-superserver" @@ -8,4 +10,4 @@ "name": "oe_test_service_firebird" } ] -} +} \ No newline at end of file diff --git a/suite2cases/firewalld.json b/suite2cases/firewalld.json index b0067675491c780fb77f7ec9abc3c196108a0e68..544d4f76a75ae3928bf56323e7a54e65e2ec1d7b 100644 --- a/suite2cases/firewalld.json +++ b/suite2cases/firewalld.json @@ -2,6 +2,9 @@ "path": "${OET_PATH}/testcases/cli-test/firewalld", "machine num": 3, "add network interface": 1, + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_firewalld_add_newservice", @@ -165,8 +168,8 @@ }, { "name": "oe_test_firewalld_default_rules" - }, - { + }, + { "name": "oe_test_firewalld_runtime_rules_in_effect", "machine num": 2 }, @@ -177,7 +180,18 @@ { "name": "oe_test_firewalld_zone_migration", "machine num": 2 + }, + { + "name": "oe_test_firewalld_install_and_remove_firewalld" + }, + { + "name": "oe_test_firewalld_install_and_remove_firewalld-doc" + }, + { + "name": "oe_test_firewalld_install_and_remove_python3-firewall" + }, + { + "name": "oe_test_firewalld_install_and_remove_firewalld-test" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/flac.json b/suite2cases/flac.json index 14bcb1253e0cef97b1ddca84c19936546a3b5432..f94a0b2a35724f918f71d55dadd3ed1aec60f8a5 100644 --- a/suite2cases/flac.json +++ b/suite2cases/flac.json @@ -1,8 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/flac", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_flac" + }, + { + "name": "oe_test_flac_install_and_remove_flac" + }, + { + "name": "oe_test_flac_install_and_remove_flac-devel" + }, + { + "name": "oe_test_flac_install_and_remove_flac-help" + }, + { + "name": "oe_test_flac_install_and_remove_flac-debugsource" + }, + { + "name": "oe_test_flac_install_and_remove_flac-debuginfo" + }, + { + "name": "oe_test_flac_install_and_remove_xmms-flac" } ] -} +} \ No newline at end of file diff --git a/suite2cases/flatbuffers.json b/suite2cases/flatbuffers.json index cd6c1fa6073f8fed87b3062c677d58615ce1453a..602480aee0fe03690915e50bbb4c899ea8a324ba 100644 --- a/suite2cases/flatbuffers.json +++ b/suite2cases/flatbuffers.json @@ -1,14 +1,16 @@ { "path": "$OET_PATH/testcases/cli-test/flatbuffers", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_flatbuffers" - }, - { - "name": "oe_test_flatbuffers_01" - }, - { - "name": "oe_test_flatbuffers_02" + }, + { + "name": "oe_test_flatbuffers_01" + }, + { + "name": "oe_test_flatbuffers_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/flatpak.json b/suite2cases/flatpak.json index b6965ee9088b7504d98cd3677c32abe7ba52ff83..57f72181df8ecd56be7712ef73f96077d9f941e2 100644 --- a/suite2cases/flatpak.json +++ b/suite2cases/flatpak.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/flatpak", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_flatpak-system-helper" } ] -} +} \ No newline at end of file diff --git a/suite2cases/flex.json b/suite2cases/flex.json index 3a22f5adbaf3cdedfc7461d7cf0a068acf14646c..5b047f927792fd4f560efb1074b00574f915d2b7 100644 --- a/suite2cases/flex.json +++ b/suite2cases/flex.json @@ -1,20 +1,38 @@ { - "path": "${OET_PATH}/testcases/cli-test/flex", - "cases": [ - { - "name": "oe_test_flex_analyzer" - }, - { - "name": "oe_test_flex_debugging" - }, - { - "name": "oe_test_flex_filetest" - }, - { - "name": "oe_test_flex_scanner" - }, - { - "name": "oe_test_flex_generated_code" - } - ] -} + "path": "${OET_PATH}/testcases/cli-test/flex", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_flex_analyzer" + }, + { + "name": "oe_test_flex_debugging" + }, + { + "name": "oe_test_flex_filetest" + }, + { + "name": "oe_test_flex_scanner" + }, + { + "name": "oe_test_flex_generated_code" + }, + { + "name": "oe_test_flex_install_and_remove_flex" + }, + { + "name": "oe_test_flex_install_and_remove_flex-help" + }, + { + "name": "oe_test_flex_install_and_remove_flex-devel" + }, + { + "name": "oe_test_flex_install_and_remove_flex-debuginfo" + }, + { + "name": "oe_test_flex_install_and_remove_flex-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/flink.json b/suite2cases/flink.json index 675f6f0b576c4997f5f27126a771103f91db2506..d454de5dd5df87de366e81a8f56e7b6c32ac8890 100644 --- a/suite2cases/flink.json +++ b/suite2cases/flink.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/flink", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_flink-local" } ] -} +} \ No newline at end of file diff --git a/suite2cases/fltk.json b/suite2cases/fltk.json new file mode 100644 index 0000000000000000000000000000000000000000..de9551914712bde469fd0452f62d22c39236a11f --- /dev/null +++ b/suite2cases/fltk.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/fltk", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_fltk_install_and_remove_fltk" + }, + { + "name": "oe_test_fltk_install_and_remove_fltk-fluid" + }, + { + "name": "oe_test_fltk_install_and_remove_fltk-devel" + }, + { + "name": "oe_test_fltk_install_and_remove_fltk-static" + }, + { + "name": "oe_test_fltk_install_and_remove_fltk-debugsource" + }, + { + "name": "oe_test_fltk_install_and_remove_fltk-help" + }, + { + "name": "oe_test_fltk_install_and_remove_fltk-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/fmt.json b/suite2cases/fmt.json index 0fa76c738fb9ae7f27958b9b9af611343e859a8d..fb329f41c1c671dc7aa22a6fca77884bb7b9a018 100644 --- a/suite2cases/fmt.json +++ b/suite2cases/fmt.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/fmt", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fmt" } ] -} +} \ No newline at end of file diff --git a/suite2cases/fontconfig.json b/suite2cases/fontconfig.json index 0c1a9dadca0990ee9bc5eafc6e1dac5d98992039..ee8e93a836d006fe31eab4de8c59005b167b41f0 100644 --- a/suite2cases/fontconfig.json +++ b/suite2cases/fontconfig.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/fontconfig", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fc-list" @@ -18,6 +21,21 @@ }, { "name": "oe_test_fc-cache" + }, + { + "name": "oe_test_fontconfig_install_and_remove_fontconfig" + }, + { + "name": "oe_test_fontconfig_install_and_remove_fontconfig-devel" + }, + { + "name": "oe_test_fontconfig_install_and_remove_fontconfig-help" + }, + { + "name": "oe_test_fontconfig_install_and_remove_fontconfig-debuginfo" + }, + { + "name": "oe_test_fontconfig_install_and_remove_fontconfig-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/fontforge.json b/suite2cases/fontforge.json index f35858e78cae60881dd857ae50e46409b4f97499..fdd615c3b6a5f43103a5faa73e05bedfee65f0f2 100644 --- a/suite2cases/fontforge.json +++ b/suite2cases/fontforge.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/fontforge", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fontforge_fontforge" @@ -9,6 +12,21 @@ }, { "name": "oe_test_fontforge_fontlint" + }, + { + "name": "oe_test_fontforge_install_and_remove_fontforge" + }, + { + "name": "oe_test_fontforge_install_and_remove_fontforge-help" + }, + { + "name": "oe_test_fontforge_install_and_remove_fontforge-devel" + }, + { + "name": "oe_test_fontforge_install_and_remove_fontforge-debugsource" + }, + { + "name": "oe_test_fontforge_install_and_remove_fontforge-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/fonts-rpm-macros.json b/suite2cases/fonts-rpm-macros.json index 5ac73a21cb3c734220b2a5c3be7af59712331e4b..86616f516f45d56ac775008f8f6175050bee3213 100644 --- a/suite2cases/fonts-rpm-macros.json +++ b/suite2cases/fonts-rpm-macros.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/fonts-rpm-macros", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fonts_rpm_macros" + }, + { + "name": "oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-macros" + }, + { + "name": "oe_test_fonts-rpm-macros_install_and_remove_fonts-filesystem" + }, + { + "name": "oe_test_fonts-rpm-macros_install_and_remove_fonts-srpm-macros" + }, + { + "name": "oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-templates" + }, + { + "name": "oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-macros-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/fpaste.json b/suite2cases/fpaste.json new file mode 100644 index 0000000000000000000000000000000000000000..710c076af036e19bec845361da6d17bd44bfd879 --- /dev/null +++ b/suite2cases/fpaste.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/fpaste", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_fpaste_install_and_remove_fpaste" + }, + { + "name": "oe_test_fpaste_install_and_remove_fpaste-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/fprintd.json b/suite2cases/fprintd.json index e22255c0c34e11cc9bba75540e148d851ae8b587..aa43a0e46bf58764a262c89bdc6b76177a91012e 100644 --- a/suite2cases/fprintd.json +++ b/suite2cases/fprintd.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/fprintd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_fprintd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/freeglut.json b/suite2cases/freeglut.json new file mode 100644 index 0000000000000000000000000000000000000000..b28df36f015c9d0bbadbd71a1aa2675f8ff46e8a --- /dev/null +++ b/suite2cases/freeglut.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/freeglut", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_freeglut_install_and_remove_freeglut" + }, + { + "name": "oe_test_freeglut_install_and_remove_freeglut-devel" + }, + { + "name": "oe_test_freeglut_install_and_remove_freeglut-help" + }, + { + "name": "oe_test_freeglut_install_and_remove_freeglut-debuginfo" + }, + { + "name": "oe_test_freeglut_install_and_remove_freeglut-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/freeipmi.json b/suite2cases/freeipmi.json index 3d2d31faf671c229366ffcd97e217c134ea9c372..7694cb89cc7b901152c7ef1929782279b8753b63 100644 --- a/suite2cases/freeipmi.json +++ b/suite2cases/freeipmi.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/freeipmi", "machine type": "physical", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_bmc-watchdog", diff --git a/suite2cases/freeradius.json b/suite2cases/freeradius.json index c3c35cb3472a5542f063a034424b744ed0703984..c07f4a31a65dbf39e07977028b78de923178093e 100644 --- a/suite2cases/freeradius.json +++ b/suite2cases/freeradius.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/freeradius", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_freeradius_freeradius_raddebugAndCheckrad" diff --git a/suite2cases/freetds.json b/suite2cases/freetds.json index 1b121ba2d67931a43989b3f8fc9ce9cd52ded932..dfe536061d91683c25fd39c30874a9a376ea545e 100644 --- a/suite2cases/freetds.json +++ b/suite2cases/freetds.json @@ -1,17 +1,19 @@ { "path": "$OET_PATH/testcases/cli-test/freetds", + "cpu": 2, + "memory": 4, "cases": [ { - "name": "oe_test_freetds_datacopy" + "name": "oe_test_freetds_datacopy" }, { - "name": "oe_test_freetds_fisql" + "name": "oe_test_freetds_fisql" }, { - "name": "oe_test_freetds_freebcp" + "name": "oe_test_freetds_freebcp" }, { - "name": "oe_test_freetds_tsql" + "name": "oe_test_freetds_tsql" } ] -} +} \ No newline at end of file diff --git a/suite2cases/freetype.json b/suite2cases/freetype.json new file mode 100644 index 0000000000000000000000000000000000000000..f8edba07830dc67b797c2c70cfe2a83f7da1d5a2 --- /dev/null +++ b/suite2cases/freetype.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/freetype", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_freetype_install_and_remove_freetype" + }, + { + "name": "oe_test_freetype_install_and_remove_freetype-help" + }, + { + "name": "oe_test_freetype_install_and_remove_freetype-devel" + }, + { + "name": "oe_test_freetype_install_and_remove_freetype-demos" + }, + { + "name": "oe_test_freetype_install_and_remove_freetype-debugsource" + }, + { + "name": "oe_test_freetype_install_and_remove_freetype-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/fribidi.json b/suite2cases/fribidi.json index 8c7cbb8b7e8f7c35a2f9ae0cf64ab43518e9b312..6188dd502d74775bf7479da31c02675939ce3247 100644 --- a/suite2cases/fribidi.json +++ b/suite2cases/fribidi.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/fribidi", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fribidi" + }, + { + "name": "oe_test_fribidi_install_and_remove_fribidi" + }, + { + "name": "oe_test_fribidi_install_and_remove_fribidi-devel" + }, + { + "name": "oe_test_fribidi_install_and_remove_fribidi-debuginfo" + }, + { + "name": "oe_test_fribidi_install_and_remove_fribidi-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/fros.json b/suite2cases/fros.json new file mode 100644 index 0000000000000000000000000000000000000000..eeb884b77170137befffede77feaabf64c66c3bb --- /dev/null +++ b/suite2cases/fros.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/fros", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_fros_install_and_remove_fros" + }, + { + "name": "oe_test_fros_install_and_remove_fros-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ftp.json b/suite2cases/ftp.json new file mode 100644 index 0000000000000000000000000000000000000000..a63648889ef04bf9445d7b08f5640d0af3206bee --- /dev/null +++ b/suite2cases/ftp.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/ftp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ftp_install_and_remove_ftp" + }, + { + "name": "oe_test_ftp_install_and_remove_ftp-help" + }, + { + "name": "oe_test_ftp_install_and_remove_ftp-debugsource" + }, + { + "name": "oe_test_ftp_install_and_remove_ftp-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/fuse.json b/suite2cases/fuse.json new file mode 100644 index 0000000000000000000000000000000000000000..b7756f0ccf41fbdc3bd9bb55918e3d4d422a52a6 --- /dev/null +++ b/suite2cases/fuse.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/fuse", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_fuse_install_and_remove_fuse" + }, + { + "name": "oe_test_fuse_install_and_remove_fuse-help" + }, + { + "name": "oe_test_fuse_install_and_remove_fuse-devel" + }, + { + "name": "oe_test_fuse_install_and_remove_fuse-debuginfo" + }, + { + "name": "oe_test_fuse_install_and_remove_fuse-debugsource" + }, + { + "name": "oe_test_fuse_install_and_remove_fuse3" + }, + { + "name": "oe_test_fuse_install_and_remove_fuse3-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/fuse3.json b/suite2cases/fuse3.json new file mode 100644 index 0000000000000000000000000000000000000000..e867f947cfba7bea9ffe610ae4b7c7014e611aed --- /dev/null +++ b/suite2cases/fuse3.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/fuse3", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_fuse3_install_and_remove_fuse3" + }, + { + "name": "oe_test_fuse3_install_and_remove_fuse3-devel" + }, + { + "name": "oe_test_fuse3_install_and_remove_fuse-common" + }, + { + "name": "oe_test_fuse3_install_and_remove_fuse3-help" + }, + { + "name": "oe_test_fuse3_install_and_remove_fuse3-debugsource" + }, + { + "name": "oe_test_fuse3_install_and_remove_fuse3-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/future.json b/suite2cases/future.json index ec19103b3e2d8ecb6668036c6685a477d7793a95..f3c106d82fd0b4e1c7b4ed9a693d32e798db0c18 100644 --- a/suite2cases/future.json +++ b/suite2cases/future.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/future", - "cases": [ - { - "name": "oe_test_python_future" - } - ] + "path": "$OET_PATH/testcases/cli-test/future", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python_future" + } + ] } \ No newline at end of file diff --git a/suite2cases/fwupd.json b/suite2cases/fwupd.json index f745c41764ceafa1cdfb7c949280873cdcf11086..1663e4017a78b1d0eb5a2a44603900929e704715 100644 --- a/suite2cases/fwupd.json +++ b/suite2cases/fwupd.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/fwupd", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_fwupd-offline-update" @@ -9,6 +12,21 @@ }, { "name": "oe_test_service_fwupd-refresh" + }, + { + "name": "oe_test_fwupd_install_and_remove_fwupd" + }, + { + "name": "oe_test_fwupd_install_and_remove_fwupd-devel" + }, + { + "name": "oe_test_fwupd_install_and_remove_fwupd-help" + }, + { + "name": "oe_test_fwupd_install_and_remove_fwupd-debugsource" + }, + { + "name": "oe_test_fwupd_install_and_remove_fwupd-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gala-anteater.json b/suite2cases/gala-anteater.json index 01a2247a1046244df9fdbf9ab07e906bf7f4f0b3..48450e49aa022a385435b8431defa8265ae0af77 100644 --- a/suite2cases/gala-anteater.json +++ b/suite2cases/gala-anteater.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/gala-anteater", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_anteater" diff --git a/suite2cases/gala-gopher.json b/suite2cases/gala-gopher.json index a78af0ec3f8a7be1a87f216d49e0df8cb08bc6a4..1886f51307257ae14837842a58b9401af4a7984c 100644 --- a/suite2cases/gala-gopher.json +++ b/suite2cases/gala-gopher.json @@ -1,15 +1,17 @@ { "path": "$OET_PATH/testcases/cli-test/gala-gopher", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_gopher" }, - { - "name": "oe_test_galagopher_tcpprobe" - }, - { - "name": "oe_test_galagopher_stackprobe" - }, + { + "name": "oe_test_galagopher_tcpprobe" + }, + { + "name": "oe_test_galagopher_stackprobe" + }, { "name": "oe_test_galagopher_endpoint" }, @@ -38,4 +40,4 @@ "name": "oe_test_galagopher_guassdb" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gala-spider.json b/suite2cases/gala-spider.json index c0802903a849ea103766b69cfda16b29037aa063..9be13b58dc6cf539c227a8c0021f3de1a3e1ed44 100644 --- a/suite2cases/gala-spider.json +++ b/suite2cases/gala-spider.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/gala-spider", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_gala-spider" @@ -8,4 +10,4 @@ "name": "oe_test_service_gala-inference" } ] -} +} \ No newline at end of file diff --git a/suite2cases/galera.json b/suite2cases/galera.json index 62c71f4c012041ac3cc01b606c9ea08d22c8723a..91368e519261964e134c089ba2664ffcade230f2 100644 --- a/suite2cases/galera.json +++ b/suite2cases/galera.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/cli-test/galera", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_galera_garbd" diff --git a/suite2cases/ganglia.json b/suite2cases/ganglia.json index ca8c9c497f8834a359f4f0da8b0788e9596cb834..fe17f366fd1c30cfefd32056de6d61fe258218b3 100644 --- a/suite2cases/ganglia.json +++ b/suite2cases/ganglia.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/ganglia", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_gmetad" @@ -8,4 +10,4 @@ "name": "oe_test_service_gmond" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gawk.json b/suite2cases/gawk.json index e613bfad9f0d10b6936e4e7236404160b5d80dc9..b784d0ee3ce232de376ddecbe2dd9a54d673e6fb 100644 --- a/suite2cases/gawk.json +++ b/suite2cases/gawk.json @@ -1,20 +1,47 @@ { - "path": "$OET_PATH/testcases/cli-test/gawk", - "cases": [ - { - "name": "oe_test_gawk" - }, - { - "name": "oe_test_gawk01" - }, - { - "name": "oe_test_gawk02" - }, - { - "name": "oe_test_gawk03" - }, - { - "name": "oe_test_gawk04" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/gawk", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gawk" + }, + { + "name": "oe_test_gawk01" + }, + { + "name": "oe_test_gawk02" + }, + { + "name": "oe_test_gawk03" + }, + { + "name": "oe_test_gawk04" + }, + { + "name": "oe_test_gawk_install_and_remove_gawk" + }, + { + "name": "oe_test_gawk_install_and_remove_gawk-help" + }, + { + "name": "oe_test_gawk_install_and_remove_gawk-lang" + }, + { + "name": "oe_test_gawk_install_and_remove_gawk-devel" + }, + { + "name": "oe_test_gawk_install_and_remove_gawk-debuginfo" + }, + { + "name": "oe_test_gawk_install_and_remove_gawk-debugsource" + }, + { + "name": "oe_test_gawk_install_and_remove_gawk-all-langpacks" + }, + { + "name": "oe_test_gawk_install_and_remove_gawk-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gc.json b/suite2cases/gc.json new file mode 100644 index 0000000000000000000000000000000000000000..c64e6b387927ebfcbcd909edc9886351197a408e --- /dev/null +++ b/suite2cases/gc.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gc_install_and_remove_gc" + }, + { + "name": "oe_test_gc_install_and_remove_gc-devel" + }, + { + "name": "oe_test_gc_install_and_remove_gc-debuginfo" + }, + { + "name": "oe_test_gc_install_and_remove_gc-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gcab.json b/suite2cases/gcab.json new file mode 100644 index 0000000000000000000000000000000000000000..1bbe7f35ed7ac37908c337e04c708a2cee8568fc --- /dev/null +++ b/suite2cases/gcab.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gcab", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gcab_install_and_remove_gcab" + }, + { + "name": "oe_test_gcab_install_and_remove_gcab-devel" + }, + { + "name": "oe_test_gcab_install_and_remove_gcab-help" + }, + { + "name": "oe_test_gcab_install_and_remove_gcab-debuginfo" + }, + { + "name": "oe_test_gcab_install_and_remove_gcab-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gcc.json b/suite2cases/gcc.json index 659726e90f13ae75518e0a49fea57a0dbb9407e0..436f28f4c9891dd0408d2d756d1ec343a190be08 100644 --- a/suite2cases/gcc.json +++ b/suite2cases/gcc.json @@ -1,11 +1,161 @@ { "path": "$OET_PATH/testcases/cli-test/gcc", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libasan" }, { "name": "oe_test_liblsan" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc" + }, + { + "name": "oe_test_gcc_install_and_remove_libgcc" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-c++" + }, + { + "name": "oe_test_gcc_install_and_remove_libgfortran-static" + }, + { + "name": "oe_test_gcc_install_and_remove_libgphobos-static" + }, + { + "name": "oe_test_gcc_install_and_remove_libgomp" + }, + { + "name": "oe_test_gcc_install_and_remove_libquadmath-devel" + }, + { + "name": "oe_test_gcc_install_and_remove_libquadmath-static" + }, + { + "name": "oe_test_gcc_install_and_remove_libatomic" + }, + { + "name": "oe_test_gcc_install_and_remove_libasan" + }, + { + "name": "oe_test_gcc_install_and_remove_libtsan" + }, + { + "name": "oe_test_gcc_install_and_remove_libubsan-static" + }, + { + "name": "oe_test_gcc_install_and_remove_liblsan-static" + }, + { + "name": "oe_test_gcc_install_and_remove_cpp" + }, + { + "name": "oe_test_gcc_install_and_remove_libgnat" + }, + { + "name": "oe_test_gcc_install_and_remove_libgo" + }, + { + "name": "oe_test_gcc_install_and_remove_libgo-static" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-plugin-devel" + }, + { + "name": "oe_test_gcc_install_and_remove_libstdc++" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-objc" + }, + { + "name": "oe_test_gcc_install_and_remove_libobjc" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-gdc" + }, + { + "name": "oe_test_gcc_install_and_remove_libgphobos" + }, + { + "name": "oe_test_gcc_install_and_remove_libquadmath" + }, + { + "name": "oe_test_gcc_install_and_remove_libasan-static" + }, + { + "name": "oe_test_gcc_install_and_remove_libubsan" + }, + { + "name": "oe_test_gcc_install_and_remove_libgnat-devel" + }, + { + "name": "oe_test_gcc_install_and_remove_libgnat-static" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-go" + }, + { + "name": "oe_test_gcc_install_and_remove_accelerate-libs" + }, + { + "name": "oe_test_gcc_install_and_remove_libstdc++-devel" + }, + { + "name": "oe_test_gcc_install_and_remove_libstdc++-static" + }, + { + "name": "oe_test_gcc_install_and_remove_libstdc++-docs" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-objc++" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-gfortran" + }, + { + "name": "oe_test_gcc_install_and_remove_libgfortran" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-gdb-plugin" + }, + { + "name": "oe_test_gcc_install_and_remove_libitm" + }, + { + "name": "oe_test_gcc_install_and_remove_libitm-devel" + }, + { + "name": "oe_test_gcc_install_and_remove_libitm-static" + }, + { + "name": "oe_test_gcc_install_and_remove_libatomic-static" + }, + { + "name": "oe_test_gcc_install_and_remove_libtsan-static" + }, + { + "name": "oe_test_gcc_install_and_remove_liblsan" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-gnat" + }, + { + "name": "oe_test_gcc_install_and_remove_libgo-devel" + }, + { + "name": "oe_test_gcc_install_and_remove_libgccjit" + }, + { + "name": "oe_test_gcc_install_and_remove_libgccjit-devel" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-debuginfo" + }, + { + "name": "oe_test_gcc_install_and_remove_gcc-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/gcc_secure.json b/suite2cases/gcc_secure.json new file mode 100644 index 0000000000000000000000000000000000000000..ae8033beaa2ede47820fc49b1fd5972c0e2adfcf --- /dev/null +++ b/suite2cases/gcc_secure.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gcc_secure", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gcc_secure_install_and_remove_gcc_secure" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gcr.json b/suite2cases/gcr.json new file mode 100644 index 0000000000000000000000000000000000000000..44a3ab1aff6f64d334b06898aebfaccc2bc65f27 --- /dev/null +++ b/suite2cases/gcr.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gcr", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gcr_install_and_remove_gcr" + }, + { + "name": "oe_test_gcr_install_and_remove_gcr-base" + }, + { + "name": "oe_test_gcr_install_and_remove_gcr-devel" + }, + { + "name": "oe_test_gcr_install_and_remove_gcr-debuginfo" + }, + { + "name": "oe_test_gcr_install_and_remove_gcr-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gd.json b/suite2cases/gd.json new file mode 100644 index 0000000000000000000000000000000000000000..8961fc64234c2631e7cca8ede1492ccab0293d98 --- /dev/null +++ b/suite2cases/gd.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gd_install_and_remove_gd" + }, + { + "name": "oe_test_gd_install_and_remove_gd-progs" + }, + { + "name": "oe_test_gd_install_and_remove_gd-devel" + }, + { + "name": "oe_test_gd_install_and_remove_gd-debuginfo" + }, + { + "name": "oe_test_gd_install_and_remove_gd-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gdb.json b/suite2cases/gdb.json index e26110091a5a4bead2287a1742156958883cedfb..56c041219099e34e979d87c16b369ce74d9e6e8d 100644 --- a/suite2cases/gdb.json +++ b/suite2cases/gdb.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/gdb", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gdb_recovery_database" @@ -15,7 +18,24 @@ }, { "name": "oe_test_gdb-watch" + }, + { + "name": "oe_test_gdb_install_and_remove_gdb" + }, + { + "name": "oe_test_gdb_install_and_remove_gdb-help" + }, + { + "name": "oe_test_gdb_install_and_remove_gdb-headless" + }, + { + "name": "oe_test_gdb_install_and_remove_gdb-gdbserver" + }, + { + "name": "oe_test_gdb_install_and_remove_gdb-debuginfo" + }, + { + "name": "oe_test_gdb_install_and_remove_gdb-debugsource" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/gdbm.json b/suite2cases/gdbm.json index d5be9fc33918a6771f5d5b2969a388447d5cec42..449ef2678b5c9b3765b23dc8aa8e1e1a713b8d95 100644 --- a/suite2cases/gdbm.json +++ b/suite2cases/gdbm.json @@ -1,11 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/gdbm", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gdbm_01" }, - { + { "name": "oe_test_gdbm_02" + }, + { + "name": "oe_test_gdbm_install_and_remove_gdbm" + }, + { + "name": "oe_test_gdbm_install_and_remove_gdbm-devel" + }, + { + "name": "oe_test_gdbm_install_and_remove_gdbm-help" + }, + { + "name": "oe_test_gdbm_install_and_remove_gdbm-debugsource" + }, + { + "name": "oe_test_gdbm_install_and_remove_gdbm-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gdisk.json b/suite2cases/gdisk.json index 40cce73cbf27a1a6715f8416d5fd4f223815a1aa..5e5ea777cfdf9e2dd4dbaf9e4ef52a347fe32709 100644 --- a/suite2cases/gdisk.json +++ b/suite2cases/gdisk.json @@ -1,46 +1,65 @@ { "path": "$OET_PATH/testcases/cli-test/gdisk", - "add disk": [30], + "add disk": [ + 30 + ], + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gdisk_change_partition_name" }, - { - "name": "oe_test_gdisk_verify_disk" - }, - { - "name": "oe_test_gdisk_check_partition_info" - }, - { - "name": "oe_test_gdisk_change_partition_type_code" - }, - { - "name": "oe_test_gdisk_create_partition" - }, - { - "name": "oe_test_gdisk_create_partition_128" - }, - { - "name": "oe_test_gdisk_sort_partition" - }, - { - "name": "oe_test_sgdisk_backup_and_restore" - }, - { - "name": "oe_test_sgdisk_change_disk_guid" - }, - { - "name": "oe_test_sgdisk_change_partition_name" - }, - { - "name": "oe_test_sgdisk_check_partition_info" - }, - { - "name": "oe_test_sgdisk_create_partition" - }, - { - "name": "oe_test_sgdisk_sort_partition", - "add disk": [30] - } + { + "name": "oe_test_gdisk_verify_disk" + }, + { + "name": "oe_test_gdisk_check_partition_info" + }, + { + "name": "oe_test_gdisk_change_partition_type_code" + }, + { + "name": "oe_test_gdisk_create_partition" + }, + { + "name": "oe_test_gdisk_create_partition_128" + }, + { + "name": "oe_test_gdisk_sort_partition" + }, + { + "name": "oe_test_sgdisk_backup_and_restore" + }, + { + "name": "oe_test_sgdisk_change_disk_guid" + }, + { + "name": "oe_test_sgdisk_change_partition_name" + }, + { + "name": "oe_test_sgdisk_check_partition_info" + }, + { + "name": "oe_test_sgdisk_create_partition" + }, + { + "name": "oe_test_sgdisk_sort_partition", + "add disk": [ + 30 + ] + }, + { + "name": "oe_test_gdisk_install_and_remove_gdisk" + }, + { + "name": "oe_test_gdisk_install_and_remove_gdisk-help" + }, + { + "name": "oe_test_gdisk_install_and_remove_gdisk-debuginfo" + }, + { + "name": "oe_test_gdisk_install_and_remove_gdisk-debugsource" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/gdk-pixbuf2.json b/suite2cases/gdk-pixbuf2.json index cf5b3fad146b1e7cc0811fab1c191c91b89bd690..2be1f8de9358919842e07743074b4e28931fad3e 100644 --- a/suite2cases/gdk-pixbuf2.json +++ b/suite2cases/gdk-pixbuf2.json @@ -1,8 +1,32 @@ { - "path": "$OET_PATH/testcases/cli-test/gdk-pixbuf2", - "cases": [ - { - "name": "oe_test_gdk-pixbuf2" - } - ] + "path": "$OET_PATH/testcases/cli-test/gdk-pixbuf2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gdk-pixbuf2" + }, + { + "name": "oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2" + }, + { + "name": "oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-help" + }, + { + "name": "oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-modules" + }, + { + "name": "oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-tests" + }, + { + "name": "oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-devel" + }, + { + "name": "oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-debugsource" + }, + { + "name": "oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-debuginfo" + } + ] } \ No newline at end of file diff --git a/suite2cases/gdm.json b/suite2cases/gdm.json index 4979afedfae6d3aded164f48e884eff58bca893f..63b2507bd1b2fb0638c8f05037809768d19fb7e0 100644 --- a/suite2cases/gdm.json +++ b/suite2cases/gdm.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/gdm", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_gdm" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gegl04.json b/suite2cases/gegl04.json index 45704a7c97174d8213c8af7aaaf3a98c0fc55842..488dbd08d1d5761c26ba6c039d54715af2ec545b 100644 --- a/suite2cases/gegl04.json +++ b/suite2cases/gegl04.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/cli-test/gegl04", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gegl04_gegl" diff --git a/suite2cases/genders.json b/suite2cases/genders.json index 178597fe760a14e6ee61a357f2cb63543edae056..07204b17c6dbef618789ed7f0756aaae226b5109 100644 --- a/suite2cases/genders.json +++ b/suite2cases/genders.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/genders", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_genders" } ] -} +} \ No newline at end of file diff --git a/suite2cases/geoclue2.json b/suite2cases/geoclue2.json index d9388531f16a4feda9c92ccfc133e3b8c7575a4e..fc8bd3a1e9005377cee95aea272ff75620d21422 100644 --- a/suite2cases/geoclue2.json +++ b/suite2cases/geoclue2.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/geoclue2", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_geoclue" + }, + { + "name": "oe_test_geoclue2_install_and_remove_geoclue2" + }, + { + "name": "oe_test_geoclue2_install_and_remove_geoclue2-devel" + }, + { + "name": "oe_test_geoclue2_install_and_remove_geoclue2-debugsource" + }, + { + "name": "oe_test_geoclue2_install_and_remove_geoclue2-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/geos.json b/suite2cases/geos.json index 7e66f22b25228a12a58eb93fc826efe9caed4778..92bd0b71911e3b0cdfaf5bd74640871239a96881 100644 --- a/suite2cases/geos.json +++ b/suite2cases/geos.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/geos", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_geos_commandAndbaseFun" diff --git a/suite2cases/gettext.json b/suite2cases/gettext.json new file mode 100644 index 0000000000000000000000000000000000000000..0d7aecaf19b56dccfd5fa36c3d912251963fb072 --- /dev/null +++ b/suite2cases/gettext.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gettext", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gettext_install_and_remove_gettext" + }, + { + "name": "oe_test_gettext_install_and_remove_gettext-devel" + }, + { + "name": "oe_test_gettext_install_and_remove_emacs-gettext" + }, + { + "name": "oe_test_gettext_install_and_remove_gettext-help" + }, + { + "name": "oe_test_gettext_install_and_remove_gettext-debuginfo" + }, + { + "name": "oe_test_gettext_install_and_remove_gettext-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gfs2-utils.json b/suite2cases/gfs2-utils.json new file mode 100644 index 0000000000000000000000000000000000000000..84977a109c51c565bcfe1db115f7dcf3ced01ecd --- /dev/null +++ b/suite2cases/gfs2-utils.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gfs2-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gfs2-utils_install_and_remove_gfs2-utils" + }, + { + "name": "oe_test_gfs2-utils_install_and_remove_gfs2-utils-help" + }, + { + "name": "oe_test_gfs2-utils_install_and_remove_gfs2-utils-debuginfo" + }, + { + "name": "oe_test_gfs2-utils_install_and_remove_gfs2-utils-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ghostscript.json b/suite2cases/ghostscript.json index 22b49f4780185f1f4e6466cea876062a874aa15a..a285558873e4dd26db4b1cea084905d3ca79f8b3 100644 --- a/suite2cases/ghostscript.json +++ b/suite2cases/ghostscript.json @@ -1,11 +1,32 @@ { "path": "$OET_PATH/testcases/cli-test/ghostscript", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ghostscript_001" }, { "name": "oe_test_ghostscript_002" + }, + { + "name": "oe_test_ghostscript_install_and_remove_ghostscript" + }, + { + "name": "oe_test_ghostscript_install_and_remove_ghostscript-help" + }, + { + "name": "oe_test_ghostscript_install_and_remove_ghostscript-tools-dvipdf" + }, + { + "name": "oe_test_ghostscript_install_and_remove_ghostscript-devel" + }, + { + "name": "oe_test_ghostscript_install_and_remove_ghostscript-debuginfo" + }, + { + "name": "oe_test_ghostscript_install_and_remove_ghostscript-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gi-docgen.json b/suite2cases/gi-docgen.json new file mode 100644 index 0000000000000000000000000000000000000000..3a4d3dd4ece00eb1a6d06170ab8087c727e756a2 --- /dev/null +++ b/suite2cases/gi-docgen.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gi-docgen", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gi-docgen_install_and_remove_gi-docgen" + }, + { + "name": "oe_test_gi-docgen_install_and_remove_gi-docgen-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/giflib.json b/suite2cases/giflib.json new file mode 100644 index 0000000000000000000000000000000000000000..0d14dae63e62f51613c1902c98d19016e7cf1729 --- /dev/null +++ b/suite2cases/giflib.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/giflib", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_giflib_install_and_remove_giflib" + }, + { + "name": "oe_test_giflib_install_and_remove_giflib-devel" + }, + { + "name": "oe_test_giflib_install_and_remove_giflib-utils" + }, + { + "name": "oe_test_giflib_install_and_remove_giflib-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/git-tools.json b/suite2cases/git-tools.json index 403ae72f729f00dfca1b80574d07a77f9132b963..5203b6397e154f361c05dde7cc24af94003a1997 100644 --- a/suite2cases/git-tools.json +++ b/suite2cases/git-tools.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/git-tools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_git_tools_1" @@ -13,11 +15,11 @@ { "name": "oe_test_git_tools_4" }, - { + { "name": "oe_test_git_tools_5" }, - { + { "name": "oe_test_git_tools_6" } ] -} +} \ No newline at end of file diff --git a/suite2cases/git.json b/suite2cases/git.json index aefc75ac1b9475d4bf58419f71264aff23058b5c..b0f9f3ca2933899628304eac828bc35378039289 100644 --- a/suite2cases/git.json +++ b/suite2cases/git.json @@ -1,8 +1,53 @@ { "path": "$OET_PATH/testcases/cli-test/git", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_socket_git" + }, + { + "name": "oe_test_git_install_and_remove_git" + }, + { + "name": "oe_test_git_install_and_remove_git-core" + }, + { + "name": "oe_test_git_install_and_remove_git-web" + }, + { + "name": "oe_test_git_install_and_remove_git-svn" + }, + { + "name": "oe_test_git_install_and_remove_perl-Git-SVN" + }, + { + "name": "oe_test_git_install_and_remove_git-help" + }, + { + "name": "oe_test_git_install_and_remove_git-daemon" + }, + { + "name": "oe_test_git_install_and_remove_git-gui" + }, + { + "name": "oe_test_git_install_and_remove_gitk" + }, + { + "name": "oe_test_git_install_and_remove_git-email" + }, + { + "name": "oe_test_git_install_and_remove_perl-Git" + }, + { + "name": "oe_test_git_install_and_remove_git-debuginfo" + }, + { + "name": "oe_test_git_install_and_remove_git-debugsource" + }, + { + "name": "oe_test_git_install_and_remove_git-cvs" } ] -} +} \ No newline at end of file diff --git a/suite2cases/glade.json b/suite2cases/glade.json new file mode 100644 index 0000000000000000000000000000000000000000..c000a373e002070dd4a34435d037595b0b75779e --- /dev/null +++ b/suite2cases/glade.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/glade", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_glade_install_and_remove_glade" + }, + { + "name": "oe_test_glade_install_and_remove_glade-libs" + }, + { + "name": "oe_test_glade_install_and_remove_glade-devel" + }, + { + "name": "oe_test_glade_install_and_remove_glade-debuginfo" + }, + { + "name": "oe_test_glade_install_and_remove_glade-help" + }, + { + "name": "oe_test_glade_install_and_remove_glade-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/glassfish-servlet-api.json b/suite2cases/glassfish-servlet-api.json new file mode 100644 index 0000000000000000000000000000000000000000..ce9b5159315b71d61035ec718a3bbc4724654911 --- /dev/null +++ b/suite2cases/glassfish-servlet-api.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/glassfish-servlet-api", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api" + }, + { + "name": "oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api-help" + }, + { + "name": "oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api-javadoc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/glew.json b/suite2cases/glew.json new file mode 100644 index 0000000000000000000000000000000000000000..4264e346a2b5bd218c25f442f23d855472576a65 --- /dev/null +++ b/suite2cases/glew.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/glew", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_glew_install_and_remove_glew" + }, + { + "name": "oe_test_glew_install_and_remove_glew-devel" + }, + { + "name": "oe_test_glew_install_and_remove_glew-debugsource" + }, + { + "name": "oe_test_glew_install_and_remove_glew-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/glib-networking.json b/suite2cases/glib-networking.json new file mode 100644 index 0000000000000000000000000000000000000000..88507320bdc75ce922a43c1f46b2ec1fe01cf644 --- /dev/null +++ b/suite2cases/glib-networking.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/glib-networking", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_glib-networking_install_and_remove_glib-networking" + }, + { + "name": "oe_test_glib-networking_install_and_remove_glib-networking-tests" + }, + { + "name": "oe_test_glib-networking_install_and_remove_glib-networking-debugsource" + }, + { + "name": "oe_test_glib-networking_install_and_remove_glib-networking-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/glib.json b/suite2cases/glib.json new file mode 100644 index 0000000000000000000000000000000000000000..ec35d0ffdfe39a31b13943c3e57827ad17668e72 --- /dev/null +++ b/suite2cases/glib.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/glib", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_glib_install_and_remove_glib" + }, + { + "name": "oe_test_glib_install_and_remove_glib-help" + }, + { + "name": "oe_test_glib_install_and_remove_glib-devel" + }, + { + "name": "oe_test_glib_install_and_remove_glib-debuginfo" + }, + { + "name": "oe_test_glib_install_and_remove_glib-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/glib2.json b/suite2cases/glib2.json index bb6e710322ad041d9ed629bdfc9e695141671899..8a94903d7d9823daefc52b1d07916f51d6ad7b34 100644 --- a/suite2cases/glib2.json +++ b/suite2cases/glib2.json @@ -1,8 +1,32 @@ { "path": "$OET_PATH/testcases/cli-test/glib2", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_glib2" + }, + { + "name": "oe_test_glib2_install_and_remove_glib2" + }, + { + "name": "oe_test_glib2_install_and_remove_glib2-help" + }, + { + "name": "oe_test_glib2_install_and_remove_glib2-devel" + }, + { + "name": "oe_test_glib2_install_and_remove_glib2-static" + }, + { + "name": "oe_test_glib2_install_and_remove_glib2-tests" + }, + { + "name": "oe_test_glib2_install_and_remove_glib2-debuginfo" + }, + { + "name": "oe_test_glib2_install_and_remove_glib2-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/glibc.json b/suite2cases/glibc.json index 06864b18f7b800086479781498bdbe6c59c632f3..f7444c35941c8d52e05ff09d09a06034ce703cc5 100644 --- a/suite2cases/glibc.json +++ b/suite2cases/glibc.json @@ -1,11 +1,65 @@ { "path": "$OET_PATH/testcases/cli-test/glibc", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_nscd" }, { "name": "oe_test_socket_nscd" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-common" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-all-langpacks" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-locale-archive" + }, + { + "name": "oe_test_glibc_install_and_remove_nscd" + }, + { + "name": "oe_test_glibc_install_and_remove_nss_modules" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-nss-devel" + }, + { + "name": "oe_test_glibc_install_and_remove_libnsl" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-locale-source" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-devel" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-benchtests" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-help" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-relocation" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-debugutils" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-compat-2.17" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-debuginfo" + }, + { + "name": "oe_test_glibc_install_and_remove_glibc-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/glog.json b/suite2cases/glog.json index e44423b646bb3ee974b3bfec0aba67fcbb768927..724b65e3a385750390ae3e64b4bb0e7b84fcb9fc 100644 --- a/suite2cases/glog.json +++ b/suite2cases/glog.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/system-test/system-integration/os-basic/oe_test_glog", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_glog" diff --git a/suite2cases/glusterfs.json b/suite2cases/glusterfs.json index 9996fab35afbb6ad67d4586c40681e65eed3bd9c..6b3f9c9813de5dc449648fd8132813ddc9921d68 100644 --- a/suite2cases/glusterfs.json +++ b/suite2cases/glusterfs.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/glusterfs", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_glusterd" @@ -15,6 +18,87 @@ }, { "name": "oe_test_service_gluster-ta-volume" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-devel" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-help" + }, + { + "name": "oe_test_glusterfs_install_and_remove_python3-gluster" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-resource-agents" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-geo-replication" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libgfapi-devel" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libgfchangelog0" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libgfchangelog-devel" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libgfrpc0" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libgfrpc-devel" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libgfxdr0" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-server" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-cloudsync-plugins" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libglusterfs0" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libglusterfs-devel" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libgfxdr-devel" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-events" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-cli" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-extra-xlators" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-fuse" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libgfapi0" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-thin-arbiter" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-client-xlators" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-debugsource" + }, + { + "name": "oe_test_glusterfs_install_and_remove_glusterfs-debuginfo" + }, + { + "name": "oe_test_glusterfs_install_and_remove_libglusterd0" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gmp.json b/suite2cases/gmp.json new file mode 100644 index 0000000000000000000000000000000000000000..bd709d81bdd9a092f52444579e128b1220c44eb1 --- /dev/null +++ b/suite2cases/gmp.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gmp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gmp_install_and_remove_gmp" + }, + { + "name": "oe_test_gmp_install_and_remove_gmp-devel" + }, + { + "name": "oe_test_gmp_install_and_remove_gmp-c++" + }, + { + "name": "oe_test_gmp_install_and_remove_gmp-relocation" + }, + { + "name": "oe_test_gmp_install_and_remove_gmp-debuginfo" + }, + { + "name": "oe_test_gmp_install_and_remove_gmp-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gnome-common.json b/suite2cases/gnome-common.json new file mode 100644 index 0000000000000000000000000000000000000000..fde47208e285ce3d010c457bfb39eef116e4a883 --- /dev/null +++ b/suite2cases/gnome-common.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gnome-common", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gnome-common_install_and_remove_gnome-common" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gnome-doc-utils.json b/suite2cases/gnome-doc-utils.json new file mode 100644 index 0000000000000000000000000000000000000000..187062168c9667e508f75d6cf7e6d60cd89257d6 --- /dev/null +++ b/suite2cases/gnome-doc-utils.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gnome-doc-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils" + }, + { + "name": "oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils-help" + }, + { + "name": "oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils-stylesheets" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gnome-shell.json b/suite2cases/gnome-shell.json index 76153343af0f484efdaf984db6d09c0c444eaaf8..7c5d291b7272e3a9f85b4ef05388ebc5265edcf0 100644 --- a/suite2cases/gnome-shell.json +++ b/suite2cases/gnome-shell.json @@ -1,8 +1,10 @@ { "path": "${OET_PATH}/testcases/cli-test/gnome-shell", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gnome-shell" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gnu-efi.json b/suite2cases/gnu-efi.json new file mode 100644 index 0000000000000000000000000000000000000000..a26b5b06f8726b4e6edcd374ef18f519ead490e5 --- /dev/null +++ b/suite2cases/gnu-efi.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gnu-efi", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gnu-efi_install_and_remove_gnu-efi" + }, + { + "name": "oe_test_gnu-efi_install_and_remove_gnu-efi-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gnupg2.json b/suite2cases/gnupg2.json new file mode 100644 index 0000000000000000000000000000000000000000..4968cd4e18648d05e87f9e95558cffb802d6a8db --- /dev/null +++ b/suite2cases/gnupg2.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gnupg2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gnupg2_install_and_remove_gnupg2" + }, + { + "name": "oe_test_gnupg2_install_and_remove_gnupg2-help" + }, + { + "name": "oe_test_gnupg2_install_and_remove_gnupg2-debuginfo" + }, + { + "name": "oe_test_gnupg2_install_and_remove_gnupg2-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gnutls.json b/suite2cases/gnutls.json index a9693d802da6adced8b7f97a428a8168e2a15296..d10b3e79b84bfce28d725312e35d573f46399c73 100644 --- a/suite2cases/gnutls.json +++ b/suite2cases/gnutls.json @@ -1,8 +1,41 @@ { "path": "$OET_PATH/testcases/cli-test/gnutls", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gnutls" + }, + { + "name": "oe_test_gnutls_install_and_remove_gnutls" + }, + { + "name": "oe_test_gnutls_install_and_remove_gnutls-utils" + }, + { + "name": "oe_test_gnutls_install_and_remove_gnutls-dane" + }, + { + "name": "oe_test_gnutls_install_and_remove_gnutls-guile" + }, + { + "name": "oe_test_gnutls_install_and_remove_gnutls-devel" + }, + { + "name": "oe_test_gnutls_install_and_remove_gnutls-help" + }, + { + "name": "oe_test_gnutls_install_and_remove_gnutls-debuginfo" + }, + { + "name": "oe_test_gnutls_install_and_remove_gnutls-debugsource" + }, + { + "name": "oe_test_gnutls_install_and_remove_gnutls-c++" + }, + { + "name": "oe_test_gnutls_install_and_remove_gnutls-doc" } ] } \ No newline at end of file diff --git a/suite2cases/gobject-introspection.json b/suite2cases/gobject-introspection.json index 4c0f758b7e8bc5f3a586a917e7b0b1dba0417798..8d74848f60de71b42231ab2580b82556d9142369 100644 --- a/suite2cases/gobject-introspection.json +++ b/suite2cases/gobject-introspection.json @@ -1,9 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/gobject-introspection", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gobject-introspection" + }, + { + "name": "oe_test_gobject-introspection_install_and_remove_gobject-introspection" + }, + { + "name": "oe_test_gobject-introspection_install_and_remove_gobject-introspection-devel" + }, + { + "name": "oe_test_gobject-introspection_install_and_remove_gobject-introspection-help" + }, + { + "name": "oe_test_gobject-introspection_install_and_remove_gobject-introspection-debugsource" + }, + { + "name": "oe_test_gobject-introspection_install_and_remove_gobject-introspection-debuginfo" } - ] } \ No newline at end of file diff --git a/suite2cases/golang-github-prometheus-node_exporter.json b/suite2cases/golang-github-prometheus-node_exporter.json index 28963638e41a6def5772bd681668fbbfd552547b..e41194eb21cd7836632fdda20af7ff89023dced0 100644 --- a/suite2cases/golang-github-prometheus-node_exporter.json +++ b/suite2cases/golang-github-prometheus-node_exporter.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/golang-github-prometheus-node_exporter", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_node_exporter" } ] -} +} \ No newline at end of file diff --git a/suite2cases/golang.json b/suite2cases/golang.json new file mode 100644 index 0000000000000000000000000000000000000000..9271f30e3c4026f71c14a148915b259bd6c8cc25 --- /dev/null +++ b/suite2cases/golang.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/golang", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_golang_install_and_remove_golang" + }, + { + "name": "oe_test_golang_install_and_remove_golang-help" + }, + { + "name": "oe_test_golang_install_and_remove_golang-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/google-droid-fonts.json b/suite2cases/google-droid-fonts.json new file mode 100644 index 0000000000000000000000000000000000000000..8105fd533cc5c33c36e273ea9a7b9269322332d6 --- /dev/null +++ b/suite2cases/google-droid-fonts.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/google-droid-fonts", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_google-droid-fonts_install_and_remove_google-droid-fonts" + }, + { + "name": "oe_test_google-droid-fonts_install_and_remove_google-droid-sans-mono-fonts" + }, + { + "name": "oe_test_google-droid-fonts_install_and_remove_google-droid-serif-fonts" + }, + { + "name": "oe_test_google-droid-fonts_install_and_remove_google-droid-sans-fonts" + }, + { + "name": "oe_test_google-droid-fonts_install_and_remove_google-droid-kufi-fonts" + } + ] +} \ No newline at end of file diff --git a/suite2cases/google-noto-cjk-fonts.json b/suite2cases/google-noto-cjk-fonts.json new file mode 100644 index 0000000000000000000000000000000000000000..c26811503069a7cab1e04d5721c4f3b3375d0580 --- /dev/null +++ b/suite2cases/google-noto-cjk-fonts.json @@ -0,0 +1,80 @@ +{ + "path": "$OET_PATH/testcases/cli-test/google-noto-cjk-fonts", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-cjk-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-cjk-fonts-help" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-kr-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-tc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-tc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-sc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-kr-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-tc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-jp-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-sc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-jp-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-kr-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-sc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-ttc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-tc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-ttc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-tc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-sc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-jp-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-kr-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-kr-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-jp-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-sc-fonts" + }, + { + "name": "oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-jp-fonts" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gperf.json b/suite2cases/gperf.json index f2feda0f755628e2f3e31778241a8812257e009d..a7ac71a1f157c6b1fdb68f13b6ae0373add28342 100644 --- a/suite2cases/gperf.json +++ b/suite2cases/gperf.json @@ -1,26 +1,41 @@ { - "path": "$OET_PATH/testcases/cli-test/gperf", - "cases": [ - { - "name": "oe_test_gperf_base_01" - }, - { - "name": "oe_test_gperf_base_02" - }, - { - "name": "oe_test_gperf_base_03" - }, - { - "name": "oe_test_gperf_base_04" - }, - { - "name": "oe_test_gperf_base_05" - }, - { - "name": "oe_test_gperf_base_06" - }, - { - "name": "oe_test_gperf_base_07" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/gperf", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gperf_base_01" + }, + { + "name": "oe_test_gperf_base_02" + }, + { + "name": "oe_test_gperf_base_03" + }, + { + "name": "oe_test_gperf_base_04" + }, + { + "name": "oe_test_gperf_base_05" + }, + { + "name": "oe_test_gperf_base_06" + }, + { + "name": "oe_test_gperf_base_07" + }, + { + "name": "oe_test_gperf_install_and_remove_gperf" + }, + { + "name": "oe_test_gperf_install_and_remove_gperf-help" + }, + { + "name": "oe_test_gperf_install_and_remove_gperf-debuginfo" + }, + { + "name": "oe_test_gperf_install_and_remove_gperf-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gperftools.json b/suite2cases/gperftools.json new file mode 100644 index 0000000000000000000000000000000000000000..f9a6822946cad1cf0454db99c3d803fc996e3f38 --- /dev/null +++ b/suite2cases/gperftools.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gperftools", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gperftools_install_and_remove_gperftools" + }, + { + "name": "oe_test_gperftools_install_and_remove_gperftools-libs" + }, + { + "name": "oe_test_gperftools_install_and_remove_pprof" + }, + { + "name": "oe_test_gperftools_install_and_remove_gperftools-devel" + }, + { + "name": "oe_test_gperftools_install_and_remove_gperftools-debugsource" + }, + { + "name": "oe_test_gperftools_install_and_remove_gperftools-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gpgme.json b/suite2cases/gpgme.json new file mode 100644 index 0000000000000000000000000000000000000000..b2f214b3b782802f935d424fc165fdaf3e8b8c9f --- /dev/null +++ b/suite2cases/gpgme.json @@ -0,0 +1,35 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gpgme", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gpgme_install_and_remove_gpgme" + }, + { + "name": "oe_test_gpgme_install_and_remove_cpp-gpgme" + }, + { + "name": "oe_test_gpgme_install_and_remove_qt-gpgme" + }, + { + "name": "oe_test_gpgme_install_and_remove_gpgme-devel" + }, + { + "name": "oe_test_gpgme_install_and_remove_python3-gpgme" + }, + { + "name": "oe_test_gpgme_install_and_remove_gpgme-help" + }, + { + "name": "oe_test_gpgme_install_and_remove_gpgme-debuginfo" + }, + { + "name": "oe_test_gpgme_install_and_remove_gpgme-debugsource" + }, + { + "name": "oe_test_gpgme_install_and_remove_python2-gpgme" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gphoto2.json b/suite2cases/gphoto2.json new file mode 100644 index 0000000000000000000000000000000000000000..14ad8f36ad6f92df6d3366d5f7d58338f6b270b5 --- /dev/null +++ b/suite2cases/gphoto2.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gphoto2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gphoto2_install_and_remove_gphoto2" + }, + { + "name": "oe_test_gphoto2_install_and_remove_gphoto2-help" + }, + { + "name": "oe_test_gphoto2_install_and_remove_gphoto2-debuginfo" + }, + { + "name": "oe_test_gphoto2_install_and_remove_gphoto2-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gpm.json b/suite2cases/gpm.json index 158a60408b90d7fb309f31174a56e8aef141deac..ca7fdf7205d1159b8e9790cf4ee9aae28caaa7c0 100644 --- a/suite2cases/gpm.json +++ b/suite2cases/gpm.json @@ -1,8 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/gpm", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_gpm" + }, + { + "name": "oe_test_gpm_install_and_remove_gpm" + }, + { + "name": "oe_test_gpm_install_and_remove_gpm-devel" + }, + { + "name": "oe_test_gpm_install_and_remove_gpm-libs" + }, + { + "name": "oe_test_gpm_install_and_remove_gpm-help" + }, + { + "name": "oe_test_gpm_install_and_remove_gpm-debugsource" + }, + { + "name": "oe_test_gpm_install_and_remove_gpm-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gradle.json b/suite2cases/gradle.json index 578665752173d1abb3f7004270db67705fa6a85c..4296825b04b9508d5cfcbcc6bfeb02c967f8657c 100644 --- a/suite2cases/gradle.json +++ b/suite2cases/gradle.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/gradle", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gradle_01" diff --git a/suite2cases/grafana.json b/suite2cases/grafana.json index f7601f7ed7d8daa70daaef70f615e60cc24452cf..0b32b76faac12ea1ad8759184149413d36aadda4 100644 --- a/suite2cases/grafana.json +++ b/suite2cases/grafana.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/grafana", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_grafana-server" } ] -} +} \ No newline at end of file diff --git a/suite2cases/graphene.json b/suite2cases/graphene.json new file mode 100644 index 0000000000000000000000000000000000000000..a4397e37b4c51393e5cae38c9d74bcc4c3162fb9 --- /dev/null +++ b/suite2cases/graphene.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/graphene", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_graphene_install_and_remove_graphene" + }, + { + "name": "oe_test_graphene_install_and_remove_graphene-devel" + }, + { + "name": "oe_test_graphene_install_and_remove_graphene-tests" + }, + { + "name": "oe_test_graphene_install_and_remove_graphene-debugsource" + }, + { + "name": "oe_test_graphene_install_and_remove_graphene-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/graphite2.json b/suite2cases/graphite2.json new file mode 100644 index 0000000000000000000000000000000000000000..64347f4228fe21cf3ddd3a10add2d995c8830e8b --- /dev/null +++ b/suite2cases/graphite2.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/graphite2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_graphite2_install_and_remove_graphite2" + }, + { + "name": "oe_test_graphite2_install_and_remove_graphite2-devel" + }, + { + "name": "oe_test_graphite2_install_and_remove_graphite2-debugsource" + }, + { + "name": "oe_test_graphite2_install_and_remove_graphite2-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/graphviz.json b/suite2cases/graphviz.json index c6db73f6f6a8e00bb87dd518fe5b9ddd928f2614..7e8bad83b9813ecfa5973f0591880e88bcc8f4a6 100644 --- a/suite2cases/graphviz.json +++ b/suite2cases/graphviz.json @@ -1,9 +1,62 @@ { "path": "$OET_PATH/testcases/cli-test/graphviz", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_graphviz" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-ocaml" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-perl" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-ruby" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-php" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-gd" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-graphs" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-lua" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-tcl" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-python3" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-devel" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-guile" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-java" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-docs" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-debugsource" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-debuginfo" + }, + { + "name": "oe_test_graphviz_install_and_remove_graphviz-python2" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/greatsql.json b/suite2cases/greatsql.json index 59f7506dec44626cf8089a108b2db900418611c4..96f8c7fc833a9ed990b14a73173c6876394d2d7c 100644 --- a/suite2cases/greatsql.json +++ b/suite2cases/greatsql.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/greatsql", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_greatsql-mysql-router" } ] -} +} \ No newline at end of file diff --git a/suite2cases/grep.json b/suite2cases/grep.json new file mode 100644 index 0000000000000000000000000000000000000000..eaa2cbe9856aa5518556845b44a409e6a0a7a95a --- /dev/null +++ b/suite2cases/grep.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/grep", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_grep_install_and_remove_grep" + }, + { + "name": "oe_test_grep_install_and_remove_grep-debuginfo" + }, + { + "name": "oe_test_grep_install_and_remove_grep-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/groff.json b/suite2cases/groff.json new file mode 100644 index 0000000000000000000000000000000000000000..74b50baa4b892bb2e0fb75e3695f5a5b8835c141 --- /dev/null +++ b/suite2cases/groff.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/groff", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_groff_install_and_remove_groff" + }, + { + "name": "oe_test_groff_install_and_remove_groff-help" + }, + { + "name": "oe_test_groff_install_and_remove_groff-x11" + }, + { + "name": "oe_test_groff_install_and_remove_groff-base" + }, + { + "name": "oe_test_groff_install_and_remove_groff-debuginfo" + }, + { + "name": "oe_test_groff_install_and_remove_groff-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/groovy.json b/suite2cases/groovy.json index 4780ebaa0ae302398771763ad5fc6022dd74242d..da04b11646e400d47ee7befdf31d2272ec3877ca 100644 --- a/suite2cases/groovy.json +++ b/suite2cases/groovy.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/groovy", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_groovy_01" diff --git a/suite2cases/groovy18.json b/suite2cases/groovy18.json index 581171c7d17961ab5810ef3e481493e32bed1eba..d607529c0957c0c0057236b102bfd91fb4743e4c 100644 --- a/suite2cases/groovy18.json +++ b/suite2cases/groovy18.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/groovy18", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_java2groovy18" @@ -26,4 +28,4 @@ "name": "oe_test_groovy18c_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/grpc.json b/suite2cases/grpc.json index eea162d10a46524cfc4300050a3b04eae9c62560..9e434114df3749870be2dbdde01ca87b3fcdb79e 100644 --- a/suite2cases/grpc.json +++ b/suite2cases/grpc.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/grpc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_grpc" diff --git a/suite2cases/grub2.json b/suite2cases/grub2.json index 013b9e3895259744511bdcb1bbef45802b3f55d2..8b36d3f91c5702349a6e7fb169a6b9989bd284ea 100644 --- a/suite2cases/grub2.json +++ b/suite2cases/grub2.json @@ -1,11 +1,95 @@ { "path": "$OET_PATH/testcases/cli-test/grub2", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_grub-boot-indeterminate" }, { "name": "oe_test_service_grub2-systemd-integration" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-emu-modules" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-tools" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-tools-minimal" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-tools-efi" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-common" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-tools-extra" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-emu" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-aa64" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-aa64-modules" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-loongarch64-modules" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-debugsource" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-debuginfo" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-riscv64" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-help" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-loongarch64" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-aa64-cdboot" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-riscv64-cdboot" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-riscv64-modules" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-ia32-cdboot" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-ia32-modules" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-x64-cdboot" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-pc" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-x64" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-pc-modules" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-ia32" + }, + { + "name": "oe_test_grub2_install_and_remove_grub2-efi-x64-modules" } ] -} +} \ No newline at end of file diff --git a/suite2cases/grubby.json b/suite2cases/grubby.json new file mode 100644 index 0000000000000000000000000000000000000000..ecf7036da5738b7b4a848c3764bb67009648b789 --- /dev/null +++ b/suite2cases/grubby.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/grubby", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_grubby_install_and_remove_grubby" + }, + { + "name": "oe_test_grubby_install_and_remove_grubby-bls" + }, + { + "name": "oe_test_grubby_install_and_remove_grubby-debuginfo" + }, + { + "name": "oe_test_grubby_install_and_remove_grubby-help" + }, + { + "name": "oe_test_grubby_install_and_remove_grubby-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gsettings-desktop-schemas.json b/suite2cases/gsettings-desktop-schemas.json new file mode 100644 index 0000000000000000000000000000000000000000..4508cd7f0f8fdb616b6eece7d953f7564c94afc2 --- /dev/null +++ b/suite2cases/gsettings-desktop-schemas.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gsettings-desktop-schemas", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas" + }, + { + "name": "oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas-devel" + }, + { + "name": "oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gsl.json b/suite2cases/gsl.json index 8aaee292b6091578de0473bb70cfca0a162648e0..e689793c316512e1cd61da6cb1bdce018c43336b 100755 --- a/suite2cases/gsl.json +++ b/suite2cases/gsl.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/gsl", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gsl_histogram_01" diff --git a/suite2cases/gsm.json b/suite2cases/gsm.json new file mode 100644 index 0000000000000000000000000000000000000000..22e99bb5932e2bd00d2569a86bcda81027efa9b2 --- /dev/null +++ b/suite2cases/gsm.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gsm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gsm_install_and_remove_gsm" + }, + { + "name": "oe_test_gsm_install_and_remove_gsm-devel" + }, + { + "name": "oe_test_gsm_install_and_remove_gsm-help" + }, + { + "name": "oe_test_gsm_install_and_remove_gsm-debuginfo" + }, + { + "name": "oe_test_gsm_install_and_remove_gsm-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gssdp.json b/suite2cases/gssdp.json new file mode 100644 index 0000000000000000000000000000000000000000..f732f90902494a38a096d70fe529988008e5ac57 --- /dev/null +++ b/suite2cases/gssdp.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gssdp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gssdp_install_and_remove_gssdp" + }, + { + "name": "oe_test_gssdp_install_and_remove_gssdp-devel" + }, + { + "name": "oe_test_gssdp_install_and_remove_gssdp-help" + }, + { + "name": "oe_test_gssdp_install_and_remove_gssdp-debuginfo" + }, + { + "name": "oe_test_gssdp_install_and_remove_gssdp-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gssproxy.json b/suite2cases/gssproxy.json index bdd36841162b350406ff808b8d4b79f67b6877d6..2b7f09fa49851370e725e70afa376866008727cf 100644 --- a/suite2cases/gssproxy.json +++ b/suite2cases/gssproxy.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/gssproxy", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_gssproxy" + }, + { + "name": "oe_test_gssproxy_install_and_remove_gssproxy" + }, + { + "name": "oe_test_gssproxy_install_and_remove_gssproxy-help" + }, + { + "name": "oe_test_gssproxy_install_and_remove_gssproxy-debuginfo" + }, + { + "name": "oe_test_gssproxy_install_and_remove_gssproxy-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gstreamer1-plugins-bad-free.json b/suite2cases/gstreamer1-plugins-bad-free.json new file mode 100644 index 0000000000000000000000000000000000000000..135a9b512736f391c073dce74f0ba0d035d8025e --- /dev/null +++ b/suite2cases/gstreamer1-plugins-bad-free.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gstreamer1-plugins-bad-free", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free" + }, + { + "name": "oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-extras" + }, + { + "name": "oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-wildmidi" + }, + { + "name": "oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-fluidsynth" + }, + { + "name": "oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-devel" + }, + { + "name": "oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-debuginfo" + }, + { + "name": "oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gstreamer1-plugins-base.json b/suite2cases/gstreamer1-plugins-base.json new file mode 100644 index 0000000000000000000000000000000000000000..0094dbcc340fe98cda238557d9fa12d701cbd8e4 --- /dev/null +++ b/suite2cases/gstreamer1-plugins-base.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gstreamer1-plugins-base", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base" + }, + { + "name": "oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-devel" + }, + { + "name": "oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-help" + }, + { + "name": "oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-debuginfo" + }, + { + "name": "oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gstreamer1.json b/suite2cases/gstreamer1.json new file mode 100644 index 0000000000000000000000000000000000000000..1c2f5fe81bfb04397fc9c3889510cdc38e9bdd5f --- /dev/null +++ b/suite2cases/gstreamer1.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gstreamer1", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gstreamer1_install_and_remove_gstreamer1" + }, + { + "name": "oe_test_gstreamer1_install_and_remove_gstreamer1-help" + }, + { + "name": "oe_test_gstreamer1_install_and_remove_gstreamer1-devel" + }, + { + "name": "oe_test_gstreamer1_install_and_remove_gstreamer1-debugsource" + }, + { + "name": "oe_test_gstreamer1_install_and_remove_gstreamer1-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gtest.json b/suite2cases/gtest.json new file mode 100644 index 0000000000000000000000000000000000000000..f3549db2fd3681a14ea884cc9fc383c2fd5ff821 --- /dev/null +++ b/suite2cases/gtest.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gtest", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gtest_install_and_remove_gtest" + }, + { + "name": "oe_test_gtest_install_and_remove_gmock" + }, + { + "name": "oe_test_gtest_install_and_remove_gtest-devel" + }, + { + "name": "oe_test_gtest_install_and_remove_gmock-devel" + }, + { + "name": "oe_test_gtest_install_and_remove_gtest-debugsource" + }, + { + "name": "oe_test_gtest_install_and_remove_gtest-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gtk+.json b/suite2cases/gtk+.json index 6f745694ac1c19d144da83885bda202e9061a061..6c1ae81cc1ae65883daaaf476b4aebf91b910684 100644 --- a/suite2cases/gtk+.json +++ b/suite2cases/gtk+.json @@ -1,10 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/gtk+", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gtk+" } - - ] -} - + ] +} \ No newline at end of file diff --git a/suite2cases/gtk-doc.json b/suite2cases/gtk-doc.json new file mode 100644 index 0000000000000000000000000000000000000000..d576545b2021ba941cb2f72c137dd84acf1ebe67 --- /dev/null +++ b/suite2cases/gtk-doc.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gtk-doc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gtk-doc_install_and_remove_gtk-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gtk2.json b/suite2cases/gtk2.json new file mode 100644 index 0000000000000000000000000000000000000000..2623ab017788ccdacb8f9485055944340bde9013 --- /dev/null +++ b/suite2cases/gtk2.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gtk2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gtk2_install_and_remove_gtk2" + }, + { + "name": "oe_test_gtk2_install_and_remove_gtk2-devel" + }, + { + "name": "oe_test_gtk2_install_and_remove_gtk2-help" + }, + { + "name": "oe_test_gtk2_install_and_remove_gtk2-immodule-xim" + }, + { + "name": "oe_test_gtk2_install_and_remove_gtk2-debugsource" + }, + { + "name": "oe_test_gtk2_install_and_remove_gtk2-debuginfo" + }, + { + "name": "oe_test_gtk2_install_and_remove_gtk2-immodules" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gtk3.json b/suite2cases/gtk3.json new file mode 100644 index 0000000000000000000000000000000000000000..e6d3f9decf0dc99dd2320fe02f3aed59d02eec04 --- /dev/null +++ b/suite2cases/gtk3.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gtk3", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gtk3_install_and_remove_gtk3" + }, + { + "name": "oe_test_gtk3_install_and_remove_gtk3-immodule-xim" + }, + { + "name": "oe_test_gtk3_install_and_remove_gtk-update-icon-cache" + }, + { + "name": "oe_test_gtk3_install_and_remove_gtk3-help" + }, + { + "name": "oe_test_gtk3_install_and_remove_gtk3-devel" + }, + { + "name": "oe_test_gtk3_install_and_remove_gtk3-debugsource" + }, + { + "name": "oe_test_gtk3_install_and_remove_gtk3-debuginfo" + }, + { + "name": "oe_test_gtk3_install_and_remove_gtk3-immodules" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gtk4.json b/suite2cases/gtk4.json new file mode 100644 index 0000000000000000000000000000000000000000..2cc2fac9280ae0850c9e043e88c93ad7165f0b9a --- /dev/null +++ b/suite2cases/gtk4.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gtk4", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gtk4_install_and_remove_gtk4" + }, + { + "name": "oe_test_gtk4_install_and_remove_gtk4-devel" + }, + { + "name": "oe_test_gtk4_install_and_remove_gtk4-debugsource" + }, + { + "name": "oe_test_gtk4_install_and_remove_gtk4-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/guile.json b/suite2cases/guile.json new file mode 100644 index 0000000000000000000000000000000000000000..a64560ce110330de2ea523782f81f94327354b72 --- /dev/null +++ b/suite2cases/guile.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/guile", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_guile_install_and_remove_guile" + }, + { + "name": "oe_test_guile_install_and_remove_guile-devel" + }, + { + "name": "oe_test_guile_install_and_remove_guile-help" + }, + { + "name": "oe_test_guile_install_and_remove_guile-debuginfo" + }, + { + "name": "oe_test_guile_install_and_remove_guile-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gupnp-igd.json b/suite2cases/gupnp-igd.json new file mode 100644 index 0000000000000000000000000000000000000000..dd346f91237bd07cd5896d8c15f814f6b0520606 --- /dev/null +++ b/suite2cases/gupnp-igd.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gupnp-igd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gupnp-igd_install_and_remove_gupnp-igd" + }, + { + "name": "oe_test_gupnp-igd_install_and_remove_gupnp-igd-devel" + }, + { + "name": "oe_test_gupnp-igd_install_and_remove_gupnp-igd-debuginfo" + }, + { + "name": "oe_test_gupnp-igd_install_and_remove_gupnp-igd-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gupnp.json b/suite2cases/gupnp.json new file mode 100644 index 0000000000000000000000000000000000000000..d47831940a65e9a412e7e611d0d08860e0d090ba --- /dev/null +++ b/suite2cases/gupnp.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gupnp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gupnp_install_and_remove_gupnp" + }, + { + "name": "oe_test_gupnp_install_and_remove_gupnp-help" + }, + { + "name": "oe_test_gupnp_install_and_remove_gupnp-devel" + }, + { + "name": "oe_test_gupnp_install_and_remove_gupnp-debugsource" + }, + { + "name": "oe_test_gupnp_install_and_remove_gupnp-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/gyp.json b/suite2cases/gyp.json index ce1dec53c0f54d48dc0cc7c797dca40b877c0c7c..d355902a578d5d2b192e335b41dee4beb195dc08 100644 --- a/suite2cases/gyp.json +++ b/suite2cases/gyp.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/gyp", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gyp_01" @@ -8,4 +10,4 @@ "name": "oe_test_gyp_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/gzip.json b/suite2cases/gzip.json new file mode 100644 index 0000000000000000000000000000000000000000..59120b577d86f13595ad2df00cdcc855a60f4615 --- /dev/null +++ b/suite2cases/gzip.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/gzip", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_gzip_install_and_remove_gzip" + }, + { + "name": "oe_test_gzip_install_and_remove_gzip-help" + }, + { + "name": "oe_test_gzip_install_and_remove_gzip-debugsource" + }, + { + "name": "oe_test_gzip_install_and_remove_gzip-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/hadoop-3.1.json b/suite2cases/hadoop-3.1.json index c1252e4812da4b0c4f77be8e8bdeb0b4dc04b9d7..06056ec54f421a5a4f8b4159cdc4c202cc6535e8 100644 --- a/suite2cases/hadoop-3.1.json +++ b/suite2cases/hadoop-3.1.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/hadoop-3.1", "machine num": 3, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_hadoop-datanode-3.1" diff --git a/suite2cases/hadoop.json b/suite2cases/hadoop.json index 5f015f7ed0730fd70326d1f3cebb28bced1f7953..e67f8ecaa9d99ee78e214e739c6368e1c0e63a69 100644 --- a/suite2cases/hadoop.json +++ b/suite2cases/hadoop.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/hadoop", "machine num": 3, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_hadoop-datanode" diff --git a/suite2cases/haproxy.json b/suite2cases/haproxy.json index a2a83509963cefedd572cfcddc8fb0c4eac344f2..fe7af4d86447299884937291e5641bcd66d51978 100644 --- a/suite2cases/haproxy.json +++ b/suite2cases/haproxy.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/haproxy", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_haproxy" } ] -} +} \ No newline at end of file diff --git a/suite2cases/harfbuzz.json b/suite2cases/harfbuzz.json new file mode 100644 index 0000000000000000000000000000000000000000..186d17d98ae4cffc6d2a677489b157753d7b5e5b --- /dev/null +++ b/suite2cases/harfbuzz.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/harfbuzz", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_harfbuzz_install_and_remove_harfbuzz" + }, + { + "name": "oe_test_harfbuzz_install_and_remove_harfbuzz-devel" + }, + { + "name": "oe_test_harfbuzz_install_and_remove_harfbuzz-debuginfo" + }, + { + "name": "oe_test_harfbuzz_install_and_remove_harfbuzz-debugsource" + }, + { + "name": "oe_test_harfbuzz_install_and_remove_harfbuzz-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/haveged.json b/suite2cases/haveged.json index 2fdeef1b5cf0a729758365d58bde7bd1c1faf173..6dcfe8acda992422d9f6e71dbfc64a8cc6413201 100644 --- a/suite2cases/haveged.json +++ b/suite2cases/haveged.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/haveged", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_haveged" } ] -} +} \ No newline at end of file diff --git a/suite2cases/hbase.json b/suite2cases/hbase.json index 6a7d83e10aa33bc577536ab24aee057d357fcf0e..64b0aa34aa5227db3de74f989f16762efbbfc060 100644 --- a/suite2cases/hbase.json +++ b/suite2cases/hbase.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/hbase", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_hbase-master" @@ -17,4 +19,4 @@ "name": "oe_test_service_hbase-zookeeper" } ] -} +} \ No newline at end of file diff --git a/suite2cases/hdf5.json b/suite2cases/hdf5.json index c89971b1fe7eb6159882fa6d05491d1ff4286b2c..0cba3f49a52cdb103ad172c064dcbdeeb45acd46 100644 --- a/suite2cases/hdf5.json +++ b/suite2cases/hdf5.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/hdf5", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_hdf5_01" } ] -} +} \ No newline at end of file diff --git a/suite2cases/hdparm.json b/suite2cases/hdparm.json index 2a7de9d4c021fb4a8e699e395779c427dc6a4bc0..01c799cd7953aafd6cecba335c984e86bcc4ee1e 100755 --- a/suite2cases/hdparm.json +++ b/suite2cases/hdparm.json @@ -1,5 +1,8 @@ { "path": "${OET_PATH}/testcases/cli-test/hdparm", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_hdparm" diff --git a/suite2cases/help2man.json b/suite2cases/help2man.json index 92096b2c96845f9fe65dd69507cfd8f963d07090..ee88e983cd14addb8b5c820dc048be32e88021e8 100644 --- a/suite2cases/help2man.json +++ b/suite2cases/help2man.json @@ -1,8 +1,11 @@ { "path": "${OET_PATH}/testcases/cli-test/help2man", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_help2man" } ] -} +} \ No newline at end of file diff --git a/suite2cases/hfsplus-tools.json b/suite2cases/hfsplus-tools.json index 5339876ce2f5df2475fd35dc3d1c738836a2ff0d..1e83b48ebc89890389d705e00692e44265b21cfa 100755 --- a/suite2cases/hfsplus-tools.json +++ b/suite2cases/hfsplus-tools.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/hfsplus-tools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fsck_hfs" diff --git a/suite2cases/hivex.json b/suite2cases/hivex.json index f57908b18aefbf947271b5b26dfc08275bd0dbef..b19c74c65f3129401f97c6de7b9156765861cd88 100755 --- a/suite2cases/hivex.json +++ b/suite2cases/hivex.json @@ -1,6 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/hivex", - + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_hivex_hivexget" diff --git a/suite2cases/hostname.json b/suite2cases/hostname.json index c874fac195a004f5fcc832a9e4bb645e86c5c40f..8f4499d6a88e6b0086ae1a4e19caf00f72fe52df 100644 --- a/suite2cases/hostname.json +++ b/suite2cases/hostname.json @@ -1,8 +1,11 @@ { "path": "$OET_PATH/testcases/cli-test/hostname", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_nis-domainname" } ] -} +} \ No newline at end of file diff --git a/suite2cases/hsqldb.json b/suite2cases/hsqldb.json index 030f35bc709b62c054facf5939027141813d5054..51a74fde9031a6f9da6c6b75a728bca750649077 100644 --- a/suite2cases/hsqldb.json +++ b/suite2cases/hsqldb.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/hsqldb", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_hsqldb" } ] -} +} \ No newline at end of file diff --git a/suite2cases/htop.json b/suite2cases/htop.json index 2854b5728c9e989e16dc299d84b9a3b854a26e22..05babd4393ae29f7d51d68b98774f6637f2eb39f 100644 --- a/suite2cases/htop.json +++ b/suite2cases/htop.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/htop", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_htop_01" @@ -8,4 +10,4 @@ "name": "oe_test_htop_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/httpd.json b/suite2cases/httpd.json index 4e06109d5cf837d9071307f26ccb71000b80f5d9..9b67e0cf058de613381039324ce74133ef8534ae 100644 --- a/suite2cases/httpd.json +++ b/suite2cases/httpd.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/httpd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_htcacheclean" @@ -14,4 +16,4 @@ "name": "oe_test_socket_httpd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/httpry.json b/suite2cases/httpry.json index 73479240f3aff6bd592ef1d768468998594bd269..e349820c72b6eafcc959011f3fa5d09d56b8c02a 100644 --- a/suite2cases/httpry.json +++ b/suite2cases/httpry.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/httpry", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_httpry_01" @@ -8,4 +10,4 @@ "name": "oe_test_httpry_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/hunspell.json b/suite2cases/hunspell.json new file mode 100644 index 0000000000000000000000000000000000000000..c0ce81a0fc861e1eb4ff2a63a0ef796f1226cfef --- /dev/null +++ b/suite2cases/hunspell.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/hunspell", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_hunspell_install_and_remove_hunspell" + }, + { + "name": "oe_test_hunspell_install_and_remove_hunspell-devel" + }, + { + "name": "oe_test_hunspell_install_and_remove_hunspell-help" + }, + { + "name": "oe_test_hunspell_install_and_remove_hunspell-debuginfo" + }, + { + "name": "oe_test_hunspell_install_and_remove_hunspell-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/hwdata.json b/suite2cases/hwdata.json new file mode 100644 index 0000000000000000000000000000000000000000..d253eca3913e505b245ed6ff020cd7484ad55dc4 --- /dev/null +++ b/suite2cases/hwdata.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/hwdata", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_hwdata_install_and_remove_hwdata" + } + ] +} \ No newline at end of file diff --git a/suite2cases/hwloc.json b/suite2cases/hwloc.json index fd004f54274d09c8f7faf4f872e2e52009ad1635..378f835535330b2f78120379855c205438a9b4b5 100644 --- a/suite2cases/hwloc.json +++ b/suite2cases/hwloc.json @@ -1,6 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/hwloc", - + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_hwloc_base_hwloc-info_01" @@ -114,4 +115,4 @@ "name": "oe_test_hwloc_1.11.9_hwloc-distances_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/hwloc_2.7.1.json b/suite2cases/hwloc_2.7.1.json index bf115572a17832a850aa0fcb1d44610cc1c434b4..2594991cb50a557c7d7fbe73f3920acaaaf96a6c 100644 --- a/suite2cases/hwloc_2.7.1.json +++ b/suite2cases/hwloc_2.7.1.json @@ -1,6 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/hwloc", - + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_hwloc_2.7.1_hwloc-annotate" @@ -42,4 +43,4 @@ "name": "oe_test_hwloc_2.7.1_hwloc-gather-topology" } ] -} +} \ No newline at end of file diff --git a/suite2cases/hyperscan.json b/suite2cases/hyperscan.json index c1aaaf204a2d487877eae22b499add7ef3e50233..3578800ef202b12b55ed1283625e5bfbfb6db539 100644 --- a/suite2cases/hyperscan.json +++ b/suite2cases/hyperscan.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/hyperscan", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_hyperscan_simplegrep" } ] -} +} \ No newline at end of file diff --git a/suite2cases/hyphen.json b/suite2cases/hyphen.json new file mode 100644 index 0000000000000000000000000000000000000000..0c087e30928c6f3b49a519cbc1302596597b59b0 --- /dev/null +++ b/suite2cases/hyphen.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/hyphen", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_hyphen_install_and_remove_hyphen" + }, + { + "name": "oe_test_hyphen_install_and_remove_hyphen-devel" + }, + { + "name": "oe_test_hyphen_install_and_remove_hyphen-debuginfo" + }, + { + "name": "oe_test_hyphen_install_and_remove_hyphen-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/iSulad.json b/suite2cases/iSulad.json index 03f9f47e4172f2e5da73cf604346c4811c578aba..081f2e5cce0c1005e06d9172e33d2cce9cf61fb7 100644 --- a/suite2cases/iSulad.json +++ b/suite2cases/iSulad.json @@ -1,32 +1,34 @@ { "path": "$OET_PATH/testcases/cli-test/iSulad", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_isulad" }, { - "name":"oe_test_iSulad_resource_mapping" + "name": "oe_test_iSulad_resource_mapping" }, { - "name":"oe_test_iSulad_resource_restriction_cgroup" + "name": "oe_test_iSulad_resource_restriction_cgroup" }, { - "name":"oe_test_iSulad_container" + "name": "oe_test_iSulad_container" }, { - "name":"oe_test_iSulad_container01" + "name": "oe_test_iSulad_container01" }, { - "name":"oe_test_iSulad_container02" + "name": "oe_test_iSulad_container02" }, { - "name":"oe_test_iSulad_container03" + "name": "oe_test_iSulad_container03" }, { - "name":"oe_test_iSulad_container04" + "name": "oe_test_iSulad_container04" }, { - "name":"oe_test_iSulad_container05" + "name": "oe_test_iSulad_container05" } ] } \ No newline at end of file diff --git a/suite2cases/icfg.json b/suite2cases/icfg.json new file mode 100644 index 0000000000000000000000000000000000000000..d1f708f70d19afb00bd6a820fdc409075c130998 --- /dev/null +++ b/suite2cases/icfg.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/icfg", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_icfg_install_and_remove_icfg" + }, + { + "name": "oe_test_icfg_install_and_remove_icfg-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/icu.json b/suite2cases/icu.json new file mode 100644 index 0000000000000000000000000000000000000000..a7b9379bdcee939dfcf77f9ddc7446e6a28bd305 --- /dev/null +++ b/suite2cases/icu.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/icu", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_icu_install_and_remove_icu" + }, + { + "name": "oe_test_icu_install_and_remove_libicu" + }, + { + "name": "oe_test_icu_install_and_remove_icu-debugsource" + }, + { + "name": "oe_test_icu_install_and_remove_icu-help" + }, + { + "name": "oe_test_icu_install_and_remove_libicu-devel" + }, + { + "name": "oe_test_icu_install_and_remove_icu-debuginfo" + }, + { + "name": "oe_test_icu_install_and_remove_libicu-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/iftop.json b/suite2cases/iftop.json index a6c93c5944c6618138eb9700ca2135fcc5827fb8..8aca77b130edddb603fc8df6fc7ff91545b220e3 100644 --- a/suite2cases/iftop.json +++ b/suite2cases/iftop.json @@ -2,6 +2,8 @@ "path": "$OET_PATH/testcases/cli-test/iftop", "machine num": 1, "add network interface": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_iftop_text_mode", @@ -15,4 +17,4 @@ "add network interface": 1 } ] -} +} \ No newline at end of file diff --git a/suite2cases/iio-sensor-proxy.json b/suite2cases/iio-sensor-proxy.json index 1ce4410be3f0bde37e57816a5c97f14cb47f5376..1496a3c18cf884832da968b13ea7be82826d15d6 100644 --- a/suite2cases/iio-sensor-proxy.json +++ b/suite2cases/iio-sensor-proxy.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/iio-sensor-proxy", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_iio-sensor-proxy" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ima-evm-utils.json b/suite2cases/ima-evm-utils.json new file mode 100644 index 0000000000000000000000000000000000000000..419c8a8787538175566cdf70e707d32ac1bf5132 --- /dev/null +++ b/suite2cases/ima-evm-utils.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/ima-evm-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ima-evm-utils_install_and_remove_ima-evm-utils" + }, + { + "name": "oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-libs" + }, + { + "name": "oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-devel" + }, + { + "name": "oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-help" + }, + { + "name": "oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-debugsource" + }, + { + "name": "oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-debuginfo" + }, + { + "name": "oe_test_ima-evm-utils_install_and_remove_libimaevm0" + }, + { + "name": "oe_test_ima-evm-utils_install_and_remove_libimaevm1" + } + ] +} \ No newline at end of file diff --git a/suite2cases/imageTailor.json b/suite2cases/imageTailor.json index e8a1f0c53d30299b8b41d9d61a97572ab9c126a6..8affbdf49de490a95b4bdfb323f72273a0dc8d97 100644 --- a/suite2cases/imageTailor.json +++ b/suite2cases/imageTailor.json @@ -1,10 +1,12 @@ { "path": "$OET_PATH/testcases/cli-test/imageTailor", "machine type": "physical", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_imageTailor_01", "machine type": "physical" } ] -} +} \ No newline at end of file diff --git a/suite2cases/indent.json b/suite2cases/indent.json index 8ec981634e2c4f8d5978fd57fd751cebcad9970b..3fb2dd5d32d941dbe635ab15b3a18411652f1140 100644 --- a/suite2cases/indent.json +++ b/suite2cases/indent.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/indent", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_indent_01" diff --git a/suite2cases/inih.json b/suite2cases/inih.json new file mode 100644 index 0000000000000000000000000000000000000000..2e2a45ae4fb69653edfb3540adf9827a6fbc7cb7 --- /dev/null +++ b/suite2cases/inih.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/inih", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_inih_install_and_remove_inih" + }, + { + "name": "oe_test_inih_install_and_remove_inih-devel" + }, + { + "name": "oe_test_inih_install_and_remove_inih-debuginfo" + }, + { + "name": "oe_test_inih_install_and_remove_inih-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/iniparser.json b/suite2cases/iniparser.json new file mode 100644 index 0000000000000000000000000000000000000000..5abd7f3cd085d676ff71455f45b6ae6fe788e698 --- /dev/null +++ b/suite2cases/iniparser.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/iniparser", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_iniparser_install_and_remove_iniparser" + }, + { + "name": "oe_test_iniparser_install_and_remove_iniparser-debuginfo" + }, + { + "name": "oe_test_iniparser_install_and_remove_iniparser-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/initial-setup.json b/suite2cases/initial-setup.json index c16f40ad35a3b440d964947e004f2dc36228754c..24a899bb3c7285ef32fbf74b6c9df841ea9d89d8 100644 --- a/suite2cases/initial-setup.json +++ b/suite2cases/initial-setup.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/initial-setup", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_initial-setup-reconfiguration" @@ -8,4 +10,4 @@ "name": "oe_test_service_initial-setup" } ] -} +} \ No newline at end of file diff --git a/suite2cases/initscripts.json b/suite2cases/initscripts.json index d367fda51f3824db504d978855465a41564329eb..623484690e9118de0444e990fd6703deccd5e1b4 100644 --- a/suite2cases/initscripts.json +++ b/suite2cases/initscripts.json @@ -1,6 +1,9 @@ { "path": "$OET_PATH/testcases/cli-test/initscripts", "machine num": 2, + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_import-state" @@ -17,6 +20,27 @@ }, { "name": "oe_test_service_readonly-root" + }, + { + "name": "oe_test_initscripts_install_and_remove_initscripts" + }, + { + "name": "oe_test_initscripts_install_and_remove_network-scripts" + }, + { + "name": "oe_test_initscripts_install_and_remove_initscripts-service" + }, + { + "name": "oe_test_initscripts_install_and_remove_netconsole-service" + }, + { + "name": "oe_test_initscripts_install_and_remove_readonly-root" + }, + { + "name": "oe_test_initscripts_install_and_remove_initscripts-debugsource" + }, + { + "name": "oe_test_initscripts_install_and_remove_initscripts-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/intel-cmt-cat.json b/suite2cases/intel-cmt-cat.json index 1521a418adba602093ed2da6dce55e48bd74b901..b7662950ed8b89e9884e502119f86b8c5ec84dcd 100644 --- a/suite2cases/intel-cmt-cat.json +++ b/suite2cases/intel-cmt-cat.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/intel-cmt-cat", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_intel_cmt_cat" } ] -} +} \ No newline at end of file diff --git a/suite2cases/intltool.json b/suite2cases/intltool.json index 9216a9fc14e6efc6bbe9889fb1565f8b4b241794..d0932e75bb7b364bcf1a8e956b51e8f393fc9603 100644 --- a/suite2cases/intltool.json +++ b/suite2cases/intltool.json @@ -1,11 +1,14 @@ { "path": "$OET_PATH/testcases/cli-test/intltool", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { - "name": "oe_test_intltool_intltool-merge_01" + "name": "oe_test_intltool_intltool-merge_01" }, { - "name": "oe_test_intltool_intltool-merge_02" + "name": "oe_test_intltool_intltool-merge_02" }, { "name": "oe_test_intltool_intltool-update" @@ -18,6 +21,12 @@ }, { "name": "oe_test_intltool_intltoolize" + }, + { + "name": "oe_test_intltool_install_and_remove_intltool" + }, + { + "name": "oe_test_intltool_install_and_remove_intltool-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/iozone_file_system.json b/suite2cases/iozone_file_system.json new file mode 100644 index 0000000000000000000000000000000000000000..01b8ba701adbaeb7e7e1f92e44a530d27a539748 --- /dev/null +++ b/suite2cases/iozone_file_system.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/file_system/iozone_file_system", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_iozone_file_system" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ipcalc.json b/suite2cases/ipcalc.json new file mode 100644 index 0000000000000000000000000000000000000000..6e24083dc850b961ce853fa6d7f79413d70819f3 --- /dev/null +++ b/suite2cases/ipcalc.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/ipcalc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ipcalc_install_and_remove_ipcalc" + }, + { + "name": "oe_test_ipcalc_install_and_remove_ipcalc-help" + }, + { + "name": "oe_test_ipcalc_install_and_remove_ipcalc-debuginfo" + }, + { + "name": "oe_test_ipcalc_install_and_remove_ipcalc-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/iperf3.json b/suite2cases/iperf3.json index f567793f62192f61c779f1e820193cc19ddd5b10..04cbd3b84fd79779d93da766cccea292c9232260 100644 --- a/suite2cases/iperf3.json +++ b/suite2cases/iperf3.json @@ -1,21 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/iperf3", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_iperf3_command_client", - "machine num": 2 + "machine num": 2 }, { "name": "oe_test_iperf3_command_clientAndShared", - "machine num": 2 + "machine num": 2 }, { "name": "oe_test_iperf3_command_serverAndBase", - "machine num": 2 + "machine num": 2 }, - { - "name": "oe_test_iperf3_client" - } + { + "name": "oe_test_iperf3_client" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/ipmitool.json b/suite2cases/ipmitool.json index 02ee8bfdffa02bbdebaff517c298369c36ae64f6..63d8b67fc190d4415d96e12d058d8c04dda19bd0 100644 --- a/suite2cases/ipmitool.json +++ b/suite2cases/ipmitool.json @@ -1,6 +1,9 @@ { "path": "$OET_PATH/testcases/cli-test/ipmitool", "machine type": "physical", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_bmc-snmp-proxy", @@ -17,6 +20,24 @@ { "name": "oe_test_service_ipmitool", "machine type": "physical" + }, + { + "name": "oe_test_ipmitool_install_and_remove_ipmitool" + }, + { + "name": "oe_test_ipmitool_install_and_remove_bmc-snmp-proxy" + }, + { + "name": "oe_test_ipmitool_install_and_remove_exchange-bmc-os-info" + }, + { + "name": "oe_test_ipmitool_install_and_remove_ipmitool-help" + }, + { + "name": "oe_test_ipmitool_install_and_remove_ipmitool-debuginfo" + }, + { + "name": "oe_test_ipmitool_install_and_remove_ipmitool-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/iproute.json b/suite2cases/iproute.json index a9865b7256a1cce9ed307a913853bb7b137a3672..9076e082ae082969fcd06e53e5bf209c426d9a30 100644 --- a/suite2cases/iproute.json +++ b/suite2cases/iproute.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/iproute", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_iproute_tc_01" @@ -9,6 +12,21 @@ }, { "name": "oe_test_netns" + }, + { + "name": "oe_test_iproute_install_and_remove_iproute" + }, + { + "name": "oe_test_iproute_install_and_remove_iproute-devel" + }, + { + "name": "oe_test_iproute_install_and_remove_iproute-help" + }, + { + "name": "oe_test_iproute_install_and_remove_iproute-debuginfo" + }, + { + "name": "oe_test_iproute_install_and_remove_iproute-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/iprutils.json b/suite2cases/iprutils.json index 197ca6bd9b893bee18c07bb908b1b745784e576a..0bd77d65f689cb3b8933c3f0c24e8caf971251a1 100644 --- a/suite2cases/iprutils.json +++ b/suite2cases/iprutils.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/iprutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_iprdump" @@ -12,6 +15,18 @@ }, { "name": "oe_test_target_iprutils" + }, + { + "name": "oe_test_iprutils_install_and_remove_iprutils" + }, + { + "name": "oe_test_iprutils_install_and_remove_iprutils-help" + }, + { + "name": "oe_test_iprutils_install_and_remove_iprutils-debuginfo" + }, + { + "name": "oe_test_iprutils_install_and_remove_iprutils-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ipset.json b/suite2cases/ipset.json index 2ca50e6d6fd9633180339e55e5963f2a4f708a7b..c998bf4976f5b4e6ec866fbc80e16e6a38fcb7df 100644 --- a/suite2cases/ipset.json +++ b/suite2cases/ipset.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/ipset", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ipset" @@ -9,6 +12,24 @@ }, { "name": "oe_test_ipset_01" + }, + { + "name": "oe_test_ipset_install_and_remove_ipset" + }, + { + "name": "oe_test_ipset_install_and_remove_ipset-libs" + }, + { + "name": "oe_test_ipset_install_and_remove_ipset-devel" + }, + { + "name": "oe_test_ipset_install_and_remove_ipset-debugsource" + }, + { + "name": "oe_test_ipset_install_and_remove_ipset-help" + }, + { + "name": "oe_test_ipset_install_and_remove_ipset-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/iptables.json b/suite2cases/iptables.json index cefb5027b3a421f648d1299760471eb68cb32ea7..e4a1779fb5b3057c74f1924bb15babdb52339dd9 100644 --- a/suite2cases/iptables.json +++ b/suite2cases/iptables.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/iptables", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ip6tables" @@ -12,9 +15,30 @@ }, { "name": "oe_test_ip6tables-save" - }, - { - "name": "oe_test_ip6tables-restore_01" + }, + { + "name": "oe_test_ip6tables-restore_01" + }, + { + "name": "oe_test_iptables_install_and_remove_iptables" + }, + { + "name": "oe_test_iptables_install_and_remove_iptables-devel" + }, + { + "name": "oe_test_iptables_install_and_remove_iptables-libs" + }, + { + "name": "oe_test_iptables_install_and_remove_iptables-nft" + }, + { + "name": "oe_test_iptables_install_and_remove_iptables-debugsource" + }, + { + "name": "oe_test_iptables_install_and_remove_iptables-debuginfo" + }, + { + "name": "oe_test_iptables_install_and_remove_iptables-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/iputils.json b/suite2cases/iputils.json index db3d85ea7b92ec3224f8fdf35a68426db7f5c85d..b3058748c93cf9ed4d7c154729c14faa15b46b37 100644 --- a/suite2cases/iputils.json +++ b/suite2cases/iputils.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/iputils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_iputils_ping_01" @@ -45,6 +48,21 @@ }, { "name": "oe_test_service_rdisc" + }, + { + "name": "oe_test_iputils_install_and_remove_iputils" + }, + { + "name": "oe_test_iputils_install_and_remove_iputils-debuginfo" + }, + { + "name": "oe_test_iputils_install_and_remove_iputils-debugsource" + }, + { + "name": "oe_test_iputils_install_and_remove_iputils-help" + }, + { + "name": "oe_test_iputils_install_and_remove_iputils-ninfod" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ipvsadm.json b/suite2cases/ipvsadm.json index 1f775eec086b7d67819341ecbdaba27c8856ef9c..6dce775fc1a3355260d7d80add309a02d1fb4123 100644 --- a/suite2cases/ipvsadm.json +++ b/suite2cases/ipvsadm.json @@ -2,6 +2,8 @@ "path": "$OET_PATH/testcases/cli-test/ipvsadm", "machine num": 4, "add network interface": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ipvs_ADD_01" diff --git a/suite2cases/ipwatchd.json b/suite2cases/ipwatchd.json index 0a82668defda159f9aa9f6b8d5439e31ff0f35ba..c7ce1126192b03eeb924b49e6a1d42501624d174 100644 --- a/suite2cases/ipwatchd.json +++ b/suite2cases/ipwatchd.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/ipwatchd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ipwatchd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/irqbalance.json b/suite2cases/irqbalance.json index dc7078c735261df0c23ab5e5529c85774c8085bc..53a1586c1d64ad74e49752255568a12c00d644ef 100644 --- a/suite2cases/irqbalance.json +++ b/suite2cases/irqbalance.json @@ -1,8 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/irqbalance", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_irqbalance" + }, + { + "name": "oe_test_irqbalance_install_and_remove_irqbalance" + }, + { + "name": "oe_test_irqbalance_install_and_remove_irqbalance-devel" + }, + { + "name": "oe_test_irqbalance_install_and_remove_irqbalance-libs" + }, + { + "name": "oe_test_irqbalance_install_and_remove_irqbalance-help" + }, + { + "name": "oe_test_irqbalance_install_and_remove_irqbalance-debugsource" + }, + { + "name": "oe_test_irqbalance_install_and_remove_irqbalance-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/iso-codes.json b/suite2cases/iso-codes.json new file mode 100644 index 0000000000000000000000000000000000000000..d9bfa0e0384764f21341afeff068d34e2dd32592 --- /dev/null +++ b/suite2cases/iso-codes.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/iso-codes", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_iso-codes_install_and_remove_iso-codes" + }, + { + "name": "oe_test_iso-codes_install_and_remove_iso-codes-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/isomd5sum.json b/suite2cases/isomd5sum.json new file mode 100644 index 0000000000000000000000000000000000000000..4688f2965e7f652a402aa88726edad064f023b11 --- /dev/null +++ b/suite2cases/isomd5sum.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/isomd5sum", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_isomd5sum_install_and_remove_isomd5sum" + }, + { + "name": "oe_test_isomd5sum_install_and_remove_isomd5sum-devel" + }, + { + "name": "oe_test_isomd5sum_install_and_remove_python3-isomd5sum" + }, + { + "name": "oe_test_isomd5sum_install_and_remove_isomd5sum-debuginfo" + }, + { + "name": "oe_test_isomd5sum_install_and_remove_isomd5sum-help" + }, + { + "name": "oe_test_isomd5sum_install_and_remove_isomd5sum-debugsource" + }, + { + "name": "oe_test_isomd5sum_install_and_remove_python2-isomd5sum" + } + ] +} \ No newline at end of file diff --git a/suite2cases/isula-build.json b/suite2cases/isula-build.json index 1302cf5fda39e82c2fa069b8251206a91e140e0e..04771efaad97f65b2b7751ca493146d74f71cda4 100644 --- a/suite2cases/isula-build.json +++ b/suite2cases/isula-build.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/isula-build", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_isula-build" } ] -} +} \ No newline at end of file diff --git a/suite2cases/itstool.json b/suite2cases/itstool.json index 96378e68f9ae6eac4918f938bd1349bfe760666c..c8cfc93fe0bba33142db7ab83eb9832d3f35e097 100644 --- a/suite2cases/itstool.json +++ b/suite2cases/itstool.json @@ -1,11 +1,20 @@ { "path": "$OET_PATH/testcases/cli-test/itstool", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_itstool_base_01" }, { "name": "oe_test_itstool_base_02" + }, + { + "name": "oe_test_itstool_install_and_remove_itstool" + }, + { + "name": "oe_test_itstool_install_and_remove_itstool-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/itstool_2.0.4.json b/suite2cases/itstool_2.0.4.json index 7d22caaf81d5c714d54d51eb98af093cdfc76c0f..fda03e482f5c3681196f62597f8ccb4de5c4e3f4 100644 --- a/suite2cases/itstool_2.0.4.json +++ b/suite2cases/itstool_2.0.4.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/itstool", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_itstool_2.0.4" } ] -} +} \ No newline at end of file diff --git a/suite2cases/itstool_2.0.7.json b/suite2cases/itstool_2.0.7.json index 0fbe838878d146efe59110b492adb61b90fbf494..ea0842883036099042022adffadc794dde137938 100644 --- a/suite2cases/itstool_2.0.7.json +++ b/suite2cases/itstool_2.0.7.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/itstool", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_itstool_2.0.7" } ] - -} +} \ No newline at end of file diff --git a/suite2cases/jansson.json b/suite2cases/jansson.json new file mode 100644 index 0000000000000000000000000000000000000000..2694021d8605a388a06d447495826cf8d69a636a --- /dev/null +++ b/suite2cases/jansson.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/jansson", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_jansson_install_and_remove_jansson" + }, + { + "name": "oe_test_jansson_install_and_remove_jansson-devel" + }, + { + "name": "oe_test_jansson_install_and_remove_jansson-help" + }, + { + "name": "oe_test_jansson_install_and_remove_jansson-debugsource" + }, + { + "name": "oe_test_jansson_install_and_remove_jansson-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/java-1.8.0-openjdk.json b/suite2cases/java-1.8.0-openjdk.json index 7dac811a5e85a7112120f4dc7e7a63371d9605ef..2a10cfc8dfc4202b25ec94b6918fc1f67fd53c28 100644 --- a/suite2cases/java-1.8.0-openjdk.json +++ b/suite2cases/java-1.8.0-openjdk.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/java-1.8.0-openjdk", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_logstash_install" @@ -38,4 +40,4 @@ "name": "oe_test_java" } ] -} +} \ No newline at end of file diff --git a/suite2cases/java-11-openjdk.json b/suite2cases/java-11-openjdk.json index 6c9920705b2553875558e75c9a739d5165f2919c..592609c76dede2cbc1db8f2a9df78a97b411a253 100644 --- a/suite2cases/java-11-openjdk.json +++ b/suite2cases/java-11-openjdk.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/java-11-openjdk", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_java" @@ -13,7 +15,7 @@ { "name": "oe_test_openjdk11_javap" }, - { + { "name": "oe_test_openjdk11_jdb_jdeps" }, { diff --git a/suite2cases/java_cup.json b/suite2cases/java_cup.json new file mode 100644 index 0000000000000000000000000000000000000000..541f480d69da8ff9d2abf92d1d55213e4f8a189d --- /dev/null +++ b/suite2cases/java_cup.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/java_cup", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_java_cup_install_and_remove_java_cup" + }, + { + "name": "oe_test_java_cup_install_and_remove_java_cup-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/javapackages-tools.json b/suite2cases/javapackages-tools.json index 24647a1dfe728b22d3a69db36f91ebcef641cc0c..8f087b65a536acbf9db90ebe40f18d9ea92da801 100644 --- a/suite2cases/javapackages-tools.json +++ b/suite2cases/javapackages-tools.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/javapackages-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_binary_files_operation" @@ -18,6 +21,27 @@ }, { "name": "oe_test_javapackages-local" + }, + { + "name": "oe_test_javapackages-tools_install_and_remove_javapackages-tools" + }, + { + "name": "oe_test_javapackages-tools_install_and_remove_python3-javapackages" + }, + { + "name": "oe_test_javapackages-tools_install_and_remove_gradle-local" + }, + { + "name": "oe_test_javapackages-tools_install_and_remove_javapackages-filesystem" + }, + { + "name": "oe_test_javapackages-tools_install_and_remove_maven-local" + }, + { + "name": "oe_test_javapackages-tools_install_and_remove_ivy-local" + }, + { + "name": "oe_test_javapackages-tools_install_and_remove_javapackages-local" } ] -} +} \ No newline at end of file diff --git a/suite2cases/jbig2dec.json b/suite2cases/jbig2dec.json new file mode 100644 index 0000000000000000000000000000000000000000..1877322c2f7fc590fd6f00233cc2d57058a45f66 --- /dev/null +++ b/suite2cases/jbig2dec.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/jbig2dec", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_jbig2dec_install_and_remove_jbig2dec" + }, + { + "name": "oe_test_jbig2dec_install_and_remove_jbig2dec-devel" + }, + { + "name": "oe_test_jbig2dec_install_and_remove_jbig2dec-debugsource" + }, + { + "name": "oe_test_jbig2dec_install_and_remove_jbig2dec-debuginfo" + }, + { + "name": "oe_test_jbig2dec_install_and_remove_jbig2dec-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/jbigkit.json b/suite2cases/jbigkit.json new file mode 100644 index 0000000000000000000000000000000000000000..1a66c83981f856913603da1ccc33a3906345c032 --- /dev/null +++ b/suite2cases/jbigkit.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/jbigkit", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_jbigkit_install_and_remove_jbigkit" + }, + { + "name": "oe_test_jbigkit_install_and_remove_jbigkit-libs" + }, + { + "name": "oe_test_jbigkit_install_and_remove_jbigkit-devel" + }, + { + "name": "oe_test_jbigkit_install_and_remove_jbigkit-help" + }, + { + "name": "oe_test_jbigkit_install_and_remove_jbigkit-debuginfo" + }, + { + "name": "oe_test_jbigkit_install_and_remove_jbigkit-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/jemalloc.json b/suite2cases/jemalloc.json index 81a27619163171da6f7f71e8232b26681045f8e4..493d3d81d65683787b477522b990639237cdb178 100644 --- a/suite2cases/jemalloc.json +++ b/suite2cases/jemalloc.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/jemalloc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jemalloc_01" diff --git a/suite2cases/jetty.json b/suite2cases/jetty.json index a134941e9562ade06448ce13b57f904cbb411214..e91cda5f1b082291c8c46248bc4288d0c181b5ac 100644 --- a/suite2cases/jetty.json +++ b/suite2cases/jetty.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/cli-test/jetty", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jetty_start" diff --git a/suite2cases/jflex.json b/suite2cases/jflex.json new file mode 100644 index 0000000000000000000000000000000000000000..66768c856b94b6dbc4d0f697913fce3fc3faf794 --- /dev/null +++ b/suite2cases/jflex.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/jflex", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_jflex_install_and_remove_jflex" + }, + { + "name": "oe_test_jflex_install_and_remove_jflex-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/jgit.json b/suite2cases/jgit.json index a7ba609e20bc077cc63104d04efb7651a475c251..1d92848f1003fc4e3fb4ce20c8dc2fdb652ffef4 100644 --- a/suite2cases/jgit.json +++ b/suite2cases/jgit.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/jgit", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jgit_01" @@ -11,4 +13,4 @@ "name": "oe_test_jgit_03" } ] -} +} \ No newline at end of file diff --git a/suite2cases/jitterentropy-library.json b/suite2cases/jitterentropy-library.json new file mode 100644 index 0000000000000000000000000000000000000000..8287aef4448a364f1e8caa817db8bd6ce114c090 --- /dev/null +++ b/suite2cases/jitterentropy-library.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/jitterentropy-library", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_jitterentropy-library_install_and_remove_jitterentropy-library" + }, + { + "name": "oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-devel" + }, + { + "name": "oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-debuginfo" + }, + { + "name": "oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/jotai-benchmarks.json b/suite2cases/jotai-benchmarks.json new file mode 100644 index 0000000000000000000000000000000000000000..58c4b60e6fb184b53850b15da84e2b3fcd80ad62 --- /dev/null +++ b/suite2cases/jotai-benchmarks.json @@ -0,0 +1,10 @@ +{ + "path": "${OET_PATH}/testcases/system-test/compiler-test/jotai-benchmarks", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_jotai-benchmarks" + } + ] +} \ No newline at end of file diff --git a/suite2cases/jpegoptim.json b/suite2cases/jpegoptim.json index 40e31ae8e0aa7d88b1fe0d2a9e8a1f0268878179..82ca461cda700c83ec0aa633278aa9aa152766a5 100644 --- a/suite2cases/jpegoptim.json +++ b/suite2cases/jpegoptim.json @@ -1,36 +1,37 @@ - { "path": "$OET_PATH/testcases/cli-test/jpegoptim", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jpegoptim_01" - }, - { - "name": "oe_test_jpegoptim_02" - }, - { - "name": "oe_test_jpegoptim_03" - }, - { - "name": "oe_test_jpegoptim_04" - }, - { - "name": "oe_test_jpegoptim_05" - }, - { - "name": "oe_test_jpegoptim_06" - }, - { - "name": "oe_test_jpegoptim_07" - }, - { - "name": "oe_test_jpegoptim_08" - }, - { - "name": "oe_test_jpegoptim_09" - }, - { - "name": "oe_test_jpegoptim_10" - } + }, + { + "name": "oe_test_jpegoptim_02" + }, + { + "name": "oe_test_jpegoptim_03" + }, + { + "name": "oe_test_jpegoptim_04" + }, + { + "name": "oe_test_jpegoptim_05" + }, + { + "name": "oe_test_jpegoptim_06" + }, + { + "name": "oe_test_jpegoptim_07" + }, + { + "name": "oe_test_jpegoptim_08" + }, + { + "name": "oe_test_jpegoptim_09" + }, + { + "name": "oe_test_jpegoptim_10" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/jq.json b/suite2cases/jq.json index c1ed3fe837a664558a4cb483d929bed59b0bd831..f69316139d594a307af735410fc46c6d19d3e512 100644 --- a/suite2cases/jq.json +++ b/suite2cases/jq.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/jq", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jq" diff --git a/suite2cases/jruby.json b/suite2cases/jruby.json index 8c460e67aedee8e15529fe934c1d03fb2131259a..91f7e14bbbd443958a28fc96c57be97c3bdf4cc8 100644 --- a/suite2cases/jruby.json +++ b/suite2cases/jruby.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/jruby", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jruby" } - - ] + ] } \ No newline at end of file diff --git a/suite2cases/json-c.json b/suite2cases/json-c.json new file mode 100644 index 0000000000000000000000000000000000000000..f8a8b91f67f82b73514dc29f43f55d681156e7af --- /dev/null +++ b/suite2cases/json-c.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/json-c", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_json-c_install_and_remove_json-c" + }, + { + "name": "oe_test_json-c_install_and_remove_json-c-help" + }, + { + "name": "oe_test_json-c_install_and_remove_json-c-devel" + }, + { + "name": "oe_test_json-c_install_and_remove_json-c-debuginfo" + }, + { + "name": "oe_test_json-c_install_and_remove_json-c-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/json-glib.json b/suite2cases/json-glib.json new file mode 100644 index 0000000000000000000000000000000000000000..ed8a1a5a9fc7f37a3be41557cf779bba2324a4aa --- /dev/null +++ b/suite2cases/json-glib.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/json-glib", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_json-glib_install_and_remove_json-glib" + }, + { + "name": "oe_test_json-glib_install_and_remove_json-glib-help" + }, + { + "name": "oe_test_json-glib_install_and_remove_json-glib-debuginfo" + }, + { + "name": "oe_test_json-glib_install_and_remove_json-glib-debugsource" + }, + { + "name": "oe_test_json-glib_install_and_remove_json-glib-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/jsoncpp.json b/suite2cases/jsoncpp.json index 90e4ef55d5302ac63dd6f1247052dd48c4496664..3643949ea9c03a89bb0c6f8be0207318f0029473 100644 --- a/suite2cases/jsoncpp.json +++ b/suite2cases/jsoncpp.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/jsoncpp", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jsoncpp_01" + }, + { + "name": "oe_test_jsoncpp_install_and_remove_jsoncpp" + }, + { + "name": "oe_test_jsoncpp_install_and_remove_jsoncpp-devel" + }, + { + "name": "oe_test_jsoncpp_install_and_remove_jsoncpp-help" + }, + { + "name": "oe_test_jsoncpp_install_and_remove_jsoncpp-debuginfo" + }, + { + "name": "oe_test_jsoncpp_install_and_remove_jsoncpp-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/jtidy.json b/suite2cases/jtidy.json index 12a2f06018aeb0a75bd79cf44db3785405f67e63..45ce4bc7d5a1aace6bbbbb878920072468e73881 100755 --- a/suite2cases/jtidy.json +++ b/suite2cases/jtidy.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/jtidy", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jtidy_01" diff --git a/suite2cases/junit.json b/suite2cases/junit.json index 94a3c91e806bb29d6594703df4e554f66e51af1a..7c6b6cb475fcb0daba9c86091e37d2c9f79dd255 100644 --- a/suite2cases/junit.json +++ b/suite2cases/junit.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/junit", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_junit4_ant" @@ -39,6 +42,12 @@ }, { "name": "oe_test_junit4_TestSuite_api" + }, + { + "name": "oe_test_junit_install_and_remove_junit" + }, + { + "name": "oe_test_junit_install_and_remove_junit-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/junit5.json b/suite2cases/junit5.json index b265000082039a20ecbde0c4a793ae15fe9320c2..633cd7e4e29fbaf5d30b32ea03ceca2c7093de98 100644 --- a/suite2cases/junit5.json +++ b/suite2cases/junit5.json @@ -1,5 +1,8 @@ { "path": "${OET_PATH}/testcases/cli-test/junit5", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_junit5_abnormal_removejar" @@ -39,6 +42,15 @@ }, { "name": "oe_test_junit5_spring_maven" + }, + { + "name": "oe_test_junit5_install_and_remove_junit5" + }, + { + "name": "oe_test_junit5_install_and_remove_junit5-javadoc" + }, + { + "name": "oe_test_junit5_install_and_remove_junit5-guide" } ] } \ No newline at end of file diff --git a/suite2cases/jvnet-parent.json b/suite2cases/jvnet-parent.json new file mode 100644 index 0000000000000000000000000000000000000000..141b98b15beebc61654e0016a54114f8b9fe2339 --- /dev/null +++ b/suite2cases/jvnet-parent.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/jvnet-parent", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_jvnet-parent_install_and_remove_jvnet-parent" + } + ] +} \ No newline at end of file diff --git a/suite2cases/jython.json b/suite2cases/jython.json index dd037d14f6095cf3620670457e0f425658b5f2b0..c42df7da552b85b8afc530c7bcaf5dd4fa3d162a 100644 --- a/suite2cases/jython.json +++ b/suite2cases/jython.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/jython", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jython_01" diff --git a/suite2cases/k3s.json b/suite2cases/k3s.json index 9e092a6d31692e0049090a01a02f6578abf7d5ca..78ee68a4eda8d853e9320692e8e638aae18b0ca9 100644 --- a/suite2cases/k3s.json +++ b/suite2cases/k3s.json @@ -1,10 +1,12 @@ { "path": "${OET_PATH}/testcases/feature-test/k3s", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_k3s_deployment_guide", "machine num": 2 } ] -} +} \ No newline at end of file diff --git a/suite2cases/kbd.json b/suite2cases/kbd.json new file mode 100644 index 0000000000000000000000000000000000000000..1d6b54c61d41464429ec2fdc5a51833474a643d1 --- /dev/null +++ b/suite2cases/kbd.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/kbd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_kbd_install_and_remove_kbd" + }, + { + "name": "oe_test_kbd_install_and_remove_kbd-legacy" + }, + { + "name": "oe_test_kbd_install_and_remove_kbd-misc" + }, + { + "name": "oe_test_kbd_install_and_remove_kbd-debugsource" + }, + { + "name": "oe_test_kbd_install_and_remove_kbd-debuginfo" + }, + { + "name": "oe_test_kbd_install_and_remove_kbd-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/kconfigDetector.json b/suite2cases/kconfigDetector.json index 60298956002e5519c7f0396ee4b51d3a2e344a6e..bb71051317c8cbe55529f9384016d3fd4000c2a6 100644 --- a/suite2cases/kconfigDetector.json +++ b/suite2cases/kconfigDetector.json @@ -1,8 +1,10 @@ { "path": "${OET_PATH}/testcases/feature-test/kconfigDetector", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_kconfigDetector" } ] -} +} \ No newline at end of file diff --git a/suite2cases/kdump-anaconda-addon.json b/suite2cases/kdump-anaconda-addon.json new file mode 100644 index 0000000000000000000000000000000000000000..b13354ce8c80259283b4e0ce23622d0e8c335849 --- /dev/null +++ b/suite2cases/kdump-anaconda-addon.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/kdump-anaconda-addon", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_kdump-anaconda-addon_install_and_remove_kdump-anaconda-addon" + }, + { + "name": "oe_test_kdump-anaconda-addon_install_and_remove_kdump-anaconda-addon-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/keepalived.json b/suite2cases/keepalived.json index b2d20b238ba73694f3ee8b6d31e12e4c5ba16aa2..e17e291520a44f6a26ad32381999d8f91be33cf2 100644 --- a/suite2cases/keepalived.json +++ b/suite2cases/keepalived.json @@ -2,6 +2,8 @@ "path": "$OET_PATH/testcases/cli-test/keepalived", "machine num": 3, "add network interface": 4, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_keepalived_cli", @@ -23,4 +25,4 @@ "name": "oe_test_vrrp_garp_keepalived" } ] -} +} \ No newline at end of file diff --git a/suite2cases/kernel.json b/suite2cases/kernel.json index 2aa193bddb2e4aa44c5375bd4dc9737e721f15de..eda72ee697dd392cc4ee8fb819009b026a6f820b 100644 --- a/suite2cases/kernel.json +++ b/suite2cases/kernel.json @@ -1,6 +1,9 @@ { "path": "${OET_PATH}/testcases/cli-test/kernel", "machine type": "physical", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_kernel_cmd_01", @@ -65,27 +68,27 @@ { "name": "oe_test_check_huge_task", "machine type": "physical" - }, - { + }, + { "name": "oe_test_swappiness", "machine type": "physical" }, - { + { "name": "oe_test_softdog", "machine type": "physical" }, - { + { "name": "oe_test_cifs", "machine type": "physical" - }, - { + }, + { "name": "oe_test_xfs", "machine type": "physical" }, - { - "name": "oe_test_wangxun", - "machine type": "physical" - }, + { + "name": "oe_test_wangxun", + "machine type": "physical" + }, { "name": "oe_test_vlan_8021q" }, @@ -160,7 +163,57 @@ }, { "name": "oe_test_target_core_mod" + }, + { + "name": "oe_test_kernel_install_and_remove_kernel" + }, + { + "name": "oe_test_kernel_install_and_remove_kernel-tools-devel" + }, + { + "name": "oe_test_kernel_install_and_remove_perf" + }, + { + "name": "oe_test_kernel_install_and_remove_python3-perf" + }, + { + "name": "oe_test_kernel_install_and_remove_kernel-debugsource" + }, + { + "name": "oe_test_kernel_install_and_remove_perf-debuginfo" + }, + { + "name": "oe_test_kernel_install_and_remove_kernel-devel" + }, + { + "name": "oe_test_kernel_install_and_remove_kernel-headers" + }, + { + "name": "oe_test_kernel_install_and_remove_kernel-tools" + }, + { + "name": "oe_test_kernel_install_and_remove_kernel-source" + }, + { + "name": "oe_test_kernel_install_and_remove_kernel-tools-debuginfo" + }, + { + "name": "oe_test_kernel_install_and_remove_python3-perf-debuginfo" + }, + { + "name": "oe_test_kernel_install_and_remove_kernel-debuginfo" + }, + { + "name": "oe_test_kernel_install_and_remove_bpftool" + }, + { + "name": "oe_test_kernel_install_and_remove_bpftool-debuginfo" + }, + { + "name": "oe_test_kernel_install_and_remove_python2-perf" + }, + { + "name": "oe_test_kernel_install_and_remove_python2-perf-debuginfo" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/kexec-tools.json b/suite2cases/kexec-tools.json index ea55a45c44dcab69cc5c83f2f6e9eccfd3e150dc..49eb090b1748d4f864b4c7896e45dd8b1cb3d96d 100644 --- a/suite2cases/kexec-tools.json +++ b/suite2cases/kexec-tools.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/kexec-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_kdump" + }, + { + "name": "oe_test_kexec-tools_install_and_remove_kexec-tools" + }, + { + "name": "oe_test_kexec-tools_install_and_remove_kexec-tools-help" + }, + { + "name": "oe_test_kexec-tools_install_and_remove_kexec-tools-debuginfo" + }, + { + "name": "oe_test_kexec-tools_install_and_remove_kexec-tools-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/keybinder3.json b/suite2cases/keybinder3.json new file mode 100644 index 0000000000000000000000000000000000000000..8c12cebf3cabe54aade182824d30383d3c5c20df --- /dev/null +++ b/suite2cases/keybinder3.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/keybinder3", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_keybinder3_install_and_remove_keybinder3" + }, + { + "name": "oe_test_keybinder3_install_and_remove_keybinder3-devel" + }, + { + "name": "oe_test_keybinder3_install_and_remove_keybinder3-help" + }, + { + "name": "oe_test_keybinder3_install_and_remove_keybinder3-debugsource" + }, + { + "name": "oe_test_keybinder3_install_and_remove_keybinder3-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/keyutils.json b/suite2cases/keyutils.json index 1a1a83072ebcd6e2e93b31d67071ab05a266236b..f56fcec756672f83515fd57d9792a96bd27f562a 100644 --- a/suite2cases/keyutils.json +++ b/suite2cases/keyutils.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/keyutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_keyutils-api" @@ -7,8 +10,26 @@ { "name": "oe_test_keyutils-keyctl" }, - { - "name": "oe_test_keyutils-libs" - } + { + "name": "oe_test_keyutils-libs" + }, + { + "name": "oe_test_keyutils_install_and_remove_keyutils" + }, + { + "name": "oe_test_keyutils_install_and_remove_keyutils-libs" + }, + { + "name": "oe_test_keyutils_install_and_remove_keyutils-libs-devel" + }, + { + "name": "oe_test_keyutils_install_and_remove_keyutils-help" + }, + { + "name": "oe_test_keyutils_install_and_remove_keyutils-debuginfo" + }, + { + "name": "oe_test_keyutils_install_and_remove_keyutils-debugsource" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/kf5-kconfig.json b/suite2cases/kf5-kconfig.json index a7d68b7e4e8a7b5f855dbcf0f70009e025f01d7e..28fe418d45a204e0d6e6ef866c1b3a25d9310ff3 100644 --- a/suite2cases/kf5-kconfig.json +++ b/suite2cases/kf5-kconfig.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/kf5-kconfig", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_kf5-kconfig-core_01" diff --git a/suite2cases/kiran-authentication-service.json b/suite2cases/kiran-authentication-service.json index 42a16e6157dbeb4b66ea4243a576616caae08ca7..939579dad4c98b11a096b5cc64d772ca0d0238d0 100644 --- a/suite2cases/kiran-authentication-service.json +++ b/suite2cases/kiran-authentication-service.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/kiran-authentication-service", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_kiran-system-daemon-authentication" } ] -} +} \ No newline at end of file diff --git a/suite2cases/kiran-biometrics.json b/suite2cases/kiran-biometrics.json index 6e9fa0a1df03cc8ed1d4410a1ee2a484dca31f6e..792532a0477cab35673f7cd3bcba5cb0fb90d5a9 100644 --- a/suite2cases/kiran-biometrics.json +++ b/suite2cases/kiran-biometrics.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/kiran-biometrics", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_kiran-system-daemon-biometrics" } ] -} +} \ No newline at end of file diff --git a/suite2cases/kiran-cc-daemon.json b/suite2cases/kiran-cc-daemon.json index ff88ecdf477afe854871166ffffd93408c551bc4..9ff0fbf971a05f9aa76d8c8965fa35efb6cf0d26 100644 --- a/suite2cases/kiran-cc-daemon.json +++ b/suite2cases/kiran-cc-daemon.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/kiran-cc-daemon", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_kiran-system-daemon" } ] -} +} \ No newline at end of file diff --git a/suite2cases/kmod-kvdo.json b/suite2cases/kmod-kvdo.json index 488a58f30f024a229fe201fb3ebe2227c1361fe4..3db59a8b11e532c0f3a52d4b70992c67e59e6b69 100644 --- a/suite2cases/kmod-kvdo.json +++ b/suite2cases/kmod-kvdo.json @@ -2,6 +2,8 @@ "path": "${OET_PATH}/testcases/cli-test/kmod-kvdo", "disk size": 130, "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_kvdo_fenqu", @@ -17,4 +19,4 @@ "disk size": 130 } ] -} +} \ No newline at end of file diff --git a/suite2cases/kmod.json b/suite2cases/kmod.json index c0e859947009daa3817ac80f1b687638e1c5378c..04ca87ef451851e1d6821ca207be09546f7667b5 100644 --- a/suite2cases/kmod.json +++ b/suite2cases/kmod.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/kmod", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_depmod" @@ -21,6 +24,27 @@ }, { "name": "oe_test_weak-modules" + }, + { + "name": "oe_test_kmod_install_and_remove_kmod" + }, + { + "name": "oe_test_kmod_install_and_remove_kmod-libs" + }, + { + "name": "oe_test_kmod_install_and_remove_kmod-help" + }, + { + "name": "oe_test_kmod_install_and_remove_kmod-devel" + }, + { + "name": "oe_test_kmod_install_and_remove_python3-kmod" + }, + { + "name": "oe_test_kmod_install_and_remove_kmod-debuginfo" + }, + { + "name": "oe_test_kmod_install_and_remove_kmod-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/kpatch.json b/suite2cases/kpatch.json index a8f4265873d7f631897576c2c4a9a8fefb15d368..51ea2fc712f86b7ffd06dc0dfdb48623cc8b1092 100644 --- a/suite2cases/kpatch.json +++ b/suite2cases/kpatch.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/kpatch", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_kpatch" } ] -} +} \ No newline at end of file diff --git a/suite2cases/krb5.json b/suite2cases/krb5.json index 445551584d4c33ab87b0d5bb9abdf7e35f943099..0420a29e3c9e466ec82500105692b830801ee521 100644 --- a/suite2cases/krb5.json +++ b/suite2cases/krb5.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/krb5", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_kadmin" @@ -9,6 +12,30 @@ }, { "name": "oe_test_service_krb5kdc" + }, + { + "name": "oe_test_krb5_install_and_remove_krb5" + }, + { + "name": "oe_test_krb5_install_and_remove_krb5-devel" + }, + { + "name": "oe_test_krb5_install_and_remove_krb5-help" + }, + { + "name": "oe_test_krb5_install_and_remove_krb5-server" + }, + { + "name": "oe_test_krb5_install_and_remove_krb5-client" + }, + { + "name": "oe_test_krb5_install_and_remove_krb5-libs" + }, + { + "name": "oe_test_krb5_install_and_remove_krb5-debugsource" + }, + { + "name": "oe_test_krb5_install_and_remove_krb5-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ksh.json b/suite2cases/ksh.json index f96303a165b1e05d17af597a4dfae2f7b0c5b0b0..ac99a19258d53db05e6ae192a131810523d7dd81 100644 --- a/suite2cases/ksh.json +++ b/suite2cases/ksh.json @@ -1,8 +1,23 @@ { - "path": "$OET_PATH/testcases/cli-test/ksh", - "cases": [ - { - "name": "oe_test_ksh" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/ksh", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ksh" + }, + { + "name": "oe_test_ksh_install_and_remove_ksh" + }, + { + "name": "oe_test_ksh_install_and_remove_ksh-help" + }, + { + "name": "oe_test_ksh_install_and_remove_ksh-debugsource" + }, + { + "name": "oe_test_ksh_install_and_remove_ksh-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/kuasar.json b/suite2cases/kuasar.json index 28422f19b4d9f1df89461878028abbfb415b8756..b3e15f7fbb8a46fa8f39264dc59b5dcd3eef80b6 100644 --- a/suite2cases/kuasar.json +++ b/suite2cases/kuasar.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/kuasar", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_kuasar-vmm" } ] -} +} \ No newline at end of file diff --git a/suite2cases/kubeedge.json b/suite2cases/kubeedge.json index b5e8bd7b2b4e8919b0441a5305b431a191bcf88e..5e77fe867773f204cb4608b32b1934b972b4f297 100644 --- a/suite2cases/kubeedge.json +++ b/suite2cases/kubeedge.json @@ -1,10 +1,12 @@ { "path": "${OET_PATH}/testcases/feature-test/kubeedge", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_kubeedge_deployment_guide", "machine num": 2 } ] -} +} \ No newline at end of file diff --git a/suite2cases/kubernetes.json b/suite2cases/kubernetes.json index 8dce674d8af3f9628d3916d3784649a82e0fca90..63f9e8135b7ea91572b5c6d30a2663aa3e5fd392 100644 --- a/suite2cases/kubernetes.json +++ b/suite2cases/kubernetes.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/kubernetes", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_kube-controller-manager" diff --git a/suite2cases/kyua.json b/suite2cases/kyua.json new file mode 100644 index 0000000000000000000000000000000000000000..5e5d9773375ce283b7eeab083cdb9573cb28e100 --- /dev/null +++ b/suite2cases/kyua.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/kyua", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_kyua_install_and_remove_kyua" + }, + { + "name": "oe_test_kyua_install_and_remove_kyua-help" + }, + { + "name": "oe_test_kyua_install_and_remove_kyua-tests" + }, + { + "name": "oe_test_kyua_install_and_remove_kyua-debuginfo" + }, + { + "name": "oe_test_kyua_install_and_remove_kyua-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ladspa.json b/suite2cases/ladspa.json index 480fff46eac7946439352b201a00427d74c0914a..9aedc51439e1fcb9af66ce5121053f3959f6111f 100644 --- a/suite2cases/ladspa.json +++ b/suite2cases/ladspa.json @@ -1,12 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/ladspa", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ladspa_analyseplugin" }, - { + { "name": "oe_test_ladspa_applyplugin" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/lame.json b/suite2cases/lame.json new file mode 100644 index 0000000000000000000000000000000000000000..06354eb7ddf7dd3935e325f1919768c6c2db2984 --- /dev/null +++ b/suite2cases/lame.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/lame", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_lame_install_and_remove_lame" + }, + { + "name": "oe_test_lame_install_and_remove_lame-help" + }, + { + "name": "oe_test_lame_install_and_remove_lame-devel" + }, + { + "name": "oe_test_lame_install_and_remove_lame-mp3x" + }, + { + "name": "oe_test_lame_install_and_remove_lame-debugsource" + }, + { + "name": "oe_test_lame_install_and_remove_lame-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/langtable.json b/suite2cases/langtable.json new file mode 100644 index 0000000000000000000000000000000000000000..4a086a525269918f17d24b74e94821e753c5d627 --- /dev/null +++ b/suite2cases/langtable.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/langtable", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_langtable_install_and_remove_langtable" + }, + { + "name": "oe_test_langtable_install_and_remove_python3-langtable" + }, + { + "name": "oe_test_langtable_install_and_remove_python2-langtable" + }, + { + "name": "oe_test_langtable_install_and_remove_langtable-data" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lapack.json b/suite2cases/lapack.json new file mode 100644 index 0000000000000000000000000000000000000000..83ba3c7babb7261a25133b9c9e17c4b2edccc3f4 --- /dev/null +++ b/suite2cases/lapack.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/lapack", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_lapack_install_and_remove_lapack" + }, + { + "name": "oe_test_lapack_install_and_remove_lapack-devel" + }, + { + "name": "oe_test_lapack_install_and_remove_lapack-help" + }, + { + "name": "oe_test_lapack_install_and_remove_lapack64" + }, + { + "name": "oe_test_lapack_install_and_remove_lapack64-devel" + }, + { + "name": "oe_test_lapack_install_and_remove_lapack-debuginfo" + }, + { + "name": "oe_test_lapack_install_and_remove_lapack-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lcms2.json b/suite2cases/lcms2.json new file mode 100644 index 0000000000000000000000000000000000000000..8035fba9bd84088e514cd97e8917aee8df725e2f --- /dev/null +++ b/suite2cases/lcms2.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/lcms2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_lcms2_install_and_remove_lcms2" + }, + { + "name": "oe_test_lcms2_install_and_remove_lcms2-utils" + }, + { + "name": "oe_test_lcms2_install_and_remove_lcms2-devel" + }, + { + "name": "oe_test_lcms2_install_and_remove_lcms2-debugsource" + }, + { + "name": "oe_test_lcms2_install_and_remove_lcms2-debuginfo" + }, + { + "name": "oe_test_lcms2_install_and_remove_lcms2-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/leptonica.json b/suite2cases/leptonica.json index 296285a1a234f16329b350074dfc0dcc020d6c3d..3767f580e93a482c9da1ad4c65834822254c8996 100644 --- a/suite2cases/leptonica.json +++ b/suite2cases/leptonica.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/leptonica", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_leptonica" } ] -} +} \ No newline at end of file diff --git a/suite2cases/less.json b/suite2cases/less.json new file mode 100644 index 0000000000000000000000000000000000000000..6ae67e68e27d0e56d1bc48b77a38ce6af1b24746 --- /dev/null +++ b/suite2cases/less.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/less", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_less_install_and_remove_less" + }, + { + "name": "oe_test_less_install_and_remove_less-help" + }, + { + "name": "oe_test_less_install_and_remove_less-debugsource" + }, + { + "name": "oe_test_less_install_and_remove_less-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/leveldb.json b/suite2cases/leveldb.json index c3fe43f423bb5c018c445772242e5880c3e68d32..60d46883810443454cb6f01dcfba083584ac789c 100644 --- a/suite2cases/leveldb.json +++ b/suite2cases/leveldb.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/leveldb", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_leveldb" } - ] } \ No newline at end of file diff --git a/suite2cases/libICE.json b/suite2cases/libICE.json new file mode 100644 index 0000000000000000000000000000000000000000..e1ec98aeb927207c1b48055317a1cca95cdd4bc9 --- /dev/null +++ b/suite2cases/libICE.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libICE", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libICE_install_and_remove_libICE" + }, + { + "name": "oe_test_libICE_install_and_remove_libICE-devel" + }, + { + "name": "oe_test_libICE_install_and_remove_libICE-debuginfo" + }, + { + "name": "oe_test_libICE_install_and_remove_libICE-help" + }, + { + "name": "oe_test_libICE_install_and_remove_libICE-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libSM.json b/suite2cases/libSM.json new file mode 100644 index 0000000000000000000000000000000000000000..15c3e595104409ad72be78a0f25e9933a9277598 --- /dev/null +++ b/suite2cases/libSM.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libSM", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libSM_install_and_remove_libSM" + }, + { + "name": "oe_test_libSM_install_and_remove_libSM-devel" + }, + { + "name": "oe_test_libSM_install_and_remove_libSM-debuginfo" + }, + { + "name": "oe_test_libSM_install_and_remove_libSM-help" + }, + { + "name": "oe_test_libSM_install_and_remove_libSM-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libX11.json b/suite2cases/libX11.json index 92a93cad33967b6d3698ef09b3693b0cdc8d9679..f7eeeac50e9b68f09727d4b7f305b439dc8f8ce0 100644 --- a/suite2cases/libX11.json +++ b/suite2cases/libX11.json @@ -1,8 +1,35 @@ { "path": "$OET_PATH/testcases/cli-test/libX11", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libx11" + }, + { + "name": "oe_test_libX11_install_and_remove_libX11" + }, + { + "name": "oe_test_libX11_install_and_remove_libX11-devel" + }, + { + "name": "oe_test_libX11_install_and_remove_libX11-debuginfo" + }, + { + "name": "oe_test_libX11_install_and_remove_libX11-debugsource" + }, + { + "name": "oe_test_libX11_install_and_remove_libX11-help" + }, + { + "name": "oe_test_libX11_install_and_remove_libX11-xcb" + }, + { + "name": "oe_test_libX11_install_and_remove_libX11-common" + }, + { + "name": "oe_test_libX11_install_and_remove_libX11-doc" } ] } \ No newline at end of file diff --git a/suite2cases/libXScrnSaver.json b/suite2cases/libXScrnSaver.json new file mode 100644 index 0000000000000000000000000000000000000000..c6fdd4474abbdf1b45a7e74eef14eff8c117594c --- /dev/null +++ b/suite2cases/libXScrnSaver.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXScrnSaver", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXScrnSaver_install_and_remove_libXScrnSaver" + }, + { + "name": "oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-devel" + }, + { + "name": "oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-help" + }, + { + "name": "oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-debuginfo" + }, + { + "name": "oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXau.json b/suite2cases/libXau.json new file mode 100644 index 0000000000000000000000000000000000000000..49380f2cb6d52d9d26810baa697afd274ec593bd --- /dev/null +++ b/suite2cases/libXau.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXau", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXau_install_and_remove_libXau" + }, + { + "name": "oe_test_libXau_install_and_remove_libXau-devel" + }, + { + "name": "oe_test_libXau_install_and_remove_libXau-debuginfo" + }, + { + "name": "oe_test_libXau_install_and_remove_libXau-help" + }, + { + "name": "oe_test_libXau_install_and_remove_libXau-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXaw.json b/suite2cases/libXaw.json new file mode 100644 index 0000000000000000000000000000000000000000..3573871a07e377b0d150cac7e43afe65201dc063 --- /dev/null +++ b/suite2cases/libXaw.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXaw", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXaw_install_and_remove_libXaw" + }, + { + "name": "oe_test_libXaw_install_and_remove_libXaw-devel" + }, + { + "name": "oe_test_libXaw_install_and_remove_libXaw-debugsource" + }, + { + "name": "oe_test_libXaw_install_and_remove_libXaw-help" + }, + { + "name": "oe_test_libXaw_install_and_remove_libXaw-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXcomposite.json b/suite2cases/libXcomposite.json new file mode 100644 index 0000000000000000000000000000000000000000..de3960ca0a7f63a3aec2bfdf9ef9ac981a687188 --- /dev/null +++ b/suite2cases/libXcomposite.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXcomposite", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXcomposite_install_and_remove_libXcomposite" + }, + { + "name": "oe_test_libXcomposite_install_and_remove_libXcomposite-devel" + }, + { + "name": "oe_test_libXcomposite_install_and_remove_libXcomposite-debuginfo" + }, + { + "name": "oe_test_libXcomposite_install_and_remove_libXcomposite-help" + }, + { + "name": "oe_test_libXcomposite_install_and_remove_libXcomposite-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXcursor.json b/suite2cases/libXcursor.json new file mode 100644 index 0000000000000000000000000000000000000000..9e8fe0497f605acdaa84a5f9da52c094f0f691e2 --- /dev/null +++ b/suite2cases/libXcursor.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXcursor", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXcursor_install_and_remove_libXcursor" + }, + { + "name": "oe_test_libXcursor_install_and_remove_libXcursor-devel" + }, + { + "name": "oe_test_libXcursor_install_and_remove_libXcursor-debuginfo" + }, + { + "name": "oe_test_libXcursor_install_and_remove_libXcursor-debugsource" + }, + { + "name": "oe_test_libXcursor_install_and_remove_libXcursor-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXdamage.json b/suite2cases/libXdamage.json new file mode 100644 index 0000000000000000000000000000000000000000..e49de0c237f1e45e11c9d700efebc5a376336fff --- /dev/null +++ b/suite2cases/libXdamage.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXdamage", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXdamage_install_and_remove_libXdamage" + }, + { + "name": "oe_test_libXdamage_install_and_remove_libXdamage-help" + }, + { + "name": "oe_test_libXdamage_install_and_remove_libXdamage-devel" + }, + { + "name": "oe_test_libXdamage_install_and_remove_libXdamage-debuginfo" + }, + { + "name": "oe_test_libXdamage_install_and_remove_libXdamage-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXdmcp.json b/suite2cases/libXdmcp.json new file mode 100644 index 0000000000000000000000000000000000000000..a6cc1c42ab9851e1d247f1821503ff69626c6975 --- /dev/null +++ b/suite2cases/libXdmcp.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXdmcp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXdmcp_install_and_remove_libXdmcp" + }, + { + "name": "oe_test_libXdmcp_install_and_remove_libXdmcp-devel" + }, + { + "name": "oe_test_libXdmcp_install_and_remove_libXdmcp-debugsource" + }, + { + "name": "oe_test_libXdmcp_install_and_remove_libXdmcp-help" + }, + { + "name": "oe_test_libXdmcp_install_and_remove_libXdmcp-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXext.json b/suite2cases/libXext.json new file mode 100644 index 0000000000000000000000000000000000000000..b9f7963a94cd8ac9cd2ef9d981d97d5905542b2c --- /dev/null +++ b/suite2cases/libXext.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXext", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXext_install_and_remove_libXext" + }, + { + "name": "oe_test_libXext_install_and_remove_libXext-devel" + }, + { + "name": "oe_test_libXext_install_and_remove_libXext-help" + }, + { + "name": "oe_test_libXext_install_and_remove_libXext-debugsource" + }, + { + "name": "oe_test_libXext_install_and_remove_libXext-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXfixes.json b/suite2cases/libXfixes.json new file mode 100644 index 0000000000000000000000000000000000000000..214fa7261f75c7d721bed75c561f74ee8d4a129f --- /dev/null +++ b/suite2cases/libXfixes.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXfixes", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXfixes_install_and_remove_libXfixes" + }, + { + "name": "oe_test_libXfixes_install_and_remove_libXfixes-devel" + }, + { + "name": "oe_test_libXfixes_install_and_remove_libXfixes-debuginfo" + }, + { + "name": "oe_test_libXfixes_install_and_remove_libXfixes-debugsource" + }, + { + "name": "oe_test_libXfixes_install_and_remove_libXfixes-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXfont2.json b/suite2cases/libXfont2.json new file mode 100644 index 0000000000000000000000000000000000000000..9fce5608f85e15f42fa335402c6aefdedfd87ef0 --- /dev/null +++ b/suite2cases/libXfont2.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXfont2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXfont2_install_and_remove_libXfont2" + }, + { + "name": "oe_test_libXfont2_install_and_remove_libXfont2-devel" + }, + { + "name": "oe_test_libXfont2_install_and_remove_libXfont2-debuginfo" + }, + { + "name": "oe_test_libXfont2_install_and_remove_libXfont2-debugsource" + }, + { + "name": "oe_test_libXfont2_install_and_remove_libXfont2-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXft.json b/suite2cases/libXft.json new file mode 100644 index 0000000000000000000000000000000000000000..14fe651698bb07e1e99f56b8fa78fea1f2541f20 --- /dev/null +++ b/suite2cases/libXft.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXft", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXft_install_and_remove_libXft" + }, + { + "name": "oe_test_libXft_install_and_remove_libXft-devel" + }, + { + "name": "oe_test_libXft_install_and_remove_libXft-help" + }, + { + "name": "oe_test_libXft_install_and_remove_libXft-debugsource" + }, + { + "name": "oe_test_libXft_install_and_remove_libXft-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXi.json b/suite2cases/libXi.json new file mode 100644 index 0000000000000000000000000000000000000000..7aa42531df540316228b29f7dc73786953ccfe98 --- /dev/null +++ b/suite2cases/libXi.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXi", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXi_install_and_remove_libXi" + }, + { + "name": "oe_test_libXi_install_and_remove_libXi-devel" + }, + { + "name": "oe_test_libXi_install_and_remove_libXi-debugsource" + }, + { + "name": "oe_test_libXi_install_and_remove_libXi-help" + }, + { + "name": "oe_test_libXi_install_and_remove_libXi-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXinerama.json b/suite2cases/libXinerama.json new file mode 100644 index 0000000000000000000000000000000000000000..1fc87cf516d37971446d94b236c2ada56d2a742d --- /dev/null +++ b/suite2cases/libXinerama.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXinerama", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXinerama_install_and_remove_libXinerama" + }, + { + "name": "oe_test_libXinerama_install_and_remove_libXinerama-devel" + }, + { + "name": "oe_test_libXinerama_install_and_remove_libXinerama-debugsource" + }, + { + "name": "oe_test_libXinerama_install_and_remove_libXinerama-help" + }, + { + "name": "oe_test_libXinerama_install_and_remove_libXinerama-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXmu.json b/suite2cases/libXmu.json new file mode 100644 index 0000000000000000000000000000000000000000..ca767a266b407457f68e0880d38ff9bc4a437b23 --- /dev/null +++ b/suite2cases/libXmu.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXmu", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXmu_install_and_remove_libXmu" + }, + { + "name": "oe_test_libXmu_install_and_remove_libXmu-devel" + }, + { + "name": "oe_test_libXmu_install_and_remove_libXmu-help" + }, + { + "name": "oe_test_libXmu_install_and_remove_libXmu-debuginfo" + }, + { + "name": "oe_test_libXmu_install_and_remove_libXmu-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXrandr.json b/suite2cases/libXrandr.json new file mode 100644 index 0000000000000000000000000000000000000000..b5b50e3cbf96f5490d5bf4a2a2328e6ee8afdc63 --- /dev/null +++ b/suite2cases/libXrandr.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXrandr", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXrandr_install_and_remove_libXrandr" + }, + { + "name": "oe_test_libXrandr_install_and_remove_libXrandr-help" + }, + { + "name": "oe_test_libXrandr_install_and_remove_libXrandr-devel" + }, + { + "name": "oe_test_libXrandr_install_and_remove_libXrandr-debugsource" + }, + { + "name": "oe_test_libXrandr_install_and_remove_libXrandr-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXrender.json b/suite2cases/libXrender.json new file mode 100644 index 0000000000000000000000000000000000000000..6f8062d41e726689ab781192cb00a0b6a9395304 --- /dev/null +++ b/suite2cases/libXrender.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXrender", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXrender_install_and_remove_libXrender" + }, + { + "name": "oe_test_libXrender_install_and_remove_libXrender-devel" + }, + { + "name": "oe_test_libXrender_install_and_remove_libXrender-debugsource" + }, + { + "name": "oe_test_libXrender_install_and_remove_libXrender-debuginfo" + }, + { + "name": "oe_test_libXrender_install_and_remove_libXrender-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXres.json b/suite2cases/libXres.json new file mode 100644 index 0000000000000000000000000000000000000000..c0943ea16879d315e76ffed9667fe1b22faa4603 --- /dev/null +++ b/suite2cases/libXres.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXres", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXres_install_and_remove_libXres" + }, + { + "name": "oe_test_libXres_install_and_remove_libXres-debuginfo" + }, + { + "name": "oe_test_libXres_install_and_remove_libXres-devel" + }, + { + "name": "oe_test_libXres_install_and_remove_libXres-debugsource" + }, + { + "name": "oe_test_libXres_install_and_remove_libXres-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXt.json b/suite2cases/libXt.json new file mode 100644 index 0000000000000000000000000000000000000000..b6f70c93813d93d4262f6cea8864f326f58c6981 --- /dev/null +++ b/suite2cases/libXt.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXt", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXt_install_and_remove_libXt" + }, + { + "name": "oe_test_libXt_install_and_remove_libXt-devel" + }, + { + "name": "oe_test_libXt_install_and_remove_libXt-debuginfo" + }, + { + "name": "oe_test_libXt_install_and_remove_libXt-help" + }, + { + "name": "oe_test_libXt_install_and_remove_libXt-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXtst.json b/suite2cases/libXtst.json new file mode 100644 index 0000000000000000000000000000000000000000..f86a85c1cb181a9f0fde2aaaa1a87f2d801facb3 --- /dev/null +++ b/suite2cases/libXtst.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXtst", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXtst_install_and_remove_libXtst" + }, + { + "name": "oe_test_libXtst_install_and_remove_libXtst-help" + }, + { + "name": "oe_test_libXtst_install_and_remove_libXtst-devel" + }, + { + "name": "oe_test_libXtst_install_and_remove_libXtst-debuginfo" + }, + { + "name": "oe_test_libXtst_install_and_remove_libXtst-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXv.json b/suite2cases/libXv.json new file mode 100644 index 0000000000000000000000000000000000000000..6e642e397dab8128babc5e9507b1ce64f034e6c8 --- /dev/null +++ b/suite2cases/libXv.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXv", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXv_install_and_remove_libXv" + }, + { + "name": "oe_test_libXv_install_and_remove_libXv-devel" + }, + { + "name": "oe_test_libXv_install_and_remove_libXv-debuginfo" + }, + { + "name": "oe_test_libXv_install_and_remove_libXv-debugsource" + }, + { + "name": "oe_test_libXv_install_and_remove_libXv-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXvMC.json b/suite2cases/libXvMC.json new file mode 100644 index 0000000000000000000000000000000000000000..89fa40637c7883aeaf607ab627001db6293e0a12 --- /dev/null +++ b/suite2cases/libXvMC.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXvMC", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXvMC_install_and_remove_libXvMC" + }, + { + "name": "oe_test_libXvMC_install_and_remove_libXvMC-devel" + }, + { + "name": "oe_test_libXvMC_install_and_remove_libXvMC-debuginfo" + }, + { + "name": "oe_test_libXvMC_install_and_remove_libXvMC-debugsource" + }, + { + "name": "oe_test_libXvMC_install_and_remove_libXvMC-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXxf86dga.json b/suite2cases/libXxf86dga.json new file mode 100644 index 0000000000000000000000000000000000000000..b4b8bcb3b6b084ab8476cfcded7383e2204dd2f8 --- /dev/null +++ b/suite2cases/libXxf86dga.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXxf86dga", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXxf86dga_install_and_remove_libxxf86dga" + }, + { + "name": "oe_test_libXxf86dga_install_and_remove_libXxf86dga-devel" + }, + { + "name": "oe_test_libXxf86dga_install_and_remove_libXxf86dga-help" + }, + { + "name": "oe_test_libXxf86dga_install_and_remove_libXxf86dga-debugsource" + }, + { + "name": "oe_test_libXxf86dga_install_and_remove_libXxf86dga-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libXxf86vm.json b/suite2cases/libXxf86vm.json new file mode 100644 index 0000000000000000000000000000000000000000..dd2d5a30c0f395ab7df38d0866b9b0acb2d2361d --- /dev/null +++ b/suite2cases/libXxf86vm.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libXxf86vm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libXxf86vm_install_and_remove_libXxf86vm" + }, + { + "name": "oe_test_libXxf86vm_install_and_remove_libXxf86vm-devel" + }, + { + "name": "oe_test_libXxf86vm_install_and_remove_libXxf86vm-debuginfo" + }, + { + "name": "oe_test_libXxf86vm_install_and_remove_libXxf86vm-debugsource" + }, + { + "name": "oe_test_libXxf86vm_install_and_remove_libXxf86vm-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libadwaita.json b/suite2cases/libadwaita.json new file mode 100644 index 0000000000000000000000000000000000000000..b01c5548a0f50dc9565fb6f7d1853b1379236db1 --- /dev/null +++ b/suite2cases/libadwaita.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libadwaita", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libadwaita_install_and_remove_libadwaita" + }, + { + "name": "oe_test_libadwaita_install_and_remove_libadwaita-devel" + }, + { + "name": "oe_test_libadwaita_install_and_remove_libadwaita-debuginfo" + }, + { + "name": "oe_test_libadwaita_install_and_remove_libadwaita-debugsource" + }, + { + "name": "oe_test_libadwaita_install_and_remove_libadwaita-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libaec.json b/suite2cases/libaec.json index 4ba20e006ded71c9cc1ace5e3599c060afbceb5b..6168d79a3a5d4f46e2c0f195c20d11350494afb9 100644 --- a/suite2cases/libaec.json +++ b/suite2cases/libaec.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libaec", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libaec_aec" diff --git a/suite2cases/libaio.json b/suite2cases/libaio.json new file mode 100644 index 0000000000000000000000000000000000000000..54882daab691055e327ea93c10c82b814ff4e865 --- /dev/null +++ b/suite2cases/libaio.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libaio", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libaio_install_and_remove_libaio" + }, + { + "name": "oe_test_libaio_install_and_remove_libaio-devel" + }, + { + "name": "oe_test_libaio_install_and_remove_libaio-debuginfo" + }, + { + "name": "oe_test_libaio_install_and_remove_libaio-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libappindicator.json b/suite2cases/libappindicator.json new file mode 100644 index 0000000000000000000000000000000000000000..aefc9d1a8e95095bbbfc68128863f36ffe3cdd2b --- /dev/null +++ b/suite2cases/libappindicator.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libappindicator", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libappindicator_install_and_remove_libappindicator" + }, + { + "name": "oe_test_libappindicator_install_and_remove_libappindicator-docs" + }, + { + "name": "oe_test_libappindicator_install_and_remove_libappindicator-devel" + }, + { + "name": "oe_test_libappindicator_install_and_remove_libappindicator-gtk3-devel" + }, + { + "name": "oe_test_libappindicator_install_and_remove_libappindicator-gtk3" + }, + { + "name": "oe_test_libappindicator_install_and_remove_libappindicator-debugsource" + }, + { + "name": "oe_test_libappindicator_install_and_remove_libappindicator-debuginfo" + }, + { + "name": "oe_test_libappindicator_install_and_remove_python2-appindicator" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libappstream-glib.json b/suite2cases/libappstream-glib.json index 961a8242cc3b978744a5f8480f0035eee54e65a9..09eb0e484e7b5ce6c9052c1ae27c83ec11393af7 100644 --- a/suite2cases/libappstream-glib.json +++ b/suite2cases/libappstream-glib.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/libappstream-glib", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libappstream-glib_appstream-builder_01" @@ -24,6 +27,21 @@ }, { "name": "oe_test_libappstream-glib_appstream-util_05" + }, + { + "name": "oe_test_libappstream-glib_install_and_remove_libappstream-glib" + }, + { + "name": "oe_test_libappstream-glib_install_and_remove_libappstream-glib-help" + }, + { + "name": "oe_test_libappstream-glib_install_and_remove_libappstream-glib-devel" + }, + { + "name": "oe_test_libappstream-glib_install_and_remove_libappstream-glib-debuginfo" + }, + { + "name": "oe_test_libappstream-glib_install_and_remove_libappstream-glib-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/libarchive.json b/suite2cases/libarchive.json index 68f69bc4c0326537c7651de41af63b639cb10372..649e85c6185a14db68cf84c1dc5901c80c156ec9 100644 --- a/suite2cases/libarchive.json +++ b/suite2cases/libarchive.json @@ -1,12 +1,41 @@ { "path": "$OET_PATH/testcases/cli-test/libarchive", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libarchive_bsdtar" }, { "name": "oe_test_libarchive_bsdcpio" + }, + { + "name": "oe_test_libarchive_install_and_remove_libarchive" + }, + { + "name": "oe_test_libarchive_install_and_remove_bsdcat" + }, + { + "name": "oe_test_libarchive_install_and_remove_bsdunzip" + }, + { + "name": "oe_test_libarchive_install_and_remove_libarchive-devel" + }, + { + "name": "oe_test_libarchive_install_and_remove_bsdtar" + }, + { + "name": "oe_test_libarchive_install_and_remove_bsdcpio" + }, + { + "name": "oe_test_libarchive_install_and_remove_libarchive-debuginfo" + }, + { + "name": "oe_test_libarchive_install_and_remove_libarchive-debugsource" + }, + { + "name": "oe_test_libarchive_install_and_remove_libarchive-help" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/libassuan.json b/suite2cases/libassuan.json new file mode 100644 index 0000000000000000000000000000000000000000..91cdacc9482d679368cefa7d48ac890e25fce99d --- /dev/null +++ b/suite2cases/libassuan.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libassuan", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libassuan_install_and_remove_libassuan" + }, + { + "name": "oe_test_libassuan_install_and_remove_libassuan-devel" + }, + { + "name": "oe_test_libassuan_install_and_remove_libassuan-help" + }, + { + "name": "oe_test_libassuan_install_and_remove_libassuan-debugsource" + }, + { + "name": "oe_test_libassuan_install_and_remove_libassuan-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libasyncns.json b/suite2cases/libasyncns.json new file mode 100644 index 0000000000000000000000000000000000000000..ca026ec137337722b0527e8b637a1c9443bfff1f --- /dev/null +++ b/suite2cases/libasyncns.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libasyncns", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libasyncns_install_and_remove_libasyncns" + }, + { + "name": "oe_test_libasyncns_install_and_remove_libasyncns-devel" + }, + { + "name": "oe_test_libasyncns_install_and_remove_libasyncns-help" + }, + { + "name": "oe_test_libasyncns_install_and_remove_libasyncns-debugsource" + }, + { + "name": "oe_test_libasyncns_install_and_remove_libasyncns-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libatasmart.json b/suite2cases/libatasmart.json new file mode 100644 index 0000000000000000000000000000000000000000..d7eaaf8b247b3e300b4f5fae1a4aa8f3b1135058 --- /dev/null +++ b/suite2cases/libatasmart.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libatasmart", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libatasmart_install_and_remove_libatasmart" + }, + { + "name": "oe_test_libatasmart_install_and_remove_libatasmart-devel" + }, + { + "name": "oe_test_libatasmart_install_and_remove_libatasmart-help" + }, + { + "name": "oe_test_libatasmart_install_and_remove_libatasmart-debugsource" + }, + { + "name": "oe_test_libatasmart_install_and_remove_libatasmart-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libblockdev.json b/suite2cases/libblockdev.json new file mode 100644 index 0000000000000000000000000000000000000000..04544e771945e8103ec70053bf1c9fd933f1e283 --- /dev/null +++ b/suite2cases/libblockdev.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libblockdev", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libblockdev_install_and_remove_libblockdev" + }, + { + "name": "oe_test_libblockdev_install_and_remove_python3-blockdev" + }, + { + "name": "oe_test_libblockdev_install_and_remove_libblockdev-tools" + }, + { + "name": "oe_test_libblockdev_install_and_remove_libblockdev-devel" + }, + { + "name": "oe_test_libblockdev_install_and_remove_libblockdev-debuginfo" + }, + { + "name": "oe_test_libblockdev_install_and_remove_libblockdev-debugsource" + }, + { + "name": "oe_test_libblockdev_install_and_remove_python2-blockdev" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libbpf.json b/suite2cases/libbpf.json new file mode 100644 index 0000000000000000000000000000000000000000..0057a6f00748e9b1d255ef3e144527c1962490a8 --- /dev/null +++ b/suite2cases/libbpf.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libbpf", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libbpf_install_and_remove_libbpf" + }, + { + "name": "oe_test_libbpf_install_and_remove_libbpf-devel" + }, + { + "name": "oe_test_libbpf_install_and_remove_libbpf-static" + }, + { + "name": "oe_test_libbpf_install_and_remove_libbpf-debugsource" + }, + { + "name": "oe_test_libbpf_install_and_remove_libbpf-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libbytesize.json b/suite2cases/libbytesize.json new file mode 100644 index 0000000000000000000000000000000000000000..fadb3c16be523e1a95fdc3f17530bfcb36d91b0a --- /dev/null +++ b/suite2cases/libbytesize.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libbytesize", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libbytesize_install_and_remove_libbytesize" + }, + { + "name": "oe_test_libbytesize_install_and_remove_python2-bytesize" + }, + { + "name": "oe_test_libbytesize_install_and_remove_libbytesize-tools" + }, + { + "name": "oe_test_libbytesize_install_and_remove_libbytesize-devel" + }, + { + "name": "oe_test_libbytesize_install_and_remove_python3-bytesize" + }, + { + "name": "oe_test_libbytesize_install_and_remove_libbytesize-help" + }, + { + "name": "oe_test_libbytesize_install_and_remove_libbytesize-debuginfo" + }, + { + "name": "oe_test_libbytesize_install_and_remove_libbytesize-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libcacard.json b/suite2cases/libcacard.json new file mode 100644 index 0000000000000000000000000000000000000000..bdcad33917055c12f1e791f611f4c643a5baa34f --- /dev/null +++ b/suite2cases/libcacard.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libcacard", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libcacard_install_and_remove_libcacard" + }, + { + "name": "oe_test_libcacard_install_and_remove_libcacard-devel" + }, + { + "name": "oe_test_libcacard_install_and_remove_libcacard-debuginfo" + }, + { + "name": "oe_test_libcacard_install_and_remove_libcacard-debugsource" + }, + { + "name": "oe_test_libcacard_install_and_remove_libcacard-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libcanberra.json b/suite2cases/libcanberra.json index 52694564370f9efc854bb176cd116f37475ddf92..a3d3c656e75d9acfa1735c94d584d2fc39e2292c 100644 --- a/suite2cases/libcanberra.json +++ b/suite2cases/libcanberra.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/libcanberra", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_canberra-system-bootup" @@ -9,6 +12,27 @@ }, { "name": "oe_test_service_canberra-system-shutdown" + }, + { + "name": "oe_test_libcanberra_install_and_remove_libcanberra" + }, + { + "name": "oe_test_libcanberra_install_and_remove_libcanberra-devel" + }, + { + "name": "oe_test_libcanberra_install_and_remove_libcanberra-gtk3" + }, + { + "name": "oe_test_libcanberra_install_and_remove_libcanberra-gtk2" + }, + { + "name": "oe_test_libcanberra_install_and_remove_libcanberra-help" + }, + { + "name": "oe_test_libcanberra_install_and_remove_libcanberra-debuginfo" + }, + { + "name": "oe_test_libcanberra_install_and_remove_libcanberra-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libcap-ng.json b/suite2cases/libcap-ng.json new file mode 100644 index 0000000000000000000000000000000000000000..cd3bd2d929ba8a0fe757820b6e600d65f608e97a --- /dev/null +++ b/suite2cases/libcap-ng.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libcap-ng", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libcap-ng_install_and_remove_libcap-ng" + }, + { + "name": "oe_test_libcap-ng_install_and_remove_libcap-ng-devel" + }, + { + "name": "oe_test_libcap-ng_install_and_remove_libcap-ng-python3" + }, + { + "name": "oe_test_libcap-ng_install_and_remove_libcap-ng-help" + }, + { + "name": "oe_test_libcap-ng_install_and_remove_libcap-ng-debugsource" + }, + { + "name": "oe_test_libcap-ng_install_and_remove_libcap-ng-debuginfo" + }, + { + "name": "oe_test_libcap-ng_install_and_remove_python2-libcap-ng" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libcap.json b/suite2cases/libcap.json index 6a374a5508eb3d9034c014784ac527db8e3c3d9b..7a554212356f24424253c12979cf898f6e783fc4 100644 --- a/suite2cases/libcap.json +++ b/suite2cases/libcap.json @@ -1,5 +1,8 @@ { "path": "${OET_PATH}/testcases/cli-test/libcap", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libcap" @@ -27,6 +30,21 @@ }, { "name": "oe_test_acl_manage_net" + }, + { + "name": "oe_test_libcap_install_and_remove_libcap" + }, + { + "name": "oe_test_libcap_install_and_remove_libcap-devel" + }, + { + "name": "oe_test_libcap_install_and_remove_libcap-debugsource" + }, + { + "name": "oe_test_libcap_install_and_remove_libcap-debuginfo" + }, + { + "name": "oe_test_libcap_install_and_remove_libcap-help" } ] } \ No newline at end of file diff --git a/suite2cases/libcareplus.json b/suite2cases/libcareplus.json index fdd4e3f65d9f1be54126def5333bcccdb0b7ff43..9422424573971435e089825228f692a1de1150dd 100644 --- a/suite2cases/libcareplus.json +++ b/suite2cases/libcareplus.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libcareplus", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_libcare" @@ -8,4 +10,4 @@ "name": "oe_test_socket_libcare" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libcbor.json b/suite2cases/libcbor.json new file mode 100644 index 0000000000000000000000000000000000000000..e484d2e624ef2c749cf6dd5698fd230b9505c821 --- /dev/null +++ b/suite2cases/libcbor.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libcbor", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libcbor_install_and_remove_libcbor" + }, + { + "name": "oe_test_libcbor_install_and_remove_libcbor-devel" + }, + { + "name": "oe_test_libcbor_install_and_remove_libcbor-debugsource" + }, + { + "name": "oe_test_libcbor_install_and_remove_libcbor-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libcgroup.json b/suite2cases/libcgroup.json index 04c5141e37a8f43e34e9388674efa4e6dd9baaae..622bf59a290b6429e06595cc4870e7f507aaeb28 100644 --- a/suite2cases/libcgroup.json +++ b/suite2cases/libcgroup.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/libcgroup", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_cgconfig" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libcomps.json b/suite2cases/libcomps.json new file mode 100644 index 0000000000000000000000000000000000000000..7d6b714b8ef88420be08abeb584bddb89d73ba19 --- /dev/null +++ b/suite2cases/libcomps.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libcomps", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libcomps_install_and_remove_libcomps" + }, + { + "name": "oe_test_libcomps_install_and_remove_libcomps-devel" + }, + { + "name": "oe_test_libcomps_install_and_remove_python2-libcomps" + }, + { + "name": "oe_test_libcomps_install_and_remove_libcomps-help" + }, + { + "name": "oe_test_libcomps_install_and_remove_python3-libcomps" + }, + { + "name": "oe_test_libcomps_install_and_remove_libcomps-debuginfo" + }, + { + "name": "oe_test_libcomps_install_and_remove_libcomps-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libconfig.json b/suite2cases/libconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..0e7ea81e89d93ff3fcb57fe69f8a05a738f0a47a --- /dev/null +++ b/suite2cases/libconfig.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libconfig", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libconfig_install_and_remove_libconfig" + }, + { + "name": "oe_test_libconfig_install_and_remove_libconfig-devel" + }, + { + "name": "oe_test_libconfig_install_and_remove_libconfig-debugsource" + }, + { + "name": "oe_test_libconfig_install_and_remove_libconfig-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libcroco.json b/suite2cases/libcroco.json index a32529f882c19fb6d07d56aafeb43be8d466c201..68c61b4576781fd8057090119945190a0bceb200 100644 --- a/suite2cases/libcroco.json +++ b/suite2cases/libcroco.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/libcroco", - "cases": [ - { - "name": "oe_test_libcroco" - } - ] + "path": "$OET_PATH/testcases/cli-test/libcroco", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libcroco" + } + ] } \ No newline at end of file diff --git a/suite2cases/libdaemon.json b/suite2cases/libdaemon.json new file mode 100644 index 0000000000000000000000000000000000000000..823a5cbc7edffd7951217cdc44404f1e583fd380 --- /dev/null +++ b/suite2cases/libdaemon.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libdaemon", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libdaemon_install_and_remove_libdaemon" + }, + { + "name": "oe_test_libdaemon_install_and_remove_libdaemon-devel" + }, + { + "name": "oe_test_libdaemon_install_and_remove_libdaemon-help" + }, + { + "name": "oe_test_libdaemon_install_and_remove_libdaemon-debugsource" + }, + { + "name": "oe_test_libdaemon_install_and_remove_libdaemon-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libdap.json b/suite2cases/libdap.json index 168a60f6e4d8c674f77cd69ddb53bbacb0754b7e..15938d76b4db1f1400aab6018eb8029f80051805 100644 --- a/suite2cases/libdap.json +++ b/suite2cases/libdap.json @@ -1,14 +1,16 @@ { "path": "${OET_PATH}/testcases/cli-test/libdap", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libdap_getdap" }, - { + { "name": "oe_test_libdap_getdap4" }, - { + { "name": "oe_test_libdap_devel_dap_config" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libdatrie.json b/suite2cases/libdatrie.json new file mode 100644 index 0000000000000000000000000000000000000000..57ff166dcb35beec2b3331d77db3d21a23804033 --- /dev/null +++ b/suite2cases/libdatrie.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libdatrie", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libdatrie_install_and_remove_libdatrie" + }, + { + "name": "oe_test_libdatrie_install_and_remove_libdatrie-devel" + }, + { + "name": "oe_test_libdatrie_install_and_remove_libdatrie-debugsource" + }, + { + "name": "oe_test_libdatrie_install_and_remove_libdatrie-help" + }, + { + "name": "oe_test_libdatrie_install_and_remove_libdatrie-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libdb.json b/suite2cases/libdb.json index 9d8371a25ea9f4ab40a241956bad46277631b03b..41a7cd64d396ec6acadc3cd0a78fedab25d78e74 100644 --- a/suite2cases/libdb.json +++ b/suite2cases/libdb.json @@ -1,8 +1,10 @@ { "path": "${OET_PATH}/testcases/cli-test/libdb", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libdb" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libdbi.json b/suite2cases/libdbi.json new file mode 100644 index 0000000000000000000000000000000000000000..18173ad58cbac6d0a05a4a3543e7e0c1a3691d22 --- /dev/null +++ b/suite2cases/libdbi.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libdbi", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libdbi_install_and_remove_libdbi" + }, + { + "name": "oe_test_libdbi_install_and_remove_libdbi-devel" + }, + { + "name": "oe_test_libdbi_install_and_remove_libdbi-help" + }, + { + "name": "oe_test_libdbi_install_and_remove_libdbi-debuginfo" + }, + { + "name": "oe_test_libdbi_install_and_remove_libdbi-debugsource" + }, + { + "name": "oe_test_libdbi_install_and_remove_libdbi-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libdbusmenu.json b/suite2cases/libdbusmenu.json new file mode 100644 index 0000000000000000000000000000000000000000..bf8110cb3483f5aaf941de8e3f24d15c14921974 --- /dev/null +++ b/suite2cases/libdbusmenu.json @@ -0,0 +1,41 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libdbusmenu", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu" + }, + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk2" + }, + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk3" + }, + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk2-devel" + }, + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu-jsonloader-devel" + }, + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu-help" + }, + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu-devel" + }, + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk3-devel" + }, + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu-jsonloader" + }, + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu-debuginfo" + }, + { + "name": "oe_test_libdbusmenu_install_and_remove_libdbusmenu-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libdmx.json b/suite2cases/libdmx.json new file mode 100644 index 0000000000000000000000000000000000000000..8b084cd5ea1fb4eb7a5150e03d2a74a00d9d8d1a --- /dev/null +++ b/suite2cases/libdmx.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libdmx", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libdmx_install_and_remove_libdmx" + }, + { + "name": "oe_test_libdmx_install_and_remove_libdmx-devel" + }, + { + "name": "oe_test_libdmx_install_and_remove_libdmx-debugsource" + }, + { + "name": "oe_test_libdmx_install_and_remove_libdmx-help" + }, + { + "name": "oe_test_libdmx_install_and_remove_libdmx-debuginfo" + }, + { + "name": "oe_test_libdmx_install_and_remove_libdmx-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libdnf.json b/suite2cases/libdnf.json new file mode 100644 index 0000000000000000000000000000000000000000..8d5b17d6a4fdebff9a0e1142f577493b37c2a555 --- /dev/null +++ b/suite2cases/libdnf.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libdnf", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libdnf_install_and_remove_libdnf" + }, + { + "name": "oe_test_libdnf_install_and_remove_python2-hawkey" + }, + { + "name": "oe_test_libdnf_install_and_remove_libdnf-devel" + }, + { + "name": "oe_test_libdnf_install_and_remove_python2-libdnf" + }, + { + "name": "oe_test_libdnf_install_and_remove_python3-hawkey" + }, + { + "name": "oe_test_libdnf_install_and_remove_python3-libdnf" + }, + { + "name": "oe_test_libdnf_install_and_remove_libdnf-debuginfo" + }, + { + "name": "oe_test_libdnf_install_and_remove_libdnf-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libdrm.json b/suite2cases/libdrm.json new file mode 100644 index 0000000000000000000000000000000000000000..69c7d789c0e23348a87e16db9afe4fc4fa59e265 --- /dev/null +++ b/suite2cases/libdrm.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libdrm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libdrm_install_and_remove_libdrm" + }, + { + "name": "oe_test_libdrm_install_and_remove_libdrm-devel" + }, + { + "name": "oe_test_libdrm_install_and_remove_drm-utils" + }, + { + "name": "oe_test_libdrm_install_and_remove_libdrm-debuginfo" + }, + { + "name": "oe_test_libdrm_install_and_remove_libdrm-debugsource" + }, + { + "name": "oe_test_libdrm_install_and_remove_libdrm-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libdwarf.json b/suite2cases/libdwarf.json index dd66ad53d24be278698c456cbe878291e891426d..6bc1aba445a7a7620e51fd0a3d389a9440737258 100644 --- a/suite2cases/libdwarf.json +++ b/suite2cases/libdwarf.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libdwarf", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libdwarf" diff --git a/suite2cases/libedit.json b/suite2cases/libedit.json new file mode 100644 index 0000000000000000000000000000000000000000..c3bd9b340818b7588b2c4ad47083dbe8f1aad8bf --- /dev/null +++ b/suite2cases/libedit.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libedit", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libedit_install_and_remove_libedit" + }, + { + "name": "oe_test_libedit_install_and_remove_libedit-devel" + }, + { + "name": "oe_test_libedit_install_and_remove_libedit-help" + }, + { + "name": "oe_test_libedit_install_and_remove_libedit-debuginfo" + }, + { + "name": "oe_test_libedit_install_and_remove_libedit-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libell.json b/suite2cases/libell.json new file mode 100644 index 0000000000000000000000000000000000000000..935f94d932c1ba58f784770aeea02fe081eb88cd --- /dev/null +++ b/suite2cases/libell.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libell", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libell_install_and_remove_libell" + }, + { + "name": "oe_test_libell_install_and_remove_libell-devel" + }, + { + "name": "oe_test_libell_install_and_remove_libell-debugsource" + }, + { + "name": "oe_test_libell_install_and_remove_libell-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libepoxy.json b/suite2cases/libepoxy.json new file mode 100644 index 0000000000000000000000000000000000000000..3673d299dea5bc181bf52ce637ab9443cfcbc687 --- /dev/null +++ b/suite2cases/libepoxy.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libepoxy", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libepoxy_install_and_remove_libepoxy" + }, + { + "name": "oe_test_libepoxy_install_and_remove_libepoxy-debuginfo" + }, + { + "name": "oe_test_libepoxy_install_and_remove_libepoxy-devel" + }, + { + "name": "oe_test_libepoxy_install_and_remove_libepoxy-help" + }, + { + "name": "oe_test_libepoxy_install_and_remove_libepoxy-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libesmtp.json b/suite2cases/libesmtp.json index 1bdc8c8e45999562354e6890e5ac6cdb3c601743..75e863e7f515c71f0b0c011f6fb4fbb9a5387227 100644 --- a/suite2cases/libesmtp.json +++ b/suite2cases/libesmtp.json @@ -1,8 +1,10 @@ { "path": "${OET_PATH}/testcases/cli-test/libesmtp", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libesmtp" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libestr.json b/suite2cases/libestr.json new file mode 100644 index 0000000000000000000000000000000000000000..67a1a566026f9c0773428bbbbdd11662badb2e02 --- /dev/null +++ b/suite2cases/libestr.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libestr", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libestr_install_and_remove_libestr" + }, + { + "name": "oe_test_libestr_install_and_remove_libestr-devel" + }, + { + "name": "oe_test_libestr_install_and_remove_libestr-debugsource" + }, + { + "name": "oe_test_libestr_install_and_remove_libestr-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libev.json b/suite2cases/libev.json new file mode 100644 index 0000000000000000000000000000000000000000..321648582f3532a93808ef898cc6e4fc40513f52 --- /dev/null +++ b/suite2cases/libev.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libev", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libev_install_and_remove_libev" + }, + { + "name": "oe_test_libev_install_and_remove_libev-devel" + }, + { + "name": "oe_test_libev_install_and_remove_libev-help" + }, + { + "name": "oe_test_libev_install_and_remove_libev-libevent-devel" + }, + { + "name": "oe_test_libev_install_and_remove_libev-debuginfo" + }, + { + "name": "oe_test_libev_install_and_remove_libev-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libevdev.json b/suite2cases/libevdev.json new file mode 100644 index 0000000000000000000000000000000000000000..c7c1e83ccd68a521f90f982f7adfc248694826d1 --- /dev/null +++ b/suite2cases/libevdev.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libevdev", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libevdev_install_and_remove_libevdev" + }, + { + "name": "oe_test_libevdev_install_and_remove_libevdev-devel" + }, + { + "name": "oe_test_libevdev_install_and_remove_libevdev-utils" + }, + { + "name": "oe_test_libevdev_install_and_remove_libevdev-help" + }, + { + "name": "oe_test_libevdev_install_and_remove_libevdev-debugsource" + }, + { + "name": "oe_test_libevdev_install_and_remove_libevdev-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libevent.json b/suite2cases/libevent.json new file mode 100644 index 0000000000000000000000000000000000000000..02055ba8e3377528fe2689fac193ad5f66616be5 --- /dev/null +++ b/suite2cases/libevent.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libevent", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libevent_install_and_remove_libevent" + }, + { + "name": "oe_test_libevent_install_and_remove_libevent-devel" + }, + { + "name": "oe_test_libevent_install_and_remove_libevent-debuginfo" + }, + { + "name": "oe_test_libevent_install_and_remove_libevent-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libexif.json b/suite2cases/libexif.json index fc368e4fd7d2e8735dd4ccb894c23219896d588c..8494ae31c1d47037d2edd6906a59543f3ed4d42e 100644 --- a/suite2cases/libexif.json +++ b/suite2cases/libexif.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/libexif", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libexif" + }, + { + "name": "oe_test_libexif_install_and_remove_libexif" + }, + { + "name": "oe_test_libexif_install_and_remove_libexif-devel" + }, + { + "name": "oe_test_libexif_install_and_remove_libexif-debuginfo" + }, + { + "name": "oe_test_libexif_install_and_remove_libexif-debugsource" + }, + { + "name": "oe_test_libexif_install_and_remove_libexif-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libfabric.json b/suite2cases/libfabric.json index 478dd19507f1d76010b6ccfbb97e609428b492f9..4b7c5746dc341608ae35a3e6aeea7dcfb458d810 100644 --- a/suite2cases/libfabric.json +++ b/suite2cases/libfabric.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libfabric", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libfabric_fi_info_01" diff --git a/suite2cases/libfastjson.json b/suite2cases/libfastjson.json new file mode 100644 index 0000000000000000000000000000000000000000..4c48db97fd5941eace4687d596b10ba983f646d3 --- /dev/null +++ b/suite2cases/libfastjson.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libfastjson", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libfastjson_install_and_remove_libfastjson" + }, + { + "name": "oe_test_libfastjson_install_and_remove_libfastjson-devel" + }, + { + "name": "oe_test_libfastjson_install_and_remove_libfastjson-debugsource" + }, + { + "name": "oe_test_libfastjson_install_and_remove_libfastjson-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libffi.json b/suite2cases/libffi.json new file mode 100644 index 0000000000000000000000000000000000000000..c2c56e1225cdb63e9ee8bc67e51b27ddb2d6cb63 --- /dev/null +++ b/suite2cases/libffi.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libffi", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libffi_install_and_remove_libffi" + }, + { + "name": "oe_test_libffi_install_and_remove_libffi-help" + }, + { + "name": "oe_test_libffi_install_and_remove_libffi-devel" + }, + { + "name": "oe_test_libffi_install_and_remove_libffi-debuginfo" + }, + { + "name": "oe_test_libffi_install_and_remove_libffi-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libfontenc.json b/suite2cases/libfontenc.json new file mode 100644 index 0000000000000000000000000000000000000000..520586de49a56d6132e2d58c1d102066fd9060ce --- /dev/null +++ b/suite2cases/libfontenc.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libfontenc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libfontenc_install_and_remove_libfontenc" + }, + { + "name": "oe_test_libfontenc_install_and_remove_libfontenc-devel" + }, + { + "name": "oe_test_libfontenc_install_and_remove_libfontenc-help" + }, + { + "name": "oe_test_libfontenc_install_and_remove_libfontenc-debugsource" + }, + { + "name": "oe_test_libfontenc_install_and_remove_libfontenc-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libgcrypt.json b/suite2cases/libgcrypt.json new file mode 100644 index 0000000000000000000000000000000000000000..5d0ad2b4ffbfa4532aa59c60b00b73bcf4228425 --- /dev/null +++ b/suite2cases/libgcrypt.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libgcrypt", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libgcrypt_install_and_remove_libgcrypt" + }, + { + "name": "oe_test_libgcrypt_install_and_remove_libgcrypt-devel" + }, + { + "name": "oe_test_libgcrypt_install_and_remove_libgcrypt-debuginfo" + }, + { + "name": "oe_test_libgcrypt_install_and_remove_libgcrypt-help" + }, + { + "name": "oe_test_libgcrypt_install_and_remove_libgcrypt-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libgeotiff.json b/suite2cases/libgeotiff.json index d82bfe74637abcd0c870f2bcfe5ca25f376db992..de7fea0d2ebe055cf11280e59b4d74a931024552 100644 --- a/suite2cases/libgeotiff.json +++ b/suite2cases/libgeotiff.json @@ -1,8 +1,10 @@ { "path": "${OET_PATH}/testcases/cli-test/libgeotiff", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libgeotiff" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libgit2-glib.json b/suite2cases/libgit2-glib.json new file mode 100644 index 0000000000000000000000000000000000000000..662631a184241ec8d9b16a36085c4d7c67153871 --- /dev/null +++ b/suite2cases/libgit2-glib.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libgit2-glib", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libgit2-glib_install_and_remove_libgit2-glib" + }, + { + "name": "oe_test_libgit2-glib_install_and_remove_libgit2-glib-devel" + }, + { + "name": "oe_test_libgit2-glib_install_and_remove_libgit2-glib-help" + }, + { + "name": "oe_test_libgit2-glib_install_and_remove_libgit2-glib-debugsource" + }, + { + "name": "oe_test_libgit2-glib_install_and_remove_libgit2-glib-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libgit2.json b/suite2cases/libgit2.json index e2344fc1335dd7df9a412dd24e711dd34335a90f..b513b5789feef6f5a8eabb5e430fa5aae71ce06f 100644 --- a/suite2cases/libgit2.json +++ b/suite2cases/libgit2.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libgit2", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libgit2" diff --git a/suite2cases/libglvnd.json b/suite2cases/libglvnd.json new file mode 100644 index 0000000000000000000000000000000000000000..ba59b9d58af2932be8cdb6156e675b016c54cca9 --- /dev/null +++ b/suite2cases/libglvnd.json @@ -0,0 +1,35 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libglvnd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libglvnd_install_and_remove_libglvnd" + }, + { + "name": "oe_test_libglvnd_install_and_remove_libglvnd-gles" + }, + { + "name": "oe_test_libglvnd_install_and_remove_libglvnd-devel" + }, + { + "name": "oe_test_libglvnd_install_and_remove_libglvnd-opengl" + }, + { + "name": "oe_test_libglvnd_install_and_remove_libglvnd-glx" + }, + { + "name": "oe_test_libglvnd_install_and_remove_libglvnd-core-devel" + }, + { + "name": "oe_test_libglvnd_install_and_remove_libglvnd-egl" + }, + { + "name": "oe_test_libglvnd_install_and_remove_libglvnd-debugsource" + }, + { + "name": "oe_test_libglvnd_install_and_remove_libglvnd-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libgnomekbd.json b/suite2cases/libgnomekbd.json new file mode 100644 index 0000000000000000000000000000000000000000..2084329141845cc6abb3b67766094adca2565429 --- /dev/null +++ b/suite2cases/libgnomekbd.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libgnomekbd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libgnomekbd_install_and_remove_libgnomekbd" + }, + { + "name": "oe_test_libgnomekbd_install_and_remove_libgnomekbd-devel" + }, + { + "name": "oe_test_libgnomekbd_install_and_remove_libgnomekbd-debugsource" + }, + { + "name": "oe_test_libgnomekbd_install_and_remove_libgnomekbd-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libgpg-error.json b/suite2cases/libgpg-error.json index b82c139d1868b79fc340b81e16922ef1e108ebb8..6dd24ca231a177ae99407e04bbef16b17285f8ed 100644 --- a/suite2cases/libgpg-error.json +++ b/suite2cases/libgpg-error.json @@ -1,9 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/libgpg-error", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libgpg-error" + }, + { + "name": "oe_test_libgpg-error_install_and_remove_libgpg-error" + }, + { + "name": "oe_test_libgpg-error_install_and_remove_libgpg-error-devel" + }, + { + "name": "oe_test_libgpg-error_install_and_remove_libgpg-error-help" + }, + { + "name": "oe_test_libgpg-error_install_and_remove_libgpg-error-debuginfo" + }, + { + "name": "oe_test_libgpg-error_install_and_remove_libgpg-error-debugsource" } - ] } \ No newline at end of file diff --git a/suite2cases/libgtop2.json b/suite2cases/libgtop2.json new file mode 100644 index 0000000000000000000000000000000000000000..017e743afebb3dd45c866a1d20656a8cbac9fea7 --- /dev/null +++ b/suite2cases/libgtop2.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libgtop2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libgtop2_install_and_remove_libgtop2" + }, + { + "name": "oe_test_libgtop2_install_and_remove_libgtop2-devel" + }, + { + "name": "oe_test_libgtop2_install_and_remove_libgtop2-help" + }, + { + "name": "oe_test_libgtop2_install_and_remove_libgtop2-debugsource" + }, + { + "name": "oe_test_libgtop2_install_and_remove_libgtop2-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libgudev.json b/suite2cases/libgudev.json new file mode 100644 index 0000000000000000000000000000000000000000..e09e731d500fe9e58b51e46239da7e8d17a58947 --- /dev/null +++ b/suite2cases/libgudev.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libgudev", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libgudev_install_and_remove_libgudev" + }, + { + "name": "oe_test_libgudev_install_and_remove_libgudev-devel" + }, + { + "name": "oe_test_libgudev_install_and_remove_libgudev-debuginfo" + }, + { + "name": "oe_test_libgudev_install_and_remove_libgudev-help" + }, + { + "name": "oe_test_libgudev_install_and_remove_libgudev-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libguestfs.json b/suite2cases/libguestfs.json index 83fe2117188427c112a9115e075d00b1ad3b1dc0..6ccc0b7f1c9fe4442660f907f7316b40f2aff589 100644 --- a/suite2cases/libguestfs.json +++ b/suite2cases/libguestfs.json @@ -1,162 +1,164 @@ { - "path": "$OET_PATH/testcases/cli-test/libguestfs", - "machine type": "physical", - "cases": [ - { - "name": "oe_test_libguestfish_guestunmount" - }, - { - "name": "oe_test_libguestfs_guestfish_01" - }, - { - "name": "oe_test_libguestfs_guestfish_02" - }, - { - "name": "oe_test_libguestfs_guestfish_03" - }, - { - "name": "oe_test_libguestfs_guestmount_01" - }, - { - "name": "oe_test_libguestfs_guestmount_02" - }, - { - "name": "oe_test_libguestfs_guestmount_03" - }, - { - "name": "oe_test_libguestfs_libguestfs-boot-analysis" - }, - { - "name": "oe_test_libguestfs_libguestfs-boot-benchmark" - }, - { - "name": "oe_test_libguestfs_libguestfs-test-tool" - }, - { - "name": "oe_test_libguestfs_virt-alignment-scan" - }, - { - "name": "oe_test_libguestfs_virt-builder" - }, - { - "name": "oe_test_libguestfs_virt-cat" - }, - { - "name": "oe_test_libguestfs_virt-copy-in" - }, - { - "name": "oe_test_libguestfs_virt-copy-out" - }, - { - "name": "oe_test_libguestfs_virt-customize" - }, - { - "name": "oe_test_libguestfs_virt-df_01" - }, - { - "name": "oe_test_libguestfs_virt-df_02" - }, - { - "name": "oe_test_libguestfs_virt-dib" - }, - { - "name": "oe_test_libguestfs_virt-diff_01" - }, - { - "name": "oe_test_libguestfs_virt-diff_02" - }, - { - "name": "oe_test_libguestfs_virt-diff_03" - }, - { - "name": "oe_test_libguestfs_virt-filesystems_01" - }, - { - "name": "oe_test_libguestfs_virt-filesystems_02" - }, - { - "name": "oe_test_libguestfs_virt-filesystems_03" - }, - { - "name": "oe_test_libguestfs_virt-format" - }, - { - "name": "oe_test_libguestfs_virt-get-kernel_01" - }, - { - "name": "oe_test_libguestfs_virt-get-kernel_02" - }, - { - "name": "oe_test_libguestfs_virt-index-validate" - }, - { - "name": "oe_test_libguestfs_virt-inspector_01" - }, - { - "name": "oe_test_libguestfs_virt-inspector_02" - }, - { - "name": "oe_test_libguestfs_virt-log" - }, - { - "name": "oe_test_libguestfs_virt-ls_01" - }, - { - "name": "oe_test_libguestfs_virt-ls_02" - }, - { - "name": "oe_test_libguestfs_virt-make-fs" - }, - { - "name": "oe_test_libguestfs_virt-p2v-make-disk" - }, - { - "name": "oe_test_libguestfs_virt-p2v-make-kickstart" - }, - { - "name": "oe_test_libguestfs_virt-p2v-make-kiwi" - }, - { - "name": "oe_test_libguestfs_virt-resize_01" - }, - { - "name": "oe_test_libguestfs_virt-resize_02" - }, - { - "name": "oe_test_libguestfs_virt-resize_03" - }, - { - "name": "oe_test_libguestfs_virt-sparsify" - }, - { - "name": "oe_test_libguestfs_virt-sysprep_01" - }, - { - "name": "oe_test_libguestfs_virt-sysprep_02" - }, - { - "name": "oe_test_libguestfs_virt-sysprep_03" - }, - { - "name": "oe_test_libguestfs_virt-sysprep_04" - }, - { - "name": "oe_test_libguestfs_virt-sysprep_05" - }, - { - "name": "oe_test_libguestfs_virt-tar-in" - }, - { - "name": "oe_test_libguestfs_virt-tar-out" - }, - { - "name": "oe_test_libguestfs_virt-v2v" - }, - { - "name": "oe_test_libguestfs_virt-v2v-copy-to-local" - }, - { - "name": "oe_test_libguestfs_virt-win-reg" - } - ] + "path": "$OET_PATH/testcases/cli-test/libguestfs", + "machine type": "physical", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libguestfish_guestunmount" + }, + { + "name": "oe_test_libguestfs_guestfish_01" + }, + { + "name": "oe_test_libguestfs_guestfish_02" + }, + { + "name": "oe_test_libguestfs_guestfish_03" + }, + { + "name": "oe_test_libguestfs_guestmount_01" + }, + { + "name": "oe_test_libguestfs_guestmount_02" + }, + { + "name": "oe_test_libguestfs_guestmount_03" + }, + { + "name": "oe_test_libguestfs_libguestfs-boot-analysis" + }, + { + "name": "oe_test_libguestfs_libguestfs-boot-benchmark" + }, + { + "name": "oe_test_libguestfs_libguestfs-test-tool" + }, + { + "name": "oe_test_libguestfs_virt-alignment-scan" + }, + { + "name": "oe_test_libguestfs_virt-builder" + }, + { + "name": "oe_test_libguestfs_virt-cat" + }, + { + "name": "oe_test_libguestfs_virt-copy-in" + }, + { + "name": "oe_test_libguestfs_virt-copy-out" + }, + { + "name": "oe_test_libguestfs_virt-customize" + }, + { + "name": "oe_test_libguestfs_virt-df_01" + }, + { + "name": "oe_test_libguestfs_virt-df_02" + }, + { + "name": "oe_test_libguestfs_virt-dib" + }, + { + "name": "oe_test_libguestfs_virt-diff_01" + }, + { + "name": "oe_test_libguestfs_virt-diff_02" + }, + { + "name": "oe_test_libguestfs_virt-diff_03" + }, + { + "name": "oe_test_libguestfs_virt-filesystems_01" + }, + { + "name": "oe_test_libguestfs_virt-filesystems_02" + }, + { + "name": "oe_test_libguestfs_virt-filesystems_03" + }, + { + "name": "oe_test_libguestfs_virt-format" + }, + { + "name": "oe_test_libguestfs_virt-get-kernel_01" + }, + { + "name": "oe_test_libguestfs_virt-get-kernel_02" + }, + { + "name": "oe_test_libguestfs_virt-index-validate" + }, + { + "name": "oe_test_libguestfs_virt-inspector_01" + }, + { + "name": "oe_test_libguestfs_virt-inspector_02" + }, + { + "name": "oe_test_libguestfs_virt-log" + }, + { + "name": "oe_test_libguestfs_virt-ls_01" + }, + { + "name": "oe_test_libguestfs_virt-ls_02" + }, + { + "name": "oe_test_libguestfs_virt-make-fs" + }, + { + "name": "oe_test_libguestfs_virt-p2v-make-disk" + }, + { + "name": "oe_test_libguestfs_virt-p2v-make-kickstart" + }, + { + "name": "oe_test_libguestfs_virt-p2v-make-kiwi" + }, + { + "name": "oe_test_libguestfs_virt-resize_01" + }, + { + "name": "oe_test_libguestfs_virt-resize_02" + }, + { + "name": "oe_test_libguestfs_virt-resize_03" + }, + { + "name": "oe_test_libguestfs_virt-sparsify" + }, + { + "name": "oe_test_libguestfs_virt-sysprep_01" + }, + { + "name": "oe_test_libguestfs_virt-sysprep_02" + }, + { + "name": "oe_test_libguestfs_virt-sysprep_03" + }, + { + "name": "oe_test_libguestfs_virt-sysprep_04" + }, + { + "name": "oe_test_libguestfs_virt-sysprep_05" + }, + { + "name": "oe_test_libguestfs_virt-tar-in" + }, + { + "name": "oe_test_libguestfs_virt-tar-out" + }, + { + "name": "oe_test_libguestfs_virt-v2v" + }, + { + "name": "oe_test_libguestfs_virt-v2v-copy-to-local" + }, + { + "name": "oe_test_libguestfs_virt-win-reg" + } + ] } \ No newline at end of file diff --git a/suite2cases/libgusb.json b/suite2cases/libgusb.json new file mode 100644 index 0000000000000000000000000000000000000000..a0bdfba8d549573993ecc9ac962f2a6b86580852 --- /dev/null +++ b/suite2cases/libgusb.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libgusb", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libgusb_install_and_remove_libgusb" + }, + { + "name": "oe_test_libgusb_install_and_remove_libgusb-devel" + }, + { + "name": "oe_test_libgusb_install_and_remove_libgusb-help" + }, + { + "name": "oe_test_libgusb_install_and_remove_libgusb-debuginfo" + }, + { + "name": "oe_test_libgusb_install_and_remove_libgusb-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libhangul.json b/suite2cases/libhangul.json index ae8db8def7ef5429827fe717f3b7c82a424c10b0..c776724890dc17fdd1a723531f52758c50dce89f 100644 --- a/suite2cases/libhangul.json +++ b/suite2cases/libhangul.json @@ -1,9 +1,10 @@ { "path": "${OET_PATH}/testcases/cli-test/libhangul/", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libhangul_hangul" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/libical.json b/suite2cases/libical.json new file mode 100644 index 0000000000000000000000000000000000000000..087a491103bf594c780d0cbfa12c01fdbc27ccf9 --- /dev/null +++ b/suite2cases/libical.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libical", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libical_install_and_remove_libical" + }, + { + "name": "oe_test_libical_install_and_remove_libical-devel" + }, + { + "name": "oe_test_libical_install_and_remove_libical-debuginfo" + }, + { + "name": "oe_test_libical_install_and_remove_libical-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libidn.json b/suite2cases/libidn.json new file mode 100644 index 0000000000000000000000000000000000000000..9d65f6be7834ce7f40fd64844c8260e6271449d1 --- /dev/null +++ b/suite2cases/libidn.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libidn", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libidn_install_and_remove_libidn" + }, + { + "name": "oe_test_libidn_install_and_remove_libidn-devel" + }, + { + "name": "oe_test_libidn_install_and_remove_libidn-java" + }, + { + "name": "oe_test_libidn_install_and_remove_libidn-javadoc" + }, + { + "name": "oe_test_libidn_install_and_remove_libidn-help" + }, + { + "name": "oe_test_libidn_install_and_remove_libidn-debugsource" + }, + { + "name": "oe_test_libidn_install_and_remove_libidn-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libidn2.json b/suite2cases/libidn2.json new file mode 100644 index 0000000000000000000000000000000000000000..13083db595d8424d71c1d3454c1f13d0d1a3546e --- /dev/null +++ b/suite2cases/libidn2.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libidn2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libidn2_install_and_remove_libidn2" + }, + { + "name": "oe_test_libidn2_install_and_remove_libidn2-devel" + }, + { + "name": "oe_test_libidn2_install_and_remove_libidn2-help" + }, + { + "name": "oe_test_libidn2_install_and_remove_libidn2-debuginfo" + }, + { + "name": "oe_test_libidn2_install_and_remove_libidn2-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libiec61883.json b/suite2cases/libiec61883.json index 84da23f859bd2feaffce626a6786796ca205255e..5ad2447fdc221105593d780429c4814cd2ae0f43 100644 --- a/suite2cases/libiec61883.json +++ b/suite2cases/libiec61883.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/libiec61883", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libiec61883_plugctl" - }, + }, { "name": "oe_test_libiec61883_plugreport" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libijs.json b/suite2cases/libijs.json new file mode 100644 index 0000000000000000000000000000000000000000..9c9a72b4392a9e703b7331dff888e8b25f886fd0 --- /dev/null +++ b/suite2cases/libijs.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libijs", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libijs_install_and_remove_libijs" + }, + { + "name": "oe_test_libijs_install_and_remove_libijs-devel" + }, + { + "name": "oe_test_libijs_install_and_remove_libijs-debugsource" + }, + { + "name": "oe_test_libijs_install_and_remove_libijs-help" + }, + { + "name": "oe_test_libijs_install_and_remove_libijs-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libimobiledevice.json b/suite2cases/libimobiledevice.json new file mode 100644 index 0000000000000000000000000000000000000000..7a65350016d7705d2f6a6683dbeae5f2260c3b49 --- /dev/null +++ b/suite2cases/libimobiledevice.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libimobiledevice", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libimobiledevice_install_and_remove_libimobiledevice" + }, + { + "name": "oe_test_libimobiledevice_install_and_remove_libimobiledevice-devel" + }, + { + "name": "oe_test_libimobiledevice_install_and_remove_libimobiledevice-help" + }, + { + "name": "oe_test_libimobiledevice_install_and_remove_libimobiledevice-debugsource" + }, + { + "name": "oe_test_libimobiledevice_install_and_remove_libimobiledevice-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libindicator.json b/suite2cases/libindicator.json new file mode 100644 index 0000000000000000000000000000000000000000..98a6afc5e322a7ed82122e6270b528d83ab82cfb --- /dev/null +++ b/suite2cases/libindicator.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libindicator", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libindicator_install_and_remove_libindicator" + }, + { + "name": "oe_test_libindicator_install_and_remove_libindicator-devel" + }, + { + "name": "oe_test_libindicator_install_and_remove_libindicator-gtk3" + }, + { + "name": "oe_test_libindicator_install_and_remove_libindicator-gtk3-devel" + }, + { + "name": "oe_test_libindicator_install_and_remove_libindicator-debugsource" + }, + { + "name": "oe_test_libindicator_install_and_remove_libindicator-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libinput.json b/suite2cases/libinput.json new file mode 100644 index 0000000000000000000000000000000000000000..b72b5df680907153441df0dd29a97ffc1c57653d --- /dev/null +++ b/suite2cases/libinput.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libinput", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libinput_install_and_remove_libinput" + }, + { + "name": "oe_test_libinput_install_and_remove_libinput-utils" + }, + { + "name": "oe_test_libinput_install_and_remove_libinput-help" + }, + { + "name": "oe_test_libinput_install_and_remove_libinput-devel" + }, + { + "name": "oe_test_libinput_install_and_remove_libinput-debuginfo" + }, + { + "name": "oe_test_libinput_install_and_remove_libinput-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libiodbc.json b/suite2cases/libiodbc.json index 669efd174cd9032e61a9b96a6470668f0e4af47b..e012d6d231e2bf56d636eb359681c9c563a2c5f6 100644 --- a/suite2cases/libiodbc.json +++ b/suite2cases/libiodbc.json @@ -1,8 +1,10 @@ { "path": "${OET_PATH}/testcases/cli-test/libiodbc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libiodbc_iodbctest" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libipt.json b/suite2cases/libipt.json new file mode 100644 index 0000000000000000000000000000000000000000..069cce51d5fdf81881fead888157aed89ad760de --- /dev/null +++ b/suite2cases/libipt.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libipt", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libipt_install_and_remove_libipt" + }, + { + "name": "oe_test_libipt_install_and_remove_libipt-devel" + }, + { + "name": "oe_test_libipt_install_and_remove_libipt-debuginfo" + }, + { + "name": "oe_test_libipt_install_and_remove_libipt-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libiptcdata.json b/suite2cases/libiptcdata.json new file mode 100644 index 0000000000000000000000000000000000000000..090a3618cbd613ddf23f155802ec2a4ab4a01382 --- /dev/null +++ b/suite2cases/libiptcdata.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libiptcdata", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libiptcdata_install_and_remove_libiptcdata" + }, + { + "name": "oe_test_libiptcdata_install_and_remove_libiptcdata-devel" + }, + { + "name": "oe_test_libiptcdata_install_and_remove_python3-libiptcdata" + }, + { + "name": "oe_test_libiptcdata_install_and_remove_libiptcdata-debuginfo" + }, + { + "name": "oe_test_libiptcdata_install_and_remove_libiptcdata-debugsource" + }, + { + "name": "oe_test_libiptcdata_install_and_remove_python2-libiptcdata" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libjcat.json b/suite2cases/libjcat.json new file mode 100644 index 0000000000000000000000000000000000000000..e49f59f641c51f52b78ffa76c1c0cf9ee0ef334f --- /dev/null +++ b/suite2cases/libjcat.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libjcat", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libjcat_install_and_remove_libjcat" + }, + { + "name": "oe_test_libjcat_install_and_remove_libjcat-devel" + }, + { + "name": "oe_test_libjcat_install_and_remove_libjcat-tests" + }, + { + "name": "oe_test_libjcat_install_and_remove_libjcat-debuginfo" + }, + { + "name": "oe_test_libjcat_install_and_remove_libjcat-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libjpeg-turbo.json b/suite2cases/libjpeg-turbo.json new file mode 100644 index 0000000000000000000000000000000000000000..44059dcfbe56a5be269a2c1238a6b329cecfc73a --- /dev/null +++ b/suite2cases/libjpeg-turbo.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libjpeg-turbo", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo" + }, + { + "name": "oe_test_libjpeg-turbo_install_and_remove_turbojpeg-devel" + }, + { + "name": "oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-devel" + }, + { + "name": "oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-utils" + }, + { + "name": "oe_test_libjpeg-turbo_install_and_remove_turbojpeg" + }, + { + "name": "oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-help" + }, + { + "name": "oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-debuginfo" + }, + { + "name": "oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libkcapi.json b/suite2cases/libkcapi.json new file mode 100644 index 0000000000000000000000000000000000000000..9e63399769a53e59fae726f3765b3df70ef49eb2 --- /dev/null +++ b/suite2cases/libkcapi.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libkcapi", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libkcapi_install_and_remove_libkcapi" + }, + { + "name": "oe_test_libkcapi_install_and_remove_libkcapi-devel" + }, + { + "name": "oe_test_libkcapi_install_and_remove_libkcapi-tests" + }, + { + "name": "oe_test_libkcapi_install_and_remove_libkcapi-help" + }, + { + "name": "oe_test_libkcapi_install_and_remove_libkcapi-debuginfo" + }, + { + "name": "oe_test_libkcapi_install_and_remove_libkcapi-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libksba.json b/suite2cases/libksba.json index b68ed1dfc8ffb6479d7a94ebb643bdf6d6f05006..a3f714bcafc527680890953e0ed4fd97756b10b2 100644 --- a/suite2cases/libksba.json +++ b/suite2cases/libksba.json @@ -1,8 +1,26 @@ { - "path": "$OET_PATH/testcases/cli-test/libksba", - "cases": [ - { - "name": "oe_test_libksba" - } - ] + "path": "$OET_PATH/testcases/cli-test/libksba", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libksba" + }, + { + "name": "oe_test_libksba_install_and_remove_libksba" + }, + { + "name": "oe_test_libksba_install_and_remove_libksba-devel" + }, + { + "name": "oe_test_libksba_install_and_remove_libksba-help" + }, + { + "name": "oe_test_libksba_install_and_remove_libksba-debugsource" + }, + { + "name": "oe_test_libksba_install_and_remove_libksba-debuginfo" + } + ] } \ No newline at end of file diff --git a/suite2cases/libldb.json b/suite2cases/libldb.json index 90833ebd4f7c46b8c58945418033f0f1dcdea21e..7ad5da2546eb22e1e20be013257de6665e6c04f5 100644 --- a/suite2cases/libldb.json +++ b/suite2cases/libldb.json @@ -1,8 +1,41 @@ { - "path": "$OET_PATH/testcases/cli-test/libldb", - "cases": [ - { - "name": "oe_test_libldb" - } - ] + "path": "$OET_PATH/testcases/cli-test/libldb", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libldb" + }, + { + "name": "oe_test_libldb_install_and_remove_libldb" + }, + { + "name": "oe_test_libldb_install_and_remove_python3-ldb" + }, + { + "name": "oe_test_libldb_install_and_remove_python-ldb-devel-common" + }, + { + "name": "oe_test_libldb_install_and_remove_python3-ldb-devel" + }, + { + "name": "oe_test_libldb_install_and_remove_libldb-devel" + }, + { + "name": "oe_test_libldb_install_and_remove_libldb-help" + }, + { + "name": "oe_test_libldb_install_and_remove_libldb-debuginfo" + }, + { + "name": "oe_test_libldb_install_and_remove_libldb-debugsource" + }, + { + "name": "oe_test_libldb_install_and_remove_python2-ldb-devel" + }, + { + "name": "oe_test_libldb_install_and_remove_python2-ldb" + } + ] } \ No newline at end of file diff --git a/suite2cases/liblockfile.json b/suite2cases/liblockfile.json new file mode 100644 index 0000000000000000000000000000000000000000..d2c13398647f29449d8e6e6f63a85d0b9b3e484d --- /dev/null +++ b/suite2cases/liblockfile.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/liblockfile", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_liblockfile_install_and_remove_liblockfile" + }, + { + "name": "oe_test_liblockfile_install_and_remove_liblockfile-devel" + }, + { + "name": "oe_test_liblockfile_install_and_remove_liblockfile-help" + }, + { + "name": "oe_test_liblockfile_install_and_remove_liblockfile-debuginfo" + }, + { + "name": "oe_test_liblockfile_install_and_remove_liblockfile-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/liblognorm.json b/suite2cases/liblognorm.json new file mode 100644 index 0000000000000000000000000000000000000000..938507055c3b71cbd411e4c6d93226646035edd3 --- /dev/null +++ b/suite2cases/liblognorm.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/liblognorm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_liblognorm_install_and_remove_liblognorm" + }, + { + "name": "oe_test_liblognorm_install_and_remove_liblognorm-utils" + }, + { + "name": "oe_test_liblognorm_install_and_remove_liblognorm-devel" + }, + { + "name": "oe_test_liblognorm_install_and_remove_liblognorm-help" + }, + { + "name": "oe_test_liblognorm_install_and_remove_liblognorm-debuginfo" + }, + { + "name": "oe_test_liblognorm_install_and_remove_liblognorm-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/liblouis.json b/suite2cases/liblouis.json index aeebb5804dbe4d42db322af3f912aa8a69b3b503..b283cce74e5e02b2dfc6b73729dbb7e7c4927201 100644 --- a/suite2cases/liblouis.json +++ b/suite2cases/liblouis.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/liblouis", - "cases": [ - { - "name": "oe_test_liblouis" - } - ] + "path": "$OET_PATH/testcases/cli-test/liblouis", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_liblouis" + } + ] } \ No newline at end of file diff --git a/suite2cases/libmaxminddb.json b/suite2cases/libmaxminddb.json new file mode 100644 index 0000000000000000000000000000000000000000..44736debd03d1e93c295950048ac9c6a286df6a4 --- /dev/null +++ b/suite2cases/libmaxminddb.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libmaxminddb", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libmaxminddb_install_and_remove_libmaxminddb" + }, + { + "name": "oe_test_libmaxminddb_install_and_remove_libmaxminddb-devel" + }, + { + "name": "oe_test_libmaxminddb_install_and_remove_libmaxminddb-help" + }, + { + "name": "oe_test_libmaxminddb_install_and_remove_libmaxminddb-debuginfo" + }, + { + "name": "oe_test_libmaxminddb_install_and_remove_libmaxminddb-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libmbim.json b/suite2cases/libmbim.json new file mode 100644 index 0000000000000000000000000000000000000000..1a3b115818849d893aafff94ccf093e7bc5a1c1b --- /dev/null +++ b/suite2cases/libmbim.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libmbim", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libmbim_install_and_remove_libmbim" + }, + { + "name": "oe_test_libmbim_install_and_remove_libmbim-devel" + }, + { + "name": "oe_test_libmbim_install_and_remove_libmbim-help" + }, + { + "name": "oe_test_libmbim_install_and_remove_libmbim-debuginfo" + }, + { + "name": "oe_test_libmbim_install_and_remove_libmbim-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libmemcached.json b/suite2cases/libmemcached.json index 88a1f99412640212aa46659cc7aeef878e6f45e9..a4c083ed5fff25cc5c947b65460385f7fd810d14 100644 --- a/suite2cases/libmemcached.json +++ b/suite2cases/libmemcached.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libmemcached", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_memaslap" diff --git a/suite2cases/libmetalink.json b/suite2cases/libmetalink.json new file mode 100644 index 0000000000000000000000000000000000000000..995e8fa45d20e941ea757eb7ae0e46a93ab0da4b --- /dev/null +++ b/suite2cases/libmetalink.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libmetalink", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libmetalink_install_and_remove_libmetalink" + }, + { + "name": "oe_test_libmetalink_install_and_remove_libmetalink-devel" + }, + { + "name": "oe_test_libmetalink_install_and_remove_libmetalink-help" + }, + { + "name": "oe_test_libmetalink_install_and_remove_libmetalink-debugsource" + }, + { + "name": "oe_test_libmetalink_install_and_remove_libmetalink-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libmicrohttpd.json b/suite2cases/libmicrohttpd.json index 099ecad7561e940670034b530baba26435cb8091..63f71d628a3ac0e121d2a0544ded31ac99413a93 100644 --- a/suite2cases/libmicrohttpd.json +++ b/suite2cases/libmicrohttpd.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/libmicrohttpd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libmicrohttpd" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/libmng.json b/suite2cases/libmng.json new file mode 100644 index 0000000000000000000000000000000000000000..447e1134a4883d9bff5f330396c8a45c2121664b --- /dev/null +++ b/suite2cases/libmng.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libmng", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libmng_install_and_remove_libmng" + }, + { + "name": "oe_test_libmng_install_and_remove_libmng-devel" + }, + { + "name": "oe_test_libmng_install_and_remove_libmng-help" + }, + { + "name": "oe_test_libmng_install_and_remove_libmng-debuginfo" + }, + { + "name": "oe_test_libmng_install_and_remove_libmng-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libmnl.json b/suite2cases/libmnl.json new file mode 100644 index 0000000000000000000000000000000000000000..d0b0fa952eac683cf7275558417f4ab51ec62592 --- /dev/null +++ b/suite2cases/libmnl.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libmnl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libmnl_install_and_remove_libmnl" + }, + { + "name": "oe_test_libmnl_install_and_remove_libmnl-devel" + }, + { + "name": "oe_test_libmnl_install_and_remove_libmnl-debuginfo" + }, + { + "name": "oe_test_libmnl_install_and_remove_libmnl-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libmodulemd.json b/suite2cases/libmodulemd.json new file mode 100644 index 0000000000000000000000000000000000000000..8be6089433e0eeb01c51a20cbc9f17762b456786 --- /dev/null +++ b/suite2cases/libmodulemd.json @@ -0,0 +1,38 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libmodulemd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libmodulemd_install_and_remove_libmodulemd" + }, + { + "name": "oe_test_libmodulemd_install_and_remove_libmodulemd-devel" + }, + { + "name": "oe_test_libmodulemd_install_and_remove_python3-libmodulemd" + }, + { + "name": "oe_test_libmodulemd_install_and_remove_libmodulemd-debugsource" + }, + { + "name": "oe_test_libmodulemd_install_and_remove_libmodulemd-debuginfo" + }, + { + "name": "oe_test_libmodulemd_install_and_remove_libmodulemd1" + }, + { + "name": "oe_test_libmodulemd_install_and_remove_libmodulemd1-devel" + }, + { + "name": "oe_test_libmodulemd_install_and_remove_python3-libmodulemd1" + }, + { + "name": "oe_test_libmodulemd_install_and_remove_libmodulemd-doc" + }, + { + "name": "oe_test_libmodulemd_install_and_remove_python%{python3_pkgversion}-libmodulemd" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libmpc.json b/suite2cases/libmpc.json new file mode 100644 index 0000000000000000000000000000000000000000..34063ff97d840aa918ba9ad28f402aa5f16edaa5 --- /dev/null +++ b/suite2cases/libmpc.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libmpc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libmpc_install_and_remove_libmpc" + }, + { + "name": "oe_test_libmpc_install_and_remove_libmpc-devel" + }, + { + "name": "oe_test_libmpc_install_and_remove_libmpc-debuginfo" + }, + { + "name": "oe_test_libmpc_install_and_remove_libmpc-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libndp.json b/suite2cases/libndp.json new file mode 100644 index 0000000000000000000000000000000000000000..63ac3b7e89146164e09a52b830f986294f80f4d5 --- /dev/null +++ b/suite2cases/libndp.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libndp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libndp_install_and_remove_libndp" + }, + { + "name": "oe_test_libndp_install_and_remove_libndp-devel" + }, + { + "name": "oe_test_libndp_install_and_remove_libndp-help" + }, + { + "name": "oe_test_libndp_install_and_remove_libndp-debuginfo" + }, + { + "name": "oe_test_libndp_install_and_remove_libndp-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libnet.json b/suite2cases/libnet.json new file mode 100644 index 0000000000000000000000000000000000000000..33971e7148a0d83dc3ac85108531892a917eff09 --- /dev/null +++ b/suite2cases/libnet.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libnet", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libnet_install_and_remove_libnet" + }, + { + "name": "oe_test_libnet_install_and_remove_libnet-devel" + }, + { + "name": "oe_test_libnet_install_and_remove_libnet-help" + }, + { + "name": "oe_test_libnet_install_and_remove_libnet-debugsource" + }, + { + "name": "oe_test_libnet_install_and_remove_libnet-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libnetfilter_conntrack.json b/suite2cases/libnetfilter_conntrack.json new file mode 100644 index 0000000000000000000000000000000000000000..fc942f138d17e1e3a9fa7d93025208c04bc46f4d --- /dev/null +++ b/suite2cases/libnetfilter_conntrack.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libnetfilter_conntrack", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack" + }, + { + "name": "oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-devel" + }, + { + "name": "oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-debuginfo" + }, + { + "name": "oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libnfnetlink.json b/suite2cases/libnfnetlink.json new file mode 100644 index 0000000000000000000000000000000000000000..c08415bcc1c2d189d90dbbe3ef28da1cc3ffd7b1 --- /dev/null +++ b/suite2cases/libnfnetlink.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libnfnetlink", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libnfnetlink_install_and_remove_libnfnetlink" + }, + { + "name": "oe_test_libnfnetlink_install_and_remove_libnfnetlink-devel" + }, + { + "name": "oe_test_libnfnetlink_install_and_remove_libnfnetlink-help" + }, + { + "name": "oe_test_libnfnetlink_install_and_remove_libnfnetlink-debuginfo" + }, + { + "name": "oe_test_libnfnetlink_install_and_remove_libnfnetlink-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libnftnl.json b/suite2cases/libnftnl.json new file mode 100644 index 0000000000000000000000000000000000000000..9b7a4632f1e0f459c318fa5f92784b8dbd5beca2 --- /dev/null +++ b/suite2cases/libnftnl.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libnftnl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libnftnl_install_and_remove_libnftnl" + }, + { + "name": "oe_test_libnftnl_install_and_remove_libnftnl-devel" + }, + { + "name": "oe_test_libnftnl_install_and_remove_libnftnl-debuginfo" + }, + { + "name": "oe_test_libnftnl_install_and_remove_libnftnl-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libnice.json b/suite2cases/libnice.json new file mode 100644 index 0000000000000000000000000000000000000000..1da5550d2b7a5865f9454f579eef5c5a4c8f2f94 --- /dev/null +++ b/suite2cases/libnice.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libnice", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libnice_install_and_remove_libnice" + }, + { + "name": "oe_test_libnice_install_and_remove_libnice-gstreamer1" + }, + { + "name": "oe_test_libnice_install_and_remove_libnice-devel" + }, + { + "name": "oe_test_libnice_install_and_remove_libnice-debuginfo" + }, + { + "name": "oe_test_libnice_install_and_remove_libnice-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libnl3.json b/suite2cases/libnl3.json new file mode 100644 index 0000000000000000000000000000000000000000..b0a0855b536b4ceb0cc31cdd34792040cee9594c --- /dev/null +++ b/suite2cases/libnl3.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libnl3", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libnl3_install_and_remove_libnl3" + }, + { + "name": "oe_test_libnl3_install_and_remove_libnl3-help" + }, + { + "name": "oe_test_libnl3_install_and_remove_python3-libnl3" + }, + { + "name": "oe_test_libnl3_install_and_remove_libnl3-devel" + }, + { + "name": "oe_test_libnl3_install_and_remove_libnl3-debuginfo" + }, + { + "name": "oe_test_libnl3_install_and_remove_libnl3-debugsource" + }, + { + "name": "oe_test_libnl3_install_and_remove_python2-libnl3" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libnma.json b/suite2cases/libnma.json new file mode 100644 index 0000000000000000000000000000000000000000..5eaaff18f89551f52395c6225ab556ed5c12d7d9 --- /dev/null +++ b/suite2cases/libnma.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libnma", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libnma_install_and_remove_libnma" + }, + { + "name": "oe_test_libnma_install_and_remove_libnma-devel" + }, + { + "name": "oe_test_libnma_install_and_remove_libnma-debuginfo" + }, + { + "name": "oe_test_libnma_install_and_remove_libnma-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libnotify.json b/suite2cases/libnotify.json new file mode 100644 index 0000000000000000000000000000000000000000..6a9f194e7b75b9f8559bf30b99b16a5e3d2e9cf3 --- /dev/null +++ b/suite2cases/libnotify.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libnotify", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libnotify_install_and_remove_libnotify" + }, + { + "name": "oe_test_libnotify_install_and_remove_libnotify-devel" + }, + { + "name": "oe_test_libnotify_install_and_remove_libnotify-debugsource" + }, + { + "name": "oe_test_libnotify_install_and_remove_libnotify-debuginfo" + }, + { + "name": "oe_test_libnotify_install_and_remove_libnotify-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libnsl2.json b/suite2cases/libnsl2.json new file mode 100644 index 0000000000000000000000000000000000000000..96fc5184243ce61183dc74e6a9f72b6f33aada79 --- /dev/null +++ b/suite2cases/libnsl2.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libnsl2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libnsl2_install_and_remove_libnsl2" + }, + { + "name": "oe_test_libnsl2_install_and_remove_libnsl2-devel" + }, + { + "name": "oe_test_libnsl2_install_and_remove_libnsl2-debuginfo" + }, + { + "name": "oe_test_libnsl2_install_and_remove_libnsl2-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libnvme.json b/suite2cases/libnvme.json new file mode 100644 index 0000000000000000000000000000000000000000..7dbee9898fda83bcc2a09dcad73b1a5aa520aae6 --- /dev/null +++ b/suite2cases/libnvme.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libnvme", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libnvme_install_and_remove_libnvme" + }, + { + "name": "oe_test_libnvme_install_and_remove_python3-libnvme" + }, + { + "name": "oe_test_libnvme_install_and_remove_libnvme-devel" + }, + { + "name": "oe_test_libnvme_install_and_remove_libnvme-debuginfo" + }, + { + "name": "oe_test_libnvme_install_and_remove_libnvme-debugsource" + }, + { + "name": "oe_test_libnvme_install_and_remove_libnvme-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libogg.json b/suite2cases/libogg.json new file mode 100644 index 0000000000000000000000000000000000000000..d0a47153db2293e7fea4a57b4cf8cb20e28fa065 --- /dev/null +++ b/suite2cases/libogg.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libogg", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libogg_install_and_remove_libogg" + }, + { + "name": "oe_test_libogg_install_and_remove_libogg-devel" + }, + { + "name": "oe_test_libogg_install_and_remove_libogg-help" + }, + { + "name": "oe_test_libogg_install_and_remove_libogg-debuginfo" + }, + { + "name": "oe_test_libogg_install_and_remove_libogg-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libosinfo.json b/suite2cases/libosinfo.json index fe39c06e00761a5621a9a91e93e00a767b622a8f..2a99f43d5a52f0db43bca831d0502c63cfb38488 100644 --- a/suite2cases/libosinfo.json +++ b/suite2cases/libosinfo.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libosinfo", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_osinfo-detect" diff --git a/suite2cases/libotf.json b/suite2cases/libotf.json new file mode 100644 index 0000000000000000000000000000000000000000..9341e6fb030f3992c6146f61c8db05359f80a596 --- /dev/null +++ b/suite2cases/libotf.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libotf", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libotf_install_and_remove_libotf" + }, + { + "name": "oe_test_libotf_install_and_remove_libotf-devel" + }, + { + "name": "oe_test_libotf_install_and_remove_libotf-debuginfo" + }, + { + "name": "oe_test_libotf_install_and_remove_libotf-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libpaper.json b/suite2cases/libpaper.json new file mode 100644 index 0000000000000000000000000000000000000000..61ded58ad7edbe3456a2b3fde34a681ca7c42c46 --- /dev/null +++ b/suite2cases/libpaper.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libpaper", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libpaper_install_and_remove_libpaper" + }, + { + "name": "oe_test_libpaper_install_and_remove_libpaper-devel" + }, + { + "name": "oe_test_libpaper_install_and_remove_libpaper-help" + }, + { + "name": "oe_test_libpaper_install_and_remove_libpaper-debugsource" + }, + { + "name": "oe_test_libpaper_install_and_remove_libpaper-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libpcap.json b/suite2cases/libpcap.json new file mode 100644 index 0000000000000000000000000000000000000000..794081eeacf4bfd8f847560fca2d71dc874d81a6 --- /dev/null +++ b/suite2cases/libpcap.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libpcap", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libpcap_install_and_remove_libpcap" + }, + { + "name": "oe_test_libpcap_install_and_remove_libpcap-devel" + }, + { + "name": "oe_test_libpcap_install_and_remove_libpcap-debugsource" + }, + { + "name": "oe_test_libpcap_install_and_remove_libpcap-debuginfo" + }, + { + "name": "oe_test_libpcap_install_and_remove_libpcap-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libpciaccess.json b/suite2cases/libpciaccess.json new file mode 100644 index 0000000000000000000000000000000000000000..87fa74d782e0e0b500bf924265938e122f3a4464 --- /dev/null +++ b/suite2cases/libpciaccess.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libpciaccess", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libpciaccess_install_and_remove_libpciaccess" + }, + { + "name": "oe_test_libpciaccess_install_and_remove_libpciaccess-devel" + }, + { + "name": "oe_test_libpciaccess_install_and_remove_libpciaccess-debugsource" + }, + { + "name": "oe_test_libpciaccess_install_and_remove_libpciaccess-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libpipeline.json b/suite2cases/libpipeline.json new file mode 100644 index 0000000000000000000000000000000000000000..26b05b6f06997080950ceee8a45569113e5cfb10 --- /dev/null +++ b/suite2cases/libpipeline.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libpipeline", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libpipeline_install_and_remove_libpipeline" + }, + { + "name": "oe_test_libpipeline_install_and_remove_libpipeline-devel" + }, + { + "name": "oe_test_libpipeline_install_and_remove_libpipeline-debuginfo" + }, + { + "name": "oe_test_libpipeline_install_and_remove_libpipeline-debugsource" + }, + { + "name": "oe_test_libpipeline_install_and_remove_libpipeline-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libplist.json b/suite2cases/libplist.json new file mode 100644 index 0000000000000000000000000000000000000000..e586578c8aea23c3a711dfedb717f6448300adf1 --- /dev/null +++ b/suite2cases/libplist.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libplist", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libplist_install_and_remove_libplist" + }, + { + "name": "oe_test_libplist_install_and_remove_python3-libplist" + }, + { + "name": "oe_test_libplist_install_and_remove_libplist-devel" + }, + { + "name": "oe_test_libplist_install_and_remove_libplist-debuginfo" + }, + { + "name": "oe_test_libplist_install_and_remove_libplist-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libpng.json b/suite2cases/libpng.json new file mode 100644 index 0000000000000000000000000000000000000000..6d72be28629b7a9c0602165cf85a76d252114e86 --- /dev/null +++ b/suite2cases/libpng.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libpng", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libpng_install_and_remove_libpng" + }, + { + "name": "oe_test_libpng_install_and_remove_libpng-devel" + }, + { + "name": "oe_test_libpng_install_and_remove_libpng-static" + }, + { + "name": "oe_test_libpng_install_and_remove_libpng-tools" + }, + { + "name": "oe_test_libpng_install_and_remove_libpng-help" + }, + { + "name": "oe_test_libpng_install_and_remove_libpng-debuginfo" + }, + { + "name": "oe_test_libpng_install_and_remove_libpng-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libpng12.json b/suite2cases/libpng12.json index 2740dfe207a45e71aaaea40e7342baaa4222ecee..83ef15a83c599c65ddbbf1e2712896bc7dc1145c 100644 --- a/suite2cases/libpng12.json +++ b/suite2cases/libpng12.json @@ -1,5 +1,7 @@ { "path": "\"${OET_PATH}\"/testcases/cli-test/libpng12", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libpng12" diff --git a/suite2cases/libpq.json b/suite2cases/libpq.json new file mode 100644 index 0000000000000000000000000000000000000000..99e67470d52930d671c777d1f83d4e1144103b53 --- /dev/null +++ b/suite2cases/libpq.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libpq", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libpq_install_and_remove_libpq" + }, + { + "name": "oe_test_libpq_install_and_remove_libpq-devel" + }, + { + "name": "oe_test_libpq_install_and_remove_libpq-debuginfo" + }, + { + "name": "oe_test_libpq_install_and_remove_libpq-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libproxy.json b/suite2cases/libproxy.json new file mode 100644 index 0000000000000000000000000000000000000000..46a7a3160953fd5251c2cb227f0e74d252a49de6 --- /dev/null +++ b/suite2cases/libproxy.json @@ -0,0 +1,35 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libproxy", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libproxy_install_and_remove_libproxy" + }, + { + "name": "oe_test_libproxy_install_and_remove_libproxy-devel" + }, + { + "name": "oe_test_libproxy_install_and_remove_libproxy-debuginfo" + }, + { + "name": "oe_test_libproxy_install_and_remove_libproxy-debugsource" + }, + { + "name": "oe_test_libproxy_install_and_remove_libproxy-help" + }, + { + "name": "oe_test_libproxy_install_and_remove_libproxy-duktape" + }, + { + "name": "oe_test_libproxy_install_and_remove_python3-libproxy" + }, + { + "name": "oe_test_libproxy_install_and_remove_libproxy-webkitgtk4" + }, + { + "name": "oe_test_libproxy_install_and_remove_python2-libproxy" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libpsl.json b/suite2cases/libpsl.json new file mode 100644 index 0000000000000000000000000000000000000000..3510ca3a84a44473f4ee9e5904bcb713031fe170 --- /dev/null +++ b/suite2cases/libpsl.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libpsl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libpsl_install_and_remove_libpsl" + }, + { + "name": "oe_test_libpsl_install_and_remove_libpsl-help" + }, + { + "name": "oe_test_libpsl_install_and_remove_libpsl-devel" + }, + { + "name": "oe_test_libpsl_install_and_remove_psl" + }, + { + "name": "oe_test_libpsl_install_and_remove_psl-make-dafsa" + }, + { + "name": "oe_test_libpsl_install_and_remove_libpsl-debuginfo" + }, + { + "name": "oe_test_libpsl_install_and_remove_libpsl-debugsource" + }, + { + "name": "oe_test_libpsl_install_and_remove_libpsl-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libpwquality.json b/suite2cases/libpwquality.json new file mode 100644 index 0000000000000000000000000000000000000000..2da1425d29bfae2ca50117b263791d8f941a857f --- /dev/null +++ b/suite2cases/libpwquality.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libpwquality", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libpwquality_install_and_remove_libpwquality" + }, + { + "name": "oe_test_libpwquality_install_and_remove_libpwquality-devel" + }, + { + "name": "oe_test_libpwquality_install_and_remove_python3-pwquality" + }, + { + "name": "oe_test_libpwquality_install_and_remove_libpwquality-help" + }, + { + "name": "oe_test_libpwquality_install_and_remove_libpwquality-debugsource" + }, + { + "name": "oe_test_libpwquality_install_and_remove_libpwquality-debuginfo" + }, + { + "name": "oe_test_libpwquality_install_and_remove_python2-pwquality" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libqmi.json b/suite2cases/libqmi.json new file mode 100644 index 0000000000000000000000000000000000000000..b38ad6bc8daf49acd19bab2fd6cdc331768a506e --- /dev/null +++ b/suite2cases/libqmi.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libqmi", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libqmi_install_and_remove_libqmi" + }, + { + "name": "oe_test_libqmi_install_and_remove_libqmi-devel" + }, + { + "name": "oe_test_libqmi_install_and_remove_libqmi-debuginfo" + }, + { + "name": "oe_test_libqmi_install_and_remove_libqmi-help" + }, + { + "name": "oe_test_libqmi_install_and_remove_libqmi-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/librabbitmq.json b/suite2cases/librabbitmq.json index 12e797ec114575ca32a2005f4fbe017313a79c87..484e2cd9ab7a8f13fee65d1527571b3300d0ec08 100644 --- a/suite2cases/librabbitmq.json +++ b/suite2cases/librabbitmq.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/librabbitmq", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_librabbitmq_amqp-declare-queue" @@ -15,6 +18,21 @@ }, { "name": "oe_test_librabbitmq_amqp-publish" + }, + { + "name": "oe_test_librabbitmq_install_and_remove_librabbitmq" + }, + { + "name": "oe_test_librabbitmq_install_and_remove_librabbitmq-devel" + }, + { + "name": "oe_test_librabbitmq_install_and_remove_librabbitmq-help" + }, + { + "name": "oe_test_librabbitmq_install_and_remove_librabbitmq-debuginfo" + }, + { + "name": "oe_test_librabbitmq_install_and_remove_librabbitmq-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/librdkafka.json b/suite2cases/librdkafka.json new file mode 100644 index 0000000000000000000000000000000000000000..23678ca38878c5d7953b9c558a9f960c38934b09 --- /dev/null +++ b/suite2cases/librdkafka.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/librdkafka", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_librdkafka_install_and_remove_librdkafka" + }, + { + "name": "oe_test_librdkafka_install_and_remove_librdkafka-devel" + }, + { + "name": "oe_test_librdkafka_install_and_remove_librdkafka-debugsource" + }, + { + "name": "oe_test_librdkafka_install_and_remove_librdkafka-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/librelp.json b/suite2cases/librelp.json new file mode 100644 index 0000000000000000000000000000000000000000..963a7a1bd685321730936c849ab2f9aa238139a7 --- /dev/null +++ b/suite2cases/librelp.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/librelp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_librelp_install_and_remove_librelp" + }, + { + "name": "oe_test_librelp_install_and_remove_librelp-devel" + }, + { + "name": "oe_test_librelp_install_and_remove_librelp-debugsource" + }, + { + "name": "oe_test_librelp_install_and_remove_librelp-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/librepo.json b/suite2cases/librepo.json new file mode 100644 index 0000000000000000000000000000000000000000..49b974f11a676074dd9b4271f3da3bd8f5a4c592 --- /dev/null +++ b/suite2cases/librepo.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/librepo", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_librepo_install_and_remove_librepo" + }, + { + "name": "oe_test_librepo_install_and_remove_librepo-devel" + }, + { + "name": "oe_test_librepo_install_and_remove_python3-librepo" + }, + { + "name": "oe_test_librepo_install_and_remove_librepo-debuginfo" + }, + { + "name": "oe_test_librepo_install_and_remove_librepo-debugsource" + }, + { + "name": "oe_test_librepo_install_and_remove_python2-librepo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libreport.json b/suite2cases/libreport.json new file mode 100644 index 0000000000000000000000000000000000000000..e91679619153e81043810e134e934c4cb04e570e --- /dev/null +++ b/suite2cases/libreport.json @@ -0,0 +1,71 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libreport", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libreport_install_and_remove_libreport" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-newt" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-gtk-devel" + }, + { + "name": "oe_test_libreport_install_and_remove_python3-libreport" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-plugin-kerneloops" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-plugin-logger" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-plugin-reportuploader" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-anaconda" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-filesystem" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-devel" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-web" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-web-devel" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-cli" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-gtk" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-plugin-systemd-journal" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-help" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-debuginfo" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-debugsource" + }, + { + "name": "oe_test_libreport_install_and_remove_python2-libreport" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-rhel" + }, + { + "name": "oe_test_libreport_install_and_remove_libreport-compat" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libreswan.json b/suite2cases/libreswan.json index daea7139c6678efd3c18377e7d756ccdf074bf38..77514d824ced1778ad6888088a5aa3ad8c2f4d60 100644 --- a/suite2cases/libreswan.json +++ b/suite2cases/libreswan.json @@ -1,6 +1,8 @@ { "path": "${OET_PATH}/testcases/cli-test/libreswan", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libreswan_ipsec_01" @@ -64,4 +66,4 @@ "name": "oe_test_site_to_site_vpn" } ] -} +} \ No newline at end of file diff --git a/suite2cases/librhsm.json b/suite2cases/librhsm.json index 919e694008a85f12181af10249f2a51da57d9f16..d4f11d0686f47e2065aea311f80ad9b75a12a7df 100644 --- a/suite2cases/librhsm.json +++ b/suite2cases/librhsm.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/librhsm", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_librhsm" } ] -} +} \ No newline at end of file diff --git a/suite2cases/librsvg2.json b/suite2cases/librsvg2.json index 688f5285fc6f03a1160e3fede3c5af2e531a5095..efa373bdc17b3cb3d88f3d008f9d5526485e9ef9 100644 --- a/suite2cases/librsvg2.json +++ b/suite2cases/librsvg2.json @@ -1,8 +1,29 @@ { - "path": "$OET_PATH/testcases/cli-test/librsvg2", - "cases": [ - { - "name": "oe_test_librsvg2-tools" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/librsvg2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_librsvg2-tools" + }, + { + "name": "oe_test_librsvg2_install_and_remove_librsvg2" + }, + { + "name": "oe_test_librsvg2_install_and_remove_librsvg2-devel" + }, + { + "name": "oe_test_librsvg2_install_and_remove_librsvg2-tools" + }, + { + "name": "oe_test_librsvg2_install_and_remove_librsvg2-help" + }, + { + "name": "oe_test_librsvg2_install_and_remove_librsvg2-debuginfo" + }, + { + "name": "oe_test_librsvg2_install_and_remove_librsvg2-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libsass.json b/suite2cases/libsass.json new file mode 100644 index 0000000000000000000000000000000000000000..d0dd34e22498778ddb384ab23d3a525fabda2ab2 --- /dev/null +++ b/suite2cases/libsass.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libsass", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libsass_install_and_remove_libsass" + }, + { + "name": "oe_test_libsass_install_and_remove_libsass-devel" + }, + { + "name": "oe_test_libsass_install_and_remove_libsass-debuginfo" + }, + { + "name": "oe_test_libsass_install_and_remove_libsass-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libseccomp.json b/suite2cases/libseccomp.json new file mode 100644 index 0000000000000000000000000000000000000000..96f8c2d59807b2cb64d9ef90e057fd7605b8af3b --- /dev/null +++ b/suite2cases/libseccomp.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libseccomp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libseccomp_install_and_remove_libseccomp" + }, + { + "name": "oe_test_libseccomp_install_and_remove_libseccomp-devel" + }, + { + "name": "oe_test_libseccomp_install_and_remove_libseccomp-help" + }, + { + "name": "oe_test_libseccomp_install_and_remove_libseccomp-debugsource" + }, + { + "name": "oe_test_libseccomp_install_and_remove_libseccomp-debuginfo" + }, + { + "name": "oe_test_libseccomp_install_and_remove_libseccomp-doc" + }, + { + "name": "oe_test_libseccomp_install_and_remove_libseccomp-static" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libsecret.json b/suite2cases/libsecret.json new file mode 100644 index 0000000000000000000000000000000000000000..82a386ba48cf811490a165143b528aa79397e7c3 --- /dev/null +++ b/suite2cases/libsecret.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libsecret", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libsecret_install_and_remove_libsecret" + }, + { + "name": "oe_test_libsecret_install_and_remove_libsecret-devel" + }, + { + "name": "oe_test_libsecret_install_and_remove_libsecret-help" + }, + { + "name": "oe_test_libsecret_install_and_remove_libsecret-debugsource" + }, + { + "name": "oe_test_libsecret_install_and_remove_libsecret-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libselinux.json b/suite2cases/libselinux.json new file mode 100644 index 0000000000000000000000000000000000000000..5d081cfaf9b9972e88aa7e0c63df74040134cf47 --- /dev/null +++ b/suite2cases/libselinux.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libselinux", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libselinux_install_and_remove_libselinux" + }, + { + "name": "oe_test_libselinux_install_and_remove_python3-libselinux" + }, + { + "name": "oe_test_libselinux_install_and_remove_libselinux-ruby" + }, + { + "name": "oe_test_libselinux_install_and_remove_libselinux-devel" + }, + { + "name": "oe_test_libselinux_install_and_remove_libselinux-debuginfo" + }, + { + "name": "oe_test_libselinux_install_and_remove_libselinux-help" + }, + { + "name": "oe_test_libselinux_install_and_remove_libselinux-debugsource" + }, + { + "name": "oe_test_libselinux_install_and_remove_python2-libselinux" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libsemanage.json b/suite2cases/libsemanage.json new file mode 100644 index 0000000000000000000000000000000000000000..4a16fbb30040b7457f0fcf98b73bd495cf3ef9c0 --- /dev/null +++ b/suite2cases/libsemanage.json @@ -0,0 +1,38 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libsemanage", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libsemanage_install_and_remove_libsemanage" + }, + { + "name": "oe_test_libsemanage_install_and_remove_python3-libsemanage" + }, + { + "name": "oe_test_libsemanage_install_and_remove_libsemanage-devel" + }, + { + "name": "oe_test_libsemanage_install_and_remove_libsemanage-help" + }, + { + "name": "oe_test_libsemanage_install_and_remove_libsemanage-debugsource" + }, + { + "name": "oe_test_libsemanage_install_and_remove_libsemanage-debuginfo" + }, + { + "name": "oe_test_libsemanage_install_and_remove_python2-libsemanage" + }, + { + "name": "oe_test_libsemanage_install_and_remove_libsemanage-doc" + }, + { + "name": "oe_test_libsemanage_install_and_remove_libsemanage-static" + }, + { + "name": "oe_test_libsemanage_install_and_remove_libsemanage-python" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libsepol.json b/suite2cases/libsepol.json new file mode 100644 index 0000000000000000000000000000000000000000..4d1730cd82567e56aa519fd7dc21670df59f77e3 --- /dev/null +++ b/suite2cases/libsepol.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libsepol", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libsepol_install_and_remove_libsepol" + }, + { + "name": "oe_test_libsepol_install_and_remove_libsepol-devel" + }, + { + "name": "oe_test_libsepol_install_and_remove_libsepol-help" + }, + { + "name": "oe_test_libsepol_install_and_remove_libsepol-debuginfo" + }, + { + "name": "oe_test_libsepol_install_and_remove_libsepol-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libsigsegv.json b/suite2cases/libsigsegv.json new file mode 100644 index 0000000000000000000000000000000000000000..20af86ab44d4b4b5597a5140109aaa0046ae368e --- /dev/null +++ b/suite2cases/libsigsegv.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libsigsegv", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libsigsegv_install_and_remove_libsigsegv" + }, + { + "name": "oe_test_libsigsegv_install_and_remove_libsigsegv-devel" + }, + { + "name": "oe_test_libsigsegv_install_and_remove_libsigsegv-debuginfo" + }, + { + "name": "oe_test_libsigsegv_install_and_remove_libsigsegv-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libsmbios.json b/suite2cases/libsmbios.json new file mode 100644 index 0000000000000000000000000000000000000000..65543c2fb2dfc6c8de1c5f998d9ac26c2de5e9f3 --- /dev/null +++ b/suite2cases/libsmbios.json @@ -0,0 +1,35 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libsmbios", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libsmbios_install_and_remove_libsmbios" + }, + { + "name": "oe_test_libsmbios_install_and_remove_smbios-utils" + }, + { + "name": "oe_test_libsmbios_install_and_remove_smbios-utils-bin" + }, + { + "name": "oe_test_libsmbios_install_and_remove_smbios-utils-python" + }, + { + "name": "oe_test_libsmbios_install_and_remove_libsmbios-devel" + }, + { + "name": "oe_test_libsmbios_install_and_remove_python3-smbios" + }, + { + "name": "oe_test_libsmbios_install_and_remove_libsmbios-debugsource" + }, + { + "name": "oe_test_libsmbios_install_and_remove_libsmbios-debuginfo" + }, + { + "name": "oe_test_libsmbios_install_and_remove_libsmbios-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libsmi.json b/suite2cases/libsmi.json index 0f33476e00daea59d072d58e7a134b4e87e0cfbb..abcecba3823abea45711c6dda3b2ce05b66788f6 100644 --- a/suite2cases/libsmi.json +++ b/suite2cases/libsmi.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libsmi", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libsmi_smicache" diff --git a/suite2cases/libsndfile.json b/suite2cases/libsndfile.json index c2e8fc2f5842682feb2429fac6c50ab00ff4ad17..d7ae5bf66447851cb5bd4452163965a123c8015b 100644 --- a/suite2cases/libsndfile.json +++ b/suite2cases/libsndfile.json @@ -1,8 +1,29 @@ { - "path": "$OET_PATH/testcases/cli-test/libsndfile", - "cases": [ - { - "name": "oe_test_libsndfile" - } - ] + "path": "$OET_PATH/testcases/cli-test/libsndfile", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libsndfile" + }, + { + "name": "oe_test_libsndfile_install_and_remove_libsndfile" + }, + { + "name": "oe_test_libsndfile_install_and_remove_libsndfile-utils" + }, + { + "name": "oe_test_libsndfile_install_and_remove_libsndfile-devel" + }, + { + "name": "oe_test_libsndfile_install_and_remove_libsndfile-utils-help" + }, + { + "name": "oe_test_libsndfile_install_and_remove_libsndfile-debuginfo" + }, + { + "name": "oe_test_libsndfile_install_and_remove_libsndfile-debugsource" + } + ] } \ No newline at end of file diff --git a/suite2cases/libsolv.json b/suite2cases/libsolv.json new file mode 100644 index 0000000000000000000000000000000000000000..8140f49e89ea5107b45949513964307b2f8a0899 --- /dev/null +++ b/suite2cases/libsolv.json @@ -0,0 +1,41 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libsolv", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libsolv_install_and_remove_libsolv" + }, + { + "name": "oe_test_libsolv_install_and_remove_libsolv-devel" + }, + { + "name": "oe_test_libsolv_install_and_remove_python2-solv" + }, + { + "name": "oe_test_libsolv_install_and_remove_python3-solv" + }, + { + "name": "oe_test_libsolv_install_and_remove_ruby-solv" + }, + { + "name": "oe_test_libsolv_install_and_remove_perl-solv" + }, + { + "name": "oe_test_libsolv_install_and_remove_libsolv-tools" + }, + { + "name": "oe_test_libsolv_install_and_remove_libsolv-demo" + }, + { + "name": "oe_test_libsolv_install_and_remove_libsolv-help" + }, + { + "name": "oe_test_libsolv_install_and_remove_libsolv-debuginfo" + }, + { + "name": "oe_test_libsolv_install_and_remove_libsolv-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libsoup.json b/suite2cases/libsoup.json new file mode 100644 index 0000000000000000000000000000000000000000..922ee1029916af8082848c05f24b1ccc92491d88 --- /dev/null +++ b/suite2cases/libsoup.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libsoup", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libsoup_install_and_remove_libsoup" + }, + { + "name": "oe_test_libsoup_install_and_remove_libsoup-devel" + }, + { + "name": "oe_test_libsoup_install_and_remove_libsoup-debuginfo" + }, + { + "name": "oe_test_libsoup_install_and_remove_libsoup-help" + }, + { + "name": "oe_test_libsoup_install_and_remove_libsoup-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libsoup3.json b/suite2cases/libsoup3.json new file mode 100644 index 0000000000000000000000000000000000000000..ff5db541aa6c3f6a5912463dda21a27e025f6191 --- /dev/null +++ b/suite2cases/libsoup3.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libsoup3", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libsoup3_install_and_remove_libsoup3" + }, + { + "name": "oe_test_libsoup3_install_and_remove_libsoup3-devel" + }, + { + "name": "oe_test_libsoup3_install_and_remove_libsoup3-debugsource" + }, + { + "name": "oe_test_libsoup3_install_and_remove_libsoup3-help" + }, + { + "name": "oe_test_libsoup3_install_and_remove_libsoup3-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libspiro.json b/suite2cases/libspiro.json new file mode 100644 index 0000000000000000000000000000000000000000..cb155ada97aea56153da75382e31aeb93363e523 --- /dev/null +++ b/suite2cases/libspiro.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libspiro", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libspiro_install_and_remove_libspiro" + }, + { + "name": "oe_test_libspiro_install_and_remove_libspiro-devel" + }, + { + "name": "oe_test_libspiro_install_and_remove_libspiro-debuginfo" + }, + { + "name": "oe_test_libspiro_install_and_remove_libspiro-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libssh.json b/suite2cases/libssh.json new file mode 100644 index 0000000000000000000000000000000000000000..77065b12394a54eaf5a47926a3b9773c395309a8 --- /dev/null +++ b/suite2cases/libssh.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libssh", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libssh_install_and_remove_libssh" + }, + { + "name": "oe_test_libssh_install_and_remove_libssh-devel" + }, + { + "name": "oe_test_libssh_install_and_remove_libssh-debugsource" + }, + { + "name": "oe_test_libssh_install_and_remove_libssh-debuginfo" + }, + { + "name": "oe_test_libssh_install_and_remove_libssh-help" + }, + { + "name": "oe_test_libssh_install_and_remove_libssh-config" + }, + { + "name": "oe_test_libssh_install_and_remove_libssh-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libssh2.json b/suite2cases/libssh2.json new file mode 100644 index 0000000000000000000000000000000000000000..45ec922e1bf9dc190ba730c95b06fc748356dd84 --- /dev/null +++ b/suite2cases/libssh2.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libssh2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libssh2_install_and_remove_libssh2" + }, + { + "name": "oe_test_libssh2_install_and_remove_libssh2-devel" + }, + { + "name": "oe_test_libssh2_install_and_remove_libssh2-debuginfo" + }, + { + "name": "oe_test_libssh2_install_and_remove_libssh2-debugsource" + }, + { + "name": "oe_test_libssh2_install_and_remove_libssh2-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libstdc++.json b/suite2cases/libstdc++.json index 6a9f41f4a2f8bef04085446e9bcf054a44a636f3..c19261939b8d0826b59545e47f28a4fc045936ab 100644 --- a/suite2cases/libstdc++.json +++ b/suite2cases/libstdc++.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/system-test/system-integration/os-basic/oe_test_libstdc++", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libstdc++" diff --git a/suite2cases/libstemmer.json b/suite2cases/libstemmer.json new file mode 100644 index 0000000000000000000000000000000000000000..0f3054cebda5ff5b01e57047875ea7a643f68390 --- /dev/null +++ b/suite2cases/libstemmer.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libstemmer", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libstemmer_install_and_remove_libstemmer" + }, + { + "name": "oe_test_libstemmer_install_and_remove_libstemmer-devel" + }, + { + "name": "oe_test_libstemmer_install_and_remove_libstemmer-debuginfo" + }, + { + "name": "oe_test_libstemmer_install_and_remove_libstemmer-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libstoragemgmt.json b/suite2cases/libstoragemgmt.json index 38b1809daf36d62a56137c57b7b32e29f28ab0fc..2199c3270d935ce90717c365578a7961edebc43a 100644 --- a/suite2cases/libstoragemgmt.json +++ b/suite2cases/libstoragemgmt.json @@ -1,8 +1,53 @@ { "path": "$OET_PATH/testcases/cli-test/libstoragemgmt", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_libstoragemgmt" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_libstoragemgmt" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-netapp-plugin" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-nfs-plugin" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_python2-libstoragemgmt" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_python2-libstoragemgmt-clibs" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_python3-libstoragemgmt" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_python3-libstoragemgmt-clibs" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-udev" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-devel" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-smis-plugin" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-nfs-plugin-clibs" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-debugsource" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-help" + }, + { + "name": "oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libtalloc.json b/suite2cases/libtalloc.json new file mode 100644 index 0000000000000000000000000000000000000000..ac01377a245ff1880f5cc05978201fd6f33357b9 --- /dev/null +++ b/suite2cases/libtalloc.json @@ -0,0 +1,35 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libtalloc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libtalloc_install_and_remove_libtalloc" + }, + { + "name": "oe_test_libtalloc_install_and_remove_libtalloc-devel" + }, + { + "name": "oe_test_libtalloc_install_and_remove_libtalloc-help" + }, + { + "name": "oe_test_libtalloc_install_and_remove_python3-talloc" + }, + { + "name": "oe_test_libtalloc_install_and_remove_python3-talloc-devel" + }, + { + "name": "oe_test_libtalloc_install_and_remove_libtalloc-debugsource" + }, + { + "name": "oe_test_libtalloc_install_and_remove_libtalloc-debuginfo" + }, + { + "name": "oe_test_libtalloc_install_and_remove_python2-talloc" + }, + { + "name": "oe_test_libtalloc_install_and_remove_python2-talloc-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libtar.json b/suite2cases/libtar.json index e4f532569ffad529cedd1a324180a1a14ccf63c2..456cde19678fc4bab802584bb3d06196e9901d7f 100644 --- a/suite2cases/libtar.json +++ b/suite2cases/libtar.json @@ -1,8 +1,26 @@ { - "path": "$OET_PATH/testcases/cli-test/libtar", - "cases": [ - { - "name": "oe_test_libtar" - } - ] + "path": "$OET_PATH/testcases/cli-test/libtar", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libtar" + }, + { + "name": "oe_test_libtar_install_and_remove_libtar" + }, + { + "name": "oe_test_libtar_install_and_remove_libtar-help" + }, + { + "name": "oe_test_libtar_install_and_remove_libtar-devel" + }, + { + "name": "oe_test_libtar_install_and_remove_libtar-debuginfo" + }, + { + "name": "oe_test_libtar_install_and_remove_libtar-debugsource" + } + ] } \ No newline at end of file diff --git a/suite2cases/libtasn1.json b/suite2cases/libtasn1.json new file mode 100644 index 0000000000000000000000000000000000000000..13e900725f3e0f088f4616ecf0ffcd594012aa2e --- /dev/null +++ b/suite2cases/libtasn1.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libtasn1", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libtasn1_install_and_remove_libtasn1" + }, + { + "name": "oe_test_libtasn1_install_and_remove_libtasn1-devel" + }, + { + "name": "oe_test_libtasn1_install_and_remove_libtasn1-help" + }, + { + "name": "oe_test_libtasn1_install_and_remove_libtasn1-debuginfo" + }, + { + "name": "oe_test_libtasn1_install_and_remove_libtasn1-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libtdb.json b/suite2cases/libtdb.json new file mode 100644 index 0000000000000000000000000000000000000000..97ec0cf6b5106656b2628b13a36a60276561da1d --- /dev/null +++ b/suite2cases/libtdb.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libtdb", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libtdb_install_and_remove_libtdb" + }, + { + "name": "oe_test_libtdb_install_and_remove_libtdb-devel" + }, + { + "name": "oe_test_libtdb_install_and_remove_tdb-tools" + }, + { + "name": "oe_test_libtdb_install_and_remove_python3-tdb" + }, + { + "name": "oe_test_libtdb_install_and_remove_libtdb-help" + }, + { + "name": "oe_test_libtdb_install_and_remove_libtdb-debuginfo" + }, + { + "name": "oe_test_libtdb_install_and_remove_libtdb-debugsource" + }, + { + "name": "oe_test_libtdb_install_and_remove_python2-tdb" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libteam.json b/suite2cases/libteam.json new file mode 100644 index 0000000000000000000000000000000000000000..0694123327cdfbf5adc958d10665564bea05e29d --- /dev/null +++ b/suite2cases/libteam.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libteam", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libteam_install_and_remove_libteam" + }, + { + "name": "oe_test_libteam_install_and_remove_libteam-devel" + }, + { + "name": "oe_test_libteam_install_and_remove_network-scripts-teamd" + }, + { + "name": "oe_test_libteam_install_and_remove_libteam-help" + }, + { + "name": "oe_test_libteam_install_and_remove_libteam-debuginfo" + }, + { + "name": "oe_test_libteam_install_and_remove_libteam-debugsource" + }, + { + "name": "oe_test_libteam_install_and_remove_python2-libteam" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libtevent.json b/suite2cases/libtevent.json new file mode 100644 index 0000000000000000000000000000000000000000..aca796c947cb65c4965475b63a31d12141614935 --- /dev/null +++ b/suite2cases/libtevent.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libtevent", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libtevent_install_and_remove_libtevent" + }, + { + "name": "oe_test_libtevent_install_and_remove_libtevent-devel" + }, + { + "name": "oe_test_libtevent_install_and_remove_python2-tevent" + }, + { + "name": "oe_test_libtevent_install_and_remove_python3-tevent" + }, + { + "name": "oe_test_libtevent_install_and_remove_libtevent-help" + }, + { + "name": "oe_test_libtevent_install_and_remove_libtevent-debugsource" + }, + { + "name": "oe_test_libtevent_install_and_remove_libtevent-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libthai.json b/suite2cases/libthai.json new file mode 100644 index 0000000000000000000000000000000000000000..08c0d1b03491701250c9c8dcda54b1060991026e --- /dev/null +++ b/suite2cases/libthai.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libthai", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libthai_install_and_remove_libthai" + }, + { + "name": "oe_test_libthai_install_and_remove_libthai-devel" + }, + { + "name": "oe_test_libthai_install_and_remove_libthai-static" + }, + { + "name": "oe_test_libthai_install_and_remove_libthai-debuginfo" + }, + { + "name": "oe_test_libthai_install_and_remove_libthai-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libtheora.json b/suite2cases/libtheora.json new file mode 100644 index 0000000000000000000000000000000000000000..14415d8f6b874b9946092013de84a7fdb9575e8a --- /dev/null +++ b/suite2cases/libtheora.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libtheora", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libtheora_install_and_remove_libtheora" + }, + { + "name": "oe_test_libtheora_install_and_remove_theora-tools" + }, + { + "name": "oe_test_libtheora_install_and_remove_libtheora-devel" + }, + { + "name": "oe_test_libtheora_install_and_remove_libtheora-help" + }, + { + "name": "oe_test_libtheora_install_and_remove_libtheora-debugsource" + }, + { + "name": "oe_test_libtheora_install_and_remove_libtheora-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libtiff.json b/suite2cases/libtiff.json index 4b72263ed5c841931d18e55853a601aab73f85b8..7c10690652c7789b390d915cf21d246ba2b1ffd2 100644 --- a/suite2cases/libtiff.json +++ b/suite2cases/libtiff.json @@ -1,8 +1,32 @@ { - "path": "$OET_PATH/testcases/cli-test/libtiff", - "cases": [ - { - "name": "oe_test_libtiff" - } - ] + "path": "$OET_PATH/testcases/cli-test/libtiff", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libtiff" + }, + { + "name": "oe_test_libtiff_install_and_remove_libtiff" + }, + { + "name": "oe_test_libtiff_install_and_remove_libtiff-devel" + }, + { + "name": "oe_test_libtiff_install_and_remove_libtiff-tools" + }, + { + "name": "oe_test_libtiff_install_and_remove_libtiff-static" + }, + { + "name": "oe_test_libtiff_install_and_remove_libtiff-debugsource" + }, + { + "name": "oe_test_libtiff_install_and_remove_libtiff-help" + }, + { + "name": "oe_test_libtiff_install_and_remove_libtiff-debuginfo" + } + ] } \ No newline at end of file diff --git a/suite2cases/libtirpc.json b/suite2cases/libtirpc.json new file mode 100644 index 0000000000000000000000000000000000000000..a104b72a363a0cb0bdf072bfe292e3d01910538e --- /dev/null +++ b/suite2cases/libtirpc.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libtirpc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libtirpc_install_and_remove_libtirpc" + }, + { + "name": "oe_test_libtirpc_install_and_remove_libtirpc-devel" + }, + { + "name": "oe_test_libtirpc_install_and_remove_libtirpc-debugsource" + }, + { + "name": "oe_test_libtirpc_install_and_remove_libtirpc-help" + }, + { + "name": "oe_test_libtirpc_install_and_remove_libtirpc-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libtommath.json b/suite2cases/libtommath.json index 08667a3468569f8c44494cdb7be41e8edba5e6be..b91f4e07cffc25ad458dbd853567eae0caca57db 100644 --- a/suite2cases/libtommath.json +++ b/suite2cases/libtommath.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/libtommath", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_libtommath" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/libtool.json b/suite2cases/libtool.json new file mode 100644 index 0000000000000000000000000000000000000000..9ef76a80f15bd6b70f2c03e828f88359c6d78501 --- /dev/null +++ b/suite2cases/libtool.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libtool", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libtool_install_and_remove_libtool" + }, + { + "name": "oe_test_libtool_install_and_remove_libtool-ltdl" + }, + { + "name": "oe_test_libtool_install_and_remove_libtool-devel" + }, + { + "name": "oe_test_libtool_install_and_remove_libtool-help" + }, + { + "name": "oe_test_libtool_install_and_remove_libtool-debuginfo" + }, + { + "name": "oe_test_libtool_install_and_remove_libtool-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libuninameslist.json b/suite2cases/libuninameslist.json new file mode 100644 index 0000000000000000000000000000000000000000..5ab60588bde5e607358910a7286885c2702052a2 --- /dev/null +++ b/suite2cases/libuninameslist.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libuninameslist", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libuninameslist_install_and_remove_libuninameslist" + }, + { + "name": "oe_test_libuninameslist_install_and_remove_libuninameslist-devel" + }, + { + "name": "oe_test_libuninameslist_install_and_remove_libuninameslist-help" + }, + { + "name": "oe_test_libuninameslist_install_and_remove_libuninameslist-debuginfo" + }, + { + "name": "oe_test_libuninameslist_install_and_remove_libuninameslist-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libunistring.json b/suite2cases/libunistring.json index 23deaecc8958553567002c48039be6c8dab58a4e..0b6fb96e612eadfacd11d18f8187d02594fcb079 100644 --- a/suite2cases/libunistring.json +++ b/suite2cases/libunistring.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/libunistring", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libunistring" + }, + { + "name": "oe_test_libunistring_install_and_remove_libunistring" + }, + { + "name": "oe_test_libunistring_install_and_remove_libunistring-devel" + }, + { + "name": "oe_test_libunistring_install_and_remove_libunistring-help" + }, + { + "name": "oe_test_libunistring_install_and_remove_libunistring-debugsource" + }, + { + "name": "oe_test_libunistring_install_and_remove_libunistring-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libunwind.json b/suite2cases/libunwind.json new file mode 100644 index 0000000000000000000000000000000000000000..5dca9ad8c885825108f7cf2690f5d07ee474e448 --- /dev/null +++ b/suite2cases/libunwind.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libunwind", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libunwind_install_and_remove_libunwind" + }, + { + "name": "oe_test_libunwind_install_and_remove_libunwind-devel" + }, + { + "name": "oe_test_libunwind_install_and_remove_libunwind-help" + }, + { + "name": "oe_test_libunwind_install_and_remove_libunwind-debuginfo" + }, + { + "name": "oe_test_libunwind_install_and_remove_libunwind-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/liburing.json b/suite2cases/liburing.json new file mode 100644 index 0000000000000000000000000000000000000000..3244c96f62418ca5176621aa5d02b9b57859fd2d --- /dev/null +++ b/suite2cases/liburing.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/liburing", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_liburing_install_and_remove_liburing" + }, + { + "name": "oe_test_liburing_install_and_remove_liburing-devel" + }, + { + "name": "oe_test_liburing_install_and_remove_liburing-debuginfo" + }, + { + "name": "oe_test_liburing_install_and_remove_liburing-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libusb.json b/suite2cases/libusb.json index 1b1039f098556a48649e282ca103e601f19ab950..b4b2fd229b2769edeb01b3dfa0b5ba1e891655b5 100644 --- a/suite2cases/libusb.json +++ b/suite2cases/libusb.json @@ -1,10 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/libusb", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libusb" + }, + { + "name": "oe_test_libusb_install_and_remove_libusb" + }, + { + "name": "oe_test_libusb_install_and_remove_libusb-devel" + }, + { + "name": "oe_test_libusb_install_and_remove_libusb-debuginfo" + }, + { + "name": "oe_test_libusb_install_and_remove_libusb-debugsource" + }, + { + "name": "oe_test_libusb_install_and_remove_libusb-tests-examples" } - - ] -} - + ] +} \ No newline at end of file diff --git a/suite2cases/libusbmuxd.json b/suite2cases/libusbmuxd.json new file mode 100644 index 0000000000000000000000000000000000000000..f74c93199d6c4f13e378418ec2d029452b24828c --- /dev/null +++ b/suite2cases/libusbmuxd.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libusbmuxd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libusbmuxd_install_and_remove_libusbmuxd" + }, + { + "name": "oe_test_libusbmuxd_install_and_remove_libusbmuxd-devel" + }, + { + "name": "oe_test_libusbmuxd_install_and_remove_libusbmuxd-debugsource" + }, + { + "name": "oe_test_libusbmuxd_install_and_remove_libusbmuxd-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libusbx.json b/suite2cases/libusbx.json new file mode 100644 index 0000000000000000000000000000000000000000..bb9f0df6016979d1833726ea0ac7663f91a4cebe --- /dev/null +++ b/suite2cases/libusbx.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libusbx", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libusbx_install_and_remove_libusbx" + }, + { + "name": "oe_test_libusbx_install_and_remove_libusbx-devel" + }, + { + "name": "oe_test_libusbx_install_and_remove_libusbx-debugsource" + }, + { + "name": "oe_test_libusbx_install_and_remove_libusbx-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libuser.json b/suite2cases/libuser.json new file mode 100644 index 0000000000000000000000000000000000000000..8dd8c0f5bf0c97528d82eff9baa17310f9bf2f72 --- /dev/null +++ b/suite2cases/libuser.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libuser", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libuser_install_and_remove_libuser" + }, + { + "name": "oe_test_libuser_install_and_remove_libuser-devel" + }, + { + "name": "oe_test_libuser_install_and_remove_libuser-python3" + }, + { + "name": "oe_test_libuser_install_and_remove_libuser-help" + }, + { + "name": "oe_test_libuser_install_and_remove_libuser-debuginfo" + }, + { + "name": "oe_test_libuser_install_and_remove_libuser-debugsource" + }, + { + "name": "oe_test_libuser_install_and_remove_python2-libuser" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libutempter.json b/suite2cases/libutempter.json new file mode 100644 index 0000000000000000000000000000000000000000..dbb95bfa3a35bf601b64129d7acafb68f3ddf5c8 --- /dev/null +++ b/suite2cases/libutempter.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libutempter", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libutempter_install_and_remove_libutempter" + }, + { + "name": "oe_test_libutempter_install_and_remove_libutempter-devel" + }, + { + "name": "oe_test_libutempter_install_and_remove_libutempter-help" + }, + { + "name": "oe_test_libutempter_install_and_remove_libutempter-debugsource" + }, + { + "name": "oe_test_libutempter_install_and_remove_libutempter-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libuv.json b/suite2cases/libuv.json new file mode 100644 index 0000000000000000000000000000000000000000..735c928ecec73d99232aeae548b0fc6cb0679ce1 --- /dev/null +++ b/suite2cases/libuv.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libuv", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libuv_install_and_remove_libuv" + }, + { + "name": "oe_test_libuv_install_and_remove_libuv-devel" + }, + { + "name": "oe_test_libuv_install_and_remove_libuv-help" + }, + { + "name": "oe_test_libuv_install_and_remove_libuv-debugsource" + }, + { + "name": "oe_test_libuv_install_and_remove_libuv-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libvdpau.json b/suite2cases/libvdpau.json new file mode 100644 index 0000000000000000000000000000000000000000..37af660238df128cc25ad1d1f8d3fd2245a22d6c --- /dev/null +++ b/suite2cases/libvdpau.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libvdpau", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libvdpau_install_and_remove_libvdpau" + }, + { + "name": "oe_test_libvdpau_install_and_remove_libvdpau-devel" + }, + { + "name": "oe_test_libvdpau_install_and_remove_libvdpau-debuginfo" + }, + { + "name": "oe_test_libvdpau_install_and_remove_libvdpau-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libverto.json b/suite2cases/libverto.json new file mode 100644 index 0000000000000000000000000000000000000000..e42922421f1923d5d7d92d2d0c21358b62cc1d8b --- /dev/null +++ b/suite2cases/libverto.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libverto", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libverto_install_and_remove_libverto" + }, + { + "name": "oe_test_libverto_install_and_remove_libverto-devel" + }, + { + "name": "oe_test_libverto_install_and_remove_libverto-debuginfo" + }, + { + "name": "oe_test_libverto_install_and_remove_libverto-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libvirt.json b/suite2cases/libvirt.json index 3a0b53a8d5d800b67bf5042f9b9adbc59ed86ebf..382d8d74a17c75be7ca053394f5d0d3890e7dbb2 100644 --- a/suite2cases/libvirt.json +++ b/suite2cases/libvirt.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libvirt", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_libvirtd" @@ -146,4 +148,4 @@ "name": "oe_test_target_virt-guest-shutdown" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libvisual.json b/suite2cases/libvisual.json new file mode 100644 index 0000000000000000000000000000000000000000..1d501b8e661f564dfb8a6449ff5ff3a6539a426f --- /dev/null +++ b/suite2cases/libvisual.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libvisual", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libvisual_install_and_remove_libvisual" + }, + { + "name": "oe_test_libvisual_install_and_remove_libvisual-devel" + }, + { + "name": "oe_test_libvisual_install_and_remove_libvisual-debuginfo" + }, + { + "name": "oe_test_libvisual_install_and_remove_libvisual-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libvma.json b/suite2cases/libvma.json index 73ea48bfcbdde2377e9941e963a8f189f815e3c3..558af3b4afad0fa2e6cf9b776b97f0f4ef64e308 100644 --- a/suite2cases/libvma.json +++ b/suite2cases/libvma.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/libvma", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_vma" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libvoikko.json b/suite2cases/libvoikko.json new file mode 100644 index 0000000000000000000000000000000000000000..f7956570f6809cfd67e14a247f65bde234e262df --- /dev/null +++ b/suite2cases/libvoikko.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libvoikko", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libvoikko_install_and_remove_libvoikko" + }, + { + "name": "oe_test_libvoikko_install_and_remove_libvoikko-help" + }, + { + "name": "oe_test_libvoikko_install_and_remove_libvoikko-devel" + }, + { + "name": "oe_test_libvoikko_install_and_remove_python3-libvoikko" + }, + { + "name": "oe_test_libvoikko_install_and_remove_libvoikko-debugsource" + }, + { + "name": "oe_test_libvoikko_install_and_remove_libvoikko-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libvorbis.json b/suite2cases/libvorbis.json new file mode 100644 index 0000000000000000000000000000000000000000..bd57a2b91272559018f9db4f3f2c6c1610475b61 --- /dev/null +++ b/suite2cases/libvorbis.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libvorbis", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libvorbis_install_and_remove_libvorbis" + }, + { + "name": "oe_test_libvorbis_install_and_remove_libvorbis-devel" + }, + { + "name": "oe_test_libvorbis_install_and_remove_libvorbis-help" + }, + { + "name": "oe_test_libvorbis_install_and_remove_libvorbis-debuginfo" + }, + { + "name": "oe_test_libvorbis_install_and_remove_libvorbis-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libvpx.json b/suite2cases/libvpx.json index 6c4643ff2f70684684efc2d06932e36eeb392e6c..c2af87a9ea075eb22b84f57593f67dc598d4f83c 100755 --- a/suite2cases/libvpx.json +++ b/suite2cases/libvpx.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libvpx", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_vpxenc_01" diff --git a/suite2cases/libwacom.json b/suite2cases/libwacom.json new file mode 100644 index 0000000000000000000000000000000000000000..97a4ce54608d7a1b0886ff5dd780a36c54744270 --- /dev/null +++ b/suite2cases/libwacom.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libwacom", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libwacom_install_and_remove_libwacom" + }, + { + "name": "oe_test_libwacom_install_and_remove_libwacom-devel" + }, + { + "name": "oe_test_libwacom_install_and_remove_libwacom-data" + }, + { + "name": "oe_test_libwacom_install_and_remove_libwacom-debuginfo" + }, + { + "name": "oe_test_libwacom_install_and_remove_libwacom-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libwbxml.json b/suite2cases/libwbxml.json index 88378f5bd54d9c6fff754d0cf537d28b26a7b45a..d50265d060743722dd5e58ce8bb363a4f31ef398 100644 --- a/suite2cases/libwbxml.json +++ b/suite2cases/libwbxml.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/libwbxml", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libwbxml_wbxml2xml" diff --git a/suite2cases/libwebp.json b/suite2cases/libwebp.json new file mode 100644 index 0000000000000000000000000000000000000000..a6cf2ec5d03663a899e485c6cb6dc0dcbd0c1c96 --- /dev/null +++ b/suite2cases/libwebp.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libwebp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libwebp_install_and_remove_libwebp" + }, + { + "name": "oe_test_libwebp_install_and_remove_libwebp-tools" + }, + { + "name": "oe_test_libwebp_install_and_remove_libwebp-devel" + }, + { + "name": "oe_test_libwebp_install_and_remove_libwebp-java" + }, + { + "name": "oe_test_libwebp_install_and_remove_libwebp-help" + }, + { + "name": "oe_test_libwebp_install_and_remove_libwebp-debuginfo" + }, + { + "name": "oe_test_libwebp_install_and_remove_libwebp-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libwmf.json b/suite2cases/libwmf.json index 1fe51c12cecd61513882550f13ee9ba6b1740070..e7c1ed31ca03ca7c3ac71b030f9ed7693866b137 100644 --- a/suite2cases/libwmf.json +++ b/suite2cases/libwmf.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/libwmf", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libwmf_libwmf-fontmap" @@ -33,6 +36,18 @@ }, { "name": "oe_test_libwmf_wmf2svg_02" + }, + { + "name": "oe_test_libwmf_install_and_remove_libwmf" + }, + { + "name": "oe_test_libwmf_install_and_remove_libwmf-devel" + }, + { + "name": "oe_test_libwmf_install_and_remove_libwmf-debugsource" + }, + { + "name": "oe_test_libwmf_install_and_remove_libwmf-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libwpe.json b/suite2cases/libwpe.json new file mode 100644 index 0000000000000000000000000000000000000000..8ebf84081558181bc01468229d141851e91ee7cb --- /dev/null +++ b/suite2cases/libwpe.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libwpe", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libwpe_install_and_remove_libwpe" + }, + { + "name": "oe_test_libwpe_install_and_remove_libwpe-devel" + }, + { + "name": "oe_test_libwpe_install_and_remove_libwpe-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libxcb.json b/suite2cases/libxcb.json new file mode 100644 index 0000000000000000000000000000000000000000..4e0cee7c7c7520e41ab4f7c3e0a46cb512bcaf39 --- /dev/null +++ b/suite2cases/libxcb.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libxcb", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libxcb_install_and_remove_libxcb" + }, + { + "name": "oe_test_libxcb_install_and_remove_libxcb-help" + }, + { + "name": "oe_test_libxcb_install_and_remove_libxcb-devel" + }, + { + "name": "oe_test_libxcb_install_and_remove_libxcb-debugsource" + }, + { + "name": "oe_test_libxcb_install_and_remove_libxcb-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libxcrypt.json b/suite2cases/libxcrypt.json new file mode 100644 index 0000000000000000000000000000000000000000..ddb31f1d5f85ec87c07922f02e5cde8202f503a6 --- /dev/null +++ b/suite2cases/libxcrypt.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libxcrypt", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libxcrypt_install_and_remove_libxcrypt" + }, + { + "name": "oe_test_libxcrypt_install_and_remove_libxcrypt-help" + }, + { + "name": "oe_test_libxcrypt_install_and_remove_libxcrypt-devel" + }, + { + "name": "oe_test_libxcrypt_install_and_remove_libxcrypt-doc" + }, + { + "name": "oe_test_libxcrypt_install_and_remove_libxcrypt-compat" + }, + { + "name": "oe_test_libxcrypt_install_and_remove_libxcrypt-static" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libxkbcommon.json b/suite2cases/libxkbcommon.json new file mode 100644 index 0000000000000000000000000000000000000000..1d77dd5f491cbaaea63ad61b1d98e07fdbaf76cc --- /dev/null +++ b/suite2cases/libxkbcommon.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libxkbcommon", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libxkbcommon_install_and_remove_libxkbcommon" + }, + { + "name": "oe_test_libxkbcommon_install_and_remove_libxkbcommon-devel" + }, + { + "name": "oe_test_libxkbcommon_install_and_remove_libxkbcommon-x11" + }, + { + "name": "oe_test_libxkbcommon_install_and_remove_libxkbcommon-utils" + }, + { + "name": "oe_test_libxkbcommon_install_and_remove_libxkbcommon-x11-devel" + }, + { + "name": "oe_test_libxkbcommon_install_and_remove_libxkbcommon-debugsource" + }, + { + "name": "oe_test_libxkbcommon_install_and_remove_libxkbcommon-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libxkbfile.json b/suite2cases/libxkbfile.json new file mode 100644 index 0000000000000000000000000000000000000000..523917c2223c2213a6e3b80a2d26f1ef5bd12ff8 --- /dev/null +++ b/suite2cases/libxkbfile.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libxkbfile", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libxkbfile_install_and_remove_libxkbfile" + }, + { + "name": "oe_test_libxkbfile_install_and_remove_libxkbfile-devel" + }, + { + "name": "oe_test_libxkbfile_install_and_remove_libxkbfile-debuginfo" + }, + { + "name": "oe_test_libxkbfile_install_and_remove_libxkbfile-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libxklavier.json b/suite2cases/libxklavier.json new file mode 100644 index 0000000000000000000000000000000000000000..8f8f7ee54c5650576da878856d9e06da34a9ae9c --- /dev/null +++ b/suite2cases/libxklavier.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libxklavier", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libxklavier_install_and_remove_libxklavier" + }, + { + "name": "oe_test_libxklavier_install_and_remove_libxklavier-devel" + }, + { + "name": "oe_test_libxklavier_install_and_remove_libxklavier-help" + }, + { + "name": "oe_test_libxklavier_install_and_remove_libxklavier-debuginfo" + }, + { + "name": "oe_test_libxklavier_install_and_remove_libxklavier-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libxml2.json b/suite2cases/libxml2.json new file mode 100644 index 0000000000000000000000000000000000000000..d47b21752f258d6094358147656495509606910b --- /dev/null +++ b/suite2cases/libxml2.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libxml2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libxml2_install_and_remove_libxml2" + }, + { + "name": "oe_test_libxml2_install_and_remove_python2-libxml2" + }, + { + "name": "oe_test_libxml2_install_and_remove_libxml2-help" + }, + { + "name": "oe_test_libxml2_install_and_remove_libxml2-devel" + }, + { + "name": "oe_test_libxml2_install_and_remove_python3-libxml2" + }, + { + "name": "oe_test_libxml2_install_and_remove_libxml2-debuginfo" + }, + { + "name": "oe_test_libxml2_install_and_remove_libxml2-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libxmlb.json b/suite2cases/libxmlb.json new file mode 100644 index 0000000000000000000000000000000000000000..8beaf62e14e634ae5eb10629c60e34378731cd0c --- /dev/null +++ b/suite2cases/libxmlb.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libxmlb", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libxmlb_install_and_remove_libxmlb" + }, + { + "name": "oe_test_libxmlb_install_and_remove_libxmlb-devel" + }, + { + "name": "oe_test_libxmlb_install_and_remove_libxmlb-debugsource" + }, + { + "name": "oe_test_libxmlb_install_and_remove_libxmlb-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libxpm.json b/suite2cases/libxpm.json index 484ceccfced831d21b8edc5b4dc50c62f835136c..5205d5cb05edeb56af9b21e56e4a79670669637b 100644 --- a/suite2cases/libxpm.json +++ b/suite2cases/libxpm.json @@ -1,8 +1,25 @@ { "path": "$OET_PATH/testcases/cli-test/libXpm", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libxpm" + }, + { + "name": "oe_test_libXpm_install_and_remove_libXpm" + }, + { + "name": "oe_test_libXpm_install_and_remove_libXpm-devel" + }, + { + "name": "oe_test_libXpm_install_and_remove_libXpm-debuginfo" + }, + { + "name": "oe_test_libXpm_install_and_remove_libXpm-debugsource" + }, + { + "name": "oe_test_libXpm_install_and_remove_libXpm-help" } ] } \ No newline at end of file diff --git a/suite2cases/libxshmfence.json b/suite2cases/libxshmfence.json new file mode 100644 index 0000000000000000000000000000000000000000..2fa918ddf9e88b3a42d5a16a67dcfbe636acb8cb --- /dev/null +++ b/suite2cases/libxshmfence.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/libxshmfence", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_libxshmfence_install_and_remove_libxshmfence" + }, + { + "name": "oe_test_libxshmfence_install_and_remove_libxshmfence-devel" + }, + { + "name": "oe_test_libxshmfence_install_and_remove_libxshmfence-help" + }, + { + "name": "oe_test_libxshmfence_install_and_remove_libxshmfence-debugsource" + }, + { + "name": "oe_test_libxshmfence_install_and_remove_libxshmfence-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/libxslt.json b/suite2cases/libxslt.json index 6b97e407298f225bfbbc293e36eab9bc73abd92e..573cb21be86b45039da850c7a091c3bebb74c002 100644 --- a/suite2cases/libxslt.json +++ b/suite2cases/libxslt.json @@ -1,8 +1,32 @@ { "path": "$OET_PATH/testcases/cli-test/libxslt", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libxslt" + }, + { + "name": "oe_test_libxslt_install_and_remove_libxslt" + }, + { + "name": "oe_test_libxslt_install_and_remove_python3-libxslt" + }, + { + "name": "oe_test_libxslt_install_and_remove_libxslt-devel" + }, + { + "name": "oe_test_libxslt_install_and_remove_libxslt-help" + }, + { + "name": "oe_test_libxslt_install_and_remove_libxslt-debuginfo" + }, + { + "name": "oe_test_libxslt_install_and_remove_libxslt-debugsource" + }, + { + "name": "oe_test_libxslt_install_and_remove_python2-libxslt" } ] -} +} \ No newline at end of file diff --git a/suite2cases/libyaml.json b/suite2cases/libyaml.json index 1d0b499069007a2e5ec70e9e8bf22f9d9db5a697..f895004c62a32a0f193197b6400ada9f192c3ec3 100644 --- a/suite2cases/libyaml.json +++ b/suite2cases/libyaml.json @@ -1,9 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/libyaml", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libyaml" + }, + { + "name": "oe_test_libyaml_install_and_remove_libyaml" + }, + { + "name": "oe_test_libyaml_install_and_remove_libyaml-devel" + }, + { + "name": "oe_test_libyaml_install_and_remove_libyaml-help" + }, + { + "name": "oe_test_libyaml_install_and_remove_libyaml-debugsource" + }, + { + "name": "oe_test_libyaml_install_and_remove_libyaml-debuginfo" } - - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/libzip.json b/suite2cases/libzip.json index 2a04e1541afe3e793fafa481ec801e8035ab8062..237687b9508da86d567f956d916410fe454086da 100644 --- a/suite2cases/libzip.json +++ b/suite2cases/libzip.json @@ -1,5 +1,7 @@ { "path": "\"${OET_PATH}\"/testcases/cli-test/libzip", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_libzip_zipcmp" diff --git a/suite2cases/lighttpd_1.4.53.json b/suite2cases/lighttpd_1.4.53.json index ac92020c094395178b5b409bfe71b9a081feb9b8..84976acf912640f03003054b91541463f3bd0520 100644 --- a/suite2cases/lighttpd_1.4.53.json +++ b/suite2cases/lighttpd_1.4.53.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/lighttpd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_lighttpd_1.4.53_service_lighttpd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/lighttpd_1.4.63.json b/suite2cases/lighttpd_1.4.63.json index 1dbb61a407fbc6136e060916ec1e5b5a9cb67da3..4984491b285e61118588180ba158873acf03481a 100644 --- a/suite2cases/lighttpd_1.4.63.json +++ b/suite2cases/lighttpd_1.4.63.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/lighttpd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_lighttpd_1.4.63_service_lighttpd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/linkchecker.json b/suite2cases/linkchecker.json index 139bcea6a79b31b3d7e88f540189d6d65eef6947..09e4053012223aacf2fce6959d1d19d8c4c8d604 100644 --- a/suite2cases/linkchecker.json +++ b/suite2cases/linkchecker.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/linkchecker", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_linkchecker" } ] -} +} \ No newline at end of file diff --git a/suite2cases/linux-firmware.json b/suite2cases/linux-firmware.json new file mode 100644 index 0000000000000000000000000000000000000000..8ff0ec234ed73e91a89dd1166ba61eced0d6ffec --- /dev/null +++ b/suite2cases/linux-firmware.json @@ -0,0 +1,35 @@ +{ + "path": "$OET_PATH/testcases/cli-test/linux-firmware", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_linux-firmware_install_and_remove_linux-firmware" + }, + { + "name": "oe_test_linux-firmware_install_and_remove_linux-firmware-mediatek" + }, + { + "name": "oe_test_linux-firmware_install_and_remove_linux-firmware-mrvl" + }, + { + "name": "oe_test_linux-firmware_install_and_remove_linux-firmware-ti-connectivity" + }, + { + "name": "oe_test_linux-firmware_install_and_remove_linux-firmware-ath" + }, + { + "name": "oe_test_linux-firmware_install_and_remove_linux-firmware-libertas" + }, + { + "name": "oe_test_linux-firmware_install_and_remove_linux-firmware-cypress" + }, + { + "name": "oe_test_linux-firmware_install_and_remove_linux-firmware-netronome" + }, + { + "name": "oe_test_linux-firmware_install_and_remove_linux-firmware-iwlwifi" + } + ] +} \ No newline at end of file diff --git a/suite2cases/linux-sgx.json b/suite2cases/linux-sgx.json index 15cc14d642b8bf4785a005715aa05d3a6a97b04c..e48557c90a8ae6abd6b2ba00138d113da5790d80 100644 --- a/suite2cases/linux-sgx.json +++ b/suite2cases/linux-sgx.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/linux-sgx", "machine type": "physical", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_remount-dev-exec", @@ -11,5 +13,4 @@ "machine type": "physical" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/linuxconsoletools.json b/suite2cases/linuxconsoletools.json index abc4d840ee3c26aaa2e3772a9fa81af6d073fa5c..74851b289e27dcc9eae91c205eaa12d859bb23f7 100644 --- a/suite2cases/linuxconsoletools.json +++ b/suite2cases/linuxconsoletools.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/linuxconsoletools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_linuxconsoletools_evdev-joystick" @@ -8,4 +10,4 @@ "name": "oe_test_linuxconsoletools" } ] -} +} \ No newline at end of file diff --git a/suite2cases/linuxdoc-tools.json b/suite2cases/linuxdoc-tools.json index ba03fe564420244b1bdb4c24e786f5fc5ca54635..adf3380a5a1abd03297e1957498da07dc7ece407 100644 --- a/suite2cases/linuxdoc-tools.json +++ b/suite2cases/linuxdoc-tools.json @@ -1,44 +1,59 @@ { "path": "$OET_PATH/testcases/cli-test/linuxdoc-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_linuxdoc-tools_01" }, - { + { "name": "oe_test_linuxdoc-tools_02" }, - { + { "name": "oe_test_linuxdoc-tools_03" }, - { + { "name": "oe_test_linuxdoc-tools_04" }, - { + { "name": "oe_test_linuxdoc-tools_05" }, - { + { "name": "oe_test_linuxdoc-tools_06" }, - { + { "name": "oe_test_linuxdoc-tools_07" }, - { + { "name": "oe_test_linuxdoc-tools_08" }, - { + { "name": "oe_test_linuxdoc-tools_09" }, - { + { "name": "oe_test_linuxdoc-tools_10" }, - { + { "name": "oe_test_linuxdoc-tools_11" }, - { + { "name": "oe_test_linuxdoc-tools_13" }, - { + { "name": "oe_test_linuxdoc-tools_14" + }, + { + "name": "oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools" + }, + { + "name": "oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-help" + }, + { + "name": "oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-debuginfo" + }, + { + "name": "oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/linuxptp.json b/suite2cases/linuxptp.json index d48817e69c346572a956c2ba404857e1d30c9db2..1c64b80ac59dab04c46a2ee5b5501168a56882a7 100644 --- a/suite2cases/linuxptp.json +++ b/suite2cases/linuxptp.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/linuxptp", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_phc2sys", @@ -25,4 +27,4 @@ "name": "oe_test_timemaster" } ] -} +} \ No newline at end of file diff --git a/suite2cases/lksctp-tools.json b/suite2cases/lksctp-tools.json index 73160e21934c94b8f200f17039815fe16935b909..f16d3aa8a898296e5681579c85ba17ed888cb406 100644 --- a/suite2cases/lksctp-tools.json +++ b/suite2cases/lksctp-tools.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/lksctp-tools", - + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_lksctp-tools_checksctp" @@ -16,6 +18,21 @@ }, { "name": "oe_test_lksctp-tools_sctp_test" + }, + { + "name": "oe_test_lksctp-tools_install_and_remove_lksctp-tools" + }, + { + "name": "oe_test_lksctp-tools_install_and_remove_lksctp-tools-devel" + }, + { + "name": "oe_test_lksctp-tools_install_and_remove_lksctp-tools-help" + }, + { + "name": "oe_test_lksctp-tools_install_and_remove_lksctp-tools-debuginfo" + }, + { + "name": "oe_test_lksctp-tools_install_and_remove_lksctp-tools-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/lldpad.json b/suite2cases/lldpad.json index a738b56be74e780241b2cf756698c5a873f73cf8..c09bb12bde601ffe9a0801ad061f53bf2b0c66c4 100644 --- a/suite2cases/lldpad.json +++ b/suite2cases/lldpad.json @@ -1,11 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/lldpad", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_lldpad" }, { "name": "oe_test_socket_lldpad" + }, + { + "name": "oe_test_lldpad_install_and_remove_lldpad" + }, + { + "name": "oe_test_lldpad_install_and_remove_lldpad-devel" + }, + { + "name": "oe_test_lldpad_install_and_remove_lldpad-help" + }, + { + "name": "oe_test_lldpad_install_and_remove_lldpad-debugsource" + }, + { + "name": "oe_test_lldpad_install_and_remove_lldpad-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/llvm.json b/suite2cases/llvm.json new file mode 100644 index 0000000000000000000000000000000000000000..df044f01c63aeb2e1c3b3ebc51255eee1f3d39b0 --- /dev/null +++ b/suite2cases/llvm.json @@ -0,0 +1,41 @@ +{ + "path": "$OET_PATH/testcases/cli-test/llvm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_llvm_install_and_remove_llvm" + }, + { + "name": "oe_test_llvm_install_and_remove_llvm-help" + }, + { + "name": "oe_test_llvm_install_and_remove_llvm-libs" + }, + { + "name": "oe_test_llvm_install_and_remove_llvm-devel" + }, + { + "name": "oe_test_llvm_install_and_remove_llvm-doc" + }, + { + "name": "oe_test_llvm_install_and_remove_llvm-googletest" + }, + { + "name": "oe_test_llvm_install_and_remove_llvm-static" + }, + { + "name": "oe_test_llvm_install_and_remove_llvm-cmake-utils" + }, + { + "name": "oe_test_llvm_install_and_remove_llvm-test" + }, + { + "name": "oe_test_llvm_install_and_remove_llvm-debugsource" + }, + { + "name": "oe_test_llvm_install_and_remove_llvm-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lm_sensors.json b/suite2cases/lm_sensors.json index 1d4889e71cca7ef4d6c9ae373ed672b2d19d043e..ec08bd070ecf741e21fdcf74463b086f24ea6a5e 100644 --- a/suite2cases/lm_sensors.json +++ b/suite2cases/lm_sensors.json @@ -1,6 +1,9 @@ { "path": "$OET_PATH/testcases/cli-test/lm_sensors", "machine type": "physical", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_fancontrol", @@ -12,6 +15,24 @@ }, { "name": "oe_test_service_sensord" + }, + { + "name": "oe_test_lm_sensors_install_and_remove_lm_sensors" + }, + { + "name": "oe_test_lm_sensors_install_and_remove_lm_sensors-help" + }, + { + "name": "oe_test_lm_sensors_install_and_remove_lm_sensors-sensord" + }, + { + "name": "oe_test_lm_sensors_install_and_remove_lm_sensors-devel" + }, + { + "name": "oe_test_lm_sensors_install_and_remove_lm_sensors-debuginfo" + }, + { + "name": "oe_test_lm_sensors_install_and_remove_lm_sensors-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/lmbench_cpu.json b/suite2cases/lmbench_cpu.json new file mode 100644 index 0000000000000000000000000000000000000000..493919ce55d41b5f7ffd6de57d34ff93130ac69a --- /dev/null +++ b/suite2cases/lmbench_cpu.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/cpu/lmbench_cpu", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_lmbench_cpu" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lmbench_file_system.json b/suite2cases/lmbench_file_system.json new file mode 100644 index 0000000000000000000000000000000000000000..74b7d500d59d3db28cd1232b9c67ade5edad9e33 --- /dev/null +++ b/suite2cases/lmbench_file_system.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/file_system/lmbench_file_system", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_lmbench_file_system" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lmbench_io.json b/suite2cases/lmbench_io.json new file mode 100644 index 0000000000000000000000000000000000000000..e384573c4607e38abb54ea92f182c2d399607180 --- /dev/null +++ b/suite2cases/lmbench_io.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/io/lmbench_io", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_lmbench_io" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lmbench_memory.json b/suite2cases/lmbench_memory.json new file mode 100644 index 0000000000000000000000000000000000000000..941552b4550aecf968e3d09415fdfa2476b7b868 --- /dev/null +++ b/suite2cases/lmbench_memory.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/memory/lmbench_memory", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_lmbench_memory" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lmbench_syscall.json b/suite2cases/lmbench_syscall.json new file mode 100644 index 0000000000000000000000000000000000000000..85720f70577911f4ee51fb26fd8c4b5cfa5ab74f --- /dev/null +++ b/suite2cases/lmbench_syscall.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/syscall/lmbench_syscall", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_lmbench_syscall" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lmdb.json b/suite2cases/lmdb.json index a9e4f9a5ba7b7f2fb73c806d65ec5561d7dc13fc..72aa17dbf0929b8e36a4a408253b52bc6bfebe35 100644 --- a/suite2cases/lmdb.json +++ b/suite2cases/lmdb.json @@ -1,8 +1,26 @@ { - "path": "$OET_PATH/testcases/cli-test/lmdb", - "cases": [ - { - "name": "oe_test_lmdb" - } - ] + "path": "$OET_PATH/testcases/cli-test/lmdb", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_lmdb" + }, + { + "name": "oe_test_lmdb_install_and_remove_lmdb" + }, + { + "name": "oe_test_lmdb_install_and_remove_lmdb-devel" + }, + { + "name": "oe_test_lmdb_install_and_remove_lmdb-help" + }, + { + "name": "oe_test_lmdb_install_and_remove_lmdb-debuginfo" + }, + { + "name": "oe_test_lmdb_install_and_remove_lmdb-debugsource" + } + ] } \ No newline at end of file diff --git a/suite2cases/log4cplus.json b/suite2cases/log4cplus.json index 16d89426d2c7b23f71adcac760a5d9aaac818238..2414d8669c739c4c3d7e3450a473357c0fcf5f7e 100644 --- a/suite2cases/log4cplus.json +++ b/suite2cases/log4cplus.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/log4cplus", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_log4cplus" } ] -} +} \ No newline at end of file diff --git a/suite2cases/logrotate.json b/suite2cases/logrotate.json new file mode 100644 index 0000000000000000000000000000000000000000..3d86267b6a018a7dabf3f08e1dfbf88a50a89d40 --- /dev/null +++ b/suite2cases/logrotate.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/logrotate", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_logrotate_install_and_remove_logrotate" + }, + { + "name": "oe_test_logrotate_install_and_remove_logrotate-help" + }, + { + "name": "oe_test_logrotate_install_and_remove_logrotate-debuginfo" + }, + { + "name": "oe_test_logrotate_install_and_remove_logrotate-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/logwatch.json b/suite2cases/logwatch.json index b61732f1f8bf5445c675b4389c6ffe4a5531be50..36344712a395b49ee4758f6ab9d20796dbe721c4 100644 --- a/suite2cases/logwatch.json +++ b/suite2cases/logwatch.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/logwatch", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_logwatch" diff --git a/suite2cases/lorax.json b/suite2cases/lorax.json index 002fb63936c4e9e293435fecd0c251c678d05b5e..47ad6172e4995b260b0c68cebcbf5fb2a26fee0f 100644 --- a/suite2cases/lorax.json +++ b/suite2cases/lorax.json @@ -1,11 +1,32 @@ { "path": "$OET_PATH/testcases/cli-test/lorax", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_lorax-composer" }, { "name": "oe_test_socket_lorax-composer" + }, + { + "name": "oe_test_lorax_install_and_remove_lorax" + }, + { + "name": "oe_test_lorax_install_and_remove_lorax-composer" + }, + { + "name": "oe_test_lorax_install_and_remove_lorax-lmc-virt" + }, + { + "name": "oe_test_lorax_install_and_remove_lorax-lmc-novirt" + }, + { + "name": "oe_test_lorax_install_and_remove_composer-cli" + }, + { + "name": "oe_test_lorax_install_and_remove_lorax-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/lshw.json b/suite2cases/lshw.json new file mode 100644 index 0000000000000000000000000000000000000000..0b2026eaf784db3312df2bbc12ce59e10e02d88e --- /dev/null +++ b/suite2cases/lshw.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/lshw", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_lshw_install_and_remove_lshw" + }, + { + "name": "oe_test_lshw_install_and_remove_lshw-help" + }, + { + "name": "oe_test_lshw_install_and_remove_lshw-debugsource" + }, + { + "name": "oe_test_lshw_install_and_remove_lshw-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lsof.json b/suite2cases/lsof.json new file mode 100644 index 0000000000000000000000000000000000000000..4c12ad8d9403dcdc6b5d6f944a1ad6a7f17bf422 --- /dev/null +++ b/suite2cases/lsof.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/lsof", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_lsof_install_and_remove_lsof" + }, + { + "name": "oe_test_lsof_install_and_remove_lsof-help" + }, + { + "name": "oe_test_lsof_install_and_remove_lsof-debuginfo" + }, + { + "name": "oe_test_lsof_install_and_remove_lsof-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lsscsi.json b/suite2cases/lsscsi.json new file mode 100644 index 0000000000000000000000000000000000000000..3baf047542957e732e032b23756e918f554d8890 --- /dev/null +++ b/suite2cases/lsscsi.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/lsscsi", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_lsscsi_install_and_remove_lsscsi" + }, + { + "name": "oe_test_lsscsi_install_and_remove_lsscsi-help" + }, + { + "name": "oe_test_lsscsi_install_and_remove_lsscsi-debuginfo" + }, + { + "name": "oe_test_lsscsi_install_and_remove_lsscsi-debugsource" + }, + { + "name": "oe_test_lsscsi_install_and_remove_lsscsi-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lsyncd.json b/suite2cases/lsyncd.json index 70f235c9e8dbb43ee32d8e0e0358bc2aae67c8ed..ee28aef57bd71f5351f34643cf5eb77b7d6b4e92 100644 --- a/suite2cases/lsyncd.json +++ b/suite2cases/lsyncd.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/lsyncd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_lsyncd" @@ -17,4 +19,4 @@ "name": "oe_test_command_lsyncd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ltp.json b/suite2cases/ltp.json index d57dac76cc8d28b7c4e2dfe9b8ea8d2afe4c12ed..10678410efc4de73b3671facd471c539935f5ff5 100644 --- a/suite2cases/ltp.json +++ b/suite2cases/ltp.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/system-test/ltp-test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ltp" @@ -8,4 +10,4 @@ "name": "oe_test_posix" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ltp_can.json b/suite2cases/ltp_can.json new file mode 100644 index 0000000000000000000000000000000000000000..8e89e6a63cf8d2397bc9cb1d1d92a34db0121adb --- /dev/null +++ b/suite2cases/ltp_can.json @@ -0,0 +1,16 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_can", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_can_can_filter" + }, + { + "name": "oe_test_ltp_can_can_rcv_own_msgs" + }, + { + "name": "oe_test_ltp_can_can_bcm01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_cap_bounds.json b/suite2cases/ltp_cap_bounds.json new file mode 100644 index 0000000000000000000000000000000000000000..09c0889ae767a623f0a6aff359b949788bfc6b40 --- /dev/null +++ b/suite2cases/ltp_cap_bounds.json @@ -0,0 +1,10 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_cap_bounds", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_cap_bounds_Cap_bounds" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_commands.json b/suite2cases/ltp_commands.json new file mode 100644 index 0000000000000000000000000000000000000000..ff3a18004eb8757fd6447f232979aa101408b4e6 --- /dev/null +++ b/suite2cases/ltp_commands.json @@ -0,0 +1,118 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_commands", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_commands_ar_sh" + }, + { + "name": "oe_test_ltp_commands_ld01_sh" + }, + { + "name": "oe_test_ltp_commands_ldd01_sh" + }, + { + "name": "oe_test_ltp_commands_nm01_sh" + }, + { + "name": "oe_test_ltp_commands_file01_sh" + }, + { + "name": "oe_test_ltp_commands_tar01_sh" + }, + { + "name": "oe_test_ltp_commands_logrotate_sh" + }, + { + "name": "oe_test_ltp_commands_cpio01_sh" + }, + { + "name": "oe_test_ltp_commands_unzip01_sh" + }, + { + "name": "oe_test_ltp_commands_gzip01_sh" + }, + { + "name": "oe_test_ltp_commands_cp01_sh" + }, + { + "name": "oe_test_ltp_commands_ln01_sh" + }, + { + "name": "oe_test_ltp_commands_mkdir01_sh" + }, + { + "name": "oe_test_ltp_commands_mv01_sh" + }, + { + "name": "oe_test_ltp_commands_du01_sh" + }, + { + "name": "oe_test_ltp_commands_df01_sh" + }, + { + "name": "oe_test_ltp_commands_mkfs01_sh" + }, + { + "name": "oe_test_ltp_commands_mkfs01_ext2_sh" + }, + { + "name": "oe_test_ltp_commands_mkfs01_ext3_sh" + }, + { + "name": "oe_test_ltp_commands_mkfs01_ext4_sh" + }, + { + "name": "oe_test_ltp_commands_mkfs01_xfs_sh" + }, + { + "name": "oe_test_ltp_commands_mkfs01_btrfs_sh" + }, + { + "name": "oe_test_ltp_commands_mkfs01_minix_sh" + }, + { + "name": "oe_test_ltp_commands_mkfs01_msdos_sh" + }, + { + "name": "oe_test_ltp_commands_mkfs01_vfat_sh" + }, + { + "name": "oe_test_ltp_commands_mkfs01_ntfs_sh" + }, + { + "name": "oe_test_ltp_commands_mkswap01_sh" + }, + { + "name": "oe_test_ltp_commands_which01_sh" + }, + { + "name": "oe_test_ltp_commands_lsmod01_sh" + }, + { + "name": "oe_test_ltp_commands_insmod01_sh" + }, + { + "name": "oe_test_ltp_commands_wc01_sh" + }, + { + "name": "oe_test_ltp_commands_keyctl01_sh" + }, + { + "name": "oe_test_ltp_commands_gdb01_sh" + }, + { + "name": "oe_test_ltp_commands_unshare01_sh" + }, + { + "name": "oe_test_ltp_commands_sysctl01_sh" + }, + { + "name": "oe_test_ltp_commands_sysctl02_sh" + }, + { + "name": "oe_test_ltp_commands_shell_test01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_containers.json b/suite2cases/ltp_containers.json new file mode 100644 index 0000000000000000000000000000000000000000..db1d4d33d53e632b1de04fd2b0621f3b48338703 --- /dev/null +++ b/suite2cases/ltp_containers.json @@ -0,0 +1,259 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_containers", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_containers_pidns01" + }, + { + "name": "oe_test_ltp_containers_pidns02" + }, + { + "name": "oe_test_ltp_containers_pidns03" + }, + { + "name": "oe_test_ltp_containers_pidns04" + }, + { + "name": "oe_test_ltp_containers_pidns05" + }, + { + "name": "oe_test_ltp_containers_pidns06" + }, + { + "name": "oe_test_ltp_containers_pidns10" + }, + { + "name": "oe_test_ltp_containers_pidns12" + }, + { + "name": "oe_test_ltp_containers_pidns13" + }, + { + "name": "oe_test_ltp_containers_pidns16" + }, + { + "name": "oe_test_ltp_containers_pidns17" + }, + { + "name": "oe_test_ltp_containers_pidns20" + }, + { + "name": "oe_test_ltp_containers_pidns30" + }, + { + "name": "oe_test_ltp_containers_pidns31" + }, + { + "name": "oe_test_ltp_containers_pidns32" + }, + { + "name": "oe_test_ltp_containers_mqns_01" + }, + { + "name": "oe_test_ltp_containers_mqns_01_clone" + }, + { + "name": "oe_test_ltp_containers_mqns_01_unshare" + }, + { + "name": "oe_test_ltp_containers_mqns_02" + }, + { + "name": "oe_test_ltp_containers_mqns_02_clone" + }, + { + "name": "oe_test_ltp_containers_mqns_02_unshare" + }, + { + "name": "oe_test_ltp_containers_mqns_03_unshare" + }, + { + "name": "oe_test_ltp_containers_mqns_03_clone" + }, + { + "name": "oe_test_ltp_containers_mqns_04_unshare" + }, + { + "name": "oe_test_ltp_containers_mqns_04_clone" + }, + { + "name": "oe_test_ltp_containers_netns_netlink" + }, + { + "name": "oe_test_ltp_containers_netns_breakns_ip_ipv4_netlink" + }, + { + "name": "oe_test_ltp_containers_netns_breakns_ip_ipv6_netlink" + }, + { + "name": "oe_test_ltp_containers_netns_breakns_ip_ipv4_ioctl" + }, + { + "name": "oe_test_ltp_containers_netns_breakns_ip_ipv6_ioctl" + }, + { + "name": "oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_netlink" + }, + { + "name": "oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_netlink" + }, + { + "name": "oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_ioctl" + }, + { + "name": "oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_ioctl" + }, + { + "name": "oe_test_ltp_containers_netns_comm_ip_ipv4_netlink" + }, + { + "name": "oe_test_ltp_containers_netns_comm_ip_ipv6_netlink" + }, + { + "name": "oe_test_ltp_containers_netns_comm_ip_ipv4_ioctl" + }, + { + "name": "oe_test_ltp_containers_netns_comm_ip_ipv6_ioctl" + }, + { + "name": "oe_test_ltp_containers_netns_comm_ns_exec_ipv4_netlink" + }, + { + "name": "oe_test_ltp_containers_netns_comm_ns_exec_ipv6_netlink" + }, + { + "name": "oe_test_ltp_containers_netns_comm_ns_exec_ipv4_ioctl" + }, + { + "name": "oe_test_ltp_containers_netns_comm_ns_exec_ipv6_ioctl" + }, + { + "name": "oe_test_ltp_containers_netns_sysfs" + }, + { + "name": "oe_test_ltp_containers_shmnstest_none" + }, + { + "name": "oe_test_ltp_containers_shmnstest_clone" + }, + { + "name": "oe_test_ltp_containers_shmnstest_unshare" + }, + { + "name": "oe_test_ltp_containers_shmem_2nstest_none" + }, + { + "name": "oe_test_ltp_containers_shmem_2nstest_clone" + }, + { + "name": "oe_test_ltp_containers_shmem_2nstest_unshare" + }, + { + "name": "oe_test_ltp_containers_shm_comm" + }, + { + "name": "oe_test_ltp_containers_mesgq_nstest_none" + }, + { + "name": "oe_test_ltp_containers_mesgq_nstest_clone" + }, + { + "name": "oe_test_ltp_containers_mesgq_nstest_unshare" + }, + { + "name": "oe_test_ltp_containers_msg_comm" + }, + { + "name": "oe_test_ltp_containers_sem_nstest_none" + }, + { + "name": "oe_test_ltp_containers_sem_nstest_clone" + }, + { + "name": "oe_test_ltp_containers_sem_nstest_unshare" + }, + { + "name": "oe_test_ltp_containers_semtest_2ns_none" + }, + { + "name": "oe_test_ltp_containers_semtest_2ns_clone" + }, + { + "name": "oe_test_ltp_containers_semtest_2ns_unshare" + }, + { + "name": "oe_test_ltp_containers_sem_comm" + }, + { + "name": "oe_test_ltp_containers_utsname01" + }, + { + "name": "oe_test_ltp_containers_utsname02" + }, + { + "name": "oe_test_ltp_containers_utsname03_clone" + }, + { + "name": "oe_test_ltp_containers_utsname03_unshare" + }, + { + "name": "oe_test_ltp_containers_utsname04_clone" + }, + { + "name": "oe_test_ltp_containers_utsname04_unshare" + }, + { + "name": "oe_test_ltp_containers_mountns01" + }, + { + "name": "oe_test_ltp_containers_mountns02" + }, + { + "name": "oe_test_ltp_containers_mountns03" + }, + { + "name": "oe_test_ltp_containers_mountns04" + }, + { + "name": "oe_test_ltp_containers_userns01" + }, + { + "name": "oe_test_ltp_containers_userns02" + }, + { + "name": "oe_test_ltp_containers_userns03" + }, + { + "name": "oe_test_ltp_containers_userns04" + }, + { + "name": "oe_test_ltp_containers_userns05" + }, + { + "name": "oe_test_ltp_containers_userns06" + }, + { + "name": "oe_test_ltp_containers_userns07" + }, + { + "name": "oe_test_ltp_containers_userns08" + }, + { + "name": "oe_test_ltp_containers_sysinfo03" + }, + { + "name": "oe_test_ltp_containers_clock_nanosleep03" + }, + { + "name": "oe_test_ltp_containers_clock_gettime03" + }, + { + "name": "oe_test_ltp_containers_timens01" + }, + { + "name": "oe_test_ltp_containers_timerfd04" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_controllers.json b/suite2cases/ltp_controllers.json new file mode 100644 index 0000000000000000000000000000000000000000..30feed40028fc26d61275ebdca0a0e596911b575 --- /dev/null +++ b/suite2cases/ltp_controllers.json @@ -0,0 +1,1048 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_controllers", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_controllers_cgroup_core01" + }, + { + "name": "oe_test_ltp_controllers_cgroup_core02" + }, + { + "name": "oe_test_ltp_controllers_cgroup_core03" + }, + { + "name": "oe_test_ltp_controllers_cgroup" + }, + { + "name": "oe_test_ltp_controllers_memcg_regression" + }, + { + "name": "oe_test_ltp_controllers_memcg_test_3" + }, + { + "name": "oe_test_ltp_controllers_memcg_failcnt" + }, + { + "name": "oe_test_ltp_controllers_memcg_force_empty" + }, + { + "name": "oe_test_ltp_controllers_memcg_limit_in_bytes" + }, + { + "name": "oe_test_ltp_controllers_memcg_stat_rss" + }, + { + "name": "oe_test_ltp_controllers_memcg_subgroup_charge" + }, + { + "name": "oe_test_ltp_controllers_memcg_max_usage_in_bytes" + }, + { + "name": "oe_test_ltp_controllers_memcg_move_charge_at_immigrate" + }, + { + "name": "oe_test_ltp_controllers_memcg_memsw_limit_in_bytes" + }, + { + "name": "oe_test_ltp_controllers_memcg_stat" + }, + { + "name": "oe_test_ltp_controllers_memcg_use_hierarchy" + }, + { + "name": "oe_test_ltp_controllers_memcg_usage_in_bytes" + }, + { + "name": "oe_test_ltp_controllers_memcg_stress" + }, + { + "name": "oe_test_ltp_controllers_memcg_control" + }, + { + "name": "oe_test_ltp_controllers_memcontrol01" + }, + { + "name": "oe_test_ltp_controllers_memcontrol02" + }, + { + "name": "oe_test_ltp_controllers_memcontrol03" + }, + { + "name": "oe_test_ltp_controllers_memcontrol04" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_debug" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_cpuset" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_cpu" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_cpuacct" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_memory" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_freezer" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_devices" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_blkio" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_net_cls" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_perf_event" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_net_prio" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_function_hugetlb" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_none" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_one" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_each" + }, + { + "name": "oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_each" + }, + { + "name": "oe_test_ltp_controllers_controllers" + }, + { + "name": "oe_test_ltp_controllers_cpuacct_1_1" + }, + { + "name": "oe_test_ltp_controllers_cpuacct_1_10" + }, + { + "name": "oe_test_ltp_controllers_cpuacct_10_10" + }, + { + "name": "oe_test_ltp_controllers_cpuacct_1_100" + }, + { + "name": "oe_test_ltp_controllers_cpuacct_100_1" + }, + { + "name": "oe_test_ltp_controllers_cpuacct_100_100" + }, + { + "name": "oe_test_ltp_controllers_cpuset_base_ops" + }, + { + "name": "oe_test_ltp_controllers_cpuset_inherit" + }, + { + "name": "oe_test_ltp_controllers_cpuset_exclusive" + }, + { + "name": "oe_test_ltp_controllers_cpuset_hierarchy" + }, + { + "name": "oe_test_ltp_controllers_cpuset_syscall" + }, + { + "name": "oe_test_ltp_controllers_cpuset_sched_domains" + }, + { + "name": "oe_test_ltp_controllers_cpuset_load_balance" + }, + { + "name": "oe_test_ltp_controllers_cpuset_hotplug" + }, + { + "name": "oe_test_ltp_controllers_cpuset_memory" + }, + { + "name": "oe_test_ltp_controllers_cpuset_memory_pressure" + }, + { + "name": "oe_test_ltp_controllers_cpuset_memory_spread" + }, + { + "name": "oe_test_ltp_controllers_cpuset_regression_test" + }, + { + "name": "oe_test_ltp_controllers_cgroup_xattr" + }, + { + "name": "oe_test_ltp_controllers_io_control01" + }, + { + "name": "oe_test_ltp_controllers_pids_1_1" + }, + { + "name": "oe_test_ltp_controllers_pids_1_2" + }, + { + "name": "oe_test_ltp_controllers_pids_1_10" + }, + { + "name": "oe_test_ltp_controllers_pids_1_50" + }, + { + "name": "oe_test_ltp_controllers_pids_1_100" + }, + { + "name": "oe_test_ltp_controllers_pids_2_1" + }, + { + "name": "oe_test_ltp_controllers_pids_2_2" + }, + { + "name": "oe_test_ltp_controllers_pids_2_10" + }, + { + "name": "oe_test_ltp_controllers_pids_2_50" + }, + { + "name": "oe_test_ltp_controllers_pids_2_100" + }, + { + "name": "oe_test_ltp_controllers_pids_3_0" + }, + { + "name": "oe_test_ltp_controllers_pids_3_1" + }, + { + "name": "oe_test_ltp_controllers_pids_3_10" + }, + { + "name": "oe_test_ltp_controllers_pids_3_50" + }, + { + "name": "oe_test_ltp_controllers_pids_3_100" + }, + { + "name": "oe_test_ltp_controllers_pids_4_1" + }, + { + "name": "oe_test_ltp_controllers_pids_4_2" + }, + { + "name": "oe_test_ltp_controllers_pids_4_10" + }, + { + "name": "oe_test_ltp_controllers_pids_4_50" + }, + { + "name": "oe_test_ltp_controllers_pids_4_100" + }, + { + "name": "oe_test_ltp_controllers_pids_5_1" + }, + { + "name": "oe_test_ltp_controllers_pids_6_1" + }, + { + "name": "oe_test_ltp_controllers_pids_6_2" + }, + { + "name": "oe_test_ltp_controllers_pids_6_10" + }, + { + "name": "oe_test_ltp_controllers_pids_6_50" + }, + { + "name": "oe_test_ltp_controllers_pids_6_100" + }, + { + "name": "oe_test_ltp_controllers_pids_7_10" + }, + { + "name": "oe_test_ltp_controllers_pids_7_50" + }, + { + "name": "oe_test_ltp_controllers_pids_7_100" + }, + { + "name": "oe_test_ltp_controllers_pids_7_500" + }, + { + "name": "oe_test_ltp_controllers_pids_7_1000" + }, + { + "name": "oe_test_ltp_controllers_pids_8_2" + }, + { + "name": "oe_test_ltp_controllers_pids_8_10" + }, + { + "name": "oe_test_ltp_controllers_pids_8_50" + }, + { + "name": "oe_test_ltp_controllers_pids_8_100" + }, + { + "name": "oe_test_ltp_controllers_pids_9_2" + }, + { + "name": "oe_test_ltp_controllers_pids_9_10" + }, + { + "name": "oe_test_ltp_controllers_pids_9_50" + }, + { + "name": "oe_test_ltp_controllers_pids_9_100" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_cpuhotplug.json b/suite2cases/ltp_cpuhotplug.json new file mode 100644 index 0000000000000000000000000000000000000000..1eb0d679e3dcc3dd704e83740f62e487a5f341fd --- /dev/null +++ b/suite2cases/ltp_cpuhotplug.json @@ -0,0 +1,25 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_cpuhotplug", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_cpuhotplug_cpuhotplug02" + }, + { + "name": "oe_test_ltp_cpuhotplug_cpuhotplug03" + }, + { + "name": "oe_test_ltp_cpuhotplug_cpuhotplug04" + }, + { + "name": "oe_test_ltp_cpuhotplug_cpuhotplug05" + }, + { + "name": "oe_test_ltp_cpuhotplug_cpuhotplug06" + }, + { + "name": "oe_test_ltp_cpuhotplug_cpuhotplug07" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_crypto.json b/suite2cases/ltp_crypto.json new file mode 100644 index 0000000000000000000000000000000000000000..b541505f2e2e32ea00a3535f65a618e6c95ba750 --- /dev/null +++ b/suite2cases/ltp_crypto.json @@ -0,0 +1,37 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_crypto", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_crypto_af_alg01" + }, + { + "name": "oe_test_ltp_crypto_af_alg02" + }, + { + "name": "oe_test_ltp_crypto_af_alg03" + }, + { + "name": "oe_test_ltp_crypto_af_alg04" + }, + { + "name": "oe_test_ltp_crypto_af_alg05" + }, + { + "name": "oe_test_ltp_crypto_af_alg06" + }, + { + "name": "oe_test_ltp_crypto_af_alg07" + }, + { + "name": "oe_test_ltp_crypto_pcrypt_aead01" + }, + { + "name": "oe_test_ltp_crypto_crypto_user01" + }, + { + "name": "oe_test_ltp_crypto_crypto_user02" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_cve.json b/suite2cases/ltp_cve.json new file mode 100644 index 0000000000000000000000000000000000000000..bebaf7f469d99e5792b368d914d769e82d43d13b --- /dev/null +++ b/suite2cases/ltp_cve.json @@ -0,0 +1,280 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_cve", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_cve_cve-2011-0999" + }, + { + "name": "oe_test_ltp_cve_cve-2011-2183" + }, + { + "name": "oe_test_ltp_cve_cve-2011-2496" + }, + { + "name": "oe_test_ltp_cve_cve-2012-0957" + }, + { + "name": "oe_test_ltp_cve_cve-2014-0196" + }, + { + "name": "oe_test_ltp_cve_cve-2015-0235" + }, + { + "name": "oe_test_ltp_cve_cve-2015-3290" + }, + { + "name": "oe_test_ltp_cve_cve-2015-7550" + }, + { + "name": "oe_test_ltp_cve_cve-2016-4470" + }, + { + "name": "oe_test_ltp_cve_cve-2016-4997" + }, + { + "name": "oe_test_ltp_cve_cve-2016-5195" + }, + { + "name": "oe_test_ltp_cve_cve-2016-7042" + }, + { + "name": "oe_test_ltp_cve_cve-2016-7117" + }, + { + "name": "oe_test_ltp_cve_cve-2016-8655" + }, + { + "name": "oe_test_ltp_cve_cve-2016-9604" + }, + { + "name": "oe_test_ltp_cve_cve-2016-9793" + }, + { + "name": "oe_test_ltp_cve_cve-2016-10044" + }, + { + "name": "oe_test_ltp_cve_cve-2017-2618" + }, + { + "name": "oe_test_ltp_cve_cve-2017-2636" + }, + { + "name": "oe_test_ltp_cve_cve-2017-2671" + }, + { + "name": "oe_test_ltp_cve_cve-2017-5754" + }, + { + "name": "oe_test_ltp_cve_cve-2017-6951" + }, + { + "name": "oe_test_ltp_cve_cve-2017-7308" + }, + { + "name": "oe_test_ltp_cve_cve-2017-7472" + }, + { + "name": "oe_test_ltp_cve_cve-2017-7616" + }, + { + "name": "oe_test_ltp_cve_cve-2017-8890" + }, + { + "name": "oe_test_ltp_cve_cve-2017-10661" + }, + { + "name": "oe_test_ltp_cve_cve-2017-12192" + }, + { + "name": "oe_test_ltp_cve_cve-2017-12193" + }, + { + "name": "oe_test_ltp_cve_cve-2017-15274" + }, + { + "name": "oe_test_ltp_cve_cve-2017-15299" + }, + { + "name": "oe_test_ltp_cve_cve-2017-15537" + }, + { + "name": "oe_test_ltp_cve_cve-2017-15649" + }, + { + "name": "oe_test_ltp_cve_cve-2017-15951" + }, + { + "name": "oe_test_ltp_cve_cve-2017-16939" + }, + { + "name": "oe_test_ltp_cve_cve-2017-16995" + }, + { + "name": "oe_test_ltp_cve_cve-2017-17052" + }, + { + "name": "oe_test_ltp_cve_cve-2017-17053" + }, + { + "name": "oe_test_ltp_cve_cve-2017-17712" + }, + { + "name": "oe_test_ltp_cve_cve-2017-17805" + }, + { + "name": "oe_test_ltp_cve_cve-2017-17806" + }, + { + "name": "oe_test_ltp_cve_cve-2017-17807" + }, + { + "name": "oe_test_ltp_cve_cve-2017-18075" + }, + { + "name": "oe_test_ltp_cve_cve-2017-18344" + }, + { + "name": "oe_test_ltp_cve_cve-2017-1000111" + }, + { + "name": "oe_test_ltp_cve_cve-2017-1000112" + }, + { + "name": "oe_test_ltp_cve_cve-2017-1000364" + }, + { + "name": "oe_test_ltp_cve_cve-2017-1000380" + }, + { + "name": "oe_test_ltp_cve_cve-2017-1000405" + }, + { + "name": "oe_test_ltp_cve_cve-2018-5803" + }, + { + "name": "oe_test_ltp_cve_cve-2018-6927" + }, + { + "name": "oe_test_ltp_cve_cve-2018-7566" + }, + { + "name": "oe_test_ltp_cve_cve-2018-8897" + }, + { + "name": "oe_test_ltp_cve_cve-2018-9568" + }, + { + "name": "oe_test_ltp_cve_cve-2018-10124" + }, + { + "name": "oe_test_ltp_cve_cve-2018-11508" + }, + { + "name": "oe_test_ltp_cve_cve-2018-12896" + }, + { + "name": "oe_test_ltp_cve_cve-2018-13405" + }, + { + "name": "oe_test_ltp_cve_cve-2018-18445" + }, + { + "name": "oe_test_ltp_cve_cve-2018-18559" + }, + { + "name": "oe_test_ltp_cve_cve-2018-18955" + }, + { + "name": "oe_test_ltp_cve_cve-2018-19854" + }, + { + "name": "oe_test_ltp_cve_cve-2018-1000001" + }, + { + "name": "oe_test_ltp_cve_cve-2018-1000199" + }, + { + "name": "oe_test_ltp_cve_cve-2018-1000204" + }, + { + "name": "oe_test_ltp_cve_cve-2019-8912" + }, + { + "name": "oe_test_ltp_cve_cve-2020-11494" + }, + { + "name": "oe_test_ltp_cve_cve-2020-14386" + }, + { + "name": "oe_test_ltp_cve_cve-2020-14416" + }, + { + "name": "oe_test_ltp_cve_cve-2020-25705" + }, + { + "name": "oe_test_ltp_cve_cve-2020-29373" + }, + { + "name": "oe_test_ltp_cve_cve-2020-36557" + }, + { + "name": "oe_test_ltp_cve_cve-2021-3444" + }, + { + "name": "oe_test_ltp_cve_cve-2021-3609" + }, + { + "name": "oe_test_ltp_cve_cve-2021-4034" + }, + { + "name": "oe_test_ltp_cve_cve-2021-4197_1" + }, + { + "name": "oe_test_ltp_cve_cve-2021-4197_2" + }, + { + "name": "oe_test_ltp_cve_cve-2021-4204" + }, + { + "name": "oe_test_ltp_cve_cve-2021-22555" + }, + { + "name": "oe_test_ltp_cve_cve-2021-26708" + }, + { + "name": "oe_test_ltp_cve_cve-2021-22600" + }, + { + "name": "oe_test_ltp_cve_cve-2021-38604" + }, + { + "name": "oe_test_ltp_cve_cve-2022-0847" + }, + { + "name": "oe_test_ltp_cve_cve-2022-2590" + }, + { + "name": "oe_test_ltp_cve_cve-2022-23222" + }, + { + "name": "oe_test_ltp_cve_cve-2023-1829" + }, + { + "name": "oe_test_ltp_cve_cve-2023-0461" + }, + { + "name": "oe_test_ltp_cve_cve-2023-31248" + }, + { + "name": "oe_test_ltp_cve_cve-2020-25704" + }, + { + "name": "oe_test_ltp_cve_cve-2022-0185" + }, + { + "name": "oe_test_ltp_cve_cve-2022-4378" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_dio.json b/suite2cases/ltp_dio.json new file mode 100644 index 0000000000000000000000000000000000000000..6780596a5fbeb356697a82bd57fcaa4810fe6656 --- /dev/null +++ b/suite2cases/ltp_dio.json @@ -0,0 +1,97 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_dio", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_dio_dio01" + }, + { + "name": "oe_test_ltp_dio_dio02" + }, + { + "name": "oe_test_ltp_dio_dio03" + }, + { + "name": "oe_test_ltp_dio_dio04" + }, + { + "name": "oe_test_ltp_dio_dio05" + }, + { + "name": "oe_test_ltp_dio_dio06" + }, + { + "name": "oe_test_ltp_dio_dio07" + }, + { + "name": "oe_test_ltp_dio_dio08" + }, + { + "name": "oe_test_ltp_dio_dio09" + }, + { + "name": "oe_test_ltp_dio_dio10" + }, + { + "name": "oe_test_ltp_dio_dio11" + }, + { + "name": "oe_test_ltp_dio_dio12" + }, + { + "name": "oe_test_ltp_dio_dio13" + }, + { + "name": "oe_test_ltp_dio_dio14" + }, + { + "name": "oe_test_ltp_dio_dio15" + }, + { + "name": "oe_test_ltp_dio_dio16" + }, + { + "name": "oe_test_ltp_dio_dio17" + }, + { + "name": "oe_test_ltp_dio_dio18" + }, + { + "name": "oe_test_ltp_dio_dio19" + }, + { + "name": "oe_test_ltp_dio_dio20" + }, + { + "name": "oe_test_ltp_dio_dio21" + }, + { + "name": "oe_test_ltp_dio_dio22" + }, + { + "name": "oe_test_ltp_dio_dio23" + }, + { + "name": "oe_test_ltp_dio_dio24" + }, + { + "name": "oe_test_ltp_dio_dio25" + }, + { + "name": "oe_test_ltp_dio_dio26" + }, + { + "name": "oe_test_ltp_dio_dio27" + }, + { + "name": "oe_test_ltp_dio_dio28" + }, + { + "name": "oe_test_ltp_dio_dio29" + }, + { + "name": "oe_test_ltp_dio_dio30" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_fcntl-locktests.json b/suite2cases/ltp_fcntl-locktests.json new file mode 100644 index 0000000000000000000000000000000000000000..bc545d2aca521210a1ecb158fadddbf1683b6bed --- /dev/null +++ b/suite2cases/ltp_fcntl-locktests.json @@ -0,0 +1,10 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_fcntl-locktests", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_fcntl-locktests_FCNTL_LOCKTESTS" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_filecaps.json b/suite2cases/ltp_filecaps.json new file mode 100644 index 0000000000000000000000000000000000000000..6fad92e028c04f528428b3915a916bd051a4b52e --- /dev/null +++ b/suite2cases/ltp_filecaps.json @@ -0,0 +1,10 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_filecaps", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_filecaps_Filecaps" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_fs.json b/suite2cases/ltp_fs.json new file mode 100644 index 0000000000000000000000000000000000000000..637b903995961a00550f9aa066e82bf808c5594b --- /dev/null +++ b/suite2cases/ltp_fs.json @@ -0,0 +1,211 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_fs", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_fs_gf01" + }, + { + "name": "oe_test_ltp_fs_gf02" + }, + { + "name": "oe_test_ltp_fs_gf03" + }, + { + "name": "oe_test_ltp_fs_gf04" + }, + { + "name": "oe_test_ltp_fs_gf05" + }, + { + "name": "oe_test_ltp_fs_gf06" + }, + { + "name": "oe_test_ltp_fs_gf07" + }, + { + "name": "oe_test_ltp_fs_gf08" + }, + { + "name": "oe_test_ltp_fs_gf09" + }, + { + "name": "oe_test_ltp_fs_gf10" + }, + { + "name": "oe_test_ltp_fs_gf11" + }, + { + "name": "oe_test_ltp_fs_gf12" + }, + { + "name": "oe_test_ltp_fs_gf13" + }, + { + "name": "oe_test_ltp_fs_gf14" + }, + { + "name": "oe_test_ltp_fs_gf15" + }, + { + "name": "oe_test_ltp_fs_gf16" + }, + { + "name": "oe_test_ltp_fs_gf17" + }, + { + "name": "oe_test_ltp_fs_gf18" + }, + { + "name": "oe_test_ltp_fs_gf19" + }, + { + "name": "oe_test_ltp_fs_gf20" + }, + { + "name": "oe_test_ltp_fs_gf21" + }, + { + "name": "oe_test_ltp_fs_gf22" + }, + { + "name": "oe_test_ltp_fs_gf23" + }, + { + "name": "oe_test_ltp_fs_gf24" + }, + { + "name": "oe_test_ltp_fs_gf25" + }, + { + "name": "oe_test_ltp_fs_gf26" + }, + { + "name": "oe_test_ltp_fs_gf27" + }, + { + "name": "oe_test_ltp_fs_gf28" + }, + { + "name": "oe_test_ltp_fs_gf29" + }, + { + "name": "oe_test_ltp_fs_gf30" + }, + { + "name": "oe_test_ltp_fs_rwtest01" + }, + { + "name": "oe_test_ltp_fs_rwtest02" + }, + { + "name": "oe_test_ltp_fs_rwtest03" + }, + { + "name": "oe_test_ltp_fs_rwtest04" + }, + { + "name": "oe_test_ltp_fs_rwtest05" + }, + { + "name": "oe_test_ltp_fs_iogen01" + }, + { + "name": "oe_test_ltp_fs_fs_inod01" + }, + { + "name": "oe_test_ltp_fs_linker01" + }, + { + "name": "oe_test_ltp_fs_openfile01" + }, + { + "name": "oe_test_ltp_fs_inode01" + }, + { + "name": "oe_test_ltp_fs_inode02" + }, + { + "name": "oe_test_ltp_fs_stream01" + }, + { + "name": "oe_test_ltp_fs_stream02" + }, + { + "name": "oe_test_ltp_fs_stream03" + }, + { + "name": "oe_test_ltp_fs_stream04" + }, + { + "name": "oe_test_ltp_fs_stream05" + }, + { + "name": "oe_test_ltp_fs_ftest01" + }, + { + "name": "oe_test_ltp_fs_ftest02" + }, + { + "name": "oe_test_ltp_fs_ftest03" + }, + { + "name": "oe_test_ltp_fs_ftest04" + }, + { + "name": "oe_test_ltp_fs_ftest05" + }, + { + "name": "oe_test_ltp_fs_ftest06" + }, + { + "name": "oe_test_ltp_fs_ftest07" + }, + { + "name": "oe_test_ltp_fs_ftest08" + }, + { + "name": "oe_test_ltp_fs_lftest01" + }, + { + "name": "oe_test_ltp_fs_writetest01" + }, + { + "name": "oe_test_ltp_fs_fs_di" + }, + { + "name": "oe_test_ltp_fs_proc01" + }, + { + "name": "oe_test_ltp_fs_read_all_dev" + }, + { + "name": "oe_test_ltp_fs_read_all_proc" + }, + { + "name": "oe_test_ltp_fs_read_all_sys" + }, + { + "name": "oe_test_ltp_fs_fs_racer" + }, + { + "name": "oe_test_ltp_fs_quota_remount_test01" + }, + { + "name": "oe_test_ltp_fs_isofs" + }, + { + "name": "oe_test_ltp_fs_fs_fill" + }, + { + "name": "oe_test_ltp_fs_binfmt_misc01" + }, + { + "name": "oe_test_ltp_fs_binfmt_misc02" + }, + { + "name": "oe_test_ltp_fs_squashfs01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_fs_bind.json b/suite2cases/ltp_fs_bind.json new file mode 100644 index 0000000000000000000000000000000000000000..f1e95f523ddfaa77b45c4fd5a4e5583b2111b717 --- /dev/null +++ b/suite2cases/ltp_fs_bind.json @@ -0,0 +1,292 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_fs_bind", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_fs_bind_fs_bind01_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind02_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind03_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind04_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind05_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind06_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind07_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind07-2_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind08_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind09_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind10_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind11_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind12_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind13_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind14_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind15_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind16_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind17_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind18_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind19_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind20_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind21_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind22_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind23_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind24_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move01_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move02_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move03_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move04_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move05_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move06_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move07_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move08_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move09_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move10_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move11_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move12_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move13_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move14_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move15_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move16_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move17_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move18_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move19_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move20_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move21_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_move22_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind01_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind02_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind03_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind04_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind05_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind06_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind07-2_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind07_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind08_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind09_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind10_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind11_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind12_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind13_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind14_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind15_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind16_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind17_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind18_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind19_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind20_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind21_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind22_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind23_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind24_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind25_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind26_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind27_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind28_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind29_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind30_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind31_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind32_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind33_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind34_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind35_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind36_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind37_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind38_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_rbind39_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_regression_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_cloneNS01_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_cloneNS02_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_cloneNS03_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_cloneNS04_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_cloneNS05_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_cloneNS06_sh" + }, + { + "name": "oe_test_ltp_fs_bind_fs_bind_cloneNS07_sh" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_fs_perms_simple.json b/suite2cases/ltp_fs_perms_simple.json new file mode 100644 index 0000000000000000000000000000000000000000..87c56d8a0a139c8b95d964c46ba8b1070d069a47 --- /dev/null +++ b/suite2cases/ltp_fs_perms_simple.json @@ -0,0 +1,61 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_fs_perms_simple", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms01" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms02" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms03" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms04" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms05" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms06" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms07" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms08" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms09" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms10" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms11" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms12" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms13" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms14" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms15" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms16" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms17" + }, + { + "name": "oe_test_ltp_fs_perms_simple_fs_perms18" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_hugetlb.json b/suite2cases/ltp_hugetlb.json new file mode 100644 index 0000000000000000000000000000000000000000..a4913d330573937352b04d869f8d02859c7367c5 --- /dev/null +++ b/suite2cases/ltp_hugetlb.json @@ -0,0 +1,160 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_hugetlb", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_hugetlb_hugefallocate01" + }, + { + "name": "oe_test_ltp_hugetlb_hugefallocate02" + }, + { + "name": "oe_test_ltp_hugetlb_hugefork01" + }, + { + "name": "oe_test_ltp_hugetlb_hugefork02" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap01" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap02" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap04" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap05" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap06" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap07" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap08" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap09" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap10" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap11" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap12" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap13" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap14" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap15" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap16" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap17" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap18" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap19" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap20" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap21" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap22" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap23" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap24" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap25" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap26" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap27" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap28" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap29" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap30" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap31" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap32" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap05_1" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap05_2" + }, + { + "name": "oe_test_ltp_hugetlb_hugemmap05_3" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmat01" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmat02" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmat03" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmat04" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmat05" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmctl01" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmctl02" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmctl03" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmdt01" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmget01" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmget02" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmget03" + }, + { + "name": "oe_test_ltp_hugetlb_hugeshmget05" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_hyperthreading.json b/suite2cases/ltp_hyperthreading.json new file mode 100644 index 0000000000000000000000000000000000000000..22516559e89a76fac75e52a3c29a52e8937814d3 --- /dev/null +++ b/suite2cases/ltp_hyperthreading.json @@ -0,0 +1,13 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_hyperthreading", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_hyperthreading_smt_smp_enabled" + }, + { + "name": "oe_test_ltp_hyperthreading_smt_smp_affinity" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_input.json b/suite2cases/ltp_input.json new file mode 100644 index 0000000000000000000000000000000000000000..8268dbe6c88268266be57e03a1621662a5f111f6 --- /dev/null +++ b/suite2cases/ltp_input.json @@ -0,0 +1,25 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_input", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_input_input01" + }, + { + "name": "oe_test_ltp_input_input02" + }, + { + "name": "oe_test_ltp_input_input03" + }, + { + "name": "oe_test_ltp_input_input04" + }, + { + "name": "oe_test_ltp_input_input05" + }, + { + "name": "oe_test_ltp_input_input06" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_io.json b/suite2cases/ltp_io.json new file mode 100644 index 0000000000000000000000000000000000000000..50edf9d24223c873b1a69bece9ffb6dc97a024ff --- /dev/null +++ b/suite2cases/ltp_io.json @@ -0,0 +1,13 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_io", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_io_aio01" + }, + { + "name": "oe_test_ltp_io_aio02" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_ipc.json b/suite2cases/ltp_ipc.json new file mode 100644 index 0000000000000000000000000000000000000000..a5416b66f8f8a2ae95d1a0f584bd68699179380f --- /dev/null +++ b/suite2cases/ltp_ipc.json @@ -0,0 +1,25 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_ipc", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_ipc_pipeio_1" + }, + { + "name": "oe_test_ltp_ipc_pipeio_3" + }, + { + "name": "oe_test_ltp_ipc_pipeio_4" + }, + { + "name": "oe_test_ltp_ipc_pipeio_5" + }, + { + "name": "oe_test_ltp_ipc_pipeio_6" + }, + { + "name": "oe_test_ltp_ipc_pipeio_8" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_irq.json b/suite2cases/ltp_irq.json new file mode 100644 index 0000000000000000000000000000000000000000..d145cebb0d5a62d65300fe5f24540c0dbad8e607 --- /dev/null +++ b/suite2cases/ltp_irq.json @@ -0,0 +1,10 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_irq", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_irq_irqbalance01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_kernel_misc.json b/suite2cases/ltp_kernel_misc.json new file mode 100644 index 0000000000000000000000000000000000000000..aa1758aa2a53bf647496352667806dff6fbe51da --- /dev/null +++ b/suite2cases/ltp_kernel_misc.json @@ -0,0 +1,58 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_kernel_misc", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_kernel_misc_cn_pec_sh" + }, + { + "name": "oe_test_ltp_kernel_misc_kmsg01" + }, + { + "name": "oe_test_ltp_kernel_misc_fw_load" + }, + { + "name": "oe_test_ltp_kernel_misc_rtc01" + }, + { + "name": "oe_test_ltp_kernel_misc_rtc02" + }, + { + "name": "oe_test_ltp_kernel_misc_block_dev" + }, + { + "name": "oe_test_ltp_kernel_misc_tpci" + }, + { + "name": "oe_test_ltp_kernel_misc_tbio" + }, + { + "name": "oe_test_ltp_kernel_misc_ltp_acpi" + }, + { + "name": "oe_test_ltp_kernel_misc_cpufreq_boost" + }, + { + "name": "oe_test_ltp_kernel_misc_uaccess" + }, + { + "name": "oe_test_ltp_kernel_misc_rcu_torture" + }, + { + "name": "oe_test_ltp_kernel_misc_lock_torture" + }, + { + "name": "oe_test_ltp_kernel_misc_zram01" + }, + { + "name": "oe_test_ltp_kernel_misc_zram02" + }, + { + "name": "oe_test_ltp_kernel_misc_zram03" + }, + { + "name": "oe_test_ltp_kernel_misc_umip_basic_test" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_math.json b/suite2cases/ltp_math.json new file mode 100644 index 0000000000000000000000000000000000000000..f92923bc0615b4a49d34ac9136d0ff76fb1f4ac9 --- /dev/null +++ b/suite2cases/ltp_math.json @@ -0,0 +1,37 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_math", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_math_abs01" + }, + { + "name": "oe_test_ltp_math_atof01" + }, + { + "name": "oe_test_ltp_math_float_bessel" + }, + { + "name": "oe_test_ltp_math_float_exp_log" + }, + { + "name": "oe_test_ltp_math_float_iperb" + }, + { + "name": "oe_test_ltp_math_float_power" + }, + { + "name": "oe_test_ltp_math_float_trigo" + }, + { + "name": "oe_test_ltp_math_fptest01" + }, + { + "name": "oe_test_ltp_math_fptest02" + }, + { + "name": "oe_test_ltp_math_nextafter01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_mm.json b/suite2cases/ltp_mm.json new file mode 100644 index 0000000000000000000000000000000000000000..ed737619d85acc8267a3135ed8a652955eac95ef --- /dev/null +++ b/suite2cases/ltp_mm.json @@ -0,0 +1,235 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_mm", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_mm_mm01" + }, + { + "name": "oe_test_ltp_mm_mm02" + }, + { + "name": "oe_test_ltp_mm_mtest01" + }, + { + "name": "oe_test_ltp_mm_mtest01w" + }, + { + "name": "oe_test_ltp_mm_mtest05" + }, + { + "name": "oe_test_ltp_mm_mtest06" + }, + { + "name": "oe_test_ltp_mm_mtest06_2" + }, + { + "name": "oe_test_ltp_mm_mtest06_3" + }, + { + "name": "oe_test_ltp_mm_mem02" + }, + { + "name": "oe_test_ltp_mm_page01" + }, + { + "name": "oe_test_ltp_mm_page02" + }, + { + "name": "oe_test_ltp_mm_data_space" + }, + { + "name": "oe_test_ltp_mm_stack_space" + }, + { + "name": "oe_test_ltp_mm_shmt02" + }, + { + "name": "oe_test_ltp_mm_shmt03" + }, + { + "name": "oe_test_ltp_mm_shmt04" + }, + { + "name": "oe_test_ltp_mm_shmt05" + }, + { + "name": "oe_test_ltp_mm_shmt06" + }, + { + "name": "oe_test_ltp_mm_shmt07" + }, + { + "name": "oe_test_ltp_mm_shmt08" + }, + { + "name": "oe_test_ltp_mm_shmt09" + }, + { + "name": "oe_test_ltp_mm_shmt10" + }, + { + "name": "oe_test_ltp_mm_shm_test01" + }, + { + "name": "oe_test_ltp_mm_mallocstress01" + }, + { + "name": "oe_test_ltp_mm_mmapstress01" + }, + { + "name": "oe_test_ltp_mm_mmapstress02" + }, + { + "name": "oe_test_ltp_mm_mmapstress03" + }, + { + "name": "oe_test_ltp_mm_mmapstress04" + }, + { + "name": "oe_test_ltp_mm_mmapstress05" + }, + { + "name": "oe_test_ltp_mm_mmapstress06" + }, + { + "name": "oe_test_ltp_mm_mmapstress07" + }, + { + "name": "oe_test_ltp_mm_mmapstress08" + }, + { + "name": "oe_test_ltp_mm_mmapstress09" + }, + { + "name": "oe_test_ltp_mm_mmapstress10" + }, + { + "name": "oe_test_ltp_mm_mmap10" + }, + { + "name": "oe_test_ltp_mm_mmap10_1" + }, + { + "name": "oe_test_ltp_mm_mmap10_2" + }, + { + "name": "oe_test_ltp_mm_mmap10_3" + }, + { + "name": "oe_test_ltp_mm_mmap10_4" + }, + { + "name": "oe_test_ltp_mm_ksm01" + }, + { + "name": "oe_test_ltp_mm_ksm01_1" + }, + { + "name": "oe_test_ltp_mm_ksm02" + }, + { + "name": "oe_test_ltp_mm_ksm02_1" + }, + { + "name": "oe_test_ltp_mm_ksm03" + }, + { + "name": "oe_test_ltp_mm_ksm03_1" + }, + { + "name": "oe_test_ltp_mm_ksm04" + }, + { + "name": "oe_test_ltp_mm_ksm04_1" + }, + { + "name": "oe_test_ltp_mm_ksm05" + }, + { + "name": "oe_test_ltp_mm_ksm06" + }, + { + "name": "oe_test_ltp_mm_ksm06_1" + }, + { + "name": "oe_test_ltp_mm_ksm06_2" + }, + { + "name": "oe_test_ltp_mm_ksm07" + }, + { + "name": "oe_test_ltp_mm_cpuset01" + }, + { + "name": "oe_test_ltp_mm_oom01" + }, + { + "name": "oe_test_ltp_mm_oom02" + }, + { + "name": "oe_test_ltp_mm_oom03" + }, + { + "name": "oe_test_ltp_mm_oom04" + }, + { + "name": "oe_test_ltp_mm_oom05" + }, + { + "name": "oe_test_ltp_mm_swapping01" + }, + { + "name": "oe_test_ltp_mm_thp01" + }, + { + "name": "oe_test_ltp_mm_thp02" + }, + { + "name": "oe_test_ltp_mm_thp03" + }, + { + "name": "oe_test_ltp_mm_thp04" + }, + { + "name": "oe_test_ltp_mm_vma01" + }, + { + "name": "oe_test_ltp_mm_vma02" + }, + { + "name": "oe_test_ltp_mm_vma03" + }, + { + "name": "oe_test_ltp_mm_vma04" + }, + { + "name": "oe_test_ltp_mm_vma05" + }, + { + "name": "oe_test_ltp_mm_overcommit_memory01" + }, + { + "name": "oe_test_ltp_mm_overcommit_memory02" + }, + { + "name": "oe_test_ltp_mm_overcommit_memory03" + }, + { + "name": "oe_test_ltp_mm_overcommit_memory04" + }, + { + "name": "oe_test_ltp_mm_overcommit_memory05" + }, + { + "name": "oe_test_ltp_mm_overcommit_memory06" + }, + { + "name": "oe_test_ltp_mm_max_map_count" + }, + { + "name": "oe_test_ltp_mm_min_free_kbytes" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_net_ipv6_lib.json b/suite2cases/ltp_net_ipv6_lib.json new file mode 100644 index 0000000000000000000000000000000000000000..eb475a09fb75a4e4da1b938a59d86f08722bc89b --- /dev/null +++ b/suite2cases/ltp_net_ipv6_lib.json @@ -0,0 +1,25 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_net_ipv6_lib", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_net_ipv6_lib_in6_01" + }, + { + "name": "oe_test_ltp_net_ipv6_lib_in6_02" + }, + { + "name": "oe_test_ltp_net_ipv6_lib_getaddrinfo_01" + }, + { + "name": "oe_test_ltp_net_ipv6_lib_asapi_01" + }, + { + "name": "oe_test_ltp_net_ipv6_lib_asapi_02" + }, + { + "name": "oe_test_ltp_net_ipv6_lib_asapi_03" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_nptl.json b/suite2cases/ltp_nptl.json new file mode 100644 index 0000000000000000000000000000000000000000..f131a44ea657c717cb59f78ad18c7643dcd4c265 --- /dev/null +++ b/suite2cases/ltp_nptl.json @@ -0,0 +1,10 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_nptl", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_nptl_nptl01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_power_management_tests.json b/suite2cases/ltp_power_management_tests.json new file mode 100644 index 0000000000000000000000000000000000000000..a33eb2ef74efc468511d766980efb2be7742deba --- /dev/null +++ b/suite2cases/ltp_power_management_tests.json @@ -0,0 +1,22 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_power_management_tests", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_power_management_tests_runpwtests01" + }, + { + "name": "oe_test_ltp_power_management_tests_runpwtests02" + }, + { + "name": "oe_test_ltp_power_management_tests_runpwtests03" + }, + { + "name": "oe_test_ltp_power_management_tests_runpwtests04" + }, + { + "name": "oe_test_ltp_power_management_tests_runpwtests06" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_pty.json b/suite2cases/ltp_pty.json new file mode 100644 index 0000000000000000000000000000000000000000..38114f211e1074778f5822bcd8d453682e79cf5a --- /dev/null +++ b/suite2cases/ltp_pty.json @@ -0,0 +1,34 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_pty", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_pty_pty01" + }, + { + "name": "oe_test_ltp_pty_pty02" + }, + { + "name": "oe_test_ltp_pty_pty03" + }, + { + "name": "oe_test_ltp_pty_pty04" + }, + { + "name": "oe_test_ltp_pty_pty05" + }, + { + "name": "oe_test_ltp_pty_pty06" + }, + { + "name": "oe_test_ltp_pty_pty07" + }, + { + "name": "oe_test_ltp_pty_ptem01" + }, + { + "name": "oe_test_ltp_pty_hangup01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_sched.json b/suite2cases/ltp_sched.json new file mode 100644 index 0000000000000000000000000000000000000000..d7604d9d510333610e4dc018097329418fa51bec --- /dev/null +++ b/suite2cases/ltp_sched.json @@ -0,0 +1,43 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_sched", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_sched_pth_str01" + }, + { + "name": "oe_test_ltp_sched_pth_str02" + }, + { + "name": "oe_test_ltp_sched_pth_str03" + }, + { + "name": "oe_test_ltp_sched_time-schedule01" + }, + { + "name": "oe_test_ltp_sched_trace_sched01" + }, + { + "name": "oe_test_ltp_sched_cfs_bandwidth01" + }, + { + "name": "oe_test_ltp_sched_hackbench01" + }, + { + "name": "oe_test_ltp_sched_hackbench02" + }, + { + "name": "oe_test_ltp_sched_starvation" + }, + { + "name": "oe_test_ltp_sched_sched_cli_serv" + }, + { + "name": "oe_test_ltp_sched_sched_stress" + }, + { + "name": "oe_test_ltp_sched_autogroup01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_syscalls.json b/suite2cases/ltp_syscalls.json new file mode 100644 index 0000000000000000000000000000000000000000..0f7dd023cb79aa6297a146c9fc6e612849d979c4 --- /dev/null +++ b/suite2cases/ltp_syscalls.json @@ -0,0 +1,4234 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_syscalls", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_syscalls_abort01" + }, + { + "name": "oe_test_ltp_syscalls_accept01" + }, + { + "name": "oe_test_ltp_syscalls_accept02" + }, + { + "name": "oe_test_ltp_syscalls_accept4_01" + }, + { + "name": "oe_test_ltp_syscalls_access01" + }, + { + "name": "oe_test_ltp_syscalls_access02" + }, + { + "name": "oe_test_ltp_syscalls_access03" + }, + { + "name": "oe_test_ltp_syscalls_access04" + }, + { + "name": "oe_test_ltp_syscalls_acct01" + }, + { + "name": "oe_test_ltp_syscalls_acct02" + }, + { + "name": "oe_test_ltp_syscalls_add_key01" + }, + { + "name": "oe_test_ltp_syscalls_add_key02" + }, + { + "name": "oe_test_ltp_syscalls_add_key03" + }, + { + "name": "oe_test_ltp_syscalls_add_key04" + }, + { + "name": "oe_test_ltp_syscalls_add_key05" + }, + { + "name": "oe_test_ltp_syscalls_adjtimex01" + }, + { + "name": "oe_test_ltp_syscalls_adjtimex02" + }, + { + "name": "oe_test_ltp_syscalls_adjtimex03" + }, + { + "name": "oe_test_ltp_syscalls_alarm02" + }, + { + "name": "oe_test_ltp_syscalls_alarm03" + }, + { + "name": "oe_test_ltp_syscalls_alarm05" + }, + { + "name": "oe_test_ltp_syscalls_alarm06" + }, + { + "name": "oe_test_ltp_syscalls_alarm07" + }, + { + "name": "oe_test_ltp_syscalls_bind01" + }, + { + "name": "oe_test_ltp_syscalls_bind02" + }, + { + "name": "oe_test_ltp_syscalls_bind03" + }, + { + "name": "oe_test_ltp_syscalls_bind04" + }, + { + "name": "oe_test_ltp_syscalls_bind05" + }, + { + "name": "oe_test_ltp_syscalls_bind06" + }, + { + "name": "oe_test_ltp_syscalls_bpf_map01" + }, + { + "name": "oe_test_ltp_syscalls_bpf_prog01" + }, + { + "name": "oe_test_ltp_syscalls_bpf_prog02" + }, + { + "name": "oe_test_ltp_syscalls_bpf_prog03" + }, + { + "name": "oe_test_ltp_syscalls_bpf_prog04" + }, + { + "name": "oe_test_ltp_syscalls_bpf_prog05" + }, + { + "name": "oe_test_ltp_syscalls_bpf_prog06" + }, + { + "name": "oe_test_ltp_syscalls_bpf_prog07" + }, + { + "name": "oe_test_ltp_syscalls_brk01" + }, + { + "name": "oe_test_ltp_syscalls_brk02" + }, + { + "name": "oe_test_ltp_syscalls_capget01" + }, + { + "name": "oe_test_ltp_syscalls_capget02" + }, + { + "name": "oe_test_ltp_syscalls_capset01" + }, + { + "name": "oe_test_ltp_syscalls_capset02" + }, + { + "name": "oe_test_ltp_syscalls_capset03" + }, + { + "name": "oe_test_ltp_syscalls_capset04" + }, + { + "name": "oe_test_ltp_syscalls_cacheflush01" + }, + { + "name": "oe_test_ltp_syscalls_chdir01" + }, + { + "name": "oe_test_ltp_syscalls_chdir01A" + }, + { + "name": "oe_test_ltp_syscalls_chdir04" + }, + { + "name": "oe_test_ltp_syscalls_chmod01" + }, + { + "name": "oe_test_ltp_syscalls_chmod01A" + }, + { + "name": "oe_test_ltp_syscalls_chmod03" + }, + { + "name": "oe_test_ltp_syscalls_chmod05" + }, + { + "name": "oe_test_ltp_syscalls_chmod06" + }, + { + "name": "oe_test_ltp_syscalls_chmod07" + }, + { + "name": "oe_test_ltp_syscalls_chown01" + }, + { + "name": "oe_test_ltp_syscalls_chown01_16" + }, + { + "name": "oe_test_ltp_syscalls_chown02" + }, + { + "name": "oe_test_ltp_syscalls_chown02_16" + }, + { + "name": "oe_test_ltp_syscalls_chown03" + }, + { + "name": "oe_test_ltp_syscalls_chown03_16" + }, + { + "name": "oe_test_ltp_syscalls_chown04" + }, + { + "name": "oe_test_ltp_syscalls_chown04_16" + }, + { + "name": "oe_test_ltp_syscalls_chown05" + }, + { + "name": "oe_test_ltp_syscalls_chown05_16" + }, + { + "name": "oe_test_ltp_syscalls_chroot01" + }, + { + "name": "oe_test_ltp_syscalls_chroot02" + }, + { + "name": "oe_test_ltp_syscalls_chroot03" + }, + { + "name": "oe_test_ltp_syscalls_chroot04" + }, + { + "name": "oe_test_ltp_syscalls_clock_adjtime01" + }, + { + "name": "oe_test_ltp_syscalls_clock_adjtime02" + }, + { + "name": "oe_test_ltp_syscalls_clock_getres01" + }, + { + "name": "oe_test_ltp_syscalls_clock_nanosleep01" + }, + { + "name": "oe_test_ltp_syscalls_clock_nanosleep02" + }, + { + "name": "oe_test_ltp_syscalls_clock_nanosleep03" + }, + { + "name": "oe_test_ltp_syscalls_clock_nanosleep04" + }, + { + "name": "oe_test_ltp_syscalls_clock_gettime01" + }, + { + "name": "oe_test_ltp_syscalls_clock_gettime02" + }, + { + "name": "oe_test_ltp_syscalls_clock_gettime03" + }, + { + "name": "oe_test_ltp_syscalls_clock_gettime04" + }, + { + "name": "oe_test_ltp_syscalls_leapsec01" + }, + { + "name": "oe_test_ltp_syscalls_clock_settime01" + }, + { + "name": "oe_test_ltp_syscalls_clock_settime02" + }, + { + "name": "oe_test_ltp_syscalls_clock_settime03" + }, + { + "name": "oe_test_ltp_syscalls_clone01" + }, + { + "name": "oe_test_ltp_syscalls_clone02" + }, + { + "name": "oe_test_ltp_syscalls_clone03" + }, + { + "name": "oe_test_ltp_syscalls_clone04" + }, + { + "name": "oe_test_ltp_syscalls_clone05" + }, + { + "name": "oe_test_ltp_syscalls_clone06" + }, + { + "name": "oe_test_ltp_syscalls_clone07" + }, + { + "name": "oe_test_ltp_syscalls_clone08" + }, + { + "name": "oe_test_ltp_syscalls_clone09" + }, + { + "name": "oe_test_ltp_syscalls_clone301" + }, + { + "name": "oe_test_ltp_syscalls_clone302" + }, + { + "name": "oe_test_ltp_syscalls_clone303" + }, + { + "name": "oe_test_ltp_syscalls_close01" + }, + { + "name": "oe_test_ltp_syscalls_close02" + }, + { + "name": "oe_test_ltp_syscalls_close_range01" + }, + { + "name": "oe_test_ltp_syscalls_close_range02" + }, + { + "name": "oe_test_ltp_syscalls_confstr01" + }, + { + "name": "oe_test_ltp_syscalls_connect01" + }, + { + "name": "oe_test_ltp_syscalls_connect02" + }, + { + "name": "oe_test_ltp_syscalls_creat01" + }, + { + "name": "oe_test_ltp_syscalls_creat03" + }, + { + "name": "oe_test_ltp_syscalls_creat04" + }, + { + "name": "oe_test_ltp_syscalls_creat05" + }, + { + "name": "oe_test_ltp_syscalls_creat06" + }, + { + "name": "oe_test_ltp_syscalls_creat07" + }, + { + "name": "oe_test_ltp_syscalls_creat08" + }, + { + "name": "oe_test_ltp_syscalls_creat09" + }, + { + "name": "oe_test_ltp_syscalls_delete_module01" + }, + { + "name": "oe_test_ltp_syscalls_delete_module02" + }, + { + "name": "oe_test_ltp_syscalls_delete_module03" + }, + { + "name": "oe_test_ltp_syscalls_dup01" + }, + { + "name": "oe_test_ltp_syscalls_dup02" + }, + { + "name": "oe_test_ltp_syscalls_dup03" + }, + { + "name": "oe_test_ltp_syscalls_dup04" + }, + { + "name": "oe_test_ltp_syscalls_dup05" + }, + { + "name": "oe_test_ltp_syscalls_dup06" + }, + { + "name": "oe_test_ltp_syscalls_dup07" + }, + { + "name": "oe_test_ltp_syscalls_dup201" + }, + { + "name": "oe_test_ltp_syscalls_dup202" + }, + { + "name": "oe_test_ltp_syscalls_dup203" + }, + { + "name": "oe_test_ltp_syscalls_dup204" + }, + { + "name": "oe_test_ltp_syscalls_dup205" + }, + { + "name": "oe_test_ltp_syscalls_dup206" + }, + { + "name": "oe_test_ltp_syscalls_dup207" + }, + { + "name": "oe_test_ltp_syscalls_dup3_01" + }, + { + "name": "oe_test_ltp_syscalls_dup3_02" + }, + { + "name": "oe_test_ltp_syscalls_epoll_create01" + }, + { + "name": "oe_test_ltp_syscalls_epoll_create02" + }, + { + "name": "oe_test_ltp_syscalls_epoll_create1_01" + }, + { + "name": "oe_test_ltp_syscalls_epoll_create1_02" + }, + { + "name": "oe_test_ltp_syscalls_epoll01" + }, + { + "name": "oe_test_ltp_syscalls_epoll_ctl01" + }, + { + "name": "oe_test_ltp_syscalls_epoll_ctl02" + }, + { + "name": "oe_test_ltp_syscalls_epoll_ctl03" + }, + { + "name": "oe_test_ltp_syscalls_epoll_ctl04" + }, + { + "name": "oe_test_ltp_syscalls_epoll_ctl05" + }, + { + "name": "oe_test_ltp_syscalls_epoll_wait01" + }, + { + "name": "oe_test_ltp_syscalls_epoll_wait02" + }, + { + "name": "oe_test_ltp_syscalls_epoll_wait03" + }, + { + "name": "oe_test_ltp_syscalls_epoll_wait04" + }, + { + "name": "oe_test_ltp_syscalls_epoll_wait05" + }, + { + "name": "oe_test_ltp_syscalls_epoll_wait06" + }, + { + "name": "oe_test_ltp_syscalls_epoll_wait07" + }, + { + "name": "oe_test_ltp_syscalls_epoll_pwait01" + }, + { + "name": "oe_test_ltp_syscalls_epoll_pwait02" + }, + { + "name": "oe_test_ltp_syscalls_epoll_pwait03" + }, + { + "name": "oe_test_ltp_syscalls_epoll_pwait04" + }, + { + "name": "oe_test_ltp_syscalls_epoll_pwait05" + }, + { + "name": "oe_test_ltp_syscalls_eventfd01" + }, + { + "name": "oe_test_ltp_syscalls_eventfd02" + }, + { + "name": "oe_test_ltp_syscalls_eventfd03" + }, + { + "name": "oe_test_ltp_syscalls_eventfd04" + }, + { + "name": "oe_test_ltp_syscalls_eventfd05" + }, + { + "name": "oe_test_ltp_syscalls_eventfd06" + }, + { + "name": "oe_test_ltp_syscalls_eventfd2_01" + }, + { + "name": "oe_test_ltp_syscalls_eventfd2_02" + }, + { + "name": "oe_test_ltp_syscalls_eventfd2_03" + }, + { + "name": "oe_test_ltp_syscalls_execl01" + }, + { + "name": "oe_test_ltp_syscalls_execle01" + }, + { + "name": "oe_test_ltp_syscalls_execlp01" + }, + { + "name": "oe_test_ltp_syscalls_execv01" + }, + { + "name": "oe_test_ltp_syscalls_execve01" + }, + { + "name": "oe_test_ltp_syscalls_execve02" + }, + { + "name": "oe_test_ltp_syscalls_execve03" + }, + { + "name": "oe_test_ltp_syscalls_execve04" + }, + { + "name": "oe_test_ltp_syscalls_execve05" + }, + { + "name": "oe_test_ltp_syscalls_execve06" + }, + { + "name": "oe_test_ltp_syscalls_execvp01" + }, + { + "name": "oe_test_ltp_syscalls_execveat01" + }, + { + "name": "oe_test_ltp_syscalls_execveat02" + }, + { + "name": "oe_test_ltp_syscalls_execveat03" + }, + { + "name": "oe_test_ltp_syscalls_exit01" + }, + { + "name": "oe_test_ltp_syscalls_exit02" + }, + { + "name": "oe_test_ltp_syscalls_exit_group01" + }, + { + "name": "oe_test_ltp_syscalls_faccessat01" + }, + { + "name": "oe_test_ltp_syscalls_faccessat02" + }, + { + "name": "oe_test_ltp_syscalls_faccessat201" + }, + { + "name": "oe_test_ltp_syscalls_faccessat202" + }, + { + "name": "oe_test_ltp_syscalls_fallocate01" + }, + { + "name": "oe_test_ltp_syscalls_fallocate02" + }, + { + "name": "oe_test_ltp_syscalls_fallocate03" + }, + { + "name": "oe_test_ltp_syscalls_fallocate04" + }, + { + "name": "oe_test_ltp_syscalls_fallocate05" + }, + { + "name": "oe_test_ltp_syscalls_fallocate06" + }, + { + "name": "oe_test_ltp_syscalls_fsetxattr01" + }, + { + "name": "oe_test_ltp_syscalls_fsetxattr02" + }, + { + "name": "oe_test_ltp_syscalls_posix_fadvise01" + }, + { + "name": "oe_test_ltp_syscalls_posix_fadvise01_64" + }, + { + "name": "oe_test_ltp_syscalls_posix_fadvise02" + }, + { + "name": "oe_test_ltp_syscalls_posix_fadvise02_64" + }, + { + "name": "oe_test_ltp_syscalls_posix_fadvise03" + }, + { + "name": "oe_test_ltp_syscalls_posix_fadvise03_64" + }, + { + "name": "oe_test_ltp_syscalls_posix_fadvise04" + }, + { + "name": "oe_test_ltp_syscalls_posix_fadvise04_64" + }, + { + "name": "oe_test_ltp_syscalls_fchdir01" + }, + { + "name": "oe_test_ltp_syscalls_fchdir02" + }, + { + "name": "oe_test_ltp_syscalls_fchdir03" + }, + { + "name": "oe_test_ltp_syscalls_fchmod01" + }, + { + "name": "oe_test_ltp_syscalls_fchmod02" + }, + { + "name": "oe_test_ltp_syscalls_fchmod03" + }, + { + "name": "oe_test_ltp_syscalls_fchmod04" + }, + { + "name": "oe_test_ltp_syscalls_fchmod05" + }, + { + "name": "oe_test_ltp_syscalls_fchmod06" + }, + { + "name": "oe_test_ltp_syscalls_fchmodat01" + }, + { + "name": "oe_test_ltp_syscalls_fchmodat02" + }, + { + "name": "oe_test_ltp_syscalls_fchown01" + }, + { + "name": "oe_test_ltp_syscalls_fchown01_16" + }, + { + "name": "oe_test_ltp_syscalls_fchown02" + }, + { + "name": "oe_test_ltp_syscalls_fchown02_16" + }, + { + "name": "oe_test_ltp_syscalls_fchown03" + }, + { + "name": "oe_test_ltp_syscalls_fchown03_16" + }, + { + "name": "oe_test_ltp_syscalls_fchown04" + }, + { + "name": "oe_test_ltp_syscalls_fchown04_16" + }, + { + "name": "oe_test_ltp_syscalls_fchown05" + }, + { + "name": "oe_test_ltp_syscalls_fchown05_16" + }, + { + "name": "oe_test_ltp_syscalls_fchownat01" + }, + { + "name": "oe_test_ltp_syscalls_fchownat02" + }, + { + "name": "oe_test_ltp_syscalls_fcntl01" + }, + { + "name": "oe_test_ltp_syscalls_fcntl01_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl02" + }, + { + "name": "oe_test_ltp_syscalls_fcntl02_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl03" + }, + { + "name": "oe_test_ltp_syscalls_fcntl03_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl04" + }, + { + "name": "oe_test_ltp_syscalls_fcntl04_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl05" + }, + { + "name": "oe_test_ltp_syscalls_fcntl05_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl07" + }, + { + "name": "oe_test_ltp_syscalls_fcntl07_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl08" + }, + { + "name": "oe_test_ltp_syscalls_fcntl08_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl09" + }, + { + "name": "oe_test_ltp_syscalls_fcntl09_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl10" + }, + { + "name": "oe_test_ltp_syscalls_fcntl10_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl11" + }, + { + "name": "oe_test_ltp_syscalls_fcntl11_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl12" + }, + { + "name": "oe_test_ltp_syscalls_fcntl12_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl13" + }, + { + "name": "oe_test_ltp_syscalls_fcntl13_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl14" + }, + { + "name": "oe_test_ltp_syscalls_fcntl14_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl15" + }, + { + "name": "oe_test_ltp_syscalls_fcntl15_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl16" + }, + { + "name": "oe_test_ltp_syscalls_fcntl16_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl17" + }, + { + "name": "oe_test_ltp_syscalls_fcntl17_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl18" + }, + { + "name": "oe_test_ltp_syscalls_fcntl18_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl19" + }, + { + "name": "oe_test_ltp_syscalls_fcntl19_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl20" + }, + { + "name": "oe_test_ltp_syscalls_fcntl20_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl21" + }, + { + "name": "oe_test_ltp_syscalls_fcntl21_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl22" + }, + { + "name": "oe_test_ltp_syscalls_fcntl22_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl23" + }, + { + "name": "oe_test_ltp_syscalls_fcntl23_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl24" + }, + { + "name": "oe_test_ltp_syscalls_fcntl24_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl25" + }, + { + "name": "oe_test_ltp_syscalls_fcntl25_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl26" + }, + { + "name": "oe_test_ltp_syscalls_fcntl26_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl27" + }, + { + "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" + }, + { + "name": "oe_test_ltp_syscalls_fcntl29_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl30" + }, + { + "name": "oe_test_ltp_syscalls_fcntl30_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl31" + }, + { + "name": "oe_test_ltp_syscalls_fcntl31_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl32" + }, + { + "name": "oe_test_ltp_syscalls_fcntl32_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl33" + }, + { + "name": "oe_test_ltp_syscalls_fcntl33_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl34" + }, + { + "name": "oe_test_ltp_syscalls_fcntl34_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl35" + }, + { + "name": "oe_test_ltp_syscalls_fcntl35_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl36" + }, + { + "name": "oe_test_ltp_syscalls_fcntl36_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl37" + }, + { + "name": "oe_test_ltp_syscalls_fcntl37_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl38" + }, + { + "name": "oe_test_ltp_syscalls_fcntl38_64" + }, + { + "name": "oe_test_ltp_syscalls_fcntl39" + }, + { + "name": "oe_test_ltp_syscalls_fcntl39_64" + }, + { + "name": "oe_test_ltp_syscalls_fdatasync01" + }, + { + "name": "oe_test_ltp_syscalls_fdatasync02" + }, + { + "name": "oe_test_ltp_syscalls_fdatasync03" + }, + { + "name": "oe_test_ltp_syscalls_fgetxattr01" + }, + { + "name": "oe_test_ltp_syscalls_fgetxattr02" + }, + { + "name": "oe_test_ltp_syscalls_fgetxattr03" + }, + { + "name": "oe_test_ltp_syscalls_finit_module01" + }, + { + "name": "oe_test_ltp_syscalls_finit_module02" + }, + { + "name": "oe_test_ltp_syscalls_flistxattr01" + }, + { + "name": "oe_test_ltp_syscalls_flistxattr02" + }, + { + "name": "oe_test_ltp_syscalls_flistxattr03" + }, + { + "name": "oe_test_ltp_syscalls_flock01" + }, + { + "name": "oe_test_ltp_syscalls_flock02" + }, + { + "name": "oe_test_ltp_syscalls_flock03" + }, + { + "name": "oe_test_ltp_syscalls_flock04" + }, + { + "name": "oe_test_ltp_syscalls_flock06" + }, + { + "name": "oe_test_ltp_syscalls_fmtmsg01" + }, + { + "name": "oe_test_ltp_syscalls_fork01" + }, + { + "name": "oe_test_ltp_syscalls_fork03" + }, + { + "name": "oe_test_ltp_syscalls_fork04" + }, + { + "name": "oe_test_ltp_syscalls_fork05" + }, + { + "name": "oe_test_ltp_syscalls_fork06" + }, + { + "name": "oe_test_ltp_syscalls_fork07" + }, + { + "name": "oe_test_ltp_syscalls_fork08" + }, + { + "name": "oe_test_ltp_syscalls_fork09" + }, + { + "name": "oe_test_ltp_syscalls_fork10" + }, + { + "name": "oe_test_ltp_syscalls_fork11" + }, + { + "name": "oe_test_ltp_syscalls_fork13" + }, + { + "name": "oe_test_ltp_syscalls_fork14" + }, + { + "name": "oe_test_ltp_syscalls_fpathconf01" + }, + { + "name": "oe_test_ltp_syscalls_fremovexattr01" + }, + { + "name": "oe_test_ltp_syscalls_fremovexattr02" + }, + { + "name": "oe_test_ltp_syscalls_fsconfig01" + }, + { + "name": "oe_test_ltp_syscalls_fsconfig02" + }, + { + "name": "oe_test_ltp_syscalls_fsconfig03" + }, + { + "name": "oe_test_ltp_syscalls_fsmount01" + }, + { + "name": "oe_test_ltp_syscalls_fsmount02" + }, + { + "name": "oe_test_ltp_syscalls_fsopen01" + }, + { + "name": "oe_test_ltp_syscalls_fsopen02" + }, + { + "name": "oe_test_ltp_syscalls_fspick01" + }, + { + "name": "oe_test_ltp_syscalls_fspick02" + }, + { + "name": "oe_test_ltp_syscalls_fstat02" + }, + { + "name": "oe_test_ltp_syscalls_fstat02_64" + }, + { + "name": "oe_test_ltp_syscalls_fstat03" + }, + { + "name": "oe_test_ltp_syscalls_fstat03_64" + }, + { + "name": "oe_test_ltp_syscalls_fstatat01" + }, + { + "name": "oe_test_ltp_syscalls_fstatfs01" + }, + { + "name": "oe_test_ltp_syscalls_fstatfs01_64" + }, + { + "name": "oe_test_ltp_syscalls_fstatfs02" + }, + { + "name": "oe_test_ltp_syscalls_fstatfs02_64" + }, + { + "name": "oe_test_ltp_syscalls_fsync01" + }, + { + "name": "oe_test_ltp_syscalls_fsync02" + }, + { + "name": "oe_test_ltp_syscalls_fsync03" + }, + { + "name": "oe_test_ltp_syscalls_fsync04" + }, + { + "name": "oe_test_ltp_syscalls_ftruncate01" + }, + { + "name": "oe_test_ltp_syscalls_ftruncate01_64" + }, + { + "name": "oe_test_ltp_syscalls_ftruncate03" + }, + { + "name": "oe_test_ltp_syscalls_ftruncate03_64" + }, + { + "name": "oe_test_ltp_syscalls_ftruncate04" + }, + { + "name": "oe_test_ltp_syscalls_ftruncate04_64" + }, + { + "name": "oe_test_ltp_syscalls_futimesat01" + }, + { + "name": "oe_test_ltp_syscalls_getcontext01" + }, + { + "name": "oe_test_ltp_syscalls_getcpu01" + }, + { + "name": "oe_test_ltp_syscalls_getcwd01" + }, + { + "name": "oe_test_ltp_syscalls_getcwd02" + }, + { + "name": "oe_test_ltp_syscalls_getcwd03" + }, + { + "name": "oe_test_ltp_syscalls_getcwd04" + }, + { + "name": "oe_test_ltp_syscalls_getdents01" + }, + { + "name": "oe_test_ltp_syscalls_getdents02" + }, + { + "name": "oe_test_ltp_syscalls_getdomainname01" + }, + { + "name": "oe_test_ltp_syscalls_getegid01" + }, + { + "name": "oe_test_ltp_syscalls_getegid01_16" + }, + { + "name": "oe_test_ltp_syscalls_getegid02" + }, + { + "name": "oe_test_ltp_syscalls_getegid02_16" + }, + { + "name": "oe_test_ltp_syscalls_geteuid01" + }, + { + "name": "oe_test_ltp_syscalls_geteuid01_16" + }, + { + "name": "oe_test_ltp_syscalls_geteuid02" + }, + { + "name": "oe_test_ltp_syscalls_geteuid02_16" + }, + { + "name": "oe_test_ltp_syscalls_getgid01" + }, + { + "name": "oe_test_ltp_syscalls_getgid01_16" + }, + { + "name": "oe_test_ltp_syscalls_getgid03" + }, + { + "name": "oe_test_ltp_syscalls_getgid03_16" + }, + { + "name": "oe_test_ltp_syscalls_getgroups01" + }, + { + "name": "oe_test_ltp_syscalls_getgroups01_16" + }, + { + "name": "oe_test_ltp_syscalls_getgroups03" + }, + { + "name": "oe_test_ltp_syscalls_getgroups03_16" + }, + { + "name": "oe_test_ltp_syscalls_gethostbyname_r01" + }, + { + "name": "oe_test_ltp_syscalls_gethostid01" + }, + { + "name": "oe_test_ltp_syscalls_gethostname01" + }, + { + "name": "oe_test_ltp_syscalls_getitimer01" + }, + { + "name": "oe_test_ltp_syscalls_getitimer02" + }, + { + "name": "oe_test_ltp_syscalls_getpagesize01" + }, + { + "name": "oe_test_ltp_syscalls_getpeername01" + }, + { + "name": "oe_test_ltp_syscalls_getpgid01" + }, + { + "name": "oe_test_ltp_syscalls_getpgid02" + }, + { + "name": "oe_test_ltp_syscalls_getpgrp01" + }, + { + "name": "oe_test_ltp_syscalls_getpid01" + }, + { + "name": "oe_test_ltp_syscalls_getpid02" + }, + { + "name": "oe_test_ltp_syscalls_getppid01" + }, + { + "name": "oe_test_ltp_syscalls_getppid02" + }, + { + "name": "oe_test_ltp_syscalls_getpriority01" + }, + { + "name": "oe_test_ltp_syscalls_getpriority02" + }, + { + "name": "oe_test_ltp_syscalls_getrandom01" + }, + { + "name": "oe_test_ltp_syscalls_getrandom02" + }, + { + "name": "oe_test_ltp_syscalls_getrandom03" + }, + { + "name": "oe_test_ltp_syscalls_getrandom04" + }, + { + "name": "oe_test_ltp_syscalls_getresgid01" + }, + { + "name": "oe_test_ltp_syscalls_getresgid01_16" + }, + { + "name": "oe_test_ltp_syscalls_getresgid02" + }, + { + "name": "oe_test_ltp_syscalls_getresgid02_16" + }, + { + "name": "oe_test_ltp_syscalls_getresgid03" + }, + { + "name": "oe_test_ltp_syscalls_getresgid03_16" + }, + { + "name": "oe_test_ltp_syscalls_getresuid01" + }, + { + "name": "oe_test_ltp_syscalls_getresuid01_16" + }, + { + "name": "oe_test_ltp_syscalls_getresuid02" + }, + { + "name": "oe_test_ltp_syscalls_getresuid02_16" + }, + { + "name": "oe_test_ltp_syscalls_getresuid03" + }, + { + "name": "oe_test_ltp_syscalls_getresuid03_16" + }, + { + "name": "oe_test_ltp_syscalls_getrlimit01" + }, + { + "name": "oe_test_ltp_syscalls_getrlimit02" + }, + { + "name": "oe_test_ltp_syscalls_getrlimit03" + }, + { + "name": "oe_test_ltp_syscalls_get_mempolicy01" + }, + { + "name": "oe_test_ltp_syscalls_get_mempolicy02" + }, + { + "name": "oe_test_ltp_syscalls_get_robust_list01" + }, + { + "name": "oe_test_ltp_syscalls_getrusage01" + }, + { + "name": "oe_test_ltp_syscalls_getrusage02" + }, + { + "name": "oe_test_ltp_syscalls_getrusage03" + }, + { + "name": "oe_test_ltp_syscalls_getrusage04" + }, + { + "name": "oe_test_ltp_syscalls_getsid01" + }, + { + "name": "oe_test_ltp_syscalls_getsid02" + }, + { + "name": "oe_test_ltp_syscalls_getsockname01" + }, + { + "name": "oe_test_ltp_syscalls_getsockopt01" + }, + { + "name": "oe_test_ltp_syscalls_getsockopt02" + }, + { + "name": "oe_test_ltp_syscalls_gettid01" + }, + { + "name": "oe_test_ltp_syscalls_gettid02" + }, + { + "name": "oe_test_ltp_syscalls_gettimeofday01" + }, + { + "name": "oe_test_ltp_syscalls_gettimeofday02" + }, + { + "name": "oe_test_ltp_syscalls_getuid01" + }, + { + "name": "oe_test_ltp_syscalls_getuid01_16" + }, + { + "name": "oe_test_ltp_syscalls_getuid03" + }, + { + "name": "oe_test_ltp_syscalls_getuid03_16" + }, + { + "name": "oe_test_ltp_syscalls_getxattr01" + }, + { + "name": "oe_test_ltp_syscalls_getxattr02" + }, + { + "name": "oe_test_ltp_syscalls_getxattr03" + }, + { + "name": "oe_test_ltp_syscalls_getxattr04" + }, + { + "name": "oe_test_ltp_syscalls_getxattr05" + }, + { + "name": "oe_test_ltp_syscalls_init_module01" + }, + { + "name": "oe_test_ltp_syscalls_init_module02" + }, + { + "name": "oe_test_ltp_syscalls_ioctl01" + }, + { + "name": "oe_test_ltp_syscalls_ioctl02" + }, + { + "name": "oe_test_ltp_syscalls_ioctl03" + }, + { + "name": "oe_test_ltp_syscalls_ioctl04" + }, + { + "name": "oe_test_ltp_syscalls_ioctl05" + }, + { + "name": "oe_test_ltp_syscalls_ioctl06" + }, + { + "name": "oe_test_ltp_syscalls_ioctl07" + }, + { + "name": "oe_test_ltp_syscalls_ioctl08" + }, + { + "name": "oe_test_ltp_syscalls_ioctl09" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_loop01" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_loop02" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_loop03" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_loop04" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_loop05" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_loop06" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_loop07" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ns01" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ns02" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ns03" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ns04" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ns05" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ns06" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_ns07" + }, + { + "name": "oe_test_ltp_syscalls_ioctl_sg01" + }, + { + "name": "oe_test_ltp_syscalls_inotify_init1_01" + }, + { + "name": "oe_test_ltp_syscalls_inotify_init1_02" + }, + { + "name": "oe_test_ltp_syscalls_inotify01" + }, + { + "name": "oe_test_ltp_syscalls_inotify02" + }, + { + "name": "oe_test_ltp_syscalls_inotify03" + }, + { + "name": "oe_test_ltp_syscalls_inotify04" + }, + { + "name": "oe_test_ltp_syscalls_inotify05" + }, + { + "name": "oe_test_ltp_syscalls_inotify06" + }, + { + "name": "oe_test_ltp_syscalls_inotify07" + }, + { + "name": "oe_test_ltp_syscalls_inotify08" + }, + { + "name": "oe_test_ltp_syscalls_inotify09" + }, + { + "name": "oe_test_ltp_syscalls_inotify10" + }, + { + "name": "oe_test_ltp_syscalls_inotify11" + }, + { + "name": "oe_test_ltp_syscalls_inotify12" + }, + { + "name": "oe_test_ltp_syscalls_fanotify01" + }, + { + "name": "oe_test_ltp_syscalls_fanotify02" + }, + { + "name": "oe_test_ltp_syscalls_fanotify03" + }, + { + "name": "oe_test_ltp_syscalls_fanotify04" + }, + { + "name": "oe_test_ltp_syscalls_fanotify05" + }, + { + "name": "oe_test_ltp_syscalls_fanotify06" + }, + { + "name": "oe_test_ltp_syscalls_fanotify07" + }, + { + "name": "oe_test_ltp_syscalls_fanotify08" + }, + { + "name": "oe_test_ltp_syscalls_fanotify09" + }, + { + "name": "oe_test_ltp_syscalls_fanotify10" + }, + { + "name": "oe_test_ltp_syscalls_fanotify11" + }, + { + "name": "oe_test_ltp_syscalls_fanotify12" + }, + { + "name": "oe_test_ltp_syscalls_fanotify13" + }, + { + "name": "oe_test_ltp_syscalls_fanotify14" + }, + { + "name": "oe_test_ltp_syscalls_fanotify15" + }, + { + "name": "oe_test_ltp_syscalls_fanotify16" + }, + { + "name": "oe_test_ltp_syscalls_fanotify17" + }, + { + "name": "oe_test_ltp_syscalls_fanotify18" + }, + { + "name": "oe_test_ltp_syscalls_fanotify19" + }, + { + "name": "oe_test_ltp_syscalls_fanotify20" + }, + { + "name": "oe_test_ltp_syscalls_fanotify21" + }, + { + "name": "oe_test_ltp_syscalls_fanotify22" + }, + { + "name": "oe_test_ltp_syscalls_fanotify23" + }, + { + "name": "oe_test_ltp_syscalls_ioperm01" + }, + { + "name": "oe_test_ltp_syscalls_ioperm02" + }, + { + "name": "oe_test_ltp_syscalls_iopl01" + }, + { + "name": "oe_test_ltp_syscalls_iopl02" + }, + { + "name": "oe_test_ltp_syscalls_ioprio_get01" + }, + { + "name": "oe_test_ltp_syscalls_ioprio_set01" + }, + { + "name": "oe_test_ltp_syscalls_ioprio_set02" + }, + { + "name": "oe_test_ltp_syscalls_ioprio_set03" + }, + { + "name": "oe_test_ltp_syscalls_io_cancel01" + }, + { + "name": "oe_test_ltp_syscalls_io_cancel02" + }, + { + "name": "oe_test_ltp_syscalls_io_destroy01" + }, + { + "name": "oe_test_ltp_syscalls_io_destroy02" + }, + { + "name": "oe_test_ltp_syscalls_io_getevents01" + }, + { + "name": "oe_test_ltp_syscalls_io_getevents02" + }, + { + "name": "oe_test_ltp_syscalls_io_pgetevents01" + }, + { + "name": "oe_test_ltp_syscalls_io_pgetevents02" + }, + { + "name": "oe_test_ltp_syscalls_io_setup01" + }, + { + "name": "oe_test_ltp_syscalls_io_setup02" + }, + { + "name": "oe_test_ltp_syscalls_io_submit01" + }, + { + "name": "oe_test_ltp_syscalls_io_submit02" + }, + { + "name": "oe_test_ltp_syscalls_io_submit03" + }, + { + "name": "oe_test_ltp_syscalls_keyctl01" + }, + { + "name": "oe_test_ltp_syscalls_keyctl02" + }, + { + "name": "oe_test_ltp_syscalls_keyctl03" + }, + { + "name": "oe_test_ltp_syscalls_keyctl04" + }, + { + "name": "oe_test_ltp_syscalls_keyctl05" + }, + { + "name": "oe_test_ltp_syscalls_keyctl06" + }, + { + "name": "oe_test_ltp_syscalls_keyctl07" + }, + { + "name": "oe_test_ltp_syscalls_keyctl08" + }, + { + "name": "oe_test_ltp_syscalls_keyctl09" + }, + { + "name": "oe_test_ltp_syscalls_kcmp01" + }, + { + "name": "oe_test_ltp_syscalls_kcmp02" + }, + { + "name": "oe_test_ltp_syscalls_kcmp03" + }, + { + "name": "oe_test_ltp_syscalls_kill02" + }, + { + "name": "oe_test_ltp_syscalls_kill03" + }, + { + "name": "oe_test_ltp_syscalls_kill05" + }, + { + "name": "oe_test_ltp_syscalls_kill06" + }, + { + "name": "oe_test_ltp_syscalls_kill07" + }, + { + "name": "oe_test_ltp_syscalls_kill08" + }, + { + "name": "oe_test_ltp_syscalls_kill09" + }, + { + "name": "oe_test_ltp_syscalls_kill10" + }, + { + "name": "oe_test_ltp_syscalls_kill11" + }, + { + "name": "oe_test_ltp_syscalls_kill12" + }, + { + "name": "oe_test_ltp_syscalls_kill13" + }, + { + "name": "oe_test_ltp_syscalls_lchown01" + }, + { + "name": "oe_test_ltp_syscalls_lchown01_16" + }, + { + "name": "oe_test_ltp_syscalls_lchown02" + }, + { + "name": "oe_test_ltp_syscalls_lchown03" + }, + { + "name": "oe_test_ltp_syscalls_lchown02_16" + }, + { + "name": "oe_test_ltp_syscalls_lchown03_16" + }, + { + "name": "oe_test_ltp_syscalls_lgetxattr01" + }, + { + "name": "oe_test_ltp_syscalls_lgetxattr02" + }, + { + "name": "oe_test_ltp_syscalls_link01" + }, + { + "name": "oe_test_ltp_syscalls_link02" + }, + { + "name": "oe_test_ltp_syscalls_link04" + }, + { + "name": "oe_test_ltp_syscalls_link05" + }, + { + "name": "oe_test_ltp_syscalls_link08" + }, + { + "name": "oe_test_ltp_syscalls_linkat01" + }, + { + "name": "oe_test_ltp_syscalls_linkat02" + }, + { + "name": "oe_test_ltp_syscalls_listen01" + }, + { + "name": "oe_test_ltp_syscalls_listxattr01" + }, + { + "name": "oe_test_ltp_syscalls_listxattr02" + }, + { + "name": "oe_test_ltp_syscalls_listxattr03" + }, + { + "name": "oe_test_ltp_syscalls_llistxattr01" + }, + { + "name": "oe_test_ltp_syscalls_llistxattr02" + }, + { + "name": "oe_test_ltp_syscalls_llistxattr03" + }, + { + "name": "oe_test_ltp_syscalls_llseek01" + }, + { + "name": "oe_test_ltp_syscalls_llseek02" + }, + { + "name": "oe_test_ltp_syscalls_llseek03" + }, + { + "name": "oe_test_ltp_syscalls_lremovexattr01" + }, + { + "name": "oe_test_ltp_syscalls_lseek01" + }, + { + "name": "oe_test_ltp_syscalls_lseek02" + }, + { + "name": "oe_test_ltp_syscalls_lseek07" + }, + { + "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" + }, + { + "name": "oe_test_ltp_syscalls_lstat01_64" + }, + { + "name": "oe_test_ltp_syscalls_lstat02" + }, + { + "name": "oe_test_ltp_syscalls_lstat02_64" + }, + { + "name": "oe_test_ltp_syscalls_mallinfo02" + }, + { + "name": "oe_test_ltp_syscalls_mallinfo2_01" + }, + { + "name": "oe_test_ltp_syscalls_mallopt01" + }, + { + "name": "oe_test_ltp_syscalls_mbind01" + }, + { + "name": "oe_test_ltp_syscalls_mbind02" + }, + { + "name": "oe_test_ltp_syscalls_mbind03" + }, + { + "name": "oe_test_ltp_syscalls_mbind04" + }, + { + "name": "oe_test_ltp_syscalls_memset01" + }, + { + "name": "oe_test_ltp_syscalls_memcmp01" + }, + { + "name": "oe_test_ltp_syscalls_memcpy01" + }, + { + "name": "oe_test_ltp_syscalls_migrate_pages01" + }, + { + "name": "oe_test_ltp_syscalls_migrate_pages02" + }, + { + "name": "oe_test_ltp_syscalls_migrate_pages03" + }, + { + "name": "oe_test_ltp_syscalls_mlockall01" + }, + { + "name": "oe_test_ltp_syscalls_mlockall02" + }, + { + "name": "oe_test_ltp_syscalls_mlockall03" + }, + { + "name": "oe_test_ltp_syscalls_mkdir02" + }, + { + "name": "oe_test_ltp_syscalls_mkdir03" + }, + { + "name": "oe_test_ltp_syscalls_mkdir04" + }, + { + "name": "oe_test_ltp_syscalls_mkdir05" + }, + { + "name": "oe_test_ltp_syscalls_mkdir05A" + }, + { + "name": "oe_test_ltp_syscalls_mkdir09" + }, + { + "name": "oe_test_ltp_syscalls_mkdirat01" + }, + { + "name": "oe_test_ltp_syscalls_mkdirat02" + }, + { + "name": "oe_test_ltp_syscalls_mknod01" + }, + { + "name": "oe_test_ltp_syscalls_mknod02" + }, + { + "name": "oe_test_ltp_syscalls_mknod03" + }, + { + "name": "oe_test_ltp_syscalls_mknod04" + }, + { + "name": "oe_test_ltp_syscalls_mknod05" + }, + { + "name": "oe_test_ltp_syscalls_mknod06" + }, + { + "name": "oe_test_ltp_syscalls_mknod07" + }, + { + "name": "oe_test_ltp_syscalls_mknod08" + }, + { + "name": "oe_test_ltp_syscalls_mknod09" + }, + { + "name": "oe_test_ltp_syscalls_mknodat01" + }, + { + "name": "oe_test_ltp_syscalls_mknodat02" + }, + { + "name": "oe_test_ltp_syscalls_mlock01" + }, + { + "name": "oe_test_ltp_syscalls_mlock02" + }, + { + "name": "oe_test_ltp_syscalls_mlock03" + }, + { + "name": "oe_test_ltp_syscalls_mlock04" + }, + { + "name": "oe_test_ltp_syscalls_mlock201" + }, + { + "name": "oe_test_ltp_syscalls_mlock202" + }, + { + "name": "oe_test_ltp_syscalls_mlock203" + }, + { + "name": "oe_test_ltp_syscalls_qmm01" + }, + { + "name": "oe_test_ltp_syscalls_mmap01" + }, + { + "name": "oe_test_ltp_syscalls_mmap02" + }, + { + "name": "oe_test_ltp_syscalls_mmap03" + }, + { + "name": "oe_test_ltp_syscalls_mmap04" + }, + { + "name": "oe_test_ltp_syscalls_mmap05" + }, + { + "name": "oe_test_ltp_syscalls_mmap06" + }, + { + "name": "oe_test_ltp_syscalls_mmap08" + }, + { + "name": "oe_test_ltp_syscalls_mmap09" + }, + { + "name": "oe_test_ltp_syscalls_mmap12" + }, + { + "name": "oe_test_ltp_syscalls_mmap13" + }, + { + "name": "oe_test_ltp_syscalls_mmap14" + }, + { + "name": "oe_test_ltp_syscalls_mmap15" + }, + { + "name": "oe_test_ltp_syscalls_mmap16" + }, + { + "name": "oe_test_ltp_syscalls_mmap17" + }, + { + "name": "oe_test_ltp_syscalls_mmap18" + }, + { + "name": "oe_test_ltp_syscalls_mmap19" + }, + { + "name": "oe_test_ltp_syscalls_mmap20" + }, + { + "name": "oe_test_ltp_syscalls_modify_ldt01" + }, + { + "name": "oe_test_ltp_syscalls_modify_ldt02" + }, + { + "name": "oe_test_ltp_syscalls_modify_ldt03" + }, + { + "name": "oe_test_ltp_syscalls_mount01" + }, + { + "name": "oe_test_ltp_syscalls_mount02" + }, + { + "name": "oe_test_ltp_syscalls_mount03" + }, + { + "name": "oe_test_ltp_syscalls_mount04" + }, + { + "name": "oe_test_ltp_syscalls_mount05" + }, + { + "name": "oe_test_ltp_syscalls_mount06" + }, + { + "name": "oe_test_ltp_syscalls_mount07" + }, + { + "name": "oe_test_ltp_syscalls_mount_setattr01" + }, + { + "name": "oe_test_ltp_syscalls_move_mount01" + }, + { + "name": "oe_test_ltp_syscalls_move_mount02" + }, + { + "name": "oe_test_ltp_syscalls_move_pages01" + }, + { + "name": "oe_test_ltp_syscalls_move_pages02" + }, + { + "name": "oe_test_ltp_syscalls_move_pages03" + }, + { + "name": "oe_test_ltp_syscalls_move_pages04" + }, + { + "name": "oe_test_ltp_syscalls_move_pages05" + }, + { + "name": "oe_test_ltp_syscalls_move_pages06" + }, + { + "name": "oe_test_ltp_syscalls_move_pages07" + }, + { + "name": "oe_test_ltp_syscalls_move_pages09" + }, + { + "name": "oe_test_ltp_syscalls_move_pages10" + }, + { + "name": "oe_test_ltp_syscalls_move_pages11" + }, + { + "name": "oe_test_ltp_syscalls_move_pages12" + }, + { + "name": "oe_test_ltp_syscalls_mprotect01" + }, + { + "name": "oe_test_ltp_syscalls_mprotect02" + }, + { + "name": "oe_test_ltp_syscalls_mprotect03" + }, + { + "name": "oe_test_ltp_syscalls_mprotect04" + }, + { + "name": "oe_test_ltp_syscalls_mprotect05" + }, + { + "name": "oe_test_ltp_syscalls_pkey01" + }, + { + "name": "oe_test_ltp_syscalls_mq_notify01" + }, + { + "name": "oe_test_ltp_syscalls_mq_notify02" + }, + { + "name": "oe_test_ltp_syscalls_mq_notify03" + }, + { + "name": "oe_test_ltp_syscalls_mq_open01" + }, + { + "name": "oe_test_ltp_syscalls_mq_timedreceive01" + }, + { + "name": "oe_test_ltp_syscalls_mq_timedsend01" + }, + { + "name": "oe_test_ltp_syscalls_mq_unlink01" + }, + { + "name": "oe_test_ltp_syscalls_mremap01" + }, + { + "name": "oe_test_ltp_syscalls_mremap02" + }, + { + "name": "oe_test_ltp_syscalls_mremap03" + }, + { + "name": "oe_test_ltp_syscalls_mremap04" + }, + { + "name": "oe_test_ltp_syscalls_mremap05" + }, + { + "name": "oe_test_ltp_syscalls_mremap06" + }, + { + "name": "oe_test_ltp_syscalls_msgctl01" + }, + { + "name": "oe_test_ltp_syscalls_msgctl02" + }, + { + "name": "oe_test_ltp_syscalls_msgctl03" + }, + { + "name": "oe_test_ltp_syscalls_msgctl04" + }, + { + "name": "oe_test_ltp_syscalls_msgctl05" + }, + { + "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_msgget01" + }, + { + "name": "oe_test_ltp_syscalls_msgget02" + }, + { + "name": "oe_test_ltp_syscalls_msgget03" + }, + { + "name": "oe_test_ltp_syscalls_msgget04" + }, + { + "name": "oe_test_ltp_syscalls_msgget05" + }, + { + "name": "oe_test_ltp_syscalls_msgrcv01" + }, + { + "name": "oe_test_ltp_syscalls_msgrcv02" + }, + { + "name": "oe_test_ltp_syscalls_msgrcv03" + }, + { + "name": "oe_test_ltp_syscalls_msgrcv05" + }, + { + "name": "oe_test_ltp_syscalls_msgrcv06" + }, + { + "name": "oe_test_ltp_syscalls_msgrcv07" + }, + { + "name": "oe_test_ltp_syscalls_msgrcv08" + }, + { + "name": "oe_test_ltp_syscalls_msgsnd01" + }, + { + "name": "oe_test_ltp_syscalls_msgsnd02" + }, + { + "name": "oe_test_ltp_syscalls_msgsnd05" + }, + { + "name": "oe_test_ltp_syscalls_msgsnd06" + }, + { + "name": "oe_test_ltp_syscalls_msync01" + }, + { + "name": "oe_test_ltp_syscalls_msync02" + }, + { + "name": "oe_test_ltp_syscalls_msync03" + }, + { + "name": "oe_test_ltp_syscalls_msync04" + }, + { + "name": "oe_test_ltp_syscalls_munlock01" + }, + { + "name": "oe_test_ltp_syscalls_munlock02" + }, + { + "name": "oe_test_ltp_syscalls_munlockall01" + }, + { + "name": "oe_test_ltp_syscalls_munmap01" + }, + { + "name": "oe_test_ltp_syscalls_munmap02" + }, + { + "name": "oe_test_ltp_syscalls_munmap03" + }, + { + "name": "oe_test_ltp_syscalls_nanosleep01" + }, + { + "name": "oe_test_ltp_syscalls_nanosleep02" + }, + { + "name": "oe_test_ltp_syscalls_nanosleep04" + }, + { + "name": "oe_test_ltp_syscalls_name_to_handle_at01" + }, + { + "name": "oe_test_ltp_syscalls_name_to_handle_at02" + }, + { + "name": "oe_test_ltp_syscalls_nftw01" + }, + { + "name": "oe_test_ltp_syscalls_nftw6401" + }, + { + "name": "oe_test_ltp_syscalls_nice01" + }, + { + "name": "oe_test_ltp_syscalls_nice02" + }, + { + "name": "oe_test_ltp_syscalls_nice03" + }, + { + "name": "oe_test_ltp_syscalls_nice04" + }, + { + "name": "oe_test_ltp_syscalls_nice05" + }, + { + "name": "oe_test_ltp_syscalls_open01" + }, + { + "name": "oe_test_ltp_syscalls_open01A" + }, + { + "name": "oe_test_ltp_syscalls_open02" + }, + { + "name": "oe_test_ltp_syscalls_open03" + }, + { + "name": "oe_test_ltp_syscalls_open04" + }, + { + "name": "oe_test_ltp_syscalls_open06" + }, + { + "name": "oe_test_ltp_syscalls_open07" + }, + { + "name": "oe_test_ltp_syscalls_open08" + }, + { + "name": "oe_test_ltp_syscalls_open09" + }, + { + "name": "oe_test_ltp_syscalls_open10" + }, + { + "name": "oe_test_ltp_syscalls_open11" + }, + { + "name": "oe_test_ltp_syscalls_open12" + }, + { + "name": "oe_test_ltp_syscalls_open13" + }, + { + "name": "oe_test_ltp_syscalls_open14" + }, + { + "name": "oe_test_ltp_syscalls_openat01" + }, + { + "name": "oe_test_ltp_syscalls_openat02" + }, + { + "name": "oe_test_ltp_syscalls_openat03" + }, + { + "name": "oe_test_ltp_syscalls_openat04" + }, + { + "name": "oe_test_ltp_syscalls_openat201" + }, + { + "name": "oe_test_ltp_syscalls_openat202" + }, + { + "name": "oe_test_ltp_syscalls_openat203" + }, + { + "name": "oe_test_ltp_syscalls_open_by_handle_at01" + }, + { + "name": "oe_test_ltp_syscalls_open_by_handle_at02" + }, + { + "name": "oe_test_ltp_syscalls_open_tree01" + }, + { + "name": "oe_test_ltp_syscalls_open_tree02" + }, + { + "name": "oe_test_ltp_syscalls_mincore01" + }, + { + "name": "oe_test_ltp_syscalls_mincore02" + }, + { + "name": "oe_test_ltp_syscalls_mincore03" + }, + { + "name": "oe_test_ltp_syscalls_mincore04" + }, + { + "name": "oe_test_ltp_syscalls_madvise01" + }, + { + "name": "oe_test_ltp_syscalls_madvise02" + }, + { + "name": "oe_test_ltp_syscalls_madvise03" + }, + { + "name": "oe_test_ltp_syscalls_madvise05" + }, + { + "name": "oe_test_ltp_syscalls_madvise06" + }, + { + "name": "oe_test_ltp_syscalls_madvise07" + }, + { + "name": "oe_test_ltp_syscalls_madvise08" + }, + { + "name": "oe_test_ltp_syscalls_madvise09" + }, + { + "name": "oe_test_ltp_syscalls_madvise10" + }, + { + "name": "oe_test_ltp_syscalls_madvise11" + }, + { + "name": "oe_test_ltp_syscalls_newuname01" + }, + { + "name": "oe_test_ltp_syscalls_pathconf01" + }, + { + "name": "oe_test_ltp_syscalls_pathconf02" + }, + { + "name": "oe_test_ltp_syscalls_pause01" + }, + { + "name": "oe_test_ltp_syscalls_pause02" + }, + { + "name": "oe_test_ltp_syscalls_pause03" + }, + { + "name": "oe_test_ltp_syscalls_personality01" + }, + { + "name": "oe_test_ltp_syscalls_personality02" + }, + { + "name": "oe_test_ltp_syscalls_pidfd_getfd01" + }, + { + "name": "oe_test_ltp_syscalls_pidfd_getfd02" + }, + { + "name": "oe_test_ltp_syscalls_pidfd_open01" + }, + { + "name": "oe_test_ltp_syscalls_pidfd_open02" + }, + { + "name": "oe_test_ltp_syscalls_pidfd_open03" + }, + { + "name": "oe_test_ltp_syscalls_pidfd_open04" + }, + { + "name": "oe_test_ltp_syscalls_pidfd_send_signal01" + }, + { + "name": "oe_test_ltp_syscalls_pidfd_send_signal02" + }, + { + "name": "oe_test_ltp_syscalls_pidfd_send_signal03" + }, + { + "name": "oe_test_ltp_syscalls_pipe01" + }, + { + "name": "oe_test_ltp_syscalls_pipe02" + }, + { + "name": "oe_test_ltp_syscalls_pipe03" + }, + { + "name": "oe_test_ltp_syscalls_pipe04" + }, + { + "name": "oe_test_ltp_syscalls_pipe05" + }, + { + "name": "oe_test_ltp_syscalls_pipe06" + }, + { + "name": "oe_test_ltp_syscalls_pipe07" + }, + { + "name": "oe_test_ltp_syscalls_pipe08" + }, + { + "name": "oe_test_ltp_syscalls_pipe09" + }, + { + "name": "oe_test_ltp_syscalls_pipe10" + }, + { + "name": "oe_test_ltp_syscalls_pipe11" + }, + { + "name": "oe_test_ltp_syscalls_pipe12" + }, + { + "name": "oe_test_ltp_syscalls_pipe13" + }, + { + "name": "oe_test_ltp_syscalls_pipe14" + }, + { + "name": "oe_test_ltp_syscalls_pipe15" + }, + { + "name": "oe_test_ltp_syscalls_pipe2_01" + }, + { + "name": "oe_test_ltp_syscalls_pipe2_02" + }, + { + "name": "oe_test_ltp_syscalls_pipe2_04" + }, + { + "name": "oe_test_ltp_syscalls_pivot_root01" + }, + { + "name": "oe_test_ltp_syscalls_poll01" + }, + { + "name": "oe_test_ltp_syscalls_poll02" + }, + { + "name": "oe_test_ltp_syscalls_ppoll01" + }, + { + "name": "oe_test_ltp_syscalls_prctl01" + }, + { + "name": "oe_test_ltp_syscalls_prctl02" + }, + { + "name": "oe_test_ltp_syscalls_prctl03" + }, + { + "name": "oe_test_ltp_syscalls_prctl04" + }, + { + "name": "oe_test_ltp_syscalls_prctl05" + }, + { + "name": "oe_test_ltp_syscalls_prctl06" + }, + { + "name": "oe_test_ltp_syscalls_prctl07" + }, + { + "name": "oe_test_ltp_syscalls_prctl08" + }, + { + "name": "oe_test_ltp_syscalls_prctl09" + }, + { + "name": "oe_test_ltp_syscalls_prctl10" + }, + { + "name": "oe_test_ltp_syscalls_pread01" + }, + { + "name": "oe_test_ltp_syscalls_pread01_64" + }, + { + "name": "oe_test_ltp_syscalls_pread02" + }, + { + "name": "oe_test_ltp_syscalls_pread02_64" + }, + { + "name": "oe_test_ltp_syscalls_preadv01" + }, + { + "name": "oe_test_ltp_syscalls_preadv01_64" + }, + { + "name": "oe_test_ltp_syscalls_preadv02" + }, + { + "name": "oe_test_ltp_syscalls_preadv02_64" + }, + { + "name": "oe_test_ltp_syscalls_preadv03" + }, + { + "name": "oe_test_ltp_syscalls_preadv03_64" + }, + { + "name": "oe_test_ltp_syscalls_preadv201" + }, + { + "name": "oe_test_ltp_syscalls_preadv201_64" + }, + { + "name": "oe_test_ltp_syscalls_preadv202" + }, + { + "name": "oe_test_ltp_syscalls_preadv202_64" + }, + { + "name": "oe_test_ltp_syscalls_preadv203" + }, + { + "name": "oe_test_ltp_syscalls_preadv203_64" + }, + { + "name": "oe_test_ltp_syscalls_profil01" + }, + { + "name": "oe_test_ltp_syscalls_process_vm_readv01" + }, + { + "name": "oe_test_ltp_syscalls_process_vm_readv02" + }, + { + "name": "oe_test_ltp_syscalls_process_vm_readv03" + }, + { + "name": "oe_test_ltp_syscalls_process_vm_writev01" + }, + { + "name": "oe_test_ltp_syscalls_process_vm_writev02" + }, + { + "name": "oe_test_ltp_syscalls_process_madvise01" + }, + { + "name": "oe_test_ltp_syscalls_prot_hsymlinks" + }, + { + "name": "oe_test_ltp_syscalls_dirtyc0w" + }, + { + "name": "oe_test_ltp_syscalls_dirtyc0w_shmem" + }, + { + "name": "oe_test_ltp_syscalls_dirtypipe" + }, + { + "name": "oe_test_ltp_syscalls_pselect01" + }, + { + "name": "oe_test_ltp_syscalls_pselect01_64" + }, + { + "name": "oe_test_ltp_syscalls_pselect02" + }, + { + "name": "oe_test_ltp_syscalls_pselect02_64" + }, + { + "name": "oe_test_ltp_syscalls_pselect03" + }, + { + "name": "oe_test_ltp_syscalls_pselect03_64" + }, + { + "name": "oe_test_ltp_syscalls_ptrace01" + }, + { + "name": "oe_test_ltp_syscalls_ptrace02" + }, + { + "name": "oe_test_ltp_syscalls_ptrace03" + }, + { + "name": "oe_test_ltp_syscalls_ptrace04" + }, + { + "name": "oe_test_ltp_syscalls_ptrace05" + }, + { + "name": "oe_test_ltp_syscalls_ptrace06" + }, + { + "name": "oe_test_ltp_syscalls_ptrace07" + }, + { + "name": "oe_test_ltp_syscalls_ptrace08" + }, + { + "name": "oe_test_ltp_syscalls_ptrace09" + }, + { + "name": "oe_test_ltp_syscalls_ptrace10" + }, + { + "name": "oe_test_ltp_syscalls_ptrace11" + }, + { + "name": "oe_test_ltp_syscalls_pwrite01" + }, + { + "name": "oe_test_ltp_syscalls_pwrite02" + }, + { + "name": "oe_test_ltp_syscalls_pwrite03" + }, + { + "name": "oe_test_ltp_syscalls_pwrite04" + }, + { + "name": "oe_test_ltp_syscalls_pwrite01_64" + }, + { + "name": "oe_test_ltp_syscalls_pwrite02_64" + }, + { + "name": "oe_test_ltp_syscalls_pwrite03_64" + }, + { + "name": "oe_test_ltp_syscalls_pwrite04_64" + }, + { + "name": "oe_test_ltp_syscalls_pwritev01" + }, + { + "name": "oe_test_ltp_syscalls_pwritev01_64" + }, + { + "name": "oe_test_ltp_syscalls_pwritev02" + }, + { + "name": "oe_test_ltp_syscalls_pwritev02_64" + }, + { + "name": "oe_test_ltp_syscalls_pwritev03" + }, + { + "name": "oe_test_ltp_syscalls_pwritev03_64" + }, + { + "name": "oe_test_ltp_syscalls_pwritev201" + }, + { + "name": "oe_test_ltp_syscalls_pwritev201_64" + }, + { + "name": "oe_test_ltp_syscalls_pwritev202" + }, + { + "name": "oe_test_ltp_syscalls_pwritev202_64" + }, + { + "name": "oe_test_ltp_syscalls_quotactl01" + }, + { + "name": "oe_test_ltp_syscalls_quotactl02" + }, + { + "name": "oe_test_ltp_syscalls_quotactl03" + }, + { + "name": "oe_test_ltp_syscalls_quotactl04" + }, + { + "name": "oe_test_ltp_syscalls_quotactl05" + }, + { + "name": "oe_test_ltp_syscalls_quotactl06" + }, + { + "name": "oe_test_ltp_syscalls_quotactl07" + }, + { + "name": "oe_test_ltp_syscalls_quotactl08" + }, + { + "name": "oe_test_ltp_syscalls_quotactl09" + }, + { + "name": "oe_test_ltp_syscalls_read01" + }, + { + "name": "oe_test_ltp_syscalls_read02" + }, + { + "name": "oe_test_ltp_syscalls_read03" + }, + { + "name": "oe_test_ltp_syscalls_read04" + }, + { + "name": "oe_test_ltp_syscalls_readahead01" + }, + { + "name": "oe_test_ltp_syscalls_readahead02" + }, + { + "name": "oe_test_ltp_syscalls_readdir01" + }, + { + "name": "oe_test_ltp_syscalls_readdir21" + }, + { + "name": "oe_test_ltp_syscalls_readlink01A" + }, + { + "name": "oe_test_ltp_syscalls_readlink01" + }, + { + "name": "oe_test_ltp_syscalls_readlink03" + }, + { + "name": "oe_test_ltp_syscalls_readlinkat01" + }, + { + "name": "oe_test_ltp_syscalls_readlinkat02" + }, + { + "name": "oe_test_ltp_syscalls_readv01" + }, + { + "name": "oe_test_ltp_syscalls_readv02" + }, + { + "name": "oe_test_ltp_syscalls_realpath01" + }, + { + "name": "oe_test_ltp_syscalls_reboot01" + }, + { + "name": "oe_test_ltp_syscalls_reboot02" + }, + { + "name": "oe_test_ltp_syscalls_recv01" + }, + { + "name": "oe_test_ltp_syscalls_recvfrom01" + }, + { + "name": "oe_test_ltp_syscalls_recvmsg01" + }, + { + "name": "oe_test_ltp_syscalls_recvmsg02" + }, + { + "name": "oe_test_ltp_syscalls_recvmsg03" + }, + { + "name": "oe_test_ltp_syscalls_recvmmsg01" + }, + { + "name": "oe_test_ltp_syscalls_remap_file_pages01" + }, + { + "name": "oe_test_ltp_syscalls_remap_file_pages02" + }, + { + "name": "oe_test_ltp_syscalls_removexattr01" + }, + { + "name": "oe_test_ltp_syscalls_removexattr02" + }, + { + "name": "oe_test_ltp_syscalls_rename01" + }, + { + "name": "oe_test_ltp_syscalls_rename01A" + }, + { + "name": "oe_test_ltp_syscalls_rename03" + }, + { + "name": "oe_test_ltp_syscalls_rename04" + }, + { + "name": "oe_test_ltp_syscalls_rename05" + }, + { + "name": "oe_test_ltp_syscalls_rename06" + }, + { + "name": "oe_test_ltp_syscalls_rename07" + }, + { + "name": "oe_test_ltp_syscalls_rename08" + }, + { + "name": "oe_test_ltp_syscalls_rename09" + }, + { + "name": "oe_test_ltp_syscalls_rename10" + }, + { + "name": "oe_test_ltp_syscalls_rename11" + }, + { + "name": "oe_test_ltp_syscalls_rename12" + }, + { + "name": "oe_test_ltp_syscalls_rename13" + }, + { + "name": "oe_test_ltp_syscalls_rename14" + }, + { + "name": "oe_test_ltp_syscalls_renameat01" + }, + { + "name": "oe_test_ltp_syscalls_renameat201" + }, + { + "name": "oe_test_ltp_syscalls_renameat202" + }, + { + "name": "oe_test_ltp_syscalls_request_key01" + }, + { + "name": "oe_test_ltp_syscalls_request_key02" + }, + { + "name": "oe_test_ltp_syscalls_request_key03" + }, + { + "name": "oe_test_ltp_syscalls_request_key04" + }, + { + "name": "oe_test_ltp_syscalls_request_key05" + }, + { + "name": "oe_test_ltp_syscalls_rmdir01" + }, + { + "name": "oe_test_ltp_syscalls_rmdir02" + }, + { + "name": "oe_test_ltp_syscalls_rmdir03" + }, + { + "name": "oe_test_ltp_syscalls_rmdir03A" + }, + { + "name": "oe_test_ltp_syscalls_rt_sigaction01" + }, + { + "name": "oe_test_ltp_syscalls_rt_sigaction02" + }, + { + "name": "oe_test_ltp_syscalls_rt_sigaction03" + }, + { + "name": "oe_test_ltp_syscalls_rt_sigprocmask01" + }, + { + "name": "oe_test_ltp_syscalls_rt_sigprocmask02" + }, + { + "name": "oe_test_ltp_syscalls_rt_sigqueueinfo01" + }, + { + "name": "oe_test_ltp_syscalls_rt_sigsuspend01" + }, + { + "name": "oe_test_ltp_syscalls_rt_sigtimedwait01" + }, + { + "name": "oe_test_ltp_syscalls_rt_tgsigqueueinfo01" + }, + { + "name": "oe_test_ltp_syscalls_sbrk01" + }, + { + "name": "oe_test_ltp_syscalls_sbrk02" + }, + { + "name": "oe_test_ltp_syscalls_sbrk03" + }, + { + "name": "oe_test_ltp_syscalls_sched_get_priority_max01" + }, + { + "name": "oe_test_ltp_syscalls_sched_get_priority_max02" + }, + { + "name": "oe_test_ltp_syscalls_sched_get_priority_min01" + }, + { + "name": "oe_test_ltp_syscalls_sched_get_priority_min02" + }, + { + "name": "oe_test_ltp_syscalls_sched_getparam01" + }, + { + "name": "oe_test_ltp_syscalls_sched_getparam03" + }, + { + "name": "oe_test_ltp_syscalls_sched_rr_get_interval01" + }, + { + "name": "oe_test_ltp_syscalls_sched_rr_get_interval02" + }, + { + "name": "oe_test_ltp_syscalls_sched_rr_get_interval03" + }, + { + "name": "oe_test_ltp_syscalls_sched_setparam01" + }, + { + "name": "oe_test_ltp_syscalls_sched_setparam02" + }, + { + "name": "oe_test_ltp_syscalls_sched_setparam03" + }, + { + "name": "oe_test_ltp_syscalls_sched_setparam04" + }, + { + "name": "oe_test_ltp_syscalls_sched_setparam05" + }, + { + "name": "oe_test_ltp_syscalls_sched_getscheduler01" + }, + { + "name": "oe_test_ltp_syscalls_sched_getscheduler02" + }, + { + "name": "oe_test_ltp_syscalls_sched_setscheduler01" + }, + { + "name": "oe_test_ltp_syscalls_sched_setscheduler02" + }, + { + "name": "oe_test_ltp_syscalls_sched_setscheduler03" + }, + { + "name": "oe_test_ltp_syscalls_sched_setscheduler04" + }, + { + "name": "oe_test_ltp_syscalls_sched_yield01" + }, + { + "name": "oe_test_ltp_syscalls_sched_setaffinity01" + }, + { + "name": "oe_test_ltp_syscalls_sched_getaffinity01" + }, + { + "name": "oe_test_ltp_syscalls_sched_setattr01" + }, + { + "name": "oe_test_ltp_syscalls_sched_getattr01" + }, + { + "name": "oe_test_ltp_syscalls_sched_getattr02" + }, + { + "name": "oe_test_ltp_syscalls_select01" + }, + { + "name": "oe_test_ltp_syscalls_select02" + }, + { + "name": "oe_test_ltp_syscalls_select03" + }, + { + "name": "oe_test_ltp_syscalls_select04" + }, + { + "name": "oe_test_ltp_syscalls_semctl01" + }, + { + "name": "oe_test_ltp_syscalls_semctl02" + }, + { + "name": "oe_test_ltp_syscalls_semctl03" + }, + { + "name": "oe_test_ltp_syscalls_semctl04" + }, + { + "name": "oe_test_ltp_syscalls_semctl05" + }, + { + "name": "oe_test_ltp_syscalls_semctl06" + }, + { + "name": "oe_test_ltp_syscalls_semctl07" + }, + { + "name": "oe_test_ltp_syscalls_semctl08" + }, + { + "name": "oe_test_ltp_syscalls_semctl09" + }, + { + "name": "oe_test_ltp_syscalls_semget01" + }, + { + "name": "oe_test_ltp_syscalls_semget02" + }, + { + "name": "oe_test_ltp_syscalls_semget05" + }, + { + "name": "oe_test_ltp_syscalls_semop01" + }, + { + "name": "oe_test_ltp_syscalls_semop02" + }, + { + "name": "oe_test_ltp_syscalls_semop03" + }, + { + "name": "oe_test_ltp_syscalls_semop04" + }, + { + "name": "oe_test_ltp_syscalls_semop05" + }, + { + "name": "oe_test_ltp_syscalls_send01" + }, + { + "name": "oe_test_ltp_syscalls_send02" + }, + { + "name": "oe_test_ltp_syscalls_sendfile02" + }, + { + "name": "oe_test_ltp_syscalls_sendfile02_64" + }, + { + "name": "oe_test_ltp_syscalls_sendfile03" + }, + { + "name": "oe_test_ltp_syscalls_sendfile03_64" + }, + { + "name": "oe_test_ltp_syscalls_sendfile04" + }, + { + "name": "oe_test_ltp_syscalls_sendfile04_64" + }, + { + "name": "oe_test_ltp_syscalls_sendfile05" + }, + { + "name": "oe_test_ltp_syscalls_sendfile05_64" + }, + { + "name": "oe_test_ltp_syscalls_sendfile06" + }, + { + "name": "oe_test_ltp_syscalls_sendfile06_64" + }, + { + "name": "oe_test_ltp_syscalls_sendfile07" + }, + { + "name": "oe_test_ltp_syscalls_sendfile07_64" + }, + { + "name": "oe_test_ltp_syscalls_sendfile08" + }, + { + "name": "oe_test_ltp_syscalls_sendfile08_64" + }, + { + "name": "oe_test_ltp_syscalls_sendfile09" + }, + { + "name": "oe_test_ltp_syscalls_sendfile09_64" + }, + { + "name": "oe_test_ltp_syscalls_sendmsg01" + }, + { + "name": "oe_test_ltp_syscalls_sendmsg02" + }, + { + "name": "oe_test_ltp_syscalls_sendmsg03" + }, + { + "name": "oe_test_ltp_syscalls_sendmmsg01" + }, + { + "name": "oe_test_ltp_syscalls_sendmmsg02" + }, + { + "name": "oe_test_ltp_syscalls_sendto01" + }, + { + "name": "oe_test_ltp_syscalls_sendto02" + }, + { + "name": "oe_test_ltp_syscalls_sendto03" + }, + { + "name": "oe_test_ltp_syscalls_set_mempolicy01" + }, + { + "name": "oe_test_ltp_syscalls_set_mempolicy02" + }, + { + "name": "oe_test_ltp_syscalls_set_mempolicy03" + }, + { + "name": "oe_test_ltp_syscalls_set_mempolicy04" + }, + { + "name": "oe_test_ltp_syscalls_set_robust_list01" + }, + { + "name": "oe_test_ltp_syscalls_set_thread_area01" + }, + { + "name": "oe_test_ltp_syscalls_set_tid_address01" + }, + { + "name": "oe_test_ltp_syscalls_setdomainname01" + }, + { + "name": "oe_test_ltp_syscalls_setdomainname02" + }, + { + "name": "oe_test_ltp_syscalls_setdomainname03" + }, + { + "name": "oe_test_ltp_syscalls_setfsgid01" + }, + { + "name": "oe_test_ltp_syscalls_setfsgid01_16" + }, + { + "name": "oe_test_ltp_syscalls_setfsgid02" + }, + { + "name": "oe_test_ltp_syscalls_setfsgid02_16" + }, + { + "name": "oe_test_ltp_syscalls_setfsgid03" + }, + { + "name": "oe_test_ltp_syscalls_setfsgid03_16" + }, + { + "name": "oe_test_ltp_syscalls_setfsuid01" + }, + { + "name": "oe_test_ltp_syscalls_setfsuid01_16" + }, + { + "name": "oe_test_ltp_syscalls_setfsuid02" + }, + { + "name": "oe_test_ltp_syscalls_setfsuid02_16" + }, + { + "name": "oe_test_ltp_syscalls_setfsuid03" + }, + { + "name": "oe_test_ltp_syscalls_setfsuid03_16" + }, + { + "name": "oe_test_ltp_syscalls_setfsuid04" + }, + { + "name": "oe_test_ltp_syscalls_setfsuid04_16" + }, + { + "name": "oe_test_ltp_syscalls_setgid01" + }, + { + "name": "oe_test_ltp_syscalls_setgid01_16" + }, + { + "name": "oe_test_ltp_syscalls_setgid02" + }, + { + "name": "oe_test_ltp_syscalls_setgid02_16" + }, + { + "name": "oe_test_ltp_syscalls_setgid03" + }, + { + "name": "oe_test_ltp_syscalls_setgid03_16" + }, + { + "name": "oe_test_ltp_syscalls_setegid01" + }, + { + "name": "oe_test_ltp_syscalls_setegid02" + }, + { + "name": "oe_test_ltp_syscalls_sgetmask01" + }, + { + "name": "oe_test_ltp_syscalls_setgroups01" + }, + { + "name": "oe_test_ltp_syscalls_setgroups01_16" + }, + { + "name": "oe_test_ltp_syscalls_setgroups02" + }, + { + "name": "oe_test_ltp_syscalls_setgroups02_16" + }, + { + "name": "oe_test_ltp_syscalls_setgroups03" + }, + { + "name": "oe_test_ltp_syscalls_setgroups03_16" + }, + { + "name": "oe_test_ltp_syscalls_sethostname01" + }, + { + "name": "oe_test_ltp_syscalls_sethostname02" + }, + { + "name": "oe_test_ltp_syscalls_sethostname03" + }, + { + "name": "oe_test_ltp_syscalls_setitimer01" + }, + { + "name": "oe_test_ltp_syscalls_setitimer02" + }, + { + "name": "oe_test_ltp_syscalls_setns01" + }, + { + "name": "oe_test_ltp_syscalls_setns02" + }, + { + "name": "oe_test_ltp_syscalls_setpgid01" + }, + { + "name": "oe_test_ltp_syscalls_setpgid02" + }, + { + "name": "oe_test_ltp_syscalls_setpgid03" + }, + { + "name": "oe_test_ltp_syscalls_setpgrp01" + }, + { + "name": "oe_test_ltp_syscalls_setpgrp02" + }, + { + "name": "oe_test_ltp_syscalls_setpriority01" + }, + { + "name": "oe_test_ltp_syscalls_setpriority02" + }, + { + "name": "oe_test_ltp_syscalls_setregid01" + }, + { + "name": "oe_test_ltp_syscalls_setregid01_16" + }, + { + "name": "oe_test_ltp_syscalls_setregid02" + }, + { + "name": "oe_test_ltp_syscalls_setregid02_16" + }, + { + "name": "oe_test_ltp_syscalls_setregid03" + }, + { + "name": "oe_test_ltp_syscalls_setregid03_16" + }, + { + "name": "oe_test_ltp_syscalls_setregid04" + }, + { + "name": "oe_test_ltp_syscalls_setregid04_16" + }, + { + "name": "oe_test_ltp_syscalls_setresgid01" + }, + { + "name": "oe_test_ltp_syscalls_setresgid01_16" + }, + { + "name": "oe_test_ltp_syscalls_setresgid02" + }, + { + "name": "oe_test_ltp_syscalls_setresgid02_16" + }, + { + "name": "oe_test_ltp_syscalls_setresgid03" + }, + { + "name": "oe_test_ltp_syscalls_setresgid03_16" + }, + { + "name": "oe_test_ltp_syscalls_setresgid04" + }, + { + "name": "oe_test_ltp_syscalls_setresgid04_16" + }, + { + "name": "oe_test_ltp_syscalls_setresuid01" + }, + { + "name": "oe_test_ltp_syscalls_setresuid01_16" + }, + { + "name": "oe_test_ltp_syscalls_setresuid02" + }, + { + "name": "oe_test_ltp_syscalls_setresuid02_16" + }, + { + "name": "oe_test_ltp_syscalls_setresuid03" + }, + { + "name": "oe_test_ltp_syscalls_setresuid03_16" + }, + { + "name": "oe_test_ltp_syscalls_setresuid04" + }, + { + "name": "oe_test_ltp_syscalls_setresuid04_16" + }, + { + "name": "oe_test_ltp_syscalls_setresuid05" + }, + { + "name": "oe_test_ltp_syscalls_setresuid05_16" + }, + { + "name": "oe_test_ltp_syscalls_setreuid01" + }, + { + "name": "oe_test_ltp_syscalls_setreuid01_16" + }, + { + "name": "oe_test_ltp_syscalls_setreuid02" + }, + { + "name": "oe_test_ltp_syscalls_setreuid02_16" + }, + { + "name": "oe_test_ltp_syscalls_setreuid03" + }, + { + "name": "oe_test_ltp_syscalls_setreuid03_16" + }, + { + "name": "oe_test_ltp_syscalls_setreuid04" + }, + { + "name": "oe_test_ltp_syscalls_setreuid04_16" + }, + { + "name": "oe_test_ltp_syscalls_setreuid05" + }, + { + "name": "oe_test_ltp_syscalls_setreuid05_16" + }, + { + "name": "oe_test_ltp_syscalls_setreuid06" + }, + { + "name": "oe_test_ltp_syscalls_setreuid06_16" + }, + { + "name": "oe_test_ltp_syscalls_setreuid07" + }, + { + "name": "oe_test_ltp_syscalls_setreuid07_16" + }, + { + "name": "oe_test_ltp_syscalls_setrlimit01" + }, + { + "name": "oe_test_ltp_syscalls_setrlimit02" + }, + { + "name": "oe_test_ltp_syscalls_setrlimit03" + }, + { + "name": "oe_test_ltp_syscalls_setrlimit04" + }, + { + "name": "oe_test_ltp_syscalls_setrlimit05" + }, + { + "name": "oe_test_ltp_syscalls_setrlimit06" + }, + { + "name": "oe_test_ltp_syscalls_setsid01" + }, + { + "name": "oe_test_ltp_syscalls_setsockopt01" + }, + { + "name": "oe_test_ltp_syscalls_setsockopt02" + }, + { + "name": "oe_test_ltp_syscalls_setsockopt03" + }, + { + "name": "oe_test_ltp_syscalls_setsockopt04" + }, + { + "name": "oe_test_ltp_syscalls_setsockopt05" + }, + { + "name": "oe_test_ltp_syscalls_setsockopt06" + }, + { + "name": "oe_test_ltp_syscalls_setsockopt07" + }, + { + "name": "oe_test_ltp_syscalls_setsockopt08" + }, + { + "name": "oe_test_ltp_syscalls_setsockopt09" + }, + { + "name": "oe_test_ltp_syscalls_setsockopt10" + }, + { + "name": "oe_test_ltp_syscalls_settimeofday01" + }, + { + "name": "oe_test_ltp_syscalls_settimeofday02" + }, + { + "name": "oe_test_ltp_syscalls_setuid01" + }, + { + "name": "oe_test_ltp_syscalls_setuid01_16" + }, + { + "name": "oe_test_ltp_syscalls_setuid03" + }, + { + "name": "oe_test_ltp_syscalls_setuid03_16" + }, + { + "name": "oe_test_ltp_syscalls_setuid04" + }, + { + "name": "oe_test_ltp_syscalls_setuid04_16" + }, + { + "name": "oe_test_ltp_syscalls_setxattr01" + }, + { + "name": "oe_test_ltp_syscalls_setxattr02" + }, + { + "name": "oe_test_ltp_syscalls_setxattr03" + }, + { + "name": "oe_test_ltp_syscalls_shmat01" + }, + { + "name": "oe_test_ltp_syscalls_shmat02" + }, + { + "name": "oe_test_ltp_syscalls_shmat03" + }, + { + "name": "oe_test_ltp_syscalls_shmctl01" + }, + { + "name": "oe_test_ltp_syscalls_shmctl02" + }, + { + "name": "oe_test_ltp_syscalls_shmctl03" + }, + { + "name": "oe_test_ltp_syscalls_shmctl04" + }, + { + "name": "oe_test_ltp_syscalls_shmctl05" + }, + { + "name": "oe_test_ltp_syscalls_shmctl06" + }, + { + "name": "oe_test_ltp_syscalls_shmctl07" + }, + { + "name": "oe_test_ltp_syscalls_shmctl08" + }, + { + "name": "oe_test_ltp_syscalls_shmdt01" + }, + { + "name": "oe_test_ltp_syscalls_shmdt02" + }, + { + "name": "oe_test_ltp_syscalls_shmget02" + }, + { + "name": "oe_test_ltp_syscalls_shmget03" + }, + { + "name": "oe_test_ltp_syscalls_shmget04" + }, + { + "name": "oe_test_ltp_syscalls_shmget05" + }, + { + "name": "oe_test_ltp_syscalls_shmget06" + }, + { + "name": "oe_test_ltp_syscalls_sigaction01" + }, + { + "name": "oe_test_ltp_syscalls_sigaction02" + }, + { + "name": "oe_test_ltp_syscalls_sigaltstack01" + }, + { + "name": "oe_test_ltp_syscalls_sigaltstack02" + }, + { + "name": "oe_test_ltp_syscalls_sighold02" + }, + { + "name": "oe_test_ltp_syscalls_signal01" + }, + { + "name": "oe_test_ltp_syscalls_signal02" + }, + { + "name": "oe_test_ltp_syscalls_signal03" + }, + { + "name": "oe_test_ltp_syscalls_signal04" + }, + { + "name": "oe_test_ltp_syscalls_signal05" + }, + { + "name": "oe_test_ltp_syscalls_signal06" + }, + { + "name": "oe_test_ltp_syscalls_signalfd01" + }, + { + "name": "oe_test_ltp_syscalls_signalfd4_01" + }, + { + "name": "oe_test_ltp_syscalls_signalfd4_02" + }, + { + "name": "oe_test_ltp_syscalls_sigpending02" + }, + { + "name": "oe_test_ltp_syscalls_sigprocmask01" + }, + { + "name": "oe_test_ltp_syscalls_sigrelse01" + }, + { + "name": "oe_test_ltp_syscalls_sigsuspend01" + }, + { + "name": "oe_test_ltp_syscalls_sigtimedwait01" + }, + { + "name": "oe_test_ltp_syscalls_sigwait01" + }, + { + "name": "oe_test_ltp_syscalls_sigwaitinfo01" + }, + { + "name": "oe_test_ltp_syscalls_socket01" + }, + { + "name": "oe_test_ltp_syscalls_socket02" + }, + { + "name": "oe_test_ltp_syscalls_socketcall01" + }, + { + "name": "oe_test_ltp_syscalls_socketcall02" + }, + { + "name": "oe_test_ltp_syscalls_socketcall03" + }, + { + "name": "oe_test_ltp_syscalls_socketpair01" + }, + { + "name": "oe_test_ltp_syscalls_socketpair02" + }, + { + "name": "oe_test_ltp_syscalls_sockioctl01" + }, + { + "name": "oe_test_ltp_syscalls_splice01" + }, + { + "name": "oe_test_ltp_syscalls_splice02" + }, + { + "name": "oe_test_ltp_syscalls_splice03" + }, + { + "name": "oe_test_ltp_syscalls_splice04" + }, + { + "name": "oe_test_ltp_syscalls_splice05" + }, + { + "name": "oe_test_ltp_syscalls_splice06" + }, + { + "name": "oe_test_ltp_syscalls_tee01" + }, + { + "name": "oe_test_ltp_syscalls_tee02" + }, + { + "name": "oe_test_ltp_syscalls_ssetmask01" + }, + { + "name": "oe_test_ltp_syscalls_stat01" + }, + { + "name": "oe_test_ltp_syscalls_stat01_64" + }, + { + "name": "oe_test_ltp_syscalls_stat02" + }, + { + "name": "oe_test_ltp_syscalls_stat02_64" + }, + { + "name": "oe_test_ltp_syscalls_stat03" + }, + { + "name": "oe_test_ltp_syscalls_stat03_64" + }, + { + "name": "oe_test_ltp_syscalls_stat04" + }, + { + "name": "oe_test_ltp_syscalls_stat04_64" + }, + { + "name": "oe_test_ltp_syscalls_statfs01" + }, + { + "name": "oe_test_ltp_syscalls_statfs01_64" + }, + { + "name": "oe_test_ltp_syscalls_statfs02" + }, + { + "name": "oe_test_ltp_syscalls_statfs02_64" + }, + { + "name": "oe_test_ltp_syscalls_statfs03" + }, + { + "name": "oe_test_ltp_syscalls_statfs03_64" + }, + { + "name": "oe_test_ltp_syscalls_statvfs01" + }, + { + "name": "oe_test_ltp_syscalls_statvfs02" + }, + { + "name": "oe_test_ltp_syscalls_stime01" + }, + { + "name": "oe_test_ltp_syscalls_stime02" + }, + { + "name": "oe_test_ltp_syscalls_string01" + }, + { + "name": "oe_test_ltp_syscalls_swapoff01" + }, + { + "name": "oe_test_ltp_syscalls_swapoff02" + }, + { + "name": "oe_test_ltp_syscalls_swapon01" + }, + { + "name": "oe_test_ltp_syscalls_swapon02" + }, + { + "name": "oe_test_ltp_syscalls_swapon03" + }, + { + "name": "oe_test_ltp_syscalls_switch01" + }, + { + "name": "oe_test_ltp_syscalls_symlink01" + }, + { + "name": "oe_test_ltp_syscalls_symlink02" + }, + { + "name": "oe_test_ltp_syscalls_symlink03" + }, + { + "name": "oe_test_ltp_syscalls_symlink04" + }, + { + "name": "oe_test_ltp_syscalls_symlinkat01" + }, + { + "name": "oe_test_ltp_syscalls_sync01" + }, + { + "name": "oe_test_ltp_syscalls_syncfs01" + }, + { + "name": "oe_test_ltp_syscalls_sync_file_range01" + }, + { + "name": "oe_test_ltp_syscalls_sync_file_range02" + }, + { + "name": "oe_test_ltp_syscalls_syscall01" + }, + { + "name": "oe_test_ltp_syscalls_sysconf01" + }, + { + "name": "oe_test_ltp_syscalls_sysctl01" + }, + { + "name": "oe_test_ltp_syscalls_sysctl03" + }, + { + "name": "oe_test_ltp_syscalls_sysctl04" + }, + { + "name": "oe_test_ltp_syscalls_sysfs01" + }, + { + "name": "oe_test_ltp_syscalls_sysfs02" + }, + { + "name": "oe_test_ltp_syscalls_sysfs03" + }, + { + "name": "oe_test_ltp_syscalls_sysfs04" + }, + { + "name": "oe_test_ltp_syscalls_sysfs05" + }, + { + "name": "oe_test_ltp_syscalls_sysinfo01" + }, + { + "name": "oe_test_ltp_syscalls_sysinfo02" + }, + { + "name": "oe_test_ltp_syscalls_sysinfo03" + }, + { + "name": "oe_test_ltp_syscalls_syslog11" + }, + { + "name": "oe_test_ltp_syscalls_syslog12" + }, + { + "name": "oe_test_ltp_syscalls_tgkill01" + }, + { + "name": "oe_test_ltp_syscalls_tgkill02" + }, + { + "name": "oe_test_ltp_syscalls_tgkill03" + }, + { + "name": "oe_test_ltp_syscalls_time01" + }, + { + "name": "oe_test_ltp_syscalls_times01" + }, + { + "name": "oe_test_ltp_syscalls_times03" + }, + { + "name": "oe_test_ltp_syscalls_timerfd01" + }, + { + "name": "oe_test_ltp_syscalls_timerfd02" + }, + { + "name": "oe_test_ltp_syscalls_timerfd04" + }, + { + "name": "oe_test_ltp_syscalls_timerfd_create01" + }, + { + "name": "oe_test_ltp_syscalls_timerfd_gettime01" + }, + { + "name": "oe_test_ltp_syscalls_timerfd_settime01" + }, + { + "name": "oe_test_ltp_syscalls_timerfd_settime02" + }, + { + "name": "oe_test_ltp_syscalls_timer_create01" + }, + { + "name": "oe_test_ltp_syscalls_timer_create02" + }, + { + "name": "oe_test_ltp_syscalls_timer_create03" + }, + { + "name": "oe_test_ltp_syscalls_timer_delete01" + }, + { + "name": "oe_test_ltp_syscalls_timer_delete02" + }, + { + "name": "oe_test_ltp_syscalls_timer_getoverrun01" + }, + { + "name": "oe_test_ltp_syscalls_timer_gettime01" + }, + { + "name": "oe_test_ltp_syscalls_timer_settime01" + }, + { + "name": "oe_test_ltp_syscalls_timer_settime02" + }, + { + "name": "oe_test_ltp_syscalls_timer_settime03" + }, + { + "name": "oe_test_ltp_syscalls_tkill01" + }, + { + "name": "oe_test_ltp_syscalls_tkill02" + }, + { + "name": "oe_test_ltp_syscalls_truncate02" + }, + { + "name": "oe_test_ltp_syscalls_truncate02_64" + }, + { + "name": "oe_test_ltp_syscalls_truncate03" + }, + { + "name": "oe_test_ltp_syscalls_truncate03_64" + }, + { + "name": "oe_test_ltp_syscalls_ulimit01" + }, + { + "name": "oe_test_ltp_syscalls_umask01" + }, + { + "name": "oe_test_ltp_syscalls_uname01" + }, + { + "name": "oe_test_ltp_syscalls_uname02" + }, + { + "name": "oe_test_ltp_syscalls_uname04" + }, + { + "name": "oe_test_ltp_syscalls_unlink01" + }, + { + "name": "oe_test_ltp_syscalls_unlink05" + }, + { + "name": "oe_test_ltp_syscalls_unlink07" + }, + { + "name": "oe_test_ltp_syscalls_unlink08" + }, + { + "name": "oe_test_ltp_syscalls_unlinkat01" + }, + { + "name": "oe_test_ltp_syscalls_unshare01" + }, + { + "name": "oe_test_ltp_syscalls_unshare02" + }, + { + "name": "oe_test_ltp_syscalls_umount01" + }, + { + "name": "oe_test_ltp_syscalls_umount02" + }, + { + "name": "oe_test_ltp_syscalls_umount03" + }, + { + "name": "oe_test_ltp_syscalls_umount2_01" + }, + { + "name": "oe_test_ltp_syscalls_umount2_02" + }, + { + "name": "oe_test_ltp_syscalls_userfaultfd01" + }, + { + "name": "oe_test_ltp_syscalls_ustat01" + }, + { + "name": "oe_test_ltp_syscalls_ustat02" + }, + { + "name": "oe_test_ltp_syscalls_utime01" + }, + { + "name": "oe_test_ltp_syscalls_utime01A" + }, + { + "name": "oe_test_ltp_syscalls_utime02" + }, + { + "name": "oe_test_ltp_syscalls_utime03" + }, + { + "name": "oe_test_ltp_syscalls_utime04" + }, + { + "name": "oe_test_ltp_syscalls_utime05" + }, + { + "name": "oe_test_ltp_syscalls_utime06" + }, + { + "name": "oe_test_ltp_syscalls_utimes01" + }, + { + "name": "oe_test_ltp_syscalls_utimensat01" + }, + { + "name": "oe_test_ltp_syscalls_vfork01" + }, + { + "name": "oe_test_ltp_syscalls_vfork02" + }, + { + "name": "oe_test_ltp_syscalls_vhangup01" + }, + { + "name": "oe_test_ltp_syscalls_vhangup02" + }, + { + "name": "oe_test_ltp_syscalls_vmsplice01" + }, + { + "name": "oe_test_ltp_syscalls_vmsplice02" + }, + { + "name": "oe_test_ltp_syscalls_vmsplice03" + }, + { + "name": "oe_test_ltp_syscalls_vmsplice04" + }, + { + "name": "oe_test_ltp_syscalls_wait01" + }, + { + "name": "oe_test_ltp_syscalls_wait02" + }, + { + "name": "oe_test_ltp_syscalls_wait401" + }, + { + "name": "oe_test_ltp_syscalls_wait402" + }, + { + "name": "oe_test_ltp_syscalls_wait403" + }, + { + "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" + }, + { + "name": "oe_test_ltp_syscalls_waitpid07" + }, + { + "name": "oe_test_ltp_syscalls_waitpid08" + }, + { + "name": "oe_test_ltp_syscalls_waitpid09" + }, + { + "name": "oe_test_ltp_syscalls_waitpid10" + }, + { + "name": "oe_test_ltp_syscalls_waitpid11" + }, + { + "name": "oe_test_ltp_syscalls_waitpid12" + }, + { + "name": "oe_test_ltp_syscalls_waitpid13" + }, + { + "name": "oe_test_ltp_syscalls_waitid01" + }, + { + "name": "oe_test_ltp_syscalls_waitid02" + }, + { + "name": "oe_test_ltp_syscalls_waitid03" + }, + { + "name": "oe_test_ltp_syscalls_waitid04" + }, + { + "name": "oe_test_ltp_syscalls_waitid05" + }, + { + "name": "oe_test_ltp_syscalls_waitid06" + }, + { + "name": "oe_test_ltp_syscalls_waitid07" + }, + { + "name": "oe_test_ltp_syscalls_waitid08" + }, + { + "name": "oe_test_ltp_syscalls_waitid09" + }, + { + "name": "oe_test_ltp_syscalls_waitid10" + }, + { + "name": "oe_test_ltp_syscalls_waitid11" + }, + { + "name": "oe_test_ltp_syscalls_write01" + }, + { + "name": "oe_test_ltp_syscalls_write02" + }, + { + "name": "oe_test_ltp_syscalls_write03" + }, + { + "name": "oe_test_ltp_syscalls_write04" + }, + { + "name": "oe_test_ltp_syscalls_write05" + }, + { + "name": "oe_test_ltp_syscalls_write06" + }, + { + "name": "oe_test_ltp_syscalls_writev01" + }, + { + "name": "oe_test_ltp_syscalls_writev02" + }, + { + "name": "oe_test_ltp_syscalls_writev03" + }, + { + "name": "oe_test_ltp_syscalls_writev05" + }, + { + "name": "oe_test_ltp_syscalls_writev06" + }, + { + "name": "oe_test_ltp_syscalls_writev07" + }, + { + "name": "oe_test_ltp_syscalls_perf_event_open01" + }, + { + "name": "oe_test_ltp_syscalls_perf_event_open02" + }, + { + "name": "oe_test_ltp_syscalls_futex_cmp_requeue01" + }, + { + "name": "oe_test_ltp_syscalls_futex_cmp_requeue02" + }, + { + "name": "oe_test_ltp_syscalls_futex_wait01" + }, + { + "name": "oe_test_ltp_syscalls_futex_wait02" + }, + { + "name": "oe_test_ltp_syscalls_futex_wait03" + }, + { + "name": "oe_test_ltp_syscalls_futex_wait04" + }, + { + "name": "oe_test_ltp_syscalls_futex_wait05" + }, + { + "name": "oe_test_ltp_syscalls_futex_waitv01" + }, + { + "name": "oe_test_ltp_syscalls_futex_waitv02" + }, + { + "name": "oe_test_ltp_syscalls_futex_waitv03" + }, + { + "name": "oe_test_ltp_syscalls_futex_wake01" + }, + { + "name": "oe_test_ltp_syscalls_futex_wake02" + }, + { + "name": "oe_test_ltp_syscalls_futex_wake03" + }, + { + "name": "oe_test_ltp_syscalls_futex_wake04" + }, + { + "name": "oe_test_ltp_syscalls_futex_wait_bitset01" + }, + { + "name": "oe_test_ltp_syscalls_memfd_create01" + }, + { + "name": "oe_test_ltp_syscalls_memfd_create02" + }, + { + "name": "oe_test_ltp_syscalls_memfd_create03" + }, + { + "name": "oe_test_ltp_syscalls_memfd_create04" + }, + { + "name": "oe_test_ltp_syscalls_copy_file_range01" + }, + { + "name": "oe_test_ltp_syscalls_copy_file_range02" + }, + { + "name": "oe_test_ltp_syscalls_copy_file_range03" + }, + { + "name": "oe_test_ltp_syscalls_statx01" + }, + { + "name": "oe_test_ltp_syscalls_statx02" + }, + { + "name": "oe_test_ltp_syscalls_statx03" + }, + { + "name": "oe_test_ltp_syscalls_statx04" + }, + { + "name": "oe_test_ltp_syscalls_statx05" + }, + { + "name": "oe_test_ltp_syscalls_statx06" + }, + { + "name": "oe_test_ltp_syscalls_statx07" + }, + { + "name": "oe_test_ltp_syscalls_statx08" + }, + { + "name": "oe_test_ltp_syscalls_statx09" + }, + { + "name": "oe_test_ltp_syscalls_statx10" + }, + { + "name": "oe_test_ltp_syscalls_statx11" + }, + { + "name": "oe_test_ltp_syscalls_statx12" + }, + { + "name": "oe_test_ltp_syscalls_membarrier01" + }, + { + "name": "oe_test_ltp_syscalls_io_uring01" + }, + { + "name": "oe_test_ltp_syscalls_io_uring02" + }, + { + "name": "oe_test_ltp_syscalls_perf_event_open03" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_uevent.json b/suite2cases/ltp_uevent.json new file mode 100644 index 0000000000000000000000000000000000000000..e877254404ee709e6c981695605218cf6fa21ded --- /dev/null +++ b/suite2cases/ltp_uevent.json @@ -0,0 +1,16 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_uevent", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_uevent_uevent01" + }, + { + "name": "oe_test_ltp_uevent_uevent02" + }, + { + "name": "oe_test_ltp_uevent_uevent03" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltp_watchqueue.json b/suite2cases/ltp_watchqueue.json new file mode 100644 index 0000000000000000000000000000000000000000..a8f1f29bd35a044a7cd766b47302aa19eb41c7f8 --- /dev/null +++ b/suite2cases/ltp_watchqueue.json @@ -0,0 +1,34 @@ +{ + "path": "${OET_PATH}/testcases/ltp-test/ltp_watchqueue", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_ltp_watchqueue_wqueue01" + }, + { + "name": "oe_test_ltp_watchqueue_wqueue02" + }, + { + "name": "oe_test_ltp_watchqueue_wqueue03" + }, + { + "name": "oe_test_ltp_watchqueue_wqueue04" + }, + { + "name": "oe_test_ltp_watchqueue_wqueue05" + }, + { + "name": "oe_test_ltp_watchqueue_wqueue06" + }, + { + "name": "oe_test_ltp_watchqueue_wqueue07" + }, + { + "name": "oe_test_ltp_watchqueue_wqueue08" + }, + { + "name": "oe_test_ltp_watchqueue_wqueue09" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ltrace.json b/suite2cases/ltrace.json index 309ebda52dcad6783d73fbc3095bdfacba565baa..7d66a47b0b7a3845590d7188f1da4ff5c50954f4 100644 --- a/suite2cases/ltrace.json +++ b/suite2cases/ltrace.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/ltrace", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ltrace_01" @@ -14,4 +16,4 @@ "name": "oe_test_ltrace_04" } ] -} +} \ No newline at end of file diff --git a/suite2cases/lua-lunit.json b/suite2cases/lua-lunit.json index c17e75ae6dee08c70a328fe3c87eec03a5396552..b6d313ba13293bca791b0cc1e82138ffd5b7759d 100644 --- a/suite2cases/lua-lunit.json +++ b/suite2cases/lua-lunit.json @@ -1,6 +1,7 @@ { -"path": "$OET_PATH/testcases/cli-test/lua-lunit", - + "path": "$OET_PATH/testcases/cli-test/lua-lunit", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_lua-lunit_base" diff --git a/suite2cases/lua.json b/suite2cases/lua.json new file mode 100644 index 0000000000000000000000000000000000000000..891adf2677b92d0c96df2bb706984bf4f47bfbf5 --- /dev/null +++ b/suite2cases/lua.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/lua", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_lua_install_and_remove_lua" + }, + { + "name": "oe_test_lua_install_and_remove_lua-devel" + }, + { + "name": "oe_test_lua_install_and_remove_lua-help" + }, + { + "name": "oe_test_lua_install_and_remove_lua-debugsource" + }, + { + "name": "oe_test_lua_install_and_remove_lua-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/luajit.json b/suite2cases/luajit.json index 89f14c876396755306b07dbf78e1015a39961e82..61918cc1b63206d07cebbd25d219794b503d5055 100644 --- a/suite2cases/luajit.json +++ b/suite2cases/luajit.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/luajit", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_luajit_print" }, - { - "name": "oe_test_luajit_print1" - } + { + "name": "oe_test_luajit_print1" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/luarocks.json b/suite2cases/luarocks.json index 32e8a66e09af41ebaa4ec6d582632c44bd1f2a6f..472b52f21a720cc8749770a6211b40cb2757c387 100644 --- a/suite2cases/luarocks.json +++ b/suite2cases/luarocks.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/luarocks", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_luarocks" } ] -} +} \ No newline at end of file diff --git a/suite2cases/lvm2.json b/suite2cases/lvm2.json index f1b232099d331b1b080cd32e3660835ef1b44939..3f911d70759150c63a6ca1be2fb2a5b2b7e17476 100644 --- a/suite2cases/lvm2.json +++ b/suite2cases/lvm2.json @@ -5,6 +5,9 @@ 10, 10 ], + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_blk-availability" @@ -141,6 +144,45 @@ "add disk": [ 10 ] + }, + { + "name": "oe_test_lvm2_install_and_remove_lvm2" + }, + { + "name": "oe_test_lvm2_install_and_remove_lvm2-test" + }, + { + "name": "oe_test_lvm2_install_and_remove_device-mapper" + }, + { + "name": "oe_test_lvm2_install_and_remove_lvm2-help" + }, + { + "name": "oe_test_lvm2_install_and_remove_python3-lvm-deprecated" + }, + { + "name": "oe_test_lvm2_install_and_remove_lvm2-devel" + }, + { + "name": "oe_test_lvm2_install_and_remove_lvm2-dbusd" + }, + { + "name": "oe_test_lvm2_install_and_remove_device-mapper-event" + }, + { + "name": "oe_test_lvm2_install_and_remove_lvm2-cluster" + }, + { + "name": "oe_test_lvm2_install_and_remove_cmirror" + }, + { + "name": "oe_test_lvm2_install_and_remove_lvm2-lockd" + }, + { + "name": "oe_test_lvm2_install_and_remove_lvm2-debugsource" + }, + { + "name": "oe_test_lvm2_install_and_remove_lvm2-debuginfo" } ] } \ No newline at end of file diff --git a/suite2cases/lxc.json b/suite2cases/lxc.json index 557df0f1f12b2df69c4637f3b1d4db7dc9799361..25faf744fc509fc533faa4d20f168d0e3dded0b9 100644 --- a/suite2cases/lxc.json +++ b/suite2cases/lxc.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/lxc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_lxc-net" @@ -44,4 +46,4 @@ "name": "oe_test_lxc_info" } ] -} +} \ No newline at end of file diff --git a/suite2cases/lxcfs.json b/suite2cases/lxcfs.json index f322f20e63a46ea12823f3b00cf5ea5c0ed6413a..25ce4446f3b6a4ebc1006b145eada7ac18a8d303 100644 --- a/suite2cases/lxcfs.json +++ b/suite2cases/lxcfs.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/lxcfs", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_lxcfs" } ] -} +} \ No newline at end of file diff --git a/suite2cases/lynx.json b/suite2cases/lynx.json new file mode 100644 index 0000000000000000000000000000000000000000..cbf0640ba3aaa873e47dacf6ead8dbf9738647db --- /dev/null +++ b/suite2cases/lynx.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/lynx", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_lynx_install_and_remove_lynx" + }, + { + "name": "oe_test_lynx_install_and_remove_lynx-debuginfo" + }, + { + "name": "oe_test_lynx_install_and_remove_lynx-debugsource" + }, + { + "name": "oe_test_lynx_install_and_remove_lynx-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lz4.json b/suite2cases/lz4.json new file mode 100644 index 0000000000000000000000000000000000000000..b0d445828d987278c07a4e0c2bd02576d101494a --- /dev/null +++ b/suite2cases/lz4.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/lz4", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_lz4_install_and_remove_lz4" + }, + { + "name": "oe_test_lz4_install_and_remove_lz4-devel" + }, + { + "name": "oe_test_lz4_install_and_remove_lz4-help" + }, + { + "name": "oe_test_lz4_install_and_remove_lz4-debugsource" + }, + { + "name": "oe_test_lz4_install_and_remove_lz4-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/lzo.json b/suite2cases/lzo.json index 9912334794e70b7b073742fb3c9a892d5db9e1b3..5a839669b1249022e9ecd63af39d2b494b4415ce 100644 --- a/suite2cases/lzo.json +++ b/suite2cases/lzo.json @@ -1,11 +1,35 @@ { "path": "$OET_PATH/testcases/cli-test/lzo", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_lzo-lzop" }, { "name": "oe_test_lzo-lzop_01" + }, + { + "name": "oe_test_lzo_install_and_remove_lzo" + }, + { + "name": "oe_test_lzo_install_and_remove_lzo-devel" + }, + { + "name": "oe_test_lzo_install_and_remove_lzo-minilzo" + }, + { + "name": "oe_test_lzo_install_and_remove_lzo-help" + }, + { + "name": "oe_test_lzo_install_and_remove_lzo-debuginfo" + }, + { + "name": "oe_test_lzo_install_and_remove_lzo-debugsource" + }, + { + "name": "oe_test_lzo_install_and_remove_lzo-doc" } ] -} +} \ No newline at end of file diff --git a/suite2cases/m17n-db.json b/suite2cases/m17n-db.json new file mode 100644 index 0000000000000000000000000000000000000000..1e46f839854eed89dab9b477b9dc2e40a86f1081 --- /dev/null +++ b/suite2cases/m17n-db.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/m17n-db", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_m17n-db_install_and_remove_m17n-db" + }, + { + "name": "oe_test_m17n-db_install_and_remove_m17n-db-devel" + }, + { + "name": "oe_test_m17n-db_install_and_remove_m17n-db-extras" + } + ] +} \ No newline at end of file diff --git a/suite2cases/m17n-lib.json b/suite2cases/m17n-lib.json new file mode 100644 index 0000000000000000000000000000000000000000..3f6e4f629b2cb9bfac525e0fa28f04395f8f45ea --- /dev/null +++ b/suite2cases/m17n-lib.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/m17n-lib", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_m17n-lib_install_and_remove_m17n-lib" + }, + { + "name": "oe_test_m17n-lib_install_and_remove_m17n-lib-devel" + }, + { + "name": "oe_test_m17n-lib_install_and_remove_m17n-lib-tools" + }, + { + "name": "oe_test_m17n-lib_install_and_remove_m17n-lib-debuginfo" + }, + { + "name": "oe_test_m17n-lib_install_and_remove_m17n-lib-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/m4.json b/suite2cases/m4.json new file mode 100644 index 0000000000000000000000000000000000000000..875b8ddeb3cee3c3bbf8bf16257f4567c7563f47 --- /dev/null +++ b/suite2cases/m4.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/m4", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_m4_install_and_remove_m4" + }, + { + "name": "oe_test_m4_install_and_remove_m4-help" + }, + { + "name": "oe_test_m4_install_and_remove_m4-debuginfo" + }, + { + "name": "oe_test_m4_install_and_remove_m4-debugsource" + }, + { + "name": "oe_test_m4_install_and_remove_m4-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mac-robber.json b/suite2cases/mac-robber.json index 99afeffacb473f8ba6d14f0a60d957a6f71aa87d..e110b4b48bb91b8adedc9d940b4b41e102ac7498 100644 --- a/suite2cases/mac-robber.json +++ b/suite2cases/mac-robber.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/mac-robber", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_mac-robber" } ] -} +} \ No newline at end of file diff --git a/suite2cases/mailman.json b/suite2cases/mailman.json index 26df001a658c11dc48e8bcb9e8ad3cf3dc212bfd..c04c6bf745a52671b8d2ce045d7266199ac572fb 100644 --- a/suite2cases/mailman.json +++ b/suite2cases/mailman.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/mailman", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_mailman" @@ -11,4 +13,4 @@ "name": "oe_test_service_mailman3-digests" } ] -} +} \ No newline at end of file diff --git a/suite2cases/make.json b/suite2cases/make.json new file mode 100644 index 0000000000000000000000000000000000000000..309eb9d5e881792e0551a3e0e3527fa0942a2cc7 --- /dev/null +++ b/suite2cases/make.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/make", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_make_install_and_remove_make" + }, + { + "name": "oe_test_make_install_and_remove_make-devel" + }, + { + "name": "oe_test_make_install_and_remove_make-help" + }, + { + "name": "oe_test_make_install_and_remove_make-debuginfo" + }, + { + "name": "oe_test_make_install_and_remove_make-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/man-db.json b/suite2cases/man-db.json index f030508791bc7988d66fbf0dc1c13d1fbcf61ca3..715160feb901523a45cbcdc3f0c0f3e6134d962f 100644 --- a/suite2cases/man-db.json +++ b/suite2cases/man-db.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/man-db", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_man-db-cache-update" @@ -9,6 +12,15 @@ }, { "name": "oe_test_service_man-db_01" + }, + { + "name": "oe_test_man-db_install_and_remove_man-db" + }, + { + "name": "oe_test_man-db_install_and_remove_man-db-debuginfo" + }, + { + "name": "oe_test_man-db_install_and_remove_man-db-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/mandoc.json b/suite2cases/mandoc.json new file mode 100644 index 0000000000000000000000000000000000000000..87872651b190cb7d124227f1565dd415f09ab104 --- /dev/null +++ b/suite2cases/mandoc.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mandoc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mandoc_install_and_remove_mandoc" + }, + { + "name": "oe_test_mandoc_install_and_remove_libmandoc-devel" + }, + { + "name": "oe_test_mandoc_install_and_remove_mandoc-debugsource" + }, + { + "name": "oe_test_mandoc_install_and_remove_mandoc-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mariadb-connector-c.json b/suite2cases/mariadb-connector-c.json new file mode 100644 index 0000000000000000000000000000000000000000..9bc8fababb85b61a1a3a916795a4e65b777aa5d7 --- /dev/null +++ b/suite2cases/mariadb-connector-c.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mariadb-connector-c", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c" + }, + { + "name": "oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-devel" + }, + { + "name": "oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-debuginfo" + }, + { + "name": "oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mariadb.json b/suite2cases/mariadb.json index 6c2f3779aeddea436b98e312fe90826e0488a7f9..7e764227afbc73ffeb5d0b788c11eed394523a06 100644 --- a/suite2cases/mariadb.json +++ b/suite2cases/mariadb.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/mariadb", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_mariadb" diff --git a/suite2cases/mathjax.json b/suite2cases/mathjax.json index 817ac4503e9db906bd2f9fca7d13eb100599fef4..26d81415ca8cc82c61f959de4bd8487ba74a4189 100644 --- a/suite2cases/mathjax.json +++ b/suite2cases/mathjax.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/mathjax", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_mathjax" } - ] } \ No newline at end of file diff --git a/suite2cases/maven-enforcer.json b/suite2cases/maven-enforcer.json new file mode 100644 index 0000000000000000000000000000000000000000..7352760f80c910c0dc4edd54dee986feecce6895 --- /dev/null +++ b/suite2cases/maven-enforcer.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/maven-enforcer", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_maven-enforcer_install_and_remove_maven-enforcer" + }, + { + "name": "oe_test_maven-enforcer_install_and_remove_maven-enforcer-api" + }, + { + "name": "oe_test_maven-enforcer_install_and_remove_maven-enforcer-plugin" + }, + { + "name": "oe_test_maven-enforcer_install_and_remove_maven-enforcer-rules" + }, + { + "name": "oe_test_maven-enforcer_install_and_remove_maven-enforcer-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/maven-plugin-bundle.json b/suite2cases/maven-plugin-bundle.json new file mode 100644 index 0000000000000000000000000000000000000000..ea7160be4308adef0b8c5eb87cb1aacab1968e68 --- /dev/null +++ b/suite2cases/maven-plugin-bundle.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/maven-plugin-bundle", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_maven-plugin-bundle_install_and_remove_maven-plugin-bundle" + }, + { + "name": "oe_test_maven-plugin-bundle_install_and_remove_maven-plugin-bundle-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/maven-source-plugin.json b/suite2cases/maven-source-plugin.json new file mode 100644 index 0000000000000000000000000000000000000000..f0b683530ddf689beb053fea977849f8ac382954 --- /dev/null +++ b/suite2cases/maven-source-plugin.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/maven-source-plugin", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_maven-source-plugin_install_and_remove_maven-source-plugin" + }, + { + "name": "oe_test_maven-source-plugin_install_and_remove_maven-source-plugin-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mbw_memory.json b/suite2cases/mbw_memory.json new file mode 100644 index 0000000000000000000000000000000000000000..052f5415f29b23f8eaae3812fa4c41ed9de5674f --- /dev/null +++ b/suite2cases/mbw_memory.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/memory/mbw_memory", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_mbw_memory" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mc.json b/suite2cases/mc.json index 502a444f8649e44095986414970b0172d743e04d..66a0347ff02453b5f2f86a643cf77bb2218ed234 100644 --- a/suite2cases/mc.json +++ b/suite2cases/mc.json @@ -1,24 +1,19 @@ { - "path": "$OET_PATH/testcases/cli-test/mc", - "cases": [ - { - "name": "oe_test_mc_base_01" - }, - { - "name": "oe_test_mcdiff_01" - }, - { - "name": "oe_test_mcedit_base_01" - }, - { - "name": "oe_test_mcview_base_01" - } - ] -} - - - - - - - + "path": "$OET_PATH/testcases/cli-test/mc", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mc_base_01" + }, + { + "name": "oe_test_mcdiff_01" + }, + { + "name": "oe_test_mcedit_base_01" + }, + { + "name": "oe_test_mcview_base_01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mcelog.json b/suite2cases/mcelog.json index 19041de8e35cfb695e020bafce94628e5e3c6858..a12d55b06fed9f546c09398197a74687202e2fec 100644 --- a/suite2cases/mcelog.json +++ b/suite2cases/mcelog.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/mcelog", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_mcelog_01" @@ -11,4 +13,4 @@ "name": "oe_test_service_mcelog" } ] -} +} \ No newline at end of file diff --git a/suite2cases/mcpp.json b/suite2cases/mcpp.json new file mode 100644 index 0000000000000000000000000000000000000000..3143f365fd58818076119ed1fbfca4ec0cbcfb93 --- /dev/null +++ b/suite2cases/mcpp.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mcpp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mcpp_install_and_remove_mcpp" + }, + { + "name": "oe_test_mcpp_install_and_remove_mcpp-devel" + }, + { + "name": "oe_test_mcpp_install_and_remove_mcpp-help" + }, + { + "name": "oe_test_mcpp_install_and_remove_mcpp-debuginfo" + }, + { + "name": "oe_test_mcpp_install_and_remove_mcpp-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mcstrans.json b/suite2cases/mcstrans.json index 88e2cdb32ebc2a8b527af55ac618de347c574262..2871835f03e9213b61d7e8aed1ee5bd8ae1ac4ec 100644 --- a/suite2cases/mcstrans.json +++ b/suite2cases/mcstrans.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/mcstrans", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_mcstransd" @@ -8,4 +10,4 @@ "name": "oe_test_service_mcstrans" } ] -} +} \ No newline at end of file diff --git a/suite2cases/mdadm.json b/suite2cases/mdadm.json index 4d225e100a846a110724c27c69f705099982cc3a..e5766f1e25fa743b15a5c17160dd3fe184c966eb 100644 --- a/suite2cases/mdadm.json +++ b/suite2cases/mdadm.json @@ -1,6 +1,12 @@ { "path": "$OET_PATH/testcases/cli-test/mdadm", - "add disk":[2,2], + "add disk": [ + 2, + 2 + ], + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_mdmonitor" @@ -13,6 +19,18 @@ }, { "name": "oe_test_service_mdmonitor-oneshot" + }, + { + "name": "oe_test_mdadm_install_and_remove_mdadm" + }, + { + "name": "oe_test_mdadm_install_and_remove_mdadm-help" + }, + { + "name": "oe_test_mdadm_install_and_remove_mdadm-debuginfo" + }, + { + "name": "oe_test_mdadm_install_and_remove_mdadm-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/memcached.json b/suite2cases/memcached.json index 7631dc33b02e82e903147e2eae1bc056d7625541..a78a1c2ab1ab31e956be7072d910430bf410a4b4 100644 --- a/suite2cases/memcached.json +++ b/suite2cases/memcached.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/memcached", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_memcached_01" @@ -11,4 +13,4 @@ "name": "oe_test_service_memcached" } ] -} +} \ No newline at end of file diff --git a/suite2cases/mesa-demos.json b/suite2cases/mesa-demos.json new file mode 100644 index 0000000000000000000000000000000000000000..fb6eeffac1f5e5a60f44c513558e31adb0ccf3b1 --- /dev/null +++ b/suite2cases/mesa-demos.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mesa-demos", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mesa-demos_install_and_remove_mesa-demos" + }, + { + "name": "oe_test_mesa-demos_install_and_remove_mesa-demos-help" + }, + { + "name": "oe_test_mesa-demos_install_and_remove_mesa-demos-debuginfo" + }, + { + "name": "oe_test_mesa-demos_install_and_remove_mesa-demos-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mesa-libGLU.json b/suite2cases/mesa-libGLU.json new file mode 100644 index 0000000000000000000000000000000000000000..a7ae262c6f847f5d57415ecfe5f8fb570f4442f7 --- /dev/null +++ b/suite2cases/mesa-libGLU.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mesa-libGLU", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mesa-libGLU_install_and_remove_mesa-libGLU" + }, + { + "name": "oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-devel" + }, + { + "name": "oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-debugsource" + }, + { + "name": "oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mesa.json b/suite2cases/mesa.json new file mode 100644 index 0000000000000000000000000000000000000000..7c60837216d0e5dc4784e91e10b798a5206e1b0f --- /dev/null +++ b/suite2cases/mesa.json @@ -0,0 +1,83 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mesa", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mesa_install_and_remove_mesa" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libxatracker-devel" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-filesystem" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libGL" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libGL-devel" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-dri-drivers" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libd3d-devel" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-omx-drivers" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-vdpau-drivers" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libOSMesa" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libgbm" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libd3d" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-vulkan-drivers" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libxatracker" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libEGL" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libEGL-devel" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libOSMesa-devel" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libgbm-devel" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libglapi" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-debugsource" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-vulkan-devel" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-debuginfo" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-khr-devel" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libGLES-devel" + }, + { + "name": "oe_test_mesa_install_and_remove_mesa-libGLES" + } + ] +} \ No newline at end of file diff --git a/suite2cases/meson.json b/suite2cases/meson.json index 789df63b34ffebfaa6a3ac34aad3a9f2672592da..2197b545e0cae72567a0afb5442f633c31fa64cb 100644 --- a/suite2cases/meson.json +++ b/suite2cases/meson.json @@ -1,8 +1,17 @@ { "path": "$OET_PATH/testcases/cli-test/meson", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_meson_base_meson_wrap" + }, + { + "name": "oe_test_meson_install_and_remove_meson" + }, + { + "name": "oe_test_meson_install_and_remove_meson-help" } ] } \ No newline at end of file diff --git a/suite2cases/metacity.json b/suite2cases/metacity.json new file mode 100644 index 0000000000000000000000000000000000000000..dd5dadc3558ab57bfa32c868263e260a5dd0237a --- /dev/null +++ b/suite2cases/metacity.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/metacity", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_metacity_install_and_remove_metacity" + }, + { + "name": "oe_test_metacity_install_and_remove_metacity-devel" + }, + { + "name": "oe_test_metacity_install_and_remove_metacity-debuginfo" + }, + { + "name": "oe_test_metacity_install_and_remove_metacity-help" + }, + { + "name": "oe_test_metacity_install_and_remove_metacity-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mikmod.json b/suite2cases/mikmod.json index b94aa12d1db39d63f30f32876cb8df5426b49e56..56bbc687f5fd008800eab463d885e50eb25f17de 100644 --- a/suite2cases/mikmod.json +++ b/suite2cases/mikmod.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/mikmod", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_mikmod_mikmod_02" diff --git a/suite2cases/minimap2.json b/suite2cases/minimap2.json index a4f3b3d98d91cee6a4915cdf3ed9a6c6f6a79f91..d04c3e01996356b3d9014c7e2f131e42a571d4a7 100644 --- a/suite2cases/minimap2.json +++ b/suite2cases/minimap2.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/minimap2", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_minimap2" diff --git a/suite2cases/mksh.json b/suite2cases/mksh.json index b51ebbf50b132cd22e782c53cda961a04fdd7f3e..a4e3bae51b0281adc8ec9191e479d35b9dfff1fa 100644 --- a/suite2cases/mksh.json +++ b/suite2cases/mksh.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/mksh", - "cases": [ - { - "name": "oe_test_mksh" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/mksh", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mksh" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mlocate.json b/suite2cases/mlocate.json index 7678c42d91fa6e091b2a133fe8a638a0401296e6..f16451c2b29df435400e58d68ec7d9ab00bc0c90 100644 --- a/suite2cases/mlocate.json +++ b/suite2cases/mlocate.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/mlocate", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_mlocate-updatedb" } ] -} +} \ No newline at end of file diff --git a/suite2cases/mm_uce.json b/suite2cases/mm_uce.json index 3fbc14667362c5767a6aee8748f3e23dcf7948fd..ebf437ad1f87b71edd8135919dc44f52e1afeb31 100644 --- a/suite2cases/mm_uce.json +++ b/suite2cases/mm_uce.json @@ -1,38 +1,40 @@ { - "path": "$OET_PATH/testcases/feature-test/mm_uce", - "machine type": "physical", - "cases": [ - { - "name": "oe_test_mm_uce_copyfromuser", - "machine type": "physical" - }, - { - "name": "oe_test_mm_uce_getuser", - "machine type": "physical" - }, - { - "name": "oe_test_mm_uce_copyonwrite", - "machine type": "physical" - }, - { - "name": "oe_test_mm_uce_coredump_tmpfs", - "machine type": "physical" - }, - { - "name": "oe_test_mm_uce_coredump_ext4", - "machine type": "physical" - }, - { - "name": "oe_test_mm_uce_coredump_pipefs", - "machine type": "physical" - }, - { - "name": "oe_test_mm_uce_copytouser", - "machine type": "physical" - }, - { - "name": "oe_test_mm_uce_putuser", - "machine type": "physical" - } - ] -} + "path": "$OET_PATH/testcases/feature-test/mm_uce", + "machine type": "physical", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mm_uce_copyfromuser", + "machine type": "physical" + }, + { + "name": "oe_test_mm_uce_getuser", + "machine type": "physical" + }, + { + "name": "oe_test_mm_uce_copyonwrite", + "machine type": "physical" + }, + { + "name": "oe_test_mm_uce_coredump_tmpfs", + "machine type": "physical" + }, + { + "name": "oe_test_mm_uce_coredump_ext4", + "machine type": "physical" + }, + { + "name": "oe_test_mm_uce_coredump_pipefs", + "machine type": "physical" + }, + { + "name": "oe_test_mm_uce_copytouser", + "machine type": "physical" + }, + { + "name": "oe_test_mm_uce_putuser", + "machine type": "physical" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mobile-broadband-provider-info.json b/suite2cases/mobile-broadband-provider-info.json new file mode 100644 index 0000000000000000000000000000000000000000..cb44afa78b813dd91219d6f98799be252c88a006 --- /dev/null +++ b/suite2cases/mobile-broadband-provider-info.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mobile-broadband-provider-info", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info" + }, + { + "name": "oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info-devel" + }, + { + "name": "oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mocha.json b/suite2cases/mocha.json index 06b7e0550d59c08c40a8b1ab61a8316a64ec1026..9922484aa8b0cb0e941e21295864eb90208229b1 100644 --- a/suite2cases/mocha.json +++ b/suite2cases/mocha.json @@ -1,35 +1,37 @@ { "path": "$OET_PATH/testcases/cli-test/mocha", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_mocha" - }, - { - "name": "oe_test_mocha_01" - }, - { - "name": "oe_test_mocha_02" - }, - { - "name": "oe_test_mocha_03" - }, - { - "name": "oe_test_mocha_04" - }, - { - "name": "oe_test_mocha_05" - }, - { - "name": "oe_test_mocha_06" - }, - { - "name": "oe_test_mocha_07" - }, - { - "name": "oe_test_mocha_08" - }, - { - "name": "oe_test_mocha_09" - } + }, + { + "name": "oe_test_mocha_01" + }, + { + "name": "oe_test_mocha_02" + }, + { + "name": "oe_test_mocha_03" + }, + { + "name": "oe_test_mocha_04" + }, + { + "name": "oe_test_mocha_05" + }, + { + "name": "oe_test_mocha_06" + }, + { + "name": "oe_test_mocha_07" + }, + { + "name": "oe_test_mocha_08" + }, + { + "name": "oe_test_mocha_09" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/mod_wsgi.json b/suite2cases/mod_wsgi.json index 66d5109dd7303212336fe8ae46e8f47ddc836aa7..731723038745e7d356d72e3e2a9afcb77a92d9e9 100644 --- a/suite2cases/mod_wsgi.json +++ b/suite2cases/mod_wsgi.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/mod_wsgi", - "cases": [ - { - "name": "oe_test_mod_wsgi" - } - ] + "path": "$OET_PATH/testcases/cli-test/mod_wsgi", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mod_wsgi" + } + ] } \ No newline at end of file diff --git a/suite2cases/mokutil.json b/suite2cases/mokutil.json new file mode 100644 index 0000000000000000000000000000000000000000..cccf63024e149faf432ba3d975479192c82b4eae --- /dev/null +++ b/suite2cases/mokutil.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mokutil", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mokutil_install_and_remove_mokutil" + }, + { + "name": "oe_test_mokutil_install_and_remove_mokutil-help" + }, + { + "name": "oe_test_mokutil_install_and_remove_mokutil-debuginfo" + }, + { + "name": "oe_test_mokutil_install_and_remove_mokutil-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mosquitto.json b/suite2cases/mosquitto.json index b5ab2b41dc2223687ae81ffbe97f4520360b2257..603ff46ea292bf0513f8a714a6e1d31afb614a30 100644 --- a/suite2cases/mosquitto.json +++ b/suite2cases/mosquitto.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/mosquitto", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_mosquitto" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/mpfr.json b/suite2cases/mpfr.json new file mode 100644 index 0000000000000000000000000000000000000000..61061bcf994e200762cbe6f274e25d9f1880e53c --- /dev/null +++ b/suite2cases/mpfr.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mpfr", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mpfr_install_and_remove_mpfr" + }, + { + "name": "oe_test_mpfr_install_and_remove_mpfr-devel" + }, + { + "name": "oe_test_mpfr_install_and_remove_mpfr-debuginfo" + }, + { + "name": "oe_test_mpfr_install_and_remove_mpfr-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mpg123.json b/suite2cases/mpg123.json index 759f4824d0887b5f70ec40d419d1b5622c14d1d6..e977718f858f7344d81cc0304c2e4ec11d531922 100644 --- a/suite2cases/mpg123.json +++ b/suite2cases/mpg123.json @@ -1,8 +1,38 @@ { "path": "${OET_PATH}/testcases/cli-test/mpg123", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_mpg123" + }, + { + "name": "oe_test_mpg123_install_and_remove_mpg123" + }, + { + "name": "oe_test_mpg123_install_and_remove_mpg123-plugins-portaudio" + }, + { + "name": "oe_test_mpg123_install_and_remove_mpg123-plugins-pulseaudio" + }, + { + "name": "oe_test_mpg123_install_and_remove_mpg123-devel" + }, + { + "name": "oe_test_mpg123_install_and_remove_mpg123-plugins-jack" + }, + { + "name": "oe_test_mpg123_install_and_remove_mpg123-libs" + }, + { + "name": "oe_test_mpg123_install_and_remove_mpg123-debugsource" + }, + { + "name": "oe_test_mpg123_install_and_remove_mpg123-debuginfo" + }, + { + "name": "oe_test_mpg123_install_and_remove_mpg123-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/mpich.json b/suite2cases/mpich.json index ea1eee07990759359e33053760800a04594b3d26..3af34411381fbbf1dc21633d3e57aa7a2d455dd6 100644 --- a/suite2cases/mpich.json +++ b/suite2cases/mpich.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/cli-test/mpich", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_mpich_mpiexec_01" @@ -14,8 +16,4 @@ "name": "oe_test_mpich_mpirun_02" } ] -} - - - - +} \ No newline at end of file diff --git a/suite2cases/mrtg.json b/suite2cases/mrtg.json index a38732215ea3d733f838f3433017d489d9ba290c..6b05a6bef424367935decf40f8bb72af5ea36d5a 100644 --- a/suite2cases/mrtg.json +++ b/suite2cases/mrtg.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/mrtg", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_mrtg" } ] -} +} \ No newline at end of file diff --git a/suite2cases/mt-st.json b/suite2cases/mt-st.json index cdd36347f52fa9936b354a0e45be55947ba80695..2ff4e40cd7a634dc64bd6f4e3eda1bef7dcaecbd 100644 --- a/suite2cases/mt-st.json +++ b/suite2cases/mt-st.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/mt-st", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_stinit" } ] -} +} \ No newline at end of file diff --git a/suite2cases/mtdev.json b/suite2cases/mtdev.json new file mode 100644 index 0000000000000000000000000000000000000000..efb96a31e742f79f9541f58d18cc4b35563b9eb5 --- /dev/null +++ b/suite2cases/mtdev.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mtdev", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mtdev_install_and_remove_mtdev" + }, + { + "name": "oe_test_mtdev_install_and_remove_mtdev-devel" + }, + { + "name": "oe_test_mtdev_install_and_remove_mtdev-debuginfo" + }, + { + "name": "oe_test_mtdev_install_and_remove_mtdev-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mtools.json b/suite2cases/mtools.json new file mode 100644 index 0000000000000000000000000000000000000000..8e76b25c7925c39d1cd2d552ee950e09c7781e8f --- /dev/null +++ b/suite2cases/mtools.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mtools", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mtools_install_and_remove_mtools" + }, + { + "name": "oe_test_mtools_install_and_remove_mtools-help" + }, + { + "name": "oe_test_mtools_install_and_remove_mtools-debuginfo" + }, + { + "name": "oe_test_mtools_install_and_remove_mtools-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mtr.json b/suite2cases/mtr.json new file mode 100644 index 0000000000000000000000000000000000000000..c31b322809ecf266cf3f963c12d17e71a0c96958 --- /dev/null +++ b/suite2cases/mtr.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/mtr", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_mtr_install_and_remove_mtr" + }, + { + "name": "oe_test_mtr_install_and_remove_mtr-gtk" + }, + { + "name": "oe_test_mtr_install_and_remove_mtr-help" + }, + { + "name": "oe_test_mtr_install_and_remove_mtr-debuginfo" + }, + { + "name": "oe_test_mtr_install_and_remove_mtr-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mtx.json b/suite2cases/mtx.json index 09658011bc2cf780aeff3380d304516ca0d5536a..17b4675eeedaa4a9efd3e10670275f23293ed9e7 100644 --- a/suite2cases/mtx.json +++ b/suite2cases/mtx.json @@ -1,20 +1,22 @@ { "path": "$OET_PATH/testcases/cli-test/mtx", + "cpu": 2, + "memory": 4, "cases": [ - { + { "name": "oe_test_mtx_loaderinfo" }, { "name": "oe_test_mtx_tapeinfo" - }, + }, { "name": "oe_test_mtx_mtx" }, { "name": "oe_test_mtx_scsieject" - }, + }, { "name": "oe_test_mtx_scsitape" } ] -} +} \ No newline at end of file diff --git a/suite2cases/multilib-rpm-config.json b/suite2cases/multilib-rpm-config.json new file mode 100644 index 0000000000000000000000000000000000000000..ceb379ccbb670d704477cfe1ef08d1d1221fe2bb --- /dev/null +++ b/suite2cases/multilib-rpm-config.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/multilib-rpm-config", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_multilib-rpm-config_install_and_remove_multilib-rpm-config" + } + ] +} \ No newline at end of file diff --git a/suite2cases/multipath-tools.json b/suite2cases/multipath-tools.json index ccbb99228a9b17373b946b00076712028f1282bd..1a70a4c8c6498f17b699d8cb060229530e8787b9 100644 --- a/suite2cases/multipath-tools.json +++ b/suite2cases/multipath-tools.json @@ -4,6 +4,9 @@ "add disk": [ 4 ], + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_multipath-tools_kpartx", @@ -40,11 +43,29 @@ 4 ] }, - { + { "name": "oe_test_service_multipathd" - }, - { + }, + { "name": "oe_test_socket_multipathd" - } + }, + { + "name": "oe_test_multipath-tools_install_and_remove_multipath-tools" + }, + { + "name": "oe_test_multipath-tools_install_and_remove_kpartx" + }, + { + "name": "oe_test_multipath-tools_install_and_remove_multipath-tools-devel" + }, + { + "name": "oe_test_multipath-tools_install_and_remove_multipath-tools-help" + }, + { + "name": "oe_test_multipath-tools_install_and_remove_multipath-tools-debuginfo" + }, + { + "name": "oe_test_multipath-tools_install_and_remove_multipath-tools-debugsource" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/munge.json b/suite2cases/munge.json index a88dabe998d43d1459a08b306fbb9d5005f2d11a..aecca2d39d19fbf3275ca064d520ffefded50344 100644 --- a/suite2cases/munge.json +++ b/suite2cases/munge.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/munge", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_munge" } ] -} +} \ No newline at end of file diff --git a/suite2cases/musl.json b/suite2cases/musl.json new file mode 100644 index 0000000000000000000000000000000000000000..029e8d96a36aa0273d5cf6e9e5ed9709d8c4a3b9 --- /dev/null +++ b/suite2cases/musl.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/musl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_musl_install_and_remove_musl" + }, + { + "name": "oe_test_musl_install_and_remove_musl-libc" + }, + { + "name": "oe_test_musl_install_and_remove_musl-devel" + }, + { + "name": "oe_test_musl_install_and_remove_musl-gcc" + }, + { + "name": "oe_test_musl_install_and_remove_musl-libc-static" + }, + { + "name": "oe_test_musl_install_and_remove_musl-debugsource" + }, + { + "name": "oe_test_musl_install_and_remove_musl-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/mutt.json b/suite2cases/mutt.json index 3f72c2b80bfd81e6c1c3dfc46471883e31b194b8..25ca0b6c043d7f688edab9fc87db953df47d4a5b 100644 --- a/suite2cases/mutt.json +++ b/suite2cases/mutt.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/mutt", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_mutt" diff --git a/suite2cases/mysql.json b/suite2cases/mysql.json index 7de94822496cde2a2e6558cc668c9949cd3a3e51..8644953eafe777f9b723555126c32e94dca63fc6 100644 --- a/suite2cases/mysql.json +++ b/suite2cases/mysql.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/mysql", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_mysql" diff --git a/suite2cases/mysql5.json b/suite2cases/mysql5.json index 578ec01cfb6f813cdf00d413e4b70b62ff478fed..504c4a78fdb60429f7056a72eb838ec8061308b0 100644 --- a/suite2cases/mysql5.json +++ b/suite2cases/mysql5.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/mysql5", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_mysqld" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nagios.json b/suite2cases/nagios.json index c89167fedb8b963fd8fc40dba64eb7c4964b65b2..2b1b193ce177c1c53d03af95c4a5f29e277573da 100644 --- a/suite2cases/nagios.json +++ b/suite2cases/nagios.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/nagios", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_nagios" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nasm.json b/suite2cases/nasm.json index 41a09419a471f247d79a99e8866c70c6130b0f5a..487cc0609e768df504e490af9a82bc95eb7c507c 100644 --- a/suite2cases/nasm.json +++ b/suite2cases/nasm.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/nasm", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nasm_01" @@ -46,8 +49,20 @@ { "name": "oe_test_nasm_ndisasm_02" }, - { - "name": "oe_test_nasm_14" - } + { + "name": "oe_test_nasm_14" + }, + { + "name": "oe_test_nasm_install_and_remove_nasm" + }, + { + "name": "oe_test_nasm_install_and_remove_nasm-help" + }, + { + "name": "oe_test_nasm_install_and_remove_nasm-debuginfo" + }, + { + "name": "oe_test_nasm_install_and_remove_nasm-debugsource" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/nbdkit.json b/suite2cases/nbdkit.json index 4f24244f051140e8c7fc48edd4e317daa09c9f6c..f0260b0d1f38fcb2ed85da7427ba06fcec1a4065 100644 --- a/suite2cases/nbdkit.json +++ b/suite2cases/nbdkit.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/nbdkit", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nbdkit_01" diff --git a/suite2cases/ncurses.json b/suite2cases/ncurses.json index d0df6653fc11f7c3197cb1f8fa289cdf28d80b16..3c61d156799a9bf0efdcc3ba641f61303966afd3 100644 --- a/suite2cases/ncurses.json +++ b/suite2cases/ncurses.json @@ -1,8 +1,41 @@ { "path": "$OET_PATH/testcases/cli-test/ncurses", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ncurses-devel" - } + }, + { + "name": "oe_test_ncurses_install_and_remove_ncurses" + }, + { + "name": "oe_test_ncurses_install_and_remove_ncurses-base" + }, + { + "name": "oe_test_ncurses_install_and_remove_ncurses-compat-libs" + }, + { + "name": "oe_test_ncurses_install_and_remove_ncurses-static" + }, + { + "name": "oe_test_ncurses_install_and_remove_ncurses-libs" + }, + { + "name": "oe_test_ncurses_install_and_remove_ncurses-help" + }, + { + "name": "oe_test_ncurses_install_and_remove_ncurses-devel" + }, + { + "name": "oe_test_ncurses_install_and_remove_ncurses-debugsource" + }, + { + "name": "oe_test_ncurses_install_and_remove_ncurses-debuginfo" + }, + { + "name": "oe_test_ncurses_install_and_remove_ncurses-relocation" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/ndctl.json b/suite2cases/ndctl.json index 34e28d7c7429e996aedd8b4246b5dc7e2ee799dd..51827d56b85983cf7b56731a9183dedad95bba33 100644 --- a/suite2cases/ndctl.json +++ b/suite2cases/ndctl.json @@ -1,8 +1,44 @@ { "path": "$OET_PATH/testcases/cli-test/ndctl", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ndctl-monitor" + }, + { + "name": "oe_test_ndctl_install_and_remove_ndctl" + }, + { + "name": "oe_test_ndctl_install_and_remove_cxl-cli" + }, + { + "name": "oe_test_ndctl_install_and_remove_cxl-devel" + }, + { + "name": "oe_test_ndctl_install_and_remove_ndctl-devel" + }, + { + "name": "oe_test_ndctl_install_and_remove_daxctl" + }, + { + "name": "oe_test_ndctl_install_and_remove_daxctl-devel" + }, + { + "name": "oe_test_ndctl_install_and_remove_ndctl-libs" + }, + { + "name": "oe_test_ndctl_install_and_remove_daxctl-libs" + }, + { + "name": "oe_test_ndctl_install_and_remove_cxl-libs" + }, + { + "name": "oe_test_ndctl_install_and_remove_ndctl-debugsource" + }, + { + "name": "oe_test_ndctl_install_and_remove_ndctl-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ndisc6.json b/suite2cases/ndisc6.json index 8a1103be645b72f5a29f7e2f87179614ca77f4e8..0e1b35a90baa0d72aa3e9d0caa500b0d2d172c24 100644 --- a/suite2cases/ndisc6.json +++ b/suite2cases/ndisc6.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/ndisc6", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ndisc6_addr2name", diff --git a/suite2cases/neon-config.json b/suite2cases/neon-config.json index 238befefb2408810108220c27bc7dec07f184dae..82e0c7277ae47e67c3009823301183777727390f 100644 --- a/suite2cases/neon-config.json +++ b/suite2cases/neon-config.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/neon-config", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_neon-config" - } + } ] -} +} \ No newline at end of file diff --git a/suite2cases/net-snmp.json b/suite2cases/net-snmp.json index 52ee91a04caee266f2745d6c21a8d2de0dc15825..1205b4b60b658c3d92625fb273c1d5bacccb4012 100644 --- a/suite2cases/net-snmp.json +++ b/suite2cases/net-snmp.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/net-snmp", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_snmpd" @@ -12,6 +15,33 @@ }, { "name": "oe_test_net-snmp_02" + }, + { + "name": "oe_test_net-snmp_install_and_remove_net-snmp" + }, + { + "name": "oe_test_net-snmp_install_and_remove_python3-net-snmp" + }, + { + "name": "oe_test_net-snmp_install_and_remove_net-snmp-devel" + }, + { + "name": "oe_test_net-snmp_install_and_remove_net-snmp-libs" + }, + { + "name": "oe_test_net-snmp_install_and_remove_net-snmp-perl" + }, + { + "name": "oe_test_net-snmp_install_and_remove_net-snmp-gui" + }, + { + "name": "oe_test_net-snmp_install_and_remove_net-snmp-debugsource" + }, + { + "name": "oe_test_net-snmp_install_and_remove_net-snmp-help" + }, + { + "name": "oe_test_net-snmp_install_and_remove_net-snmp-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/net-tools.json b/suite2cases/net-tools.json index e94bf4bbd360be0809006fcff4bf5a2dbf31c684..8f746f54e429a148664aa19841bf99c67d45f68f 100644 --- a/suite2cases/net-tools.json +++ b/suite2cases/net-tools.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/net-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_arp-ethers" @@ -18,6 +21,18 @@ }, { "name": "oe_test_net-tools_netstat_02" + }, + { + "name": "oe_test_net-tools_install_and_remove_net-tools" + }, + { + "name": "oe_test_net-tools_install_and_remove_net-tools-help" + }, + { + "name": "oe_test_net-tools_install_and_remove_net-tools-debugsource" + }, + { + "name": "oe_test_net-tools_install_and_remove_net-tools-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/netavark.json b/suite2cases/netavark.json index 1b80e9067646985baf655b6eb5ef4f6633267bde..6675a7f371281757fbfb7a358ed5202be1de386c 100644 --- a/suite2cases/netavark.json +++ b/suite2cases/netavark.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/netavark", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_netavark-dhcp-proxy" @@ -8,4 +10,4 @@ "name": "oe_test_service_netavark-firewalld-reload" } ] -} +} \ No newline at end of file diff --git a/suite2cases/netcdf.json b/suite2cases/netcdf.json index 3089fd78821a3d488ddb47292746f55a37bc4267..a272a79f87c4e3c7a91e6fbba7cbe2d7cd278a30 100644 --- a/suite2cases/netcdf.json +++ b/suite2cases/netcdf.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/netcdf", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_netcdf" } ] -} +} \ No newline at end of file diff --git a/suite2cases/netcf.json b/suite2cases/netcf.json index 3581f50a0694d2ac6a872b0b86201224f837d7e1..96e247585fbb186dde02eb91c8c036e6b986e48f 100644 --- a/suite2cases/netcf.json +++ b/suite2cases/netcf.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/netcf", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_netcf-transaction" } ] -} +} \ No newline at end of file diff --git a/suite2cases/netdata.json b/suite2cases/netdata.json index e8f402d432bc9fb9b7bdd63d66fa92cccd5a5d18..623b8ae42963103068e8d15aaa6fb49c7ee7ca2b 100644 --- a/suite2cases/netdata.json +++ b/suite2cases/netdata.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/netdata", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_netdata" }, { "name": "oe_test_service_netdata" - } - ] -} + } + ] +} \ No newline at end of file diff --git a/suite2cases/netlabel_tools.json b/suite2cases/netlabel_tools.json index cc93cd9535472c5f6fbf8600373f460d633eefb4..b8751469eb989cd30b05e51a2d5c06d96abdea51 100644 --- a/suite2cases/netlabel_tools.json +++ b/suite2cases/netlabel_tools.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/netlabel_tools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_netlabel" diff --git a/suite2cases/netperf.json b/suite2cases/netperf.json index 4209622f2bc19cf625a302ed675782de0292a1bc..932e9437a650d855060c8e301561185a7004268f 100644 --- a/suite2cases/netperf.json +++ b/suite2cases/netperf.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/netperf", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_netperf_basic_command", diff --git a/suite2cases/netperf_network.json b/suite2cases/netperf_network.json new file mode 100644 index 0000000000000000000000000000000000000000..c43b29704ff2942a384a561f584eb857827d73d4 --- /dev/null +++ b/suite2cases/netperf_network.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/performance-test/network/netperf_network", + "machine num": 2, + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_netperf_network" + } + ] +} \ No newline at end of file diff --git a/suite2cases/netsniff-ng.json b/suite2cases/netsniff-ng.json index 47d9afcf0b525c0029e38e26e6d3202188ea0586..f5e87a8c94cb549f5ffb2d1becc6e2e1ab19f8a1 100644 --- a/suite2cases/netsniff-ng.json +++ b/suite2cases/netsniff-ng.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/netsniff-ng", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_astraceroute_01" @@ -61,4 +63,4 @@ "name": "oe_test_trafgen_03" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nettle.json b/suite2cases/nettle.json new file mode 100644 index 0000000000000000000000000000000000000000..2f9789cbbe3d46276190cf84a0ffe343d5fb71f1 --- /dev/null +++ b/suite2cases/nettle.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/nettle", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_nettle_install_and_remove_nettle" + }, + { + "name": "oe_test_nettle_install_and_remove_nettle-devel" + }, + { + "name": "oe_test_nettle_install_and_remove_nettle-help" + }, + { + "name": "oe_test_nettle_install_and_remove_nettle-debuginfo" + }, + { + "name": "oe_test_nettle_install_and_remove_nettle-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/network-manager-applet.json b/suite2cases/network-manager-applet.json new file mode 100644 index 0000000000000000000000000000000000000000..9398a0bbd5e1150ee352a6d03d25ed3c3cc66306 --- /dev/null +++ b/suite2cases/network-manager-applet.json @@ -0,0 +1,38 @@ +{ + "path": "$OET_PATH/testcases/cli-test/network-manager-applet", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_network-manager-applet_install_and_remove_network-manager-applet" + }, + { + "name": "oe_test_network-manager-applet_install_and_remove_libnm-gtk" + }, + { + "name": "oe_test_network-manager-applet_install_and_remove_libnma-devel" + }, + { + "name": "oe_test_network-manager-applet_install_and_remove_nm-connection-editor" + }, + { + "name": "oe_test_network-manager-applet_install_and_remove_libnm-gtk-devel" + }, + { + "name": "oe_test_network-manager-applet_install_and_remove_libnma" + }, + { + "name": "oe_test_network-manager-applet_install_and_remove_nm-connection-editor-desktop" + }, + { + "name": "oe_test_network-manager-applet_install_and_remove_network-manager-applet-debugsource" + }, + { + "name": "oe_test_network-manager-applet_install_and_remove_network-manager-applet-debuginfo" + }, + { + "name": "oe_test_network-manager-applet_install_and_remove_network-manager-applet-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/network_basic.json b/suite2cases/network_basic.json index b42ae54c1332ca3b565e62dab26a496ec30541f2..cb91aa07e9a72e2cf23026aa8322260814825ee4 100644 --- a/suite2cases/network_basic.json +++ b/suite2cases/network_basic.json @@ -2,6 +2,8 @@ "path": "${OET_PATH}/testcases/system-test/network-test/network_basic", "machine num": 2, "add network interface": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_act_arp" @@ -28,7 +30,7 @@ }, { "name": "oe_test_ethtool_config", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_ethtool_info" @@ -64,4 +66,4 @@ "name": "oe_test_check_nslookup" } ] -} +} \ No newline at end of file diff --git a/suite2cases/network_docker.json b/suite2cases/network_docker.json index 1ad217ac059a23c826942155d28d88bafc67bf77..2115781c7efe047b4189bfa4acaa14223f295f52 100644 --- a/suite2cases/network_docker.json +++ b/suite2cases/network_docker.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/system-test/network-test/network_docker", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_docker_network_create" @@ -11,4 +13,4 @@ "name": "oe_test_docker_set_ip" } ] -} +} \ No newline at end of file diff --git a/suite2cases/network_negative.json b/suite2cases/network_negative.json index be2eabec3a79fb15e70e53b305ce71550e772a49..3f3a4a39cd7f850f129cb656ca08ccb625469672 100644 --- a/suite2cases/network_negative.json +++ b/suite2cases/network_negative.json @@ -1,6 +1,8 @@ { "path": "${OET_PATH}/testcases/system-test/network-test/network_negative", "add network interface": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_act_nonexist_nic" @@ -13,7 +15,7 @@ }, { "name": "oe_test_modify_mac_failed", - "add network interface": 1 + "add network interface": 1 } ] -} +} \ No newline at end of file diff --git a/suite2cases/network_struct.json b/suite2cases/network_struct.json index e51490a6bfe01048ba4e5a82dbfd48297dc3f3d1..6a05729c4d67c2c96576926dbd1ec4eca31fa3cb 100644 --- a/suite2cases/network_struct.json +++ b/suite2cases/network_struct.json @@ -3,23 +3,25 @@ "machine type": "physical", "machine num": 2, "add network interface": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_add_ip" }, { "name": "oe_test_bridge_create", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_bridge_create_by_config_reboot", "machine num": 2, - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_bridge_create_reboot", "machine num": 2, - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_check_ip" @@ -49,46 +51,46 @@ }, { "name": "oe_test_ipv6_add", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_ipv6_static_setting", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_lo" }, { "name": "oe_test_nic_change_mac", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_nic_change_queue", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_nic_check", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_nic_ifconfig", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_nic_ifup", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_nic_ip", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_nic_nmcli", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_nic_queue", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_nic_scapy", @@ -97,7 +99,7 @@ { "name": "oe_test_nic_work_format", "machine type": "physical", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_nmap_check" @@ -107,10 +109,10 @@ }, { "name": "oe_test_nmap_up_down", - "add network interface": 1 + "add network interface": 1 }, { "name": "oe_test_ss" } ] -} +} \ No newline at end of file diff --git a/suite2cases/network_virtual.json b/suite2cases/network_virtual.json index ae6f2f76c4728cdbaf808ab4bd7272659bd357bf..77e9445c5d4db930b65db5da4be0dbed7c3f27ab 100644 --- a/suite2cases/network_virtual.json +++ b/suite2cases/network_virtual.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/system-test/network-test/network_virtual", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_check_tuntap_support" @@ -35,4 +37,4 @@ "name": "oe_test_veth_create" } ] -} +} \ No newline at end of file diff --git a/suite2cases/newt.json b/suite2cases/newt.json new file mode 100644 index 0000000000000000000000000000000000000000..77f40049921e220cfd014ad73b6dad5b5f65277b --- /dev/null +++ b/suite2cases/newt.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/newt", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_newt_install_and_remove_newt" + }, + { + "name": "oe_test_newt_install_and_remove_newt-devel" + }, + { + "name": "oe_test_newt_install_and_remove_python3-newt" + }, + { + "name": "oe_test_newt_install_and_remove_newt-help" + }, + { + "name": "oe_test_newt_install_and_remove_newt-debuginfo" + }, + { + "name": "oe_test_newt_install_and_remove_newt-debugsource" + }, + { + "name": "oe_test_newt_install_and_remove_python2-newt" + } + ] +} \ No newline at end of file diff --git a/suite2cases/nfs-utils.json b/suite2cases/nfs-utils.json index 867f8c6da567d1783b984a4c9388f15a8a6c7a88..6e9cfabae0ddf2298420f3c0e1e03723c2577cce 100644 --- a/suite2cases/nfs-utils.json +++ b/suite2cases/nfs-utils.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/nfs-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_auth-rpcgss-module" @@ -51,6 +54,27 @@ }, { "name": "oe_test_service_fsidd" + }, + { + "name": "oe_test_nfs-utils_install_and_remove_nfs-utils" + }, + { + "name": "oe_test_nfs-utils_install_and_remove_nfs-utils-min" + }, + { + "name": "oe_test_nfs-utils_install_and_remove_nfs-utils-help" + }, + { + "name": "oe_test_nfs-utils_install_and_remove_libnfsidmap" + }, + { + "name": "oe_test_nfs-utils_install_and_remove_nfs-utils-devel" + }, + { + "name": "oe_test_nfs-utils_install_and_remove_nfs-utils-debuginfo" + }, + { + "name": "oe_test_nfs-utils_install_and_remove_nfs-utils-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nftables.json b/suite2cases/nftables.json index 8bc61b57c3b247c1c04c55a74fe8a8ddbc40d530..6f2c4085acc9008ea0c83693666dd69f967a4ca6 100644 --- a/suite2cases/nftables.json +++ b/suite2cases/nftables.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/nftables", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nftables_create_counters" diff --git a/suite2cases/nghttp2.json b/suite2cases/nghttp2.json index 174d50c4e2a6070e9030fd3e4d4c5357c05bf677..5c6fc8e1aa97894a3ba0c0517fd4bac793438a3a 100644 --- a/suite2cases/nghttp2.json +++ b/suite2cases/nghttp2.json @@ -1,8 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/nghttp2", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_nghttpx" + }, + { + "name": "oe_test_nghttp2_install_and_remove_nghttp2" + }, + { + "name": "oe_test_nghttp2_install_and_remove_libnghttp2" + }, + { + "name": "oe_test_nghttp2_install_and_remove_libnghttp2-devel" + }, + { + "name": "oe_test_nghttp2_install_and_remove_nghttp2-help" + }, + { + "name": "oe_test_nghttp2_install_and_remove_nghttp2-debuginfo" + }, + { + "name": "oe_test_nghttp2_install_and_remove_nghttp2-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nginx.json b/suite2cases/nginx.json index 515513d3700ce8419fb1325cb9ef2a098029725b..d2a9f6f7924d4a3ac9ccf9813eea804a5e7111e8 100644 --- a/suite2cases/nginx.json +++ b/suite2cases/nginx.json @@ -1,17 +1,19 @@ { - "path": "$OET_PATH/testcases/cli-test/nginx", - "cases": [ - { - "name": "oe_test_nginx_cli" - }, - { - "name": "oe_test_service_nginx" - }, - { - "name": "oe_test_nginx_concurrent" - }, - { - "name": "oe_test_service_nginx_2" - } - ] + "path": "$OET_PATH/testcases/cli-test/nginx", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_nginx_cli" + }, + { + "name": "oe_test_service_nginx" + }, + { + "name": "oe_test_nginx_concurrent" + }, + { + "name": "oe_test_service_nginx_2" + } + ] } \ No newline at end of file diff --git a/suite2cases/ninja-build.json b/suite2cases/ninja-build.json index 81c7c2e0db4964c061978681e1ea9f72024bf228..c9b1bdad8207d3b178f7ab06d9d23fa013fccb87 100644 --- a/suite2cases/ninja-build.json +++ b/suite2cases/ninja-build.json @@ -1,8 +1,20 @@ { - "path": "$OET_PATH/testcases/cli-test/ninja-build", - "cases": [ - { - "name": "oe_test_ninja-build_ninja" - } - ] + "path": "$OET_PATH/testcases/cli-test/ninja-build", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ninja-build_ninja" + }, + { + "name": "oe_test_ninja-build_install_and_remove_ninja-build" + }, + { + "name": "oe_test_ninja-build_install_and_remove_ninja-build-debuginfo" + }, + { + "name": "oe_test_ninja-build_install_and_remove_ninja-build-debugsource" + } + ] } \ No newline at end of file diff --git a/suite2cases/nispor.json b/suite2cases/nispor.json index 4028036dea912a65586d6366cbda8ebb6fbc2f9c..198dbaad04f3b566f291ec5d0fad764bd41439c7 100644 --- a/suite2cases/nispor.json +++ b/suite2cases/nispor.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/nispor", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_nispor" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/nmap.json b/suite2cases/nmap.json new file mode 100644 index 0000000000000000000000000000000000000000..2931cb392e15e99412a03e879710aba9d4ccbe25 --- /dev/null +++ b/suite2cases/nmap.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/nmap", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_nmap_install_and_remove_nmap" + }, + { + "name": "oe_test_nmap_install_and_remove_nmap-debugsource" + }, + { + "name": "oe_test_nmap_install_and_remove_nmap-debuginfo" + }, + { + "name": "oe_test_nmap_install_and_remove_nmap-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/nmon.json b/suite2cases/nmon.json index b5cc33f399c5ecaf12ece7763a2d5a79c0fc4925..d42a43aa81235c809f73292502ddf97e49d36f39 100644 --- a/suite2cases/nmon.json +++ b/suite2cases/nmon.json @@ -1,17 +1,19 @@ { - "path": "$OET_PATH/testcases/cli-test/nmon", - "cases": [ - { - "name": "oe_test_nmon_01" - }, - { - "name": "oe_test_nmon_02" - }, - { - "name": "oe_test_nmon_03" - }, - { - "name": "oe_test_nmon_04" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/nmon", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_nmon_01" + }, + { + "name": "oe_test_nmon_02" + }, + { + "name": "oe_test_nmon_03" + }, + { + "name": "oe_test_nmon_04" + } + ] +} \ No newline at end of file diff --git a/suite2cases/nodejs-clean-css.json b/suite2cases/nodejs-clean-css.json index 1e056dbbeab667a0f055a64a543152739965ac68..3efbe2e87bfbaa81912745ab7ed9b2105cb52341 100644 --- a/suite2cases/nodejs-clean-css.json +++ b/suite2cases/nodejs-clean-css.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/nodejs-clean-css", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_cleancss_01" @@ -8,4 +10,4 @@ "name": "oe_test_cleancss_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nodejs-grunt-cli.json b/suite2cases/nodejs-grunt-cli.json index d2b57f4fb7f53742b7022e8b2f3430eb39b47fc6..402cff3dd63ff0eb550a861a9b9dd41f4eff2474 100644 --- a/suite2cases/nodejs-grunt-cli.json +++ b/suite2cases/nodejs-grunt-cli.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/nodejs-grunt-cli", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gruntcli_grunt_01" @@ -8,4 +10,4 @@ "name": "oe_test_gruntcli_grunt_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nodejs-jsonpointer.json b/suite2cases/nodejs-jsonpointer.json index ee24061648df23a638fa88bcdc419890f299b4ef..5d8c54223e80d30b20654fa3dface0a7b78a7bbb 100644 --- a/suite2cases/nodejs-jsonpointer.json +++ b/suite2cases/nodejs-jsonpointer.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/nodejs-jsonpointer", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nodejs-jsonpointer" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nodejs-tiny-lr-fork.json b/suite2cases/nodejs-tiny-lr-fork.json index 1f9a19336c778c3493ac463ca6b18e4300303ad6..5aa3d1914ef552066cafae929ac2ae945c72451f 100644 --- a/suite2cases/nodejs-tiny-lr-fork.json +++ b/suite2cases/nodejs-tiny-lr-fork.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/nodejs-tiny-lr-fork", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tiny_lr" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nodejs.json b/suite2cases/nodejs.json index 2bc8214323c76fd7c99cfff42224e99ced555579..ec155706bed3952d91949c711982a2eabc1bb519 100644 --- a/suite2cases/nodejs.json +++ b/suite2cases/nodejs.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/nodejs", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nodejs_01" diff --git a/suite2cases/nodeunit.json b/suite2cases/nodeunit.json index bc5bbaa392408395debe7094707987cab82eb428..9d939d78d53c07a006fbae21c33619c1395ebb79 100644 --- a/suite2cases/nodeunit.json +++ b/suite2cases/nodeunit.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/nodeunit", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nodeunit" - }, - { - "name": "oe_test_nodeunit_01" + }, + { + "name": "oe_test_nodeunit_01" } ] -} +} \ No newline at end of file diff --git a/suite2cases/notification-daemon.json b/suite2cases/notification-daemon.json new file mode 100644 index 0000000000000000000000000000000000000000..f40149a97d45c2312d8d8738a2b8d377defabc8f --- /dev/null +++ b/suite2cases/notification-daemon.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/notification-daemon", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_notification-daemon_install_and_remove_notification-daemon" + }, + { + "name": "oe_test_notification-daemon_install_and_remove_notification-daemon-debuginfo" + }, + { + "name": "oe_test_notification-daemon_install_and_remove_notification-daemon-debugsource" + }, + { + "name": "oe_test_notification-daemon_install_and_remove_notification-daemon-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/nototools.json b/suite2cases/nototools.json index 2bba07a79ddb8a4d69ca9f6dec043500f8491369..44924b2e32feed947078828e55129d267c5a7d53 100644 --- a/suite2cases/nototools.json +++ b/suite2cases/nototools.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/nototools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nototools_base_notocoverage" diff --git a/suite2cases/nototools_0-2.json b/suite2cases/nototools_0-2.json index b8ace6b25cc1878c2cf457e15f18a2ecee95f037..d77066bd4e7657e166475028b980452e1c46a048 100644 --- a/suite2cases/nototools_0-2.json +++ b/suite2cases/nototools_0-2.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/nototools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nototools_0-2_notodiff" diff --git a/suite2cases/nototools_0.2.17.json b/suite2cases/nototools_0.2.17.json index 238e925b051ebc43fcd28f4004d20b2506617157..276c5be1b5f6b1666c583fbf17f8000326b6bde4 100644 --- a/suite2cases/nototools_0.2.17.json +++ b/suite2cases/nototools_0.2.17.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/nototools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nototools_0.2.17_notodiff" diff --git a/suite2cases/novnc.json b/suite2cases/novnc.json index 20c81c268efb05fc1c396c99af4eed7e25e231a3..fd30b4e6fa39e4173b045b3a739778c4188563f3 100644 --- a/suite2cases/novnc.json +++ b/suite2cases/novnc.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/novnc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_novnc" diff --git a/suite2cases/npth.json b/suite2cases/npth.json new file mode 100644 index 0000000000000000000000000000000000000000..13a9422b5d445b3dac2d33a5fd20386c6b43e131 --- /dev/null +++ b/suite2cases/npth.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/npth", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_npth_install_and_remove_npth" + }, + { + "name": "oe_test_npth_install_and_remove_npth-devel" + }, + { + "name": "oe_test_npth_install_and_remove_npth-debugsource" + }, + { + "name": "oe_test_npth_install_and_remove_npth-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/nspr.json b/suite2cases/nspr.json index 2c72695c6af963be1b1d954418d5ba327eb68fb7..5414c592e2d7c0d8b92c999dcab4e5a7abf19d62 100644 --- a/suite2cases/nspr.json +++ b/suite2cases/nspr.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/nspr", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nspr_001" @@ -9,7 +12,18 @@ }, { "name": "oe_test_nspr-devel" + }, + { + "name": "oe_test_nspr_install_and_remove_nspr" + }, + { + "name": "oe_test_nspr_install_and_remove_nspr-devel" + }, + { + "name": "oe_test_nspr_install_and_remove_nspr-debugsource" + }, + { + "name": "oe_test_nspr_install_and_remove_nspr-debuginfo" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/nss-pam-ldapd.json b/suite2cases/nss-pam-ldapd.json index 91e4a23a0474ecb4b55fdc69a911ca669f839e59..928f2b0a39619555fccecd1c52ae595dafeb5141 100644 --- a/suite2cases/nss-pam-ldapd.json +++ b/suite2cases/nss-pam-ldapd.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/nss-pam-ldapd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_nslcd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nss.json b/suite2cases/nss.json index 7e851deebb3726e3b7c1753b7bec4ce570c7716c..f2dec51362b9a1d517a9a4fc820826a30149ea0b 100644 --- a/suite2cases/nss.json +++ b/suite2cases/nss.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/nss", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nss" @@ -9,6 +12,33 @@ }, { "name": "oe_test_nss-softokn-devel" + }, + { + "name": "oe_test_nss_install_and_remove_nss" + }, + { + "name": "oe_test_nss_install_and_remove_nss-util" + }, + { + "name": "oe_test_nss_install_and_remove_nss-softokn-devel" + }, + { + "name": "oe_test_nss_install_and_remove_nss-help" + }, + { + "name": "oe_test_nss_install_and_remove_nss-devel" + }, + { + "name": "oe_test_nss_install_and_remove_nss-util-devel" + }, + { + "name": "oe_test_nss_install_and_remove_nss-softokn" + }, + { + "name": "oe_test_nss_install_and_remove_nss-debugsource" + }, + { + "name": "oe_test_nss_install_and_remove_nss-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nss_wrapper.json b/suite2cases/nss_wrapper.json index 4815b37160a26872e5d605bf723035f540a2da6f..03c9b7cb70d6f8bf6e37032d62c7786876ac96d9 100644 --- a/suite2cases/nss_wrapper.json +++ b/suite2cases/nss_wrapper.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/nss_wrapper", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nss_wrapper" + }, + { + "name": "oe_test_nss_wrapper_install_and_remove_nss_wrapper" + }, + { + "name": "oe_test_nss_wrapper_install_and_remove_nss_wrapper-help" + }, + { + "name": "oe_test_nss_wrapper_install_and_remove_nss_wrapper-debugsource" + }, + { + "name": "oe_test_nss_wrapper_install_and_remove_nss_wrapper-debuginfo" } ] } \ No newline at end of file diff --git a/suite2cases/ntfs-3g.json b/suite2cases/ntfs-3g.json index 72fd0be4998a72da22289d2953f54a15c9c1f70f..8b00fa70a9408e8782c23e5a2574c2641b53ba8a 100644 --- a/suite2cases/ntfs-3g.json +++ b/suite2cases/ntfs-3g.json @@ -1,107 +1,186 @@ { "path": "$OET_PATH/testcases/cli-test/ntfs-3g", - "add disk": [5,5], + "add disk": [ + 5, + 5 + ], + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ntfs-3g_ntfscat", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfscp", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_mkntfs", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_mkfs.ntfs", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfsclone_01", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfsclone_02", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfslabel", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfsinfo", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfsls", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfswipe_01", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfswipe_02", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfsresize", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfscluster", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfsmove", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfssecaudit", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfstruncate", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfsundelete_01", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfsundelete_02", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfs-3g_01", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfs-3g_02", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfs-3g_03", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_lowntfs-3g_01", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_lowntfs-3g_02", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_lowntfs-3g_03", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] }, { "name": "oe_test_ntfs-3g_ntfsfallocate", - "add disk": [5,5] + "add disk": [ + 5, + 5 + ] } - ] -} +} \ No newline at end of file diff --git a/suite2cases/ntp.json b/suite2cases/ntp.json index d430282e5b71a36f897908a3f1648cf6a1b2268b..8eea994c62aa71ed5c0a402ca9d0aaf5adac7540 100644 --- a/suite2cases/ntp.json +++ b/suite2cases/ntp.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/ntp", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ntpdate" @@ -14,4 +16,4 @@ "name": "oe_test_service_sntp" } ] -} +} \ No newline at end of file diff --git a/suite2cases/numactl.json b/suite2cases/numactl.json new file mode 100644 index 0000000000000000000000000000000000000000..285878bbbdb4ef169e98e908a769401863f7bda5 --- /dev/null +++ b/suite2cases/numactl.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/numactl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_numactl_install_and_remove_numactl" + }, + { + "name": "oe_test_numactl_install_and_remove_numactl-devel" + }, + { + "name": "oe_test_numactl_install_and_remove_numactl-libs" + }, + { + "name": "oe_test_numactl_install_and_remove_numactl-debugsource" + }, + { + "name": "oe_test_numactl_install_and_remove_numactl-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/numad.json b/suite2cases/numad.json index 212f5646364c7e2a215acc2cf7d86a359ff58c6f..e8e61b5e5abd849e16439c3a791959daed8f8e75 100644 --- a/suite2cases/numad.json +++ b/suite2cases/numad.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/numad", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_numad" } ] -} +} \ No newline at end of file diff --git a/suite2cases/numpy.json b/suite2cases/numpy.json new file mode 100644 index 0000000000000000000000000000000000000000..388ddba081a138b80d3ceb7ad7ea8c2fa20b4a3f --- /dev/null +++ b/suite2cases/numpy.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/numpy", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_numpy_install_and_remove_numpy" + }, + { + "name": "oe_test_numpy_install_and_remove_python3-numpy-f2py" + }, + { + "name": "oe_test_numpy_install_and_remove_python3-numpy" + }, + { + "name": "oe_test_numpy_install_and_remove_numpy-debuginfo" + }, + { + "name": "oe_test_numpy_install_and_remove_numpy-debugsource" + }, + { + "name": "oe_test_numpy_install_and_remove_python2-numpy" + }, + { + "name": "oe_test_numpy_install_and_remove_python2-numpy-f2py" + } + ] +} \ No newline at end of file diff --git a/suite2cases/nvmetcli.json b/suite2cases/nvmetcli.json index 66444556b3eae9595e3da6c07254a5add957ba69..f1a673a7b14bed36feb0029a85aa65621c38f145 100644 --- a/suite2cases/nvmetcli.json +++ b/suite2cases/nvmetcli.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/nvmetcli", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_nvmet" @@ -17,4 +19,4 @@ "name": "oe_test_target_nvmf-connect" } ] -} +} \ No newline at end of file diff --git a/suite2cases/nvml.json b/suite2cases/nvml.json index 20d1205bd66eec5ad96c6313e96cdcd5bd3365da..5c94714dea2f47be84bf59a0add82aaade69a770 100644 --- a/suite2cases/nvml.json +++ b/suite2cases/nvml.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/nvml", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_nvml_daxio" diff --git a/suite2cases/nvwa.json b/suite2cases/nvwa.json index 8c0fe9dd13a3e5934dc4878a416ee7b8cccf3c86..ced02ad7420de52c40adf3ace1a688357a603e13 100644 --- a/suite2cases/nvwa.json +++ b/suite2cases/nvwa.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/nvwa", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_nvwa" @@ -11,5 +13,4 @@ "name": "oe_test_nvwa_redis" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/oath-toolkit.json b/suite2cases/oath-toolkit.json index 9f4c921497158b03aee62f4bdf69adbe0b7b384f..7c29f6b37d07fbd32ef883c17690743a7e99dabd 100644 --- a/suite2cases/oath-toolkit.json +++ b/suite2cases/oath-toolkit.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/oath-toolkit", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_oathtool" } ] -} +} \ No newline at end of file diff --git a/suite2cases/objectweb-asm3.json b/suite2cases/objectweb-asm3.json index f3c01718e71a570d34e5e7eecdab0d86afa212cd..ccd56c2f4d257aeca21c3ec98ddcc18f45474d41 100644 --- a/suite2cases/objectweb-asm3.json +++ b/suite2cases/objectweb-asm3.json @@ -1,13 +1,13 @@ { - "path": "$OET_PATH/testcases/cli-test/objectweb-asm3", - "cases": [ - { - "name": "oe_test_objectweb-asm3-processor" - }, - { - "name": "oe_test_objectweb-asm3-processor_01" - } - ] -} - - + "path": "$OET_PATH/testcases/cli-test/objectweb-asm3", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_objectweb-asm3-processor" + }, + { + "name": "oe_test_objectweb-asm3-processor_01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/obs-server.json b/suite2cases/obs-server.json index b231e2eec9c57459c56a553035dca54390eeb446..13de180ff035c1fc964f958e4a37aa89724eecd8 100644 --- a/suite2cases/obs-server.json +++ b/suite2cases/obs-server.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/obs-server", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_obs-server" @@ -83,10 +85,10 @@ "name": "oe_test_service_obs-delayedjob-queue-default" }, { - "name":"oe_test_service_obs-delayedjob-queue-scm" + "name": "oe_test_service_obs-delayedjob-queue-scm" }, { - "name":"oe_test_service_obssourcepublish" + "name": "oe_test_service_obssourcepublish" } ] } \ No newline at end of file diff --git a/suite2cases/ocaml-findlib.json b/suite2cases/ocaml-findlib.json index 7a000202d2641589aa27d859d191112be5da0dd2..bc23bf4f752368a5e0d73f8e8d3eaa42512f1d0e 100644 --- a/suite2cases/ocaml-findlib.json +++ b/suite2cases/ocaml-findlib.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/ocaml-findlib", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ocaml-findlib" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ocaml-gettext.json b/suite2cases/ocaml-gettext.json index c342ca34f1db0f758a7038a179d7a3418e3e5dea..7be8ed1c225b4b7a536a7471c267ba960e4609c8 100644 --- a/suite2cases/ocaml-gettext.json +++ b/suite2cases/ocaml-gettext.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/ocaml-gettext", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ocaml-gettext" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ocaml.json b/suite2cases/ocaml.json index b2798602777ca064942400b4db5acaabd62f4984..a74071165ed5719c1e849bbbcd328f6d72f8fb92 100644 --- a/suite2cases/ocaml.json +++ b/suite2cases/ocaml.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/ocaml", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ocaml_ocaml" @@ -330,6 +333,21 @@ }, { "name": "oe_test_ocaml_ocamlyacc" + }, + { + "name": "oe_test_ocaml_install_and_remove_ocaml" + }, + { + "name": "oe_test_ocaml_install_and_remove_ocaml-devel" + }, + { + "name": "oe_test_ocaml_install_and_remove_ocaml-help" + }, + { + "name": "oe_test_ocaml_install_and_remove_ocaml-debugsource" + }, + { + "name": "oe_test_ocaml_install_and_remove_ocaml-debuginfo" } ] } \ No newline at end of file diff --git a/suite2cases/oddjob.json b/suite2cases/oddjob.json index 91db93693a9ee78d9fb4c82d0b0dcbe70f6c8eee..4a54c18efef5505e47968cb99483081594534d25 100644 --- a/suite2cases/oddjob.json +++ b/suite2cases/oddjob.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/oddjob", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_oddjobd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/oeaware.json b/suite2cases/oeaware.json index 697dbf803887f43f6f70f9f253f7a6f0bb95165c..69aa38339a8d1220aa5bd216854e9d681d295a24 100644 --- a/suite2cases/oeaware.json +++ b/suite2cases/oeaware.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/feature-test/oeaware", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_oeAware_01" @@ -22,59 +24,59 @@ { "name": "oe_test_oeAware_07" }, - { - "name": "oe_test_oeAware_08" - }, - { - "name": "oe_test_oeAware_09" - }, - { - "name": "oe_test_oeAware_10" - }, - { - "name": "oe_test_oeAware_11" - }, - { - "name": "oe_test_oeAware_12" - }, - { - "name": "oe_test_oeAware_13" - }, - { - "name": "oe_test_oeAware_14" - }, - { - "name": "oe_test_oeAware_15" - }, - { - "name": "oe_test_oeAware_16" - }, - { - "name": "oe_test_oeAware_17" - }, - { - "name": "oe_test_oeAware_18" - }, - { - "name": "oe_test_oeAware_19" - }, - { - "name": "oe_test_oeAware_20" - }, - { - "name": "oe_test_oeAware_21" - }, - { - "name": "oe_test_oeAware_22" - }, - { - "name": "oe_test_oeAware_23" - }, - { - "name": "oe_test_oeAware_24" - }, - { - "name": "oe_test_oeAware_25" - } + { + "name": "oe_test_oeAware_08" + }, + { + "name": "oe_test_oeAware_09" + }, + { + "name": "oe_test_oeAware_10" + }, + { + "name": "oe_test_oeAware_11" + }, + { + "name": "oe_test_oeAware_12" + }, + { + "name": "oe_test_oeAware_13" + }, + { + "name": "oe_test_oeAware_14" + }, + { + "name": "oe_test_oeAware_15" + }, + { + "name": "oe_test_oeAware_16" + }, + { + "name": "oe_test_oeAware_17" + }, + { + "name": "oe_test_oeAware_18" + }, + { + "name": "oe_test_oeAware_19" + }, + { + "name": "oe_test_oeAware_20" + }, + { + "name": "oe_test_oeAware_21" + }, + { + "name": "oe_test_oeAware_22" + }, + { + "name": "oe_test_oeAware_23" + }, + { + "name": "oe_test_oeAware_24" + }, + { + "name": "oe_test_oeAware_25" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/oec-hardware.json b/suite2cases/oec-hardware.json index 15b7669429da238a124ec64c3d0792719e5d19b8..a773c646c7184d1b0195af7d01b2926d8e37a53b 100644 --- a/suite2cases/oec-hardware.json +++ b/suite2cases/oec-hardware.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/oec-hardware", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_oech" @@ -8,4 +10,4 @@ "name": "oe_test_service_oech-server" } ] -} +} \ No newline at end of file diff --git a/suite2cases/oemaker.json b/suite2cases/oemaker.json index eb3d1416723aed1c037d3930fa792d850274d512..f8049f5129985950412cd41a89ad24ef3bcdf9bb 100644 --- a/suite2cases/oemaker.json +++ b/suite2cases/oemaker.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/oemaker", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_oemaker" diff --git a/suite2cases/ogdi.json b/suite2cases/ogdi.json index 6c00972b932d4efad69788f783ec0222fbc198d5..91d496b197bc3b521914d374b4017b7a1fa2d863 100644 --- a/suite2cases/ogdi.json +++ b/suite2cases/ogdi.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/ogdi", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ogdi-config" } ] -} +} \ No newline at end of file diff --git a/suite2cases/oncn-bwm-AT.json b/suite2cases/oncn-bwm-AT.json index 8a44e25c0f635a30070453b806fad6f0a2799cfc..ea5cdd96b08c89083d4b3d1e4f8b3cbcd013da85 100644 --- a/suite2cases/oncn-bwm-AT.json +++ b/suite2cases/oncn-bwm-AT.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/smoke-test/smoke-oncn-bwm", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_bwm_qos_limit_001", @@ -11,4 +13,4 @@ "machine num": 2 } ] -} +} \ No newline at end of file diff --git a/suite2cases/oncn-bwm.json b/suite2cases/oncn-bwm.json index 25cc1406f0d4697eb70f7a29ac8f7b30dcea2d52..6cb18540fce46e06eaa2ab9a255d7b1be70972a5 100644 --- a/suite2cases/oncn-bwm.json +++ b/suite2cases/oncn-bwm.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/oncn-bwm", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_bwm_qos_limit_001", @@ -11,4 +13,4 @@ "machine num": 2 } ] -} +} \ No newline at end of file diff --git a/suite2cases/oniguruma.json b/suite2cases/oniguruma.json index 3f955dccf96ef081793a712b8fb37f23b9f189ac..de58cf499c8232347dd4d634b78ce230fd94b1b4 100644 --- a/suite2cases/oniguruma.json +++ b/suite2cases/oniguruma.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/oniguruma", - "cases": [ - { - "name": "oe_test_oniguruma" - } - ] + "path": "$OET_PATH/testcases/cli-test/oniguruma", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_oniguruma" + } + ] } \ No newline at end of file diff --git a/suite2cases/open-iscsi.json b/suite2cases/open-iscsi.json index 3f282a9eef9661e3a133028e99a4d07505d993a7..cdf2192c7e90f5e898200135da04153184cfce50 100644 --- a/suite2cases/open-iscsi.json +++ b/suite2cases/open-iscsi.json @@ -4,6 +4,9 @@ "add disk": [ 2 ], + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_open-iscsi_iscsiadm", @@ -33,6 +36,21 @@ }, { "name": "oe_test_socket_iscsiuio" + }, + { + "name": "oe_test_open-iscsi_install_and_remove_open-iscsi" + }, + { + "name": "oe_test_open-iscsi_install_and_remove_open-iscsi-help" + }, + { + "name": "oe_test_open-iscsi_install_and_remove_open-iscsi-devel" + }, + { + "name": "oe_test_open-iscsi_install_and_remove_open-iscsi-debuginfo" + }, + { + "name": "oe_test_open-iscsi_install_and_remove_open-iscsi-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/open-isns.json b/suite2cases/open-isns.json index 1f9ed3d307f3e8c9adb54274d566ac08fe2dfea2..41698864920c0312349e346653325eb5d4c89d7e 100644 --- a/suite2cases/open-isns.json +++ b/suite2cases/open-isns.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/open-isns", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_isnsd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/open-sans-fonts.json b/suite2cases/open-sans-fonts.json new file mode 100644 index 0000000000000000000000000000000000000000..c69ddb67c45dfe1616bae65652b7be35da5b9f51 --- /dev/null +++ b/suite2cases/open-sans-fonts.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/open-sans-fonts", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_open-sans-fonts_install_and_remove_open-sans-fonts" + } + ] +} \ No newline at end of file diff --git a/suite2cases/openblas.json b/suite2cases/openblas.json index 726b7d2a2ee86c42a919f94659f9410fe9acde70..b0e80caab4388d6b19d5e8c69de31a45cac5553a 100644 --- a/suite2cases/openblas.json +++ b/suite2cases/openblas.json @@ -1,8 +1,23 @@ { - "path": "$OET_PATH/testcases/cli-test/openblas", - "cases": [ - { - "name": "oe_test_openblas" - } - ] + "path": "$OET_PATH/testcases/cli-test/openblas", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_openblas" + }, + { + "name": "oe_test_openblas_install_and_remove_openblas" + }, + { + "name": "oe_test_openblas_install_and_remove_openblas-devel" + }, + { + "name": "oe_test_openblas_install_and_remove_openblas-debuginfo" + }, + { + "name": "oe_test_openblas_install_and_remove_openblas-debugsource" + } + ] } \ No newline at end of file diff --git a/suite2cases/opencc.json b/suite2cases/opencc.json index 7bb611b7818831ca4a2129dc4b97df8005756a5e..dfa5fc7e91cfecd8a54a7993ba95d47f619d8245 100644 --- a/suite2cases/opencc.json +++ b/suite2cases/opencc.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/opencc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_opencc_01" diff --git a/suite2cases/opencryptoki.json b/suite2cases/opencryptoki.json index 2262925fbfadd09c7a4d0505716623d7fb6177cc..7110ab8eee631bde4baf217b1d0e3f4fe0ab7a0a 100644 --- a/suite2cases/opencryptoki.json +++ b/suite2cases/opencryptoki.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/opencryptoki", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_pkcsslotd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/opendmarc.json b/suite2cases/opendmarc.json index 1a1923353959658039f0a8b8b1c41218ebd59c95..8b960d830369adbe915625b5523f4ece7a23a64f 100644 --- a/suite2cases/opendmarc.json +++ b/suite2cases/opendmarc.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/opendmarc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_opendmarc" } ] -} +} \ No newline at end of file diff --git a/suite2cases/openhpi.json b/suite2cases/openhpi.json index 6c7ddab96e2743e5dbbd3b49f7efa4a9d87419fb..b52fc09bc093c6d526823b8685809edd74fb8c6f 100644 --- a/suite2cases/openhpi.json +++ b/suite2cases/openhpi.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/openhpi", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_openhpid" } ] -} +} \ No newline at end of file diff --git a/suite2cases/openjade.json b/suite2cases/openjade.json index 3421bdb11ff8d16d871c22a2a7dc6c042f5dd2ec..e532949f1cdee11ea19d720e5522672eda4f6ba6 100644 --- a/suite2cases/openjade.json +++ b/suite2cases/openjade.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/openjade", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_openjade_jade_01" @@ -21,6 +24,18 @@ }, { "name": "oe_test_openjade_openjade_04" + }, + { + "name": "oe_test_openjade_install_and_remove_openjade" + }, + { + "name": "oe_test_openjade_install_and_remove_openjade-debuginfo" + }, + { + "name": "oe_test_openjade_install_and_remove_openjade-help" + }, + { + "name": "oe_test_openjade_install_and_remove_openjade-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/openjpeg2.json b/suite2cases/openjpeg2.json index 11f02decf777bc68f8585a19fced5f6f06a69c1e..d94309c20383164ed87f803ba0b86cbc03dc7acb 100644 --- a/suite2cases/openjpeg2.json +++ b/suite2cases/openjpeg2.json @@ -1,11 +1,32 @@ { "path": "$OET_PATH/testcases/cli-test/openjpeg2", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_openjpeg2-tools" - }, + }, { "name": "oe_test_openjpeg2-tools_01" + }, + { + "name": "oe_test_openjpeg2_install_and_remove_openjpeg2" + }, + { + "name": "oe_test_openjpeg2_install_and_remove_openjpeg2-devel" + }, + { + "name": "oe_test_openjpeg2_install_and_remove_openjpeg2-tools" + }, + { + "name": "oe_test_openjpeg2_install_and_remove_openjpeg2-debuginfo" + }, + { + "name": "oe_test_openjpeg2_install_and_remove_openjpeg2-debugsource" + }, + { + "name": "oe_test_openjpeg2_install_and_remove_openjpeg2-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/openldap.json b/suite2cases/openldap.json index 6f6f0fee72cb0379ffba60df6f96d85e623e0e93..76c49e6c277f7ad588f057ecd89855f9bd6f3bfa 100644 --- a/suite2cases/openldap.json +++ b/suite2cases/openldap.json @@ -1,8 +1,32 @@ { "path": "$OET_PATH/testcases/cli-test/openldap", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_slapd" + }, + { + "name": "oe_test_openldap_install_and_remove_openldap" + }, + { + "name": "oe_test_openldap_install_and_remove_openldap-clients" + }, + { + "name": "oe_test_openldap_install_and_remove_openldap-devel" + }, + { + "name": "oe_test_openldap_install_and_remove_openldap-servers" + }, + { + "name": "oe_test_openldap_install_and_remove_openldap-help" + }, + { + "name": "oe_test_openldap_install_and_remove_openldap-debuginfo" + }, + { + "name": "oe_test_openldap_install_and_remove_openldap-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/openmpi.json b/suite2cases/openmpi.json index d2cc2438975cb5db4bf8dbca471652d97115ab36..60e46c242bef79c3c8e80fdb8f8c6ef345cdd11b 100644 --- a/suite2cases/openmpi.json +++ b/suite2cases/openmpi.json @@ -1,10 +1,11 @@ { "path": "\"${OET_PATH}\"/testcases/cli-test/openmpi", - "machine num":2, + "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_openmpi_cluster" - }, { "name": "oe_test_openmpi_single_01" diff --git a/suite2cases/opensc.json b/suite2cases/opensc.json new file mode 100644 index 0000000000000000000000000000000000000000..0d367bdc2ca2935b5f5ed3529c0be613ac391e95 --- /dev/null +++ b/suite2cases/opensc.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/opensc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_opensc_install_and_remove_opensc" + }, + { + "name": "oe_test_opensc_install_and_remove_opensc-help" + }, + { + "name": "oe_test_opensc_install_and_remove_opensc-debugsource" + }, + { + "name": "oe_test_opensc_install_and_remove_opensc-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/openscap.json b/suite2cases/openscap.json index d1ca0f7e8936b161fde316c9e83dc59f9b969ef5..4c1a20952db98e4990da2eeef43142e3f63f6e72 100644 --- a/suite2cases/openscap.json +++ b/suite2cases/openscap.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/openscap", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_openscap_01" @@ -16,7 +18,7 @@ }, { "name": "oe_test_assess_safety_compliance", - "machine num":2 + "machine num": 2 }, { "name": "oe_test_fix_anisible" @@ -25,4 +27,4 @@ "name": "oe_test_service_oscap-remediate" } ] -} +} \ No newline at end of file diff --git a/suite2cases/openslp.json b/suite2cases/openslp.json index d0d8693f43b01e3927f65a55477a26723d3bbad9..ef4bf59b1e2f219cfe077fed3221613b3696a758 100644 --- a/suite2cases/openslp.json +++ b/suite2cases/openslp.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/openslp", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_slpd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/opensm.json b/suite2cases/opensm.json index e93d7536cc68552670720e4a014a5c0bd8cc3ffc..2a01165b3bd459a7a848be715686df8054d25848 100644 --- a/suite2cases/opensm.json +++ b/suite2cases/opensm.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/opensm", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_opensm" } ] -} +} \ No newline at end of file diff --git a/suite2cases/opensp.json b/suite2cases/opensp.json index 517421693585621ff838b9cab7f6c1632a48e861..5b60b5cded880756c1b31e4d50a5c66bfc941ad4 100644 --- a/suite2cases/opensp.json +++ b/suite2cases/opensp.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/opensp", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_opensp_onsgmls" @@ -18,6 +21,18 @@ }, { "name": "oe_test_opensp_osx" + }, + { + "name": "oe_test_opensp_install_and_remove_opensp" + }, + { + "name": "oe_test_opensp_install_and_remove_opensp-devel" + }, + { + "name": "oe_test_opensp_install_and_remove_opensp-debuginfo" + }, + { + "name": "oe_test_opensp_install_and_remove_opensp-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/openssh.json b/suite2cases/openssh.json index cec591e01369a5b6fec14c66b771985fd1ef7b57..b07b8b5744f97ccbb04fd5e59841f10ef4b5d322 100644 --- a/suite2cases/openssh.json +++ b/suite2cases/openssh.json @@ -1,6 +1,9 @@ { "path": "$OET_PATH/testcases/cli-test/openssh", "machine num": 2, + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_openssh_cipher" @@ -78,6 +81,33 @@ }, { "name": "oe_test_sec_jump_login" + }, + { + "name": "oe_test_openssh_install_and_remove_openssh" + }, + { + "name": "oe_test_openssh_install_and_remove_openssh-clients" + }, + { + "name": "oe_test_openssh_install_and_remove_pam_ssh_agent_auth" + }, + { + "name": "oe_test_openssh_install_and_remove_openssh-keycat" + }, + { + "name": "oe_test_openssh_install_and_remove_openssh-server" + }, + { + "name": "oe_test_openssh_install_and_remove_openssh-help" + }, + { + "name": "oe_test_openssh_install_and_remove_openssh-askpass" + }, + { + "name": "oe_test_openssh_install_and_remove_openssh-debuginfo" + }, + { + "name": "oe_test_openssh_install_and_remove_openssh-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/openssl-pkcs11.json b/suite2cases/openssl-pkcs11.json new file mode 100644 index 0000000000000000000000000000000000000000..79d3632ce34014e2fba42bb76f37dcd656dab82c --- /dev/null +++ b/suite2cases/openssl-pkcs11.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/openssl-pkcs11", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11" + }, + { + "name": "oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-devel" + }, + { + "name": "oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-debugsource" + }, + { + "name": "oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/openssl.json b/suite2cases/openssl.json index e2f519f705d0fb1358f33f8837d71dc448f1e23f..95c57f32c3d4d7df85f9197bc8efb6b3a1779d3c 100644 --- a/suite2cases/openssl.json +++ b/suite2cases/openssl.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/openssl", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_openssl_concurrent_operations" @@ -82,26 +85,50 @@ { "name": "oe_test_openssl_symmetric_encryption_decryption" }, - { - "name": "oe_test_openssl_enc" - }, - { - "name": "oe_test_openssl_rc4_encryption_file" - }, - { - "name": "oe_test_openssl_sm2" - }, - { - "name": "oe_test_openssl_sm4" - }, - { - "name": "oe_test_openssl_hmac" - }, - { - "name": "oe_test_openssl_speed" - }, - { - "name": "oe_test_openssl_cryptographic_services" - } + { + "name": "oe_test_openssl_enc" + }, + { + "name": "oe_test_openssl_rc4_encryption_file" + }, + { + "name": "oe_test_openssl_sm2" + }, + { + "name": "oe_test_openssl_sm4" + }, + { + "name": "oe_test_openssl_hmac" + }, + { + "name": "oe_test_openssl_speed" + }, + { + "name": "oe_test_openssl_cryptographic_services" + }, + { + "name": "oe_test_openssl_install_and_remove_openssl" + }, + { + "name": "oe_test_openssl_install_and_remove_openssl-libs" + }, + { + "name": "oe_test_openssl_install_and_remove_openssl-devel" + }, + { + "name": "oe_test_openssl_install_and_remove_openssl-help" + }, + { + "name": "oe_test_openssl_install_and_remove_openssl-perl" + }, + { + "name": "oe_test_openssl_install_and_remove_openssl-debuginfo" + }, + { + "name": "oe_test_openssl_install_and_remove_openssl-debugsource" + }, + { + "name": "oe_test_openssl_install_and_remove_openssl-relocation" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/openvpn.json b/suite2cases/openvpn.json index 57ada680f5ea6e9ee6e77fa47fcbfb5004e7cd82..3759de1783c04e1ad679711d2a82f34c10d89920 100644 --- a/suite2cases/openvpn.json +++ b/suite2cases/openvpn.json @@ -2,9 +2,11 @@ "path": "$OET_PATH/testcases/cli-test/openvpn", "machine num": 2, "add network interface": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_openvpn" } ] -} +} \ No newline at end of file diff --git a/suite2cases/openvswitch.json b/suite2cases/openvswitch.json index 4b2974b117493685cce1c22e8a503619e1453707..63a87602c7f99fc9439b1af9bb773bd386179d5c 100644 --- a/suite2cases/openvswitch.json +++ b/suite2cases/openvswitch.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/openvswitch", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_openvswitch" @@ -12,7 +14,7 @@ }, { "name": "oe_test_service_ovn-controller" - } , + }, { "name": "oe_test_service_ovn-northd" }, @@ -26,4 +28,4 @@ "name": "oe_test_service_ovs-delete-transient-ports" } ] -} +} \ No newline at end of file diff --git a/suite2cases/openwsman.json b/suite2cases/openwsman.json index 799bca82b98aff0d132402f0d3eaa529b67ca427..bc5273c773f7fe3967d3732786bbdd4a0965ffe3 100644 --- a/suite2cases/openwsman.json +++ b/suite2cases/openwsman.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/openwsman", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_openwsmand" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ops_guide.json b/suite2cases/ops_guide.json index dfc34cd4dc14282da47b9a3af995aff6aee53299..85b8732366bd758e073cc950f05f2fa9c31d9fb4 100644 --- a/suite2cases/ops_guide.json +++ b/suite2cases/ops_guide.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/doc-test/ops_guide", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_system_resources_and_performance" @@ -17,4 +19,4 @@ "name": "oe_test_common_skill_dnf_commands" } ] -} +} \ No newline at end of file diff --git a/suite2cases/optipng.json b/suite2cases/optipng.json index ef099bc11a56a22e0ebdccaecadc0d86b63eddb6..96cb5c41fce902b8fa7aca0b618221396b5a683d 100644 --- a/suite2cases/optipng.json +++ b/suite2cases/optipng.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/optipng", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_optipng_01" diff --git a/suite2cases/opus.json b/suite2cases/opus.json new file mode 100644 index 0000000000000000000000000000000000000000..a179a76191ba36964c963017abf4323954f2f5bb --- /dev/null +++ b/suite2cases/opus.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/opus", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_opus_install_and_remove_opus" + }, + { + "name": "oe_test_opus_install_and_remove_opus-devel" + }, + { + "name": "oe_test_opus_install_and_remove_opus-help" + }, + { + "name": "oe_test_opus_install_and_remove_opus-debugsource" + }, + { + "name": "oe_test_opus_install_and_remove_opus-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/orc.json b/suite2cases/orc.json new file mode 100644 index 0000000000000000000000000000000000000000..c0e65ec5ae4d0d73524b37edea7afd657b73a7b6 --- /dev/null +++ b/suite2cases/orc.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/orc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_orc_install_and_remove_orc" + }, + { + "name": "oe_test_orc_install_and_remove_orc-compiler" + }, + { + "name": "oe_test_orc_install_and_remove_orc-help" + }, + { + "name": "oe_test_orc_install_and_remove_orc-devel" + }, + { + "name": "oe_test_orc_install_and_remove_orc-debuginfo" + }, + { + "name": "oe_test_orc_install_and_remove_orc-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/os-basic.json b/suite2cases/os-basic.json index 6decb0ed8784a6e3039f621ec089442fa54b9cd2..2dae6612a54ea90933f0406173bb47a2f9ccd621 100644 --- a/suite2cases/os-basic.json +++ b/suite2cases/os-basic.json @@ -9,6 +9,8 @@ 2 ], "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_enable_hugepage" @@ -666,9 +668,9 @@ { "name": "oe_test_libunistring" }, - { - "name": "oe_test_shred" - }, + { + "name": "oe_test_shred" + }, { "name": "oe_test_expect" }, @@ -680,34 +682,34 @@ }, { "name": "oe_test_disk_io_sched" - }, + }, { "name": "oe_test_lsusb" - }, + }, { "name": "oe_test_last" - }, + }, { "name": "oe_test_lastb" - }, + }, { "name": "oe_test_aureport" - }, + }, { "name": "oe_test_chsh" - }, + }, { "name": "oe_test_lua" - }, + }, { "name": "oe_test_server_fontconfig" - }, + }, { "name": "oe_test_server_libtasn1" - }, + }, { "name": "oe_test_count_gperftools_function" - }, + }, { "name": "oe_test_split" }, @@ -729,215 +731,210 @@ { "name": "oe_test_history" }, - { - "name": "oe_test_virt-what" - }, - { - "name":"oe_test_gcc_01" - }, - { - "name": "oe_test_locate_001" - }, - { - "name": "oe_test_bzcmp" - }, - { - "name": "oe_test_unlink" - }, - { - "name": "oe_test_xzcmp" - }, - { - "name": "oe_test_zgrep" - }, - { - "name": "oe_test_server_subversion" - }, - { - "name": "oe_test_auditctl_02" - }, - { - "name": "oe_test_bunzip2" - }, - { - "name": "oe_test_zipdetails" - }, - { - "name": "oe_test_zcat" - }, - { - "name": "oe_test_libsecret" - }, - { - "name": "oe_test_namei" - }, - { - "name": "oe_test_rev" - }, - { - "name": "oe_test_uid_old_uid" - }, - { - "name": "oe_test_python3-kmod" - }, - { - "name": "oe_test_lsscsi_1" - }, - { - "name": "oe_test_seq" - }, - { - "name": "oe_test_lsscsi_2" - }, - { - "name": "oe_test_xargs" - }, - { - "name": "oe_test_lsscsi_3" - }, - { - "name": "oe_test_uniq" - }, - { - "name": "oe_test_lsattr" - }, - { - "name": "oe_test_indent" - }, - { - "name": "oe_test_xzmore" - }, - { - "name": "oe_test_bzless" - }, - { - "name": "oe_test_true" - }, - { - "name": "oe_test_xzless" - }, - { - "name": "oe_test_zgrep_002" - }, - { - "name": "oe_test_fdupes" - }, - { - "name": "oe_test_enchant2" - }, - { - "name": "oe_test_hexdump" - }, - { - "name": "oe_test_logsave" - }, - { + { + "name": "oe_test_virt-what" + }, + { + "name": "oe_test_gcc_01" + }, + { + "name": "oe_test_locate_001" + }, + { + "name": "oe_test_bzcmp" + }, + { + "name": "oe_test_unlink" + }, + { + "name": "oe_test_xzcmp" + }, + { + "name": "oe_test_zgrep" + }, + { + "name": "oe_test_server_subversion" + }, + { + "name": "oe_test_auditctl_02" + }, + { + "name": "oe_test_bunzip2" + }, + { + "name": "oe_test_zipdetails" + }, + { + "name": "oe_test_zcat" + }, + { + "name": "oe_test_libsecret" + }, + { + "name": "oe_test_namei" + }, + { + "name": "oe_test_rev" + }, + { + "name": "oe_test_uid_old_uid" + }, + { + "name": "oe_test_python3-kmod" + }, + { + "name": "oe_test_lsscsi_1" + }, + { + "name": "oe_test_seq" + }, + { + "name": "oe_test_lsscsi_2" + }, + { + "name": "oe_test_xargs" + }, + { + "name": "oe_test_lsscsi_3" + }, + { + "name": "oe_test_uniq" + }, + { + "name": "oe_test_lsattr" + }, + { + "name": "oe_test_indent" + }, + { + "name": "oe_test_xzmore" + }, + { + "name": "oe_test_bzless" + }, + { + "name": "oe_test_true" + }, + { + "name": "oe_test_xzless" + }, + { + "name": "oe_test_zgrep_002" + }, + { + "name": "oe_test_fdupes" + }, + { + "name": "oe_test_enchant2" + }, + { + "name": "oe_test_hexdump" + }, + { + "name": "oe_test_logsave" + }, + { "name": "oe_test_brotli_003" }, - { - "name": "oe_test_libidn" - }, - { + { + "name": "oe_test_libidn" + }, + { "name": "oe_test_ld" - }, - { - "name": "oe_test_dirname" - }, - { - "name": "oe_test_tty" - }, - { - "name": "oe_test_get_module" - }, - { - "name": "oe_test_gzexe" - }, - { - "name": "oe_test_strings" - }, - { - "name": "oe_test_zramctl" - }, - { - "name": "oe_test_znew" - }, - { - "name": "oe_test_zegrep" - }, - { - "name": "oe_test_arp" - }, - { - "name": "oe_test_strace" - }, - { - "name": "oe_test_tac" - }, - { - "name": "oe_test_lshw" - }, - { - "name": "oe_test_csplit_01" - } - , - { - "name": "oe_test_zipnote" - }, - { - "name": "oe_test_join" - }, - { - "name": "oe_test_genisoimage" - } - , - { - "name": "oe_test_zfgrep" - }, - { - "name": "oe_test_bzgrep" - }, - { - "name": "oe_test_ipcs" - }, - { - "name": "oe_test_nl" - }, - { - "name": "oe_test_nice" - }, - { - "name": "oe_test_libuv" - }, - { - "name": "oe_test_systemd_analyze" - }, - { - "name": "oe_test_readlink" - }, - { - "name": "oe_test_ul_001" - }, - { - "name": "oe_test_lscpu" - }, - { - "name": "oe_test_lsmem_1" - }, - { - "name": "oe_test_yumdownloader" - }, - { - "name": "oe_test_lsmem_2" - } - , - { + }, + { + "name": "oe_test_dirname" + }, + { + "name": "oe_test_tty" + }, + { + "name": "oe_test_get_module" + }, + { + "name": "oe_test_gzexe" + }, + { + "name": "oe_test_strings" + }, + { + "name": "oe_test_zramctl" + }, + { + "name": "oe_test_znew" + }, + { + "name": "oe_test_zegrep" + }, + { + "name": "oe_test_arp" + }, + { + "name": "oe_test_strace" + }, + { + "name": "oe_test_tac" + }, + { + "name": "oe_test_lshw" + }, + { + "name": "oe_test_csplit_01" + }, + { + "name": "oe_test_zipnote" + }, + { + "name": "oe_test_join" + }, + { + "name": "oe_test_genisoimage" + }, + { + "name": "oe_test_zfgrep" + }, + { + "name": "oe_test_bzgrep" + }, + { + "name": "oe_test_ipcs" + }, + { + "name": "oe_test_nl" + }, + { + "name": "oe_test_nice" + }, + { + "name": "oe_test_libuv" + }, + { + "name": "oe_test_systemd_analyze" + }, + { + "name": "oe_test_readlink" + }, + { + "name": "oe_test_ul_001" + }, + { + "name": "oe_test_lscpu" + }, + { + "name": "oe_test_lsmem_1" + }, + { + "name": "oe_test_yumdownloader" + }, + { + "name": "oe_test_lsmem_2" + }, + { "name": "oe_test_fallocate" - } - , - { + }, + { "name": "oe_test_xzgrep" - } - , + }, { "name": "oe_test_sfdisk" }, @@ -953,59 +950,59 @@ { "name": "oe_test_lspci" }, - { - "name": "oe_test_bzcat" - }, - { - "name": "oe_test_zipinfo" - }, - { - "name": "oe_test_gunzip" - }, - { - "name": "oe_test_split_01" - }, - { - "name": "oe_test_getent" - }, - { - "name": "oe_test_fincore" - }, - { - "name": "oe_test_udisksctl" - }, - { - "name": "oe_test_c++_stl" - }, - { - "name": "oe_test_fallocate_01" - }, - { - "name": "oe_test_lslocks" - }, - { - "name": "oe_test_brotli_002" - }, - { - "name": "oe_test_lslocks_2" - }, - { - "name": "oe_test_lslogins_1" - }, - { - "name": "oe_test_more" - }, - { - "name": "oe_test_lslogins_2" - }, - { - "name": "oe_test_column" - }, - { - "name": "oe_test_lslogins_3" - }, - { - "name": "oe_test_xrandr" - } + { + "name": "oe_test_bzcat" + }, + { + "name": "oe_test_zipinfo" + }, + { + "name": "oe_test_gunzip" + }, + { + "name": "oe_test_split_01" + }, + { + "name": "oe_test_getent" + }, + { + "name": "oe_test_fincore" + }, + { + "name": "oe_test_udisksctl" + }, + { + "name": "oe_test_c++_stl" + }, + { + "name": "oe_test_fallocate_01" + }, + { + "name": "oe_test_lslocks" + }, + { + "name": "oe_test_brotli_002" + }, + { + "name": "oe_test_lslocks_2" + }, + { + "name": "oe_test_lslogins_1" + }, + { + "name": "oe_test_more" + }, + { + "name": "oe_test_lslogins_2" + }, + { + "name": "oe_test_column" + }, + { + "name": "oe_test_lslogins_3" + }, + { + "name": "oe_test_xrandr" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/os-prober.json b/suite2cases/os-prober.json new file mode 100644 index 0000000000000000000000000000000000000000..4ceed7906ed011762267f56ba85c6dadab1eb4cb --- /dev/null +++ b/suite2cases/os-prober.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/os-prober", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_os-prober_install_and_remove_os-prober" + }, + { + "name": "oe_test_os-prober_install_and_remove_os-prober-debuginfo" + }, + { + "name": "oe_test_os-prober_install_and_remove_os-prober-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/os-storage.json b/suite2cases/os-storage.json index 2ef394bb6ee0ec1fafcf4d59ac6ad9cc25f5f524..570999737ce29f825a85f29570b0a942da87ec17 100644 --- a/suite2cases/os-storage.json +++ b/suite2cases/os-storage.json @@ -9,6 +9,8 @@ 2 ], "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_storage_fileCMD_file" @@ -974,12 +976,11 @@ 2 ] }, - { + { "name": "oe_test_storage_btrfs_001" }, - { - "name": "oe_test_storage_btrfs_002" - } - + { + "name": "oe_test_storage_btrfs_002" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/osc.json b/suite2cases/osc.json index ace934aec2f39d077ef2cf662d38837fea96a07b..50e4370fba857656f2133ad278fcf158d68b8d0b 100644 --- a/suite2cases/osc.json +++ b/suite2cases/osc.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/osc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_osc_01" diff --git a/suite2cases/ostree.json b/suite2cases/ostree.json index 69d647d81d029baabed0fda1e870942ca5ff5d37..4d52d0dc025bd55992e96d78ca26fc5dce4f02da 100644 --- a/suite2cases/ostree.json +++ b/suite2cases/ostree.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/ostree", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ostree-finalize-staged" + }, + { + "name": "oe_test_ostree_install_and_remove_ostree" + }, + { + "name": "oe_test_ostree_install_and_remove_ostree-devel" + }, + { + "name": "oe_test_ostree_install_and_remove_ostree-debuginfo" + }, + { + "name": "oe_test_ostree_install_and_remove_ostree-debugsource" + }, + { + "name": "oe_test_ostree_install_and_remove_ostree-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/p11-kit.json b/suite2cases/p11-kit.json new file mode 100644 index 0000000000000000000000000000000000000000..2fb80e3cff1848243cfc29464c975c33302e1116 --- /dev/null +++ b/suite2cases/p11-kit.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/p11-kit", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_p11-kit_install_and_remove_p11-kit" + }, + { + "name": "oe_test_p11-kit_install_and_remove_p11-kit-server" + }, + { + "name": "oe_test_p11-kit_install_and_remove_p11-kit-devel" + }, + { + "name": "oe_test_p11-kit_install_and_remove_p11-kit-help" + }, + { + "name": "oe_test_p11-kit_install_and_remove_p11-kit-trust" + }, + { + "name": "oe_test_p11-kit_install_and_remove_p11-kit-debugsource" + }, + { + "name": "oe_test_p11-kit_install_and_remove_p11-kit-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/p7zip.json b/suite2cases/p7zip.json index 9e42bf1186f3ce7c3d2b628d89be816b1559774d..282a58fb6537139595f682cbe1e9e34e2cd20a45 100644 --- a/suite2cases/p7zip.json +++ b/suite2cases/p7zip.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/p7zip", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_p7zip_7za_001" diff --git a/suite2cases/pacemaker.json b/suite2cases/pacemaker.json index f00bc952d35b14bfcaa3489921d2320e59e6753a..0508a6023aa5a28172dee417cc68db3a68995516 100644 --- a/suite2cases/pacemaker.json +++ b/suite2cases/pacemaker.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/pacemaker", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_crm_mon" @@ -13,4 +15,4 @@ "machine num": 2 } ] -} +} \ No newline at end of file diff --git a/suite2cases/pam.json b/suite2cases/pam.json index 3a5d74db7b335d3290b4718efda559528d708f3a..f005452de9c6c60e4b66d3f33c23f43c84e7975d 100644 --- a/suite2cases/pam.json +++ b/suite2cases/pam.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/pam", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_pam_namespace" + }, + { + "name": "oe_test_pam_install_and_remove_pam" + }, + { + "name": "oe_test_pam_install_and_remove_pam-devel" + }, + { + "name": "oe_test_pam_install_and_remove_pam-help" + }, + { + "name": "oe_test_pam_install_and_remove_pam-debugsource" + }, + { + "name": "oe_test_pam_install_and_remove_pam-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pango.json b/suite2cases/pango.json new file mode 100644 index 0000000000000000000000000000000000000000..17060f513e965b33cb23313fa414fb175f84a0cd --- /dev/null +++ b/suite2cases/pango.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pango", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pango_install_and_remove_pango" + }, + { + "name": "oe_test_pango_install_and_remove_pango-devel" + }, + { + "name": "oe_test_pango_install_and_remove_pango-debuginfo" + }, + { + "name": "oe_test_pango_install_and_remove_pango-help" + }, + { + "name": "oe_test_pango_install_and_remove_pango-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/papi.json b/suite2cases/papi.json index 19a4eda4d9dae2c3d6dc576c6a1a6fdf9bcafa4f..574545c3adf623e84ad1bc852ed02ea153074a1a 100644 --- a/suite2cases/papi.json +++ b/suite2cases/papi.json @@ -1,23 +1,25 @@ { - "path": "$OET_PATH/testcases/cli-test/papi", - "cases": [ - { - "name": "oe_test_papi_avail_01" - }, - { - "name": "oe_test_papi_avail_02" - }, - { - "name": "oe_test_papi_command_line" - }, - { - "name": "oe_test_papi_native_avail_01" - }, - { - "name": "oe_test_papi_native_avail_02" - }, - { - "name": "oe_test_papi_xml_event_info" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/papi", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_papi_avail_01" + }, + { + "name": "oe_test_papi_avail_02" + }, + { + "name": "oe_test_papi_command_line" + }, + { + "name": "oe_test_papi_native_avail_01" + }, + { + "name": "oe_test_papi_native_avail_02" + }, + { + "name": "oe_test_papi_xml_event_info" + } + ] +} \ No newline at end of file diff --git a/suite2cases/paps.json b/suite2cases/paps.json index aad96575505b3d98955c83a623340465b5bbadd0..5c11ffe8161dc298d4abd825c2ef175dcabdc422 100644 --- a/suite2cases/paps.json +++ b/suite2cases/paps.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/paps", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_paps" - } - ] -} + } + ] +} \ No newline at end of file diff --git a/suite2cases/parted.json b/suite2cases/parted.json new file mode 100644 index 0000000000000000000000000000000000000000..9cce41d26ba33d59a8c7536d1cd832842b4ee561 --- /dev/null +++ b/suite2cases/parted.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/parted", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_parted_install_and_remove_parted" + }, + { + "name": "oe_test_parted_install_and_remove_parted-devel" + }, + { + "name": "oe_test_parted_install_and_remove_parted-debuginfo" + }, + { + "name": "oe_test_parted_install_and_remove_parted-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/passwd.json b/suite2cases/passwd.json new file mode 100644 index 0000000000000000000000000000000000000000..587c06e34c59c0ce0fd0f76346d8ae96287b2a83 --- /dev/null +++ b/suite2cases/passwd.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/passwd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_passwd_install_and_remove_passwd" + }, + { + "name": "oe_test_passwd_install_and_remove_passwd-help" + }, + { + "name": "oe_test_passwd_install_and_remove_passwd-debuginfo" + }, + { + "name": "oe_test_passwd_install_and_remove_passwd-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/patch.json b/suite2cases/patch.json new file mode 100644 index 0000000000000000000000000000000000000000..e81c06113d0388e8f6862b5e17e286436a836798 --- /dev/null +++ b/suite2cases/patch.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/patch", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_patch_install_and_remove_patch" + }, + { + "name": "oe_test_patch_install_and_remove_patch-help" + }, + { + "name": "oe_test_patch_install_and_remove_patch-debuginfo" + }, + { + "name": "oe_test_patch_install_and_remove_patch-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/patchutils.json b/suite2cases/patchutils.json index 884708b5b2f8d83d7945e98cda0a8a24caec91af..133f99e1020426c328b7c04cf032a2b11ff59f02 100644 --- a/suite2cases/patchutils.json +++ b/suite2cases/patchutils.json @@ -1,60 +1,74 @@ { - "path": "$OET_PATH/testcases/cli-test/patchutils", - "cases": [ - { - "name": "oe_test_patchutils_combinediff_01" - }, - { - "name": "oe_test_patchutils_combinediff_02" - }, - { - "name": "oe_test_patchutils_filterdiff_01" - }, - { - "name": "oe_test_patchutils_filterdiff_02" - }, - { - "name": "oe_test_patchutils_filterdiff_03" - }, - { - "name": "oe_test_patchutils_flipdiff_01" - }, - { - "name": "oe_test_patchutils_flipdiff_02" - }, - { - "name": "oe_test_patchutils_grepdiff_01" - }, - { - "name": "oe_test_patchutils_grepdiff_02" - }, - { - "name": "oe_test_patchutils_grepdiff_03" - }, - { - "name": "oe_test_patchutils_grepdiff_04" - }, - { - "name": "oe_test_patchutils_interdiff_01" - }, - { - "name": "oe_test_patchutils_interdiff_02" - }, - { - "name": "oe_test_patchutils_lsdiff_01" - }, - { - "name": "oe_test_patchutils_lsdiff_02" - }, - { - "name": "oe_test_patchutils_lsdiff_03" - }, - { - "name": "oe_test_patchutils_lsdiff_04" - }, - { - "name": "oe_test_patchutils_splitdiff" - } - ] -} - + "path": "$OET_PATH/testcases/cli-test/patchutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_patchutils_combinediff_01" + }, + { + "name": "oe_test_patchutils_combinediff_02" + }, + { + "name": "oe_test_patchutils_filterdiff_01" + }, + { + "name": "oe_test_patchutils_filterdiff_02" + }, + { + "name": "oe_test_patchutils_filterdiff_03" + }, + { + "name": "oe_test_patchutils_flipdiff_01" + }, + { + "name": "oe_test_patchutils_flipdiff_02" + }, + { + "name": "oe_test_patchutils_grepdiff_01" + }, + { + "name": "oe_test_patchutils_grepdiff_02" + }, + { + "name": "oe_test_patchutils_grepdiff_03" + }, + { + "name": "oe_test_patchutils_grepdiff_04" + }, + { + "name": "oe_test_patchutils_interdiff_01" + }, + { + "name": "oe_test_patchutils_interdiff_02" + }, + { + "name": "oe_test_patchutils_lsdiff_01" + }, + { + "name": "oe_test_patchutils_lsdiff_02" + }, + { + "name": "oe_test_patchutils_lsdiff_03" + }, + { + "name": "oe_test_patchutils_lsdiff_04" + }, + { + "name": "oe_test_patchutils_splitdiff" + }, + { + "name": "oe_test_patchutils_install_and_remove_patchutils" + }, + { + "name": "oe_test_patchutils_install_and_remove_patchutils-help" + }, + { + "name": "oe_test_patchutils_install_and_remove_patchutils-debugsource" + }, + { + "name": "oe_test_patchutils_install_and_remove_patchutils-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pax.json b/suite2cases/pax.json index fe389fcfdd925a78acc0cfa49422672146a010c6..86df5f978666f46b870295dc7b922f1bc5875f35 100644 --- a/suite2cases/pax.json +++ b/suite2cases/pax.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/pax", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pax_runtest_01" diff --git a/suite2cases/pbzip2.json b/suite2cases/pbzip2.json index 2e3a40be593d0bde4907b1cc0fb26c983fd1ad30..90bfd961c68b2804ff2e8cf92750becd2bd65c2b 100755 --- a/suite2cases/pbzip2.json +++ b/suite2cases/pbzip2.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/pbzip2", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pbzip2_01" diff --git a/suite2cases/pciutils.json b/suite2cases/pciutils.json new file mode 100644 index 0000000000000000000000000000000000000000..f9cf0a25c94d0dec6f95585694014bd18377ef11 --- /dev/null +++ b/suite2cases/pciutils.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pciutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pciutils_install_and_remove_pciutils" + }, + { + "name": "oe_test_pciutils_install_and_remove_pciutils-devel" + }, + { + "name": "oe_test_pciutils_install_and_remove_pciutils-help" + }, + { + "name": "oe_test_pciutils_install_and_remove_pciutils-debuginfo" + }, + { + "name": "oe_test_pciutils_install_and_remove_pciutils-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pcp.json b/suite2cases/pcp.json index 3f70f9879e41e3155181128e502b78bed249c3f8..7c50c81754ca1e7f17c88d5ccba6a76d37917612 100644 --- a/suite2cases/pcp.json +++ b/suite2cases/pcp.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/pcp", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dbpmda" diff --git a/suite2cases/pcre.json b/suite2cases/pcre.json new file mode 100644 index 0000000000000000000000000000000000000000..59f4aa9d61a4fc3f031782ff8bdcfbfc0de5db3d --- /dev/null +++ b/suite2cases/pcre.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pcre", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pcre_install_and_remove_pcre" + }, + { + "name": "oe_test_pcre_install_and_remove_pcre-help" + }, + { + "name": "oe_test_pcre_install_and_remove_pcre-devel" + }, + { + "name": "oe_test_pcre_install_and_remove_pcre-debuginfo" + }, + { + "name": "oe_test_pcre_install_and_remove_pcre-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pcre2.json b/suite2cases/pcre2.json index eefd4e0962e037f0e90e9827f5534525f78c40a4..6414b01bd48d2419c40fa8f279c1182814d730ca 100644 --- a/suite2cases/pcre2.json +++ b/suite2cases/pcre2.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/pcre2", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pcre2grep" + }, + { + "name": "oe_test_pcre2_install_and_remove_pcre2" + }, + { + "name": "oe_test_pcre2_install_and_remove_pcre2-help" + }, + { + "name": "oe_test_pcre2_install_and_remove_pcre2-debugsource" + }, + { + "name": "oe_test_pcre2_install_and_remove_pcre2-debuginfo" + }, + { + "name": "oe_test_pcre2_install_and_remove_pcre2-devel" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pcs.json b/suite2cases/pcs.json index f1ee2fb4d7bd63fbce0de977b4b221013afa0e24..7c720714e6cef2acf033fef8cdfb121ba05eaeb5 100644 --- a/suite2cases/pcs.json +++ b/suite2cases/pcs.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/pcs", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_pcsd" @@ -13,4 +15,4 @@ "machine num": 2 } ] -} +} \ No newline at end of file diff --git a/suite2cases/pcsc-lite.json b/suite2cases/pcsc-lite.json index b5f3234942dbedbf6d4754fca4cca411d343a145..a8879e0682187668ae9653b8f2d2cd292084bfd9 100644 --- a/suite2cases/pcsc-lite.json +++ b/suite2cases/pcsc-lite.json @@ -1,11 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/pcsc-lite", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_pcscd" }, { "name": "oe_test_socket_pcscd" + }, + { + "name": "oe_test_pcsc-lite_install_and_remove_pcsc-lite" + }, + { + "name": "oe_test_pcsc-lite_install_and_remove_pcsc-lite-help" + }, + { + "name": "oe_test_pcsc-lite_install_and_remove_pcsc-lite-devel" + }, + { + "name": "oe_test_pcsc-lite_install_and_remove_pcsc-lite-debuginfo" + }, + { + "name": "oe_test_pcsc-lite_install_and_remove_pcsc-lite-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/perl-Algorithm-Diff.json b/suite2cases/perl-Algorithm-Diff.json new file mode 100644 index 0000000000000000000000000000000000000000..a23effddd9855e43b6eabddf573f32ca824307dd --- /dev/null +++ b/suite2cases/perl-Algorithm-Diff.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Algorithm-Diff", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff" + }, + { + "name": "oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff-help" + }, + { + "name": "oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Archive-Tar.json b/suite2cases/perl-Archive-Tar.json new file mode 100644 index 0000000000000000000000000000000000000000..a7cd5316fc6f99b27b7ac0ff2a5832baebed5ff8 --- /dev/null +++ b/suite2cases/perl-Archive-Tar.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Archive-Tar", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Archive-Tar_install_and_remove_perl-Archive-Tar" + }, + { + "name": "oe_test_perl-Archive-Tar_install_and_remove_perl-Archive-Tar-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-B-Debug.json b/suite2cases/perl-B-Debug.json new file mode 100644 index 0000000000000000000000000000000000000000..32bf363df820b8c54186688f9c10634ab837762d --- /dev/null +++ b/suite2cases/perl-B-Debug.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-B-Debug", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-B-Debug_install_and_remove_perl-B-Debug" + }, + { + "name": "oe_test_perl-B-Debug_install_and_remove_perl-B-Debug-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-CPAN-Meta-Requirements.json b/suite2cases/perl-CPAN-Meta-Requirements.json new file mode 100644 index 0000000000000000000000000000000000000000..27909eb6216f972d878518de6b0275b34ce324a0 --- /dev/null +++ b/suite2cases/perl-CPAN-Meta-Requirements.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-CPAN-Meta-Requirements", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-CPAN-Meta-Requirements_install_and_remove_perl-CPAN-Meta-Requirements" + }, + { + "name": "oe_test_perl-CPAN-Meta-Requirements_install_and_remove_perl-CPAN-Meta-Requirements-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-CPAN-Meta-YAML.json b/suite2cases/perl-CPAN-Meta-YAML.json new file mode 100644 index 0000000000000000000000000000000000000000..3748421f2dae89bc32405b4d203c83494d0b25a5 --- /dev/null +++ b/suite2cases/perl-CPAN-Meta-YAML.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-CPAN-Meta-YAML", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-CPAN-Meta-YAML_install_and_remove_perl-CPAN-Meta-YAML" + }, + { + "name": "oe_test_perl-CPAN-Meta-YAML_install_and_remove_perl-CPAN-Meta-YAML-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-CPAN-Meta.json b/suite2cases/perl-CPAN-Meta.json new file mode 100644 index 0000000000000000000000000000000000000000..a70cd57fbee60ecae14502c71fd9085a37360785 --- /dev/null +++ b/suite2cases/perl-CPAN-Meta.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-CPAN-Meta", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-CPAN-Meta_install_and_remove_perl-CPAN-Meta" + }, + { + "name": "oe_test_perl-CPAN-Meta_install_and_remove_perl-CPAN-Meta-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Carp.json b/suite2cases/perl-Carp.json new file mode 100644 index 0000000000000000000000000000000000000000..c235f4df78397f29abe6018de33077d363ee092c --- /dev/null +++ b/suite2cases/perl-Carp.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Carp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Carp_install_and_remove_perl-Carp" + }, + { + "name": "oe_test_perl-Carp_install_and_remove_perl-Carp-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Compress-Raw-Bzip2.json b/suite2cases/perl-Compress-Raw-Bzip2.json new file mode 100644 index 0000000000000000000000000000000000000000..73767a1651d2d6e3f7820fb10287e7883c6a06f3 --- /dev/null +++ b/suite2cases/perl-Compress-Raw-Bzip2.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Compress-Raw-Bzip2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2" + }, + { + "name": "oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-debuginfo" + }, + { + "name": "oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-debugsource" + }, + { + "name": "oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Compress-Raw-Zlib.json b/suite2cases/perl-Compress-Raw-Zlib.json new file mode 100644 index 0000000000000000000000000000000000000000..b8e70be82a0296d07f0fc729f4476bf9489538e7 --- /dev/null +++ b/suite2cases/perl-Compress-Raw-Zlib.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Compress-Raw-Zlib", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib" + }, + { + "name": "oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-help" + }, + { + "name": "oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-debugsource" + }, + { + "name": "oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Config-Perl-V.json b/suite2cases/perl-Config-Perl-V.json new file mode 100644 index 0000000000000000000000000000000000000000..db2a994e19cfcbd61eaab9d20c94b92c27e4423b --- /dev/null +++ b/suite2cases/perl-Config-Perl-V.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Config-Perl-V", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Config-Perl-V_install_and_remove_perl-Config-Perl-V" + }, + { + "name": "oe_test_perl-Config-Perl-V_install_and_remove_perl-Config-Perl-V-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-DBI.json b/suite2cases/perl-DBI.json index d36ad6dc2d71b2e0c8cff345ab626bd2acc9e573..defa66d084b7a70f1cfade3e8d36d9c5e3e8b93c 100644 --- a/suite2cases/perl-DBI.json +++ b/suite2cases/perl-DBI.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/perl-DBI", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_perl-DBI" } ] -} +} \ No newline at end of file diff --git a/suite2cases/perl-Data-Dumper.json b/suite2cases/perl-Data-Dumper.json new file mode 100644 index 0000000000000000000000000000000000000000..34f34f9b08f0db80c5c019bfdfc2a1bbf7c3ddb1 --- /dev/null +++ b/suite2cases/perl-Data-Dumper.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Data-Dumper", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper" + }, + { + "name": "oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-debuginfo" + }, + { + "name": "oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-debugsource" + }, + { + "name": "oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Date-Manip.json b/suite2cases/perl-Date-Manip.json index 080058e585b66d09eea22bbcb6d624185ca3e6e1..6ec773a346432ebe3059c7093444795665c67367 100644 --- a/suite2cases/perl-Date-Manip.json +++ b/suite2cases/perl-Date-Manip.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/perl-Date-Manip", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_perl-Date-Manip_dm_date" @@ -8,4 +10,4 @@ "name": "oe_test_perl-Date-Manip_dm_zdump" } ] -} +} \ No newline at end of file diff --git a/suite2cases/perl-Devel-PPPort.json b/suite2cases/perl-Devel-PPPort.json new file mode 100644 index 0000000000000000000000000000000000000000..a5baed123b4068273a6de6fd1de934bf9c2d82d9 --- /dev/null +++ b/suite2cases/perl-Devel-PPPort.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Devel-PPPort", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort" + }, + { + "name": "oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-help" + }, + { + "name": "oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-debuginfo" + }, + { + "name": "oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Digest-MD5.json b/suite2cases/perl-Digest-MD5.json new file mode 100644 index 0000000000000000000000000000000000000000..b809f92c96ecd6af7fc4224e9cb6e813f77a886f --- /dev/null +++ b/suite2cases/perl-Digest-MD5.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Digest-MD5", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5" + }, + { + "name": "oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-debuginfo" + }, + { + "name": "oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-debugsource" + }, + { + "name": "oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Digest-SHA.json b/suite2cases/perl-Digest-SHA.json new file mode 100644 index 0000000000000000000000000000000000000000..7c29075f1524a457a9f0e62e659b4414acb52612 --- /dev/null +++ b/suite2cases/perl-Digest-SHA.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Digest-SHA", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA" + }, + { + "name": "oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-debuginfo" + }, + { + "name": "oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-help" + }, + { + "name": "oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Digest.json b/suite2cases/perl-Digest.json new file mode 100644 index 0000000000000000000000000000000000000000..94c5a8e0bb15c5b821e27a556ceaf9ba87845dd0 --- /dev/null +++ b/suite2cases/perl-Digest.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Digest", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Digest_install_and_remove_perl-Digest" + }, + { + "name": "oe_test_perl-Digest_install_and_remove_perl-Digest-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Encode.json b/suite2cases/perl-Encode.json new file mode 100644 index 0000000000000000000000000000000000000000..9a31294ffab113e539bdcd4b718693b09d601126 --- /dev/null +++ b/suite2cases/perl-Encode.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Encode", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Encode_install_and_remove_perl-Encode" + }, + { + "name": "oe_test_perl-Encode_install_and_remove_perl-Encode-devel" + }, + { + "name": "oe_test_perl-Encode_install_and_remove_perl-Encode-debuginfo" + }, + { + "name": "oe_test_perl-Encode_install_and_remove_perl-Encode-debugsource" + }, + { + "name": "oe_test_perl-Encode_install_and_remove_perl-Encode-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Env.json b/suite2cases/perl-Env.json new file mode 100644 index 0000000000000000000000000000000000000000..af9359bcf6cc97529f27826971db1514d7e59953 --- /dev/null +++ b/suite2cases/perl-Env.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Env", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Env_install_and_remove_perl-Env" + }, + { + "name": "oe_test_perl-Env_install_and_remove_perl-Env-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Error.json b/suite2cases/perl-Error.json new file mode 100644 index 0000000000000000000000000000000000000000..a4477ed1a2c41c62574c3d96008dcb4ef2011ef7 --- /dev/null +++ b/suite2cases/perl-Error.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Error", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Error_install_and_remove_perl-Error" + }, + { + "name": "oe_test_perl-Error_install_and_remove_perl-Error-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Exporter.json b/suite2cases/perl-Exporter.json new file mode 100644 index 0000000000000000000000000000000000000000..da21dfdbb33f07045638231e2708bb7df789c915 --- /dev/null +++ b/suite2cases/perl-Exporter.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Exporter", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Exporter_install_and_remove_perl-Exporter" + }, + { + "name": "oe_test_perl-Exporter_install_and_remove_perl-Exporter-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-ExtUtils-Install.json b/suite2cases/perl-ExtUtils-Install.json new file mode 100644 index 0000000000000000000000000000000000000000..ada2319e1f8abee1c1362dd965ff15601a7ef750 --- /dev/null +++ b/suite2cases/perl-ExtUtils-Install.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-ExtUtils-Install", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-ExtUtils-Install_install_and_remove_perl-ExtUtils-Install" + }, + { + "name": "oe_test_perl-ExtUtils-Install_install_and_remove_perl-ExtUtils-Install-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-ExtUtils-MakeMaker.json b/suite2cases/perl-ExtUtils-MakeMaker.json new file mode 100644 index 0000000000000000000000000000000000000000..219e758444878e13dae392eb1c48d6cf566b61c3 --- /dev/null +++ b/suite2cases/perl-ExtUtils-MakeMaker.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-ExtUtils-MakeMaker", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-MakeMaker" + }, + { + "name": "oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-Command" + }, + { + "name": "oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-MakeMaker-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-ExtUtils-Manifest.json b/suite2cases/perl-ExtUtils-Manifest.json new file mode 100644 index 0000000000000000000000000000000000000000..8a849cefe32ac14658c1af2affb0dce3c0f0bcba --- /dev/null +++ b/suite2cases/perl-ExtUtils-Manifest.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-ExtUtils-Manifest", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-ExtUtils-Manifest_install_and_remove_perl-ExtUtils-Manifest" + }, + { + "name": "oe_test_perl-ExtUtils-Manifest_install_and_remove_perl-ExtUtils-Manifest-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-ExtUtils-ParseXS.json b/suite2cases/perl-ExtUtils-ParseXS.json new file mode 100644 index 0000000000000000000000000000000000000000..18923ab806fe5edb95224aa26c7be1cbf4eb12ff --- /dev/null +++ b/suite2cases/perl-ExtUtils-ParseXS.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-ExtUtils-ParseXS", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-ExtUtils-ParseXS_install_and_remove_perl-ExtUtils-ParseXS" + }, + { + "name": "oe_test_perl-ExtUtils-ParseXS_install_and_remove_perl-ExtUtils-ParseXS-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-File-Copy-Recursive.json b/suite2cases/perl-File-Copy-Recursive.json new file mode 100644 index 0000000000000000000000000000000000000000..50b5e7235873596dc5881ca6e298675175ffdae1 --- /dev/null +++ b/suite2cases/perl-File-Copy-Recursive.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-File-Copy-Recursive", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-File-Copy-Recursive_install_and_remove_perl-File-Copy-Recursive" + }, + { + "name": "oe_test_perl-File-Copy-Recursive_install_and_remove_perl-File-Copy-Recursive-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-File-Fetch.json b/suite2cases/perl-File-Fetch.json new file mode 100644 index 0000000000000000000000000000000000000000..296788f63b4e40fbb0e730d5081430c9a6bd614f --- /dev/null +++ b/suite2cases/perl-File-Fetch.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-File-Fetch", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-File-Fetch_install_and_remove_perl-File-Fetch" + }, + { + "name": "oe_test_perl-File-Fetch_install_and_remove_perl-File-Fetch-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-File-MimeInfo.json b/suite2cases/perl-File-MimeInfo.json index 619fc2c990a2bf69466e55b8079a476f9b0b70c9..aef9e6bb23c7cb24934858c0f192cb166002a874 100755 --- a/suite2cases/perl-File-MimeInfo.json +++ b/suite2cases/perl-File-MimeInfo.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/perl-File-MimeInfo", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_perl-File-MimeInfo_mimetype_01" diff --git a/suite2cases/perl-File-Path.json b/suite2cases/perl-File-Path.json new file mode 100644 index 0000000000000000000000000000000000000000..ab5b6cf8504807042967783e69e45dd04912761f --- /dev/null +++ b/suite2cases/perl-File-Path.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-File-Path", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-File-Path_install_and_remove_perl-File-Path" + }, + { + "name": "oe_test_perl-File-Path_install_and_remove_perl-File-Path-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-File-Temp.json b/suite2cases/perl-File-Temp.json new file mode 100644 index 0000000000000000000000000000000000000000..c9908b7235ed801e13ab831a2a75ff4f2f7479b0 --- /dev/null +++ b/suite2cases/perl-File-Temp.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-File-Temp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-File-Temp_install_and_remove_perl-File-Temp" + }, + { + "name": "oe_test_perl-File-Temp_install_and_remove_perl-File-Temp-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Filter-Simple.json b/suite2cases/perl-Filter-Simple.json new file mode 100644 index 0000000000000000000000000000000000000000..de60d29292df8e57cc1c259b0dcc0173e1779f65 --- /dev/null +++ b/suite2cases/perl-Filter-Simple.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Filter-Simple", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Filter-Simple_install_and_remove_perl-Filter-Simple" + }, + { + "name": "oe_test_perl-Filter-Simple_install_and_remove_perl-Filter-Simple-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Filter.json b/suite2cases/perl-Filter.json new file mode 100644 index 0000000000000000000000000000000000000000..fb74c8c45c53d359dc9ef1d1dbb014283bc17ebe --- /dev/null +++ b/suite2cases/perl-Filter.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Filter", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Filter_install_and_remove_perl-Filter" + }, + { + "name": "oe_test_perl-Filter_install_and_remove_perl-Filter-help" + }, + { + "name": "oe_test_perl-Filter_install_and_remove_perl-Filter-debuginfo" + }, + { + "name": "oe_test_perl-Filter_install_and_remove_perl-Filter-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Getopt-Long.json b/suite2cases/perl-Getopt-Long.json new file mode 100644 index 0000000000000000000000000000000000000000..b04f74917d5f29675c84356c77c405e8acc308d2 --- /dev/null +++ b/suite2cases/perl-Getopt-Long.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Getopt-Long", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Getopt-Long_install_and_remove_perl-Getopt-Long" + }, + { + "name": "oe_test_perl-Getopt-Long_install_and_remove_perl-Getopt-Long-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-HTTP-Daemon.json b/suite2cases/perl-HTTP-Daemon.json new file mode 100644 index 0000000000000000000000000000000000000000..f21b735b0d26985f5578f0fdaacf800368d1ab27 --- /dev/null +++ b/suite2cases/perl-HTTP-Daemon.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-HTTP-Daemon", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon" + }, + { + "name": "oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-help" + }, + { + "name": "oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-tests" + }, + { + "name": "oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-HTTP-Tiny.json b/suite2cases/perl-HTTP-Tiny.json new file mode 100644 index 0000000000000000000000000000000000000000..b6efe532105cbd0233ae3ec89c1a521ce9e16b5e --- /dev/null +++ b/suite2cases/perl-HTTP-Tiny.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-HTTP-Tiny", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-HTTP-Tiny_install_and_remove_perl-HTTP-Tiny" + }, + { + "name": "oe_test_perl-HTTP-Tiny_install_and_remove_perl-HTTP-Tiny-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-IO-Compress.json b/suite2cases/perl-IO-Compress.json new file mode 100644 index 0000000000000000000000000000000000000000..a2f27f29b9269df7a2b0c440c98eed6239043f53 --- /dev/null +++ b/suite2cases/perl-IO-Compress.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-IO-Compress", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress" + }, + { + "name": "oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress-help" + }, + { + "name": "oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-IO-Socket-IP.json b/suite2cases/perl-IO-Socket-IP.json new file mode 100644 index 0000000000000000000000000000000000000000..46ac0e63c77e882945b74a68feb6dd093f21d302 --- /dev/null +++ b/suite2cases/perl-IO-Socket-IP.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-IO-Socket-IP", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-IO-Socket-IP_install_and_remove_perl-IO-Socket-IP" + }, + { + "name": "oe_test_perl-IO-Socket-IP_install_and_remove_perl-IO-Socket-IP-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-IPC-Cmd.json b/suite2cases/perl-IPC-Cmd.json new file mode 100644 index 0000000000000000000000000000000000000000..63c905a691f7b09f18ede2ded39655b00c894e9e --- /dev/null +++ b/suite2cases/perl-IPC-Cmd.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-IPC-Cmd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-IPC-Cmd_install_and_remove_perl-IPC-Cmd" + }, + { + "name": "oe_test_perl-IPC-Cmd_install_and_remove_perl-IPC-Cmd-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-IPC-SysV.json b/suite2cases/perl-IPC-SysV.json new file mode 100644 index 0000000000000000000000000000000000000000..309d65fdeee4f1a98afb7613ec277ad599688141 --- /dev/null +++ b/suite2cases/perl-IPC-SysV.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-IPC-SysV", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV" + }, + { + "name": "oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-help" + }, + { + "name": "oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-debugsource" + }, + { + "name": "oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-IPC-System-Simple.json b/suite2cases/perl-IPC-System-Simple.json new file mode 100644 index 0000000000000000000000000000000000000000..5f18030aac4997a4230b06bed4aee5b22f62418d --- /dev/null +++ b/suite2cases/perl-IPC-System-Simple.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-IPC-System-Simple", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-IPC-System-Simple_install_and_remove_perl-IPC-System-Simple" + }, + { + "name": "oe_test_perl-IPC-System-Simple_install_and_remove_perl-IPC-System-Simple-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-JSON-PP.json b/suite2cases/perl-JSON-PP.json new file mode 100644 index 0000000000000000000000000000000000000000..9bc4179fe623d4925348bb5a753b8b2b1d944a7c --- /dev/null +++ b/suite2cases/perl-JSON-PP.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-JSON-PP", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-JSON-PP_install_and_remove_perl-JSON-PP" + }, + { + "name": "oe_test_perl-JSON-PP_install_and_remove_perl-JSON-PP-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Locale-Codes.json b/suite2cases/perl-Locale-Codes.json new file mode 100644 index 0000000000000000000000000000000000000000..dd96c397b2327d14100c2e6367e1add62ea5f1d1 --- /dev/null +++ b/suite2cases/perl-Locale-Codes.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Locale-Codes", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Locale-Codes_install_and_remove_perl-Locale-Codes" + }, + { + "name": "oe_test_perl-Locale-Codes_install_and_remove_perl-Locale-Codes-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Locale-Maketext.json b/suite2cases/perl-Locale-Maketext.json new file mode 100644 index 0000000000000000000000000000000000000000..c5694be7fbc1fcabd555ee8077a1aa3886c00ece --- /dev/null +++ b/suite2cases/perl-Locale-Maketext.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Locale-Maketext", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Locale-Maketext_install_and_remove_perl-Locale-Maketext" + }, + { + "name": "oe_test_perl-Locale-Maketext_install_and_remove_perl-Locale-Maketext-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-MIME-Base64.json b/suite2cases/perl-MIME-Base64.json new file mode 100644 index 0000000000000000000000000000000000000000..d820fb5fbe000b5c3af809d5cb3291da0f415bcc --- /dev/null +++ b/suite2cases/perl-MIME-Base64.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-MIME-Base64", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64" + }, + { + "name": "oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-debuginfo" + }, + { + "name": "oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-debugsource" + }, + { + "name": "oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-MailTools.json b/suite2cases/perl-MailTools.json new file mode 100644 index 0000000000000000000000000000000000000000..0b7595db31d3379c5edd5c4495651dc0de852547 --- /dev/null +++ b/suite2cases/perl-MailTools.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-MailTools", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-MailTools_install_and_remove_perl-MailTools" + }, + { + "name": "oe_test_perl-MailTools_install_and_remove_perl-MailTools-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Math-BigInt-FastCalc.json b/suite2cases/perl-Math-BigInt-FastCalc.json new file mode 100644 index 0000000000000000000000000000000000000000..9aa3b4fdf837ac2a16203b36fe229afb4fbed4c7 --- /dev/null +++ b/suite2cases/perl-Math-BigInt-FastCalc.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Math-BigInt-FastCalc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc" + }, + { + "name": "oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-help" + }, + { + "name": "oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-tests" + }, + { + "name": "oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-debugsource" + }, + { + "name": "oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Math-BigInt.json b/suite2cases/perl-Math-BigInt.json new file mode 100644 index 0000000000000000000000000000000000000000..a3045c51c729dbbea963fe7d011497a9a7851b6b --- /dev/null +++ b/suite2cases/perl-Math-BigInt.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Math-BigInt", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt" + }, + { + "name": "oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt-help" + }, + { + "name": "oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt-tests" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Module-Build.json b/suite2cases/perl-Module-Build.json index 5ab571d7fc19c3b507fd2e555be3b63a8d875d83..649f207b95e13345d14e0caad7c9e080967b68e3 100644 --- a/suite2cases/perl-Module-Build.json +++ b/suite2cases/perl-Module-Build.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/perl-Module-Build", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_perl-Module-Build" } ] -} +} \ No newline at end of file diff --git a/suite2cases/perl-Module-CoreList.json b/suite2cases/perl-Module-CoreList.json new file mode 100644 index 0000000000000000000000000000000000000000..b95a90515abfca5fcfcf82907f3642979374f75a --- /dev/null +++ b/suite2cases/perl-Module-CoreList.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Module-CoreList", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Module-CoreList_install_and_remove_perl-Module-CoreList" + }, + { + "name": "oe_test_perl-Module-CoreList_install_and_remove_perl-Module-CoreList-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Module-Load-Conditional.json b/suite2cases/perl-Module-Load-Conditional.json new file mode 100644 index 0000000000000000000000000000000000000000..652879f76df8a738d8194c36406c9e8c3b560c69 --- /dev/null +++ b/suite2cases/perl-Module-Load-Conditional.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Module-Load-Conditional", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Module-Load-Conditional_install_and_remove_perl-Module-Load-Conditional" + }, + { + "name": "oe_test_perl-Module-Load-Conditional_install_and_remove_perl-Module-Load-Conditional-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Module-Load.json b/suite2cases/perl-Module-Load.json new file mode 100644 index 0000000000000000000000000000000000000000..d75a2752b9506e15b0dc2ca7b1ea354a5016f74f --- /dev/null +++ b/suite2cases/perl-Module-Load.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Module-Load", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Module-Load_install_and_remove_perl-Module-Load" + }, + { + "name": "oe_test_perl-Module-Load_install_and_remove_perl-Module-Load-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Module-Metadata.json b/suite2cases/perl-Module-Metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..2ee31307b694ef609b15ef0abf5f6500230f423a --- /dev/null +++ b/suite2cases/perl-Module-Metadata.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Module-Metadata", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Module-Metadata_install_and_remove_perl-Module-Metadata" + }, + { + "name": "oe_test_perl-Module-Metadata_install_and_remove_perl-Module-Metadata-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Module-ScanDeps.json b/suite2cases/perl-Module-ScanDeps.json index 36308530249e359b736060f87e23e0b5fa5da5da..dd79165125ecb933326c51b65ff15ba52c26e21c 100644 --- a/suite2cases/perl-Module-ScanDeps.json +++ b/suite2cases/perl-Module-ScanDeps.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/perl-Module-ScanDeps", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_scandeps_pl" } ] -} +} \ No newline at end of file diff --git a/suite2cases/perl-Net-Server.json b/suite2cases/perl-Net-Server.json index 854fb4a842267a2e57fd84ab0da8cadadb9cb5fc..60a1852dc9eb1517fad75395a09e5b1b504011ed 100644 --- a/suite2cases/perl-Net-Server.json +++ b/suite2cases/perl-Net-Server.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/perl-Net-Server", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_perl-Net-Server" diff --git a/suite2cases/perl-Params-Check.json b/suite2cases/perl-Params-Check.json new file mode 100644 index 0000000000000000000000000000000000000000..fdfbd2512c1cf25172de9dd32df73fb23fe09f1e --- /dev/null +++ b/suite2cases/perl-Params-Check.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Params-Check", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Params-Check_install_and_remove_perl-Params-Check" + }, + { + "name": "oe_test_perl-Params-Check_install_and_remove_perl-Params-Check-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Parse-Yapp.json b/suite2cases/perl-Parse-Yapp.json index 01c3bc85091024accb48b174da8bd73f4eba8277..1a2c9e3e08a9fc1bd235b86aac35c73320d56e65 100644 --- a/suite2cases/perl-Parse-Yapp.json +++ b/suite2cases/perl-Parse-Yapp.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/perl-Parse-Yapp", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_perl-Parse-Yapp" } ] -} +} \ No newline at end of file diff --git a/suite2cases/perl-PathTools.json b/suite2cases/perl-PathTools.json new file mode 100644 index 0000000000000000000000000000000000000000..1e6848125266b5e19340b261e7b351f17994cfa1 --- /dev/null +++ b/suite2cases/perl-PathTools.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-PathTools", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-PathTools_install_and_remove_perl-PathTools" + }, + { + "name": "oe_test_perl-PathTools_install_and_remove_perl-PathTools-debuginfo" + }, + { + "name": "oe_test_perl-PathTools_install_and_remove_perl-PathTools-debugsource" + }, + { + "name": "oe_test_perl-PathTools_install_and_remove_perl-PathTools-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Perl-OSType.json b/suite2cases/perl-Perl-OSType.json new file mode 100644 index 0000000000000000000000000000000000000000..27baceacc32769a15942202716dd3f87b10fa77b --- /dev/null +++ b/suite2cases/perl-Perl-OSType.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Perl-OSType", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Perl-OSType_install_and_remove_perl-Perl-OSType" + }, + { + "name": "oe_test_perl-Perl-OSType_install_and_remove_perl-Perl-OSType-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-PerlIO-via-QuotedPrint.json b/suite2cases/perl-PerlIO-via-QuotedPrint.json new file mode 100644 index 0000000000000000000000000000000000000000..616fc7e040029f419b034988db90a6514be5d531 --- /dev/null +++ b/suite2cases/perl-PerlIO-via-QuotedPrint.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-PerlIO-via-QuotedPrint", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-PerlIO-via-QuotedPrint_install_and_remove_perl-PerlIO-via-QuotedPrint" + }, + { + "name": "oe_test_perl-PerlIO-via-QuotedPrint_install_and_remove_perl-PerlIO-via-QuotedPrint-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Pod-Checker.json b/suite2cases/perl-Pod-Checker.json new file mode 100644 index 0000000000000000000000000000000000000000..37eaf714858e3ba9c4410c03a6b2a251ae07148a --- /dev/null +++ b/suite2cases/perl-Pod-Checker.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Pod-Checker", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Pod-Checker_install_and_remove_perl-Pod-Checker" + }, + { + "name": "oe_test_perl-Pod-Checker_install_and_remove_perl-Pod-Checker-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Pod-Escapes.json b/suite2cases/perl-Pod-Escapes.json new file mode 100644 index 0000000000000000000000000000000000000000..fa6ede62270033ff3ec6ffe77695f8aeae553700 --- /dev/null +++ b/suite2cases/perl-Pod-Escapes.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Pod-Escapes", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Pod-Escapes_install_and_remove_perl-Pod-Escapes" + }, + { + "name": "oe_test_perl-Pod-Escapes_install_and_remove_perl-Pod-Escapes-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Pod-Markdown.json b/suite2cases/perl-Pod-Markdown.json index 9e29084aa0b48799d2d0a969bd9be1a5e8575efd..0301ddd9e0b8bf0913f63abcef3c25d050e30639 100644 --- a/suite2cases/perl-Pod-Markdown.json +++ b/suite2cases/perl-Pod-Markdown.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/perl-Pod-Markdown", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_perl-Pod-Markdown_pod2markdown" } ] -} +} \ No newline at end of file diff --git a/suite2cases/perl-Pod-Parser.json b/suite2cases/perl-Pod-Parser.json new file mode 100644 index 0000000000000000000000000000000000000000..0807fceb6941cd443ea99bffb88238aa7dc48e06 --- /dev/null +++ b/suite2cases/perl-Pod-Parser.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Pod-Parser", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Pod-Parser_install_and_remove_perl-Pod-Parser" + }, + { + "name": "oe_test_perl-Pod-Parser_install_and_remove_perl-Pod-Parser-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Pod-Perldoc.json b/suite2cases/perl-Pod-Perldoc.json new file mode 100644 index 0000000000000000000000000000000000000000..fd77cb523faffeb92ded247b3f4412b0e2c056b2 --- /dev/null +++ b/suite2cases/perl-Pod-Perldoc.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Pod-Perldoc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Pod-Perldoc_install_and_remove_perl-Pod-Perldoc" + }, + { + "name": "oe_test_perl-Pod-Perldoc_install_and_remove_perl-Pod-Perldoc-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Pod-Simple.json b/suite2cases/perl-Pod-Simple.json new file mode 100644 index 0000000000000000000000000000000000000000..48bcd8530597e328a521833b00433d8f31637b23 --- /dev/null +++ b/suite2cases/perl-Pod-Simple.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Pod-Simple", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Pod-Simple_install_and_remove_perl-Pod-Simple" + }, + { + "name": "oe_test_perl-Pod-Simple_install_and_remove_perl-Pod-Simple-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Pod-Usage.json b/suite2cases/perl-Pod-Usage.json new file mode 100644 index 0000000000000000000000000000000000000000..cf86ef1a493898f70475458ab400192a75786734 --- /dev/null +++ b/suite2cases/perl-Pod-Usage.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Pod-Usage", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Pod-Usage_install_and_remove_perl-Pod-Usage" + }, + { + "name": "oe_test_perl-Pod-Usage_install_and_remove_perl-Pod-Usage-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-SGMLSpm.json b/suite2cases/perl-SGMLSpm.json new file mode 100644 index 0000000000000000000000000000000000000000..bb1c08246c1194cda640225f460918ecaa0867dd --- /dev/null +++ b/suite2cases/perl-SGMLSpm.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-SGMLSpm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-SGMLSpm_install_and_remove_perl-SGMLSpm" + }, + { + "name": "oe_test_perl-SGMLSpm_install_and_remove_perl-SGMLSpm-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Scalar-List-Utils.json b/suite2cases/perl-Scalar-List-Utils.json new file mode 100644 index 0000000000000000000000000000000000000000..6a70227ffe2aabe22bf190c232ed80e7ded18139 --- /dev/null +++ b/suite2cases/perl-Scalar-List-Utils.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Scalar-List-Utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils" + }, + { + "name": "oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-debuginfo" + }, + { + "name": "oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-debugsource" + }, + { + "name": "oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Socket.json b/suite2cases/perl-Socket.json new file mode 100644 index 0000000000000000000000000000000000000000..04a15985fbdca7d6547c6813e24d6a47a7f33853 --- /dev/null +++ b/suite2cases/perl-Socket.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Socket", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Socket_install_and_remove_perl-Socket" + }, + { + "name": "oe_test_perl-Socket_install_and_remove_perl-Socket-help" + }, + { + "name": "oe_test_perl-Socket_install_and_remove_perl-Socket-debuginfo" + }, + { + "name": "oe_test_perl-Socket_install_and_remove_perl-Socket-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Storable.json b/suite2cases/perl-Storable.json new file mode 100644 index 0000000000000000000000000000000000000000..d430238407285ca808bf993a4583d0409a72e10e --- /dev/null +++ b/suite2cases/perl-Storable.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Storable", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Storable_install_and_remove_perl-Storable" + }, + { + "name": "oe_test_perl-Storable_install_and_remove_perl-Storable-help" + }, + { + "name": "oe_test_perl-Storable_install_and_remove_perl-Storable-debugsource" + }, + { + "name": "oe_test_perl-Storable_install_and_remove_perl-Storable-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Switch.json b/suite2cases/perl-Switch.json new file mode 100644 index 0000000000000000000000000000000000000000..83d8b1f156e794e3e6879db02b3cfe40c611e9ac --- /dev/null +++ b/suite2cases/perl-Switch.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Switch", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Switch_install_and_remove_perl-Switch" + }, + { + "name": "oe_test_perl-Switch_install_and_remove_perl-Switch-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Sys-Syslog.json b/suite2cases/perl-Sys-Syslog.json new file mode 100644 index 0000000000000000000000000000000000000000..76d8c2ed650177bfd89cf73c6047363cc505af64 --- /dev/null +++ b/suite2cases/perl-Sys-Syslog.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Sys-Syslog", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog" + }, + { + "name": "oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-help" + }, + { + "name": "oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-debuginfo" + }, + { + "name": "oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Term-ANSIColor.json b/suite2cases/perl-Term-ANSIColor.json new file mode 100644 index 0000000000000000000000000000000000000000..180a489ca15ca836752b224769a2fd516fa5a7a7 --- /dev/null +++ b/suite2cases/perl-Term-ANSIColor.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Term-ANSIColor", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Term-ANSIColor_install_and_remove_perl-Term-ANSIColor" + }, + { + "name": "oe_test_perl-Term-ANSIColor_install_and_remove_perl-Term-ANSIColor-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Term-Cap.json b/suite2cases/perl-Term-Cap.json new file mode 100644 index 0000000000000000000000000000000000000000..b16aae652d4c746a0b3a9ed58741028d92ff492f --- /dev/null +++ b/suite2cases/perl-Term-Cap.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Term-Cap", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Term-Cap_install_and_remove_perl-Term-Cap" + }, + { + "name": "oe_test_perl-Term-Cap_install_and_remove_perl-Term-Cap-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Test-Harness.json b/suite2cases/perl-Test-Harness.json new file mode 100644 index 0000000000000000000000000000000000000000..556fc193b6d90dc206a8e5e34f8b140d91bf39fe --- /dev/null +++ b/suite2cases/perl-Test-Harness.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Test-Harness", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Test-Harness_install_and_remove_perl-Test-Harness" + }, + { + "name": "oe_test_perl-Test-Harness_install_and_remove_perl-Test-Harness-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Test-Simple.json b/suite2cases/perl-Test-Simple.json new file mode 100644 index 0000000000000000000000000000000000000000..d1524cd4f9a80ab0fd466c5806fd5341c4477a41 --- /dev/null +++ b/suite2cases/perl-Test-Simple.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Test-Simple", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Test-Simple_install_and_remove_perl-Test-Simple" + }, + { + "name": "oe_test_perl-Test-Simple_install_and_remove_perl-Test-Simple-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Text-Balanced.json b/suite2cases/perl-Text-Balanced.json new file mode 100644 index 0000000000000000000000000000000000000000..1fc65923d9602d980c9b7559f7db6a7062da7b56 --- /dev/null +++ b/suite2cases/perl-Text-Balanced.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Text-Balanced", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Text-Balanced_install_and_remove_perl-Text-Balanced" + }, + { + "name": "oe_test_perl-Text-Balanced_install_and_remove_perl-Text-Balanced-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Text-Diff.json b/suite2cases/perl-Text-Diff.json new file mode 100644 index 0000000000000000000000000000000000000000..7d87bd1c0948c5f6f99e7991d33dff93a5b06a9a --- /dev/null +++ b/suite2cases/perl-Text-Diff.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Text-Diff", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff" + }, + { + "name": "oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff-help" + }, + { + "name": "oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Text-ParseWords.json b/suite2cases/perl-Text-ParseWords.json new file mode 100644 index 0000000000000000000000000000000000000000..c5810737fad1b72aebaafdca429e5d2e28576667 --- /dev/null +++ b/suite2cases/perl-Text-ParseWords.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Text-ParseWords", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Text-ParseWords_install_and_remove_perl-Text-ParseWords" + }, + { + "name": "oe_test_perl-Text-ParseWords_install_and_remove_perl-Text-ParseWords-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Thread-Queue.json b/suite2cases/perl-Thread-Queue.json new file mode 100644 index 0000000000000000000000000000000000000000..22cd86460f6eb95493a2faeb59f111cfae85c541 --- /dev/null +++ b/suite2cases/perl-Thread-Queue.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Thread-Queue", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue" + }, + { + "name": "oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue-help" + }, + { + "name": "oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Time-HiRes.json b/suite2cases/perl-Time-HiRes.json new file mode 100644 index 0000000000000000000000000000000000000000..ce398bc1cc09b77fad7dc232e2aa61dfe29dadf7 --- /dev/null +++ b/suite2cases/perl-Time-HiRes.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Time-HiRes", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes" + }, + { + "name": "oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-debuginfo" + }, + { + "name": "oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-help" + }, + { + "name": "oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Time-Local.json b/suite2cases/perl-Time-Local.json new file mode 100644 index 0000000000000000000000000000000000000000..0438269b81df1133ed4365b5b444c94288c524f0 --- /dev/null +++ b/suite2cases/perl-Time-Local.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Time-Local", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Time-Local_install_and_remove_perl-Time-Local" + }, + { + "name": "oe_test_perl-Time-Local_install_and_remove_perl-Time-Local-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Unicode-Collate.json b/suite2cases/perl-Unicode-Collate.json new file mode 100644 index 0000000000000000000000000000000000000000..9bdf783145f0e8ec1c1cf2de8a958513771219a4 --- /dev/null +++ b/suite2cases/perl-Unicode-Collate.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Unicode-Collate", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate" + }, + { + "name": "oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-help" + }, + { + "name": "oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-debugsource" + }, + { + "name": "oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-Unicode-Normalize.json b/suite2cases/perl-Unicode-Normalize.json new file mode 100644 index 0000000000000000000000000000000000000000..59ce449c7ad6a47b387b1278169b2f1486453f68 --- /dev/null +++ b/suite2cases/perl-Unicode-Normalize.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-Unicode-Normalize", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize" + }, + { + "name": "oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-debuginfo" + }, + { + "name": "oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-debugsource" + }, + { + "name": "oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-XML-Parser.json b/suite2cases/perl-XML-Parser.json new file mode 100644 index 0000000000000000000000000000000000000000..db9ec199c6f79ff0e421599d89bd5cea7b866c93 --- /dev/null +++ b/suite2cases/perl-XML-Parser.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-XML-Parser", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser" + }, + { + "name": "oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-debuginfo" + }, + { + "name": "oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-help" + }, + { + "name": "oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-debugsource" + }, + { + "name": "oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-autodie.json b/suite2cases/perl-autodie.json new file mode 100644 index 0000000000000000000000000000000000000000..d3ab3e7e9a31187abe9d5ac287129e8f143ead1e --- /dev/null +++ b/suite2cases/perl-autodie.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-autodie", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-autodie_install_and_remove_perl-autodie" + }, + { + "name": "oe_test_perl-autodie_install_and_remove_perl-autodie-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-bignum.json b/suite2cases/perl-bignum.json new file mode 100644 index 0000000000000000000000000000000000000000..ce95345eafb5c26c1c777baf83f693777f98f0f3 --- /dev/null +++ b/suite2cases/perl-bignum.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-bignum", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-bignum_install_and_remove_perl-bignum" + }, + { + "name": "oe_test_perl-bignum_install_and_remove_perl-bignum-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-constant.json b/suite2cases/perl-constant.json new file mode 100644 index 0000000000000000000000000000000000000000..f42030bc5afe62e7255ca47a7735ede1f2a7c519 --- /dev/null +++ b/suite2cases/perl-constant.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-constant", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-constant_install_and_remove_perl-constant" + }, + { + "name": "oe_test_perl-constant_install_and_remove_perl-constant-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-experimental.json b/suite2cases/perl-experimental.json new file mode 100644 index 0000000000000000000000000000000000000000..03bfdc5a5f5cc1e6f49b9ad20f238454edbf6b9c --- /dev/null +++ b/suite2cases/perl-experimental.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-experimental", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-experimental_install_and_remove_perl-experimental" + }, + { + "name": "oe_test_perl-experimental_install_and_remove_perl-experimental-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-generators.json b/suite2cases/perl-generators.json new file mode 100644 index 0000000000000000000000000000000000000000..0b862bbd403523467596c2650c336eeee7dd6311 --- /dev/null +++ b/suite2cases/perl-generators.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-generators", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-generators_install_and_remove_perl-generators" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-libnet.json b/suite2cases/perl-libnet.json new file mode 100644 index 0000000000000000000000000000000000000000..fa77489c4fe2e01795ab51f23bb0381ebf185e27 --- /dev/null +++ b/suite2cases/perl-libnet.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-libnet", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-libnet_install_and_remove_perl-libnet" + }, + { + "name": "oe_test_perl-libnet_install_and_remove_perl-libnet-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-libwww-perl.json b/suite2cases/perl-libwww-perl.json index 0a8e21ccafbd1223a4eb187e9f80d946c7c627ae..17359927b00048d50a6eb492b11a3baf062323bf 100644 --- a/suite2cases/perl-libwww-perl.json +++ b/suite2cases/perl-libwww-perl.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/perl-libwww-perl", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_perl-libwww-perl_GET_01" @@ -29,13 +31,4 @@ "name": "oe_test_perl-libwww-perl_POST_02" } ] -} - - - - - - - - - +} \ No newline at end of file diff --git a/suite2cases/perl-parent.json b/suite2cases/perl-parent.json new file mode 100644 index 0000000000000000000000000000000000000000..5bd1ac1883d621f9f8a43bd2b33e9fa0eeb79d20 --- /dev/null +++ b/suite2cases/perl-parent.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-parent", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-parent_install_and_remove_perl-parent" + }, + { + "name": "oe_test_perl-parent_install_and_remove_perl-parent-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-perlfaq.json b/suite2cases/perl-perlfaq.json new file mode 100644 index 0000000000000000000000000000000000000000..c22017613621f75637ca2f0a36ebb3c8d64a1a6a --- /dev/null +++ b/suite2cases/perl-perlfaq.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-perlfaq", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-perlfaq_install_and_remove_perl-perlfaq" + }, + { + "name": "oe_test_perl-perlfaq_install_and_remove_perl-perlfaq-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-podlators.json b/suite2cases/perl-podlators.json new file mode 100644 index 0000000000000000000000000000000000000000..ee3fe001b3505f0af34cd9d06c20f0c595f73677 --- /dev/null +++ b/suite2cases/perl-podlators.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-podlators", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-podlators_install_and_remove_perl-podlators" + }, + { + "name": "oe_test_perl-podlators_install_and_remove_perl-podlators-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-threads-shared.json b/suite2cases/perl-threads-shared.json new file mode 100644 index 0000000000000000000000000000000000000000..eecf28edca9a8c90e17982c234acf28764dcb306 --- /dev/null +++ b/suite2cases/perl-threads-shared.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-threads-shared", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-threads-shared_install_and_remove_perl-threads-shared" + }, + { + "name": "oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-help" + }, + { + "name": "oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-debuginfo" + }, + { + "name": "oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-threads.json b/suite2cases/perl-threads.json new file mode 100644 index 0000000000000000000000000000000000000000..62d9735038d6d2f912c75d962b3136c8c41c062b --- /dev/null +++ b/suite2cases/perl-threads.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-threads", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-threads_install_and_remove_perl-threads" + }, + { + "name": "oe_test_perl-threads_install_and_remove_perl-threads-help" + }, + { + "name": "oe_test_perl-threads_install_and_remove_perl-threads-debuginfo" + }, + { + "name": "oe_test_perl-threads_install_and_remove_perl-threads-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl-version.json b/suite2cases/perl-version.json new file mode 100644 index 0000000000000000000000000000000000000000..32111701f92e98983b477cd71c0d1da16db3e14a --- /dev/null +++ b/suite2cases/perl-version.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl-version", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl-version_install_and_remove_perl-version" + }, + { + "name": "oe_test_perl-version_install_and_remove_perl-version-help" + }, + { + "name": "oe_test_perl-version_install_and_remove_perl-version-debuginfo" + }, + { + "name": "oe_test_perl-version_install_and_remove_perl-version-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/perl.json b/suite2cases/perl.json new file mode 100644 index 0000000000000000000000000000000000000000..7df160a655ffed41155ac55cf12375fc4b7ec8bc --- /dev/null +++ b/suite2cases/perl.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/perl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_perl_install_and_remove_perl" + }, + { + "name": "oe_test_perl_install_and_remove_perl-devel" + }, + { + "name": "oe_test_perl_install_and_remove_perl-libs" + }, + { + "name": "oe_test_perl_install_and_remove_perl-help" + }, + { + "name": "oe_test_perl_install_and_remove_perl-debugsource" + }, + { + "name": "oe_test_perl_install_and_remove_perl-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pesign.json b/suite2cases/pesign.json index 80ce084833e59c9ee196593c5ed86372ed3eb2a5..8489e470d98dfa0131f7a570dfa4a54a0c780a81 100644 --- a/suite2cases/pesign.json +++ b/suite2cases/pesign.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/pesign", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_pesign" @@ -27,6 +30,18 @@ }, { "name": "oe_test_pesign_pesigcheck" + }, + { + "name": "oe_test_pesign_install_and_remove_pesign" + }, + { + "name": "oe_test_pesign_install_and_remove_pesign-help" + }, + { + "name": "oe_test_pesign_install_and_remove_pesign-debuginfo" + }, + { + "name": "oe_test_pesign_install_and_remove_pesign-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/phodav.json b/suite2cases/phodav.json index d1f6eed83e523f77a8fd723157acf6ffd9e9b119..1e70977c5ddc0159d89023c29b6f06ae59c57b2e 100644 --- a/suite2cases/phodav.json +++ b/suite2cases/phodav.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/phodav", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_spice-webdavd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/php.json b/suite2cases/php.json index 2f6dd0efbc71c67d172c57a4a7fefce71db30a53..c30450d33b32e5a2ec61d71ecf803962c41f727c 100644 --- a/suite2cases/php.json +++ b/suite2cases/php.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/php", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_phar" @@ -29,4 +31,4 @@ "name": "oe_test_php_001" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pigz.json b/suite2cases/pigz.json index 8cd6a3119ab94d01d491702b0551c1891da13aad..3ee6f0154ee42cdc889843fc17a187c7f903e909 100644 --- a/suite2cases/pigz.json +++ b/suite2cases/pigz.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/pigz", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pigz" @@ -12,27 +15,39 @@ }, { "name": "oe_test_pigz_03" - }, + }, + { + "name": "oe_test_pigz_04" + }, + { + "name": "oe_test_pigz_05" + }, + { + "name": "oe_test_pigz_06" + }, + { + "name": "oe_test_pigz_07" + }, + { + "name": "oe_test_pigz_08" + }, { - "name": "oe_test_pigz_04" - }, - { - "name": "oe_test_pigz_05" - }, + "name": "oe_test_pigz_09" + }, { - "name": "oe_test_pigz_06" - }, + "name": "oe_test_pigz_10" + }, { - "name": "oe_test_pigz_07" - }, + "name": "oe_test_pigz_install_and_remove_pigz" + }, { - "name": "oe_test_pigz_08" - }, + "name": "oe_test_pigz_install_and_remove_pigz-help" + }, { - "name": "oe_test_pigz_09" - }, + "name": "oe_test_pigz_install_and_remove_pigz-debugsource" + }, { - "name" :"oe_test_pigz_10" - } + "name": "oe_test_pigz_install_and_remove_pigz-debuginfo" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/pixman.json b/suite2cases/pixman.json index 434f2c4b32139caf5b327e1a3d5fa0cb8a09b239..fe889375f54b44fa349e63618410180e93aa0fd5 100644 --- a/suite2cases/pixman.json +++ b/suite2cases/pixman.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/pixman", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pixman" + }, + { + "name": "oe_test_pixman_install_and_remove_pixman" + }, + { + "name": "oe_test_pixman_install_and_remove_pixman-devel" + }, + { + "name": "oe_test_pixman_install_and_remove_pixman-debugsource" + }, + { + "name": "oe_test_pixman_install_and_remove_pixman-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgconf.json b/suite2cases/pkgconf.json index 0c939c6712c9888400923324a6edfcc2d53fae9e..056ede6e7a306b29901cef5662fed00b62beea2e 100644 --- a/suite2cases/pkgconf.json +++ b/suite2cases/pkgconf.json @@ -1,9 +1,47 @@ { "path": "$OET_PATH/testcases/cli-test/pkgconf", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgconf" + }, + { + "name": "oe_test_pkgconf_install_and_remove_pkgconf" + }, + { + "name": "oe_test_pkgconf_install_and_remove_pkgconf-devel" + }, + { + "name": "oe_test_pkgconf_install_and_remove_pkgconf-bomtool" + }, + { + "name": "oe_test_pkgconf_install_and_remove_pkgconf-help" + }, + { + "name": "oe_test_pkgconf_install_and_remove_pkgconf-debuginfo" + }, + { + "name": "oe_test_pkgconf_install_and_remove_pkgconf-debugsource" + }, + { + "name": "oe_test_pkgconf_install_and_remove_pkgconf-pkg-config" + }, + { + "name": "oe_test_pkgconf_install_and_remove_bomtool" + }, + { + "name": "oe_test_pkgconf_install_and_remove_pkgconf-doc" + }, + { + "name": "oe_test_pkgconf_install_and_remove_libpkgconf" + }, + { + "name": "oe_test_pkgconf_install_and_remove_pkgconf-m4" + }, + { + "name": "oe_test_pkgconf_install_and_remove_libpkgconf-devel" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgmanager-test.json b/suite2cases/pkgmanager-test.json index 522ba6767449c8b7190abad6d8d674a4dad739a1..7a645ee57f3595cb486a695a0ad52e4d0d1e1867 100644 --- a/suite2cases/pkgmanager-test.json +++ b/suite2cases/pkgmanager-test.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/system-test/pkgmanager-test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkg_manager01" @@ -8,5 +10,4 @@ "name": "oe_test_pkg_manager02" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/pkgship_bedepend_query.json b/suite2cases/pkgship_bedepend_query.json index f7f24c2a7aaba33986e3a79f002cdb2fb5dcb317..dad5b9db19e24ed7117c473069b5a7557835fb03 100644 --- a/suite2cases/pkgship_bedepend_query.json +++ b/suite2cases/pkgship_bedepend_query.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/feature-test/pkgship/pkgship_bedepend_query", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgship_bedepend_binary_1" @@ -47,4 +49,4 @@ "name": "oe_test_pkgship_bedepend_source_6" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgship_builddep_query.json b/suite2cases/pkgship_builddep_query.json index 7cae8b720d3f02bf420e68401df77b4bfa5ab575..e62088fac245fd26366fc4e3951bc61fe6723169 100644 --- a/suite2cases/pkgship_builddep_query.json +++ b/suite2cases/pkgship_builddep_query.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/feature-test/pkgship/pkgship_builddep_query", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgship_builddep_01" @@ -47,4 +49,4 @@ "name": "oe_test_pkgship_builddep_fail_4" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgship_compare.json b/suite2cases/pkgship_compare.json index cb5221710d2e4415cd54e21028fa16dc07f62af6..14bd6ae8dfeb23849a37d546a63ee0aada9de27c 100644 --- a/suite2cases/pkgship_compare.json +++ b/suite2cases/pkgship_compare.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/feature-test/pkgship/pkgship_compare", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgship_compare_build_1" @@ -53,4 +55,4 @@ "name": "oe_test_pkgship_compare_stop_redis" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgship_info_query.json b/suite2cases/pkgship_info_query.json index 8ed7d4c1f71c017ca39ba475c278d7b3fce80368..a795783b45e5f35de8eae2166ee301bb4b5067a6 100644 --- a/suite2cases/pkgship_info_query.json +++ b/suite2cases/pkgship_info_query.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/feature-test/pkgship/pkgship_info_query", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgship_query_list_1" @@ -35,4 +37,4 @@ "name": "oe_test_pkgship_query_pkginfo_fail_3" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgship_installdep_query.json b/suite2cases/pkgship_installdep_query.json index e2f98f2361c1aef7ea6df2f415c6104731433ccb..d70340d1543278883f8fa666c27235a849650f64 100644 --- a/suite2cases/pkgship_installdep_query.json +++ b/suite2cases/pkgship_installdep_query.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/feature-test/pkgship/pkgship_installdep_query", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgship_installdep_01" @@ -47,4 +49,4 @@ "name": "oe_test_pkgship_installdep_fail_4" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgship_performance.json b/suite2cases/pkgship_performance.json index bb9d8e0dddf32b99d8f621beee51fa6203446c9b..f1ea63480a8bc4c3c70e4dbe453896f73a8cb1f6 100644 --- a/suite2cases/pkgship_performance.json +++ b/suite2cases/pkgship_performance.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/feature-test/pkgship/pkgship_performance", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgship_CPU_compress_init" @@ -23,4 +25,4 @@ "name": "oe_test_pkgship_resource_logrotate" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgship_reliability.json b/suite2cases/pkgship_reliability.json index 677cd88d3fafb911e8b03dac63575ca85210dc92..dbab7b4d26c11fe173255eb67d6a11a6ef253bda 100644 --- a/suite2cases/pkgship_reliability.json +++ b/suite2cases/pkgship_reliability.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/feature-test/pkgship/pkgship_reliability", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgship_access_init" @@ -17,4 +19,4 @@ "name": "oe_test_pkgship_uwsgi_logrotate" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgship_selfdepend_query.json b/suite2cases/pkgship_selfdepend_query.json index c6e754e222e1debc5b626c2adf081a598b30abc6..d9d724797143bcab69629aa5f79b9318c629d361 100644 --- a/suite2cases/pkgship_selfdepend_query.json +++ b/suite2cases/pkgship_selfdepend_query.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/feature-test/pkgship/pkgship_selfdepend_query", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgship_selfdepend_binary_1" @@ -41,4 +43,4 @@ "name": "oe_test_pkgship_selfdepend_source_5" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgship_service_module.json b/suite2cases/pkgship_service_module.json index 16f261b47c22bb7cce987c1fe209c9f90e3d4618..f8664862e2acf6f3b421fe0d711be2570d2c73a6 100644 --- a/suite2cases/pkgship_service_module.json +++ b/suite2cases/pkgship_service_module.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/feature-test/pkgship/pkgship_service_module", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgship_concurrent_init_1" @@ -92,4 +94,4 @@ "name": "oe_test_pkgship_set_ES_security" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pkgship_start_init.json b/suite2cases/pkgship_start_init.json index fbad4dbf15a7203b1e7695fcaab7327ca3206f7a..16e825c85b245dcf4a8557aa76cff61c9be73958 100644 --- a/suite2cases/pkgship_start_init.json +++ b/suite2cases/pkgship_start_init.json @@ -1,17 +1,19 @@ { "path": "${OET_PATH}/testcases/feature-test/pkgship/pkgship_start_init", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pkgship_autostart_01" }, { "name": "oe_test_pkgship_autostart_02", - "machine num": 2 + "machine num": 2 }, { "name": "oe_test_pkgship_check_client", - "machine num": 2 + "machine num": 2 }, { "name": "oe_test_pkgship_dbs_1" @@ -200,4 +202,4 @@ "name": "oe_test_pkgship_install_fail_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pki-core.json b/suite2cases/pki-core.json index f7b002555c4494a271fba864e713d7567aff3bfd..b76cea20b086fb7e3ca838ba7c436db9910fe723 100644 --- a/suite2cases/pki-core.json +++ b/suite2cases/pki-core.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/pki-core", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pki-core" diff --git a/suite2cases/plymouth.json b/suite2cases/plymouth.json index 9f892bdb8cf465b71ef4cd6732c2708f3930d9c5..828751b1f1dc4117e0e256f76d00f9b8b86cdd99 100644 --- a/suite2cases/plymouth.json +++ b/suite2cases/plymouth.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/plymouth", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_plymouth-halt" @@ -33,6 +36,36 @@ }, { "name": "oe_test_service_plymouth-switch-root-initramfs" + }, + { + "name": "oe_test_plymouth_install_and_remove_plymouth" + }, + { + "name": "oe_test_plymouth_install_and_remove_plymouth-devel" + }, + { + "name": "oe_test_plymouth_install_and_remove_plymouth-theme-fade-in" + }, + { + "name": "oe_test_plymouth_install_and_remove_plymouth-theme-solar" + }, + { + "name": "oe_test_plymouth_install_and_remove_plymouth-theme-glow" + }, + { + "name": "oe_test_plymouth_install_and_remove_plymouth-theme-spinfinity" + }, + { + "name": "oe_test_plymouth_install_and_remove_plymouth-theme-spinner" + }, + { + "name": "oe_test_plymouth_install_and_remove_plymouth-help" + }, + { + "name": "oe_test_plymouth_install_and_remove_plymouth-debuginfo" + }, + { + "name": "oe_test_plymouth_install_and_remove_plymouth-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pmix.json b/suite2cases/pmix.json index cc327a888ea5b2b48832f29a18cb25314cc91e50..352c9da4f4c2b4c0f08a90491c1e45ecc54096e4 100644 --- a/suite2cases/pmix.json +++ b/suite2cases/pmix.json @@ -1,11 +1,13 @@ { - "path": "$OET_PATH/testcases/cli-test/pmix", - "cases": [ - { - "name": "oe_test_pmix" - }, - { - "name": "oe_test_pmix_01" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/pmix", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pmix" + }, + { + "name": "oe_test_pmix_01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pngcrush.json b/suite2cases/pngcrush.json index 433b6390b43e6e577d87b7a227eb47ad5ba5ecf2..b34458abb8011d1f97b59f94f21349e8304c0a96 100644 --- a/suite2cases/pngcrush.json +++ b/suite2cases/pngcrush.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/pngcrush", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pngcrush_01" diff --git a/suite2cases/pngquant.json b/suite2cases/pngquant.json index 154a7120d99938aeb1c3b25fc9fa800be79613b5..7d3acd0cfba80690f60860e711253abc614ff1dd 100644 --- a/suite2cases/pngquant.json +++ b/suite2cases/pngquant.json @@ -1,8 +1,10 @@ { "path": "${OET_PATH}/testcases/cli-test/pngquant", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pngquant" } ] -} +} \ No newline at end of file diff --git a/suite2cases/po4a.json b/suite2cases/po4a.json index 22d04478590a176b3f33a5e27c87a93a92d07c6c..42e821d8c7cb4d320370dd6e7b69241e8cd86806 100644 --- a/suite2cases/po4a.json +++ b/suite2cases/po4a.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/po4a", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_po4a_01" @@ -11,37 +14,43 @@ "name": "oe_test_po4a_03" }, { - "name" : "oe_test_po4a-gettextize_01" + "name": "oe_test_po4a-gettextize_01" }, { - "name" : "oe_test_po4a-gettextize_02" + "name": "oe_test_po4a-gettextize_02" }, { - "name" : "oe_test_po4a-translate_01" + "name": "oe_test_po4a-translate_01" }, { - "name" : "oe_test_po4a-translate_02" + "name": "oe_test_po4a-translate_02" }, { - "name" : "oe_test_po4a-updatepo_01" + "name": "oe_test_po4a-updatepo_01" }, { - "name" : "oe_test_po4a-updatepo_02" + "name": "oe_test_po4a-updatepo_02" }, { - "name" : "oe_test_po4a-updatepo_03" + "name": "oe_test_po4a-updatepo_03" }, { - "name" : "oe_test_po4a-normalize_01" + "name": "oe_test_po4a-normalize_01" }, { - "name" : "oe_test_po4a-normalize_02" + "name": "oe_test_po4a-normalize_02" }, { - "name" :"oe_test_po4aman-display-po" + "name": "oe_test_po4aman-display-po" }, { - "name" : "oe_test_po4apod-display-po" + "name": "oe_test_po4apod-display-po" + }, + { + "name": "oe_test_po4a_install_and_remove_po4a" + }, + { + "name": "oe_test_po4a_install_and_remove_po4a-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/podman.json b/suite2cases/podman.json index fbb5c8d3beeadc9f310283b34cf0b4c696f9ea57..e8d2ad662e46a95c602c542c86b20f7b22fd4487 100644 --- a/suite2cases/podman.json +++ b/suite2cases/podman.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/podman", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_podman" @@ -179,4 +181,4 @@ "name": "oe_test_podman_0.10.1" } ] -} +} \ No newline at end of file diff --git a/suite2cases/podman_3.4.4.2.json b/suite2cases/podman_3.4.4.2.json index 58aea755a851aeba6512923ef7db96e254af1680..736db82dd50869aed1ef4c8903a03c62d31838f4 100644 --- a/suite2cases/podman_3.4.4.2.json +++ b/suite2cases/podman_3.4.4.2.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/podman", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_podman-restart" diff --git a/suite2cases/policycoreutils.json b/suite2cases/policycoreutils.json index 2c325674d62a5619b0a013990ecc0a51de38a977..ae09d541b6ed158d3c613a2cf594f6f9f84c1288 100644 --- a/suite2cases/policycoreutils.json +++ b/suite2cases/policycoreutils.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/policycoreutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_restorecond" @@ -12,6 +15,36 @@ }, { "name": "oe_test_target_selinux-autorelabel" + }, + { + "name": "oe_test_policycoreutils_install_and_remove_policycoreutils" + }, + { + "name": "oe_test_policycoreutils_install_and_remove_policycoreutils-dbus" + }, + { + "name": "oe_test_policycoreutils_install_and_remove_policycoreutils-devel" + }, + { + "name": "oe_test_policycoreutils_install_and_remove_policycoreutils-help" + }, + { + "name": "oe_test_policycoreutils_install_and_remove_python3-policycoreutils" + }, + { + "name": "oe_test_policycoreutils_install_and_remove_policycoreutils-python-utils" + }, + { + "name": "oe_test_policycoreutils_install_and_remove_policycoreutils-debugsource" + }, + { + "name": "oe_test_policycoreutils_install_and_remove_policycoreutils-debuginfo" + }, + { + "name": "oe_test_policycoreutils_install_and_remove_python2-policycoreutils" + }, + { + "name": "oe_test_policycoreutils_install_and_remove_policycoreutils-sandbox" } ] -} +} \ No newline at end of file diff --git a/suite2cases/polkit-pkla-compat.json b/suite2cases/polkit-pkla-compat.json new file mode 100644 index 0000000000000000000000000000000000000000..6a6c311766c0eb61ef368ee4c39186737aec77b8 --- /dev/null +++ b/suite2cases/polkit-pkla-compat.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/polkit-pkla-compat", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat" + }, + { + "name": "oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-help" + }, + { + "name": "oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-debuginfo" + }, + { + "name": "oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/polkit.json b/suite2cases/polkit.json index 8bbf8dce04ed39307469859f8b4638c3ca08289f..a5bb73c6deec8f8777c8aa3f8fb1d1879210e118 100644 --- a/suite2cases/polkit.json +++ b/suite2cases/polkit.json @@ -1,8 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/polkit", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_polkit" + }, + { + "name": "oe_test_polkit_install_and_remove_polkit" + }, + { + "name": "oe_test_polkit_install_and_remove_polkit-libs" + }, + { + "name": "oe_test_polkit_install_and_remove_polkit-devel" + }, + { + "name": "oe_test_polkit_install_and_remove_polkit-debuginfo" + }, + { + "name": "oe_test_polkit_install_and_remove_polkit-debugsource" + }, + { + "name": "oe_test_polkit_install_and_remove_polkit-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/poppler.json b/suite2cases/poppler.json index 73cd20d7548f1a21cada54e0dea335fa18046069..56149d0b6d1a860d9d0d594d8571e5b952f00846 100644 --- a/suite2cases/poppler.json +++ b/suite2cases/poppler.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/poppler", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_poppler" diff --git a/suite2cases/popt.json b/suite2cases/popt.json new file mode 100644 index 0000000000000000000000000000000000000000..25db4991376a535458396d1c4abb05ad99b08d43 --- /dev/null +++ b/suite2cases/popt.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/popt", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_popt_install_and_remove_popt" + }, + { + "name": "oe_test_popt_install_and_remove_popt-devel" + }, + { + "name": "oe_test_popt_install_and_remove_popt-help" + }, + { + "name": "oe_test_popt_install_and_remove_popt-debugsource" + }, + { + "name": "oe_test_popt_install_and_remove_popt-debuginfo" + }, + { + "name": "oe_test_popt_install_and_remove_popt-doc" + }, + { + "name": "oe_test_popt_install_and_remove_popt-static" + } + ] +} \ No newline at end of file diff --git a/suite2cases/portreserve.json b/suite2cases/portreserve.json index 16c9504732723613a612a0f3f36a69bb811fb07f..bcc6b553685e2c99e4a509d75598e0df753723e3 100644 --- a/suite2cases/portreserve.json +++ b/suite2cases/portreserve.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/portreserve", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_portreserve" } ] -} +} \ No newline at end of file diff --git a/suite2cases/postfix.json b/suite2cases/postfix.json index 856dfc258af613f2c8072ff6bb7cece276103e25..ba160f6e17af63d99bcb5133eb28e75d61968dd3 100644 --- a/suite2cases/postfix.json +++ b/suite2cases/postfix.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/postfix", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_postfix" }, - { - "name": "oe_test_postfix_configuration" - } + { + "name": "oe_test_postfix_configuration" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/postgresql.json b/suite2cases/postgresql.json index 4baba7469546a07c5a6a99f40d71fb1784ec2d93..311a46891d4b6bda8b1046afccc3e7fbe29d06f0 100644 --- a/suite2cases/postgresql.json +++ b/suite2cases/postgresql.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/postgresql", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_postgresql_clusterdb" diff --git a/suite2cases/powerapi_interface.json b/suite2cases/powerapi_interface.json index ae59bbf5643bf8a3246f12f6f3efd71d5f5f0c7f..cb1ffccd829817d616e309f0eca65f1ba35c1c4c 100644 --- a/suite2cases/powerapi_interface.json +++ b/suite2cases/powerapi_interface.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/feature-test/powerapi_interface", "machine type": "physical", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_interface_powerapi_01", @@ -198,7 +200,7 @@ "name": "oe_test_interface_powerapi_52", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_53", "machine type": "physical" }, @@ -206,27 +208,27 @@ "name": "oe_test_interface_powerapi_54", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_55", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_56", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_57", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_58", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_59", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_60", "machine type": "physical" }, @@ -234,19 +236,19 @@ "name": "oe_test_interface_powerapi_61", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_62", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_63", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_68", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_69", "machine type": "physical" }, @@ -254,89 +256,89 @@ "name": "oe_test_interface_powerapi_70", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_71", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_72", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_73", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_82", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_83", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_84", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_85", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_86", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_88", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_89", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_90", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_91", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_92", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_93", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_94", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_95", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_96", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_97", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_98", "machine type": "physical" }, - { + { "name": "oe_test_interface_powerapi_99", "machine type": "physical" - }, - { + }, + { "name": "oe_test_interface_powerapi_101", "machine type": "physical" } ] -} +} \ No newline at end of file diff --git a/suite2cases/powertop.json b/suite2cases/powertop.json index 570a8bedb613b55db6b318657a9cc0dc8549e97d..5fbbe50cfc64fdf2594aaa6c210ef360b971b58f 100644 --- a/suite2cases/powertop.json +++ b/suite2cases/powertop.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/powertop", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_powertop" @@ -8,4 +10,4 @@ "name": "oe_test_powertop" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ppp.json b/suite2cases/ppp.json new file mode 100644 index 0000000000000000000000000000000000000000..97a6ea22c4f9f1cf4bc5a30fa780af9c97d1be67 --- /dev/null +++ b/suite2cases/ppp.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/ppp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ppp_install_and_remove_ppp" + }, + { + "name": "oe_test_ppp_install_and_remove_ppp-devel" + }, + { + "name": "oe_test_ppp_install_and_remove_ppp-debuginfo" + }, + { + "name": "oe_test_ppp_install_and_remove_ppp-help" + }, + { + "name": "oe_test_ppp_install_and_remove_ppp-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pps-tools.json b/suite2cases/pps-tools.json index d651dc43490bda820a2350d115df584a883699d5..445db8bb85c48e9752b5d85d24a61a54338baa5b 100644 --- a/suite2cases/pps-tools.json +++ b/suite2cases/pps-tools.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/pps-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pps-tools" + }, + { + "name": "oe_test_pps-tools_install_and_remove_pps-tools" + }, + { + "name": "oe_test_pps-tools_install_and_remove_pps-tools-devel" + }, + { + "name": "oe_test_pps-tools_install_and_remove_pps-tools-debugsource" + }, + { + "name": "oe_test_pps-tools_install_and_remove_pps-tools-debuginfo" } ] } \ No newline at end of file diff --git a/suite2cases/predixy.json b/suite2cases/predixy.json index cb9ef601f892b8f094500867d2a455993539b52a..181bb966761fa5650ab1674592671ed651159d70 100644 --- a/suite2cases/predixy.json +++ b/suite2cases/predixy.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/predixy", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_predixy" } ] -} +} \ No newline at end of file diff --git a/suite2cases/procinfo.json b/suite2cases/procinfo.json index 30fb74a68cab4379dbdb313a5d11498f3dc80578..71f18528c10ed815a686470663c09b2afe33d283 100644 --- a/suite2cases/procinfo.json +++ b/suite2cases/procinfo.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/procinfo", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_procinfo_01" @@ -8,4 +10,4 @@ "name": "oe_test_procinfo_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/procps-ng.json b/suite2cases/procps-ng.json index a46b9814ecb9148974ca6864a1b16f10635b1ee5..4cfeaceea86d91eccb1d9bdbf1d891ddca7525cd 100644 --- a/suite2cases/procps-ng.json +++ b/suite2cases/procps-ng.json @@ -1,11 +1,32 @@ { "path": "$OET_PATH/testcases/cli-test/procps-ng", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_procps-ng-pmap" }, { "name": "oe_test_procps-ng-pwdx" + }, + { + "name": "oe_test_procps-ng_install_and_remove_procps-ng" + }, + { + "name": "oe_test_procps-ng_install_and_remove_procps-ng-devel" + }, + { + "name": "oe_test_procps-ng_install_and_remove_procps-ng-i18n" + }, + { + "name": "oe_test_procps-ng_install_and_remove_procps-ng-debugsource" + }, + { + "name": "oe_test_procps-ng_install_and_remove_procps-ng-help" + }, + { + "name": "oe_test_procps-ng_install_and_remove_procps-ng-debuginfo" } ] } \ No newline at end of file diff --git a/suite2cases/proftpd.json b/suite2cases/proftpd.json index bda5622a9880c699da4d09be5e082a78bb1d76ce..d9e52e2130e9836ca0989f62e3a50a001deb6860 100644 --- a/suite2cases/proftpd.json +++ b/suite2cases/proftpd.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/proftpd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_proftpd" @@ -8,4 +10,4 @@ "name": "oe_test_socket_proftpd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/prometheus2.json b/suite2cases/prometheus2.json index a3889b4e4f5d07a5e7e74da61e799e23556317cd..3833e0a82b33d33483e205faccf2de80cdc9692c 100644 --- a/suite2cases/prometheus2.json +++ b/suite2cases/prometheus2.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/prometheus2", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_prometheus" @@ -20,4 +22,4 @@ "name": "oe_test_prometheus_tsdb" } ] -} +} \ No newline at end of file diff --git a/suite2cases/protobuf-c.json b/suite2cases/protobuf-c.json index 99dc5101db0968e4e32bb624a0f6d418b1af9601..a74872556201f934365d8aecdc9022afa978532e 100644 --- a/suite2cases/protobuf-c.json +++ b/suite2cases/protobuf-c.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/protobuf-c", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_protobuf-c_01" + }, + { + "name": "oe_test_protobuf-c_install_and_remove_protobuf-c" + }, + { + "name": "oe_test_protobuf-c_install_and_remove_protobuf-c-devel" + }, + { + "name": "oe_test_protobuf-c_install_and_remove_protobuf-c-debugsource" + }, + { + "name": "oe_test_protobuf-c_install_and_remove_protobuf-c-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/protobuf.json b/suite2cases/protobuf.json index e2a011a75a39472b098173913b991c0b15a18628..8455e1cae87e6253b5d7e7332cb63e7fbeff0d3c 100644 --- a/suite2cases/protobuf.json +++ b/suite2cases/protobuf.json @@ -1,8 +1,59 @@ { "path": "$OET_PATH/testcases/cli-test/protobuf", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_protobuf" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf" + }, + { + "name": "oe_test_protobuf_install_and_remove_python3-protobuf" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-lite-devel" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-javadoc" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-parent" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-lite" + }, + { + "name": "oe_test_protobuf_install_and_remove_python2-protobuf" + }, + { + "name": "oe_test_protobuf_install_and_remove_python%{python3_pkgversion}-protobuf" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-devel" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-java" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-java-util" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-compiler" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-bom" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-javalite" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-debuginfo" + }, + { + "name": "oe_test_protobuf_install_and_remove_protobuf-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ps_mem.json b/suite2cases/ps_mem.json index b8c471962f45e021fb18b6ccd439c2febcf2772d..a25795faa4b589f6f6cc2aea22c24bc1152b6633 100644 --- a/suite2cases/ps_mem.json +++ b/suite2cases/ps_mem.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/ps_mem", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ps_mem" } - ] } \ No newline at end of file diff --git a/suite2cases/psacct.json b/suite2cases/psacct.json index 7104d8fa4253af52e224ca12d4ccf83dee47b0ef..09331bc1c774325b5105517d9428cc082c7ec2f0 100644 --- a/suite2cases/psacct.json +++ b/suite2cases/psacct.json @@ -1,11 +1,13 @@ { - "path": "$OET_PATH/testcases/cli-test/psacct", - "cases": [ - { - "name": "oe_test_psacct" - }, - { - "name": "oe_test_service_psacct" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/psacct", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_psacct" + }, + { + "name": "oe_test_service_psacct" + } + ] +} \ No newline at end of file diff --git a/suite2cases/psmisc.json b/suite2cases/psmisc.json new file mode 100644 index 0000000000000000000000000000000000000000..ec2c5476a2ffd507eeef9639099aac1b210a4034 --- /dev/null +++ b/suite2cases/psmisc.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/psmisc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_psmisc_install_and_remove_psmisc" + }, + { + "name": "oe_test_psmisc_install_and_remove_psmisc-debugsource" + }, + { + "name": "oe_test_psmisc_install_and_remove_psmisc-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/psutils.json b/suite2cases/psutils.json index 19698e1840ec33d552039d440528513dfcf3aaa3..d76d5a24a7a4b90467e0f3975a771aebc2e7aede 100644 --- a/suite2cases/psutils.json +++ b/suite2cases/psutils.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/psutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_psselect" @@ -24,6 +27,18 @@ }, { "name": "oe_test_psresize" + }, + { + "name": "oe_test_psutils_install_and_remove_psutils" + }, + { + "name": "oe_test_psutils_install_and_remove_psutils-help" + }, + { + "name": "oe_test_psutils_install_and_remove_psutils-debugsource" + }, + { + "name": "oe_test_psutils_install_and_remove_psutils-debuginfo" } ] } \ No newline at end of file diff --git a/suite2cases/publicsuffix-list.json b/suite2cases/publicsuffix-list.json new file mode 100644 index 0000000000000000000000000000000000000000..a373d2f042074a3af94b49438e4d6c46cb5c02d4 --- /dev/null +++ b/suite2cases/publicsuffix-list.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/publicsuffix-list", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_publicsuffix-list_install_and_remove_publicsuffix-list" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pulseaudio.json b/suite2cases/pulseaudio.json new file mode 100644 index 0000000000000000000000000000000000000000..188cbc9a0a4408c237c015866c58584285950669 --- /dev/null +++ b/suite2cases/pulseaudio.json @@ -0,0 +1,41 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pulseaudio", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio" + }, + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio-libs" + }, + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio-libs-devel" + }, + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio-module-bluetooth" + }, + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio-libs-glib2" + }, + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio-qpaeq" + }, + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio-debuginfo" + }, + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio-help" + }, + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio-debugsource" + }, + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio-devel" + }, + { + "name": "oe_test_pulseaudio_install_and_remove_pulseaudio-gdm-hooks" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pv.json b/suite2cases/pv.json index 4fd3dd678d51c5f48907784a0dbe3f49dda495a5..28e31045c4e7954eb34e9b069d32003ce6878deb 100644 --- a/suite2cases/pv.json +++ b/suite2cases/pv.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/system-test/system-integration/os-basic/oe_test_pv", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pv" diff --git a/suite2cases/pwgen.json b/suite2cases/pwgen.json index 1bbc732b452e1724ba22c4610c87c686be8cad06..76e1582655081f78d46587b5e28d35d9f9cb86e4 100644 --- a/suite2cases/pwgen.json +++ b/suite2cases/pwgen.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/pwgen", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pwgen_01" diff --git a/suite2cases/pyScss.json b/suite2cases/pyScss.json index 2463116d9005e2254d4942473d4bc0d0e8b357cd..826727a3c6d228c85e406ff26440c02b50938848 100644 --- a/suite2cases/pyScss.json +++ b/suite2cases/pyScss.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/pyScss", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pyScss_01" diff --git a/suite2cases/pyatspi.json b/suite2cases/pyatspi.json new file mode 100644 index 0000000000000000000000000000000000000000..4b16ba861ac82f264d710d2c7ffa91e9d2fd1e21 --- /dev/null +++ b/suite2cases/pyatspi.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pyatspi", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pyatspi_install_and_remove_pyatspi" + }, + { + "name": "oe_test_pyatspi_install_and_remove_python3-pyatspi" + }, + { + "name": "oe_test_pyatspi_install_and_remove_python2-pyatspi" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pycairo.json b/suite2cases/pycairo.json new file mode 100644 index 0000000000000000000000000000000000000000..c623699fb54f4f745f24a3541bf829113bd1923e --- /dev/null +++ b/suite2cases/pycairo.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pycairo", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pycairo_install_and_remove_pycairo" + }, + { + "name": "oe_test_pycairo_install_and_remove_python3-cairo-devel" + }, + { + "name": "oe_test_pycairo_install_and_remove_python3-cairo" + }, + { + "name": "oe_test_pycairo_install_and_remove_pycairo-debuginfo" + }, + { + "name": "oe_test_pycairo_install_and_remove_pycairo-debugsource" + }, + { + "name": "oe_test_pycairo_install_and_remove_python2-cairo" + }, + { + "name": "oe_test_pycairo_install_and_remove_python2-cairo-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pyelftools.json b/suite2cases/pyelftools.json index c273e86faa1a3b02baeb467cbb56e4e3e9294c00..4ce05fe5fd0edfc181804195ed508f31232f6263 100644 --- a/suite2cases/pyelftools.json +++ b/suite2cases/pyelftools.json @@ -1,14 +1,16 @@ { - "path": "$OET_PATH/testcases/cli-test/pyelftools", - "cases": [ - { - "name": "oe_test_pyelftools_pyreadelf_01" - }, - { - "name": "oe_test_pyelftools_pyreadelf_02" - }, - { - "name": "oe_test_pyelftools_pyreadelf_03" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/pyelftools", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pyelftools_pyreadelf_01" + }, + { + "name": "oe_test_pyelftools_pyreadelf_02" + }, + { + "name": "oe_test_pyelftools_pyreadelf_03" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pygobject3.json b/suite2cases/pygobject3.json new file mode 100644 index 0000000000000000000000000000000000000000..2a610635ff8f648b34dc655a6eef7842d130b931 --- /dev/null +++ b/suite2cases/pygobject3.json @@ -0,0 +1,50 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pygobject3", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pygobject3_install_and_remove_pygobject3" + }, + { + "name": "oe_test_pygobject3_install_and_remove_python3-gobject" + }, + { + "name": "oe_test_pygobject3_install_and_remove_python3-gobject-base" + }, + { + "name": "oe_test_pygobject3_install_and_remove_pygobject3-devel" + }, + { + "name": "oe_test_pygobject3_install_and_remove_pygobject3-debuginfo" + }, + { + "name": "oe_test_pygobject3_install_and_remove_pygobject3-debugsource" + }, + { + "name": "oe_test_pygobject3_install_and_remove_python2-gobject" + }, + { + "name": "oe_test_pygobject3_install_and_remove_python2-gobject-base" + }, + { + "name": "oe_test_pygobject3_install_and_remove_pygobject3-doc" + }, + { + "name": "oe_test_pygobject3_install_and_remove_python3-gobject-devel" + }, + { + "name": "oe_test_pygobject3_install_and_remove_python3-gobject-base-noarch" + }, + { + "name": "oe_test_pygobject3_install_and_remove_python-gobject" + }, + { + "name": "oe_test_pygobject3_install_and_remove_python-gobject-base" + }, + { + "name": "oe_test_pygobject3_install_and_remove_pygobject3-base" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pykickstart.json b/suite2cases/pykickstart.json new file mode 100644 index 0000000000000000000000000000000000000000..68cd8366cde20dd16843791c8057809fc1930ae4 --- /dev/null +++ b/suite2cases/pykickstart.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pykickstart", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pykickstart_install_and_remove_pykickstart" + }, + { + "name": "oe_test_pykickstart_install_and_remove_pykickstart-help" + }, + { + "name": "oe_test_pykickstart_install_and_remove_python3-kickstart" + }, + { + "name": "oe_test_pykickstart_install_and_remove_python-kickstart-help" + }, + { + "name": "oe_test_pykickstart_install_and_remove_python2-kickstart" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pylint.json b/suite2cases/pylint.json index 374db2f7b7bec5855dbbcd503bc43ed623337213..abd3802b8253fbf22189477fbc11bb3d746a32cc 100644 --- a/suite2cases/pylint.json +++ b/suite2cases/pylint.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/pylint", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pylint_01" @@ -29,4 +31,4 @@ "name": "oe_test_pyreverse_03" } ] -} +} \ No newline at end of file diff --git a/suite2cases/pyparsing.json b/suite2cases/pyparsing.json new file mode 100644 index 0000000000000000000000000000000000000000..4ef81309714ac8125d65276180b1de5a28a20916 --- /dev/null +++ b/suite2cases/pyparsing.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pyparsing", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pyparsing_install_and_remove_pyparsing" + }, + { + "name": "oe_test_pyparsing_install_and_remove_python3-pyparsing" + }, + { + "name": "oe_test_pyparsing_install_and_remove_pyparsing-help" + }, + { + "name": "oe_test_pyparsing_install_and_remove_python2-pyparsing" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pyparted.json b/suite2cases/pyparted.json new file mode 100644 index 0000000000000000000000000000000000000000..a7a73db6583a501b84ba3cda2db4fc4725fc8b81 --- /dev/null +++ b/suite2cases/pyparted.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pyparted", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pyparted_install_and_remove_pyparted" + }, + { + "name": "oe_test_pyparted_install_and_remove_python3-pyparted" + }, + { + "name": "oe_test_pyparted_install_and_remove_pyparted-debuginfo" + }, + { + "name": "oe_test_pyparted_install_and_remove_pyparted-debugsource" + }, + { + "name": "oe_test_pyparted_install_and_remove_python2-pyparted" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-Keras.json b/suite2cases/python-Keras.json index bb76aff97e7b7a6b53a605555b993c31d5336025..d376bbe2fc77887eddf4c44749a6474fd3e7850e 100644 --- a/suite2cases/python-Keras.json +++ b/suite2cases/python-Keras.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/python-Keras", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_Keras" diff --git a/suite2cases/python-anytree.json b/suite2cases/python-anytree.json new file mode 100644 index 0000000000000000000000000000000000000000..953f8f0d6689815e3d82e57380c274bc570d4a0b --- /dev/null +++ b/suite2cases/python-anytree.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-anytree", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-anytree_install_and_remove_python-anytree" + }, + { + "name": "oe_test_python-anytree_install_and_remove_python3-anytree" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-asn1crypto.json b/suite2cases/python-asn1crypto.json new file mode 100644 index 0000000000000000000000000000000000000000..60fa1155841f424d6bc7cd42a45f10b996013268 --- /dev/null +++ b/suite2cases/python-asn1crypto.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-asn1crypto", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-asn1crypto_install_and_remove_python-asn1crypto" + }, + { + "name": "oe_test_python-asn1crypto_install_and_remove_python3-asn1crypto" + }, + { + "name": "oe_test_python-asn1crypto_install_and_remove_python2-asn1crypto" + }, + { + "name": "oe_test_python-asn1crypto_install_and_remove_python-asn1crypto-help" + }, + { + "name": "oe_test_python-asn1crypto_install_and_remove_python3-asn1crypto-doc" + }, + { + "name": "oe_test_python-asn1crypto_install_and_remove_python38-asn1crypto" + }, + { + "name": "oe_test_python-asn1crypto_install_and_remove_python%{python3_pkgversion}-asn1crypto" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-blivet.json b/suite2cases/python-blivet.json index 879384aaabd00d5b0a0696b7c69eb9d999358a9c..29bc8c72dbc7507bca4ced188f12ac1f1463bbec 100644 --- a/suite2cases/python-blivet.json +++ b/suite2cases/python-blivet.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/python-blivet", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_blivet" + }, + { + "name": "oe_test_python-blivet_install_and_remove_python-blivet" + }, + { + "name": "oe_test_python-blivet_install_and_remove_blivet-data" + }, + { + "name": "oe_test_python-blivet_install_and_remove_python3-blivet" + }, + { + "name": "oe_test_python-blivet_install_and_remove_python2-blivet" + }, + { + "name": "oe_test_python-blivet_install_and_remove_python-blivet-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-bottle.json b/suite2cases/python-bottle.json index 2ae9ce20f207cf78ab0b82667806aefc2a03e558..61486e830463291d3ca31d17254d23f30e3973a6 100644 --- a/suite2cases/python-bottle.json +++ b/suite2cases/python-bottle.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/python-bottle", - "cases": [ - { - "name": "oe_test_python3-bottle" - } - ] + "path": "$OET_PATH/testcases/cli-test/python-bottle", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python3-bottle" + } + ] } \ No newline at end of file diff --git a/suite2cases/python-breathe.json b/suite2cases/python-breathe.json new file mode 100644 index 0000000000000000000000000000000000000000..3f181211afb1d151b5e50b15c212240db099570b --- /dev/null +++ b/suite2cases/python-breathe.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-breathe", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-breathe_install_and_remove_python-breathe" + }, + { + "name": "oe_test_python-breathe_install_and_remove_python3-breathe" + }, + { + "name": "oe_test_python-breathe_install_and_remove_python-breathe-help" + }, + { + "name": "oe_test_python-breathe_install_and_remove_python2-breathe" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-certifi.json b/suite2cases/python-certifi.json index 919fc5c7e29663a79ccb64d9412dcb7963499bb5..00235061716e695d0ceeeca790ef76bf23499f08 100644 --- a/suite2cases/python-certifi.json +++ b/suite2cases/python-certifi.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/python-certifi", - "cases": [ - { - "name": "oe_test_python3-certifi" - } - ] + "path": "$OET_PATH/testcases/cli-test/python-certifi", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python3-certifi" + } + ] } \ No newline at end of file diff --git a/suite2cases/python-cffi.json b/suite2cases/python-cffi.json new file mode 100644 index 0000000000000000000000000000000000000000..9beca935d376b0e73396a2681a2a8c0bd01062bc --- /dev/null +++ b/suite2cases/python-cffi.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-cffi", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-cffi_install_and_remove_python-cffi" + }, + { + "name": "oe_test_python-cffi_install_and_remove_python-cffi-help" + }, + { + "name": "oe_test_python-cffi_install_and_remove_python3-cffi" + }, + { + "name": "oe_test_python-cffi_install_and_remove_python-cffi-debugsource" + }, + { + "name": "oe_test_python-cffi_install_and_remove_python-cffi-debuginfo" + }, + { + "name": "oe_test_python-cffi_install_and_remove_python2-cffi" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-chardet.json b/suite2cases/python-chardet.json new file mode 100644 index 0000000000000000000000000000000000000000..8d763f8202ab5490bef580d88bcc426f135abc52 --- /dev/null +++ b/suite2cases/python-chardet.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-chardet", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-chardet_install_and_remove_python-chardet" + }, + { + "name": "oe_test_python-chardet_install_and_remove_python3-chardet" + }, + { + "name": "oe_test_python-chardet_install_and_remove_python-chardet-help" + }, + { + "name": "oe_test_python-chardet_install_and_remove_python2-chardet" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-charset-normalizer.json b/suite2cases/python-charset-normalizer.json new file mode 100644 index 0000000000000000000000000000000000000000..b96e2e807e997c479d17cd49139923725dba46ea --- /dev/null +++ b/suite2cases/python-charset-normalizer.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-charset-normalizer", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-charset-normalizer_install_and_remove_python-charset-normalizer" + }, + { + "name": "oe_test_python-charset-normalizer_install_and_remove_python3-charset-normalizer" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-click.json b/suite2cases/python-click.json new file mode 100644 index 0000000000000000000000000000000000000000..fe838f34c414216d752911f76d7fd922e4570e79 --- /dev/null +++ b/suite2cases/python-click.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-click", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-click_install_and_remove_python-click" + }, + { + "name": "oe_test_python-click_install_and_remove_python3-click" + }, + { + "name": "oe_test_python-click_install_and_remove_python-click-help" + }, + { + "name": "oe_test_python-click_install_and_remove_python2-click" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-colorama.json b/suite2cases/python-colorama.json new file mode 100644 index 0000000000000000000000000000000000000000..fb038b10cc2bcfb753ec723d41a3ff1d1b40c39e --- /dev/null +++ b/suite2cases/python-colorama.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-colorama", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-colorama_install_and_remove_python-colorama" + }, + { + "name": "oe_test_python-colorama_install_and_remove_python3-colorama" + }, + { + "name": "oe_test_python-colorama_install_and_remove_python-colorama-help" + }, + { + "name": "oe_test_python-colorama_install_and_remove_python2-colorama" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-cov-core.json b/suite2cases/python-cov-core.json new file mode 100644 index 0000000000000000000000000000000000000000..16d2b7e6079e3aa83124351c188e9c7fe9bd8555 --- /dev/null +++ b/suite2cases/python-cov-core.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-cov-core", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-cov-core_install_and_remove_python-cov-core" + }, + { + "name": "oe_test_python-cov-core_install_and_remove_python3-cov-core" + }, + { + "name": "oe_test_python-cov-core_install_and_remove_python-cov-core-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-coverage.json b/suite2cases/python-coverage.json new file mode 100644 index 0000000000000000000000000000000000000000..933a8174fea4afac7c6b1c7b1f000d3f0010aa07 --- /dev/null +++ b/suite2cases/python-coverage.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-coverage", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-coverage_install_and_remove_python-coverage" + }, + { + "name": "oe_test_python-coverage_install_and_remove_python3-coverage" + }, + { + "name": "oe_test_python-coverage_install_and_remove_python2-coverage" + }, + { + "name": "oe_test_python-coverage_install_and_remove_python-coverage-debuginfo" + }, + { + "name": "oe_test_python-coverage_install_and_remove_python-coverage-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-cryptography-vectors.json b/suite2cases/python-cryptography-vectors.json new file mode 100644 index 0000000000000000000000000000000000000000..4afb7b5918c5d8491ffcf21ddbc148c00329c80b --- /dev/null +++ b/suite2cases/python-cryptography-vectors.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-cryptography-vectors", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-cryptography-vectors_install_and_remove_python-cryptography-vectors" + }, + { + "name": "oe_test_python-cryptography-vectors_install_and_remove_python3-cryptography-vectors" + }, + { + "name": "oe_test_python-cryptography-vectors_install_and_remove_python2-cryptography-vectors" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-cryptography.json b/suite2cases/python-cryptography.json index f95d4e12c566c11bae55eb49d6410240f6928f8c..72dbf2ca7f7c2811e9af965fb64b88a706fc68b2 100644 --- a/suite2cases/python-cryptography.json +++ b/suite2cases/python-cryptography.json @@ -1,14 +1,38 @@ { - "path": "$OET_PATH/testcases/cli-test/python-cryptography", - "cases": [ - { - "name": "oe_test_python3-cryptography" - }, - { - "name": "oe_test_python-cryptography" - }, - { - "name": "oe_test_hasher_python3-cryptography" - } - ] + "path": "$OET_PATH/testcases/cli-test/python-cryptography", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python3-cryptography" + }, + { + "name": "oe_test_python-cryptography" + }, + { + "name": "oe_test_hasher_python3-cryptography" + }, + { + "name": "oe_test_python-cryptography_install_and_remove_python-cryptography" + }, + { + "name": "oe_test_python-cryptography_install_and_remove_python%{python3_pkgversion}-cryptography" + }, + { + "name": "oe_test_python-cryptography_install_and_remove_python-cryptography-debugsource" + }, + { + "name": "oe_test_python-cryptography_install_and_remove_python-cryptography-debuginfo" + }, + { + "name": "oe_test_python-cryptography_install_and_remove_python3-cryptography" + }, + { + "name": "oe_test_python-cryptography_install_and_remove_python-cryptography-help" + }, + { + "name": "oe_test_python-cryptography_install_and_remove_python2-cryptography" + } + ] } \ No newline at end of file diff --git a/suite2cases/python-cups.json b/suite2cases/python-cups.json new file mode 100644 index 0000000000000000000000000000000000000000..e8a37c511515e749f15895780d91b2343e680db7 --- /dev/null +++ b/suite2cases/python-cups.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-cups", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-cups_install_and_remove_python-cups" + }, + { + "name": "oe_test_python-cups_install_and_remove_python-cups-help" + }, + { + "name": "oe_test_python-cups_install_and_remove_python3-cups" + }, + { + "name": "oe_test_python-cups_install_and_remove_python-cups-debuginfo" + }, + { + "name": "oe_test_python-cups_install_and_remove_python-cups-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-dasbus.json b/suite2cases/python-dasbus.json new file mode 100644 index 0000000000000000000000000000000000000000..e46301fa47a2d36fe9354a4007b133bcdc7a8e02 --- /dev/null +++ b/suite2cases/python-dasbus.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-dasbus", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-dasbus_install_and_remove_python-dasbus" + }, + { + "name": "oe_test_python-dasbus_install_and_remove_python3-dasbus" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-dateutil.json b/suite2cases/python-dateutil.json index 37bb8588a4e4bc21f019dcbf6a3855f8bb2f8e61..9d7c5f6d1cf2194a82f17c37ff87cb3e25f2a82b 100644 --- a/suite2cases/python-dateutil.json +++ b/suite2cases/python-dateutil.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/python-dateutil", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-dateutil" @@ -9,6 +12,18 @@ }, { "name": "oe_parser_test_python3-dateutil" + }, + { + "name": "oe_test_python-dateutil_install_and_remove_python-dateutil" + }, + { + "name": "oe_test_python-dateutil_install_and_remove_python3-dateutil" + }, + { + "name": "oe_test_python-dateutil_install_and_remove_python2-dateutil" + }, + { + "name": "oe_test_python-dateutil_install_and_remove_python-dateutil-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-dns.json b/suite2cases/python-dns.json new file mode 100644 index 0000000000000000000000000000000000000000..ea4e57436b9c8133a29f5c97ce20c885d99cc0b4 --- /dev/null +++ b/suite2cases/python-dns.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-dns", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-dns_install_and_remove_python-dns" + }, + { + "name": "oe_test_python-dns_install_and_remove_python3-dns" + }, + { + "name": "oe_test_python-dns_install_and_remove_python-dns-help" + }, + { + "name": "oe_test_python-dns_install_and_remove_python2-dns" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-docutils.json b/suite2cases/python-docutils.json index 41b4543795df8c5f1ce69a759b8ad23f25c8f295..08e8e2b44b8f79d2dd6aeb308c14f1e8ae65edd8 100644 --- a/suite2cases/python-docutils.json +++ b/suite2cases/python-docutils.json @@ -1,5 +1,8 @@ { "path": "${OET_PATH}/testcases/cli-test/python-docutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python-docutils_rst2html_01" @@ -150,6 +153,18 @@ }, { "name": "oe_test_python-docutils_rstpep2html_07" + }, + { + "name": "oe_test_python-docutils_install_and_remove_python-docutils" + }, + { + "name": "oe_test_python-docutils_install_and_remove_python3-docutils" + }, + { + "name": "oe_test_python-docutils_install_and_remove_python-docutils-help" + }, + { + "name": "oe_test_python-docutils_install_and_remove_python2-docutils" } ] } \ No newline at end of file diff --git a/suite2cases/python-eventlet.json b/suite2cases/python-eventlet.json index fcd26cbc05d67295ced9d47fbe99426cd04abf6a..e243b9433732b890771131f450e27deb9d3bdece 100644 --- a/suite2cases/python-eventlet.json +++ b/suite2cases/python-eventlet.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/python-eventlet", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python-eventlet" diff --git a/suite2cases/python-extras.json b/suite2cases/python-extras.json new file mode 100644 index 0000000000000000000000000000000000000000..4e3d903569fc2cfa6d4df566fd48d04f7696f45e --- /dev/null +++ b/suite2cases/python-extras.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-extras", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-extras_install_and_remove_python-extras" + }, + { + "name": "oe_test_python-extras_install_and_remove_python3-extras" + }, + { + "name": "oe_test_python-extras_install_and_remove_python2-extras" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-fixtures.json b/suite2cases/python-fixtures.json new file mode 100644 index 0000000000000000000000000000000000000000..0600aab8e2753fcc88f34a9355506c68d97b4b2e --- /dev/null +++ b/suite2cases/python-fixtures.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-fixtures", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-fixtures_install_and_remove_python-fixtures" + }, + { + "name": "oe_test_python-fixtures_install_and_remove_python3-fixtures" + }, + { + "name": "oe_test_python-fixtures_install_and_remove_python2-fixtures" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-flask.json b/suite2cases/python-flask.json index b46a15e6205f9d27b73f835292c1f41bd2e01abb..31ddae6b63fb2410c145092eb414b886dc933246 100644 --- a/suite2cases/python-flask.json +++ b/suite2cases/python-flask.json @@ -1,9 +1,20 @@ { "path": "$OET_PATH/testcases/cli-test/python-flask", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-flask" + }, + { + "name": "oe_test_python-flask_install_and_remove_python-flask" + }, + { + "name": "oe_test_python-flask_install_and_remove_python3-flask" + }, + { + "name": "oe_test_python-flask_install_and_remove_python2-flask" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/python-freezegun.json b/suite2cases/python-freezegun.json new file mode 100644 index 0000000000000000000000000000000000000000..2ece441a8d8448afe7378d64a21d3d45b2b240e9 --- /dev/null +++ b/suite2cases/python-freezegun.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-freezegun", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-freezegun_install_and_remove_python-freezegun" + }, + { + "name": "oe_test_python-freezegun_install_and_remove_python3-freezegun" + }, + { + "name": "oe_test_python-freezegun_install_and_remove_python-freezegun-help" + }, + { + "name": "oe_test_python-freezegun_install_and_remove_python2-freezegun" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-gevent.json b/suite2cases/python-gevent.json new file mode 100644 index 0000000000000000000000000000000000000000..86d8b550e8865c973ad5e0bc529c8559f6617f01 --- /dev/null +++ b/suite2cases/python-gevent.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-gevent", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-gevent_install_and_remove_python-gevent" + }, + { + "name": "oe_test_python-gevent_install_and_remove_python3-gevent" + }, + { + "name": "oe_test_python-gevent_install_and_remove_python-gevent-debuginfo" + }, + { + "name": "oe_test_python-gevent_install_and_remove_python-gevent-debugsource" + }, + { + "name": "oe_test_python-gevent_install_and_remove_python-gevent-help" + }, + { + "name": "oe_test_python-gevent_install_and_remove_python2-gevent" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-gflags.json b/suite2cases/python-gflags.json index 01d37f195e979f4d586380f949e437d6c31f2c73..2c6642d8b5660504329be3b5c5ad736ddc4e749f 100644 --- a/suite2cases/python-gflags.json +++ b/suite2cases/python-gflags.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-gflags", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-gflags" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-gitlab.json b/suite2cases/python-gitlab.json index 95d3a263298912c5c74aafd942e503fa27c1c8f3..b19a506705e9eb83312c5f926226c887ccf2b8ec 100644 --- a/suite2cases/python-gitlab.json +++ b/suite2cases/python-gitlab.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/python-gitlab", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gitlab_01" @@ -7,5 +9,5 @@ { "name": "oe_test_gitlab_02" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/python-greenlet.json b/suite2cases/python-greenlet.json index dcc3fc8e8449753195499e80e2a6b04fee5bc06c..1b1a0db397e29266a10034826f16b7a1ca7a575e 100644 --- a/suite2cases/python-greenlet.json +++ b/suite2cases/python-greenlet.json @@ -1,8 +1,32 @@ { - "path": "$OET_PATH/testcases/cli-test/python-greenlet", - "cases": [ - { - "name": "oe_test_greenlet" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/python-greenlet", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_greenlet" + }, + { + "name": "oe_test_python-greenlet_install_and_remove_python-greenlet" + }, + { + "name": "oe_test_python-greenlet_install_and_remove_python3-greenlet" + }, + { + "name": "oe_test_python-greenlet_install_and_remove_python3-greenlet-devel" + }, + { + "name": "oe_test_python-greenlet_install_and_remove_python-greenlet-debugsource" + }, + { + "name": "oe_test_python-greenlet_install_and_remove_python-greenlet-debuginfo" + }, + { + "name": "oe_test_python-greenlet_install_and_remove_python2-greenlet-devel" + }, + { + "name": "oe_test_python-greenlet_install_and_remove_python2-greenlet" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-httplib2.json b/suite2cases/python-httplib2.json index af3c9b3b157e30c91e5a1d82ae52224577dc9969..9a1867ff8d4f845253a37cea674ee60bc55f9275 100644 --- a/suite2cases/python-httplib2.json +++ b/suite2cases/python-httplib2.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-httplib2", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_httplib2" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/python-hypothesis.json b/suite2cases/python-hypothesis.json new file mode 100644 index 0000000000000000000000000000000000000000..b4fe40af3b38509c565a73f59a64757049a7248d --- /dev/null +++ b/suite2cases/python-hypothesis.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-hypothesis", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-hypothesis_install_and_remove_python-hypothesis" + }, + { + "name": "oe_test_python-hypothesis_install_and_remove_python-hypothesis-help" + }, + { + "name": "oe_test_python-hypothesis_install_and_remove_python3-hypothesis" + }, + { + "name": "oe_test_python-hypothesis_install_and_remove_python2-hypothesis" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-idna.json b/suite2cases/python-idna.json new file mode 100644 index 0000000000000000000000000000000000000000..524759dab675693b5eff15340ac8f4955907aa35 --- /dev/null +++ b/suite2cases/python-idna.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-idna", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-idna_install_and_remove_python-idna" + }, + { + "name": "oe_test_python-idna_install_and_remove_python3-idna" + }, + { + "name": "oe_test_python-idna_install_and_remove_python-idna-help" + }, + { + "name": "oe_test_python-idna_install_and_remove_python2-idna" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-importlib-metadata.json b/suite2cases/python-importlib-metadata.json new file mode 100644 index 0000000000000000000000000000000000000000..c1300183d6e01b69d808c33d5b419ff5c2990ff7 --- /dev/null +++ b/suite2cases/python-importlib-metadata.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-importlib-metadata", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-importlib-metadata_install_and_remove_python-importlib-metadata" + }, + { + "name": "oe_test_python-importlib-metadata_install_and_remove_python3-importlib-metadata" + }, + { + "name": "oe_test_python-importlib-metadata_install_and_remove_python-importlib-metadata-help" + }, + { + "name": "oe_test_python-importlib-metadata_install_and_remove_python3-importlib_metadata" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-iso8601.json b/suite2cases/python-iso8601.json new file mode 100644 index 0000000000000000000000000000000000000000..1129af6469673b192637bf37f38b84220230f6c8 --- /dev/null +++ b/suite2cases/python-iso8601.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-iso8601", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-iso8601_install_and_remove_python-iso8601" + }, + { + "name": "oe_test_python-iso8601_install_and_remove_python3-iso8601" + }, + { + "name": "oe_test_python-iso8601_install_and_remove_python2-iso8601" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-jinja2.json b/suite2cases/python-jinja2.json index b2d4a1fe22cfaef1b25aa4bc70c9aedb3fb3b172..4e24e88659daf4abdf20e9beba21e2900410c21c 100644 --- a/suite2cases/python-jinja2.json +++ b/suite2cases/python-jinja2.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/python-jinja2", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_jinja2" + }, + { + "name": "oe_test_python-jinja2_install_and_remove_python-jinja2" + }, + { + "name": "oe_test_python-jinja2_install_and_remove_python3-jinja2" + }, + { + "name": "oe_test_python-jinja2_install_and_remove_python-jinja2-help" + }, + { + "name": "oe_test_python-jinja2_install_and_remove_python2-jinja2" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-junitxml.json b/suite2cases/python-junitxml.json index e85a9981d4559bed22e1861ebce5ba217d6036f4..1d6539cdb45b7fbb657dfd8e4fbd0f9f967f5049 100644 --- a/suite2cases/python-junitxml.json +++ b/suite2cases/python-junitxml.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/python-junitxml", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pyjunitxml" diff --git a/suite2cases/python-kazoo.json b/suite2cases/python-kazoo.json index f6424328282ef9068a8e0f2a16af4cbb26a76a94..3c3aa6877a2b7df9dc776d47b3463625bfebe2a5 100644 --- a/suite2cases/python-kazoo.json +++ b/suite2cases/python-kazoo.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-kazoo", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python-kazoo" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/python-keyring.json b/suite2cases/python-keyring.json index b2fe8a804120d9eb41a51c79cfbe03f9c7d569cd..7db7954b734df2cf35b56a834c4020c0bfa86aec 100644 --- a/suite2cases/python-keyring.json +++ b/suite2cases/python-keyring.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-keyring", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_keyring" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-keyring_13.2.1.json b/suite2cases/python-keyring_13.2.1.json index 2b83e5d2ff5e7fd02993d47e0f443a5d9a46df51..84e45f127814218cd03659c6441881ac6cbd2910 100644 --- a/suite2cases/python-keyring_13.2.1.json +++ b/suite2cases/python-keyring_13.2.1.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/python-keyring", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_keyring-python3" diff --git a/suite2cases/python-lesscpy.json b/suite2cases/python-lesscpy.json index b7f6f6b29210bba11759fc3ad4eb527605dd52ce..4578a19104a8ac5a8ffed2650d4776f336a65d5d 100644 --- a/suite2cases/python-lesscpy.json +++ b/suite2cases/python-lesscpy.json @@ -1,8 +1,10 @@ { "path": "${OET_PATH}/testcases/cli-test/python-lesscpy", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_lesscpy" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-lxml.json b/suite2cases/python-lxml.json index 8c32d3117c70535d1f6b0a081cbd11cbcb73b3b6..55f82ccfbefddbeaa9a32d4b5d15d52b067d2b4b 100644 --- a/suite2cases/python-lxml.json +++ b/suite2cases/python-lxml.json @@ -1,8 +1,29 @@ { - "path": "$OET_PATH/testcases/cli-test/python-lxml", - "cases": [ - { - "name": "oe_test_python3-lxml" - } - ] + "path": "$OET_PATH/testcases/cli-test/python-lxml", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python3-lxml" + }, + { + "name": "oe_test_python-lxml_install_and_remove_python-lxml" + }, + { + "name": "oe_test_python-lxml_install_and_remove_python3-lxml" + }, + { + "name": "oe_test_python-lxml_install_and_remove_python-lxml-help" + }, + { + "name": "oe_test_python-lxml_install_and_remove_python-lxml-debuginfo" + }, + { + "name": "oe_test_python-lxml_install_and_remove_python-lxml-debugsource" + }, + { + "name": "oe_test_python-lxml_install_and_remove_python2-lxml" + } + ] } \ No newline at end of file diff --git a/suite2cases/python-mako.json b/suite2cases/python-mako.json index c56c0ea17e228736d50a6a51b65bf2349287b1d9..8ca4cfd27bb809625d8f9024a24912835e76372b 100644 --- a/suite2cases/python-mako.json +++ b/suite2cases/python-mako.json @@ -1,9 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/python-mako", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-mako" + }, + { + "name": "oe_test_python-mako_install_and_remove_python-mako" + }, + { + "name": "oe_test_python-mako_install_and_remove_python3-mako" + }, + { + "name": "oe_test_python-mako_install_and_remove_python-mako-help" + }, + { + "name": "oe_test_python-mako_install_and_remove_python2-mako" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/python-markdown.json b/suite2cases/python-markdown.json new file mode 100644 index 0000000000000000000000000000000000000000..a3d5d7568ffe6896f97800c0103704777942dddc --- /dev/null +++ b/suite2cases/python-markdown.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-markdown", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-markdown_install_and_remove_python-markdown" + }, + { + "name": "oe_test_python-markdown_install_and_remove_python3-markdown" + }, + { + "name": "oe_test_python-markdown_install_and_remove_python2-markdown" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-markupsafe.json b/suite2cases/python-markupsafe.json new file mode 100644 index 0000000000000000000000000000000000000000..2cd15d96f1ce84a1e7c3b0dc132b0182cfe6a87c --- /dev/null +++ b/suite2cases/python-markupsafe.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-markupsafe", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-markupsafe_install_and_remove_python-markupsafe" + }, + { + "name": "oe_test_python-markupsafe_install_and_remove_python3-markupsafe" + }, + { + "name": "oe_test_python-markupsafe_install_and_remove_python-markupsafe-help" + }, + { + "name": "oe_test_python-markupsafe_install_and_remove_python-markupsafe-debuginfo" + }, + { + "name": "oe_test_python-markupsafe_install_and_remove_python-markupsafe-debugsource" + }, + { + "name": "oe_test_python-markupsafe_install_and_remove_python2-markupsafe" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-meh.json b/suite2cases/python-meh.json new file mode 100644 index 0000000000000000000000000000000000000000..030199c767ab73c248ca037e52611977a8613183 --- /dev/null +++ b/suite2cases/python-meh.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-meh", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-meh_install_and_remove_python-meh" + }, + { + "name": "oe_test_python-meh_install_and_remove_python3-meh" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-nose2.json b/suite2cases/python-nose2.json new file mode 100644 index 0000000000000000000000000000000000000000..92683cfa36ae00318fc219cbc104af3bbc7e11fc --- /dev/null +++ b/suite2cases/python-nose2.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-nose2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-nose2_install_and_remove_python-nose2" + }, + { + "name": "oe_test_python-nose2_install_and_remove_python%{python3_pkgversion}-nose2" + }, + { + "name": "oe_test_python-nose2_install_and_remove_python3-nose2" + }, + { + "name": "oe_test_python-nose2_install_and_remove_python-nose2-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-ordered-set.json b/suite2cases/python-ordered-set.json new file mode 100644 index 0000000000000000000000000000000000000000..0c33197c074951da29c76501735364e18162e927 --- /dev/null +++ b/suite2cases/python-ordered-set.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-ordered-set", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-ordered-set_install_and_remove_python-ordered-set" + }, + { + "name": "oe_test_python-ordered-set_install_and_remove_python3-ordered-set" + }, + { + "name": "oe_test_python-ordered-set_install_and_remove_python2-ordered-set" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-packaging.json b/suite2cases/python-packaging.json new file mode 100644 index 0000000000000000000000000000000000000000..9b0da75d588bc20bbf9863db7856a92138f4b9c9 --- /dev/null +++ b/suite2cases/python-packaging.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-packaging", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-packaging_install_and_remove_python-packaging" + }, + { + "name": "oe_test_python-packaging_install_and_remove_python3-packaging" + }, + { + "name": "oe_test_python-packaging_install_and_remove_python-packaging-help" + }, + { + "name": "oe_test_python-packaging_install_and_remove_python-packaging-doc" + }, + { + "name": "oe_test_python-packaging_install_and_remove_python2-packaging" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-parameterized.json b/suite2cases/python-parameterized.json new file mode 100644 index 0000000000000000000000000000000000000000..60ef302050c2cc1bc3faa28bf38cdae56ee63764 --- /dev/null +++ b/suite2cases/python-parameterized.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-parameterized", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-parameterized_install_and_remove_python-parameterized" + }, + { + "name": "oe_test_python-parameterized_install_and_remove_python3-parameterized" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-pid.json b/suite2cases/python-pid.json new file mode 100644 index 0000000000000000000000000000000000000000..4610137db22839306d19590020dad7608a5bbd2d --- /dev/null +++ b/suite2cases/python-pid.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-pid", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-pid_install_and_remove_python-pid" + }, + { + "name": "oe_test_python-pid_install_and_remove_python3-pid" + }, + { + "name": "oe_test_python-pid_install_and_remove_python2-pid" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-pip.json b/suite2cases/python-pip.json index 1ba01695f66b0aec4329c42414d14dccc6859fd2..717a4b2ce7d544d0b321e9ec7cad2ec00c7779f0 100644 --- a/suite2cases/python-pip.json +++ b/suite2cases/python-pip.json @@ -1,8 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/python-pip", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-pip" + }, + { + "name": "oe_test_python-pip_install_and_remove_python-pip" + }, + { + "name": "oe_test_python-pip_install_and_remove_python%{python3_pkgversion}-pip" + }, + { + "name": "oe_test_python-pip_install_and_remove_python-pip-wheel" + }, + { + "name": "oe_test_python-pip_install_and_remove_python-pip-help" + }, + { + "name": "oe_test_python-pip_install_and_remove_python3-pip" + }, + { + "name": "oe_test_python-pip_install_and_remove_python2-pip" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-productmd.json b/suite2cases/python-productmd.json new file mode 100644 index 0000000000000000000000000000000000000000..56c8eae3c47a9f3c3efe2f27e1dc848ef6c8de1f --- /dev/null +++ b/suite2cases/python-productmd.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-productmd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-productmd_install_and_remove_python-productmd" + }, + { + "name": "oe_test_python-productmd_install_and_remove_python3-productmd" + }, + { + "name": "oe_test_python-productmd_install_and_remove_python2-productmd" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-pyasn1.json b/suite2cases/python-pyasn1.json new file mode 100644 index 0000000000000000000000000000000000000000..a123117af1197fea42debce59dea1625ce96b338 --- /dev/null +++ b/suite2cases/python-pyasn1.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-pyasn1", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-pyasn1_install_and_remove_python-pyasn1" + }, + { + "name": "oe_test_python-pyasn1_install_and_remove_python3-pyasn1" + }, + { + "name": "oe_test_python-pyasn1_install_and_remove_python-pyasn1-help" + }, + { + "name": "oe_test_python-pyasn1_install_and_remove_python2-pyasn1" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-pycparser.json b/suite2cases/python-pycparser.json new file mode 100644 index 0000000000000000000000000000000000000000..16e6e20e9cfcadc7c48f10a79cd5d96b5ab40203 --- /dev/null +++ b/suite2cases/python-pycparser.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-pycparser", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-pycparser_install_and_remove_python-pycparser" + }, + { + "name": "oe_test_python-pycparser_install_and_remove_python3-pycparser" + }, + { + "name": "oe_test_python-pycparser_install_and_remove_python-pycparser-devel" + }, + { + "name": "oe_test_python-pycparser_install_and_remove_python2-pycparser" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-pysocks.json b/suite2cases/python-pysocks.json new file mode 100644 index 0000000000000000000000000000000000000000..a6e8672e2d8d0518e727c0277601467e078f0269 --- /dev/null +++ b/suite2cases/python-pysocks.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-pysocks", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-pysocks_install_and_remove_python-pysocks" + }, + { + "name": "oe_test_python-pysocks_install_and_remove_python-pysocks-help" + }, + { + "name": "oe_test_python-pysocks_install_and_remove_python3-pysocks" + }, + { + "name": "oe_test_python-pysocks_install_and_remove_python2-pysocks" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-pytest-subtests.json b/suite2cases/python-pytest-subtests.json new file mode 100644 index 0000000000000000000000000000000000000000..a84034bb6c213540a94195cd4a16cea5c1153189 --- /dev/null +++ b/suite2cases/python-pytest-subtests.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-pytest-subtests", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-pytest-subtests_install_and_remove_python-pytest-subtests" + }, + { + "name": "oe_test_python-pytest-subtests_install_and_remove_python-pytest-subtests-help" + }, + { + "name": "oe_test_python-pytest-subtests_install_and_remove_python3-pytest-subtests" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-pytest-timeout.json b/suite2cases/python-pytest-timeout.json new file mode 100644 index 0000000000000000000000000000000000000000..0e34b8ff8e6c8492ece4de19e5cb820abc071b7f --- /dev/null +++ b/suite2cases/python-pytest-timeout.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-pytest-timeout", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-pytest-timeout_install_and_remove_python-pytest-timeout" + }, + { + "name": "oe_test_python-pytest-timeout_install_and_remove_python3-pytest-timeout" + }, + { + "name": "oe_test_python-pytest-timeout_install_and_remove_python-pytest-timeout-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-pytoml.json b/suite2cases/python-pytoml.json new file mode 100644 index 0000000000000000000000000000000000000000..93d8b9f3249f815f64f8ee46c24ce822718316f0 --- /dev/null +++ b/suite2cases/python-pytoml.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-pytoml", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-pytoml_install_and_remove_python-pytoml" + }, + { + "name": "oe_test_python-pytoml_install_and_remove_python3-pytoml" + }, + { + "name": "oe_test_python-pytoml_install_and_remove_python-pytoml-help" + }, + { + "name": "oe_test_python-pytoml_install_and_remove_python2-pytoml" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-pyudev.json b/suite2cases/python-pyudev.json new file mode 100644 index 0000000000000000000000000000000000000000..2e0b550462be2edc6a70268f1d33768cb35c2c57 --- /dev/null +++ b/suite2cases/python-pyudev.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-pyudev", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-pyudev_install_and_remove_python-pyudev" + }, + { + "name": "oe_test_python-pyudev_install_and_remove_python3-pyudev" + }, + { + "name": "oe_test_python-pyudev_install_and_remove_python-pyudev-help" + }, + { + "name": "oe_test_python-pyudev_install_and_remove_python2-pyudev" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-reportlab.json b/suite2cases/python-reportlab.json index a6364297c11574bf50ad24b47b5d69addc445bde..ab9d89a74477a47be40c1352f312baa5cde4f576 100644 --- a/suite2cases/python-reportlab.json +++ b/suite2cases/python-reportlab.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/python-reportlab", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-reportlab" diff --git a/suite2cases/python-requests-file.json b/suite2cases/python-requests-file.json new file mode 100644 index 0000000000000000000000000000000000000000..d3639e5dd37bd2075c01a59554414d61d5399254 --- /dev/null +++ b/suite2cases/python-requests-file.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-requests-file", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-requests-file_install_and_remove_python-requests-file" + }, + { + "name": "oe_test_python-requests-file_install_and_remove_python3-requests-file" + }, + { + "name": "oe_test_python-requests-file_install_and_remove_python2-requests-file" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-requests-ftp.json b/suite2cases/python-requests-ftp.json new file mode 100644 index 0000000000000000000000000000000000000000..41634665ff5778ae08fe3f39c839741d9532ae71 --- /dev/null +++ b/suite2cases/python-requests-ftp.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-requests-ftp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-requests-ftp_install_and_remove_python-requests-ftp" + }, + { + "name": "oe_test_python-requests-ftp_install_and_remove_python-requests-ftp-help" + }, + { + "name": "oe_test_python-requests-ftp_install_and_remove_python3-requests-ftp" + }, + { + "name": "oe_test_python-requests-ftp_install_and_remove_python2-requests-ftp" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-requests.json b/suite2cases/python-requests.json index eb48ce09b90ad4cc6d6665fedad0a9a77bb782cb..765d7cafd4abd14c541d1ac92fb25271f1eb120f 100644 --- a/suite2cases/python-requests.json +++ b/suite2cases/python-requests.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/python-requests", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-requests" + }, + { + "name": "oe_test_python-requests_install_and_remove_python-requests" + }, + { + "name": "oe_test_python-requests_install_and_remove_python%{python3_pkgversion}-requests" + }, + { + "name": "oe_test_python-requests_install_and_remove_python2-requests" + }, + { + "name": "oe_test_python-requests_install_and_remove_python-requests-help" + }, + { + "name": "oe_test_python-requests_install_and_remove_python3-requests" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-robotframework.json b/suite2cases/python-robotframework.json index fc8e01c2de6ec82e6076cd27e4a27d25cb9baf2e..d47f34402da90e58cdba4eafd7a6ef1dba77a472 100644 --- a/suite2cases/python-robotframework.json +++ b/suite2cases/python-robotframework.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/cli-test/python-robotframework", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_robotframework_libdoc" diff --git a/suite2cases/python-rsa_3.4.2.json b/suite2cases/python-rsa_3.4.2.json index f1652abb33cfaad483ae189072a66fe3ff624a0a..729d1c9abf5fd6bebc8ea72f202d3a21e8dd3c0b 100644 --- a/suite2cases/python-rsa_3.4.2.json +++ b/suite2cases/python-rsa_3.4.2.json @@ -1,8 +1,10 @@ { "path": "\"${OET_PATH}\"/testcases/cli-test/python-rsa", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-rsa_3.4.2" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-rsa_4.7.2.json b/suite2cases/python-rsa_4.7.2.json index 6d1a95d4d12491dc7e0015becd8f9415e7472627..abb20dfc91396fe10282ecca9cf7d92afe38bb2e 100644 --- a/suite2cases/python-rsa_4.7.2.json +++ b/suite2cases/python-rsa_4.7.2.json @@ -1,8 +1,10 @@ { "path": "\"${OET_PATH}\"/testcases/cli-test/python-rsa", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-rsa_4.7.2" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-rtslib.json b/suite2cases/python-rtslib.json index 3de48aa9ca9b35fa72f4cda1edebe11fe5cbed77..6a39f085490bd5b6f6cc23c8c67903521ea6bec8 100644 --- a/suite2cases/python-rtslib.json +++ b/suite2cases/python-rtslib.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-rtslib", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_target" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-schema.json b/suite2cases/python-schema.json index fde9ec571eda2820f531719550bc4d5e13d348b3..d0ecc8f37ecab2d593d2b3dddfd20be55727ea48 100644 --- a/suite2cases/python-schema.json +++ b/suite2cases/python-schema.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-schema", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-schema" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-scikit-learn.json b/suite2cases/python-scikit-learn.json index d526c8c17b9c2cb617dc72507729a16218aa219c..ad7c97d652f61d5ddd1cb7e5724173eee1f9f8fb 100644 --- a/suite2cases/python-scikit-learn.json +++ b/suite2cases/python-scikit-learn.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-scikit-learn", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-scikit-learn" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-scrypt.json b/suite2cases/python-scrypt.json index 27ebd4eefc73ef5aa6ab3c2339fb9a5b483066ed..e9075c2b51cf85286b7d9bee908a6d3a9074d305 100644 --- a/suite2cases/python-scrypt.json +++ b/suite2cases/python-scrypt.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-scrypt", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-scrypt" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-semantic_version.json b/suite2cases/python-semantic_version.json new file mode 100644 index 0000000000000000000000000000000000000000..77887c4fe7124211dc342915c9ee62abfbc9ce78 --- /dev/null +++ b/suite2cases/python-semantic_version.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-semantic_version", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-semantic_version_install_and_remove_python-semantic_version" + }, + { + "name": "oe_test_python-semantic_version_install_and_remove_python3-semantic_version" + }, + { + "name": "oe_test_python-semantic_version_install_and_remove_python-semantic_version-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-setuptools.json b/suite2cases/python-setuptools.json index 162227589c84f49fce8d7380326fd0cb26177cbc..816138994a01648f87cfd33c8209d0267357ab03 100644 --- a/suite2cases/python-setuptools.json +++ b/suite2cases/python-setuptools.json @@ -1,8 +1,23 @@ { - "path": "$OET_PATH/testcases/cli-test/python-setuptools", - "cases": [ - { - "name": "oe_test_python3-setuptools" - } - ] + "path": "$OET_PATH/testcases/cli-test/python-setuptools", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python3-setuptools" + }, + { + "name": "oe_test_python-setuptools_install_and_remove_python-setuptools" + }, + { + "name": "oe_test_python-setuptools_install_and_remove_python3-setuptools" + }, + { + "name": "oe_test_python-setuptools_install_and_remove_python-setuptools-help" + }, + { + "name": "oe_test_python-setuptools_install_and_remove_python2-setuptools" + } + ] } \ No newline at end of file diff --git a/suite2cases/python-setuptools_scm.json b/suite2cases/python-setuptools_scm.json new file mode 100644 index 0000000000000000000000000000000000000000..3d5c3075f07cce6bf87a0cc0750c8e5728b7ccff --- /dev/null +++ b/suite2cases/python-setuptools_scm.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-setuptools_scm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-setuptools_scm_install_and_remove_python-setuptools_scm" + }, + { + "name": "oe_test_python-setuptools_scm_install_and_remove_python3-setuptools_scm" + }, + { + "name": "oe_test_python-setuptools_scm_install_and_remove_python-setuptools_scm-help" + }, + { + "name": "oe_test_python-setuptools_scm_install_and_remove_python2-setuptools_scm" + }, + { + "name": "oe_test_python-setuptools_scm_install_and_remove_python%{python3_pkgversion}-setuptools_scm" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-simplejson.json b/suite2cases/python-simplejson.json index 231ba3ec8eb9035d50e68f8777b962bb3761b3cf..23e3b7f8e4d4ee3e587fa50bc3eb6d3c8ee63246 100644 --- a/suite2cases/python-simplejson.json +++ b/suite2cases/python-simplejson.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-simplejson", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-simplejson" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-simpleline.json b/suite2cases/python-simpleline.json new file mode 100644 index 0000000000000000000000000000000000000000..208f786900d8bc098136539232b6dd181ec132b2 --- /dev/null +++ b/suite2cases/python-simpleline.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-simpleline", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-simpleline_install_and_remove_python-simpleline" + }, + { + "name": "oe_test_python-simpleline_install_and_remove_python3-simpleline" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-singledispatch.json b/suite2cases/python-singledispatch.json index ec0566880ef6c4725b607acc74e430f50dc3f900..d61771e407475a76c40cd31f1e1a1954ce57ab48 100644 --- a/suite2cases/python-singledispatch.json +++ b/suite2cases/python-singledispatch.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-singledispatch", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-singledispatch" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-six.json b/suite2cases/python-six.json new file mode 100644 index 0000000000000000000000000000000000000000..a0b46ee0f6d582c10b5f3d8906fa38b6adb2a8d4 --- /dev/null +++ b/suite2cases/python-six.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-six", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-six_install_and_remove_python-six" + }, + { + "name": "oe_test_python-six_install_and_remove_python3-six" + }, + { + "name": "oe_test_python-six_install_and_remove_python2-six" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-sortedcontainers.json b/suite2cases/python-sortedcontainers.json index cd6a200fa09115b2fe512c89ce072e55060b9dd3..c0b34ee3d318ac60845356051c72c77fbfbf12de 100644 --- a/suite2cases/python-sortedcontainers.json +++ b/suite2cases/python-sortedcontainers.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/python-sortedcontainers", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-sortedcontainers" + }, + { + "name": "oe_test_python-sortedcontainers_install_and_remove_python-sortedcontainers" + }, + { + "name": "oe_test_python-sortedcontainers_install_and_remove_python3-sortedcontainers" + }, + { + "name": "oe_test_python-sortedcontainers_install_and_remove_python-sortedcontainers-help" + }, + { + "name": "oe_test_python-sortedcontainers_install_and_remove_python2-sortedcontainers" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-sphinx_rtd_theme.json b/suite2cases/python-sphinx_rtd_theme.json new file mode 100644 index 0000000000000000000000000000000000000000..6f696bb4b7299bb3f4e1aabd594baecc7b481878 --- /dev/null +++ b/suite2cases/python-sphinx_rtd_theme.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-sphinx_rtd_theme", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-sphinx_rtd_theme_install_and_remove_python-sphinx_rtd_theme" + }, + { + "name": "oe_test_python-sphinx_rtd_theme_install_and_remove_python3-sphinx_rtd_theme" + }, + { + "name": "oe_test_python-sphinx_rtd_theme_install_and_remove_python2-sphinx_rtd_theme" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-suds2.json b/suite2cases/python-suds2.json index 9ae446be85f26237bb771ef9d86eb74842e9e4b3..2dd41ac4cc24d5e071f7a352c4b1b8f038cb2c04 100644 --- a/suite2cases/python-suds2.json +++ b/suite2cases/python-suds2.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-suds2", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-suds2" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-supervisor.json b/suite2cases/python-supervisor.json index cc05beb9c8419010c31e8c6b9f5520d5cf2d8e93..359906f8adbab44ec1d35a58fa62014001562fa8 100644 --- a/suite2cases/python-supervisor.json +++ b/suite2cases/python-supervisor.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-supervisor", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_supervisord" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/python-sure.json b/suite2cases/python-sure.json index b9054afe740f4ece2458c72c41b6292ae2a3e218..270afbcd35ddbac31145c21ef7134c1d03770d8e 100644 --- a/suite2cases/python-sure.json +++ b/suite2cases/python-sure.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-sure", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-sure" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-systemd.json b/suite2cases/python-systemd.json new file mode 100644 index 0000000000000000000000000000000000000000..2f18d1a448a7b5271f065fa4ffe513478a3964dc --- /dev/null +++ b/suite2cases/python-systemd.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-systemd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-systemd_install_and_remove_python-systemd" + }, + { + "name": "oe_test_python-systemd_install_and_remove_python-systemd-debuginfo" + }, + { + "name": "oe_test_python-systemd_install_and_remove_python3-systemd" + }, + { + "name": "oe_test_python-systemd_install_and_remove_python-systemd-debugsource" + }, + { + "name": "oe_test_python-systemd_install_and_remove_python2-systemd" + }, + { + "name": "oe_test_python-systemd_install_and_remove_python-systemd-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-tempita.json b/suite2cases/python-tempita.json index 753aba5a395fd615763bbb04076019f27df42916..b56199132428e724410a6d5ee35273e7c89b6c6d 100644 --- a/suite2cases/python-tempita.json +++ b/suite2cases/python-tempita.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-tempita", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-tempita" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-testscenarios.json b/suite2cases/python-testscenarios.json new file mode 100644 index 0000000000000000000000000000000000000000..ff7a4bdbc862941464620cd1a58e2f45d734cab0 --- /dev/null +++ b/suite2cases/python-testscenarios.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-testscenarios", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-testscenarios_install_and_remove_python-testscenarios" + }, + { + "name": "oe_test_python-testscenarios_install_and_remove_python3-testscenarios" + }, + { + "name": "oe_test_python-testscenarios_install_and_remove_python2-testscenarios" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-testtools.json b/suite2cases/python-testtools.json new file mode 100644 index 0000000000000000000000000000000000000000..2f1b7f64658be8b7f8c2fecf6e4bbe744c0f10d1 --- /dev/null +++ b/suite2cases/python-testtools.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-testtools", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-testtools_install_and_remove_python-testtools" + }, + { + "name": "oe_test_python-testtools_install_and_remove_python-testtools-help" + }, + { + "name": "oe_test_python-testtools_install_and_remove_python3-testtools" + }, + { + "name": "oe_test_python-testtools_install_and_remove_python2-testtools" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-toml.json b/suite2cases/python-toml.json new file mode 100644 index 0000000000000000000000000000000000000000..ffcca40c0fa70adc8e1f75469d37b5a438629043 --- /dev/null +++ b/suite2cases/python-toml.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-toml", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-toml_install_and_remove_python-toml" + }, + { + "name": "oe_test_python-toml_install_and_remove_python3-toml" + }, + { + "name": "oe_test_python-toml_install_and_remove_python2-toml" + }, + { + "name": "oe_test_python-toml_install_and_remove_python-toml-help" + }, + { + "name": "oe_test_python-toml_install_and_remove_python38-toml" + }, + { + "name": "oe_test_python-toml_install_and_remove_python39-toml" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-tqdm.json b/suite2cases/python-tqdm.json index 496b5158ed5dcd0bec4ccfb98ef82f973f22f224..84bf9c881a32b429d095be77059f9bd783e21961 100644 --- a/suite2cases/python-tqdm.json +++ b/suite2cases/python-tqdm.json @@ -1,14 +1,16 @@ { "path": "$OET_PATH/testcases/cli-test/python-tqdm", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-tqdm" }, - { - "name": "oe_test_python3-tqdm_02" - }, - { - "name": "oe_test_python3-tqdm_03" - } + { + "name": "oe_test_python3-tqdm_02" + }, + { + "name": "oe_test_python3-tqdm_03" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-traceback2.json b/suite2cases/python-traceback2.json new file mode 100644 index 0000000000000000000000000000000000000000..b65fce4be1103bc3ce50326928a24d66611daea8 --- /dev/null +++ b/suite2cases/python-traceback2.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-traceback2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-traceback2_install_and_remove_python-traceback2" + }, + { + "name": "oe_test_python-traceback2_install_and_remove_python3-traceback2" + }, + { + "name": "oe_test_python-traceback2_install_and_remove_python2-traceback2" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-twisted.json b/suite2cases/python-twisted.json index 5f95e17fd8920c7d4a957e45c3c91880ffe29f58..e1d6022c084ba202ff83c3096e907fb9399e97c4 100644 --- a/suite2cases/python-twisted.json +++ b/suite2cases/python-twisted.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-twisted", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python-twisted" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-typing.json b/suite2cases/python-typing.json index b90d1be6eb5ea4b3b09b321b949bde31b6ebb3b3..09946f5c25a15772028839fc16127f90ba349713 100644 --- a/suite2cases/python-typing.json +++ b/suite2cases/python-typing.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/python-typing", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-typing" }, - { + { "name": "oe_test_python3-typing_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-uWSGI.json b/suite2cases/python-uWSGI.json index 04dfdbb7e55f4595c4cc32a816489f84f4d453f7..92c5d585b0271e155403bf06891f5979835595b9 100644 --- a/suite2cases/python-uWSGI.json +++ b/suite2cases/python-uWSGI.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/python-uWSGI", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_uwsgi" diff --git a/suite2cases/python-unittest2.json b/suite2cases/python-unittest2.json new file mode 100644 index 0000000000000000000000000000000000000000..a6c0bfd397eaa7c2a7cd7578593779a7744f90a1 --- /dev/null +++ b/suite2cases/python-unittest2.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-unittest2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-unittest2_install_and_remove_python-unittest2" + }, + { + "name": "oe_test_python-unittest2_install_and_remove_python3-unittest2" + }, + { + "name": "oe_test_python-unittest2_install_and_remove_python2-unittest2" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-urlgrabber.json b/suite2cases/python-urlgrabber.json index ce1cac39b92131fb9cea88644be4bd418858158d..2f11f0636d1ffef693ed57ecd6e9b18b7bb3c709 100644 --- a/suite2cases/python-urlgrabber.json +++ b/suite2cases/python-urlgrabber.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-urlgrabber", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-urlgrabber" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-urllib3.json b/suite2cases/python-urllib3.json index 2024ec86be2dd8910a0396184bbebee89216f3c4..19ee2e7dab680f0b0029aabc56393b1cbf5e61c6 100644 --- a/suite2cases/python-urllib3.json +++ b/suite2cases/python-urllib3.json @@ -1,8 +1,20 @@ { - "path": "$OET_PATH/testcases/cli-test/python-urllib3", - "cases": [ - { - "name": "oe_test_urllib3" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/python-urllib3", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_urllib3" + }, + { + "name": "oe_test_python-urllib3_install_and_remove_python-urllib3" + }, + { + "name": "oe_test_python-urllib3_install_and_remove_python3-urllib3" + }, + { + "name": "oe_test_python-urllib3_install_and_remove_python2-urllib3" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-waitress.json b/suite2cases/python-waitress.json index a5867d3a7a56adfa9ce3159043c6c5a4a48a8bf4..cf4803189bb5b468e4599582fcefadf521ed55a5 100644 --- a/suite2cases/python-waitress.json +++ b/suite2cases/python-waitress.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-waitress", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-waitress" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/python-wcwidth.json b/suite2cases/python-wcwidth.json index 6333007f4b3e3cc5002f1966f91fd1d5bbb1d925..f43a97321bf81c7a14bc6686a1b801240805e676 100644 --- a/suite2cases/python-wcwidth.json +++ b/suite2cases/python-wcwidth.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-wcwidth", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-wcwidth" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-werkzeug.json b/suite2cases/python-werkzeug.json index 3cd3dd9b21103c0cc6aedc82ca955aeb35b33741..07d679bde70bc2ed80d54d359e9b4a88fbea1664 100644 --- a/suite2cases/python-werkzeug.json +++ b/suite2cases/python-werkzeug.json @@ -1,8 +1,29 @@ { - "path": "$OET_PATH/testcases/cli-test/python-werkzeug", - "cases": [ - { - "name": "oe_test_python3-werkzeug" - } - ] + "path": "$OET_PATH/testcases/cli-test/python-werkzeug", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python3-werkzeug" + }, + { + "name": "oe_test_python-werkzeug_install_and_remove_python-werkzeug" + }, + { + "name": "oe_test_python-werkzeug_install_and_remove_python3-werkzeug" + }, + { + "name": "oe_test_python-werkzeug_install_and_remove_python-werkzeug-help" + }, + { + "name": "oe_test_python-werkzeug_install_and_remove_python2-werkzeug" + }, + { + "name": "oe_test_python-werkzeug_install_and_remove_python3-werkzeug-doc" + }, + { + "name": "oe_test_python-werkzeug_install_and_remove_python2-werkzeug-doc" + } + ] } \ No newline at end of file diff --git a/suite2cases/python-wheel.json b/suite2cases/python-wheel.json index fa0f39484a7b29dff392745e5b500ace7ae9d05d..936b1f53e4b78f84945db903ff6494dcbd2a7b87 100644 --- a/suite2cases/python-wheel.json +++ b/suite2cases/python-wheel.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/python-wheel", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python-wheel_python2-wheel_command" @@ -9,6 +12,18 @@ }, { "name": "oe_test_python3-wheel_01" + }, + { + "name": "oe_test_python-wheel_install_and_remove_python-wheel" + }, + { + "name": "oe_test_python-wheel_install_and_remove_python3-wheel" + }, + { + "name": "oe_test_python-wheel_install_and_remove_python-wheel-wheel" + }, + { + "name": "oe_test_python-wheel_install_and_remove_python2-wheel" } ] } \ No newline at end of file diff --git a/suite2cases/python-wrapt.json b/suite2cases/python-wrapt.json index 60cdc443b2326362629c597c5287417934cdc273..bed2c5bf6c5be0960595d6df496aeae6fc452d9c 100644 --- a/suite2cases/python-wrapt.json +++ b/suite2cases/python-wrapt.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-wrapt", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-wrapt" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-xgboost.json b/suite2cases/python-xgboost.json index 06ec683ab6f95ad7b2d81861c4afea70ed2167c8..409e565417653624d393e1894ac753400411ca3f 100644 --- a/suite2cases/python-xgboost.json +++ b/suite2cases/python-xgboost.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-xgboost", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-xgboost" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-xmltodict.json b/suite2cases/python-xmltodict.json index 31e8091006afe5c3f4aefcc17a83f78a2224b69b..bc7e5be0629d1491fd2b6c08ef056105890458b5 100644 --- a/suite2cases/python-xmltodict.json +++ b/suite2cases/python-xmltodict.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python-xmltodict", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-xmltodict" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python-zipp.json b/suite2cases/python-zipp.json new file mode 100644 index 0000000000000000000000000000000000000000..5bcd460ce66ec3956dcd9670bbef53a26336a900 --- /dev/null +++ b/suite2cases/python-zipp.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/python-zipp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_python-zipp_install_and_remove_python-zipp" + }, + { + "name": "oe_test_python-zipp_install_and_remove_python3-zipp" + }, + { + "name": "oe_test_python-zipp_install_and_remove_python-zipp-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/python-zstd.json b/suite2cases/python-zstd.json index 9dba16cf27977a1aa17d9aa4e555ec3c3d1b8486..cf74bc7ba725eda533a4947bf09c46446c307a7d 100644 --- a/suite2cases/python-zstd.json +++ b/suite2cases/python-zstd.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/python-zstd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3_zstd" diff --git a/suite2cases/python3-hashlib.json b/suite2cases/python3-hashlib.json index e9ce879d8728ec5f316003d0845f22150e0a06f3..5cabd03f48d7788593d7aef16edd7c2526f86176 100644 --- a/suite2cases/python3-hashlib.json +++ b/suite2cases/python3-hashlib.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/python3-hashlib", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-hashlib" } ] -} +} \ No newline at end of file diff --git a/suite2cases/python3.json b/suite2cases/python3.json index 12c577121770173bd33a1d18001e5816d3e2f06d..064ac0adf9e5e8da2fe0e4aaa1f5fe3f12eec480 100644 --- a/suite2cases/python3.json +++ b/suite2cases/python3.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/python3", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-devel" @@ -9,6 +12,30 @@ }, { "name": "oe_test_python3-threading" + }, + { + "name": "oe_test_python3_install_and_remove_python3" + }, + { + "name": "oe_test_python3_install_and_remove_python3-unversioned-command" + }, + { + "name": "oe_test_python3_install_and_remove_python3-debug" + }, + { + "name": "oe_test_python3_install_and_remove_python3-devel" + }, + { + "name": "oe_test_python3_install_and_remove_python3-debugsource" + }, + { + "name": "oe_test_python3_install_and_remove_python3-debuginfo" + }, + { + "name": "oe_test_python3_install_and_remove_python3-help" + }, + { + "name": "oe_test_python3_install_and_remove_python3-tkinter" } ] } \ No newline at end of file diff --git a/suite2cases/pytz.json b/suite2cases/pytz.json new file mode 100644 index 0000000000000000000000000000000000000000..0f69a03d22588a148265336f8f3c5dc4492fce81 --- /dev/null +++ b/suite2cases/pytz.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pytz", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pytz_install_and_remove_pytz" + }, + { + "name": "oe_test_pytz_install_and_remove_python3-pytz" + }, + { + "name": "oe_test_pytz_install_and_remove_python2-pytz" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pywbem.json b/suite2cases/pywbem.json index 4c57bf62b47d42a886a1aed740ae67952396ac14..92d579c821168d06c118a6f9bad4e2ce588732d1 100644 --- a/suite2cases/pywbem.json +++ b/suite2cases/pywbem.json @@ -1,12 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/pywbem", - + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pywbem_base_mof_compiler_01" }, { "name": "oe_test_pywbem_base_mof_compiler_02" + }, + { + "name": "oe_test_pywbem_install_and_remove_pywbem" + }, + { + "name": "oe_test_pywbem_install_and_remove_python3-pywbem" + }, + { + "name": "oe_test_pywbem_install_and_remove_python2-pywbem" + }, + { + "name": "oe_test_pywbem_install_and_remove_pywbem-twisted" } ] } \ No newline at end of file diff --git a/suite2cases/pywbem_0.12.4.json b/suite2cases/pywbem_0.12.4.json index c3d750dda20765154bb030b439b450dcc9f45b1f..acb30ad114bdd1d1ca2716bcbedbd27aae8b24d2 100644 --- a/suite2cases/pywbem_0.12.4.json +++ b/suite2cases/pywbem_0.12.4.json @@ -1,6 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/pywbem", - + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pywbem_0.12.4_wbemcli_01" diff --git a/suite2cases/pywbem_1.1.3.json b/suite2cases/pywbem_1.1.3.json index a3eea22c6f0cd8da70edd9061ba897b76d3fc56b..cd689f85adfb312dc60100721ff7bde3b3fd6898 100644 --- a/suite2cases/pywbem_1.1.3.json +++ b/suite2cases/pywbem_1.1.3.json @@ -1,6 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/pywbem", - + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_pywbem_1.1.3_mof_compiler" diff --git a/suite2cases/pyxattr.json b/suite2cases/pyxattr.json new file mode 100644 index 0000000000000000000000000000000000000000..81e68b0a1734ddfb50fb601deca6d41e5c8baeab --- /dev/null +++ b/suite2cases/pyxattr.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pyxattr", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pyxattr_install_and_remove_pyxattr" + }, + { + "name": "oe_test_pyxattr_install_and_remove_python3-pyxattr" + }, + { + "name": "oe_test_pyxattr_install_and_remove_pyxattr-debugsource" + }, + { + "name": "oe_test_pyxattr_install_and_remove_pyxattr-debuginfo" + }, + { + "name": "oe_test_pyxattr_install_and_remove_python2-pyxattr" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pyxdg.json b/suite2cases/pyxdg.json new file mode 100644 index 0000000000000000000000000000000000000000..78c94c6982090144f6abd1c3447d9e49aa5537d8 --- /dev/null +++ b/suite2cases/pyxdg.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/pyxdg", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pyxdg_install_and_remove_pyxdg" + }, + { + "name": "oe_test_pyxdg_install_and_remove_python3-pyxdg" + }, + { + "name": "oe_test_pyxdg_install_and_remove_python2-pyxdg" + } + ] +} \ No newline at end of file diff --git a/suite2cases/pyyaml.json b/suite2cases/pyyaml.json index ecd5577a6621b765cafb5861053226ddd4d4f1e7..a67cbdb6f677bd87eed07ad1f4e1acb3be71a832 100644 --- a/suite2cases/pyyaml.json +++ b/suite2cases/pyyaml.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/pyyaml", - "cases": [ - { - "name": "oe_test_pyyaml" - } - ] + "path": "$OET_PATH/testcases/cli-test/pyyaml", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_pyyaml" + } + ] } \ No newline at end of file diff --git a/suite2cases/qemu.json b/suite2cases/qemu.json index da23ba4a72bb94aea3d5a819f22466ac2b634e54..a7a446ad5ae5329b41f1caae1b0974837d805e9f 100644 --- a/suite2cases/qemu.json +++ b/suite2cases/qemu.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/qemu", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_qemu-guest-agent" @@ -11,4 +13,4 @@ "name": "oe_test_socket_qemu-pr-helper" } ] -} +} \ No newline at end of file diff --git a/suite2cases/qpdf.json b/suite2cases/qpdf.json index f0ccee8a5ff4c5c5469bd0be138d90a57272d509..3e98a6a649ddf2e2033396e86fe0c82eec89f77f 100644 --- a/suite2cases/qpdf.json +++ b/suite2cases/qpdf.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/qpdf", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_qpdf_qpdf_01" diff --git a/suite2cases/qperf.json b/suite2cases/qperf.json index 6af734c52bd43cc6fe2c8a64b5bd005b6fe63039..a672f0109142f01239beedf9b6ee7eabab14fa76 100644 --- a/suite2cases/qperf.json +++ b/suite2cases/qperf.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/qperf", - "machine num":2, + "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_qperf_01" diff --git a/suite2cases/qt5-qtbase.json b/suite2cases/qt5-qtbase.json new file mode 100644 index 0000000000000000000000000000000000000000..349c91f66414eefa1e33bdb4d5a0df5dd18ce493 --- /dev/null +++ b/suite2cases/qt5-qtbase.json @@ -0,0 +1,44 @@ +{ + "path": "$OET_PATH/testcases/cli-test/qt5-qtbase", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-devel" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-mysql" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-static" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-common" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-gui" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-odbc" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-private-devel" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-postgresql" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-examples" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-debugsource" + }, + { + "name": "oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/qt5-qttools.json b/suite2cases/qt5-qttools.json index ee712bc422290cbbc518b9a32b89ed06a710bf6e..99abd20e4cb24f13288a97dff72089ff1baf9890 100644 --- a/suite2cases/qt5-qttools.json +++ b/suite2cases/qt5-qttools.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/qt5-qttools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_qt5-qttools_lconvert-qt5" diff --git a/suite2cases/qt5.json b/suite2cases/qt5.json new file mode 100644 index 0000000000000000000000000000000000000000..97d87a6a4ee0dcc70f6cf9584a84b861117938dc --- /dev/null +++ b/suite2cases/qt5.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/qt5", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_qt5_install_and_remove_qt5" + }, + { + "name": "oe_test_qt5_install_and_remove_qt5-rpm-macros" + }, + { + "name": "oe_test_qt5_install_and_remove_qt5-srpm-macros" + }, + { + "name": "oe_test_qt5_install_and_remove_qt5-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/quota.json b/suite2cases/quota.json index 2a5ba5704cec68bc86b4c36e856a3dd4cb98cedb..868e056cd4f5f7d68fcee2a14bb104da83a9e813 100644 --- a/suite2cases/quota.json +++ b/suite2cases/quota.json @@ -1,11 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/quota", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_quota_nld" }, { "name": "oe_test_service_rpc-rquotad" + }, + { + "name": "oe_test_quota_install_and_remove_quota" + }, + { + "name": "oe_test_quota_install_and_remove_quota-devel" + }, + { + "name": "oe_test_quota_install_and_remove_quota-help" + }, + { + "name": "oe_test_quota_install_and_remove_quota-debugsource" + }, + { + "name": "oe_test_quota_install_and_remove_quota-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rabbitmq-server.json b/suite2cases/rabbitmq-server.json index 5c501690c0a2a958002af2bc3a7d0be24820c744..4bfd9e1e38b03932b89fc4994bccc4fac27c6c1f 100644 --- a/suite2cases/rabbitmq-server.json +++ b/suite2cases/rabbitmq-server.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/rabbitmq-server", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rabbitmqctl_access" @@ -36,8 +38,8 @@ { "name": "oe_test_rabbitmq-server" }, - { - "name": "oe_test_service_rabbitmq-server" - } + { + "name": "oe_test_service_rabbitmq-server" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/radvd.json b/suite2cases/radvd.json index e9dc8fb8a86fc8989bd8208eff58dd5dac5a7ed1..08643160dce317d7a6ec165ca9f01a8ff9b07b91 100644 --- a/suite2cases/radvd.json +++ b/suite2cases/radvd.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/radvd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_radvd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rapidjson.json b/suite2cases/rapidjson.json index b7ee25726d33bee35e03a194d1e787550557cb28..7bd1b7d6e2bdd492fb60aa471848681d4e02dbaa 100644 --- a/suite2cases/rapidjson.json +++ b/suite2cases/rapidjson.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/rapidjson", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rapidjson" } ] -} +} \ No newline at end of file diff --git a/suite2cases/raptor2.json b/suite2cases/raptor2.json index c4d10fd6e6c902abc06f9c221866ae3c7fe9b491..35e70842ca5a4d0d70ef5fcd986db18a0711b574 100644 --- a/suite2cases/raptor2.json +++ b/suite2cases/raptor2.json @@ -1,17 +1,19 @@ { - "path": "$OET_PATH/testcases/cli-test/raptor2", - "cases": [ - { - "name": "oe_test_raptor2_rapper_base_01" - }, - { - "name": "oe_test_raptor2_rapper_base_02" - }, - { - "name": "oe_test_raptor2_rapper_base_03" - }, - { - "name": "oe_test_raptor2_rapper_base_04" - } - ] + "path": "$OET_PATH/testcases/cli-test/raptor2", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_raptor2_rapper_base_01" + }, + { + "name": "oe_test_raptor2_rapper_base_02" + }, + { + "name": "oe_test_raptor2_rapper_base_03" + }, + { + "name": "oe_test_raptor2_rapper_base_04" + } + ] } \ No newline at end of file diff --git a/suite2cases/rasdaemon.json b/suite2cases/rasdaemon.json index 126a9d0651a8ae96a99197ab4c5cb2182e0b47fc..cbf7e593f8dcf104cafda005c01000efb66edd09 100644 --- a/suite2cases/rasdaemon.json +++ b/suite2cases/rasdaemon.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/rasdaemon", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_rasdaemon" @@ -8,4 +10,4 @@ "name": "oe_test_service_ras-mc-ctl" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rasqal.json b/suite2cases/rasqal.json index 71e943097677b86db75d3802e720f8322087f5e2..b7c415a1fd021ea73e04c11cd7de5672a949b063 100644 --- a/suite2cases/rasqal.json +++ b/suite2cases/rasqal.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/rasqal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_roqet_base_01" @@ -14,7 +16,4 @@ "name": "oe_test_roqet_base_04" } ] -} - - - +} \ No newline at end of file diff --git a/suite2cases/rdate.json b/suite2cases/rdate.json index 35e3aeb320db38567eb7d4af38954c5cdeb1754d..729838fe28b1bbc3c9d2c021a53e5f67885d8ef1 100644 --- a/suite2cases/rdate.json +++ b/suite2cases/rdate.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/rdate", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rdate" - } - ] -} + } + ] +} \ No newline at end of file diff --git a/suite2cases/rdma-core.json b/suite2cases/rdma-core.json index 35c8fc7586c3f6fa6f1487c430aafdbb9882a6fc..98067720c46e22c42d0f86faadb780a59dff5854 100644 --- a/suite2cases/rdma-core.json +++ b/suite2cases/rdma-core.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/rdma-core", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_srp_daemon" @@ -7,6 +10,54 @@ { "name": "oe_test_socket_ibacm", "machine type": "physical" + }, + { + "name": "oe_test_rdma-core_install_and_remove_rdma-core" + }, + { + "name": "oe_test_rdma-core_install_and_remove_infiniband-diags" + }, + { + "name": "oe_test_rdma-core_install_and_remove_librdmacm" + }, + { + "name": "oe_test_rdma-core_install_and_remove_rdma-core-help" + }, + { + "name": "oe_test_rdma-core_install_and_remove_rdma-core-devel" + }, + { + "name": "oe_test_rdma-core_install_and_remove_infiniband-diags-compat" + }, + { + "name": "oe_test_rdma-core_install_and_remove_libibverbs" + }, + { + "name": "oe_test_rdma-core_install_and_remove_libibverbs-utils" + }, + { + "name": "oe_test_rdma-core_install_and_remove_librdmacm-utils" + }, + { + "name": "oe_test_rdma-core_install_and_remove_python3-pyverbs" + }, + { + "name": "oe_test_rdma-core_install_and_remove_ibacm" + }, + { + "name": "oe_test_rdma-core_install_and_remove_iwpmd" + }, + { + "name": "oe_test_rdma-core_install_and_remove_libibumad" + }, + { + "name": "oe_test_rdma-core_install_and_remove_srp_daemon" + }, + { + "name": "oe_test_rdma-core_install_and_remove_rdma-core-debugsource" + }, + { + "name": "oe_test_rdma-core_install_and_remove_rdma-core-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/readline.json b/suite2cases/readline.json new file mode 100644 index 0000000000000000000000000000000000000000..77855a11ce67fa46a5cae2370e78ee77a41b6ea0 --- /dev/null +++ b/suite2cases/readline.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/readline", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_readline_install_and_remove_readline" + }, + { + "name": "oe_test_readline_install_and_remove_readline-devel" + }, + { + "name": "oe_test_readline_install_and_remove_readline-help" + }, + { + "name": "oe_test_readline_install_and_remove_readline-debuginfo" + }, + { + "name": "oe_test_readline_install_and_remove_readline-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/realmd.json b/suite2cases/realmd.json index 0430638a9e5ad7ea26cc0777a2e33a5b892a9751..ae2e5402212aef2cf9e73a96d7608cba175c0e16 100644 --- a/suite2cases/realmd.json +++ b/suite2cases/realmd.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/realmd", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_realmd" + }, + { + "name": "oe_test_realmd_install_and_remove_realmd" + }, + { + "name": "oe_test_realmd_install_and_remove_realmd-help" + }, + { + "name": "oe_test_realmd_install_and_remove_realmd-debugsource" + }, + { + "name": "oe_test_realmd_install_and_remove_realmd-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/redis.json b/suite2cases/redis.json index 363ad0bc4114ba368d50ea675045cc43bcc71ab1..263389938f262495692188912196735b098d8a16 100644 --- a/suite2cases/redis.json +++ b/suite2cases/redis.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/redis", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_redis" @@ -12,6 +15,15 @@ }, { "name": "oe_test_redis_02" + }, + { + "name": "oe_test_redis_install_and_remove_redis" + }, + { + "name": "oe_test_redis_install_and_remove_redis-debuginfo" + }, + { + "name": "oe_test_redis_install_and_remove_redis-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/redis5.json b/suite2cases/redis5.json index 4ef94716dbc7c78f2693c239f10000a3fe577d91..54b33f70ad4d3c5f53fcbf85166ac801951a2a2e 100644 --- a/suite2cases/redis5.json +++ b/suite2cases/redis5.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/redis5", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_redis5-sentinel" diff --git a/suite2cases/redis6.json b/suite2cases/redis6.json index d0305164d48a80bbfe13f3dbc7a35ddb79e6f7bb..db1e154de2c3c99a32d6405f0cc1255b7584ee34 100644 --- a/suite2cases/redis6.json +++ b/suite2cases/redis6.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/redis6", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_redis6-sentinel" diff --git a/suite2cases/redland.json b/suite2cases/redland.json index 9a6424cdff2ec3c86afefea590367f36d8e37c38..c08f4bdf0077f6faf88ea75c33c2c37cfb4b6353 100644 --- a/suite2cases/redland.json +++ b/suite2cases/redland.json @@ -1,11 +1,13 @@ { - "path": "$OET_PATH/testcases/cli-test/redland", - "cases": [ - { - "name": "oe_test_redland_rdfproc_01" - }, - { - "name": "oe_test_redland_rdfproc_02" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/redland", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_redland_rdfproc_01" + }, + { + "name": "oe_test_redland_rdfproc_02" + } + ] +} \ No newline at end of file diff --git a/suite2cases/regexp.json b/suite2cases/regexp.json new file mode 100644 index 0000000000000000000000000000000000000000..9ceb3a4181df5dcccb4d7dc48a003f37a4139f9a --- /dev/null +++ b/suite2cases/regexp.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/regexp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_regexp_install_and_remove_regexp" + } + ] +} \ No newline at end of file diff --git a/suite2cases/resource-agents.json b/suite2cases/resource-agents.json index 8927d639ae74ff0858bebc97604f5da01da1269b..58b8a294bc41a2cc817efa6938a2ca9d45d4f286 100644 --- a/suite2cases/resource-agents.json +++ b/suite2cases/resource-agents.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/resource-agents", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ldirectord" @@ -8,4 +10,4 @@ "name": "oe_test_target_resource-agents-deps" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rhash.json b/suite2cases/rhash.json index 29e82cab650943904966ae2c82b45dddd50714b5..42f3328425137f6334321c006383d469ea5ea35c 100644 --- a/suite2cases/rhash.json +++ b/suite2cases/rhash.json @@ -2,24 +2,26 @@ "path": "$OET_PATH/testcases/cli-test/rhash", "machine num": 1, "machine type": "kvm", + "cpu": 2, + "memory": 4, "cases": [ { - "name": "oe_test_rhash_base_rhash_01" + "name": "oe_test_rhash_base_rhash_01" }, { - "name": "oe_test_rhash_base_rhash_02" + "name": "oe_test_rhash_base_rhash_02" }, { - "name": "oe_test_rhash_base_rhash_03" + "name": "oe_test_rhash_base_rhash_03" }, { - "name": "oe_test_rhash_base_rhash_04" + "name": "oe_test_rhash_base_rhash_04" }, { - "name": "oe_test_rhash_base_rhash_05" + "name": "oe_test_rhash_base_rhash_05" }, { - "name": "oe_test_rhash_base_rhash_06" + "name": "oe_test_rhash_base_rhash_06" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rhash_1.4.0.json b/suite2cases/rhash_1.4.0.json index 9fe5b695b0f4c5f9dfcebbe00dd9475c192396cb..3c4320ea848021148bd08458d79401fec2ce981c 100644 --- a/suite2cases/rhash_1.4.0.json +++ b/suite2cases/rhash_1.4.0.json @@ -2,9 +2,11 @@ "path": "$OET_PATH/testcases/cli-test/rhash", "machine num": 1, "machine type": "kvm", + "cpu": 2, + "memory": 4, "cases": [ { - "name": "oe_test_rhash_1.4.0_rhash" + "name": "oe_test_rhash_1.4.0_rhash" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rhash_1.4.2.json b/suite2cases/rhash_1.4.2.json index eba41aeb444bc84d314e9fd7c1ae2e8f3bf7652b..aa71a5383a20ef29f386a003360848473517e84b 100644 --- a/suite2cases/rhash_1.4.2.json +++ b/suite2cases/rhash_1.4.2.json @@ -2,9 +2,11 @@ "path": "$OET_PATH/testcases/cli-test/rhash", "machine num": 1, "machine type": "kvm", + "cpu": 2, + "memory": 4, "cases": [ { - "name": "oe_test_rhash_1.4.2_rhash" + "name": "oe_test_rhash_1.4.2_rhash" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rhino.json b/suite2cases/rhino.json index f9a6f6fd1133bd0d9ff5502a5cfb888f9827893c..ec0a4285c3e5f5a8c28e754f69b676c2e86281f3 100644 --- a/suite2cases/rhino.json +++ b/suite2cases/rhino.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/rhino", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rhino_01" @@ -8,4 +10,4 @@ "name": "oe_test_rhino_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rinetd.json b/suite2cases/rinetd.json index 85f9dd6c4cf807762e4e1623171ea735dd8ad9b9..8639c5fc80ca613125b48eed21f987c83026f146 100644 --- a/suite2cases/rinetd.json +++ b/suite2cases/rinetd.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/rinetd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_rinetd" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/rng-tools.json b/suite2cases/rng-tools.json index 28acf0381fb5b38408573f0c2a9230a0bce5e2c4..341b706b519ebf9b6c7fabc4abf3d3acb0bea7a4 100644 --- a/suite2cases/rng-tools.json +++ b/suite2cases/rng-tools.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/rng-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_rngd" + }, + { + "name": "oe_test_rng-tools_install_and_remove_rng-tools" + }, + { + "name": "oe_test_rng-tools_install_and_remove_rng-tools-debugsource" + }, + { + "name": "oe_test_rng-tools_install_and_remove_rng-tools-debuginfo" + }, + { + "name": "oe_test_rng-tools_install_and_remove_rng-tools-help" + }, + { + "name": "oe_test_rng-tools_install_and_remove_rng-tools-doc" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rocksdb.json b/suite2cases/rocksdb.json index 10064f1279d0963fa35ed6a4e493f9491035f4f1..ca3c36a09372b3c3ce78c67a67b1651ecc18ad16 100644 --- a/suite2cases/rocksdb.json +++ b/suite2cases/rocksdb.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/rocksdb", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rocksdb" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rootfiles.json b/suite2cases/rootfiles.json new file mode 100644 index 0000000000000000000000000000000000000000..aacfa71b6a5d4163f348b84c6442121bae16515f --- /dev/null +++ b/suite2cases/rootfiles.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/rootfiles", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_rootfiles_install_and_remove_rootfiles" + } + ] +} \ No newline at end of file diff --git a/suite2cases/rootsh.json b/suite2cases/rootsh.json index 7f26ea15fe12e6be5449c4a00d96260a77678eca..725719548e46ba0f8752d4fae43510feedd53022 100644 --- a/suite2cases/rootsh.json +++ b/suite2cases/rootsh.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/rootsh", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rootsh01" diff --git a/suite2cases/rpcbind.json b/suite2cases/rpcbind.json index 0ae31f6310dae1cd04357cb9ee3dcca296fe085d..0f52b606feafc1adef1b7fb6406b5e8b8fdb8885 100644 --- a/suite2cases/rpcbind.json +++ b/suite2cases/rpcbind.json @@ -1,11 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/rpcbind", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_rpcbind" }, { "name": "oe_test_socket_rpcbind" + }, + { + "name": "oe_test_rpcbind_install_and_remove_rpcbind" + }, + { + "name": "oe_test_rpcbind_install_and_remove_rpcbind-help" + }, + { + "name": "oe_test_rpcbind_install_and_remove_rpcbind-debuginfo" + }, + { + "name": "oe_test_rpcbind_install_and_remove_rpcbind-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rpcsvc-proto.json b/suite2cases/rpcsvc-proto.json index 720aa3f4a3770ed190bb8d80e04e89c9f7fe5892..4c99e5c8e0ed2cb931c484d9918105f966a4d900 100644 --- a/suite2cases/rpcsvc-proto.json +++ b/suite2cases/rpcsvc-proto.json @@ -1,8 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/rpcsvc-proto", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rpcsvc-proto_rpcgen" + }, + { + "name": "oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto" + }, + { + "name": "oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-devel" + }, + { + "name": "oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-help" + }, + { + "name": "oe_test_rpcsvc-proto_install_and_remove_rpcgen" + }, + { + "name": "oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-debuginfo" + }, + { + "name": "oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rpm.json b/suite2cases/rpm.json new file mode 100644 index 0000000000000000000000000000000000000000..43fc6ddfb9091bfaa7b38bd5db1cc68de0a40fea --- /dev/null +++ b/suite2cases/rpm.json @@ -0,0 +1,38 @@ +{ + "path": "$OET_PATH/testcases/cli-test/rpm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_rpm_install_and_remove_rpm" + }, + { + "name": "oe_test_rpm_install_and_remove_rpm-build" + }, + { + "name": "oe_test_rpm_install_and_remove_python3-rpm" + }, + { + "name": "oe_test_rpm_install_and_remove_rpm-libs" + }, + { + "name": "oe_test_rpm_install_and_remove_rpm-plugin-systemd-inhibit" + }, + { + "name": "oe_test_rpm_install_and_remove_rpm-help" + }, + { + "name": "oe_test_rpm_install_and_remove_rpm-devel" + }, + { + "name": "oe_test_rpm_install_and_remove_rpm-debugsource" + }, + { + "name": "oe_test_rpm_install_and_remove_rpm-debuginfo" + }, + { + "name": "oe_test_rpm_install_and_remove_python2-rpm" + } + ] +} \ No newline at end of file diff --git a/suite2cases/rpmdevtools.json b/suite2cases/rpmdevtools.json index 40884a485bfe62473883ce090af4d250c5721a99..2301253ec47578f33291253fd60c40ff8955b6ee 100644 --- a/suite2cases/rpmdevtools.json +++ b/suite2cases/rpmdevtools.json @@ -1,20 +1,22 @@ { - "path": "$OET_PATH/testcases/cli-test/rpmdevtools", - "cases": [ - { - "name": "oe_test_rpmdevtools_rpmargs" - }, - { - "name": "oe_test_rpmdevtools_rpmdev-rmdevelrpms" - }, - { - "name": "oe_test_rpmdevtools_rpmdev-vercmp" - }, - { - "name": "oe_test_rpmdevtools_rpmdev-wipetree" - }, - { - "name": "oe_test_rpmdevtools_rpmdev-bumpspec" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/rpmdevtools", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_rpmdevtools_rpmargs" + }, + { + "name": "oe_test_rpmdevtools_rpmdev-rmdevelrpms" + }, + { + "name": "oe_test_rpmdevtools_rpmdev-vercmp" + }, + { + "name": "oe_test_rpmdevtools_rpmdev-wipetree" + }, + { + "name": "oe_test_rpmdevtools_rpmdev-bumpspec" + } + ] +} \ No newline at end of file diff --git a/suite2cases/rpmlint.json b/suite2cases/rpmlint.json index cc9860827f5d657d9d9d2b9ed1eecd4384c199e5..ec47442c51932a07db6dd85f3f3163210adddcb8 100644 --- a/suite2cases/rpmlint.json +++ b/suite2cases/rpmlint.json @@ -1,11 +1,13 @@ { "path": "${OET_PATH}/testcases/cli-test/rpmlint", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rpmdiff" }, - { - "name": "oe_test_rpmlint" - } + { + "name": "oe_test_rpmlint" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/rrdtool.json b/suite2cases/rrdtool.json index 437e81b688cde92bd264104eee125a9f5da31490..66e0145e417e1919dfa44b6a4d63134a2f81593f 100644 --- a/suite2cases/rrdtool.json +++ b/suite2cases/rrdtool.json @@ -1,113 +1,146 @@ { - "path": "$OET_PATH/testcases/cli-test/rrdtool", - "cases": [ - { - "name": "oe_test_service_rrdcached" - }, - { - "name": "oe_test_socket_rrdcached" - }, - { - "name": "oe_test_rrdtool_create_01" - }, - { - "name": "oe_test_rrdtool_create_02" - }, - { - "name": "oe_test_rrdtool_update" - }, - { - "name": "oe_test_rrdtool_graph_01" - }, - { - "name": "oe_test_rrdtool_graph_02" - }, - { - "name": "oe_test_rrdtool_graph_03" - }, - { - "name": "oe_test_rrdtool_graph_04" - }, - { - "name": "oe_test_rrdtool_graph_05" - }, - { - "name": "oe_test_rrdtool_graph_06" - }, - { - "name": "oe_test_rrdtool_graph_07" - }, - { - "name": "oe_test_rrdtool_graph_08" - }, - { - "name": "oe_test_rrdtool_graph_09" - }, - { - "name": "oe_test_rrdtool_graph_10" - }, - { - "name": "oe_test_rrdtool_graphv_01" - }, - { - "name": "oe_test_rrdtool_graphv_02" - }, - { - "name": "oe_test_rrdtool_graphv_03" - }, - { - "name": "oe_test_rrdtool_graphv_04" - }, - { - "name": "oe_test_rrdtool_graphv_05" - }, - { - "name": "oe_test_rrdtool_graphv_06" - }, - { - "name": "oe_test_rrdtool_graphv_07" - }, - { - "name": "oe_test_rrdtool_graphv_08" - }, - { - "name": "oe_test_rrdtool_graphv_09" - }, - { - "name": "oe_test_rrdtool_graphv_10" - }, - { - "name": "oe_test_rrdtool_dump" - }, - { - "name": "oe_test_rrdtool_restore" - }, - { - "name": "oe_test_rrdtool_fetch" - }, - { - "name": "oe_test_rrdtool_info" - }, - { - "name": "oe_test_rrdtool_xport_01" - }, - { - "name": "oe_test_rrdtool_xport_02" - }, - { - "name": "oe_test_rrdtool_flushcached" - }, - { - "name": "oe_test_rrdtool_rrdcached_01" - }, - { - "name": "oe_test_rrdtool_rrdcached_02" - }, - { - "name": "oe_test_rrdtool_rrdcreate_01" - }, - { - "name": "oe_test_rrdtool_rrdcreate_02" - } - ] -} + "path": "$OET_PATH/testcases/cli-test/rrdtool", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_service_rrdcached" + }, + { + "name": "oe_test_socket_rrdcached" + }, + { + "name": "oe_test_rrdtool_create_01" + }, + { + "name": "oe_test_rrdtool_create_02" + }, + { + "name": "oe_test_rrdtool_update" + }, + { + "name": "oe_test_rrdtool_graph_01" + }, + { + "name": "oe_test_rrdtool_graph_02" + }, + { + "name": "oe_test_rrdtool_graph_03" + }, + { + "name": "oe_test_rrdtool_graph_04" + }, + { + "name": "oe_test_rrdtool_graph_05" + }, + { + "name": "oe_test_rrdtool_graph_06" + }, + { + "name": "oe_test_rrdtool_graph_07" + }, + { + "name": "oe_test_rrdtool_graph_08" + }, + { + "name": "oe_test_rrdtool_graph_09" + }, + { + "name": "oe_test_rrdtool_graph_10" + }, + { + "name": "oe_test_rrdtool_graphv_01" + }, + { + "name": "oe_test_rrdtool_graphv_02" + }, + { + "name": "oe_test_rrdtool_graphv_03" + }, + { + "name": "oe_test_rrdtool_graphv_04" + }, + { + "name": "oe_test_rrdtool_graphv_05" + }, + { + "name": "oe_test_rrdtool_graphv_06" + }, + { + "name": "oe_test_rrdtool_graphv_07" + }, + { + "name": "oe_test_rrdtool_graphv_08" + }, + { + "name": "oe_test_rrdtool_graphv_09" + }, + { + "name": "oe_test_rrdtool_graphv_10" + }, + { + "name": "oe_test_rrdtool_dump" + }, + { + "name": "oe_test_rrdtool_restore" + }, + { + "name": "oe_test_rrdtool_fetch" + }, + { + "name": "oe_test_rrdtool_info" + }, + { + "name": "oe_test_rrdtool_xport_01" + }, + { + "name": "oe_test_rrdtool_xport_02" + }, + { + "name": "oe_test_rrdtool_flushcached" + }, + { + "name": "oe_test_rrdtool_rrdcached_01" + }, + { + "name": "oe_test_rrdtool_rrdcached_02" + }, + { + "name": "oe_test_rrdtool_rrdcreate_01" + }, + { + "name": "oe_test_rrdtool_rrdcreate_02" + }, + { + "name": "oe_test_rrdtool_install_and_remove_rrdtool" + }, + { + "name": "oe_test_rrdtool_install_and_remove_python3-rrdtool" + }, + { + "name": "oe_test_rrdtool_install_and_remove_rrdtool-tcl" + }, + { + "name": "oe_test_rrdtool_install_and_remove_rrdtool-ruby" + }, + { + "name": "oe_test_rrdtool_install_and_remove_rrdtool-lua" + }, + { + "name": "oe_test_rrdtool_install_and_remove_rrdtool-devel" + }, + { + "name": "oe_test_rrdtool_install_and_remove_rrdtool-help" + }, + { + "name": "oe_test_rrdtool_install_and_remove_rrdtool-perl" + }, + { + "name": "oe_test_rrdtool_install_and_remove_rrdtool-debugsource" + }, + { + "name": "oe_test_rrdtool_install_and_remove_rrdtool-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/rsync.json b/suite2cases/rsync.json index 8febd219135ef8d8c64b77588290707576eb801d..8083a44f29946ccb9d549c4b9fada65249991095 100644 --- a/suite2cases/rsync.json +++ b/suite2cases/rsync.json @@ -1,11 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/rsync", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_rsyncd" }, { "name": "oe_test_socket_rsyncd" + }, + { + "name": "oe_test_rsync_install_and_remove_rsync" + }, + { + "name": "oe_test_rsync_install_and_remove_rsync-help" + }, + { + "name": "oe_test_rsync_install_and_remove_rsync-debuginfo" + }, + { + "name": "oe_test_rsync_install_and_remove_rsync-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rsyslog.json b/suite2cases/rsyslog.json index d0ef6fbda6d605079771f1083735271eb6edacd9..07e2f89a6e6e927a1d874f42354bd892615cc737 100644 --- a/suite2cases/rsyslog.json +++ b/suite2cases/rsyslog.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/rsyslog", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rsyslog_abnormal_config" @@ -81,6 +84,81 @@ }, { "name": "oe_test_service_rsyslog" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-mmnormalize" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-mmkubernetes" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-pgsql" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-rabbitmq" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-elasticsearch" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-mmjsonparse" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-mysql" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-mmtaghostname" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-kafka" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-mongodb" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-omamqp1" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-relp" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-snmp" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-mmsnmptrapd" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-mmaudit" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-hiredis" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-crypto" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-gssapi" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-gnutls" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-udpspoof" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-debuginfo" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-debugsource" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-help" + }, + { + "name": "oe_test_rsyslog_install_and_remove_rsyslog-doc" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rtkit.json b/suite2cases/rtkit.json index a2d6868497a43c9fc094f8cd031888dd90a62e79..82674b74e617d3b0e986ea5fec975b47891d1584 100644 --- a/suite2cases/rtkit.json +++ b/suite2cases/rtkit.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/rtkit", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_rtkit-daemon" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ruby.json b/suite2cases/ruby.json index ccbac8909699d397071cead59305f95f3907d43f..dfb75d2794453913a58423b7f2247fb6077e1721 100644 --- a/suite2cases/ruby.json +++ b/suite2cases/ruby.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/ruby", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_erb" @@ -36,6 +39,87 @@ }, { "name": "oe_test_ruby" + }, + { + "name": "oe_test_ruby_install_and_remove_ruby" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-did_you_mean" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-rss" + }, + { + "name": "oe_test_ruby_install_and_remove_ruby-devel" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygems" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-rake" + }, + { + "name": "oe_test_ruby_install_and_remove_ruby-irb" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-rdoc" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-bigdecimal" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-io-console" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-json" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-minitest" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-openssl" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-rexml" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-typeprof" + }, + { + "name": "oe_test_ruby_install_and_remove_ruby-bundled-gems" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygems-devel" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-rbs" + }, + { + "name": "oe_test_ruby_install_and_remove_ruby-help" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-psych" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-test-unit" + }, + { + "name": "oe_test_ruby_install_and_remove_ruby-debuginfo" + }, + { + "name": "oe_test_ruby_install_and_remove_ruby-debugsource" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-power_assert" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-bundler" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-net-telnet" + }, + { + "name": "oe_test_ruby_install_and_remove_rubygem-xmlrpc" } ] } \ No newline at end of file diff --git a/suite2cases/rubygem-ZenTest.json b/suite2cases/rubygem-ZenTest.json index e3df5a35221387a27be1eca30d7fc0d199e7a38f..51978888422d93733f9bbcdc5cb6f5c9de09e425 100644 --- a/suite2cases/rubygem-ZenTest.json +++ b/suite2cases/rubygem-ZenTest.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/rubygem-ZenTest", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_zentest_autotest" @@ -11,4 +13,4 @@ "name": "oe_test_zentest_zentest" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rubygem-ZenTest_4.12.1.json b/suite2cases/rubygem-ZenTest_4.12.1.json index b8265f54d92157d0e465583e326543ef09d67942..cb826099b4de6c16a5bd1568f077a8cf27950700 100644 --- a/suite2cases/rubygem-ZenTest_4.12.1.json +++ b/suite2cases/rubygem-ZenTest_4.12.1.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/rubygem-ZenTest", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_zentest-4.12.1_autotest" diff --git a/suite2cases/rubygem-asciidoctor.json b/suite2cases/rubygem-asciidoctor.json index 606ea341ed3228dbcf5e77fa2100bdf5ccaf6ac7..75a87fcc2b6667c642cdcd2565b9d601369e78fd 100755 --- a/suite2cases/rubygem-asciidoctor.json +++ b/suite2cases/rubygem-asciidoctor.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/rubygem-asciidoctor", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rubygem-asciidoctor_asciidoctor_01" @@ -9,6 +12,12 @@ }, { "name": "oe_test_rubygem-asciidoctor_asciidoctor_03" + }, + { + "name": "oe_test_rubygem-asciidoctor_install_and_remove_rubygem-asciidoctor" + }, + { + "name": "oe_test_rubygem-asciidoctor_install_and_remove_rubygem-asciidoctor-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rubygem-bacon.json b/suite2cases/rubygem-bacon.json index ab92d8cf0c3fd4601cb69964fe6169aae91205ad..e0a13e5bc385814f71d2281d16064af4cbd6f1f7 100644 --- a/suite2cases/rubygem-bacon.json +++ b/suite2cases/rubygem-bacon.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/rubygem-bacon", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_bacon_01" @@ -8,4 +10,4 @@ "name": "oe_test_bacon_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rubygem-bundler.json b/suite2cases/rubygem-bundler.json index 2df2848773db32917b6ae30f6f0c29c821b2d44c..e420aa9b09c16be08b0e112f64d817a5dec13b74 100644 --- a/suite2cases/rubygem-bundler.json +++ b/suite2cases/rubygem-bundler.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/rubygem-bundler", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rubygem-bundler_bundle_01" diff --git a/suite2cases/rubygem-fluentd.json b/suite2cases/rubygem-fluentd.json index 9bc34322ef2ac8c2a7fd0ef5f758e6f1713e9ecb..d030b01a6e5e3034e4342b3855d3b9cff191c273 100644 --- a/suite2cases/rubygem-fluentd.json +++ b/suite2cases/rubygem-fluentd.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/rubygem-fluentd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_fluent_cap_ctl" diff --git a/suite2cases/rubygem-puma.json b/suite2cases/rubygem-puma.json index 66052f2212685368820df7512b38a0d151858d7c..a8d09adf566f57960198d7295dfebc7013318697 100644 --- a/suite2cases/rubygem-puma.json +++ b/suite2cases/rubygem-puma.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/rubygem-puma", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rubygem-puma" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/rubygem-redcarpet.json b/suite2cases/rubygem-redcarpet.json index a3a0ac38d90396c887555433a2a02030fb7af5cf..a353c6590ec32ce30eb60b5e72a24967b38a44e0 100644 --- a/suite2cases/rubygem-redcarpet.json +++ b/suite2cases/rubygem-redcarpet.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/rubygem-redcarpet", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_redcarpet" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rubygem-ronn-ng.json b/suite2cases/rubygem-ronn-ng.json new file mode 100644 index 0000000000000000000000000000000000000000..88749479386b08229c81fc77ed9533e9dc67b481 --- /dev/null +++ b/suite2cases/rubygem-ronn-ng.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/rubygem-ronn-ng", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_rubygem-ronn-ng_install_and_remove_rubygem-ronn-ng" + }, + { + "name": "oe_test_rubygem-ronn-ng_install_and_remove_rubygem-ronn-ng-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/rubygem-sdoc.json b/suite2cases/rubygem-sdoc.json index 9e40ff3c2ce58df30a07c1d341d1d0066ebb7a7d..0d335634f276b292ca38465647d7e14789c3862c 100644 --- a/suite2cases/rubygem-sdoc.json +++ b/suite2cases/rubygem-sdoc.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/rubygem-sdoc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rubygem-sdoc_sdoc-merge" @@ -23,4 +25,4 @@ "name": "oe_test_rubygem-sdoc_sdoc_06" } ] -} +} \ No newline at end of file diff --git a/suite2cases/rust.json b/suite2cases/rust.json index c2b9b64d57042d08696a16d5f22f40688f1ec385..0d5e6593564a26e19148263ef41ac1fbedb6ed10 100644 --- a/suite2cases/rust.json +++ b/suite2cases/rust.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/rust", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_rustc_01" @@ -24,6 +27,69 @@ }, { "name": "oe_test_rustfmt" + }, + { + "name": "oe_test_rust_install_and_remove_rust" + }, + { + "name": "oe_test_rust_install_and_remove_rust-debugger-common" + }, + { + "name": "oe_test_rust_install_and_remove_cargo" + }, + { + "name": "oe_test_rust_install_and_remove_rustfmt" + }, + { + "name": "oe_test_rust_install_and_remove_clippy" + }, + { + "name": "oe_test_rust_install_and_remove_rust-help" + }, + { + "name": "oe_test_rust_install_and_remove_rust-gdb" + }, + { + "name": "oe_test_rust_install_and_remove_rust-src" + }, + { + "name": "oe_test_rust_install_and_remove_rust-std-static" + }, + { + "name": "oe_test_rust_install_and_remove_rust-lldb" + }, + { + "name": "oe_test_rust_install_and_remove_rust-analyzer" + }, + { + "name": "oe_test_rust_install_and_remove_rust-debuginfo" + }, + { + "name": "oe_test_rust_install_and_remove_rust-debugsource" + }, + { + "name": "oe_test_rust_install_and_remove_rust-analysis" + }, + { + "name": "oe_test_rust_install_and_remove_rls" + }, + { + "name": "oe_test_rust_install_and_remove_cargo-doc" + }, + { + "name": "oe_test_rust_install_and_remove_rust-doc" + }, + { + "name": "oe_test_rust_install_and_remove_rls-preview" + }, + { + "name": "oe_test_rust_install_and_remove_clippy-preview" + }, + { + "name": "oe_test_rust_install_and_remove_rust-devel" + }, + { + "name": "oe_test_rust_install_and_remove_rustfmt-preview" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/samba.json b/suite2cases/samba.json index 91bccba867713e962cf0f6b13ae31bb0e4483f83..c90891e32adab8fb6a94c6be3cc15170e0e971d5 100644 --- a/suite2cases/samba.json +++ b/suite2cases/samba.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/samba", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ctdb" @@ -15,6 +18,108 @@ }, { "name": "oe_test_service_winbind" + }, + { + "name": "oe_test_samba_install_and_remove_samba" + }, + { + "name": "oe_test_samba_install_and_remove_samba-libs" + }, + { + "name": "oe_test_samba_install_and_remove_samba-common-tools" + }, + { + "name": "oe_test_samba_install_and_remove_samba-dc-provision" + }, + { + "name": "oe_test_samba_install_and_remove_samba-krb5-printing" + }, + { + "name": "oe_test_samba_install_and_remove_libsmbclient" + }, + { + "name": "oe_test_samba_install_and_remove_python3-samba" + }, + { + "name": "oe_test_samba_install_and_remove_python3-samba-dc" + }, + { + "name": "oe_test_samba_install_and_remove_samba-winbind-krb5-locator" + }, + { + "name": "oe_test_samba_install_and_remove_ctdb" + }, + { + "name": "oe_test_samba_install_and_remove_samba-client" + }, + { + "name": "oe_test_samba_install_and_remove_samba-client-libs" + }, + { + "name": "oe_test_samba_install_and_remove_samba-common" + }, + { + "name": "oe_test_samba_install_and_remove_samba-tools" + }, + { + "name": "oe_test_samba_install_and_remove_samba-dc-libs" + }, + { + "name": "oe_test_samba_install_and_remove_samba-devel" + }, + { + "name": "oe_test_samba_install_and_remove_libwbclient" + }, + { + "name": "oe_test_samba_install_and_remove_python3-samba-test" + }, + { + "name": "oe_test_samba_install_and_remove_samba-test" + }, + { + "name": "oe_test_samba_install_and_remove_samba-winbind" + }, + { + "name": "oe_test_samba_install_and_remove_samba-winbind-modules" + }, + { + "name": "oe_test_samba_install_and_remove_ctdb-tests" + }, + { + "name": "oe_test_samba_install_and_remove_samba-help" + }, + { + "name": "oe_test_samba_install_and_remove_samba-dc" + }, + { + "name": "oe_test_samba_install_and_remove_samba-dc-bind-dlz" + }, + { + "name": "oe_test_samba_install_and_remove_libsmbclient-devel" + }, + { + "name": "oe_test_samba_install_and_remove_libwbclient-devel" + }, + { + "name": "oe_test_samba_install_and_remove_samba-pidl" + }, + { + "name": "oe_test_samba_install_and_remove_samba-usershares" + }, + { + "name": "oe_test_samba_install_and_remove_samba-winbind-clients" + }, + { + "name": "oe_test_samba_install_and_remove_samba-debuginfo" + }, + { + "name": "oe_test_samba_install_and_remove_samba-debugsource" + }, + { + "name": "oe_test_samba_install_and_remove_samba-vfs-glusterfs" + }, + { + "name": "oe_test_samba_install_and_remove_samba-vfs-cephfs" } ] -} +} \ No newline at end of file diff --git a/suite2cases/sane-backends.json b/suite2cases/sane-backends.json index 2ae8d2ed51c214759544b366ebf0141d03022c1b..036fa20b87580d7445d74e071e59083b7338a9bc 100644 --- a/suite2cases/sane-backends.json +++ b/suite2cases/sane-backends.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/sane-backends", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_socket_saned" } ] -} +} \ No newline at end of file diff --git a/suite2cases/sanlock.json b/suite2cases/sanlock.json index d35c5b2302be0516b7092f6f1a44ab47b648f066..f2e1c4e0d7f33932bc1c98031f64d0ffb519b514 100644 --- a/suite2cases/sanlock.json +++ b/suite2cases/sanlock.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/sanlock", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_sanlock_base_01" @@ -25,7 +28,7 @@ { "name": "oe_test_sanlock_sanlk_resetd" }, - { + { "name": "oe_test_service_sanlk-resetd" }, { @@ -33,6 +36,30 @@ }, { "name": "oe_test_service_wdmd" + }, + { + "name": "oe_test_sanlock_install_and_remove_sanlock" + }, + { + "name": "oe_test_sanlock_install_and_remove_sanlock-help" + }, + { + "name": "oe_test_sanlock_install_and_remove_python3-sanlock" + }, + { + "name": "oe_test_sanlock_install_and_remove_sanlk-reset" + }, + { + "name": "oe_test_sanlock_install_and_remove_sanlock-devel" + }, + { + "name": "oe_test_sanlock_install_and_remove_sanlock-debugsource" + }, + { + "name": "oe_test_sanlock_install_and_remove_sanlock-debuginfo" + }, + { + "name": "oe_test_sanlock_install_and_remove_python2-sanlock" } ] -} +} \ No newline at end of file diff --git a/suite2cases/sassc.json b/suite2cases/sassc.json index 48271b7ab61310e94ec9f8b207ef97474af91a63..4d0407ac2d98fc15c90705198f2631b5a7a46c14 100755 --- a/suite2cases/sassc.json +++ b/suite2cases/sassc.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/sassc", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_sassc_01" @@ -9,6 +12,15 @@ }, { "name": "oe_test_sassc_03" + }, + { + "name": "oe_test_sassc_install_and_remove_sassc" + }, + { + "name": "oe_test_sassc_install_and_remove_sassc-debuginfo" + }, + { + "name": "oe_test_sassc_install_and_remove_sassc-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/satyr.json b/suite2cases/satyr.json new file mode 100644 index 0000000000000000000000000000000000000000..ec676c441118737147748ef6e079f8dfcdd6beda --- /dev/null +++ b/suite2cases/satyr.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/satyr", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_satyr_install_and_remove_satyr" + }, + { + "name": "oe_test_satyr_install_and_remove_satyr-devel" + }, + { + "name": "oe_test_satyr_install_and_remove_python3-satyr" + }, + { + "name": "oe_test_satyr_install_and_remove_satyr-help" + }, + { + "name": "oe_test_satyr_install_and_remove_satyr-debugsource" + }, + { + "name": "oe_test_satyr_install_and_remove_satyr-debuginfo" + }, + { + "name": "oe_test_satyr_install_and_remove_python2-satyr" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sbc.json b/suite2cases/sbc.json new file mode 100644 index 0000000000000000000000000000000000000000..178968b737764707ded60b08ded47ef00614fb35 --- /dev/null +++ b/suite2cases/sbc.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/sbc", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_sbc_install_and_remove_sbc" + }, + { + "name": "oe_test_sbc_install_and_remove_sbc-devel" + }, + { + "name": "oe_test_sbc_install_and_remove_sbc-help" + }, + { + "name": "oe_test_sbc_install_and_remove_sbc-debuginfo" + }, + { + "name": "oe_test_sbc_install_and_remove_sbc-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sbd.json b/suite2cases/sbd.json index ee3b264782ca7d636d9ccb4bfd0632ec5f75ef9d..e3d2ea3da9a3a04282104f9876d679cf44808ac1 100644 --- a/suite2cases/sbd.json +++ b/suite2cases/sbd.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/sbd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_sbd" @@ -8,4 +10,4 @@ "name": "oe_test_service_sbd_remote" } ] -} +} \ No newline at end of file diff --git a/suite2cases/sblim-sfcb.json b/suite2cases/sblim-sfcb.json index 1f2a6a1d64c961c33842b9312561f23a9dff5ba2..efef17156e247a8cc54828692e425c15102d2174 100644 --- a/suite2cases/sblim-sfcb.json +++ b/suite2cases/sblim-sfcb.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/sblim-sfcb", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_sblim-sfcb" } ] -} +} \ No newline at end of file diff --git a/suite2cases/scala.json b/suite2cases/scala.json index bdf9e77373b27b438e12db71ac2a7f216b6a9b90..550a6e5209276a4f85ed06495b688cbfb1023f25 100644 --- a/suite2cases/scala.json +++ b/suite2cases/scala.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/scala", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_scala" diff --git a/suite2cases/scipy.json b/suite2cases/scipy.json index c1de50c2c4a2af4d45161f395443de4e76d20be4..b29702762bdcded44590fa8c3d6eca1f1dacdc16 100644 --- a/suite2cases/scipy.json +++ b/suite2cases/scipy.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/scipy", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-scipy" } ] -} +} \ No newline at end of file diff --git a/suite2cases/screen.json b/suite2cases/screen.json new file mode 100644 index 0000000000000000000000000000000000000000..7cccb614240dc417ce39246d74d4226529ef8d2c --- /dev/null +++ b/suite2cases/screen.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/screen", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_screen_install_and_remove_screen" + }, + { + "name": "oe_test_screen_install_and_remove_screen-help" + }, + { + "name": "oe_test_screen_install_and_remove_screen-debuginfo" + }, + { + "name": "oe_test_screen_install_and_remove_screen-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/scrub.json b/suite2cases/scrub.json index 08b20fb0c81f36a55538c72b27c4240200e525a9..e52ba70b058c24899c9da6466ba59fa6422e113e 100644 --- a/suite2cases/scrub.json +++ b/suite2cases/scrub.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/scrub", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_scrub_base_01" } ] -} +} \ No newline at end of file diff --git a/suite2cases/scrub_2.5.2.json b/suite2cases/scrub_2.5.2.json index f1ddabe80c41c89dd743177e9ad074a02bb74dfc..aae53f4decd75c44604ac18431f50fbb7d4f13b3 100644 --- a/suite2cases/scrub_2.5.2.json +++ b/suite2cases/scrub_2.5.2.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/scrub", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_scrub_2.5.2_base_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/scrub_2.6.1.json b/suite2cases/scrub_2.6.1.json index 9c3dbf97df07d242a987af280eaa0d3bc76341c1..a0c62a741feea31ed5a5dc989b5c39760ca612b3 100644 --- a/suite2cases/scrub_2.6.1.json +++ b/suite2cases/scrub_2.6.1.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/scrub", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_scrub_2.6.1_base_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/scsi-target-utils.json b/suite2cases/scsi-target-utils.json index 2506fef11d65d49d62d12d4f2ec6f7f959b19ea4..4f7de169d950005d41f276e0f5ccd8d13a5f06d6 100644 --- a/suite2cases/scsi-target-utils.json +++ b/suite2cases/scsi-target-utils.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/scsi-target-utils", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_tgtd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/secure_conf.json b/suite2cases/secure_conf.json index 68e3420a33a1981c0490b7efc6f7c9374df384c0..8fb96438cf01cb274c4155052a152b61795815a3 100644 --- a/suite2cases/secure_conf.json +++ b/suite2cases/secure_conf.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/feature-test/secure_conf", + "cpu": 2, + "memory": 4, "cases": [ - { - "name": "oe_test_secureconfline_checktools" - } + { + "name": "oe_test_secureconfline_checktools" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/security-tool.json b/suite2cases/security-tool.json index dcde418edac65747dd01c8a9faafe71869c6c799..11dee4561ef284cec03da3d8217596fa3fc7766d 100644 --- a/suite2cases/security-tool.json +++ b/suite2cases/security-tool.json @@ -1,11 +1,17 @@ { "path": "\"${OET_PATH}\"/testcases/cli-test/security-tool", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_security_tool" }, { "name": "oe_test_service_openEuler-security" + }, + { + "name": "oe_test_security-tool_install_and_remove_security-tool" } ] -} +} \ No newline at end of file diff --git a/suite2cases/security_guide.json b/suite2cases/security_guide.json index 3ac75f8d67bf8912d5fabb64b561f938f04f9310..0fe1ce0b52bfa8a36e02da6c52d51c018dff5e58 100644 --- a/suite2cases/security_guide.json +++ b/suite2cases/security_guide.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/doc-test/security_guide", "machine num": 3, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_ssh_warnings" @@ -46,14 +48,14 @@ }, { "name": "oe_test_ssh_access_login_in_60s", - "machine num": 2 + "machine num": 2 }, { "name": "oe_test_set_password_complexity" }, { "name": "oe_test_ssh_disable_parsing_sshpath", - "machine num": 2 + "machine num": 2 }, { "name": "oe_test_ssh_disable_root" @@ -69,7 +71,7 @@ }, { "name": "oe_test_set_exit_time", - "machine num": 2 + "machine num": 2 }, { "name": "oe_test_add_sticky_bit_attribute" @@ -88,18 +90,18 @@ }, { "name": "oe_test_ssh_allow_public_key", - "machine num": 2 + "machine num": 2 }, { "name": "oe_test_shield_system_account" }, { "name": "oe_test_ssh_RSA_auth", - "machine num": 2 + "machine num": 2 }, { "name": "oe_test_ssh_disable_agent_forwarding", - "machine num": 3 + "machine num": 3 }, { "name": "oe_test_ssh_system_reinforcement" @@ -134,26 +136,26 @@ "name": "oe_test_ssh_server_reinforcement_suggestions" }, { - "name" :"oe_test_kernel_parameter_reinforcement_description" + "name": "oe_test_kernel_parameter_reinforcement_description" }, { - "name" :"oe_test_ssh_prohibit_root_login_system_through_ssh", + "name": "oe_test_ssh_prohibit_root_login_system_through_ssh", "machine num": 2 }, { - "name" :"oe_test_password_validity" + "name": "oe_test_password_validity" }, { - "name" :"oe_test_passwd_salt_value_unique" + "name": "oe_test_passwd_salt_value_unique" }, { - "name" :"oe_test_passwd_ciphertext_unique" + "name": "oe_test_passwd_ciphertext_unique" }, { - "name" :"oe_test_check_default_dictionary_words" + "name": "oe_test_check_default_dictionary_words" }, { - "name" :"oe_test_check_custom_dictionary_words" + "name": "oe_test_check_custom_dictionary_words" } ] -} +} \ No newline at end of file diff --git a/suite2cases/security_test.json b/suite2cases/security_test.json index 8f9a1b4f26cb2b428e30d084ad92149c50f6a84f..4db1c9ea6f054553fe8d4af6efe3f0be10c1f1f6 100644 --- a/suite2cases/security_test.json +++ b/suite2cases/security_test.json @@ -1,7 +1,11 @@ { "path": "$OET_PATH/testcases/security_test", - "add disk":[10], + "add disk": [ + 10 + ], "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_selinux_listuser" @@ -83,7 +87,9 @@ }, { "name": "oe_test_use_luks", - "add disk": [10] + "add disk": [ + 10 + ] }, { "name": "oe_test_aide_check_update" @@ -93,7 +99,9 @@ }, { "name": "oe_test_encrypt_data", - "add disk": [10] + "add disk": [ + 10 + ] }, { "name": "oe_test_check_passwd_shadow" @@ -117,7 +125,7 @@ { "name": "oe_test_security_test_FUN297" }, - { + { "name": "oe_test_security_test_FUN299" }, { @@ -204,10 +212,10 @@ }, { "name": "oe_test_acl_formats" - }, + }, { "name": "oe_test_hdf5" - }, + }, { "name": "oe_test_gpgcheck" }, @@ -221,4 +229,4 @@ "name": "oe_test_set_max_uid" } ] -} +} \ No newline at end of file diff --git a/suite2cases/sed.json b/suite2cases/sed.json new file mode 100644 index 0000000000000000000000000000000000000000..50ee9da1de9e0bd629a7392eb44d20a82ed7f7a8 --- /dev/null +++ b/suite2cases/sed.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/sed", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_sed_install_and_remove_sed" + }, + { + "name": "oe_test_sed_install_and_remove_sed-help" + }, + { + "name": "oe_test_sed_install_and_remove_sed-debuginfo" + }, + { + "name": "oe_test_sed_install_and_remove_sed-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/selinux-policy.json b/suite2cases/selinux-policy.json new file mode 100644 index 0000000000000000000000000000000000000000..d164723516245c68380d96db941e7ce58a9c576d --- /dev/null +++ b/suite2cases/selinux-policy.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/selinux-policy", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_selinux-policy_install_and_remove_selinux-policy" + }, + { + "name": "oe_test_selinux-policy_install_and_remove_selinux-policy-help" + }, + { + "name": "oe_test_selinux-policy_install_and_remove_selinux-policy-targeted" + }, + { + "name": "oe_test_selinux-policy_install_and_remove_selinux-policy-minimum" + }, + { + "name": "oe_test_selinux-policy_install_and_remove_selinux-policy-sandbox" + }, + { + "name": "oe_test_selinux-policy_install_and_remove_selinux-policy-devel" + }, + { + "name": "oe_test_selinux-policy_install_and_remove_selinux-policy-mls" + }, + { + "name": "oe_test_selinux-policy_install_and_remove_selinux-policy-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sendmail.json b/suite2cases/sendmail.json index 71b074e32b4e944aeba5706f2fdb7c98368f98fc..2a1eaf7b0ad6f544cb2fcacbc501c1e24046454c 100644 --- a/suite2cases/sendmail.json +++ b/suite2cases/sendmail.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/sendmail", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_sendmail" @@ -9,6 +12,24 @@ }, { "name": "oe_test_sendmail_func_001" + }, + { + "name": "oe_test_sendmail_install_and_remove_sendmail" + }, + { + "name": "oe_test_sendmail_install_and_remove_libmilter-devel" + }, + { + "name": "oe_test_sendmail_install_and_remove_sendmail-help" + }, + { + "name": "oe_test_sendmail_install_and_remove_libmilter" + }, + { + "name": "oe_test_sendmail_install_and_remove_sendmail-debugsource" + }, + { + "name": "oe_test_sendmail_install_and_remove_sendmail-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/service-test.json b/suite2cases/service-test.json index 131c91e92c0df09a7378855b9e9f5de2820a1121..5e33f76fbc708ae7e9c0f8b42009efb611a075b7 100644 --- a/suite2cases/service-test.json +++ b/suite2cases/service-test.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/system-test/service-test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_restart" } - ] -} - + ] +} \ No newline at end of file diff --git a/suite2cases/setup.json b/suite2cases/setup.json new file mode 100644 index 0000000000000000000000000000000000000000..349d0d4015eee411cd4b52753fa1794b8c92bf4c --- /dev/null +++ b/suite2cases/setup.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/setup", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_setup_install_and_remove_setup" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sg3_utils.json b/suite2cases/sg3_utils.json index e9c6c03a40b64f39bcba6c30a07f39b2516525c4..3bdd9bf108213926bf3f9edcf0b3272e8cf2b4f1 100644 --- a/suite2cases/sg3_utils.json +++ b/suite2cases/sg3_utils.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/sg3_utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_sginfo_func" + }, + { + "name": "oe_test_sg3_utils_install_and_remove_sg3_utils" + }, + { + "name": "oe_test_sg3_utils_install_and_remove_sg3_utils-devel" + }, + { + "name": "oe_test_sg3_utils_install_and_remove_sg3_utils-help" + }, + { + "name": "oe_test_sg3_utils_install_and_remove_sg3_utils-debugsource" + }, + { + "name": "oe_test_sg3_utils_install_and_remove_sg3_utils-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/sgml-common.json b/suite2cases/sgml-common.json new file mode 100644 index 0000000000000000000000000000000000000000..0a75fb85741760f14cbc786861a8dfbd7e4568d0 --- /dev/null +++ b/suite2cases/sgml-common.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/sgml-common", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_sgml-common_install_and_remove_sgml-common" + }, + { + "name": "oe_test_sgml-common_install_and_remove_sgml-common-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/shadow.json b/suite2cases/shadow.json index a87c3a963748f68a03a67f6632a80eb99972d92e..c551f0736bb6ca8bef3dda9049e419acb8b2ee15 100644 --- a/suite2cases/shadow.json +++ b/suite2cases/shadow.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/shadow", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_newusers" + }, + { + "name": "oe_test_shadow_install_and_remove_shadow" + }, + { + "name": "oe_test_shadow_install_and_remove_shadow-subid-devel" + }, + { + "name": "oe_test_shadow_install_and_remove_shadow-debugsource" + }, + { + "name": "oe_test_shadow_install_and_remove_shadow-debuginfo" + }, + { + "name": "oe_test_shadow_install_and_remove_shadow-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/shangmi-AT.json b/suite2cases/shangmi-AT.json index b9560a31ba89e95786b8cd039939670d5d266fbd..43a6578b718081650fef0dce3e1b3b5ab1d48e95 100644 --- a/suite2cases/shangmi-AT.json +++ b/suite2cases/shangmi-AT.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/smoke-test/smoke-shangmi", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gm_openssl_001", @@ -19,5 +21,4 @@ "machine num": 2 } ] -} - +} \ No newline at end of file diff --git a/suite2cases/shangmi.json b/suite2cases/shangmi.json index fe78440325866549b9ca7f10931e08a24d946d85..8d9fcb1c5c9b72c839dfcc59a3940fe1ae4cf048 100644 --- a/suite2cases/shangmi.json +++ b/suite2cases/shangmi.json @@ -1,6 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/shangmi", "machine num": 2, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_gm_openssl_001", @@ -19,5 +21,4 @@ "machine num": 2 } ] -} - +} \ No newline at end of file diff --git a/suite2cases/shared-mime-info.json b/suite2cases/shared-mime-info.json index dd9edb3bff6a08b28fd8ba816b89f45d0c3c1a32..e58dfbd69c49b89cca03e0dedd5eb8b27f3a01a9 100644 --- a/suite2cases/shared-mime-info.json +++ b/suite2cases/shared-mime-info.json @@ -1,10 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/shared-mime-info", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_shared-mime-info" + }, + { + "name": "oe_test_shared-mime-info_install_and_remove_shared-mime-info" + }, + { + "name": "oe_test_shared-mime-info_install_and_remove_shared-mime-info-debugsource" + }, + { + "name": "oe_test_shared-mime-info_install_and_remove_shared-mime-info-debuginfo" + }, + { + "name": "oe_test_shared-mime-info_install_and_remove_shared-mime-info-help" } - - ] -} - + ] +} \ No newline at end of file diff --git a/suite2cases/sharutils.json b/suite2cases/sharutils.json new file mode 100644 index 0000000000000000000000000000000000000000..4e5cee17fadf30ab2a00b1e5f9d9630b80015718 --- /dev/null +++ b/suite2cases/sharutils.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/sharutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_sharutils_install_and_remove_sharutils" + }, + { + "name": "oe_test_sharutils_install_and_remove_sharutils-help" + }, + { + "name": "oe_test_sharutils_install_and_remove_sharutils-debuginfo" + }, + { + "name": "oe_test_sharutils_install_and_remove_sharutils-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/shim.json b/suite2cases/shim.json new file mode 100644 index 0000000000000000000000000000000000000000..a30322156f70142e90dd050b402c990c36973dce --- /dev/null +++ b/suite2cases/shim.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/shim", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_shim_install_and_remove_shim" + }, + { + "name": "oe_test_shim_install_and_remove_shim-debuginfo" + }, + { + "name": "oe_test_shim_install_and_remove_shim-debugsource" + }, + { + "name": "oe_test_shim_install_and_remove_shim-signed" + } + ] +} \ No newline at end of file diff --git a/suite2cases/slang.json b/suite2cases/slang.json index dd67c417b13ead9687da7d2ae26f3cafd83ca03a..a71ec0dca6b01cd5e29388ae1cc671ef9f5cd984 100644 --- a/suite2cases/slang.json +++ b/suite2cases/slang.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/slang", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_slang_001" + }, + { + "name": "oe_test_slang_install_and_remove_slang" + }, + { + "name": "oe_test_slang_install_and_remove_slang-help" + }, + { + "name": "oe_test_slang_install_and_remove_slang-devel" + }, + { + "name": "oe_test_slang_install_and_remove_slang-debuginfo" + }, + { + "name": "oe_test_slang_install_and_remove_slang-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/smartmontools.json b/suite2cases/smartmontools.json index cab3043dcfcdcc8ddd5b6d340dd85d773923297e..dd1e1ebf328db34a7a66eb5416f14396d3145dda 100644 --- a/suite2cases/smartmontools.json +++ b/suite2cases/smartmontools.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/smartmontools", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_smartd" + }, + { + "name": "oe_test_smartmontools_install_and_remove_smartmontools" + }, + { + "name": "oe_test_smartmontools_install_and_remove_smartmontools-help" + }, + { + "name": "oe_test_smartmontools_install_and_remove_smartmontools-debuginfo" + }, + { + "name": "oe_test_smartmontools_install_and_remove_smartmontools-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/smoke-OVS.json b/suite2cases/smoke-OVS.json index ef43f5ce99be41766a8bb47037e4baf5e36e6c54..bfe6ac48c7da6bb5ed1b4a6b61f1cdad0b64f475 100644 --- a/suite2cases/smoke-OVS.json +++ b/suite2cases/smoke-OVS.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/smoke-test/smoke-OVS", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_OVS" diff --git a/suite2cases/smoke-baseinfo.json b/suite2cases/smoke-baseinfo.json index e901b28a6597abd295e7d257bcb05a0a001444b9..5cdfb255f91ea400b2bbd262a6e3bf4f490a2ff7 100644 --- a/suite2cases/smoke-baseinfo.json +++ b/suite2cases/smoke-baseinfo.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/smoke-test/smoke-baseinfo", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_dmesg_messages_log" @@ -28,11 +30,11 @@ { "name": "oe_test_rpm_suffix_name" }, - { + { "name": "oe_test_cpu_model_name" - }, - { + }, + { "name": "oe_test_export" - } + } ] -} +} \ No newline at end of file diff --git a/suite2cases/smoke-basic-os.json b/suite2cases/smoke-basic-os.json index ec7907db44cea63cc3ce39168ea49370c209ff14..a309181f7eac593dddb8c4b8cd1bc33b10cb0f01 100755 --- a/suite2cases/smoke-basic-os.json +++ b/suite2cases/smoke-basic-os.json @@ -1,5 +1,7 @@ { "path": "${OET_PATH}/testcases/smoke-test/smoke-basic-os", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_head" @@ -97,9 +99,9 @@ { "name": "oe_test_logname" }, - { - "name": "oe_test_logrotate_002" - }, + { + "name": "oe_test_logrotate_002" + }, { "name": "oe_test_log_001" }, @@ -676,36 +678,36 @@ { "name": "oe_test_uptime" }, - { - "name": "oe_test_find" - }, - { - "name": "oe_test_find_001" - }, - { - "name": "oe_test_source" - }, - { - "name": "oe_test_pwd_002" - }, - { - "name": "oe_test_mtr" - }, - { - "name": "oe_test_sadf_001" - }, - { - "name": "oe_test_pstree" - }, - { - "name": "oe_test_vmstat" - }, - { - "name": "oe_test_let" - }, - { - "name": "oe_test_unset_001" - }, + { + "name": "oe_test_find" + }, + { + "name": "oe_test_find_001" + }, + { + "name": "oe_test_source" + }, + { + "name": "oe_test_pwd_002" + }, + { + "name": "oe_test_mtr" + }, + { + "name": "oe_test_sadf_001" + }, + { + "name": "oe_test_pstree" + }, + { + "name": "oe_test_vmstat" + }, + { + "name": "oe_test_let" + }, + { + "name": "oe_test_unset_001" + }, { "name": "oe_test_aide_config_cfgfile" }, @@ -784,29 +786,29 @@ { "name": "oe_test_user_debug_iotop_03" }, - { + { "name": "oe_test_user_debug_iotop_SCEN_01" }, { - "name": "oe_test_sed_001" + "name": "oe_test_sed_001" }, { - "name": "oe_test_xz" + "name": "oe_test_xz" }, - { - "name": "oe_test_tr" + { + "name": "oe_test_tr" }, - { - "name": "oe_test_popt" - }, - { - "name": "oe_test_chkconfig_01" + { + "name": "oe_test_popt" }, - { - "name": "oe_test_libxml2_001" + { + "name": "oe_test_chkconfig_01" + }, + { + "name": "oe_test_libxml2_001" }, { - "name": "oe_test_libxml2_002" + "name": "oe_test_libxml2_002" }, { "name": "oe_test_libxml2_003" @@ -814,69 +816,68 @@ { "name": "oe_test_libxml2_004" }, - { - "name": "oe_test_logrotate_004" - }, - { - "name": "oe_test_gcc_001" - }, - { - "name": "oe_test_gcc_002" - }, { - "name": "oe_test_od" - }, + "name": "oe_test_logrotate_004" + }, + { + "name": "oe_test_gcc_001" + }, + { + "name": "oe_test_gcc_002" + }, + { + "name": "oe_test_od" + }, { - "name": "oe_test_mkdosfs" + "name": "oe_test_mkdosfs" }, { - "name": "oe_test_dumpe2fs" + "name": "oe_test_dumpe2fs" }, { - "name": "oe_test_mke2fs" + "name": "oe_test_mke2fs" }, - { - "name": "oe_test_acpid_002" - }, { - "name": "oe_test_g++" + "name": "oe_test_acpid_002" }, { - "name": "oe_test_binutils-objcopy" + "name": "oe_test_g++" }, - { - "name": "oe_test_ebtables_002" - }, - { + { + "name": "oe_test_binutils-objcopy" + }, + { + "name": "oe_test_ebtables_002" + }, + { "name": "oe_test_lscpu" }, - { + { "name": "oe_test_lsipc" }, - { - "name":"oe_test_lzo_002" - }, - { - "name": "oe_test_lsirq" - }, - { - "name": "oe_test_pidwait" - }, - { - "name": "oe_test_nproc" - }, - { - "name": "oe_test_echo" - }, - { - "name": "oe_test_pidof" - }, - { - "name": "oe_test_link" - }, - { - "name": "oe_test_zlib_001" - } + { + "name": "oe_test_lzo_002" + }, + { + "name": "oe_test_lsirq" + }, + { + "name": "oe_test_pidwait" + }, + { + "name": "oe_test_nproc" + }, + { + "name": "oe_test_echo" + }, + { + "name": "oe_test_pidof" + }, + { + "name": "oe_test_link" + }, + { + "name": "oe_test_zlib_001" + } ] -} - +} \ No newline at end of file diff --git a/suite2cases/smoke-bzip2.json b/suite2cases/smoke-bzip2.json index 2a2dc3a17a96026f09df3c65c6b73691633fc067..429ebfabf66a3345afba3b0fb0c25363712e0893 100644 --- a/suite2cases/smoke-bzip2.json +++ b/suite2cases/smoke-bzip2.json @@ -1,14 +1,16 @@ { "path": "${OET_PATH}/testcases/smoke-test/smoke-basic-os/oe_test_bzip2", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_bzip2_001" }, - { - "name": "oe_test_bzip2_002" - }, - { - "name": "oe_test_bzip2_003" - } + { + "name": "oe_test_bzip2_002" + }, + { + "name": "oe_test_bzip2_003" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/smoke-docker.json b/suite2cases/smoke-docker.json index c06a41ce983c420f3ae52d6d6aaf5b76006902e6..73d6b08243961a5b1d572e505cbdd7bd61cf4999 100644 --- a/suite2cases/smoke-docker.json +++ b/suite2cases/smoke-docker.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/smoke-test/smoke-docker", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_docker_cp_001" @@ -47,4 +49,4 @@ "name": "oe_test_runc" } ] -} +} \ No newline at end of file diff --git a/suite2cases/smoke-iSulad.json b/suite2cases/smoke-iSulad.json index 4fe759848fe9cf13a90df3341d8a0b7e32726c04..d3e3cb565c3d72a22104c1b1228d356a9c371075 100644 --- a/suite2cases/smoke-iSulad.json +++ b/suite2cases/smoke-iSulad.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/smoke-test/smoke-iSulad", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_iSula_query_state_001" diff --git a/suite2cases/smoke-module.json b/suite2cases/smoke-module.json index ba410fb7e00890e4f0c1e8bd40e3ebc0ad02dd32..3c9b2fd29fb2e769f19879a23dbbe764dca2358b 100644 --- a/suite2cases/smoke-module.json +++ b/suite2cases/smoke-module.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/smoke-test/smoke-module", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_module" diff --git a/suite2cases/smoke.json b/suite2cases/smoke.json index bfe132ef949c19ddc2db25e3a6506cefad79de5c..39f616e84162c370e769d8dc5519cc2c6dc96a3d 100644 --- a/suite2cases/smoke.json +++ b/suite2cases/smoke.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/smoke-test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_OVS" diff --git a/suite2cases/snappy.json b/suite2cases/snappy.json new file mode 100644 index 0000000000000000000000000000000000000000..8585cdd341891d9812edac3415c24911c2a4f5fb --- /dev/null +++ b/suite2cases/snappy.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/snappy", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_snappy_install_and_remove_snappy" + }, + { + "name": "oe_test_snappy_install_and_remove_snappy-devel" + }, + { + "name": "oe_test_snappy_install_and_remove_snappy-debuginfo" + }, + { + "name": "oe_test_snappy_install_and_remove_snappy-debugsource" + }, + { + "name": "oe_test_snappy_install_and_remove_snappy-help" + }, + { + "name": "oe_test_snappy_install_and_remove_snappy-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/socat.json b/suite2cases/socat.json index 29fe40fa282086ab234248d6f2f6014705029619..931834333d8b991c133a3138657fe169162069f8 100644 --- a/suite2cases/socat.json +++ b/suite2cases/socat.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/socat", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_socat_01" diff --git a/suite2cases/socket_wrapper.json b/suite2cases/socket_wrapper.json new file mode 100644 index 0000000000000000000000000000000000000000..ab6850746d4ccac9a28974a5e68a49a14cd83366 --- /dev/null +++ b/suite2cases/socket_wrapper.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/socket_wrapper", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_socket_wrapper_install_and_remove_socket_wrapper" + }, + { + "name": "oe_test_socket_wrapper_install_and_remove_socket_wrapper-help" + }, + { + "name": "oe_test_socket_wrapper_install_and_remove_libsocket_wrapper_noop-devel" + }, + { + "name": "oe_test_socket_wrapper_install_and_remove_libsocket_wrapper_noop" + }, + { + "name": "oe_test_socket_wrapper_install_and_remove_socket_wrapper-debuginfo" + }, + { + "name": "oe_test_socket_wrapper_install_and_remove_socket_wrapper-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/softhsm.json b/suite2cases/softhsm.json new file mode 100644 index 0000000000000000000000000000000000000000..35a1b47e8999b897e3b71d87669e2a0059fb14a2 --- /dev/null +++ b/suite2cases/softhsm.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/softhsm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_softhsm_install_and_remove_softhsm" + }, + { + "name": "oe_test_softhsm_install_and_remove_softhsm-devel" + }, + { + "name": "oe_test_softhsm_install_and_remove_softhsm-debuginfo" + }, + { + "name": "oe_test_softhsm_install_and_remove_softhsm-debugsource" + }, + { + "name": "oe_test_softhsm_install_and_remove_softhsm-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sonatype-oss-parent.json b/suite2cases/sonatype-oss-parent.json new file mode 100644 index 0000000000000000000000000000000000000000..7337e2ae9979a6c6dc2fb1e03ab2cb7ae78ae7b7 --- /dev/null +++ b/suite2cases/sonatype-oss-parent.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/sonatype-oss-parent", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_sonatype-oss-parent_install_and_remove_sonatype-oss-parent" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sos.json b/suite2cases/sos.json index 8e2b63b56a496af95e42ffea5170ccd1c7624d89..316d390a7979eec83864307cf9e3bca53d891b96 100644 --- a/suite2cases/sos.json +++ b/suite2cases/sos.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/sos", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_sosreport_01" diff --git a/suite2cases/sound-theme-freedesktop.json b/suite2cases/sound-theme-freedesktop.json new file mode 100644 index 0000000000000000000000000000000000000000..b999daa0adb2fc5fef37c36fd4da3ac83d793949 --- /dev/null +++ b/suite2cases/sound-theme-freedesktop.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/sound-theme-freedesktop", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop" + }, + { + "name": "oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop-help" + }, + { + "name": "oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sox.json b/suite2cases/sox.json index 25d19c2e2d3a892642088a3740a02291a6803b9f..aac83d9a714976074fd1d90d4924e75d7efa0e34 100644 --- a/suite2cases/sox.json +++ b/suite2cases/sox.json @@ -1,14 +1,16 @@ { "path": "$OET_PATH/testcases/cli-test/sox", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_sox" }, { - "name": "oe_test_sox01" + "name": "oe_test_sox01" }, - { - "name": "oe_test_sox02" + { + "name": "oe_test_sox02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/spamassassin.json b/suite2cases/spamassassin.json index 018ee9f0d51038a9f24e203056a4d165158ae0d3..1bb2bb36cdb20c04f1ec4ee33ae3d19a431eec8a 100644 --- a/suite2cases/spamassassin.json +++ b/suite2cases/spamassassin.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/spamassassin", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_spamassassin" @@ -8,4 +10,4 @@ "name": "oe_test_service_sa-update" } ] -} +} \ No newline at end of file diff --git a/suite2cases/spawn-fcgi.json b/suite2cases/spawn-fcgi.json index fe607f64bfebea0c15d3bb62370f87caa66626be..6fc1398db094ae55fe520acb2d2cab270818d62c 100644 --- a/suite2cases/spawn-fcgi.json +++ b/suite2cases/spawn-fcgi.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/spawn-fcgi", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_spawn-fcgi" } ] -} +} \ No newline at end of file diff --git a/suite2cases/spec-test.json b/suite2cases/spec-test.json index ee0a9f589ab1364843ad7b3693af628a3cf4b1ab..2b388ac848c0ddd28c179a2103442f027bbd69ac 100644 --- a/suite2cases/spec-test.json +++ b/suite2cases/spec-test.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/system-test/spec-test", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_check_mul_so" } ] -} +} \ No newline at end of file diff --git a/suite2cases/speech-dispatcher.json b/suite2cases/speech-dispatcher.json index 06d007e78b68829be73975103020d6ea334c3a2f..6b87e92b37edcd3a59a72a00db4b608c859ecd7d 100644 --- a/suite2cases/speech-dispatcher.json +++ b/suite2cases/speech-dispatcher.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/speech-dispatcher", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_speech-dispatcherd" @@ -11,4 +13,4 @@ "name": "oe_test_speech-dispatcher_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/speexdsp.json b/suite2cases/speexdsp.json new file mode 100644 index 0000000000000000000000000000000000000000..a4286fe379b93872340c37ad2ae56e50cad37233 --- /dev/null +++ b/suite2cases/speexdsp.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/speexdsp", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_speexdsp_install_and_remove_speexdsp" + }, + { + "name": "oe_test_speexdsp_install_and_remove_speexdsp-devel" + }, + { + "name": "oe_test_speexdsp_install_and_remove_speexdsp-debuginfo" + }, + { + "name": "oe_test_speexdsp_install_and_remove_speexdsp-help" + }, + { + "name": "oe_test_speexdsp_install_and_remove_speexdsp-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sphinx.json b/suite2cases/sphinx.json index aabfe6ec69ab97d8bf4c1721ed533560f83cad07..35a4a8f98da97c26b4098b58ff4e1fc0c54139ae 100644 --- a/suite2cases/sphinx.json +++ b/suite2cases/sphinx.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/sphinx", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_searchd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/spice-protocol.json b/suite2cases/spice-protocol.json new file mode 100644 index 0000000000000000000000000000000000000000..441ac7ef1f49919f60d9f5c40ac396bc55faadde --- /dev/null +++ b/suite2cases/spice-protocol.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/spice-protocol", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_spice-protocol_install_and_remove_spice-protocol" + } + ] +} \ No newline at end of file diff --git a/suite2cases/spice-vdagent.json b/suite2cases/spice-vdagent.json index 3308342f5e50bf7fbe06e1d4bbfabf273d399a9b..73d1475e74accf52df0793d73ea0f50615a9ba93 100644 --- a/suite2cases/spice-vdagent.json +++ b/suite2cases/spice-vdagent.json @@ -1,11 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/spice-vdagent", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_spice-vdagentd" }, { "name": "oe_test_socket_spice-vdagentd" + }, + { + "name": "oe_test_spice-vdagent_install_and_remove_spice-vdagent" + }, + { + "name": "oe_test_spice-vdagent_install_and_remove_spice-vdagent-help" + }, + { + "name": "oe_test_spice-vdagent_install_and_remove_spice-vdagent-debugsource" + }, + { + "name": "oe_test_spice-vdagent_install_and_remove_spice-vdagent-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/spice.json b/suite2cases/spice.json new file mode 100644 index 0000000000000000000000000000000000000000..45c134148042ef172be6fb0a0cd04481097392a1 --- /dev/null +++ b/suite2cases/spice.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/spice", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_spice_install_and_remove_spice" + }, + { + "name": "oe_test_spice_install_and_remove_spice-server-devel" + }, + { + "name": "oe_test_spice_install_and_remove_spice-server" + }, + { + "name": "oe_test_spice_install_and_remove_spice-debugsource" + }, + { + "name": "oe_test_spice_install_and_remove_spice-help" + }, + { + "name": "oe_test_spice_install_and_remove_spice-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sqlite-jdbc.json b/suite2cases/sqlite-jdbc.json index 260f54b5ab9ab5accae82499734494d13aad6c0f..bf7c0e6f24a8c7ca4dca3043cbbab76d43cd88dc 100644 --- a/suite2cases/sqlite-jdbc.json +++ b/suite2cases/sqlite-jdbc.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/sqlite-jdbc", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_sqlite-jdbc_connect" diff --git a/suite2cases/sqlite.json b/suite2cases/sqlite.json index a8e7c644b7487b98164b08f764df1928b5750197..46d43619c480e1f71a87cc3810d9b032cf43afcc 100644 --- a/suite2cases/sqlite.json +++ b/suite2cases/sqlite.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/sqlite", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_sqlite_alter_01" @@ -51,6 +54,21 @@ }, { "name": "oe_test_sqlite_create_06" + }, + { + "name": "oe_test_sqlite_install_and_remove_sqlite" + }, + { + "name": "oe_test_sqlite_install_and_remove_sqlite-devel" + }, + { + "name": "oe_test_sqlite_install_and_remove_sqlite-help" + }, + { + "name": "oe_test_sqlite_install_and_remove_sqlite-debuginfo" + }, + { + "name": "oe_test_sqlite_install_and_remove_sqlite-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/squashfs-tools.json b/suite2cases/squashfs-tools.json index 4a2c6fb3850c606f4e1801f9f886c57a0c7eb8f3..8e82a538e07235fe274da4c74b3bf0132d814906 100644 --- a/suite2cases/squashfs-tools.json +++ b/suite2cases/squashfs-tools.json @@ -1,8 +1,20 @@ { "path": "$OET_PATH/testcases/cli-test/squashfs-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_squashfs-tools" + }, + { + "name": "oe_test_squashfs-tools_install_and_remove_squashfs-tools" + }, + { + "name": "oe_test_squashfs-tools_install_and_remove_squashfs-tools-debuginfo" + }, + { + "name": "oe_test_squashfs-tools_install_and_remove_squashfs-tools-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/squid.json b/suite2cases/squid.json index affe606e153c1f7fa3b079d043fe158948bfb98b..c83ada6dffcbcddffa1957c710f283d341369d5d 100644 --- a/suite2cases/squid.json +++ b/suite2cases/squid.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/squid", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_squid" } ] -} +} \ No newline at end of file diff --git a/suite2cases/sssd.json b/suite2cases/sssd.json index cc59169b074196aa7bd5f6e0a989fa8c6effe1b8..877da760cfee846745e51a00f340108e1ee1448d 100644 --- a/suite2cases/sssd.json +++ b/suite2cases/sssd.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/sssd", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_sssd-autofs" @@ -51,6 +54,117 @@ }, { "name": "oe_test_socket_sssd-sudo" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-common" + }, + { + "name": "oe_test_sssd_install_and_remove_libsss_sudo" + }, + { + "name": "oe_test_sssd_install_and_remove_libsss_autofs" + }, + { + "name": "oe_test_sssd_install_and_remove_python3-sss-murmur" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-krb5-common" + }, + { + "name": "oe_test_sssd_install_and_remove_libsss_nss_idmap" + }, + { + "name": "oe_test_sssd_install_and_remove_python3-libsss_nss_idmap" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-dbus" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-tools" + }, + { + "name": "oe_test_sssd_install_and_remove_python3-sssdconfig" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-krb5" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-common-pac" + }, + { + "name": "oe_test_sssd_install_and_remove_libsss_idmap" + }, + { + "name": "oe_test_sssd_install_and_remove_libsss_idmap-devel" + }, + { + "name": "oe_test_sssd_install_and_remove_libipa_hbac-devel" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-winbind-idmap" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-nfs-idmap" + }, + { + "name": "oe_test_sssd_install_and_remove_libsss_certmap" + }, + { + "name": "oe_test_sssd_install_and_remove_libsss_certmap-devel" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-kcm" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-client" + }, + { + "name": "oe_test_sssd_install_and_remove_python3-sss" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-ldap" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-ipa" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-ad" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-proxy" + }, + { + "name": "oe_test_sssd_install_and_remove_libipa_hbac" + }, + { + "name": "oe_test_sssd_install_and_remove_python3-libipa_hbac" + }, + { + "name": "oe_test_sssd_install_and_remove_libsss_nss_idmap-devel" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-idp" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-help" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-debuginfo" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-debugsource" + }, + { + "name": "oe_test_sssd_install_and_remove_sssd-devel" + }, + { + "name": "oe_test_sssd_install_and_remove_python3-sssd" + }, + { + "name": "oe_test_sssd_install_and_remove_python2-sssd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/stalld.json b/suite2cases/stalld.json index 4ab28a768a60109157347baf431115df067c0ac9..c649c4b156076b21fe801062120e1b03e692183b 100644 --- a/suite2cases/stalld.json +++ b/suite2cases/stalld.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/stalld", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_stalld" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/startup-notification.json b/suite2cases/startup-notification.json new file mode 100644 index 0000000000000000000000000000000000000000..0366cf2fde370d612569b0e39a5615c4a127f9ef --- /dev/null +++ b/suite2cases/startup-notification.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/startup-notification", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_startup-notification_install_and_remove_startup-notification" + }, + { + "name": "oe_test_startup-notification_install_and_remove_startup-notification-devel" + }, + { + "name": "oe_test_startup-notification_install_and_remove_startup-notification-help" + }, + { + "name": "oe_test_startup-notification_install_and_remove_startup-notification-debuginfo" + }, + { + "name": "oe_test_startup-notification_install_and_remove_startup-notification-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/storm.json b/suite2cases/storm.json index 3c99c79988a04ac4093fb2ef5984d1e8eeee3724..b95052a1a42fbbaa4902edb390ab58f4d2731138 100644 --- a/suite2cases/storm.json +++ b/suite2cases/storm.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/storm", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_storm-logviewer" @@ -14,4 +16,4 @@ "name": "oe_test_service_storm-ui" } ] -} +} \ No newline at end of file diff --git a/suite2cases/strace.json b/suite2cases/strace.json new file mode 100644 index 0000000000000000000000000000000000000000..8387aa2db633adb50e7fabc2a0b18287ac22df1e --- /dev/null +++ b/suite2cases/strace.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/strace", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_strace_install_and_remove_strace" + }, + { + "name": "oe_test_strace_install_and_remove_strace-debugsource" + }, + { + "name": "oe_test_strace_install_and_remove_strace-debuginfo" + }, + { + "name": "oe_test_strace_install_and_remove_strace-doc" + }, + { + "name": "oe_test_strace_install_and_remove_strace32" + } + ] +} \ No newline at end of file diff --git a/suite2cases/stream_memory.json b/suite2cases/stream_memory.json new file mode 100644 index 0000000000000000000000000000000000000000..ab379566acdd6d13663695887eb405be938ed7b1 --- /dev/null +++ b/suite2cases/stream_memory.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/memory/stream_memory", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_stream_memory" + } + ] +} \ No newline at end of file diff --git a/suite2cases/strongswan.json b/suite2cases/strongswan.json index 55a21f0543b343a22977217ec08bc0081d8f5353..e201d5fc4e9a7ca74412e3a493ce7e06e3c8ff8e 100644 --- a/suite2cases/strongswan.json +++ b/suite2cases/strongswan.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/strongswan", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_strongswan" diff --git a/suite2cases/struts.json b/suite2cases/struts.json index 922c79746b617212c855b511c7931c5e2a8f9650..018652a3f28afa6a85d1d3b2b331575149909c6a 100644 --- a/suite2cases/struts.json +++ b/suite2cases/struts.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/struts", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_struts_001" } ] -} - +} \ No newline at end of file diff --git a/suite2cases/stunnel.json b/suite2cases/stunnel.json index 6294d2962483ffa10b1f67588c45a82a028b187e..f1c2e29bcb691496012db83d53a9b4a672ba9d48 100644 --- a/suite2cases/stunnel.json +++ b/suite2cases/stunnel.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/stunnel", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_stunnel" + }, + { + "name": "oe_test_stunnel_install_and_remove_stunnel" + }, + { + "name": "oe_test_stunnel_install_and_remove_stunnel-help" + }, + { + "name": "oe_test_stunnel_install_and_remove_stunnel-debuginfo" + }, + { + "name": "oe_test_stunnel_install_and_remove_stunnel-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/subunit.json b/suite2cases/subunit.json new file mode 100644 index 0000000000000000000000000000000000000000..d8826587ef4112f43071315e9ca11ed9d045293d --- /dev/null +++ b/suite2cases/subunit.json @@ -0,0 +1,47 @@ +{ + "path": "$OET_PATH/testcases/cli-test/subunit", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_subunit_install_and_remove_subunit" + }, + { + "name": "oe_test_subunit_install_and_remove_subunit-cppunit-devel" + }, + { + "name": "oe_test_subunit_install_and_remove_subunit-shell" + }, + { + "name": "oe_test_subunit_install_and_remove_subunit-static" + }, + { + "name": "oe_test_subunit_install_and_remove_subunit-devel" + }, + { + "name": "oe_test_subunit_install_and_remove_subunit-cppunit" + }, + { + "name": "oe_test_subunit_install_and_remove_python3-subunit" + }, + { + "name": "oe_test_subunit_install_and_remove_python3-subunit-test" + }, + { + "name": "oe_test_subunit_install_and_remove_subunit-perl" + }, + { + "name": "oe_test_subunit_install_and_remove_subunit-filters" + }, + { + "name": "oe_test_subunit_install_and_remove_subunit-debuginfo" + }, + { + "name": "oe_test_subunit_install_and_remove_subunit-debugsource" + }, + { + "name": "oe_test_subunit_install_and_remove_python2-subunit" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sudo.json b/suite2cases/sudo.json index 1ca39f9c732208bd07859a60c446cc66d43a00e1..4ee812309d38cdc24fedcfc4cb352538dc1454d6 100644 --- a/suite2cases/sudo.json +++ b/suite2cases/sudo.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/sudo", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_sudo_cvtsudoers" + }, + { + "name": "oe_test_sudo_install_and_remove_sudo" + }, + { + "name": "oe_test_sudo_install_and_remove_sudo-debugsource" + }, + { + "name": "oe_test_sudo_install_and_remove_sudo-debuginfo" + }, + { + "name": "oe_test_sudo_install_and_remove_sudo-devel" + }, + { + "name": "oe_test_sudo_install_and_remove_sudo-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/swig.json b/suite2cases/swig.json index cdb908c019db629669be11303d52876d60435b82..545a05f423b23819511c47daa1e2a2e72811eda9 100644 --- a/suite2cases/swig.json +++ b/suite2cases/swig.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/swig", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_swig_01" @@ -33,6 +36,27 @@ }, { "name": "oe_test_swig_11" + }, + { + "name": "oe_test_swig_install_and_remove_swig" + }, + { + "name": "oe_test_swig_install_and_remove_swig-doc" + }, + { + "name": "oe_test_swig_install_and_remove_swig-help" + }, + { + "name": "oe_test_swig_install_and_remove_ccache-swig" + }, + { + "name": "oe_test_swig_install_and_remove_swig-gdb" + }, + { + "name": "oe_test_swig_install_and_remove_swig-debuginfo" + }, + { + "name": "oe_test_swig_install_and_remove_swig-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/switcheroo-control.json b/suite2cases/switcheroo-control.json index 2e8bee931abb946725dab817abea4f541d171cc1..6c46e661d7f2fea83fb539484004ce8285559c24 100644 --- a/suite2cases/switcheroo-control.json +++ b/suite2cases/switcheroo-control.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/switcheroo-control", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_switcheroo-control" } ] -} +} \ No newline at end of file diff --git a/suite2cases/symlinks.json b/suite2cases/symlinks.json new file mode 100644 index 0000000000000000000000000000000000000000..697651d3b3cd9902d0f20d285c364d6994a5996a --- /dev/null +++ b/suite2cases/symlinks.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/symlinks", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_symlinks_install_and_remove_symlinks" + }, + { + "name": "oe_test_symlinks_install_and_remove_symlinks-debuginfo" + }, + { + "name": "oe_test_symlinks_install_and_remove_symlinks-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sysbench_cpu.json b/suite2cases/sysbench_cpu.json new file mode 100644 index 0000000000000000000000000000000000000000..830047578b45ee71999fed588f092bbc165974dc --- /dev/null +++ b/suite2cases/sysbench_cpu.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/cpu/sysbench_cpu", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_sysbench_cpu" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sysbench_memory.json b/suite2cases/sysbench_memory.json new file mode 100644 index 0000000000000000000000000000000000000000..1175ea47800fcb26317ae40ef5cca6f29aadf24d --- /dev/null +++ b/suite2cases/sysbench_memory.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/memory/sysbench_memory", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_sysbench_memory" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sysboost.json b/suite2cases/sysboost.json index 251e2850f00b6420319cab7fa0fed5a2a815785a..49f9b6d22bb8b06d7b493818d78bbfa92ba9f6a9 100644 --- a/suite2cases/sysboost.json +++ b/suite2cases/sysboost.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/feature-test/sysboost", - "cases": [ - { - "name": "oe_test_sysboost_fun" - } - ] -} + "path": "$OET_PATH/testcases/feature-test/sysboost", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_sysboost_fun" + } + ] +} \ No newline at end of file diff --git a/suite2cases/syscare.json b/suite2cases/syscare.json index 6f6a7ca1b8d24d1f94c15a723aad6310fa648f30..599c75e54e66511394627193eb59ee0c980b5f22 100644 --- a/suite2cases/syscare.json +++ b/suite2cases/syscare.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/syscare", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_syscare_basic_test" @@ -8,10 +10,10 @@ "name": "oe_test_syscare_build_kpatch" }, { - "name":"oe_test_syscare_build_all_param" + "name": "oe_test_syscare_build_all_param" }, { - "name":"oe_test_syscare_build_error_param" + "name": "oe_test_syscare_build_error_param" } ] -} +} \ No newline at end of file diff --git a/suite2cases/sysfsutils.json b/suite2cases/sysfsutils.json index 509500d5ebcebdcb52e1b865b014aa52925a9c36..3262af8de0a969222b97fe070ef0be3bdca4b6ad 100644 --- a/suite2cases/sysfsutils.json +++ b/suite2cases/sysfsutils.json @@ -1,11 +1,29 @@ { - "path": "$OET_PATH/testcases/cli-test/sysfsutils", - "cases": [ - { - "name": "oe_test_systools" - }, - { - "name": "oe_test_systool_002" - } - ] + "path": "$OET_PATH/testcases/cli-test/sysfsutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_systools" + }, + { + "name": "oe_test_systool_002" + }, + { + "name": "oe_test_sysfsutils_install_and_remove_sysfsutils" + }, + { + "name": "oe_test_sysfsutils_install_and_remove_sysfsutils-devel" + }, + { + "name": "oe_test_sysfsutils_install_and_remove_sysfsutils-help" + }, + { + "name": "oe_test_sysfsutils_install_and_remove_sysfsutils-debuginfo" + }, + { + "name": "oe_test_sysfsutils_install_and_remove_sysfsutils-debugsource" + } + ] } \ No newline at end of file diff --git a/suite2cases/sysget.json b/suite2cases/sysget.json index a5205bad57ba56e4da92a04f2fdef8da346cc1f8..444900a18beeed47615c7993dff1113c22888ad4 100644 --- a/suite2cases/sysget.json +++ b/suite2cases/sysget.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/sysget", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_sysget_01" - }, - { - "name": "oe_test_sysget_02" + }, + { + "name": "oe_test_sysget_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/syslinux.json b/suite2cases/syslinux.json new file mode 100644 index 0000000000000000000000000000000000000000..3d3bfec3619fc3244091e6c8ec241ef64ec6774c --- /dev/null +++ b/suite2cases/syslinux.json @@ -0,0 +1,41 @@ +{ + "path": "$OET_PATH/testcases/cli-test/syslinux", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_syslinux_install_and_remove_syslinux" + }, + { + "name": "oe_test_syslinux_install_and_remove_syslinux-extlinux" + }, + { + "name": "oe_test_syslinux_install_and_remove_syslinux-tftpboot" + }, + { + "name": "oe_test_syslinux_install_and_remove_syslinux-extlinux-nonlinux" + }, + { + "name": "oe_test_syslinux_install_and_remove_syslinux-nonlinux" + }, + { + "name": "oe_test_syslinux_install_and_remove_syslinux-devel" + }, + { + "name": "oe_test_syslinux_install_and_remove_syslinux-efi64" + }, + { + "name": "oe_test_syslinux_install_and_remove_syslinux-perl" + }, + { + "name": "oe_test_syslinux_install_and_remove_syslinux-help" + }, + { + "name": "oe_test_syslinux_install_and_remove_syslinux-debugsource" + }, + { + "name": "oe_test_syslinux_install_and_remove_syslinux-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sysmonitor.json b/suite2cases/sysmonitor.json index 5edef926a47a51db641725da5399c1e757ead383..5ebeb4432ea8e45c225bf69070939fb37a400df4 100644 --- a/suite2cases/sysmonitor.json +++ b/suite2cases/sysmonitor.json @@ -1,44 +1,46 @@ { - "path": "$OET_PATH/testcases/feature-test/sysmonitor", - "cases": [ - { - "name": "oe_test_sysmonitor_cpu" - }, - { - "name": "oe_test_sysmonitor_custom" - }, - { - "name": "oe_test_sysmonitor_disk" - }, - { - "name": "oe_test_sysmonitor_file" - }, - { - "name": "oe_test_sysmonitor_filesystem" - }, - { - "name": "oe_test_sysmonitor_handles" - }, - { - "name": "oe_test_sysmonitor_inode" - }, - { - "name": "oe_test_sysmonitor_iodelay" - }, - { - "name": "oe_test_sysmonitor_memory" - }, - { - "name": "oe_test_sysmonitor_netcard" - }, - { - "name": "oe_test_sysmonitor_process" - }, - { - "name": "oe_test_sysmonitor_pscnt" - }, - { - "name": "oe_test_sysmonitor_zombie" - } - ] -} + "path": "$OET_PATH/testcases/feature-test/sysmonitor", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_sysmonitor_cpu" + }, + { + "name": "oe_test_sysmonitor_custom" + }, + { + "name": "oe_test_sysmonitor_disk" + }, + { + "name": "oe_test_sysmonitor_file" + }, + { + "name": "oe_test_sysmonitor_filesystem" + }, + { + "name": "oe_test_sysmonitor_handles" + }, + { + "name": "oe_test_sysmonitor_inode" + }, + { + "name": "oe_test_sysmonitor_iodelay" + }, + { + "name": "oe_test_sysmonitor_memory" + }, + { + "name": "oe_test_sysmonitor_netcard" + }, + { + "name": "oe_test_sysmonitor_process" + }, + { + "name": "oe_test_sysmonitor_pscnt" + }, + { + "name": "oe_test_sysmonitor_zombie" + } + ] +} \ No newline at end of file diff --git a/suite2cases/sysprof.json b/suite2cases/sysprof.json index 9bfb49be428bbef5493bf8d70615deb85e407ab2..fba086cfa7fadf17aefc26477d4d47157d010bae 100644 --- a/suite2cases/sysprof.json +++ b/suite2cases/sysprof.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/sysprof", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_sysprof2" @@ -8,4 +10,4 @@ "name": "oe_test_service_sysprof3" } ] -} +} \ No newline at end of file diff --git a/suite2cases/sysstat.json b/suite2cases/sysstat.json index 4a961b41423ee60147ee1fd353e6f98781c0789e..bc8a2951c18b442608a23f6340d87599e6b35cd2 100644 --- a/suite2cases/sysstat.json +++ b/suite2cases/sysstat.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/sysstat", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_sysstat-collect" @@ -10,8 +12,8 @@ { "name": "oe_test_service_sysstat-summary" }, - { + { "name": "oe_test_sysstat_iostat" - } + } ] -} +} \ No newline at end of file diff --git a/suite2cases/systemd.json b/suite2cases/systemd.json index 2ddea488942ee7eefc3eb6d98c2692a39e1159fd..e0c6e22f1297d366791b3e6d382f8aca66dedfb7 100644 --- a/suite2cases/systemd.json +++ b/suite2cases/systemd.json @@ -1,6 +1,9 @@ { "path": "$OET_PATH/testcases/cli-test/systemd", "machine num": 2, + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_console-getty" @@ -424,7 +427,7 @@ { "name": "oe_test_target_sockets" }, - { + { "name": "oe_test_target_suspend" }, { @@ -454,13 +457,13 @@ { "name": "oe_test_target_umount" }, - { + { "name": "oe_test_service_emergency" }, { "name": "oe_test_target_emergency" }, - { + { "name": "oe_test_service_systemd-sysext" }, { @@ -483,6 +486,111 @@ }, { "name": "oe_test_target_veritysetup-pre" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-udev" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-container" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-resolved" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-nspawn" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-networkd" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-timesyncd" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-devel" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-libs" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-pam" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-cryptsetup" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-debuginfo" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-help" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-debugsource" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-udev-compat" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-oomd" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-journal-remote" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-standalone-sysusers" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-bsod" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-pcrlock" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-standalone-repart" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-tests" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-rpm-macros" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-boot-unsigned" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-battery-check" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-storagetm" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-doc" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-oomd-defaults" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-standalone-tmpfiles" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-standalone-shutdown" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-sysv" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-python" + }, + { + "name": "oe_test_systemd_install_and_remove_systemd-journal-gateway" + }, + { + "name": "oe_test_systemd_install_and_remove_libgudev1" + }, + { + "name": "oe_test_systemd_install_and_remove_libgudev1-devel" } ] -} +} \ No newline at end of file diff --git a/suite2cases/systemtap.json b/suite2cases/systemtap.json index 57674d330e28f041aa8a021769381a4051f92830..627ea5de3e65a7804845bf36f44e77afd961dc7f 100644 --- a/suite2cases/systemtap.json +++ b/suite2cases/systemtap.json @@ -1,6 +1,9 @@ { "path": "$OET_PATH/testcases/cli-test/systemtap", - "machine type": "physical", + "machine type": "physical", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_stap-exporter", @@ -11,6 +14,66 @@ }, { "name": "oe_test_service_systemtap" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-testsuite" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-server" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-client" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-sdt-devel" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-runtime-python3" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-stap-exporter" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-devel" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-runtime" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-jupyter" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-help" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-debugsource" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-debuginfo" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-runtime-java" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-lang" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-runtime-virthost" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-runtime-python2" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-exporter" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-runtime-virtguest" + }, + { + "name": "oe_test_systemtap_install_and_remove_systemtap-initscript" } ] -} +} \ No newline at end of file diff --git a/suite2cases/tang.json b/suite2cases/tang.json index 630aaebfa2fff8b964bf86111953a32db66f8e94..fcfdc9b26179ad86e280579ed806a9f44790c297 100644 --- a/suite2cases/tang.json +++ b/suite2cases/tang.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tang", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_tangd-keygen" @@ -11,4 +13,4 @@ "name": "oe_test_socket_tangd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/tar.json b/suite2cases/tar.json new file mode 100644 index 0000000000000000000000000000000000000000..3bf1fb1a204b8ade276884a5a13130069a36f2b0 --- /dev/null +++ b/suite2cases/tar.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tar", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tar_install_and_remove_tar" + }, + { + "name": "oe_test_tar_install_and_remove_tar-help" + }, + { + "name": "oe_test_tar_install_and_remove_tar-debuginfo" + }, + { + "name": "oe_test_tar_install_and_remove_tar-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/targetcli.json b/suite2cases/targetcli.json index da887cc8d5599aab13bd3e817b170d27e208e4ed..858373475b3176df16e6356d92a964eade52a72b 100644 --- a/suite2cases/targetcli.json +++ b/suite2cases/targetcli.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/targetcli", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_targetcli_01" diff --git a/suite2cases/tbb.json b/suite2cases/tbb.json new file mode 100644 index 0000000000000000000000000000000000000000..22132be2d4f3cd100386c669685506b8cd44ce5a --- /dev/null +++ b/suite2cases/tbb.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tbb", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tbb_install_and_remove_tbb" + }, + { + "name": "oe_test_tbb_install_and_remove_tbb-devel" + }, + { + "name": "oe_test_tbb_install_and_remove_tbb-bind" + }, + { + "name": "oe_test_tbb_install_and_remove_tbb-help" + }, + { + "name": "oe_test_tbb_install_and_remove_python3-tbb" + }, + { + "name": "oe_test_tbb_install_and_remove_tbb-debuginfo" + }, + { + "name": "oe_test_tbb_install_and_remove_tbb-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/tboot.json b/suite2cases/tboot.json index c2be22347dea3d3007ff27ba0da31be9c90262ea..e89b22e9cb2a309f2b6c8f3caa2e069604b81d15 100644 --- a/suite2cases/tboot.json +++ b/suite2cases/tboot.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tboot", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tboot_lcp2_crtpolelt" diff --git a/suite2cases/tboot_1.10.2-3.json b/suite2cases/tboot_1.10.2-3.json index e4ec31d9ea45fa0637710c0aa5ec87c658944c2e..3dc29c04ba484197085a36e6ab63e1255db0d42c 100644 --- a/suite2cases/tboot_1.10.2-3.json +++ b/suite2cases/tboot_1.10.2-3.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tboot", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tboot_1.10.2-3_lcp2_crtpol" diff --git a/suite2cases/tboot_1.9.12-2.json b/suite2cases/tboot_1.9.12-2.json index 436184fc13bb5d4a0a676ca878a2157ed7233d51..fa542bf2a93f8eae21af827fa559787d22675139 100644 --- a/suite2cases/tboot_1.9.12-2.json +++ b/suite2cases/tboot_1.9.12-2.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tboot", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tboot_1.9.12-2_lcp2_crtpol" diff --git a/suite2cases/tcl.json b/suite2cases/tcl.json new file mode 100644 index 0000000000000000000000000000000000000000..f61532f76d8be5f36e7757050885e006212ed738 --- /dev/null +++ b/suite2cases/tcl.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tcl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tcl_install_and_remove_tcl" + }, + { + "name": "oe_test_tcl_install_and_remove_tcl-devel" + }, + { + "name": "oe_test_tcl_install_and_remove_tcl-help" + }, + { + "name": "oe_test_tcl_install_and_remove_tcl-debugsource" + }, + { + "name": "oe_test_tcl_install_and_remove_tcl-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/tcllib.json b/suite2cases/tcllib.json index cd8b96d7f338296bf1ec01e72a68eef5c8d020b1..f696d8edd161db419b234aabab16300639c51f32 100644 --- a/suite2cases/tcllib.json +++ b/suite2cases/tcllib.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/tcllib", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tcllib_dtplite" @@ -9,6 +12,12 @@ }, { "name": "oe_test_tcllib_page" + }, + { + "name": "oe_test_tcllib_install_and_remove_tcllib" + }, + { + "name": "oe_test_tcllib_install_and_remove_tcllib-help" } ] } \ No newline at end of file diff --git a/suite2cases/tcsh.json b/suite2cases/tcsh.json new file mode 100644 index 0000000000000000000000000000000000000000..dc99e7e5571f9206e12a0bded421c03fece06f02 --- /dev/null +++ b/suite2cases/tcsh.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tcsh", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tcsh_install_and_remove_tcsh" + }, + { + "name": "oe_test_tcsh_install_and_remove_tcsh-help" + }, + { + "name": "oe_test_tcsh_install_and_remove_tcsh-debugsource" + }, + { + "name": "oe_test_tcsh_install_and_remove_tcsh-debuginfo" + }, + { + "name": "oe_test_tcsh_install_and_remove_tcsh-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/telnet.json b/suite2cases/telnet.json index 5db640855aaf5cb4ef8d1289d578b7a5b3aa8b6e..eca353dff4b0fd279da12676b03e85a287a567f6 100644 --- a/suite2cases/telnet.json +++ b/suite2cases/telnet.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/telnet", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_socket_telnet" + }, + { + "name": "oe_test_telnet_install_and_remove_telnet" + }, + { + "name": "oe_test_telnet_install_and_remove_telnet-help" + }, + { + "name": "oe_test_telnet_install_and_remove_telnet-debugsource" + }, + { + "name": "oe_test_telnet_install_and_remove_telnet-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/tensorflow.json b/suite2cases/tensorflow.json index 23ba9e2c8226ee39b67bb9c9e78f04bb5d1b2b72..8dc28fc8c9379f9d9c2179e20b9959e76d0342e9 100644 --- a/suite2cases/tensorflow.json +++ b/suite2cases/tensorflow.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/tensorflow", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_python3-tensorflow" } ] -} +} \ No newline at end of file diff --git a/suite2cases/testng.json b/suite2cases/testng.json index 9f0150b725a0140eac61644af18e65fd430a4ea2..3c2d33fe672cc774c8534df082d4520ee7f14fea 100644 --- a/suite2cases/testng.json +++ b/suite2cases/testng.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/testng", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_testNG_annotations_assert" diff --git a/suite2cases/testsuite.json b/suite2cases/testsuite.json index 2efdbf4d94d73aa6340f261fd857c258ff70ec85..e69e3aeba49a84ad68b5886750a6dde874232ced 100644 --- a/suite2cases/testsuite.json +++ b/suite2cases/testsuite.json @@ -6,6 +6,8 @@ "add disk": [ 50 ], + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_casename_01", diff --git a/suite2cases/texi2html.json b/suite2cases/texi2html.json index 2c3ded35934c82296ec37769fdb4d045ba38d67d..1c5229172d448247d63d209b83e6035797517db2 100644 --- a/suite2cases/texi2html.json +++ b/suite2cases/texi2html.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/texi2html", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_texi2html_01" @@ -26,4 +28,4 @@ "name": "oe_test_texi2html_08" } ] -} +} \ No newline at end of file diff --git a/suite2cases/texinfo.json b/suite2cases/texinfo.json new file mode 100644 index 0000000000000000000000000000000000000000..71889485edbe447ec68db3a78b89c46c12f6fcb4 --- /dev/null +++ b/suite2cases/texinfo.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texinfo", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texinfo_install_and_remove_texinfo" + }, + { + "name": "oe_test_texinfo_install_and_remove_info" + }, + { + "name": "oe_test_texinfo_install_and_remove_texinfo-help" + }, + { + "name": "oe_test_texinfo_install_and_remove_texinfo-tex" + }, + { + "name": "oe_test_texinfo_install_and_remove_texinfo-debuginfo" + }, + { + "name": "oe_test_texinfo_install_and_remove_texinfo-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-base.json b/suite2cases/texlive-base.json new file mode 100644 index 0000000000000000000000000000000000000000..faa1dd383f2b5db4710a3181994288fd4bfd3b89 --- /dev/null +++ b/suite2cases/texlive-base.json @@ -0,0 +1,659 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-base", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-base_install_and_remove_texlive-base" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-accfonts" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-afm2pl" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-amstex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-arara" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-bib2gls" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-bibtex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-bibtexu" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-checkcites" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-chklref" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-clojure-pamphlet" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-cluttex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-context-doc" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-crossrefware" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-cslatex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-csplain" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ctanbib" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-cweb" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-cyrillic" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dosepsbin" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dvidvi" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dviljk" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dvipdfmx" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ebong" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-eplain" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-epspdf" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-epstopdf" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-hyperxmp" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-jadetex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-kotex-utils" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-kpathsea" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-latex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-latex-git-log" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-latexindent" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-lilyglyphs" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-listings-ext" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-lollipop" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ltxfileinfo" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-lwarp" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-makedtx" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-mex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-mflua" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-mkgrkindex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-mkjobtexmf" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-mkpic" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-mltex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-oberdiek" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pax" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pdfcrop" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pdftosrc" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pkfix-helper" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pst-pdf" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ptex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pythontex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-seetexk" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-splitindex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-synctex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-tex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texcount" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texdef" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texdiff" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texdirflatten" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texdoctk" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texfot" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texlive-scripts" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texlive.infra" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texplate" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-tpic2pdftex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ulqda" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-uptex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-velthuis" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-vlna" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-web" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-wordcount" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-xml2pmx" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-xpdfopen" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-yplan" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-autosp" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-axodraw2" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-bibexport" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-bibtex8" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-cachepic" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-checklistings" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-chktex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ctanify" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ctie" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-de-macro" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-diadia" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dtxgen" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dviinfox" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dvipng" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dvipos" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dvips" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-fontinst" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-fontware" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-getmap" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-glossaries" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-glyphlist" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-gsftopk" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-jfmutil" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ketcindy" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-l3build" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-lacheck" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-latexdiff" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-latexfileversion" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-lib-devel" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-listbib" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ltximg" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-luaotfload" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-luahbtex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-luatex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-lyluatex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-mathspic" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-mf2pt1" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-musixtex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-musixtnt" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-optex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-patgen" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pdfjam" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pdftex-quiet" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pdfxup" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-perltex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pmx" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pst2pdf" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ptex-fontmaps" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-purifyeps" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pygmentex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-tex4ebook" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-tex4ht" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texdoc" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texliveonfly" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texlive-scripts-extra" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texloganalyser" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ttfutils" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-vpe" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-webquiz" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-xdvi" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-a2ping" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-adhocfilelist" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-albatross" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-aleph" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-attachfile2" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-authorindex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-bundledoc" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-cjkutils" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-context" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-convbkmk" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ctan-o-mat" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ctanupload" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-detex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dtl" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dvi2tty" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dviasm" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dvicopy" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dviout-util" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-dvisvgm" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-exceltex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-fig4latex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-findhyph" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-fontools" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-fragmaster" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-git-latexdiff" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-gregoriotex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-installfont" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-latex-papersize" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-latex2man" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-latex2nemeth" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-latexpand" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-lcdftypetools" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-lib" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-light-latex-make" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-luajittex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-make4ht" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-makeindex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-match_parens" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-metafont" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-metapost" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-mfware" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-mptopdf" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-multibibliography" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-m-tx" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-omegaware" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pdfbook2" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pdflatexpicscale" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pdftex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pedigree-perl" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-petri-nets" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pfarrei" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pkfix" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pmxchords" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ps2eps" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ps2pk" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-ptex2pdf" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-rubik" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-spix" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-srcredact" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-sty2dtx" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-svn-multi" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texlive-en" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texosquery" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texsis" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texware" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-thumbpdf" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-tie" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-tikztosvg" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-typeoutfileinfo" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-urlbst" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-xetex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-xindex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-xmltex" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-base-debugsource" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-base-debuginfo" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pstools" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-lua2dox" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-texconfig" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-pdftools" + }, + { + "name": "oe_test_texlive-base_install_and_remove_texlive-tetex" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-filesystem.json b/suite2cases/texlive-filesystem.json new file mode 100644 index 0000000000000000000000000000000000000000..0e0a9734337edcb871a487987b7a7b029acbe87d --- /dev/null +++ b/suite2cases/texlive-filesystem.json @@ -0,0 +1,152 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-filesystem", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-filesystem" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-scheme-gust" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-scheme-medium" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-scheme-tetex" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-basic" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontutils" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langczechslovak" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langgerman" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langgreek" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langjapanese" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langkorean" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langother" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langspanish" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-latexextra" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-metapost" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-bibtexextra" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-binextra" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontsrecommended" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-formatsextra" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-humanities" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langarabic" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langchinese" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langcyrillic" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langenglish" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langfrench" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langpolish" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langportuguese" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-latex" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-luatex" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-pictures" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-plaingeneric" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-pstricks" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-scheme-basic" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-scheme-context" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-scheme-full" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-scheme-minimal" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-scheme-small" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-context" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontsextra" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-games" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langcjk" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langeuropean" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-langitalian" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-latexrecommended" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-mathscience" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-music" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-publishers" + }, + { + "name": "oe_test_texlive-filesystem_install_and_remove_texlive-collection-xetex" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-a.json b/suite2cases/texlive-split-a.json new file mode 100644 index 0000000000000000000000000000000000000000..595739d6e1bc28357c2a4156c0eafabea49a3178 --- /dev/null +++ b/suite2cases/texlive-split-a.json @@ -0,0 +1,665 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-a", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-split-a" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-a4wide-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-a5comb-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aastex" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abbr" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abntex2-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-accanthis" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-accanthis-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-achemso-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-acroterm-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-acro-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-active-conf-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-actuarialangle" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-actuarialangle-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adforn" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adfsymbols-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adjmulticol-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adjustbox" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adjustbox-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adobemapping" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-advdate" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aeguill" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-ae" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-ae-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-afthesis-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aguplus-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aichej" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-akktex-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-akletter" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-akletter-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alertmessage" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-algorithms" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-algorithms-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-allrunes-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-almfixed-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alnumsec-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alterqcm" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alterqcm-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-altfont" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-ametsoc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-ametsoc-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amiri-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsaddr" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amscls" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsldoc-vn-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsmath" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsrefs" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsrefs-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-animate-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-anonymouspro" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-answers" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-antomega" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-anufinalexam-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-anyfontsize-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aobs-tikz" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apa6e-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apnum-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-appendix" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apprends-latex-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apptools" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arabtex" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arabtex-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arabxetex-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aramaic-serto-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-archaic" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arcs" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arcs-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arev-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-ESIEEcv" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-GS1" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-IEEEtran-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-SIstyle" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-SIstyle-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-SIunits" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-SIunits-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arabluatex-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-archaeologie-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abnt" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-actuarialsymbol" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aligned-overset" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apxproof" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-12many" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-a0poster" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-a5comb" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abbr-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abraces-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abstyles" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abstyles-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-acmconf" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-acronym" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-acroterm" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-addlines" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adfathesis" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adfathesis-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adfsymbols" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adrconv" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adrconv-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-advdate-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aeguill-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aiaa" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alegreya" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alegreya-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alertmessage-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-algorithm2e-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-algorithmicx" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alg-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-allrunes" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-altfont-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amslatex-primer-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsmath-it-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsmath-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsthdoc-it-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-animate" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-antiqua" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-antiqua-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-antt" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-antt-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-anyfontsize" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-anysize" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aobs-tikz-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aomart" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aomart-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apacite-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apa" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apnum" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-appendixnumberbeamer-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aramaic-serto" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arev" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-armtex" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-MemoirChapStyles-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-HA-prosper-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-IEEEconf-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adtrees" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arabi-add-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-archaeologie" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-addfont" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alkalami" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apalike-german" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arimo" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-algobox" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adigraph" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amscls-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-12many-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-2up" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-2up-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-a0poster-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-a4wide" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aastex-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abc-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abntex2" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abraces" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abstract" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-abstract-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-academicons" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-academicons-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-achemso" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-acmconf-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-acronym-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-acro" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-active-conf" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-addlines-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adforn-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adjmulticol" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-afparticle" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-afparticle-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-afthesis" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aguplus" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aiaa-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-ajl" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-akktex" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-algorithm2e" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-algorithmicx-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alg" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-almfixed" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-alnumsec" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amiri" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsaddr-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsfonts" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsfonts-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-amsldoc-it-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-anonchap" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-anonchap-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-anonymouspro-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-answers-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-antomega-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-anysize-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apa6e" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apa6" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apa6-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apacite" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apalike2" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apa-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-appendixnumberbeamer" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-appendix-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-apptools-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arabi" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arabi-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arabxetex" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-archaic-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-armtex-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-asana-math" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-asana-math-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-Type1fonts-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-ESIEEcv-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-GS1-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-HA-prosper" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-Tabbing" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-Tabbing-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-IEEEconf" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-IEEEtran" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-acmart-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-acmart" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-adtrees-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arabi-add" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-arabluatex" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-algolrevived" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aecc-doc" + }, + { + "name": "oe_test_texlive-split-a_install_and_remove_texlive-aecc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-d.json b/suite2cases/texlive-split-d.json new file mode 100644 index 0000000000000000000000000000000000000000..313d3cd4899c96cd3adeab94b2f94f3176518d8b --- /dev/null +++ b/suite2cases/texlive-split-d.json @@ -0,0 +1,944 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-d", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-split-d" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blacklettert1-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blindtext" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blindtext-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blkarray" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blkarray-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-block-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bodegraph" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bodegraph-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bohr-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boites" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bold-extra" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bondgraphs" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bondgraphs-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bookcover-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bookdb-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bookest-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-booklet-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bookman" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-booktabs-fr-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-booktabs" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bophook-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-borceux" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bpchem-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bracketkey" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-braille" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-breqn-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-brushscr" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bullcntr-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-burmese-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bussproofs" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxbase" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxdpx-beamer-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxeepic-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxjscls" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxjscls-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calculation-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calculator-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calligra" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calligra-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calrsfs-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cals-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calxxxx-yyyy" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-canoniclayout-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cantarell-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-captdef" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-captdef-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-caption" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-carolmin-ps" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cascadilla" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cases-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-catcodes-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-catechis" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-catechis-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-catoptions-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cbcoptic" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-fd-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-ccfonts-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-ccicons" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cclicenses-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cc-pl" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cc-pl-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cdpbundl-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cd" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cellspace-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cell-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-censor" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cfr-initials-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-changepage" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-changepage-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chappg" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chapterfolder" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-charter" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-charter-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemarrow" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chembst-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemcompounds-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemfig" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemgreek-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemmacros" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemschemex-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chessboard" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chessfss" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chessfss-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chess-problem-diagrams" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chet" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chicago-annote-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chickenize-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chkfloat" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chkfloat-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chletter" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chletter-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chngcntr" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chronology" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-circuitikz-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cite-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-breakcites-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxnewfont" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxpapersize" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chivo-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chivo" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-churchslavonic-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blacklettert1" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blochsphere" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blockdraw_mp" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-block" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bloques" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bnumexpr-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boisik-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boites-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bold-extra-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boldtensors" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bondgraph" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bondgraph-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bookest" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bookhands-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-booktabs-de-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-booktabs-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boolexpr" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boondox" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boondox-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bophook" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bosisio" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bosisio-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boxhandler" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bpchem" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bpolynomial-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bracketkey-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-braids" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-braids-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-braket" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-braket-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-brandeis-dissertation-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-breakurl" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-breakurl-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-breqn" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-br-lex-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bropd" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bropd-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxbase-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxcjkjatype-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxdpx-beamer" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxeepic" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bytefield" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bytefield-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-c90-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-caladea-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calcage" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calctab" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calligra-type1" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calligra-type1-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cals" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calxxxx-yyyy-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cancel" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-canoniclayout" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-captcont" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-caption-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-capt-of" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-capt-of-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-carlito" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-carlito-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-carolmin-ps-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cascadilla-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-casyl-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-catchfilebetweentags" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-catchfilebetweentags-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-catcodes" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-catoptions" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cbcoptic-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-ccicons-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cclicenses" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cd-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-celtic-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cfr-lm" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cfr-lm-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-changelayout" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-changes" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chbibref" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chbibref-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemcono-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemexec-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemformula" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemformula-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemgreek" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemmacros-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemnum" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemnum-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemschemex" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemstyle-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cherokee-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chess-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chet-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chextras" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chicago-annote" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chickenize" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chngcntr-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chronology-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chronosys" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chscite" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cinzel-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-circ" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-citeall" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-citeall-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-breakcites" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxdvidriver" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxenclose" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxnewfont-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxpapersize-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-carbohydrates-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-carbohydrates" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-churchslavonic" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bredzenie" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxcalc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxjalipsum" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxjaprnind" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxorigcapt" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-callouts" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cesenaexam" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cheatsheet" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-childdoc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blochsphere-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blockdraw_mp-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bloques-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blox" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-blox-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bnumexpr" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bohr" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boisik" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boldtensors-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bookcover" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bookdb" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bookhands" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-booklet" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boolexpr-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-borceux-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boxhandler-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bpolynomial" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-braille-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-brandeis-dissertation" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-br-lex" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-brushscr-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bullcntr" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-burmese" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bussproofs-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxcjkjatype" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxpdfver" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxpdfver-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-c90" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cabin" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cabin-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-caladea" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calcage-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calctab-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calculation" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calculator" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-calrsfs" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cancel-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cantarell" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-captcont-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-carlisle" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-carlisle-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cases" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-casyl" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-fd" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cbfonts" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-ccaption" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-ccaption-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-ccfonts" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cd-cover" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cd-cover-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cdpbundl" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cellspace" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cell" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-celtic" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-censor-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cfr-initials" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-changebar" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-changebar-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-changelayout-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-changes-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chappg-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chapterfolder-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemarrow-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chembst" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemcompounds" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemcono" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemexec" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemfig-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chem-journal" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemstyle" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cherokee" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chessboard-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chess-problem-diagrams-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chess" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chextras-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chicago" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chronosys-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chscite-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cinzel" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-circ-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-circuitikz" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cite" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxdvidriver-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-bxenclose-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cascade" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-cellprops" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-chemsec" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage2e" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage-doc" + }, + { + "name": "oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage2e-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-e.json b/suite2cases/texlive-split-e.json new file mode 100644 index 0000000000000000000000000000000000000000..4a8be8000c9057315e7db3a7a9767d26a98eabd8 --- /dev/null +++ b/suite2cases/texlive-split-e.json @@ -0,0 +1,983 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-e", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-split-e" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cinzel-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-circuitikz" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cite-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cjhebrew-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cjk-ko-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cjkpunct" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-classics-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-classpack" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-classpack-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clearsans-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cleveref-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clrscode" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmap" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmarrows" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmarrows-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmbright-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmcyr" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmcyr-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmextra" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cm-lgc-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmpica" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmpj" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmsd" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cm" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cm-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cnbwp-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cntformats" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cntformats-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-codedoc-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-codepage" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-codesection" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-codicefiscaleitaliano" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collref-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-compactbib" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-binextra" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-context" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-account" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-algorithmic" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-animation" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-annotation-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-chromato" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-construction-plan-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-cyrillicnumbers-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-french-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-fullpage" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-lettrine-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-notes-zh-cn" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-ruby" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-simplefonts" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-simpleslides" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-simpleslides-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-title" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-title-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-transliterator" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-transliterator-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-typearea-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-typescripts" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-typescripts-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-fontsextra" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-comfortaa" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-comfortaa-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-comicneue" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-comicneue-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-concmath-fonts" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-concmath-fonts-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cookingsymbols" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-countriesofeurope" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-courier" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-covington" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langcyrillic" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-components-of-TeX-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langeuropean" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langkorean" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langspanish" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-combinedgraphics" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colordoc-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colorwav" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colorweb" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-combine" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-comma" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-commado" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-commado-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-comment-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-constants" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cool" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coollist-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coolstr-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coolthms" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-copyedit-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-copyrightbox-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-counttexruns" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-courseoutline" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coursepaper" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coverpage-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-luatex" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-confproc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-confproc-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-complexity" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmdtrack-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmexb" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cochineal-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cochineal" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-texworks" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-combofont" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-inifile" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-conv-xkv" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cooking-units" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-citeref" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmsrb" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-competences" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-handlecsv" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-correctmathalign" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-lexikon-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-venturisadf" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-circ-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-citeall" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-citeall-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cite" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cjhebrew" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cjk-ko" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cjk-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-classicthesis" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-classicthesis-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clearsans" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clipboard" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clipboard-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clock" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clrscode3e" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmdstring" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmdstring-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmll" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmll-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmpica-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cm-super" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cm-super-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cm-unicode" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cm-unicode-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cnbwp" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cnltx" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cntperchap" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-codedoc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-codesection-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langjapanese" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collcell" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collectbox-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colortbl-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-animation-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-bnf-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-chromato-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-cyrillicnumbers" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-degrade" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-fancybreak-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-filter" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-gantt" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-letter-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-notes-zh-cn-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-rst" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-rst-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-typearea" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-vim-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-visualcounter" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-courier-scaled" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-courier-scaled-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-fontsrecommended" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-formatsextra" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colorsep" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-covington-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langarabic" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langczechslovak" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langenglish" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langpolish" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-pictures" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colorinfo-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colorspace" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colourchange-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-combelow" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-combelow-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-concepts-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-concprog" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-contracard" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-contracard-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coollist" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coolstr" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coolthms-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cooltooltips" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coordsys-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-copyedit" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-copyrightbox" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coseoul" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-counttexruns-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-courseoutline-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-concmath" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-concmath-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-conteq" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-metapost" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-music" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-pstricks" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-publishers" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-computational-complexity" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmdtrack" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coloring-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coloring" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-continue" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-mathscience" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-plaingeneric" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-layout" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clrdblpg" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clrstrip" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-wsuipa" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-wsuipa-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-venturisadf-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cinzel" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-circ" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-circuitikz-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cjkpunct-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cjk" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cns" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cns-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-classics" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cleanthesis" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cleanthesis-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clefval" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clefval-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cleveref" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clock-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cloze" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cloze-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clrscode3e-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-clrscode-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmap-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmbright" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cm-lgc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmpj-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmsd-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmtiup" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmtiup-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cnltx-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cntperchap-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-codepage-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langitalian" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-codicefiscaleitaliano-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collcell-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collectbox" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-basic" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-bibtexextra" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-latex" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colortbl" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collref" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-account-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-annotation" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-bnf" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-construction-plan" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-degrade-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-fancybreak" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-filter-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-french" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-fullpage-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-gantt-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-gnuplot" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-gnuplot-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-letter" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-lettrine" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-mathsets" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-mathsets-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-ruby-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-simplefonts-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-vim" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-visualcounter-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cookingsymbols-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-countriesofeurope-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-fontutils" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-games" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-humanities" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langchinese" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langcjk" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-comprehensive-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langfrench" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langgerman" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langgreek" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langother" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-langportuguese" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-latexextra" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-latexrecommended" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-combinedgraphics-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colordoc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colorinfo" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colorspace-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colortab" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colortab-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colorwav-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colorweb-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-colourchange" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-combine-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-comma-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-comment" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-concepts" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-concprog-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-constants-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-contour" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-contour-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cooking" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cooking-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cool-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cooltooltips-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coordsys" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coseoul-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coursepaper-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-coverpage" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-commath" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-commath-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-concrete" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-concrete-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-conteq-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-complexity-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-computational-complexity-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-collection-xetex" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cmexb-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-continue-doc" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cje" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-cmscbf" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-context-cmttbf" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cormorantgaramond" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-cm-mf-extra-bold" + }, + { + "name": "oe_test_texlive-split-e_install_and_remove_texlive-lexikon" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-h.json b/suite2cases/texlive-split-h.json new file mode 100644 index 0000000000000000000000000000000000000000..35b7ad8493d78f1c8461bf2a229a24e87cc7a7fe --- /dev/null +++ b/suite2cases/texlive-split-h.json @@ -0,0 +1,914 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-h", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-split-h" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etex" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etex-pkg-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-economic" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-maths" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-maths-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eiad-ltx-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-electrum" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-electrum-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elvish" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elvish-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epsdice" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esrelation-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eulervm" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ec" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eurosym" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-egameps-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eijkhout" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epigram" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epsf" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecltree" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-edfnotes" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eledform-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ethiop-t1-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eskdx" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etoolbox-de-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-es-tex-faq-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eso-pic" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-euenc-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-extsizes-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epspdfconversion" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esk-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easy-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easy-todo" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easy-todo-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-edmargin" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-edmargin-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elements-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elmath" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elocalloc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elpres-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elzcards-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emarks" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-embedall-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emulateapj" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-endheads-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-endnotes" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-endnotes-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-engpron" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-engpron-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-enotez" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-enotez-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-environ" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-envlab-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epigraph" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epigraph-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqlist" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqlist-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqname" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-errata-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esami" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esdiff-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esint" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esint-type1" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esint-type1-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etaremune" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etextools" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etextools-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-europasscv" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-europecv" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-europecv-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-everyhook-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-everypage" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exam-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exam-n" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exam-n-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-example" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-examplep-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exercise-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-export" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-export-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exsol" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exsol-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-extract" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebproof-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emp-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exteps" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exteps-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebook-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebsthesis-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ejpecp-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elsarticle" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elteikthesis-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-erdc-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eltex-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-engtlc-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecobiblatex-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-econometrics-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-econometrics" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emisa" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exercises" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emf" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-endnotesj" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqnnumwarn" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etex-pkg" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-economic-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecc-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eco" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eco-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eiad" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epigrafica-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-erewhon" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-erewhon-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esvect-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eulervm-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ec-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eurosym-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-encxvlna-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecltree-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-edfnotes-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ednotes" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ednotes-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eledmac" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-expex-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ethiop-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ethiop-t1" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eskd" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eskd-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eskdx-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-e-french-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-euenc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-extsizes" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eepic-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esk" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easyfig" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easyfig-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easylist" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easyreview" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebezier" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebezier-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecclesiastic" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecclesiastic-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecv" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecv-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ed-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-efbox" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-efbox-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-egplot" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-egplot-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elements" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ellipsis" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ellipsis-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elmath-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elzcards" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emptypage-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-endfloat" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-endheads" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-engrec-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-enumitem" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-enumitem-zref" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-envbig" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-envbig-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-environ-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-envlab" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epiolmec" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqparbox-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-errata" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esint-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etoc-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etoolbox" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eukdate-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-europasscv-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-everyhook" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-everypage-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-examdesign-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-excludeonly" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exp-testopt" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exp-testopt-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exsheets" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-extract-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-enigma-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebproof" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emp" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epsincl" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epsincl-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epsf-dvipdfmx-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ejpecp" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ekaia" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ekaia-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elbioimp" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elbioimp-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elsarticle-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elteikthesis" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-endiagram" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-engtlc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecobiblatex" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ellipse-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exercises-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easyformat" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ecgdraw" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqnalign" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eulerpx" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exercisebank" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-enctex" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-enctex-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etex-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ean" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ean-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eiad-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eiad-ltx" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epigrafica" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epsdice-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esrelation" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esstix" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esstix-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esvect" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-euxm" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-euro" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-euro-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-edmac" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-edmac-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-egameps" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-encxvlna" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epsf-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eledform" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eledmac-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-expex" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ethiop" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-e-french" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epslatex-fr-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etdipa-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eso-pic-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-euler" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-euler-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eepic" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epspdfconversion-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ean13isbn" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ean13isbn-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easy" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easylist-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-easyreview-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ed" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eemeir" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eemeir-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elocalloc-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-elpres" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emarks-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-embedall" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-embrac" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-embrac-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emptypage" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emulateapj-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-endfloat-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-engrec" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-enumitem-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-enumitem-zref-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epiolmec-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqell" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqell-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqparbox" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esami-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-esdiff" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etaremune-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etoc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etoolbox-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eukdate" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exam" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-examdesign" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-examplep" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-excludeonly-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exercise" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-expdlist" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-expdlist-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-exsheets-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-enigma" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqnarray" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eqnarray-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-extarrows" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-extarrows-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-extpfeil" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-extpfeil-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-expressg" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-expressg-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-epsf-dvipdfmx" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebook" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ebsthesis" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-erdc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-estcpmm" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-estcpmm-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-eltex" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-endiagram-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-ellipse" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-emisa-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-endofproofwd" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-erw-l3" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-etsvthor" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-euro-ce" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-einfuehrung2-doc" + }, + { + "name": "oe_test_texlive-split-h_install_and_remove_texlive-einfuehrung-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-i.json b/suite2cases/texlive-split-i.json new file mode 100644 index 0000000000000000000000000000000000000000..7653789759b883435d5390c8e2332a50253a5b3e --- /dev/null +++ b/suite2cases/texlive-split-i.json @@ -0,0 +1,863 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-i", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-split-i" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fonts-tlwg" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fonts-tlwg-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fix2col" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-figbib-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footbib" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footbib-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-francais-bst" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fbb" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fdsymbol" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fetamont" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-feyn" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fira" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontmfizz" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontmfizz-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fouriernc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fouriernc-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frcursive" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fpl-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontname" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fandol-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-finbib" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-facture" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr-it-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixltxhyph-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frontespizio" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frontespizio-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-feupphdteses" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancybox" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancybox-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancyref-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancyvrb" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontspec" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fitbox" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-forest-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancylabel" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancyslides" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancyslides-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancytooltips-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-figsize" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-filecontents" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-filemod" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fithesis" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixmetodonotes" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fjodor-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flacards" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flacards-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flashmovie-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-floatflt" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flowfram" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fmp" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fmp-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fmtcount" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fmtcount-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fncylab" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fnpara" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fnpct" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fnpct-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fnumprint" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-foilhtml" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-foilhtml-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontaxes" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fonttable" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footmisc-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footnotebackref" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footnoterange-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footnpag-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-foreign" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-forloop" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-formular-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fragments" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-framed" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-framed-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frankenstein-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fullblck" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fundus-sueterlin" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fundus-sueterlin-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-feynmf" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-figflow-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixpdfmag" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontch-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fcltxdoc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fcltxdoc-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fei-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fouridx" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-functan" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixlatvian-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-ffslides-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fibeamer" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixcmex-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixcmex" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fix2col-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fbs" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fbb-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fdsymbol-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fetamont-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fge" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fira-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-foekfont-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fonetika" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fonetika-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontawesome-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fourier" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frcursive-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fpl" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fenixpar" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fltpoint" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fltpoint-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fntproof" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fntproof-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontname-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fc-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fandol" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-first-latex-doc-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-facture-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frletter-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fifinddo-info-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixltxhyph" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-feupphdteses-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancyref" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancyvrb-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-float" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-float-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fp-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fast-diagram" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fast-diagram-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fitbox-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flowchart" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-facsimile" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-facsimile-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancylabel-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancypar" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fcolumn-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fifo-stack" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-filedate" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-filehook-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fileinfo" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fileinfo-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-filemod-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-finstrut-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixfoot" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixfoot-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixme" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixme-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fjodor" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flabels" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flagderiv-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flashmovie" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flipbook" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flippdf" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flippdf-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-floatrow" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fn2end" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fn2end-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fncylab-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fnpara-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fnumprint-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontaxes-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fonttable-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footnotebackref-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footnoterange" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-formular" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frame" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frame-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-ftcap-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-ftnxtra" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fullminipage-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fullwidth" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fundus-calligra-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fundus-cyr" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-faktor-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-featpost-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-feynmp-auto" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-figbas" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-figbas-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fcavtex-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fei" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fouridx-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-functan-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixlatvian" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontbook" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fibeamer-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fonts-churchslavonic" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fonts-churchslavonic-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footnotehyper" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fgruler" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-filecontentsdef" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixjfm" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-forest-quickstart-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frederika2016" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fvextra" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fnspe" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontawesome5" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-formation-latex-ul" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-figbib" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-francais-bst-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-feyn-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fge-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-foekfont" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontawesome" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fourier-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fenixpar-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frletter" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontspec-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fp" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flowchart-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-forest" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-factura" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-factura-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancynum" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancynum-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancypar-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancytabs" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancytabs-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fancytooltips" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fcolumn" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fifo-stack-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-figsize-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-filecontents-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-filedate-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-filehook" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fink" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fink-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-finstrut" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fithesis-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fixmetodonotes-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flabels-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flagderiv" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flashcards" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flashcards-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flipbook-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-floatflt-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-floatrow-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-flowfram-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fnbreak" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fnbreak-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fncychap" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fncychap-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footmisc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footnpag" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-forarray" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-forarray-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-foreign-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-forloop-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-formlett" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-formlett-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fragments-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frankenstein" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frege" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-frege-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-ftcap" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-ftnxtra-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fullblck-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fullminipage" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fullwidth-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fundus-calligra" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fwlw" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fwlw-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-faktor" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-featpost" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-feynmf-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-feynmp-auto-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-figflow" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-font-change" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-font-change-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontch" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fbithesis" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fbithesis-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fcavtex" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontbook-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontwrap" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontwrap-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-ffslides" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-font-change-xetex-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-font-change-xetex" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footnotehyper-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fetchcls" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-footmisx" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-forms16be" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fduthesis" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-FAQ-en-doc" + }, + { + "name": "oe_test_texlive-split-i_install_and_remove_texlive-fontloader-luaotfload" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-k.json b/suite2cases/texlive-split-k.json new file mode 100644 index 0000000000000000000000000000000000000000..9738f0ec4fb2b07a59c9de61bff34310ec4afb2b --- /dev/null +++ b/suite2cases/texlive-split-k.json @@ -0,0 +1,305 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-k", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-split-k" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harvmac-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-historische-zeitschrift-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hatching" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hfbright" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hfoldsty" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-havannah" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-havannah-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hexgame" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-horoscop-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hausarbeit-jura" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harveyballs-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-here-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hf-tikz" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hf-tikz-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hvfloat-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hardwrap" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harnon-cv" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harpoon-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hitec" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hitec-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hletter-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hvindex" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hvindex-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-har2nat" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hobete" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hobete-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hep" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hepnames" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hepparticles" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hepunits" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hagenberg-thesis" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-handin" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hulipsum" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hacm" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hacm-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hands" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-heuristica" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hfoldsty-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-helvetic" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-horoscop" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-happy4th-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hrlatex" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hobby-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-handout" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-handout-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harnon-cv-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-he-she" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-he-she-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hhtensor" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hhtensor-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-histogr" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-histogr-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hletter" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hpsdiss-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-har2nat-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hepnames-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hepthesis" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hepthesis-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harmony-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harvard" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harvard-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harvmac" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-historische-zeitschrift" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hatching-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-heuristica-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hfbright-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hanoi" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hexgame-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hook-pre-commit-pkg-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hrlatex-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hausarbeit-jura-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harveyballs" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-here" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hobby" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hvfloat" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hang" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hang-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hanging" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hanging-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hardwrap-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harpoon" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hc-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hpsdiss" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hrefhide" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hrefhide-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hep-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hepparticles-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hepunits-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-h2020proposal-doc" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-h2020proposal" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hackthefootline" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-halloweenmath" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hecthese" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hithesis" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hustthesis" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-hlist" + }, + { + "name": "oe_test_texlive-split-k_install_and_remove_texlive-harmony" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-m.json b/suite2cases/texlive-split-m.json new file mode 100644 index 0000000000000000000000000000000000000000..470f4d307ffc7ae75b5414e4f98453222e8f60c7 --- /dev/null +++ b/suite2cases/texlive-split-m.json @@ -0,0 +1,428 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-m", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-split-m" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jurabib" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-ksfh_nat" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jmn" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jamtimes" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jamtimes-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-junicode" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kastrup-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jura" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jura-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-juramisc-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kerkis" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-itnumpar" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kotex-oblivoir-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kotex-utf" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jknapltx" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-koma-script" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-knitting-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-knittingpattern-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-iso-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-iso10303-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isodate" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isodoc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isonums" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isorot" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isorot-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-issuulinks-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-iwhdp" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jlabels" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jlabels-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jslectureplanner" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kantlipsum-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keycommand-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keyreader" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keyval2e-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-koma-moderncvclassic" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-koma-script-sfs" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-koma-script-sfs-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-ktv-texdata-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-js-misc-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kluwer" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kluwer-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-karnaughmap" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jacow-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jacow" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keyvaltable-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-ksp-thesis" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-istgame" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-knowledge" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kanaparser" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-knuth-lib" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-knuth-local" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jneurosci-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jablantile" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jablantile-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-junicode-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kpfonts-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kurier" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kurier-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kastrup" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-juraabbrev" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jurarsp" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kerkis-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-uptex" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-uptex-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jsclasses" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jsclasses-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kotex-plain" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kotex-plain-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jknapltx-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-koma-script-examples-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-knitting" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isodoc-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isotope-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-issuulinks" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jslectureplanner-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jumplines" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jvlisting" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kantlipsum" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kerntest" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kerntest-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keycommand" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keystroke" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keystroke-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kix" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-komacv-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-ktv-texdata" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-js-misc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jpsj" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jpsj-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-karnaugh" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-karnaugh-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-karnaughmap-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isopt" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jlreq" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-ku-template" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-karnaugh-map" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kurdishlipsum" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jneurosci" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jurabib-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-iwona" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-iwona-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kixfont" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kixfont-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kpfonts" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-juraabbrev-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-juramisc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jurarsp-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-itnumpar-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kotex-oblivoir" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kotex-utf-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-knittingpattern" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-iso" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isomath" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isomath-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-iso10303" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isodate-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isonums-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-isotope" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-iwhdp-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jumplines-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jvlisting-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keyreader-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keyval2e" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kix-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-koma-moderncvclassic-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-komacv" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jmlr" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jmlr-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kdgdocs" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-kdgdocs-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keyvaltable" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-ksp-thesis-doc" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-iscram" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-keyfloat" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-komacv-rg" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-jnuexam" + }, + { + "name": "oe_test_texlive-split-m_install_and_remove_texlive-knuth-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-p.json b/suite2cases/texlive-split-p.json new file mode 100644 index 0000000000000000000000000000000000000000..48a6ef2078cd49e2695dab2611c9b9e03d4026eb --- /dev/null +++ b/suite2cases/texlive-split-p.json @@ -0,0 +1,632 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-p", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-split-p" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-natbib-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multibib" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newtx-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newtxsf" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-ncntrsbk" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multido" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mongolian-babel" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-neuralnetwork" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-neuralnetwork-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-numericplots" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moderncv-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-modref" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-morefloats" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-morehype" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moresize" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-morewrites-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-msc-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-msg" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mtgreek" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multenum" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multenum-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multiaudience" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multibbl" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multibbl-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multiexpand" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multiexpand-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mwe" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mwe-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mweights-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nag" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nag-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nameauth" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-namespc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-ncclatex" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-needspace-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newfile" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newlfm-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newspaper" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newunicodechar" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newunicodechar-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newvbtm" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newverbs" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nextpage" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nfssext-cfr" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nicefilelist-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nicetext" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nicetext-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multiobjective" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multiobjective-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nath" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mp3d" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mpcolornames-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mpattern" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mpgraphics-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-musixguit" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-musixguit-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mxedruli-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-musuos" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-muthesis-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nddiss" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nih-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multidef" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mynsfc-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mynsfc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nihbiosketch-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-modular" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-na-position" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-navydocs" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-niceframe-type1" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-musikui" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nmbib" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nmbib-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newpx-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newtx" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newtxtt" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nkarta" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-navigator" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multido-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-ncctools" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-ncctools-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-montex" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-montex-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nevelok" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nevelok-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mwcls" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-modiagram" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-modiagram-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-numericplots-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-modroman" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-modroman-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-morehype-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-morewrites" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mparhack-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-msc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-msg-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mslapa" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mslapa-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mtgreek-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multicap-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multienv-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mversion-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mycv" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mycv-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mylatexformat" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-namespc-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-needspace" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newcommand-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newenviron-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newspaper-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newverbs-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nfssext-cfr-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nlctdoc-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-natded" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-natded-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mpcolornames" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mpgraphics" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-musixtex-fonts-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-msu-thesis-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mugsthesis-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nature" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nature-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nddiss-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-ndsu-thesis" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nih" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mparrows-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mparrows" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mucproc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multilang" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-na-box" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-modernposter" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-modulus" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-morisawa" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nidanfloat" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-natbib" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multibib-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-munich" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-munich-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nar" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newpx" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newtxsf-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newtxtt-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nkarta-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-navigator-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mongolian-babel-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mpman-ru-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nanumtype1" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nanumtype1-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mwcls-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-ms" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-ms-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moderncv" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moderntimeline" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moderntimeline-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-modref-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-monofill" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-monofill-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moreenum" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moreenum-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-morefloats-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moresize-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moreverb" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moreverb-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mparhack" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multiaudience-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multicap" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multienv" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multirow" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multirow-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mversion" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mweights" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mylatexformat-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nameauth-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-ncclatex-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nestquot" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newenviron" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newfile-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newlfm" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newvbtm-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nicefilelist" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-niceframe" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-niceframe-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nlctdoc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nath-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mp3d-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mpattern-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-musixtex-fonts" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mxedruli" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newsletr" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-newsletr-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-msu-thesis" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mugsthesis" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-musuos-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-muthesis" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-ndsu-thesis-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moodle-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-moodle" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-multidef-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nihbiosketch" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nimbus15-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nimbus15" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-montserrat" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mpostinl" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-musicography" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mptrees" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-nicematrix" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mychemistry-doc" + }, + { + "name": "oe_test_texlive-split-p_install_and_remove_texlive-mychemistry" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-q.json b/suite2cases/texlive-split-q.json new file mode 100644 index 0000000000000000000000000000000000000000..256c8965d8db058f312ce20c1236269dac00988b --- /dev/null +++ b/suite2cases/texlive-split-q.json @@ -0,0 +1,461 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-q", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-split-q" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-norasi-c90" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-notes2bib-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocr-b" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oldlatin" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oldlatin-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-opensans-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-overlock" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-othello" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-othello-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-othelloboard" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ntheorem-vn-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ntgclass" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-numericplots" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-numericplots-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-noconflict-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nolbreaks" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nomencl-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nonfloat-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nonumonpart-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nopageno-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-notoccite" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nowidow-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-numberedblock" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-numname-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-numprint-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocgx" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocgx2-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocr-latex-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-omega" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-outliner-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-outlines-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nrc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-opteng" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-opteng-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-normalcolor-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-normalcolor" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nwejm-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-options-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-options" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-notespages" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-novel" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-notex-bst" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-overlays" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-notes2bib" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-old-arrows" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-old-arrows-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-obnov" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-obnov-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocherokee" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-outline" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-outline-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ogham" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oinuit-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oldstandard-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-orkhun-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-othelloboard-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ofs" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ofs-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ordinalpt" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ordinalpt-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ntgclass-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-noindentafter-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-noitcrul" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-noitcrul-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nomencl" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nonfloat" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nonumonpart" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-notes" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nowidow" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ntheorem" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-numberedblock-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-numname" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocg-p-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocgx-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-octavo-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oldstyle" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oldstyle-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-onlyamsmath-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-otibet" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-outline" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-outlines" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-overpic" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-overpic-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-odsfile" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ot-tableau" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ot-tableau-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nostarch" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-onrannual-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-noto" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-notestex" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-numnameru" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-numspell" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-octave" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-olsak-misc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oplotsymbl" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oscola" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oscola-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocherokee-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ogham-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oinuit" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oldstandard" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-opensans" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-orkhun" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-overlock-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-noconflict" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-noindentafter" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nolbreaks-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nomentbl" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nomentbl-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nopageno" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-notes-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-notoccite-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nox" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nox-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ntheorem-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-numprint" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocg-p" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocgx2" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-ocr-latex" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-octavo" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-omega-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-onlyamsmath" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-opcit" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-opcit-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-optional" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-optional-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-otibet-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-outline-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-outliner" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-odsfile-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oubraces" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-oubraces-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nostarch-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nrc-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-onrannual" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nuc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nuc-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-objectz" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-objectz-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-noto-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nucleardata-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nucleardata" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nwejm" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-optidef-doc" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-optidef" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-obsolete" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-nodetree" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-onedown" + }, + { + "name": "oe_test_texlive-split-q_install_and_remove_texlive-outlining" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-r.json b/suite2cases/texlive-split-r.json new file mode 100644 index 0000000000000000000000000000000000000000..c8c7587523657d4ff57729851a8fd036c5e6dced --- /dev/null +++ b/suite2cases/texlive-split-r.json @@ -0,0 +1,827 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-r", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-split-r" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plain" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-perception" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pnas2009" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pacioli" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phonetic" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phonetic-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-poltawski" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pxfonts-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pas-crosswords" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdf-trans" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-path" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-passivetex" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parrun" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phonrule-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-play" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-play-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plain-doc-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polski-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parskip" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parskip-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfpages-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-powerdot" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pb-diagram-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-blur-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-soroban-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfgantt" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfkeyx" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfkeyx-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfmolbio" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfmolbio-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfopts-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-picinpar" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pict2e-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-paralist-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-placeins" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pagerange" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pagerange-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pageslts" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pageslts-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-paper-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-papercdcase-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-papertex" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-papertex-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-paracol-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-paresse-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parnotes" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parselines-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pas-cours-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pas-cv" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pas-cv-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pas-tableur" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-patchcmd" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-patchcmd-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pauldoc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pauldoc-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pawpict" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pbox-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pbsheet-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdf14-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfcomment" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfscreen-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfwin" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfx" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-petiteannonce" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-petiteannonce-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-photo" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-photo-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-placeat" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-placeat-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-piano" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pitex-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plnfss-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdftricks" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdftricks2-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-physics" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-physics-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-philokalia" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polyglossia-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfornament-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-padauk" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfreview" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phffullpagefigure" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phfnote" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phfparen" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phfquotetext" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-poetry" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfoverlay" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfpc-movie" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfprivacy" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-penrose" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pixelart" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plantuml" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pm-isomath" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-powerdot-tuliplab" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pslatex" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pspicture" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pacioli-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-paratype" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-paratype-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phaistos-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pigpen-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-playfair" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-playfair-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pas-crosswords-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-psgo" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-psgo-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdf-trans-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-path-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parallel-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parrun-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plari-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-poemscol" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-poemscol-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-poetrytex-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pictexsum-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polski" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-psfrag" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-soroban" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlsd-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-picinpar-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pictex-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pinlabel" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pmgraph" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pmgraph-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-paralist" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-placeins-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pagecolor" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pagecolor-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pagecont-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pagenote" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-papercdcase" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-paracol" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pas-cours" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pas-tableur-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pawpict-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pbox" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pbsheet" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfcomment-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfcprot-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfmarginpar-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfpagediff-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfscreen" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfslide" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfslide-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfwin-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfx-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pecha" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-permute" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-philex-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pkgloader-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plantslabels" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plantslabels-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plates" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plweb-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polynom" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polytable-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-postcards" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-postcards-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-poster-mac" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-poster-mac-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-ppr-prv-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-piechartmp-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-piano-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-placeins-plain" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plipsum" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plipsum-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plstmary-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-philosophersimprint" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-philosophersimprint-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pittetd" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pkuthss" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parades-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parades" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pbibtex-base-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-spectra-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-platex-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-platex" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phonenumbers" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-platexcheat-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-platex-tools" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfornament-han" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plex-otf" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polexpr" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-psnfss" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-psnfss-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pspicture-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-perception-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phaistos" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pigpen" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-poltawski-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-palatino" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pxfonts" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plainpkg" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plainpkg-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parallel" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phonrule" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plari" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-poetrytex" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-persian-bib" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-persian-bib-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pst-eucl-translation-bg-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-patgen2-tutorial-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pl" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pl-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfpages" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-powerdot-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-psfrag-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pb-diagram" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-blur" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlcd" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlcd-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlsd" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfgantt-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfopts" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfplots" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfplots-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pict2e" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pictex" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pictex2" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pinlabel-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pagecont" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pagenote-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-paper" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-papermas" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-papermas-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-paresse" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parnotes-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-parselines" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdf14" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfcprot" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfmarginpar" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfpagediff" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfsync" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdfsync-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pecha-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-permute-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-philex" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-piff" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-piff-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pkgloader" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plates-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plweb" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polynom-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polynomial" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polynomial-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polytable" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-ppr-prv" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-perfectcut" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-perfectcut-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-piechartmp" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pitex" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plnfss" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plstmary" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdftricks-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pdftricks2" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pittetd-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pkuthss-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-powerdot-fuberlin" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-philokalia-doc" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-polyglossia" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pbibtex-base" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgfornament" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-pgf-spectra" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phfqit" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phfsvnwatermark" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-phfthm" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-padcount" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-plex" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-postage" + }, + { + "name": "oe_test_texlive-split-r_install_and_remove_texlive-powerdot-FUBerlin-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-u.json b/suite2cases/texlive-split-u.json new file mode 100644 index 0000000000000000000000000000000000000000..3f10b730dc0571262f8925b12483ad1b3183dfbb --- /dev/null +++ b/suite2cases/texlive-split-u.json @@ -0,0 +1,593 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-u", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-split-u" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rsc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-roboto-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-romande" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sansmathaccent-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sanskrit" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-t1-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-semaphor" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-schwalbe-chess-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sgame-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-schemata" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sansmath-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-section" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-seminar" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-setspace-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sa-tikz" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-schemabloc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-schemabloc-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-setdeck-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sauerj-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-robustindex" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-romanneg" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-romanneg-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rotpages" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rotpages-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rterface" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rterface-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rtkinenc-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rtklage-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-serbian-date-lat" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-serbian-def-cyr" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-serbian-lig" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-savefnmark-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-savetrees" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scalebar-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scalerel-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scanpages" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sdrt" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sectionbox-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-semioneside-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-seqsplit-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sf298" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sf298-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sesamanuel" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-ryethesis" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sapthesis" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sapthesis-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scrjrnl-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-seuthesis-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sasnrdisplay" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sclang-prettifier" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sclang-prettifier-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sfg" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sfg-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-screenplay-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-screenplay-pkg-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scheme-gust" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scheme-medium" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scheme-minimal" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scheme-small" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-russ" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-seuthesix-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-seuthesix" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scientific-thesis-cover" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sectionbreak" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rsc-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-roboto" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-romande-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sauter" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sauterfonts" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sauterfonts-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-schulschriften" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sgame" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-section-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-setspace" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rviewport" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rviewport-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sa-tikz-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-setdeck" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sauerj" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-robustcommand" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-robustcommand-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-robustindex-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-romanbar-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rotfloat" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rotfloat-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-roundbox" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rtkinenc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rrgtrees" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rrgtrees-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-roex" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-serbian-apostrophe-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-serbian-date-lat-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-serbian-def-cyr-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-serbian-lig-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-roundrect-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rulercompass" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rvwrite-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-r_und_s-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-savefnmark" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-savetrees-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scale-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scalebar" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scanpages-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-secdot" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-secdot-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sectsty-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-seealso" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-selectp-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-selnolig" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sepfootnotes-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sffms-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sfmath" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sesamanuel-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sageep" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scrjrnl" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-schule" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sduthesis-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-seuthesis" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sasnrdisplay-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sciposter" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-screenplay" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scrlttr2copy-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scrlttr2copy" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scheme-basic" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-russ-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scratch" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sesstime" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scratchx" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-semantic-markup" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rsfso" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rsfso-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sansmathaccent" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sansmathfonts" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sansmathfonts-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-t1" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-schulschriften-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-semaphor-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rsfs" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rsfs-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-schwalbe-chess" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-schemata-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sansmath" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-seminar-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sepnum" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sepnum-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-romanbar" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-romanbarpagenumber" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-romanbarpagenumber-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-romannum" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-romannum-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-roundbox-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rtklage" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-ruhyphen" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-serbian-apostrophe" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-roundrect" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rulercompass-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rvwrite" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-r_und_s" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-savesym" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scale" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scalerel" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sdrt-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sectionbox" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sectsty" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-seealso-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-selectp" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-selnolig-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-semantic" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-semantic-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-semioneside" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-semproc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-semproc-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sepfootnotes" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-seqsplit" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sffms" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-ryethesis-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sageep-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-schule-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sduthesis" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sciposter-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-screenplay-pkg" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-siunitx" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-siunitx-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scheme-context" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scheme-full" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scheme-tetex" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rosario-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rosario" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sanitize-umlaut-doc" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sanitize-umlaut" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-rutitlepage" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-scsnowman" + }, + { + "name": "oe_test_texlive-split-u_install_and_remove_texlive-sexam" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-v.json b/suite2cases/texlive-split-v.json new file mode 100644 index 0000000000000000000000000000000000000000..179c23d99d1d5d506b5b72b0689a68398619e298 --- /dev/null +++ b/suite2cases/texlive-split-v.json @@ -0,0 +1,851 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-v", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-split-v" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showtags" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-splitbib" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-splitbib-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skaknew" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skull" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sourcecodepro" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sourcecodepro-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sourcesanspro" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sides" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sides-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-starfont" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stix" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-superiors" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-superiors-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skak" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skak-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sudokubundle" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-splines-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-systeme" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subfig" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shadethm" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shdoc-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shipunov-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shorttoc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-show2e-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sidecap" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sidecap-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-silence" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simurgh-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skdoc-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skeyval" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skeyval-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-smalltableof" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spath3" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-smartref-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-snapshot" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-songbook" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-songs" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sparklines-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sphack-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spotcolor" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spotcolor-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spverbatim-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-srbook-mem-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sseq" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sslides-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stackengine" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-standalone-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-statistik" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stdclsdv" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stdpage" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stex" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stex-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-storebox-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-storecmd" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subeqn" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subeqnarray-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subfigmat" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subfiles-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-substitutefont" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-substr" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-supertabular" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svg" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svg-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svgcolor-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svn-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svn-prov-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-syntax-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-syntrace" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skmath" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skmath-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-statex" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-statex2-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subsupscripts" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-susy-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sympytexpackage" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sympytexpackage-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sphdthesis-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stellenbosch-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sugconf" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-siunitx-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-steinmetz-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-struktex" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-substances" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-signchart-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simpler-wick" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svg-inkscape-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-smartunits-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-smartunits" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-studenthandouts" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-statmath" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stickstoo" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stix2-otf" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stix2-type1" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showtags-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sort-by-letters-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skaknew-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sourcesanspro-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sourceserifpro-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stage-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-staves" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-staves-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stix-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-symbol" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-startex-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sudokubundle-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shade" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shade-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shapes-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-slideshow" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-suanpan-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shadethm-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shadow" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shadow-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shadowtext" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shadowtext-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shorttoc-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showcharinbox" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showcharinbox-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showlabels" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simplecd" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simplecv" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simplewick" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skb" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skb-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skdoc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skeycommand" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skeycommand-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skrapport" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-skrapport-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-slantsc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-smartdiagram-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-swimgraf" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-swimgraf-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-snapshot-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-songbook-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-songs-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-soul-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spot" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spreadtab" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spreadtab-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spverbatim" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-srcltx-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sslides" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stack" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stackengine-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-statistik-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stdclsdv-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-storebox" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stringstrings" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stringstrings-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sttools-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subdepth" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subdepth-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subeqn-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subeqnarray" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subfigure" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subfigure-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-substitutefont-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-substr-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-supertabular-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svgcolor" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svn" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-syntax" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-synttree-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showhyphens" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spelling-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shuffle-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subsupscripts-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-soton-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spie-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sr-vorl" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-suftesi" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-suftesi-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sugconf-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-siunitx" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-steinmetz" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-substances-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simpler-wick-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-swebib-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svrsymbols-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svrsymbols" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simple-resume-cv" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simple-thesis-dissertation" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-soup" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simplekv" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-short-math-guide" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simpleinvoice" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spalign" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-statistics" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-structmech" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sort-by-letters" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stmaryrd" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stmaryrd-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sourceserifpro" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stage" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-starfont-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-startex" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sudoku" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sudoku-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shapes" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-slideshow-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-splines" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-suanpan" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-systeme-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subfig-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shapepar" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shapepar-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shdoc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shipunov" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-show2e" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showdim" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showdim-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showexpl" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showexpl-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showlabels-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sidenotes" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sidenotes-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-silence-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simplecd-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simplecv-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simplewick-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simplified-latex-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-simurgh" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sitem" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sitem-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-slantsc-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-smalltableof-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-smartdiagram" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spath3-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-smartref" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-snotez" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-snotez-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-soul" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sparklines" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sphack" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spot-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-srbook-mem" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-srcltx" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sseq-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-standalone" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stdpage-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-storecmd-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sttools" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stubs" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stubs-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subfigmat-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subfiles" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subfloat" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-subfloat-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svninfo" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svninfo-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-svn-prov" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-syntrace-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-synttree" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-showhyphens-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spelling" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shuffle" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-statex-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-statex2" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-susy" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-syllogism" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-syllogism-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-synproof" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-synproof-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-soton" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sphdthesis" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spie" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-sr-vorl-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stellenbosch" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-struktex-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-signchart" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-swebib" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-shobhika" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spark-otf" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spectralsequences" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stanli" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-stealcaps" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spanish-mx-doc" + }, + { + "name": "oe_test_texlive-split-v_install_and_remove_texlive-spanish-mx" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-x.json b/suite2cases/texlive-split-x.json new file mode 100644 index 0000000000000000000000000000000000000000..570e617edbffd2844834005deaae9f600dc30a8f --- /dev/null +++ b/suite2cases/texlive-split-x.json @@ -0,0 +1,1283 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-x", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-split-x" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-turabian-formatting-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tpslifonts" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-txfontsb" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-txfontsb-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typicons" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typicons-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tipa" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-theoremref" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-theoremref-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thinsp" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-turnstile" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thmtools-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-threadcol-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-threeddice" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-threeddice-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-threeparttablex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thumb" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thumbs" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thumby-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-ticket" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-ticket-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-ticollege-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-3dplot-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-cd" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-dependency" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-dependency-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-dimline" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-inet" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-opm-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-qtree-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titlecaps" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titlecaps-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titlepic" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titlepages-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tlc2-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tocbibind-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tocloft" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tocloft-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-toolbox" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-topfloat" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-topfloat-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-totcount" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-page" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-array-fr-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translations" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translations-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trigonometry" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trimspaces-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trivfloat" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trivfloat-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-turkmen" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-turnthepage-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-twoinone-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-type1cm-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thesis-ekf-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thesis-titlepage-fhac-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-toptesi-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tudscr" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tui" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-t-angles-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tipa-de-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-enumitem-de-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-europecv-de-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzorbital" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzpfeile-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzsymbols" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-timing-diagrams-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzcodeblocks" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-optics" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-euclide" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-euclide-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-fct-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-orm" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tsemlines" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tagpdf" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thalie-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-karnaugh" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-ladder" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzmarmots" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-sfc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-timbreicmc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tinos" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-topletter" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-algpseudocodex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-association-matrix" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-beamertheme-trigon" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-byo-twemojis" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-causets" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-chicagoa" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-chinese-jfm" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-color-edits" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-colorist" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-decision-table" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-docutils" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-econlipsum" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-eq-pin2corr" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-everysel" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-figchild" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-firstaid" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-frimurer" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-frpseudocode" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-gckanbun" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-gudea" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-innerscript" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-install-latex-guide-zh-cn" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-knuth-errata" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-lectureslides" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-lua-typo" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-lua-uni-algos" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-magra" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-membranecomputing" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-mindflow" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-muling" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-namedef" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-newpax" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-orcidlink" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-pagesel" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-parsa" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-prelim2e" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-principia" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-profcollege" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-rojud" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-scrlayer-fancyhdr" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-semesterplanner" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-semtex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-skeldoc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-skills" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-stepgreek" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-suppose" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-bbox" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzpackets" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-totalcount" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-unitipa" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-utf8add" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-worldflags" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-xintsession" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-xmuthesis" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-projlib" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tools-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tpslifonts-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trajan-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-times" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tipa-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-txfonts" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-txfonts-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tracklang" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thinsp-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thmbox-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-turnstile-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-threadcol" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-threeparttable" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-threeparttablex-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thumb-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-3dplot" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-bayesnet-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-cd-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-dimline-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-opm" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-timing-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titleref" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titleref-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titlesec-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titling" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titling-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tocbibind" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tocvsec2" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-todonotes" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-totcount-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-totpages" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translator" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trfsigns" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trsym" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trsym-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-truncate" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-truncate-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tucv" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tucv-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-turnthepage" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-twoinone" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-twoup" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-txgreeks" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-txgreeks-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typeface" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typeface-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thesis-titlepage-fhac" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thuthesis" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thuthesis-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-toptesi" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tugboat" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tugboat-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-turabian-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-biblatex-de-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-chemsym-de-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-filecontents-de-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-feynman-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-feynman" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzinclude-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzmark" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzorbital-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzpfeile" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzposter-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzscale" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzscale-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzducks" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzpeople" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typoaid" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tqft" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-tab-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tufte-latex-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tipfr" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typed-checklist-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typed-checklist" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typehtml-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thalie" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thucoursework" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-network" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-relay" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-aalok" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-antanilipsum" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-atkinson" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-beamerappendixnote" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-biblatex-license" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-biblatex-vancouver" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-buctthesis" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-bxjatoucs" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-charissil" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-chhaya" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-compare" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-datax" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-easybook" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-ektype-tanka" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-everyshi" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-exesheet" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-expkv-opt" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-graphpaper" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-helmholtz-ellis-ji-notation" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-highlightlatex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-hindmadurai" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-knuth-pdf" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-luakeys" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-magicnum" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-marathi" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-menucard" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-mlmodern" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-mluexercise" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-nimsticks" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-ninecolors" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-orientation" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-oswald" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-pgf-pie" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-puyotikz" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-quran-bn" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-qyxf-book" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-realtranspose" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-runcode" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-schooldocs" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-shtthesis" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-simplivre" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-smflatex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-startlatex2e" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-swfigure" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-texnegar" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-graph" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-uninormalize" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-unitconv" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-unizgklasa" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-verifiche" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-zbmath-review-template" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-zztex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-beamerthemenord" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tools" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-turabian-formatting" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trajan" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tram" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tram-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tracklang-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thmbox" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thmtools" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-threeparttable-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thumbs-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thumby" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-ticollege" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tipfr-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-bayesnet" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-inet-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-palattice" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-palattice-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-qtree" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-timing" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titlefoot" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titlepic-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-titlesec" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tocvsec2-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-todo" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-todo-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-todonotes-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tokenizer" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tokenizer-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-toolbox-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-totpages-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-dcolumn-fr-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-natbib-fr-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-tabbing-fr-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trfsigns-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-trimspaces" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-turkmen-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-twoup-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-type1cm" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typogrid" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typogrid-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thesis-ekf" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tudscr-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tugboat-plain" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tugboat-plain-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-turabian" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tui-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-t-angles" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-arsclassica-de-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-ecv-de-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-translation-moreverb-de-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzinclude" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzmark-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzpagenodes" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzpagenodes-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzposter" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikzsymbols-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-timing-diagrams" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-timetable" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-treetex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-treetex-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thaienum" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-kalender" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tocdata" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-txuprcal" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tqft-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-base" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-base-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-berge" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-fct" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-orm-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-tab" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tufte-latex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typehtml" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tree-dvips" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tree-dvips-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thaispec" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-thesis-gwu" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-layers" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-nef" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tlc-article" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-typewriter" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-aesupp" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-akshar" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-anonymous-acm" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-beamertheme-pure-minimalistic" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-beamerthemelalic" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-beaulivre" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-biblatex-unified" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-bithesis" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-bookshelf" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-bubblesort" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-cascadia-code" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-chifoot" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-cmupint" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-coffeestains" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-conditext" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-dimnum" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-doulossil" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-easyfloats" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-eczar" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-edichokey" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-einfart" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-ekdosis" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-foliono" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-froufrou" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-glossaries-nynorsk" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-gridpapers" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-hindawi-latex-template" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-hitreport" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-hopatch" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-huawei" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-hvarabic" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-hypdestopt" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-inter" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-jupynotex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-kpfonts-otf" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-lebhart" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-leftindex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-lua-physical" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-luaprogtable" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-mahjong" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-matapli" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-metanorma" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-minimalist" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-mylatex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-nl-interval" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-nnext" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-numerica" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-pbalance" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-pdfmanagement-testphase" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-pwebmac" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-pxpic" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-readablecv" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-revtex4-1" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-sankey" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-semantex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-stricttex" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-syntaxdi" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-among-us" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tikz-lake-fig" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tipauni" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tlmgrbasics" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tzplot" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-utfsym" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-xindy-persian" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-latex-firstaid-dev" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-doc-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-kiviat-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-kiviat" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-linknodes" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-berge-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-linknodes-doc" + }, + { + "name": "oe_test_texlive-split-x_install_and_remove_texlive-tkz-graph-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-y.json b/suite2cases/texlive-split-y.json new file mode 100644 index 0000000000000000000000000000000000000000..702ec4295cc4d5ad9b50bd005df7058fee1a5762 --- /dev/null +++ b/suite2cases/texlive-split-y.json @@ -0,0 +1,1277 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-y", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-split-y" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-udesoftec-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uhc-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wadalab" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wnri" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wnri-latex-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-url" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-lin" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-lin-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uml" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umlaute" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-universalis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wasy" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wasy-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wasysym-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uptex-base-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-underscore" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-underscore-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uassign-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucharcat-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucs" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uebungsblatt" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umoline" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uhhassignment" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unicode-bidi" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unicode-math" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-venndiagram-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-underoverlap" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-units" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-units-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unravel-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-upmethodology" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-upmethodology-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-upquote-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uri" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uri-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ushort" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-varindex" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-varsfromjobname-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vocaltract" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vocaltract-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verbdef" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verse-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-version-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-versions" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-versions-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vertbars-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vgrid-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-volumes" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vwcol" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wallpaper" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wallpaper-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-was" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-was-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-webguide-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-visualfaq-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wrapfig" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uaclasses" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uaclasses-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uafthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uiucthesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ulthese" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ulthese-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umthesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unamth-template-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unamthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uothesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-urcls" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uowthesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ut-thesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ut-thesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uwthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucharclasses" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unisugar" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unisugar-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uantwerpendocs" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uhrzeit-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uhrzeit" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unicode-data" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucsmonograph" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-witharrows" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-bigintcalc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-bitset" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-etexcmds" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-hycolor" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-infwarerr" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-kvdefinekeys" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-grffile" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-hyphen-macedonian" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-accsupp" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-annee-scolaire" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-askinclude" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-atenddvi" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-autofancyhdr" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-biblatex-ajc2020unofficial" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-biblatex-jura2" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-brandeis-thesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-circledsteps" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-csvmerge" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-dpcircling" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-econ-bst" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-etbb" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-expkv-def" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-expose-expl3-dunkerque-2019" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-fontsize" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-hep-paper" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-hitszthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-jbact" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-kblocks" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-lie-hasse" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-lua-uca" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-lua-ul" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-luacolor" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-makerobust" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-mercatormap" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-metatype1" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-modeles-factures-belges-assocs" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-mpfonts" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-newcomputermodern" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-nth" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-pdfarticle" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-pdfcolmk" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-picture" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-pinoutikz" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-plainyr" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-pmboxdraw" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-quantumarticle" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-quiz2socrative" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-random" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ruler" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-scholax" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-selinput" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-shortmathj" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-tex-nutshell" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-tikz-planets" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wasy-type1" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-xecyrmongolian" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-xkcdcolors" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-annotate" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-gfsdidotclassic" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vntex" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uhc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ukrhyph" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wadalab-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wnri-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wnri-latex" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-url-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-ger" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-usebib-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vak-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uml-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umlaute-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umtypewriter" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-universa" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-universa-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-universalis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-urwchancal" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-urwchancal-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-utopia" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wasysym" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-upca" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-upca-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uptex-base" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uptex-fonts" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uptex-fonts-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uassign" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umoline-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-undergradmath-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unicode-math-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-venndiagram" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unitn-bimrep" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-upzhkinsoku" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-variablelm" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-variations-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wallcalendar" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wtref" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-underoverlap-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-undolabl-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unravel" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-upquote" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-varsfromjobname" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vdmlisting" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verbasef-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-varisize" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verbatimbox-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verbatimcopy" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verbments-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verse" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-version" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-versonotes" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-versonotes-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vertbars" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vhistory" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vhistory-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vmargin" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-volumes-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vruler-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vwcol-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-warning" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-warning-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-voss-mathcol-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-williams" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-williams-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-withargs" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-withargs-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wordlike" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucbthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucdavisthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucdavisthesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucthesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uestcthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uiucredborder" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uiucthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ulem" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umich-thesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umich-thesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unamthesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uothesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-urcls-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uowthesistitlepage" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uwthesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vancouver-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unitsdef" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unitsdef-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucharclasses-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umbclegislation-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unicode-data-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uplatex" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-visualpstricks-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-visualtikz-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-univie-ling" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uppunctlm" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-atbegshi" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-atveryend" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-intcalc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-kvsetkeys" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ltxcmds" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-pdftexcmds" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-grfext" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-algxpar" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-alphalph" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-axessibility" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-biblatex-software" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ccool" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-circuit-macros" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-clara" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-embedfile" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-emojicite" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-endnotes-hy" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-epigraph-keys" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-esindex" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-expkv" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-expkv-cs" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-fewerfloatpages" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-fontsetup" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-frenchmath" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-gindex" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-hitszbeamer" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-hobsub" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-hologo" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-hvqrurl" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-jlreq-deluxe" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-langsci-avm" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-letterspacing" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-letterswitharrows" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-lexend" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-metastr" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-noto-emoji" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-outerhbox" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-pdfpc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-physunits" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-pst-turtle" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-sdaps" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-secnum" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-simpleoptics" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-step" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-tetragonos" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-texlive-ja" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-tokcycle" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-transparent" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-twemoji-colr" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unifith" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verifica" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-willowtreebook" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-xepersian-hm" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-yquant" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-zref" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-authordate" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-courierten" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-cmathbb" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-josefin" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-spectral" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-hmtrump" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-apa7" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vntex-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-udesoftec" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ukrhyph-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-ger-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-usebib" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vak" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-utopia-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucharcat" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucs-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uebungsblatt-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unfonts-core" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unfonts-extra" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-venn" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-venn-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uspace" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-variations" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-underlin" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-underlin-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-undolabl" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ushort-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-varindex-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-varwidth" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-varwidth-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vaucanson-g" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vaucanson-g-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vdmlisting-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verbasef" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-varisize-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verbatimbox" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verbatimcopy-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verbdef-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-verbments" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vgrid" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vmargin-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vruler" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-warpcol" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-warpcol-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-utf8mex" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-utf8mex-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-widetable" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-widetable-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wordlike-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wrapfig-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uafthesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucbthesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ucthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uestcthesis-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uiucredborder-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ulem-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unswcover" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-unswcover-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uowthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uowthesistitlepage-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uspatent" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uspatent-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-vancouver" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wsemclassic" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wsemclassic-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uantwerpendocs-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-umbclegislation" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-auxhook" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-kvoptions" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-letltxmacro" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-pdfescape" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-rerunfilecheck" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-uniquecounter" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-modes" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-aaai-named" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-accessibility" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-barracuda" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-bearwear" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-biblatex-apa6" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-biblatex-german-legal" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-biblatex2bibitem" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-bookmark" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-bxghost" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-chemplants" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ddphonism" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-diabetes-logbook" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ditaa" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-domitian" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-emoji" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-epstopdf-pkg" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-erewhon-math" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-euclideangeometry" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-gettitlestring" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-haranoaji" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-haranoaji-extra" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-is-bst" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-jmb" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-keyindex" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-latino-sine-flexione" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-listingsutf8" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-logix" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-mathlig" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-matrix-skeleton" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-media4svg" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-mleftright" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-musical" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-newfloat" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-pdflscape" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-physconst" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-pmhanguljamo" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-practicalreports" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-qualitype" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-rest-api" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-returntogrid" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-rgltxdoc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-schulmathematik" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-simplebnf" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-soulutf8" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-swrule" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-tablvar" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-theatre" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-tikz-trackschematic" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-utexasthesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-yazd-thesis" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-zhlineskip" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-refcount" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-stringenc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-catchfile" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-inputenx" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-notomath" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-ibarra" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-plimsoll" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-updmap-map" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wasy2-ps-doc" + }, + { + "name": "oe_test_texlive-split-y_install_and_remove_texlive-wasy2-ps" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive-split-z.json b/suite2cases/texlive-split-z.json new file mode 100644 index 0000000000000000000000000000000000000000..ac1d9a865ca7c32be332f69fbc931bd73809fb49 --- /dev/null +++ b/suite2cases/texlive-split-z.json @@ -0,0 +1,1097 @@ +{ + "path": "$OET_PATH/testcases/cli-test/texlive-split-z", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-split-z" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcite" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetex-devanagari" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcharter-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yfonts" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yfonts-t1-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yhmath" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yhmath-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xq" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xskak" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xlop" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xkeyval" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xkeyval-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcolor-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xltabular" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xsim" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yaletter" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xfor" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xfor-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xhfill-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xifthen-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xint" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xint-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xmltexconfig" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xmpincl" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xmpincl-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xoptarg" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpatch" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpicture" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpicture-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xypic-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpiano" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpinyin-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zhnumber" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zhspacing" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xprintlen-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpunctuate" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xtab" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xyling" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xytree-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ydoc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zed-csp-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ziffer" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zwgetfdate" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zwgetfdate-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcjk2uni-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zxjatype" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zxjatype-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcookybooky" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yathesis-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xymtex" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xymtex-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xypic-tut-pt-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-youngtab-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xecjk-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xecyr" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xeindex" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xepersian-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xespotcolor-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetex-itrans-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetex-pstricks-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetex-tibetan-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetexfontinfo" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetexfontinfo-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xevlna-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xunicode-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xduthesis" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xellipsis" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xsavebox" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ycbook-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yinit-otf-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-alpha-persian" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-biblatex-ext" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-brandeis-problemset" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-bxjaholiday" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-bxtexlogo" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-centeredline" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-chordbars" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-commedit" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-derivative" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-elegantbook" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-els-cas-templates" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-exercisepoints" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-facture-belge-simple-sans-tva" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-fbox" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-firamath-otf" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-firamath" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-forum" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ftc-notebook" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-gammas" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-garamond-libre" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-garamond-math" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-glosmathtools" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-glossaries-estonian" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-grabbox" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-gridslides" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-hmtrump" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-inriafonts" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-invoice-class" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-jkmath" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-latex-bin-dev" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-libertinus-fonts" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-libertinus-type1" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-makecookbook" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-mathcommand" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-mlacls" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-multicolrule" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-njurepo" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-pst-feyn" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-pst-marble" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ptex-manual" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ptolemaicastronomy" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-qsharp" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-quran-ur" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ragged2e" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-schedule" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-soulpos" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-srdp-mathematik" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-tensind" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-tex-locale" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-theanodidot" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-theanomodern" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-thesis-qom" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-tikz-feynhand" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-tuda-ci" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-vtable" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xbmks" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zootaxa-bst" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-dehyph" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetexconfig" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcharter" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xii-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xits" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xits-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yfonts-t1" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ytableau-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zlmtt" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zlmtt-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zapfchan" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xskak-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yax" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xargs-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcolor" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcolor-solarized-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xechangebar" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zebra-goodies" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zhlipsum" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcomment-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xhfill" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpatch-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpeek-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xypic" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zhnumber-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zhspacing-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xprintlen" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xstring-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xtab-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xwatermark" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xyling-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xytree" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yafoot" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yafoot-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yagusylo" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yagusylo-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ydoc-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zed-csp" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zwpagelayout" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zwpagelayout-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zxjafbfont" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcookybooky-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-york-thesis-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-youngtab" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xecjk" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xecolor-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xecyr-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xeindex-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xepersian" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xesearch" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xesearch-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetex-pstricks" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xevlna" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xgreek-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yannisgr-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xltxtra" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xltxtra-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xassoccnt-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcntperchap-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ycbook" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yinit-otf" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-uptex" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xurl" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-addliga" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-almendra" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-apprendre-a-programmer-en-tex" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-asmeconf" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-beamerauxtheme" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-beamertheme-light" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-beamertheme-npbt" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-biblatex-bath" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-bitter" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-businesscard-qrcode" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-checkend" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-chordbox" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-colophon" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-colorprofiles" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-cuprum" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-dotlessi" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-duckuments" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ecothesis" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-elegantnote" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-elegantpaper" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-eqexpl" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-exam-randomizechoices" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-exframe" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-fancyhandout" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-fascicules" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-fiziko" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-globalvals" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-guitartabs" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-jigsaw" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-kalendarium" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ketcindy" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-latex-uni8" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-lectures" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-linguisticspro" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-lstfiracode" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ltxguidex" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-luaimageembed" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-metapost-colorbrewer" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-mismath" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-nanicolle" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-numberpt" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-poiretone" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-poormanlog" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-prtec" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-pseudo" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-pst-lsystem" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-pst-moire" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-pst-venn" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-quantikz" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-quran-de" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-rulerbox" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ryersonsgsthesis" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-scontents" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-scratch3" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-spacingtricks" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-subtext" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-tikz-imagelabels" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-tikz-truchet" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-marcellus" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-blowup-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcite-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetex-devanagari-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xii-lat" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yfonts-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ytableau" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zapfding" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xq-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xlop-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yax-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xargs" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcolor-solarized" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcolor-material" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcomment" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xdoc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xdoc-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xifthen" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xnewcommand" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xnewcommand-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xoptarg-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpeek" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpiano-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpinyin" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xpunctuate-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xstring" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xwatermark-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ziffer-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcjk2uni" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zxjafbfont-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zxjafont" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zxjafont-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yathesis" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-york-thesis" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xebaposter" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xebaposter-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xecolor" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xespotcolor" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetexref-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetex-itrans" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetex-tibetan" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetexko" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xetexko-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xgreek" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-yannisgr" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xunicode" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xassoccnt" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcntperchap" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xduthesis-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xellipsis-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xsavebox-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-uptex-doc" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xfakebold" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xtuthesis" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-accents" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-amscdx" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-arabicfront" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-arraycols" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-asmejour" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-beamer-rl" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-bussproofs-extra" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-bxwareki" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-changelog" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-chs-physics-report" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-codeanatomy" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-coelacanth" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-crimsonpro" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-cweb-old" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ehhline" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-euflag" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-gitver" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-glossaries-slovene" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-hu-berlin-bundle" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-icite" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-identkey" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-inkpaper" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-inline-images" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-iodhbwm" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-kvmap" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-labels4easylist" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-latex4musicians" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-latex-base-dev" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-latexcolors" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-latex-graphics-dev" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-librefranklin" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-luarandom" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-memorygraphs" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-metalogox" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-mi-solns" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-pgf-cmykshadings" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-pgfmorepages" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-plautopatch" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-proof-at-the-end" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-pxjodel" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-rank-2-roots" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-realhats" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-subdocs" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-technion-thesis-template" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-texonly" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-theanooldstyle" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-thuaslogos" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-tikzlings" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-topiclongtable" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-ucalgmthesis" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-unam-thesis" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-unicode-alphabets" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-widows-and-orphans" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-windycity" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-worksheet" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-xcpdftips" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-l3backend" + }, + { + "name": "oe_test_texlive-split-z_install_and_remove_texlive-blowup" + } + ] +} \ No newline at end of file diff --git a/suite2cases/texlive.json b/suite2cases/texlive.json index 49a847ca7b8f90ca7dac6a44dbee240da15d4d9f..a62c9e6270c0c30e479f34550e975c9087c0da98 100644 --- a/suite2cases/texlive.json +++ b/suite2cases/texlive.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/cli-test/texlive", - "cases": [ - { - "name": "oe_test_texlive" - } - ] + "path": "$OET_PATH/testcases/cli-test/texlive", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_texlive" + } + ] } \ No newline at end of file diff --git a/suite2cases/tftp.json b/suite2cases/tftp.json index 6bbd272888d3fb87ce668785dcc768d78419f105..92247fa453665958af6f7daecc058f948cf6d809 100644 --- a/suite2cases/tftp.json +++ b/suite2cases/tftp.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tftp", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_tftp" @@ -8,4 +10,4 @@ "name": "oe_test_socket_tftp" } ] -} +} \ No newline at end of file diff --git a/suite2cases/thin-provisioning-tools.json b/suite2cases/thin-provisioning-tools.json new file mode 100644 index 0000000000000000000000000000000000000000..4762e2870538baae4dc5cb6337eaff934cdf1f48 --- /dev/null +++ b/suite2cases/thin-provisioning-tools.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/thin-provisioning-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools" + }, + { + "name": "oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-help" + }, + { + "name": "oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-debugsource" + }, + { + "name": "oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/thrift.json b/suite2cases/thrift.json index 04b729ba1f98675039c1b5e669d67325d7c1c0f1..62329c68f933a3e8820ee3a70b33887fe5ca9402 100644 --- a/suite2cases/thrift.json +++ b/suite2cases/thrift.json @@ -1,38 +1,40 @@ { "path": "$OET_PATH/testcases/cli-test/thrift", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_thrift_version" }, - { - "name": "oe_test_thrift_generate_cppcode" - }, - { - "name": "oe_test_thrift_generate_pycode" - }, - { - "name": "oe_test_thrift_generate_gocode" - }, - { - "name": "oe_test_thrift_generate_javacode" - }, - { - "name": "oe_test_thrift_generate_jscode" - }, - { - "name": "oe_test_thrift_generate_htmlcode" - }, - { - "name": "oe_test_thrift_generate_phpcode" - }, - { - "name": "oe_test_thrift_generate_xmlcode" - }, - { - "name": "oe_test_thrift_generate_rbcode" - }, - { - "name": "oe_test_thrift_generate_luacode" - } + { + "name": "oe_test_thrift_generate_cppcode" + }, + { + "name": "oe_test_thrift_generate_pycode" + }, + { + "name": "oe_test_thrift_generate_gocode" + }, + { + "name": "oe_test_thrift_generate_javacode" + }, + { + "name": "oe_test_thrift_generate_jscode" + }, + { + "name": "oe_test_thrift_generate_htmlcode" + }, + { + "name": "oe_test_thrift_generate_phpcode" + }, + { + "name": "oe_test_thrift_generate_xmlcode" + }, + { + "name": "oe_test_thrift_generate_rbcode" + }, + { + "name": "oe_test_thrift_generate_luacode" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/tidy.json b/suite2cases/tidy.json index c432f80284a006dff294d4ef00b02e3b12fd594b..b52eb1578daa3a52a989af638d8a8de5524d059a 100644 --- a/suite2cases/tidy.json +++ b/suite2cases/tidy.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tidy", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tidy_file_manipulation" @@ -53,4 +55,4 @@ "name": "oe_test_tidy_output" } ] -} +} \ No newline at end of file diff --git a/suite2cases/tigervnc.json b/suite2cases/tigervnc.json index 0ccfd9c9adcb44c102068ccc234734b9c1ee2d33..f6b31dce31813ca4a07fd016dd0648c05e21e4b1 100644 --- a/suite2cases/tigervnc.json +++ b/suite2cases/tigervnc.json @@ -1,8 +1,41 @@ { "path": "$OET_PATH/testcases/cli-test/tigervnc", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_socket_xvnc" + }, + { + "name": "oe_test_tigervnc_install_and_remove_tigervnc" + }, + { + "name": "oe_test_tigervnc_install_and_remove_tigervnc-server-minimal" + }, + { + "name": "oe_test_tigervnc_install_and_remove_tigervnc-server-module" + }, + { + "name": "oe_test_tigervnc_install_and_remove_tigervnc-server-applet" + }, + { + "name": "oe_test_tigervnc_install_and_remove_tigervnc-selinux" + }, + { + "name": "oe_test_tigervnc_install_and_remove_tigervnc-server" + }, + { + "name": "oe_test_tigervnc_install_and_remove_tigervnc-license" + }, + { + "name": "oe_test_tigervnc_install_and_remove_tigervnc-help" + }, + { + "name": "oe_test_tigervnc_install_and_remove_tigervnc-debugsource" + }, + { + "name": "oe_test_tigervnc_install_and_remove_tigervnc-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/time.json b/suite2cases/time.json new file mode 100644 index 0000000000000000000000000000000000000000..77ca45be7e219403ce0150432d18853736c2519e --- /dev/null +++ b/suite2cases/time.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/time", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_time_install_and_remove_time" + }, + { + "name": "oe_test_time_install_and_remove_time-help" + }, + { + "name": "oe_test_time_install_and_remove_time-debuginfo" + }, + { + "name": "oe_test_time_install_and_remove_time-debugsource" + }, + { + "name": "oe_test_time_install_and_remove_time-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/timedatex.json b/suite2cases/timedatex.json index cdda8c468e99c05674817fc97471d5504f757265..04f228ced04b98599e0487cb505768e21e0eb207 100644 --- a/suite2cases/timedatex.json +++ b/suite2cases/timedatex.json @@ -1,8 +1,23 @@ { "path": "$OET_PATH/testcases/cli-test/timedatex", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_timedatex" + }, + { + "name": "oe_test_timedatex_install_and_remove_timedatex" + }, + { + "name": "oe_test_timedatex_install_and_remove_timedatex-help" + }, + { + "name": "oe_test_timedatex_install_and_remove_timedatex-debuginfo" + }, + { + "name": "oe_test_timedatex_install_and_remove_timedatex-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/tinycdb.json b/suite2cases/tinycdb.json index 275eec183cf75b84828856fefd836266c9fb5eb7..a4ed61ffdae9f5fae5d79a18848f6a29bb362d25 100644 --- a/suite2cases/tinycdb.json +++ b/suite2cases/tinycdb.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tinycdb", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tinycdb_cdb_01" @@ -8,4 +10,4 @@ "name": "oe_test_tinycdb_cdb_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/tinyxml2.json b/suite2cases/tinyxml2.json new file mode 100644 index 0000000000000000000000000000000000000000..a41ea026aeee9af91c1ad0026393adcdca669407 --- /dev/null +++ b/suite2cases/tinyxml2.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tinyxml2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tinyxml2_install_and_remove_tinyxml2" + }, + { + "name": "oe_test_tinyxml2_install_and_remove_tinyxml2-devel" + }, + { + "name": "oe_test_tinyxml2_install_and_remove_tinyxml2-debuginfo" + }, + { + "name": "oe_test_tinyxml2_install_and_remove_tinyxml2-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/tix.json b/suite2cases/tix.json new file mode 100644 index 0000000000000000000000000000000000000000..de1576ef85053b63480eae47c325faf6ff1d97ba --- /dev/null +++ b/suite2cases/tix.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tix", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tix_install_and_remove_tix" + }, + { + "name": "oe_test_tix_install_and_remove_tix-help" + }, + { + "name": "oe_test_tix_install_and_remove_tix-devel" + }, + { + "name": "oe_test_tix_install_and_remove_tix-debuginfo" + }, + { + "name": "oe_test_tix_install_and_remove_tix-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/tk.json b/suite2cases/tk.json new file mode 100644 index 0000000000000000000000000000000000000000..c85a17c8f6c6aacd9c28f183748bca95219f5793 --- /dev/null +++ b/suite2cases/tk.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tk", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tk_install_and_remove_tk" + }, + { + "name": "oe_test_tk_install_and_remove_tk-help" + }, + { + "name": "oe_test_tk_install_and_remove_tk-devel" + }, + { + "name": "oe_test_tk_install_and_remove_tk-debuginfo" + }, + { + "name": "oe_test_tk_install_and_remove_tk-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/tldr.json b/suite2cases/tldr.json index e5ca878521436f03101db506cf8fbb5318834e97..569c525858daf71e574cb93a2b2423c20f542aac 100644 --- a/suite2cases/tldr.json +++ b/suite2cases/tldr.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tldr", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tldr" diff --git a/suite2cases/tmux.json b/suite2cases/tmux.json new file mode 100644 index 0000000000000000000000000000000000000000..2748d9c227e11beb4321a5821e40b3f233385088 --- /dev/null +++ b/suite2cases/tmux.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tmux", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tmux_install_and_remove_tmux" + }, + { + "name": "oe_test_tmux_install_and_remove_tmux-help" + }, + { + "name": "oe_test_tmux_install_and_remove_tmux-debuginfo" + }, + { + "name": "oe_test_tmux_install_and_remove_tmux-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/tog-pegasus.json b/suite2cases/tog-pegasus.json index 9e2a45c4c938944ecddfde6066bfcafc2e1bdf18..101072dcd997aa1a4413986b9798fd2641d5ec0b 100644 --- a/suite2cases/tog-pegasus.json +++ b/suite2cases/tog-pegasus.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/tog-pegasus", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_tog-pegasus" } ] -} +} \ No newline at end of file diff --git a/suite2cases/tomcat.json b/suite2cases/tomcat.json index a6fb30f2313a6528fd55dc472497d439044492ad..0538007b0a8d1392ccf7885023d471915a49045f 100644 --- a/suite2cases/tomcat.json +++ b/suite2cases/tomcat.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tomcat", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_tomcat-jsvc" diff --git a/suite2cases/tpm-quote-tools.json b/suite2cases/tpm-quote-tools.json index 0ea3987e1b0e798bf1233308520f4eb35273e43f..a44a6f3f2422d092c718404d052d542e331825dd 100644 --- a/suite2cases/tpm-quote-tools.json +++ b/suite2cases/tpm-quote-tools.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tpm-quote-tools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tpm-quote-tools" diff --git a/suite2cases/tpm-tools.json b/suite2cases/tpm-tools.json index 86d374e1486a8b1d8d3d5f10a8ff6f8cfae284ae..f6d14a99a935110cf0288e095c50328173f5c033 100644 --- a/suite2cases/tpm-tools.json +++ b/suite2cases/tpm-tools.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tpm-tools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tpm-tools_01" diff --git a/suite2cases/tpm2-tools.json b/suite2cases/tpm2-tools.json index 04ca84e187741232931d40d45325ea18c30fc0ec..2cab3185f127bbd28ca2370330471eb963702732 100644 --- a/suite2cases/tpm2-tools.json +++ b/suite2cases/tpm2-tools.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/tpm2-tools", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tpm2_tools_save_data_01" } ] -} +} \ No newline at end of file diff --git a/suite2cases/tpm2-tss.json b/suite2cases/tpm2-tss.json new file mode 100644 index 0000000000000000000000000000000000000000..7db8cdf801353a786de630f8d53b851125d59f48 --- /dev/null +++ b/suite2cases/tpm2-tss.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tpm2-tss", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tpm2-tss_install_and_remove_tpm2-tss" + }, + { + "name": "oe_test_tpm2-tss_install_and_remove_tpm2-tss-devel" + }, + { + "name": "oe_test_tpm2-tss_install_and_remove_tpm2-tss-help" + }, + { + "name": "oe_test_tpm2-tss_install_and_remove_tpm2-tss-debugsource" + }, + { + "name": "oe_test_tpm2-tss_install_and_remove_tpm2-tss-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/tracker3.json b/suite2cases/tracker3.json new file mode 100644 index 0000000000000000000000000000000000000000..8bb5a768cafcb1acf3eff8bcc4b1b95073d450e4 --- /dev/null +++ b/suite2cases/tracker3.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tracker3", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tracker3_install_and_remove_tracker3" + }, + { + "name": "oe_test_tracker3_install_and_remove_tracker3-doc" + }, + { + "name": "oe_test_tracker3_install_and_remove_libtracker-sparql3" + }, + { + "name": "oe_test_tracker3_install_and_remove_tracker3-devel" + }, + { + "name": "oe_test_tracker3_install_and_remove_tracker3-debugsource" + }, + { + "name": "oe_test_tracker3_install_and_remove_tracker3-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/trafficserver.json b/suite2cases/trafficserver.json index 4d63d5a3de3574bf08a8156dc11c8b61124f69b5..416c9dc1979de1a6f65ec271986f8fed21fbfff3 100644 --- a/suite2cases/trafficserver.json +++ b/suite2cases/trafficserver.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/trafficserver", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_trafficserver" } ] -} +} \ No newline at end of file diff --git a/suite2cases/transfig.json b/suite2cases/transfig.json index 50c4f71885a415e201df044c6de6d69207273f58..9f7137649c3eaf5e8586d41640627b15fc9a11e4 100644 --- a/suite2cases/transfig.json +++ b/suite2cases/transfig.json @@ -1,8 +1,26 @@ { - "path": "$OET_PATH/testcases/cli-test/transfig", - "cases": [ - { - "name": "oe_test_transfig" - } - ] + "path": "$OET_PATH/testcases/cli-test/transfig", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_transfig" + }, + { + "name": "oe_test_transfig_install_and_remove_transfig" + }, + { + "name": "oe_test_transfig_install_and_remove_transfig-debugsource" + }, + { + "name": "oe_test_transfig_install_and_remove_transfig-help" + }, + { + "name": "oe_test_transfig_install_and_remove_transfig-debuginfo" + }, + { + "name": "oe_test_transfig_install_and_remove_transfig-doc" + } + ] } \ No newline at end of file diff --git a/suite2cases/tree.json b/suite2cases/tree.json index 2758bcb5fb7d5a84f6dd7426b7ca092031869fc5..9e12b6b7e5f5adf7bf121ac8a290f4251ea5a6a2 100644 --- a/suite2cases/tree.json +++ b/suite2cases/tree.json @@ -1,8 +1,23 @@ { "path": "${OET_PATH}/testcases/cli-test/tree", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tree" + }, + { + "name": "oe_test_tree_install_and_remove_tree" + }, + { + "name": "oe_test_tree_install_and_remove_tree-help" + }, + { + "name": "oe_test_tree_install_and_remove_tree-debuginfo" + }, + { + "name": "oe_test_tree_install_and_remove_tree-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/trousers.json b/suite2cases/trousers.json new file mode 100644 index 0000000000000000000000000000000000000000..d9a400a0ce3583500f0504d1e6c247bd85c21a3b --- /dev/null +++ b/suite2cases/trousers.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/trousers", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_trousers_install_and_remove_trousers" + }, + { + "name": "oe_test_trousers_install_and_remove_trousers-devel" + }, + { + "name": "oe_test_trousers_install_and_remove_trousers-debuginfo" + }, + { + "name": "oe_test_trousers_install_and_remove_trousers-help" + }, + { + "name": "oe_test_trousers_install_and_remove_trousers-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ttembed.json b/suite2cases/ttembed.json new file mode 100644 index 0000000000000000000000000000000000000000..66625cbb271fa67f62aad8379ca8dfd699610165 --- /dev/null +++ b/suite2cases/ttembed.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/ttembed", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ttembed_install_and_remove_ttembed" + }, + { + "name": "oe_test_ttembed_install_and_remove_ttembed-debuginfo" + }, + { + "name": "oe_test_ttembed_install_and_remove_ttembed-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/ttmkfdir.json b/suite2cases/ttmkfdir.json index f3e5b9a99073798a3c6995a60f34b79ca068cbe0..ceefe533474e5312c03568dfe492fdd1869d9ec6 100644 --- a/suite2cases/ttmkfdir.json +++ b/suite2cases/ttmkfdir.json @@ -1,11 +1,13 @@ { - "path": "$OET_PATH/testcases/cli-test/ttmkfdir", - "cases": [ - { - "name": "oe_test_ttmkfdir_base_01" - }, - { - "name": "oe_test_ttmkfdir_base_02" - } - ] + "path": "$OET_PATH/testcases/cli-test/ttmkfdir", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_ttmkfdir_base_01" + }, + { + "name": "oe_test_ttmkfdir_base_02" + } + ] } \ No newline at end of file diff --git a/suite2cases/tuna.json b/suite2cases/tuna.json index d12f69f7a0227ac62ad2d8539219a6a7388a5083..627ca386db53fe20bff5fbba5b9174b6bf52fb78 100644 --- a/suite2cases/tuna.json +++ b/suite2cases/tuna.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/tuna", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_tuna_01" @@ -11,4 +13,4 @@ "name": "oe_test_tuna_03" } ] -} +} \ No newline at end of file diff --git a/suite2cases/tuned.json b/suite2cases/tuned.json index ad4bdc8fd33959d3e6a018f971e73149672db313..465c62a2c041fc8471db1c1bc8c31cff053695cf 100644 --- a/suite2cases/tuned.json +++ b/suite2cases/tuned.json @@ -1,8 +1,20 @@ { "path": "$OET_PATH/testcases/cli-test/tuned", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_tuned" + }, + { + "name": "oe_test_tuned_install_and_remove_tuned" + }, + { + "name": "oe_test_tuned_install_and_remove_tuned-help" + }, + { + "name": "oe_test_tuned_install_and_remove_tuned-profiles-devel" } ] -} +} \ No newline at end of file diff --git a/suite2cases/tzdata.json b/suite2cases/tzdata.json new file mode 100644 index 0000000000000000000000000000000000000000..55f547a2a65b60100ad1ceae95db637d21db851e --- /dev/null +++ b/suite2cases/tzdata.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/tzdata", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_tzdata_install_and_remove_tzdata" + }, + { + "name": "oe_test_tzdata_install_and_remove_tzdata-java" + } + ] +} \ No newline at end of file diff --git a/suite2cases/uboot-tools.json b/suite2cases/uboot-tools.json new file mode 100644 index 0000000000000000000000000000000000000000..4e2720fe4788ce85dd7e17edc325d28c1ffd9aaf --- /dev/null +++ b/suite2cases/uboot-tools.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/uboot-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_uboot-tools_install_and_remove_uboot-tools" + }, + { + "name": "oe_test_uboot-tools_install_and_remove_uboot-images-armv7" + }, + { + "name": "oe_test_uboot-tools_install_and_remove_uboot-images-elf" + }, + { + "name": "oe_test_uboot-tools_install_and_remove_uboot-images-armv8" + }, + { + "name": "oe_test_uboot-tools_install_and_remove_uboot-tools-help" + }, + { + "name": "oe_test_uboot-tools_install_and_remove_uboot-tools-debugsource" + }, + { + "name": "oe_test_uboot-tools_install_and_remove_uboot-tools-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/udisks2.json b/suite2cases/udisks2.json index eea083c6acb441d0ff979fd34ad20821e7eeaa6f..205815cf69a864cffea8e16a5768e9794f54ce55 100644 --- a/suite2cases/udisks2.json +++ b/suite2cases/udisks2.json @@ -1,8 +1,44 @@ { "path": "$OET_PATH/testcases/cli-test/udisks2", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_udisks2" + }, + { + "name": "oe_test_udisks2_install_and_remove_udisks2" + }, + { + "name": "oe_test_udisks2_install_and_remove_udisks2-bcache" + }, + { + "name": "oe_test_udisks2_install_and_remove_udisks2-zram" + }, + { + "name": "oe_test_udisks2_install_and_remove_libudisks2-devel" + }, + { + "name": "oe_test_udisks2_install_and_remove_udisks2-btrfs" + }, + { + "name": "oe_test_udisks2_install_and_remove_libudisks2" + }, + { + "name": "oe_test_udisks2_install_and_remove_udisks2-lvm2" + }, + { + "name": "oe_test_udisks2_install_and_remove_udisks2-lsm" + }, + { + "name": "oe_test_udisks2_install_and_remove_udisks2-debugsource" + }, + { + "name": "oe_test_udisks2_install_and_remove_udisks2-vdo" + }, + { + "name": "oe_test_udisks2_install_and_remove_udisks2-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/uid_wrapper.json b/suite2cases/uid_wrapper.json new file mode 100644 index 0000000000000000000000000000000000000000..53881967e4be054a98881308986a0253b18739b3 --- /dev/null +++ b/suite2cases/uid_wrapper.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/uid_wrapper", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_uid_wrapper_install_and_remove_uid_wrapper" + }, + { + "name": "oe_test_uid_wrapper_install_and_remove_uid_wrapper-help" + }, + { + "name": "oe_test_uid_wrapper_install_and_remove_uid_wrapper-debuginfo" + }, + { + "name": "oe_test_uid_wrapper_install_and_remove_uid_wrapper-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/umoci.json b/suite2cases/umoci.json index 26d79dafa9163bf46ec5dcdc7581072915671954..c77c23f81ac8e052b6cc1ffffeef64293108243d 100644 --- a/suite2cases/umoci.json +++ b/suite2cases/umoci.json @@ -1,8 +1,10 @@ { "path": "${OET_PATH}/testcases/cli-test/umoci", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_umoci" } ] -} +} \ No newline at end of file diff --git a/suite2cases/umockdev.json b/suite2cases/umockdev.json new file mode 100644 index 0000000000000000000000000000000000000000..808867a79afb4461398bec7bc206fda0272c0841 --- /dev/null +++ b/suite2cases/umockdev.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/umockdev", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_umockdev_install_and_remove_umockdev" + }, + { + "name": "oe_test_umockdev_install_and_remove_umockdev-devel" + }, + { + "name": "oe_test_umockdev_install_and_remove_umockdev-debuginfo" + }, + { + "name": "oe_test_umockdev_install_and_remove_umockdev-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/unbound.json b/suite2cases/unbound.json index f0aeac4e70f06536b7b2ea0fac7cdf9e427f4c06..6b87d6585033b4f74e17f57f3e00c30cab396c82 100644 --- a/suite2cases/unbound.json +++ b/suite2cases/unbound.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/unbound", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_unbound-anchor" @@ -12,6 +15,33 @@ }, { "name": "oe_test_unbound-control" + }, + { + "name": "oe_test_unbound_install_and_remove_unbound" + }, + { + "name": "oe_test_unbound_install_and_remove_python3-unbound" + }, + { + "name": "oe_test_unbound_install_and_remove_unbound-help" + }, + { + "name": "oe_test_unbound_install_and_remove_unbound-devel" + }, + { + "name": "oe_test_unbound_install_and_remove_unbound-anchor" + }, + { + "name": "oe_test_unbound_install_and_remove_unbound-utils" + }, + { + "name": "oe_test_unbound_install_and_remove_unbound-libs" + }, + { + "name": "oe_test_unbound_install_and_remove_unbound-debuginfo" + }, + { + "name": "oe_test_unbound_install_and_remove_unbound-debugsource" } ] -} +} \ No newline at end of file diff --git a/suite2cases/unicode-ucd.json b/suite2cases/unicode-ucd.json new file mode 100644 index 0000000000000000000000000000000000000000..34fdd29df40b428d0472e3871b47df08ed754e70 --- /dev/null +++ b/suite2cases/unicode-ucd.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/unicode-ucd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_unicode-ucd_install_and_remove_unicode-ucd" + } + ] +} \ No newline at end of file diff --git a/suite2cases/units.json b/suite2cases/units.json index 3c976c55ca0cb55a230d2f58102a3abc515bc85f..51a051feba9ca91d6c351ad0e67af37b78fb11b8 100644 --- a/suite2cases/units.json +++ b/suite2cases/units.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/units", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_units_01" @@ -19,5 +21,5 @@ { "name": "oe_test_units_cur" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/units_2.21.json b/suite2cases/units_2.21.json index 22b7a0153084c92d89ae47bd37f86f0b8571c9b7..0b8287f53d0408fd7c6332afac1c2b5ea0873bfe 100644 --- a/suite2cases/units_2.21.json +++ b/suite2cases/units_2.21.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/units", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_units_2.21" @@ -7,5 +9,5 @@ { "name": "oe_test_units_cur_2.21" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/unixODBC.json b/suite2cases/unixODBC.json new file mode 100644 index 0000000000000000000000000000000000000000..247ae19fbc74bf27c00c76462d8e35c3c88f8c67 --- /dev/null +++ b/suite2cases/unixODBC.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/unixODBC", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_unixODBC_install_and_remove_unixODBC" + }, + { + "name": "oe_test_unixODBC_install_and_remove_unixODBC-devel" + }, + { + "name": "oe_test_unixODBC_install_and_remove_unixODBC-debuginfo" + }, + { + "name": "oe_test_unixODBC_install_and_remove_unixODBC-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/unixbench_comprehensive.json b/suite2cases/unixbench_comprehensive.json new file mode 100644 index 0000000000000000000000000000000000000000..b70350c5fc132611aa0b88e95903aba41a8b8a0e --- /dev/null +++ b/suite2cases/unixbench_comprehensive.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/comprehensive/unixbench_comprehensive", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_unixbench_comprehensive" + } + ] +} \ No newline at end of file diff --git a/suite2cases/unixbench_cpu.json b/suite2cases/unixbench_cpu.json new file mode 100644 index 0000000000000000000000000000000000000000..9e9b36a49b45314495816cdaf00697cc2d4de8af --- /dev/null +++ b/suite2cases/unixbench_cpu.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/cpu/unixbench_cpu", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_unixbench_cpu" + } + ] +} \ No newline at end of file diff --git a/suite2cases/unixbench_file_system.json b/suite2cases/unixbench_file_system.json new file mode 100644 index 0000000000000000000000000000000000000000..d3e24a780cae5f1f023a820d9d4347634f4dcbba --- /dev/null +++ b/suite2cases/unixbench_file_system.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/file_system/unixbench_file_system", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_unixbench_file_system" + } + ] +} \ No newline at end of file diff --git a/suite2cases/unixbench_io.json b/suite2cases/unixbench_io.json new file mode 100644 index 0000000000000000000000000000000000000000..dad3fd31170f9a48b49b51a905061308c054021b --- /dev/null +++ b/suite2cases/unixbench_io.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/io/unixbench_io", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_unixbench_io" + } + ] +} \ No newline at end of file diff --git a/suite2cases/unixbench_syscall.json b/suite2cases/unixbench_syscall.json new file mode 100644 index 0000000000000000000000000000000000000000..beb722862496508d0d687006ea31e1753dd98d62 --- /dev/null +++ b/suite2cases/unixbench_syscall.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/performance-test/syscall/unixbench_syscall", + "cpu": 4, + "memory": 8, + "cases": [ + { + "name": "oe_test_unixbench_syscall" + } + ] +} \ No newline at end of file diff --git a/suite2cases/unrtf.json b/suite2cases/unrtf.json index 0a624613b058b2341826f4feae6cbc5df5341aa4..26839353d5e2a18fd77ee95031141c70ea8f526f 100644 --- a/suite2cases/unrtf.json +++ b/suite2cases/unrtf.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/unrtf", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_unrtf" } ] -} +} \ No newline at end of file diff --git a/suite2cases/unzip.json b/suite2cases/unzip.json new file mode 100644 index 0000000000000000000000000000000000000000..799ca1c6c1bd0f45fff00e84cd2bb205e72a4f9a --- /dev/null +++ b/suite2cases/unzip.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/unzip", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_unzip_install_and_remove_unzip" + }, + { + "name": "oe_test_unzip_install_and_remove_unzip-help" + }, + { + "name": "oe_test_unzip_install_and_remove_unzip-debuginfo" + }, + { + "name": "oe_test_unzip_install_and_remove_unzip-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/upower.json b/suite2cases/upower.json index 20ec6dddc071a5d4d4d2d562969059d2a46f33d4..a3f2d43498de3ccdc1776a0533f13e1d127ace76 100644 --- a/suite2cases/upower.json +++ b/suite2cases/upower.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/upower", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_upower" + }, + { + "name": "oe_test_upower_install_and_remove_upower" + }, + { + "name": "oe_test_upower_install_and_remove_upower-devel-docs" + }, + { + "name": "oe_test_upower_install_and_remove_upower-devel" + }, + { + "name": "oe_test_upower_install_and_remove_upower-debugsource" + }, + { + "name": "oe_test_upower_install_and_remove_upower-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/urw-base35-fonts.json b/suite2cases/urw-base35-fonts.json new file mode 100644 index 0000000000000000000000000000000000000000..885c9967475061d201300dda25bec2ef19a7bd0e --- /dev/null +++ b/suite2cases/urw-base35-fonts.json @@ -0,0 +1,50 @@ +{ + "path": "$OET_PATH/testcases/cli-test/urw-base35-fonts", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-c059-fonts" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-d050000l-fonts" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-mono-ps-fonts" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-p052-fonts" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-standard-symbols-ps-fonts" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-common" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-devel" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-z003-fonts" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-legacy" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-roman-fonts" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-sans-fonts" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-bookman-fonts" + }, + { + "name": "oe_test_urw-base35-fonts_install_and_remove_urw-base35-gothic-fonts" + } + ] +} \ No newline at end of file diff --git a/suite2cases/usbguard.json b/suite2cases/usbguard.json index 8285ea2a2ff9c3dfd1e611cd62363272fe44b8b4..2f3e96655285376d26a42be25930a9a28b44372f 100644 --- a/suite2cases/usbguard.json +++ b/suite2cases/usbguard.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/usbguard", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_usbguard" @@ -8,4 +10,4 @@ "name": "oe_test_service_usbguard-dbus" } ] -} +} \ No newline at end of file diff --git a/suite2cases/usbmuxd.json b/suite2cases/usbmuxd.json index fbe02495e086fd7f33fa3e46b2eac4750c741043..d0808f228ad22720148000a5e830cdf4c78c037c 100644 --- a/suite2cases/usbmuxd.json +++ b/suite2cases/usbmuxd.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/usbmuxd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_usbmuxd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/usbutils.json b/suite2cases/usbutils.json new file mode 100644 index 0000000000000000000000000000000000000000..6d1856d73aeb3b59a5bece70624fb5652ec6638e --- /dev/null +++ b/suite2cases/usbutils.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/usbutils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_usbutils_install_and_remove_usbutils" + }, + { + "name": "oe_test_usbutils_install_and_remove_usbutils-help" + }, + { + "name": "oe_test_usbutils_install_and_remove_usbutils-debuginfo" + }, + { + "name": "oe_test_usbutils_install_and_remove_usbutils-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/usermode.json b/suite2cases/usermode.json new file mode 100644 index 0000000000000000000000000000000000000000..794864a63dcc90c3f66c8b215f89addf0b489dc8 --- /dev/null +++ b/suite2cases/usermode.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/usermode", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_usermode_install_and_remove_usermode" + }, + { + "name": "oe_test_usermode_install_and_remove_usermode-help" + }, + { + "name": "oe_test_usermode_install_and_remove_usermode-gtk" + }, + { + "name": "oe_test_usermode_install_and_remove_usermode-debuginfo" + }, + { + "name": "oe_test_usermode_install_and_remove_usermode-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/userspace-rcu.json b/suite2cases/userspace-rcu.json new file mode 100644 index 0000000000000000000000000000000000000000..acecf7ebe6df87cd51ccedc9f29f1f72b5070208 --- /dev/null +++ b/suite2cases/userspace-rcu.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/userspace-rcu", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_userspace-rcu_install_and_remove_userspace-rcu" + }, + { + "name": "oe_test_userspace-rcu_install_and_remove_userspace-rcu-devel" + }, + { + "name": "oe_test_userspace-rcu_install_and_remove_userspace-rcu-debugsource" + }, + { + "name": "oe_test_userspace-rcu_install_and_remove_userspace-rcu-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/util-linux.json b/suite2cases/util-linux.json index e5c1658004136b314bec79c4a52b808249968da7..860aecffb3e857ba65cf723d77ce8bf309d9117a 100644 --- a/suite2cases/util-linux.json +++ b/suite2cases/util-linux.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/util-linux", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_fstrim" @@ -13,16 +16,16 @@ { "name": "oe_test_socket_uuidd" }, - { + { "name": "oe_test_util-linux_mcookie" - }, + }, { "name": "oe_test_libuuid" }, { "name": "oe_test_util-linux_utmpdump" - }, - { + }, + { "name": "oe_test_unshare" }, { @@ -30,6 +33,48 @@ }, { "name": "oe_test_mkfs_001" + }, + { + "name": "oe_test_util-linux_install_and_remove_util-linux" + }, + { + "name": "oe_test_util-linux_install_and_remove_libsmartcols" + }, + { + "name": "oe_test_util-linux_install_and_remove_libmount" + }, + { + "name": "oe_test_util-linux_install_and_remove_libuuid" + }, + { + "name": "oe_test_util-linux_install_and_remove_util-linux-devel" + }, + { + "name": "oe_test_util-linux_install_and_remove_util-linux-help" + }, + { + "name": "oe_test_util-linux_install_and_remove_libfdisk" + }, + { + "name": "oe_test_util-linux_install_and_remove_util-linux-user" + }, + { + "name": "oe_test_util-linux_install_and_remove_libblkid" + }, + { + "name": "oe_test_util-linux_install_and_remove_uuidd" + }, + { + "name": "oe_test_util-linux_install_and_remove_python3-libmount" + }, + { + "name": "oe_test_util-linux_install_and_remove_util-linux-debuginfo" + }, + { + "name": "oe_test_util-linux_install_and_remove_util-linux-debugsource" + }, + { + "name": "oe_test_util-linux_install_and_remove_python-libmount" } ] -} +} \ No newline at end of file diff --git a/suite2cases/utshell.json b/suite2cases/utshell.json index 57db6d458085f749800918c8f2e070e5aa2b7f49..67277a0fe5133ce36810a36cb8bd02547d7d6a78 100644 --- a/suite2cases/utshell.json +++ b/suite2cases/utshell.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/utshell", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_utshell_test" @@ -190,6 +192,9 @@ { "name": "oe_test_utshell_ps_003" }, + { + "name": "oe_test_utshell_ps_003" + }, { "name": "oe_test_utshell_eval" }, diff --git a/suite2cases/uuid.json b/suite2cases/uuid.json index e49ef78227560aa3ec777f7ffd7fe868a97bd2f2..9ddd9cd8692d9606506331b59ab1cef760ef5501 100644 --- a/suite2cases/uuid.json +++ b/suite2cases/uuid.json @@ -1,11 +1,13 @@ { "path": "${OET_PATH}/testcases/cli-test/uuid", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_uuid_1" }, - { - "name": "oe_test_uuid_2" - } + { + "name": "oe_test_uuid_2" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/vala.json b/suite2cases/vala.json index cd92b25aa1a9c4211f037cbf88519919d6f51cf3..1a06227814f8cf33e0e2954365c81d41d8eb676b 100644 --- a/suite2cases/vala.json +++ b/suite2cases/vala.json @@ -1,8 +1,26 @@ { "path": "$OET_PATH/testcases/system-test/system-integration/os-basic/oe_test_vala", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_vala" + }, + { + "name": "oe_test_vala_install_and_remove_vala" + }, + { + "name": "oe_test_vala_install_and_remove_vala-devel" + }, + { + "name": "oe_test_vala_install_and_remove_vala-help" + }, + { + "name": "oe_test_vala_install_and_remove_vala-debuginfo" + }, + { + "name": "oe_test_vala_install_and_remove_vala-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/valgrind.json b/suite2cases/valgrind.json index 82c223eeceb92d84f1ed956de46bf60e930fceb6..604de258bc1955b4e2ac5a26e4e219145669acc2 100644 --- a/suite2cases/valgrind.json +++ b/suite2cases/valgrind.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/valgrind", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_valgrind" @@ -36,7 +39,7 @@ }, { "name": "oe_test_valgrind_11" - }, + }, { "name": "oe_test_valgrind_12" }, @@ -84,7 +87,21 @@ }, { "name": "oe_test_ms_print_01" + }, + { + "name": "oe_test_valgrind_install_and_remove_valgrind" + }, + { + "name": "oe_test_valgrind_install_and_remove_valgrind-devel" + }, + { + "name": "oe_test_valgrind_install_and_remove_valgrind-help" + }, + { + "name": "oe_test_valgrind_install_and_remove_valgrind-debuginfo" + }, + { + "name": "oe_test_valgrind_install_and_remove_valgrind-debugsource" } ] - } - \ No newline at end of file +} \ No newline at end of file diff --git a/suite2cases/valgrind_3.16.0.json b/suite2cases/valgrind_3.16.0.json index 2cf225df07c88c9ca8d5d1e0be00821325359d0a..3dbc7c51ed34ff9dd895a73fcd3c3711f453f725 100644 --- a/suite2cases/valgrind_3.16.0.json +++ b/suite2cases/valgrind_3.16.0.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/valgrind", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_valgrind_22" @@ -14,5 +16,4 @@ "name": "oe_test_callgrind_control_02" } ] - } - \ No newline at end of file +} \ No newline at end of file diff --git a/suite2cases/varnish.json b/suite2cases/varnish.json index 592d0533752e87650fe7d93829deb01cb9725f21..3c87012be8bf007d36a57845df555d81f04f8f14 100644 --- a/suite2cases/varnish.json +++ b/suite2cases/varnish.json @@ -1,12 +1,14 @@ { "path": "$OET_PATH/testcases/cli-test/varnish", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_varnishncsa" }, { "name": "oe_test_service_varnish" - }, + }, { "name": "oe_test_varnish_01" }, @@ -26,4 +28,4 @@ "name": "oe_test_varnish_06" } ] -} +} \ No newline at end of file diff --git a/suite2cases/vconfig.json b/suite2cases/vconfig.json new file mode 100644 index 0000000000000000000000000000000000000000..a8878778724fce245336351f3e7b6425d49b921e --- /dev/null +++ b/suite2cases/vconfig.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/vconfig", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_vconfig_install_and_remove_vconfig" + }, + { + "name": "oe_test_vconfig_install_and_remove_vconfig-help" + }, + { + "name": "oe_test_vconfig_install_and_remove_vconfig-debuginfo" + }, + { + "name": "oe_test_vconfig_install_and_remove_vconfig-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/vdo.json b/suite2cases/vdo.json index ffa0fd76be708dc4ac71c12cb0f9bcdce0d2a37a..1b805b25112a0574a1929d587e3c10a3b31768c3 100644 --- a/suite2cases/vdo.json +++ b/suite2cases/vdo.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/vdo", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_vdo" @@ -68,4 +70,4 @@ "name": "oe_test_vdo_modify_02" } ] -} +} \ No newline at end of file diff --git a/suite2cases/vim.json b/suite2cases/vim.json new file mode 100644 index 0000000000000000000000000000000000000000..ab5012624ba6c163021dff466266ec098be803be --- /dev/null +++ b/suite2cases/vim.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/vim", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_vim_install_and_remove_vim" + }, + { + "name": "oe_test_vim_install_and_remove_vim-enhanced" + }, + { + "name": "oe_test_vim_install_and_remove_vim-filesystem" + }, + { + "name": "oe_test_vim_install_and_remove_vim-X11" + }, + { + "name": "oe_test_vim_install_and_remove_vim-minimal" + }, + { + "name": "oe_test_vim_install_and_remove_vim-common" + }, + { + "name": "oe_test_vim_install_and_remove_vim-debugsource" + }, + { + "name": "oe_test_vim_install_and_remove_vim-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/virtualization_user_guide.json b/suite2cases/virtualization_user_guide.json index 401df26f44777981d533accf68ba36eb59f4fd64..a8c78c49020eca86b5664de583a7bbe15787c8fa 100644 --- a/suite2cases/virtualization_user_guide.json +++ b/suite2cases/virtualization_user_guide.json @@ -2,6 +2,8 @@ "path": "${OET_PATH}/testcases/doc-test/virtualization/virtualization_user_guide", "machine type": "physical", "add network interface": 1, + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_virtualization_user_guide", @@ -15,4 +17,4 @@ "name": "oe_test_libcareplus_hot_patch_by_script" } ] -} +} \ No newline at end of file diff --git a/suite2cases/volume_key.json b/suite2cases/volume_key.json new file mode 100644 index 0000000000000000000000000000000000000000..312d666fa9677b3fda352855bb79387e04a43065 --- /dev/null +++ b/suite2cases/volume_key.json @@ -0,0 +1,29 @@ +{ + "path": "$OET_PATH/testcases/cli-test/volume_key", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_volume_key_install_and_remove_volume_key" + }, + { + "name": "oe_test_volume_key_install_and_remove_python3-gtk-vnc" + }, + { + "name": "oe_test_volume_key_install_and_remove_python3-volume_key" + }, + { + "name": "oe_test_volume_key_install_and_remove_volume_key-devel" + }, + { + "name": "oe_test_volume_key_install_and_remove_volume_key-help" + }, + { + "name": "oe_test_volume_key_install_and_remove_volume_key-debuginfo" + }, + { + "name": "oe_test_volume_key_install_and_remove_volume_key-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/vsftpd.json b/suite2cases/vsftpd.json index 4b0e0fc66899d79e54c845c577aeec2524a8de5f..22565e13d81a7720df5c5d9c9125f39e5dd1e3ec 100644 --- a/suite2cases/vsftpd.json +++ b/suite2cases/vsftpd.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/vsftpd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_vsftpd" @@ -8,4 +10,4 @@ "name": "oe_test_target_vsftpd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/vulkan-headers.json b/suite2cases/vulkan-headers.json new file mode 100644 index 0000000000000000000000000000000000000000..dd98c9d89425bdc980597f356074af31688f7d23 --- /dev/null +++ b/suite2cases/vulkan-headers.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/vulkan-headers", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_vulkan-headers_install_and_remove_vulkan-headers" + } + ] +} \ No newline at end of file diff --git a/suite2cases/vulkan-loader.json b/suite2cases/vulkan-loader.json new file mode 100644 index 0000000000000000000000000000000000000000..035adc49caff6a4422a572bf80d3625601afbef7 --- /dev/null +++ b/suite2cases/vulkan-loader.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/vulkan-loader", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_vulkan-loader_install_and_remove_vulkan-loader" + }, + { + "name": "oe_test_vulkan-loader_install_and_remove_vulkan-loader-devel" + }, + { + "name": "oe_test_vulkan-loader_install_and_remove_vulkan-loader-debugsource" + }, + { + "name": "oe_test_vulkan-loader_install_and_remove_vulkan-loader-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/watchdog.json b/suite2cases/watchdog.json index 93cec105cbc5af5628d5db2cdc50dc2fdc925f9d..c0343bdc927ad72515b7c82036420d8ff594d88b 100644 --- a/suite2cases/watchdog.json +++ b/suite2cases/watchdog.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/watchdog", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_watchdog" diff --git a/suite2cases/wavpack.json b/suite2cases/wavpack.json index cd77728bbd77ff714356f5d2dd88e9c579b9bfca..c8f5da8254ad0e0181f32aa3915710d8e5b0ca38 100644 --- a/suite2cases/wavpack.json +++ b/suite2cases/wavpack.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/wavpack", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_wavpack" } ] -} +} \ No newline at end of file diff --git a/suite2cases/wayland-protocols.json b/suite2cases/wayland-protocols.json new file mode 100644 index 0000000000000000000000000000000000000000..1c2d1a6a3f2399ec248a16980980c3168ea5c2ec --- /dev/null +++ b/suite2cases/wayland-protocols.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/wayland-protocols", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_wayland-protocols_install_and_remove_wayland-protocols" + }, + { + "name": "oe_test_wayland-protocols_install_and_remove_wayland-protocols-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/wayland.json b/suite2cases/wayland.json new file mode 100644 index 0000000000000000000000000000000000000000..851ac8108987fa6d9a4d974cc74750476b1c6209 --- /dev/null +++ b/suite2cases/wayland.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/wayland", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_wayland_install_and_remove_wayland" + }, + { + "name": "oe_test_wayland_install_and_remove_wayland-devel" + }, + { + "name": "oe_test_wayland_install_and_remove_wayland-debugsource" + }, + { + "name": "oe_test_wayland_install_and_remove_wayland-debuginfo" + }, + { + "name": "oe_test_wayland_install_and_remove_wayland-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/webbench.json b/suite2cases/webbench.json index 370170e9c498555aa77951c58e69300e49070882..802431354941992c4adb959803b69abdf52a1001 100644 --- a/suite2cases/webbench.json +++ b/suite2cases/webbench.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/webbench", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_webbench" } ] -} +} \ No newline at end of file diff --git a/suite2cases/webkit2gtk3.json b/suite2cases/webkit2gtk3.json new file mode 100644 index 0000000000000000000000000000000000000000..0ea73d1824be6d5f4cd45cb23dd8452ae9a31f7a --- /dev/null +++ b/suite2cases/webkit2gtk3.json @@ -0,0 +1,59 @@ +{ + "path": "$OET_PATH/testcases/cli-test/webkit2gtk3", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk3" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-debugsource" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-jsc-devel" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-devel" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-debuginfo" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-jsc" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-help" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_jsc4.1" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_jsc4.1-devel" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0-devel" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1-devel" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0-help" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1-help" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_jsc5.0" + }, + { + "name": "oe_test_webkit2gtk3_install_and_remove_jsc5.0-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/webrtc-audio-processing.json b/suite2cases/webrtc-audio-processing.json new file mode 100644 index 0000000000000000000000000000000000000000..7e0b82273e261a6cd08fed6afc23f82cfcc7fe93 --- /dev/null +++ b/suite2cases/webrtc-audio-processing.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/webrtc-audio-processing", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing" + }, + { + "name": "oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-devel" + }, + { + "name": "oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-help" + }, + { + "name": "oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-debugsource" + }, + { + "name": "oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/wget.json b/suite2cases/wget.json new file mode 100644 index 0000000000000000000000000000000000000000..4a8a1c519227bd8304d0e539475fff0ee482e8cf --- /dev/null +++ b/suite2cases/wget.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/wget", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_wget_install_and_remove_wget" + }, + { + "name": "oe_test_wget_install_and_remove_wget-help" + }, + { + "name": "oe_test_wget_install_and_remove_wget-debuginfo" + }, + { + "name": "oe_test_wget_install_and_remove_wget-debugsource" + }, + { + "name": "oe_test_wget_install_and_remove_wget-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/which.json b/suite2cases/which.json new file mode 100644 index 0000000000000000000000000000000000000000..88861d39b2a5fa37fda2a4dfe4f90f9f1f888a91 --- /dev/null +++ b/suite2cases/which.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/which", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_which_install_and_remove_which" + }, + { + "name": "oe_test_which_install_and_remove_which-help" + }, + { + "name": "oe_test_which_install_and_remove_which-debuginfo" + }, + { + "name": "oe_test_which_install_and_remove_which-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/whois.json b/suite2cases/whois.json index f4d8369b9cd2fbdff1ec5d40762b7dd95c9cd73b..769806b4d72bf3f4415d5d4330aa4f83a20f1d22 100644 --- a/suite2cases/whois.json +++ b/suite2cases/whois.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/whois", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_whois_01" @@ -11,4 +13,4 @@ "name": "oe_test_whois_03" } ] -} +} \ No newline at end of file diff --git a/suite2cases/wireshark.json b/suite2cases/wireshark.json index 5ac68bdf0850b326196632ab5bfc5747330d7caf..68b881192935a0ba6d42b95e847e3d750251a508 100644 --- a/suite2cases/wireshark.json +++ b/suite2cases/wireshark.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/wireshark", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_capinfos" diff --git a/suite2cases/woff2.json b/suite2cases/woff2.json new file mode 100644 index 0000000000000000000000000000000000000000..69648f4108199c7d4eb67d9391b9a46ea3d69280 --- /dev/null +++ b/suite2cases/woff2.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/woff2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_woff2_install_and_remove_woff2" + }, + { + "name": "oe_test_woff2_install_and_remove_woff2-debugsource" + }, + { + "name": "oe_test_woff2_install_and_remove_woff2-debuginfo" + }, + { + "name": "oe_test_woff2_install_and_remove_woff2-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/words.json b/suite2cases/words.json new file mode 100644 index 0000000000000000000000000000000000000000..0e65a36f58d3307b7f9b6218174a528b2ac8a11a --- /dev/null +++ b/suite2cases/words.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/words", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_words_install_and_remove_words" + } + ] +} \ No newline at end of file diff --git a/suite2cases/wpa_supplicant.json b/suite2cases/wpa_supplicant.json index f72055fae67793ae34cf7ff7e248cee9414d87df..584b39a8c354eaae0413665df7243114a9064906 100644 --- a/suite2cases/wpa_supplicant.json +++ b/suite2cases/wpa_supplicant.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/wpa_supplicant", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_wpa_supplicant" } ] -} +} \ No newline at end of file diff --git a/suite2cases/wpebackend-fdo.json b/suite2cases/wpebackend-fdo.json new file mode 100644 index 0000000000000000000000000000000000000000..0b1e372f05d081a67e8eec06d6819d93235ad6b2 --- /dev/null +++ b/suite2cases/wpebackend-fdo.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/wpebackend-fdo", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo" + }, + { + "name": "oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-devel" + }, + { + "name": "oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-debuginfo" + }, + { + "name": "oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/wrk.json b/suite2cases/wrk.json index 96b1170ecf0af4b8c6d9e14804f4fe658a427fcb..bff348c2f8bd54afd671073f6ff836178daed63d 100644 --- a/suite2cases/wrk.json +++ b/suite2cases/wrk.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/wrk", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_wrk" } ] -} +} \ No newline at end of file diff --git a/suite2cases/wsmancli.json b/suite2cases/wsmancli.json index 974b1b58029af5b1a82fd7773aca59ec028dc3fb..9f44d7aeb774bed5cae8bdaaeea51ebf7e871e7b 100644 --- a/suite2cases/wsmancli.json +++ b/suite2cases/wsmancli.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/wsmancli", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_wsmancli_wseventmgr_01" diff --git a/suite2cases/x265.json b/suite2cases/x265.json index 4b6c0c271e39749c098a3f7b737e4355e7220e17..0c433d10e4e15f9cef409f00e7a6e46e1e210856 100644 --- a/suite2cases/x265.json +++ b/suite2cases/x265.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/x265", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_x265" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/xalan-j2.json b/suite2cases/xalan-j2.json new file mode 100644 index 0000000000000000000000000000000000000000..42c8c4779f123f6931960acdefc635b81ab8c385 --- /dev/null +++ b/suite2cases/xalan-j2.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xalan-j2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xalan-j2_install_and_remove_xalan-j2" + }, + { + "name": "oe_test_xalan-j2_install_and_remove_xalan-j2-xsltc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xapian-core.json b/suite2cases/xapian-core.json index ded532a6ee60b5d8ce65f526e11710de82c87df8..d56c41b9096acb5d117caf5ab5a5b50909241882 100644 --- a/suite2cases/xapian-core.json +++ b/suite2cases/xapian-core.json @@ -1,9 +1,11 @@ { "path": "$OET_PATH/testcases/cli-test/xapian-core", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ - { - "name": "oe_test_xapian-core_copydatabase" + "name": "oe_test_xapian-core_copydatabase" }, { "name": "oe_test_xapian-core_quest_01" @@ -52,7 +54,21 @@ }, { "name": "oe_test_xapian-core_xapian-tcpsrv" + }, + { + "name": "oe_test_xapian-core_install_and_remove_xapian-core" + }, + { + "name": "oe_test_xapian-core_install_and_remove_xapian-core-devel" + }, + { + "name": "oe_test_xapian-core_install_and_remove_xapian-core-help" + }, + { + "name": "oe_test_xapian-core_install_and_remove_xapian-core-debuginfo" + }, + { + "name": "oe_test_xapian-core_install_and_remove_xapian-core-debugsource" } - ] } \ No newline at end of file diff --git a/suite2cases/xcb-proto.json b/suite2cases/xcb-proto.json new file mode 100644 index 0000000000000000000000000000000000000000..9f28ed573dabc2e57ce83ea174b25a8aae1e18d9 --- /dev/null +++ b/suite2cases/xcb-proto.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xcb-proto", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xcb-proto_install_and_remove_xcb-proto" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xcb-util-image.json b/suite2cases/xcb-util-image.json new file mode 100644 index 0000000000000000000000000000000000000000..3393cd6ab89e3b6b6e49efc8932858cb95ffb10a --- /dev/null +++ b/suite2cases/xcb-util-image.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xcb-util-image", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xcb-util-image_install_and_remove_xcb-util-image" + }, + { + "name": "oe_test_xcb-util-image_install_and_remove_xcb-util-image-devel" + }, + { + "name": "oe_test_xcb-util-image_install_and_remove_xcb-util-image-debuginfo" + }, + { + "name": "oe_test_xcb-util-image_install_and_remove_xcb-util-image-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xcb-util-keysyms.json b/suite2cases/xcb-util-keysyms.json new file mode 100644 index 0000000000000000000000000000000000000000..1761fedb64c93f912491729c87cfeaf35f964e0d --- /dev/null +++ b/suite2cases/xcb-util-keysyms.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xcb-util-keysyms", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms" + }, + { + "name": "oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-devel" + }, + { + "name": "oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-debuginfo" + }, + { + "name": "oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xcb-util-renderutil.json b/suite2cases/xcb-util-renderutil.json new file mode 100644 index 0000000000000000000000000000000000000000..122d5f504f26c1e0b94bf23b1eeaf1e880b9b4f4 --- /dev/null +++ b/suite2cases/xcb-util-renderutil.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xcb-util-renderutil", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil" + }, + { + "name": "oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-devel" + }, + { + "name": "oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-debugsource" + }, + { + "name": "oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xcb-util-wm.json b/suite2cases/xcb-util-wm.json new file mode 100644 index 0000000000000000000000000000000000000000..b568ca6a332ccafa1da2a19082f812b11c5a4a8b --- /dev/null +++ b/suite2cases/xcb-util-wm.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xcb-util-wm", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xcb-util-wm_install_and_remove_xcb-util-wm" + }, + { + "name": "oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-devel" + }, + { + "name": "oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-debugsource" + }, + { + "name": "oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xcb-util.json b/suite2cases/xcb-util.json new file mode 100644 index 0000000000000000000000000000000000000000..8c944c60a95c1c8ca93450dc44f16c5f3c94bd70 --- /dev/null +++ b/suite2cases/xcb-util.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xcb-util", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xcb-util_install_and_remove_xcb-util" + }, + { + "name": "oe_test_xcb-util_install_and_remove_xcb-util-devel" + }, + { + "name": "oe_test_xcb-util_install_and_remove_xcb-util-help" + }, + { + "name": "oe_test_xcb-util_install_and_remove_xcb-util-debuginfo" + }, + { + "name": "oe_test_xcb-util_install_and_remove_xcb-util-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xdelta.json b/suite2cases/xdelta.json index a53a971581a47f5277aacda6e25e0dcd29c68f16..aa8951acbca621a7edd9cfae582be195fc0caab3 100644 --- a/suite2cases/xdelta.json +++ b/suite2cases/xdelta.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/xdelta", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_xdelta_001" @@ -11,4 +13,4 @@ "name": "oe_test_xdelta_003" } ] -} +} \ No newline at end of file diff --git a/suite2cases/xdg-dbus-proxy.json b/suite2cases/xdg-dbus-proxy.json new file mode 100644 index 0000000000000000000000000000000000000000..79615f6a614d5f2a49a0ba5a81f68cb73507dd0c --- /dev/null +++ b/suite2cases/xdg-dbus-proxy.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xdg-dbus-proxy", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy" + }, + { + "name": "oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-debugsource" + }, + { + "name": "oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-debuginfo" + }, + { + "name": "oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xdiagnose.json b/suite2cases/xdiagnose.json index 90b64ffef1b39b2a2de688fcdd99551ca2d455dd..35bdf5ac40b1a71d1d0e278788d56c2c663dd342 100644 --- a/suite2cases/xdiagnose.json +++ b/suite2cases/xdiagnose.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/xdiagnose", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_xdiagnose_basic" } ] -} +} \ No newline at end of file diff --git a/suite2cases/xerces-j2.json b/suite2cases/xerces-j2.json new file mode 100644 index 0000000000000000000000000000000000000000..4e470e8e80f51e88d966a6fc11c952739725a0a9 --- /dev/null +++ b/suite2cases/xerces-j2.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xerces-j2", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xerces-j2_install_and_remove_xerces-j2" + }, + { + "name": "oe_test_xerces-j2_install_and_remove_xerces-j2-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xfsdump.json b/suite2cases/xfsdump.json new file mode 100644 index 0000000000000000000000000000000000000000..fe2407bf10e00c73e2a6e1c8e4d32dbc8754e914 --- /dev/null +++ b/suite2cases/xfsdump.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xfsdump", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xfsdump_install_and_remove_xfsdump" + }, + { + "name": "oe_test_xfsdump_install_and_remove_xfsdump-help" + }, + { + "name": "oe_test_xfsdump_install_and_remove_xfsdump-debuginfo" + }, + { + "name": "oe_test_xfsdump_install_and_remove_xfsdump-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xfsprogs.json b/suite2cases/xfsprogs.json index 44039254713e8bf48ca5b70618ffd678c22cb002..a2edcd08544137ce622b475e27b6a2c3d6254b61 100644 --- a/suite2cases/xfsprogs.json +++ b/suite2cases/xfsprogs.json @@ -1,8 +1,29 @@ { "path": "$OET_PATH/testcases/cli-test/xfsprogs", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_xfs_scrub_all" + }, + { + "name": "oe_test_xfsprogs_install_and_remove_xfsprogs" + }, + { + "name": "oe_test_xfsprogs_install_and_remove_xfsprogs-devel" + }, + { + "name": "oe_test_xfsprogs_install_and_remove_xfsprogs-help" + }, + { + "name": "oe_test_xfsprogs_install_and_remove_xfsprogs-xfs_scrub" + }, + { + "name": "oe_test_xfsprogs_install_and_remove_xfsprogs-debugsource" + }, + { + "name": "oe_test_xfsprogs_install_and_remove_xfsprogs-debuginfo" } ] -} +} \ No newline at end of file diff --git a/suite2cases/xinetd.json b/suite2cases/xinetd.json index 091fdd3de74b9a93f92f51592dcceff7aaef2178..5c3eaaf326a64f1c43531bb0a10d5dd51a89607f 100644 --- a/suite2cases/xinetd.json +++ b/suite2cases/xinetd.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/xinetd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_xinetd" }, - { - "name": "oe_test_service_xinetd_002" - } + { + "name": "oe_test_service_xinetd_002" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/xkeyboard-config.json b/suite2cases/xkeyboard-config.json new file mode 100644 index 0000000000000000000000000000000000000000..53fb44615a84a5fc1456beb2a7b9cb91a342d28d --- /dev/null +++ b/suite2cases/xkeyboard-config.json @@ -0,0 +1,17 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xkeyboard-config", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xkeyboard-config_install_and_remove_xkeyboard-config" + }, + { + "name": "oe_test_xkeyboard-config_install_and_remove_xkeyboard-config-devel" + }, + { + "name": "oe_test_xkeyboard-config_install_and_remove_xkeyboard-config-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xml-commons-apis.json b/suite2cases/xml-commons-apis.json new file mode 100644 index 0000000000000000000000000000000000000000..f4e585035643641b651c54c23ae2ac35d04bba62 --- /dev/null +++ b/suite2cases/xml-commons-apis.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xml-commons-apis", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xml-commons-apis_install_and_remove_xml-commons-apis" + }, + { + "name": "oe_test_xml-commons-apis_install_and_remove_xml-commons-apis-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xml-commons-resolver.json b/suite2cases/xml-commons-resolver.json new file mode 100644 index 0000000000000000000000000000000000000000..5448f5925029efa20f7fd1dd412c5ab96e3c839f --- /dev/null +++ b/suite2cases/xml-commons-resolver.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xml-commons-resolver", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xml-commons-resolver_install_and_remove_xml-commons-resolver" + }, + { + "name": "oe_test_xml-commons-resolver_install_and_remove_xml-commons-resolver-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xmlrpc-c.json b/suite2cases/xmlrpc-c.json new file mode 100644 index 0000000000000000000000000000000000000000..96e91480cc00965977fd307af8c99127156f80b6 --- /dev/null +++ b/suite2cases/xmlrpc-c.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xmlrpc-c", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xmlrpc-c_install_and_remove_xmlrpc-c" + }, + { + "name": "oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-devel" + }, + { + "name": "oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-help" + }, + { + "name": "oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-debugsource" + }, + { + "name": "oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xmlto.json b/suite2cases/xmlto.json new file mode 100644 index 0000000000000000000000000000000000000000..fb4edaa4bdca1139877fad16f6a42e8b1539c833 --- /dev/null +++ b/suite2cases/xmlto.json @@ -0,0 +1,26 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xmlto", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xmlto_install_and_remove_xmlto" + }, + { + "name": "oe_test_xmlto_install_and_remove_xmlto-xhtml" + }, + { + "name": "oe_test_xmlto_install_and_remove_xmlto-tex" + }, + { + "name": "oe_test_xmlto_install_and_remove_xmlto-help" + }, + { + "name": "oe_test_xmlto_install_and_remove_xmlto-debuginfo" + }, + { + "name": "oe_test_xmlto_install_and_remove_xmlto-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xmltoman.json b/suite2cases/xmltoman.json index 529268e6448440e63b6bf611d94c7411b7995db6..0abe706cb4c6494fa042456aa7f252a66e5b0b9e 100644 --- a/suite2cases/xmltoman.json +++ b/suite2cases/xmltoman.json @@ -1,8 +1,17 @@ { "path": "${OET_PATH}/testcases/cli-test/xmltoman", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_xmltoman" + }, + { + "name": "oe_test_xmltoman_install_and_remove_xmltoman" + }, + { + "name": "oe_test_xmltoman_install_and_remove_xmltoman-help" } ] -} +} \ No newline at end of file diff --git a/suite2cases/xmms.json b/suite2cases/xmms.json new file mode 100644 index 0000000000000000000000000000000000000000..39ff64054a628143070dfc6e916eb77de8299d00 --- /dev/null +++ b/suite2cases/xmms.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xmms", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xmms_install_and_remove_xmms" + }, + { + "name": "oe_test_xmms_install_and_remove_xmms-devel" + }, + { + "name": "oe_test_xmms_install_and_remove_xmms-help" + }, + { + "name": "oe_test_xmms_install_and_remove_xmms-debugsource" + }, + { + "name": "oe_test_xmms_install_and_remove_xmms-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drivers.json b/suite2cases/xorg-x11-drivers.json new file mode 100644 index 0000000000000000000000000000000000000000..8b9b3c2d8e9e59039ded4707f5f2ba08fa7bb454 --- /dev/null +++ b/suite2cases/xorg-x11-drivers.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drivers", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drivers_install_and_remove_xorg-x11-drivers" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-ati.json b/suite2cases/xorg-x11-drv-ati.json new file mode 100644 index 0000000000000000000000000000000000000000..d61381c8d3d12f20294af5295673b25cdb779b20 --- /dev/null +++ b/suite2cases/xorg-x11-drv-ati.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-ati", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati" + }, + { + "name": "oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-help" + }, + { + "name": "oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-debuginfo" + }, + { + "name": "oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-dummy.json b/suite2cases/xorg-x11-drv-dummy.json new file mode 100644 index 0000000000000000000000000000000000000000..f56382a1c5f1e624be7e662af2d480d98ef04243 --- /dev/null +++ b/suite2cases/xorg-x11-drv-dummy.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-dummy", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy" + }, + { + "name": "oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-help" + }, + { + "name": "oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-debuginfo" + }, + { + "name": "oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-evdev.json b/suite2cases/xorg-x11-drv-evdev.json new file mode 100644 index 0000000000000000000000000000000000000000..7123036a8d7aa7d02f93d540bb98e4664b234eaf --- /dev/null +++ b/suite2cases/xorg-x11-drv-evdev.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-evdev", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev" + }, + { + "name": "oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-devel" + }, + { + "name": "oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-help" + }, + { + "name": "oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-debuginfo" + }, + { + "name": "oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-fbdev.json b/suite2cases/xorg-x11-drv-fbdev.json new file mode 100644 index 0000000000000000000000000000000000000000..1ddf67b3ff68d82e5be3b04fc8ebf7f28b863dfe --- /dev/null +++ b/suite2cases/xorg-x11-drv-fbdev.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-fbdev", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev" + }, + { + "name": "oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-help" + }, + { + "name": "oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-debuginfo" + }, + { + "name": "oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-intel.json b/suite2cases/xorg-x11-drv-intel.json new file mode 100644 index 0000000000000000000000000000000000000000..18fb0ff075dc66c7685428590f04e28a12f49b93 --- /dev/null +++ b/suite2cases/xorg-x11-drv-intel.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-intel", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel" + }, + { + "name": "oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-help" + }, + { + "name": "oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-debugsource" + }, + { + "name": "oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-libinput.json b/suite2cases/xorg-x11-drv-libinput.json new file mode 100644 index 0000000000000000000000000000000000000000..ce8511c08c71b7699cde299b8efc782b07dc0096 --- /dev/null +++ b/suite2cases/xorg-x11-drv-libinput.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-libinput", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput" + }, + { + "name": "oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-devel" + }, + { + "name": "oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-debugsource" + }, + { + "name": "oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-debuginfo" + }, + { + "name": "oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-nouveau.json b/suite2cases/xorg-x11-drv-nouveau.json new file mode 100644 index 0000000000000000000000000000000000000000..a16f5b43ec64cb38ae4c57d3c12a4bb81c2f4eee --- /dev/null +++ b/suite2cases/xorg-x11-drv-nouveau.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-nouveau", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau" + }, + { + "name": "oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-debuginfo" + }, + { + "name": "oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-debugsource" + }, + { + "name": "oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-qxl.json b/suite2cases/xorg-x11-drv-qxl.json new file mode 100644 index 0000000000000000000000000000000000000000..230f30401b59165085eaa6ab9ad226e79731caac --- /dev/null +++ b/suite2cases/xorg-x11-drv-qxl.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-qxl", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl" + }, + { + "name": "oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-server-Xspice" + }, + { + "name": "oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl-debuginfo" + }, + { + "name": "oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-v4l.json b/suite2cases/xorg-x11-drv-v4l.json new file mode 100644 index 0000000000000000000000000000000000000000..16fbbdac90d0fa2ca5321525ec2ae98f45a0afc4 --- /dev/null +++ b/suite2cases/xorg-x11-drv-v4l.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-v4l", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l" + }, + { + "name": "oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-help" + }, + { + "name": "oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-debuginfo" + }, + { + "name": "oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-vesa.json b/suite2cases/xorg-x11-drv-vesa.json new file mode 100644 index 0000000000000000000000000000000000000000..d77c31bbe069184641df2ca833293b747d75706c --- /dev/null +++ b/suite2cases/xorg-x11-drv-vesa.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-vesa", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa" + }, + { + "name": "oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-help" + }, + { + "name": "oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-debugsource" + }, + { + "name": "oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-vmware.json b/suite2cases/xorg-x11-drv-vmware.json new file mode 100644 index 0000000000000000000000000000000000000000..5eac9934e10c76ce4c278a81ccb1b30302f7594d --- /dev/null +++ b/suite2cases/xorg-x11-drv-vmware.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-vmware", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware" + }, + { + "name": "oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-help" + }, + { + "name": "oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-debugsource" + }, + { + "name": "oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-drv-wacom.json b/suite2cases/xorg-x11-drv-wacom.json new file mode 100644 index 0000000000000000000000000000000000000000..fb3f93a4caf33362952db9213ea9261ef3e65429 --- /dev/null +++ b/suite2cases/xorg-x11-drv-wacom.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-drv-wacom", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom" + }, + { + "name": "oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-devel" + }, + { + "name": "oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-help" + }, + { + "name": "oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-debuginfo" + }, + { + "name": "oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-font-utils.json b/suite2cases/xorg-x11-font-utils.json new file mode 100644 index 0000000000000000000000000000000000000000..c99958e1c0eefd86b2432996ec0ba677c660dffb --- /dev/null +++ b/suite2cases/xorg-x11-font-utils.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-font-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils" + }, + { + "name": "oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-debugsource" + }, + { + "name": "oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-help" + }, + { + "name": "oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-fonts.json b/suite2cases/xorg-x11-fonts.json new file mode 100644 index 0000000000000000000000000000000000000000..0dd173e92cde734243d72c6261bcbfaddbb38522 --- /dev/null +++ b/suite2cases/xorg-x11-fonts.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-fonts", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-fonts_install_and_remove_xorg-x11-fonts" + }, + { + "name": "oe_test_xorg-x11-fonts_install_and_remove_xorg-x11-fonts-others" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-proto-devel.json b/suite2cases/xorg-x11-proto-devel.json new file mode 100644 index 0000000000000000000000000000000000000000..ab4e010aced1656e06a298450b4d7c5ec8a9879f --- /dev/null +++ b/suite2cases/xorg-x11-proto-devel.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-proto-devel", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-proto-devel_install_and_remove_xorg-x11-proto-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-server-utils.json b/suite2cases/xorg-x11-server-utils.json new file mode 100644 index 0000000000000000000000000000000000000000..bfe5a044f964e4b0030dd8ccd462fa9ea11f81f4 --- /dev/null +++ b/suite2cases/xorg-x11-server-utils.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-server-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils" + }, + { + "name": "oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-help" + }, + { + "name": "oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-debuginfo" + }, + { + "name": "oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-server.json b/suite2cases/xorg-x11-server.json new file mode 100644 index 0000000000000000000000000000000000000000..fe84c0a2cdf810d9334069bb6d12e455a1cbb3c0 --- /dev/null +++ b/suite2cases/xorg-x11-server.json @@ -0,0 +1,50 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-server", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xdmx" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xnest" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xephyr" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-help" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-debugsource" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-common" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xvfb" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-devel" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-source" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-debuginfo" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xorg" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xwayland" + }, + { + "name": "oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-doc" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-util-macros.json b/suite2cases/xorg-x11-util-macros.json new file mode 100644 index 0000000000000000000000000000000000000000..5b1a4ea2eba44957273ba55d1f062e6d108338d0 --- /dev/null +++ b/suite2cases/xorg-x11-util-macros.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-util-macros", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-util-macros_install_and_remove_xorg-x11-util-macros" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-utils.json b/suite2cases/xorg-x11-utils.json new file mode 100644 index 0000000000000000000000000000000000000000..59376bb4ee5de8a8f7d1575d6044be2da06d224f --- /dev/null +++ b/suite2cases/xorg-x11-utils.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils" + }, + { + "name": "oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-debugsource" + }, + { + "name": "oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-debuginfo" + }, + { + "name": "oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-xauth.json b/suite2cases/xorg-x11-xauth.json new file mode 100644 index 0000000000000000000000000000000000000000..d6f1d8e490ec27d491d6add9654ea39b1d2cd16b --- /dev/null +++ b/suite2cases/xorg-x11-xauth.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-xauth", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth" + }, + { + "name": "oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-debuginfo" + }, + { + "name": "oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-help" + }, + { + "name": "oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-xinit.json b/suite2cases/xorg-x11-xinit.json new file mode 100644 index 0000000000000000000000000000000000000000..4113df65ade82c72b461f8cd6be586808525c84d --- /dev/null +++ b/suite2cases/xorg-x11-xinit.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-xinit", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit" + }, + { + "name": "oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-help" + }, + { + "name": "oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-debugsource" + }, + { + "name": "oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-xkb-utils.json b/suite2cases/xorg-x11-xkb-utils.json new file mode 100644 index 0000000000000000000000000000000000000000..0f4b65b8f80ec937a35c6c2de820df619ee90e1b --- /dev/null +++ b/suite2cases/xorg-x11-xkb-utils.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-xkb-utils", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils" + }, + { + "name": "oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-devel" + }, + { + "name": "oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-debugsource" + }, + { + "name": "oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-help" + }, + { + "name": "oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xorg-x11-xtrans-devel.json b/suite2cases/xorg-x11-xtrans-devel.json new file mode 100644 index 0000000000000000000000000000000000000000..1c6b0fd247c0447a9f43cf81f131358fc1b3aba3 --- /dev/null +++ b/suite2cases/xorg-x11-xtrans-devel.json @@ -0,0 +1,11 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xorg-x11-xtrans-devel", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xorg-x11-xtrans-devel_install_and_remove_xorg-x11-xtrans-devel" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xsd.json b/suite2cases/xsd.json index 0f8aae4759058bf664dbfeb0e62364ebe42effa2..96accdecfa119d79d5a446fac0d83f2e11acaa9b 100644 --- a/suite2cases/xsd.json +++ b/suite2cases/xsd.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/xsd", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_xsd" } - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/xvattr.json b/suite2cases/xvattr.json new file mode 100644 index 0000000000000000000000000000000000000000..668a0cdcc2de32ec27c34c0e7c57cd2bfc55d2d5 --- /dev/null +++ b/suite2cases/xvattr.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/xvattr", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_xvattr_install_and_remove_xvattr" + }, + { + "name": "oe_test_xvattr_install_and_remove_gxvattr" + }, + { + "name": "oe_test_xvattr_install_and_remove_xvattr-help" + }, + { + "name": "oe_test_xvattr_install_and_remove_xvattr-debuginfo" + }, + { + "name": "oe_test_xvattr_install_and_remove_xvattr-debugsource" + } + ] +} \ No newline at end of file diff --git a/suite2cases/xz.json b/suite2cases/xz.json index 1046063a57325e71fa31dc6fbb38bee4066c0e1b..74133edd436596ceb26e2598536a97f498ca066d 100644 --- a/suite2cases/xz.json +++ b/suite2cases/xz.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/xz", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_xz_xz_01" @@ -48,6 +51,27 @@ }, { "name": "oe_test_xz_xzdiff_02" + }, + { + "name": "oe_test_xz_install_and_remove_xz" + }, + { + "name": "oe_test_xz_install_and_remove_xz-lzma-compat" + }, + { + "name": "oe_test_xz_install_and_remove_xz-help" + }, + { + "name": "oe_test_xz_install_and_remove_xz-devel" + }, + { + "name": "oe_test_xz_install_and_remove_xz-libs" + }, + { + "name": "oe_test_xz_install_and_remove_xz-debuginfo" + }, + { + "name": "oe_test_xz_install_and_remove_xz-debugsource" } ] } \ No newline at end of file diff --git a/suite2cases/yajl.json b/suite2cases/yajl.json index a091fc6e6c2438f39ac750337557cf5476433b74..ec5456eb27cae6bc3e30c1967ae5b34cf992bae3 100644 --- a/suite2cases/yajl.json +++ b/suite2cases/yajl.json @@ -1,11 +1,13 @@ { "path": "$OET_PATH/testcases/cli-test/yajl", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_yajl" }, - { - "name": "oe_test_yajl_02" - } + { + "name": "oe_test_yajl_02" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/yarpgen-test.json b/suite2cases/yarpgen-test.json new file mode 100644 index 0000000000000000000000000000000000000000..ddacf80f9dc60eaa1980050ac68d2c70718cf93e --- /dev/null +++ b/suite2cases/yarpgen-test.json @@ -0,0 +1,10 @@ +{ + "path": "$OET_PATH/testcases/system-test/compiler-test/yarpgen-test", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_yarpgen-test" + } + ] +} \ No newline at end of file diff --git a/suite2cases/yasm.json b/suite2cases/yasm.json index 03d13c5e7b9cdde4e65e2b564b4616624ad7f133..5c2c858fa3001249d182f15028c43990ff4e2875 100644 --- a/suite2cases/yasm.json +++ b/suite2cases/yasm.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/yasm", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_yasm_01" diff --git a/suite2cases/yelp-tools.json b/suite2cases/yelp-tools.json index a6875fa6c0c82c5871278bf339374b9e0b770925..f190386fec100bf6893cf937fd01b6c0d89b7e6c 100644 --- a/suite2cases/yelp-tools.json +++ b/suite2cases/yelp-tools.json @@ -1,15 +1,20 @@ { "path": "$OET_PATH/testcases/cli-test/yelp-tools", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_yelp-build" }, - { + { "name": "oe_test_yelp-check" }, - { + { "name": "oe_test_yelp-new" + }, + { + "name": "oe_test_yelp-tools_install_and_remove_yelp-tools" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/ypbind.json b/suite2cases/ypbind.json index 3179ef2bb4dcf8467262a3ae223849c2cecbecaf..4ba18a6ed9ea11912b32ad14c418e03bc679d193 100644 --- a/suite2cases/ypbind.json +++ b/suite2cases/ypbind.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/ypbind", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_ypbind" } ] -} +} \ No newline at end of file diff --git a/suite2cases/ypserv.json b/suite2cases/ypserv.json index 17670989d50845f81bbf2a965ab544596a3bfb9c..1fcd2cd446bb752ef9204fe6a756b659442732d9 100644 --- a/suite2cases/ypserv.json +++ b/suite2cases/ypserv.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/ypserv", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_yppasswdd" @@ -11,4 +13,4 @@ "name": "oe_test_service_ypxfrd" } ] -} +} \ No newline at end of file diff --git a/suite2cases/zd1211-firmware.json b/suite2cases/zd1211-firmware.json new file mode 100644 index 0000000000000000000000000000000000000000..22b0ef558b28df3831e3f3747fd9c33c9bf18afb --- /dev/null +++ b/suite2cases/zd1211-firmware.json @@ -0,0 +1,14 @@ +{ + "path": "$OET_PATH/testcases/cli-test/zd1211-firmware", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_zd1211-firmware_install_and_remove_zd1211-firmware" + }, + { + "name": "oe_test_zd1211-firmware_install_and_remove_zd1211-firmware-help" + } + ] +} \ No newline at end of file diff --git a/suite2cases/zenity.json b/suite2cases/zenity.json new file mode 100644 index 0000000000000000000000000000000000000000..04eaea9e1447beb2f77079ddfbc74875146055dd --- /dev/null +++ b/suite2cases/zenity.json @@ -0,0 +1,20 @@ +{ + "path": "$OET_PATH/testcases/cli-test/zenity", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_zenity_install_and_remove_zenity" + }, + { + "name": "oe_test_zenity_install_and_remove_zenity-help" + }, + { + "name": "oe_test_zenity_install_and_remove_zenity-debugsource" + }, + { + "name": "oe_test_zenity_install_and_remove_zenity-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/zerofree.json b/suite2cases/zerofree.json index e5a1b997860cc0669610b364c5393a1a70e303ec..24893258bfcc9e173a4de94a4610347f2d0e7ca0 100644 --- a/suite2cases/zerofree.json +++ b/suite2cases/zerofree.json @@ -1,8 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/zerofree", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_zerofree" } ] -} +} \ No newline at end of file diff --git a/suite2cases/zeromq.json b/suite2cases/zeromq.json index 076dd39230bf5e81b871f4c5a77ccb72dd50b2fd..9581011905f16ceac6e24ccc6408d6d0992650e1 100644 --- a/suite2cases/zeromq.json +++ b/suite2cases/zeromq.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/zeromq", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_zeromq" } - - ] -} + ] +} \ No newline at end of file diff --git a/suite2cases/zip.json b/suite2cases/zip.json index 59c31132a5c8117d977e2b7f291e0cdbd2a6102a..6bb7b7c2064ef8ef7937a80ee957bec67df0ce7e 100755 --- a/suite2cases/zip.json +++ b/suite2cases/zip.json @@ -1,5 +1,8 @@ { "path": "$OET_PATH/testcases/cli-test/zip", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_zip_001" @@ -11,10 +14,25 @@ "name": "oe_test_zip_003" }, { - "name": "oe_test_zip_004" - }, - { - "name": "oe_test_zip_005" - } + "name": "oe_test_zip_004" + }, + { + "name": "oe_test_zip_005" + }, + { + "name": "oe_test_zip_install_and_remove_zip" + }, + { + "name": "oe_test_zip_install_and_remove_zip-help" + }, + { + "name": "oe_test_zip_install_and_remove_zip-debugsource" + }, + { + "name": "oe_test_zip_install_and_remove_zip-debuginfo" + }, + { + "name": "oe_test_zip_install_and_remove_zip-doc" + } ] -} +} \ No newline at end of file diff --git a/suite2cases/zlib.json b/suite2cases/zlib.json new file mode 100644 index 0000000000000000000000000000000000000000..a544c6cd6330152bfad8071ac8d5a98432e6ce73 --- /dev/null +++ b/suite2cases/zlib.json @@ -0,0 +1,32 @@ +{ + "path": "$OET_PATH/testcases/cli-test/zlib", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_zlib_install_and_remove_zlib" + }, + { + "name": "oe_test_zlib_install_and_remove_minizip" + }, + { + "name": "oe_test_zlib_install_and_remove_zlib-debugsource" + }, + { + "name": "oe_test_zlib_install_and_remove_zlib-debuginfo" + }, + { + "name": "oe_test_zlib_install_and_remove_zlib-help" + }, + { + "name": "oe_test_zlib_install_and_remove_zlib-devel" + }, + { + "name": "oe_test_zlib_install_and_remove_minizip-devel" + }, + { + "name": "oe_test_zlib_install_and_remove_zlib-relocation" + } + ] +} \ No newline at end of file diff --git a/suite2cases/zookeeper.json b/suite2cases/zookeeper.json index fd405dbbc46496e858d5719f078e27b1df8137eb..96b03729b3f11c5444e8949ca4205a3619f4ad9b 100644 --- a/suite2cases/zookeeper.json +++ b/suite2cases/zookeeper.json @@ -1,5 +1,7 @@ { "path": "$OET_PATH/testcases/cli-test/zookeeper", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_zookeeper" @@ -8,4 +10,4 @@ "name": "oe_test_zookeeper" } ] -} +} \ No newline at end of file diff --git a/suite2cases/zstd.json b/suite2cases/zstd.json new file mode 100644 index 0000000000000000000000000000000000000000..4d4075cbbadfac936415419230133b67588a2ffa --- /dev/null +++ b/suite2cases/zstd.json @@ -0,0 +1,23 @@ +{ + "path": "$OET_PATH/testcases/cli-test/zstd", + "tags": "minimal", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_zstd_install_and_remove_zstd" + }, + { + "name": "oe_test_zstd_install_and_remove_zstd-help" + }, + { + "name": "oe_test_zstd_install_and_remove_zstd-devel" + }, + { + "name": "oe_test_zstd_install_and_remove_zstd-debugsource" + }, + { + "name": "oe_test_zstd_install_and_remove_zstd-debuginfo" + } + ] +} \ No newline at end of file diff --git a/suite2cases/zswap.json b/suite2cases/zswap.json index ea2d706253769329f3a425252f03756860a02485..8c7604a1eade3804e43e53ba6d6753645c55c343 100644 --- a/suite2cases/zswap.json +++ b/suite2cases/zswap.json @@ -1,8 +1,10 @@ { - "path": "$OET_PATH/testcases/feature-test/zswap/", - "cases": [ - { - "name": "oe_test_zswap01" - } - ] -} + "path": "$OET_PATH/testcases/feature-test/zswap/", + "cpu": 2, + "memory": 4, + "cases": [ + { + "name": "oe_test_zswap01" + } + ] +} \ No newline at end of file diff --git a/suite2cases/zvbi.json b/suite2cases/zvbi.json index cc9f171faf58867d93115267f512f7953a659391..a7406e6c1723ac14ef6f3430a00d30b4dfc81aa5 100644 --- a/suite2cases/zvbi.json +++ b/suite2cases/zvbi.json @@ -1,9 +1,10 @@ { "path": "$OET_PATH/testcases/cli-test/zvbi", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_service_zvbid" } - ] -} +} \ No newline at end of file diff --git a/suite2cases/zziplib.json b/suite2cases/zziplib.json index 659c557a0956c960a5c9b47fab8a78af9cb421ce..7b4c72614ac66d806db4f56e5c62df6de4d7665d 100644 --- a/suite2cases/zziplib.json +++ b/suite2cases/zziplib.json @@ -1,10 +1,26 @@ { "path": "$OET_PATH/testcases/cli-test/zziplib", + "tags": "minimal", + "cpu": 2, + "memory": 4, "cases": [ { "name": "oe_test_zziplib" + }, + { + "name": "oe_test_zziplib_install_and_remove_zziplib" + }, + { + "name": "oe_test_zziplib_install_and_remove_zziplib-help" + }, + { + "name": "oe_test_zziplib_install_and_remove_zziplib-debugsource" + }, + { + "name": "oe_test_zziplib_install_and_remove_zziplib-debuginfo" + }, + { + "name": "oe_test_zziplib_install_and_remove_zziplib-devel" } - - ] -} - + ] +} \ No newline at end of file diff --git a/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-debuginfo.sh b/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..935620b044f4b969e8faaf30be20a722a0a3109b --- /dev/null +++ b/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src CUnit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available CUnit-debuginfo | grep -v \.src | grep CUnit-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm CUnit-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y CUnit-debuginfo + CHECK_RESULT $? 0 0 "install CUnit-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y CUnit-debuginfo + CHECK_RESULT $? 0 0 "remove CUnit-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-debugsource.sh b/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..79313bfda66fc1584079054f3d6fe97053582a74 --- /dev/null +++ b/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src CUnit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available CUnit-debugsource | grep -v \.src | grep CUnit-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm CUnit-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y CUnit-debugsource + CHECK_RESULT $? 0 0 "install CUnit-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y CUnit-debugsource + CHECK_RESULT $? 0 0 "remove CUnit-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-devel.sh b/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6adc3a2e9b8140f0b0cdfa17ece56ce555c101a1 --- /dev/null +++ b/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src CUnit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available CUnit-devel | grep -v \.src | grep CUnit-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm CUnit-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y CUnit-devel + CHECK_RESULT $? 0 0 "install CUnit-devel failed" + SLEEP_WAIT 1 + dnf remove -y CUnit-devel + CHECK_RESULT $? 0 0 "remove CUnit-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-help.sh b/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef8df25e5dbcd60b8e6659d9c51b7a65358e6884 --- /dev/null +++ b/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src CUnit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available CUnit-help | grep -v \.src | grep CUnit-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm CUnit-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y CUnit-help + CHECK_RESULT $? 0 0 "install CUnit-help failed" + SLEEP_WAIT 1 + dnf remove -y CUnit-help + CHECK_RESULT $? 0 0 "remove CUnit-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit.sh b/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit.sh new file mode 100644 index 0000000000000000000000000000000000000000..48b236760845827345802628c2476ec457fc2a0a --- /dev/null +++ b/testcases/cli-test/CUnit/oe_test_CUnit_install_and_remove_CUnit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src CUnit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available CUnit | grep -v \.src | grep CUnit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm CUnit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y CUnit + CHECK_RESULT $? 0 0 "install CUnit failed" + SLEEP_WAIT 1 + dnf remove -y CUnit + CHECK_RESULT $? 0 0 "remove CUnit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_Cython-debuginfo.sh b/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_Cython-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..41771cdf7d905f01f885dd469712b7aebe02e605 --- /dev/null +++ b/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_Cython-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Cython +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Cython-debuginfo | grep -v \.src | grep Cython-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Cython-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Cython-debuginfo + CHECK_RESULT $? 0 0 "install Cython-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y Cython-debuginfo + CHECK_RESULT $? 0 0 "remove Cython-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_Cython-debugsource.sh b/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_Cython-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..47d9cfeadf136d24fe28692c454e4adc1d9f083c --- /dev/null +++ b/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_Cython-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Cython +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Cython-debugsource | grep -v \.src | grep Cython-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Cython-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Cython-debugsource + CHECK_RESULT $? 0 0 "install Cython-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y Cython-debugsource + CHECK_RESULT $? 0 0 "remove Cython-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_Cython.sh b/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_Cython.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ead38575a56c700723b9a3c8d0d8b74ba2e1b1e --- /dev/null +++ b/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_Cython.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Cython +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Cython | grep -v \.src | grep Cython + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Cython" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Cython + CHECK_RESULT $? 0 0 "install Cython failed" + SLEEP_WAIT 1 + dnf remove -y Cython + CHECK_RESULT $? 0 0 "remove Cython failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_python2-Cython.sh b/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_python2-Cython.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d4a71ce8a04718a730004cb0f750eb6017659db --- /dev/null +++ b/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_python2-Cython.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Cython +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-Cython | grep -v \.src | grep python2-Cython + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-Cython" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-Cython + CHECK_RESULT $? 0 0 "install python2-Cython failed" + SLEEP_WAIT 1 + dnf remove -y python2-Cython + CHECK_RESULT $? 0 0 "remove python2-Cython failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_python3-Cython.sh b/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_python3-Cython.sh new file mode 100644 index 0000000000000000000000000000000000000000..06f5ffc54e113e0edef6eb6d1e9203fa5b709c63 --- /dev/null +++ b/testcases/cli-test/Cython/oe_test_Cython_install_and_remove_python3-Cython.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Cython +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-Cython | grep -v \.src | grep python3-Cython + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-Cython" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-Cython + CHECK_RESULT $? 0 0 "install python3-Cython failed" + SLEEP_WAIT 1 + dnf remove -y python3-Cython + CHECK_RESULT $? 0 0 "remove python3-Cython failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2-debuginfo.sh b/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc5065d8487c4c0f11a982ab2eb69b1683c3b549 --- /dev/null +++ b/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src GConf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available GConf2-debuginfo | grep -v \.src | grep GConf2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm GConf2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y GConf2-debuginfo + CHECK_RESULT $? 0 0 "install GConf2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y GConf2-debuginfo + CHECK_RESULT $? 0 0 "remove GConf2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2-debugsource.sh b/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..616bfc12313d6d5a4c515ec5fb614325f9d60dfb --- /dev/null +++ b/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src GConf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available GConf2-debugsource | grep -v \.src | grep GConf2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm GConf2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y GConf2-debugsource + CHECK_RESULT $? 0 0 "install GConf2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y GConf2-debugsource + CHECK_RESULT $? 0 0 "remove GConf2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2-devel.sh b/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ad539a78271d72d7ee6811bc73a7b3a8fd8f0af --- /dev/null +++ b/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src GConf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available GConf2-devel | grep -v \.src | grep GConf2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm GConf2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y GConf2-devel + CHECK_RESULT $? 0 0 "install GConf2-devel failed" + SLEEP_WAIT 1 + dnf remove -y GConf2-devel + CHECK_RESULT $? 0 0 "remove GConf2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2.sh b/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2.sh new file mode 100644 index 0000000000000000000000000000000000000000..885f2e361b987d113f472ec5af8fa3030854f692 --- /dev/null +++ b/testcases/cli-test/GConf2/oe_test_GConf2_install_and_remove_GConf2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src GConf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available GConf2 | grep -v \.src | grep GConf2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm GConf2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y GConf2 + CHECK_RESULT $? 0 0 "install GConf2 failed" + SLEEP_WAIT 1 + dnf remove -y GConf2 + CHECK_RESULT $? 0 0 "remove GConf2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-c++-devel.sh b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-c++-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..35cff59727d54ef12de2cac368350c18b529e62c --- /dev/null +++ b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-c++-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ImageMagick +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ImageMagick-c++-devel | grep -v \.src | grep ImageMagick-c++-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ImageMagick-c++-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ImageMagick-c++-devel + CHECK_RESULT $? 0 0 "install ImageMagick-c++-devel failed" + SLEEP_WAIT 1 + dnf remove -y ImageMagick-c++-devel + CHECK_RESULT $? 0 0 "remove ImageMagick-c++-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-c++.sh b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-c++.sh new file mode 100644 index 0000000000000000000000000000000000000000..d299a86422143320e93b8392a26906a54336f44b --- /dev/null +++ b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-c++.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ImageMagick +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ImageMagick-c++ | grep -v \.src | grep ImageMagick-c++ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ImageMagick-c++" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ImageMagick-c++ + CHECK_RESULT $? 0 0 "install ImageMagick-c++ failed" + SLEEP_WAIT 1 + dnf remove -y ImageMagick-c++ + CHECK_RESULT $? 0 0 "remove ImageMagick-c++ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-debuginfo.sh b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6da13fec9f2b0c6071bba6c7b75a8ccba5421197 --- /dev/null +++ b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ImageMagick +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ImageMagick-debuginfo | grep -v \.src | grep ImageMagick-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ImageMagick-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ImageMagick-debuginfo + CHECK_RESULT $? 0 0 "install ImageMagick-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ImageMagick-debuginfo + CHECK_RESULT $? 0 0 "remove ImageMagick-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-debugsource.sh b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d27bd90f75040492489ffeb9dfbe89f6d69ae8f --- /dev/null +++ b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ImageMagick +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ImageMagick-debugsource | grep -v \.src | grep ImageMagick-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ImageMagick-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ImageMagick-debugsource + CHECK_RESULT $? 0 0 "install ImageMagick-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ImageMagick-debugsource + CHECK_RESULT $? 0 0 "remove ImageMagick-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-devel.sh b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..02998a7e23ceec300a8b55947238ea75b28a60c0 --- /dev/null +++ b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ImageMagick +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ImageMagick-devel | grep -v \.src | grep ImageMagick-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ImageMagick-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ImageMagick-devel + CHECK_RESULT $? 0 0 "install ImageMagick-devel failed" + SLEEP_WAIT 1 + dnf remove -y ImageMagick-devel + CHECK_RESULT $? 0 0 "remove ImageMagick-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-help.sh b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf5cf32be88286288a8a3ba05a987ebfd74dc26f --- /dev/null +++ b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ImageMagick +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ImageMagick-help | grep -v \.src | grep ImageMagick-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ImageMagick-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ImageMagick-help + CHECK_RESULT $? 0 0 "install ImageMagick-help failed" + SLEEP_WAIT 1 + dnf remove -y ImageMagick-help + CHECK_RESULT $? 0 0 "remove ImageMagick-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-perl.sh b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-perl.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e3bc8c910fbb172ca2ec9944264de8cbf6699a1 --- /dev/null +++ b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick-perl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ImageMagick +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ImageMagick-perl | grep -v \.src | grep ImageMagick-perl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ImageMagick-perl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ImageMagick-perl + CHECK_RESULT $? 0 0 "install ImageMagick-perl failed" + SLEEP_WAIT 1 + dnf remove -y ImageMagick-perl + CHECK_RESULT $? 0 0 "remove ImageMagick-perl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick.sh b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick.sh new file mode 100644 index 0000000000000000000000000000000000000000..511acc6490b7bf7173aaa80b94b3d787b4c15c6b --- /dev/null +++ b/testcases/cli-test/ImageMagick/oe_test_ImageMagick_install_and_remove_ImageMagick.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ImageMagick +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ImageMagick | grep -v \.src | grep ImageMagick + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ImageMagick" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ImageMagick + CHECK_RESULT $? 0 0 "install ImageMagick failed" + SLEEP_WAIT 1 + dnf remove -y ImageMagick + CHECK_RESULT $? 0 0 "remove ImageMagick failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath-debuginfo.sh b/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e2ff65eaba9c1a7a70236b6d51203a9b51f8d09 --- /dev/null +++ b/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Imath +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Imath-debuginfo | grep -v \.src | grep Imath-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Imath-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Imath-debuginfo + CHECK_RESULT $? 0 0 "install Imath-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y Imath-debuginfo + CHECK_RESULT $? 0 0 "remove Imath-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath-debugsource.sh b/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..045c4ce7992ba9588921289706fc23a2f631597b --- /dev/null +++ b/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Imath +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Imath-debugsource | grep -v \.src | grep Imath-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Imath-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Imath-debugsource + CHECK_RESULT $? 0 0 "install Imath-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y Imath-debugsource + CHECK_RESULT $? 0 0 "remove Imath-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath-devel.sh b/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9abd67be76959ea9a5781b78cea7a95264f8d379 --- /dev/null +++ b/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Imath +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Imath-devel | grep -v \.src | grep Imath-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Imath-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Imath-devel + CHECK_RESULT $? 0 0 "install Imath-devel failed" + SLEEP_WAIT 1 + dnf remove -y Imath-devel + CHECK_RESULT $? 0 0 "remove Imath-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath.sh b/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d6fe95f7d47d6dda646023700cc67168685b5b4 --- /dev/null +++ b/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_Imath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Imath +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Imath | grep -v \.src | grep Imath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Imath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Imath + CHECK_RESULT $? 0 0 "install Imath failed" + SLEEP_WAIT 1 + dnf remove -y Imath + CHECK_RESULT $? 0 0 "remove Imath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_python3-Imath.sh b/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_python3-Imath.sh new file mode 100644 index 0000000000000000000000000000000000000000..475b2885b8f9ded8eccd96b155804ebd0f7f0e27 --- /dev/null +++ b/testcases/cli-test/Imath/oe_test_Imath_install_and_remove_python3-Imath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Imath +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-Imath | grep -v \.src | grep python3-Imath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-Imath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-Imath + CHECK_RESULT $? 0 0 "install python3-Imath failed" + SLEEP_WAIT 1 + dnf remove -y python3-Imath + CHECK_RESULT $? 0 0 "remove python3-Imath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-debuginfo.sh b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f4dd3cf49f0084720124d6d86049f49949c4071 --- /dev/null +++ b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ModemManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ModemManager-debuginfo | grep -v \.src | grep ModemManager-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ModemManager-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ModemManager-debuginfo + CHECK_RESULT $? 0 0 "install ModemManager-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ModemManager-debuginfo + CHECK_RESULT $? 0 0 "remove ModemManager-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-debugsource.sh b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6c3612d2d04ca5c2e5a8ae3675c3e4e067fe32e --- /dev/null +++ b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ModemManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ModemManager-debugsource | grep -v \.src | grep ModemManager-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ModemManager-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ModemManager-debugsource + CHECK_RESULT $? 0 0 "install ModemManager-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ModemManager-debugsource + CHECK_RESULT $? 0 0 "remove ModemManager-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-devel.sh b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3460900b7e72fd371788bf24f53ad27ef04c0f13 --- /dev/null +++ b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ModemManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ModemManager-devel | grep -v \.src | grep ModemManager-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ModemManager-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ModemManager-devel + CHECK_RESULT $? 0 0 "install ModemManager-devel failed" + SLEEP_WAIT 1 + dnf remove -y ModemManager-devel + CHECK_RESULT $? 0 0 "remove ModemManager-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-glib-devel.sh b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-glib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..55d4dde768614cb534ef2735ba1325fb2ea14c84 --- /dev/null +++ b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-glib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ModemManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ModemManager-glib-devel | grep -v \.src | grep ModemManager-glib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ModemManager-glib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ModemManager-glib-devel + CHECK_RESULT $? 0 0 "install ModemManager-glib-devel failed" + SLEEP_WAIT 1 + dnf remove -y ModemManager-glib-devel + CHECK_RESULT $? 0 0 "remove ModemManager-glib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-glib.sh b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-glib.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfbc121732eadbb928c9e30e0eeaf5393bd7d3a5 --- /dev/null +++ b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-glib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ModemManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ModemManager-glib | grep -v \.src | grep ModemManager-glib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ModemManager-glib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ModemManager-glib + CHECK_RESULT $? 0 0 "install ModemManager-glib failed" + SLEEP_WAIT 1 + dnf remove -y ModemManager-glib + CHECK_RESULT $? 0 0 "remove ModemManager-glib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-help.sh b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6b1e1fe9e622ef86e257d8d4e89cdb4bbab6ff2 --- /dev/null +++ b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ModemManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ModemManager-help | grep -v \.src | grep ModemManager-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ModemManager-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ModemManager-help + CHECK_RESULT $? 0 0 "install ModemManager-help failed" + SLEEP_WAIT 1 + dnf remove -y ModemManager-help + CHECK_RESULT $? 0 0 "remove ModemManager-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-vala.sh b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-vala.sh new file mode 100644 index 0000000000000000000000000000000000000000..67e06e49431ae4304988e074fce6b197a4a8df88 --- /dev/null +++ b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager-vala.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ModemManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ModemManager-vala | grep -v \.src | grep ModemManager-vala + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ModemManager-vala" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ModemManager-vala + CHECK_RESULT $? 0 0 "install ModemManager-vala failed" + SLEEP_WAIT 1 + dnf remove -y ModemManager-vala + CHECK_RESULT $? 0 0 "remove ModemManager-vala failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager.sh b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2fe096f894bdcd11d06338419451d5c185c177a --- /dev/null +++ b/testcases/cli-test/ModemManager/oe_test_ModemManager_install_and_remove_ModemManager.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ModemManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ModemManager | grep -v \.src | grep ModemManager + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ModemManager" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ModemManager + CHECK_RESULT $? 0 0 "install ModemManager failed" + SLEEP_WAIT 1 + dnf remove -y ModemManager + CHECK_RESULT $? 0 0 "remove ModemManager failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-bluetooth.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-bluetooth.sh new file mode 100644 index 0000000000000000000000000000000000000000..06fb9012a8751c9330118fe15d9b5215cda595be --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-bluetooth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-bluetooth | grep -v \.src | grep NetworkManager-bluetooth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-bluetooth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-bluetooth + CHECK_RESULT $? 0 0 "install NetworkManager-bluetooth failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-bluetooth + CHECK_RESULT $? 0 0 "remove NetworkManager-bluetooth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-cloud-setup.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-cloud-setup.sh new file mode 100644 index 0000000000000000000000000000000000000000..c92ab2fa5676c9bef2c435a99d409f91908b015f --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-cloud-setup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-cloud-setup | grep -v \.src | grep NetworkManager-cloud-setup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-cloud-setup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-cloud-setup + CHECK_RESULT $? 0 0 "install NetworkManager-cloud-setup failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-cloud-setup + CHECK_RESULT $? 0 0 "remove NetworkManager-cloud-setup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-config-server.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-config-server.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1c916a9dc0370c0669f064c530df29f7d303f26 --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-config-server.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-config-server | grep -v \.src | grep NetworkManager-config-server + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-config-server" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-config-server + CHECK_RESULT $? 0 0 "install NetworkManager-config-server failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-config-server + CHECK_RESULT $? 0 0 "remove NetworkManager-config-server failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-debuginfo.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..129478d971b94baf35fba1c3605d2862970ac290 --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-debuginfo | grep -v \.src | grep NetworkManager-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-debuginfo + CHECK_RESULT $? 0 0 "install NetworkManager-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-debuginfo + CHECK_RESULT $? 0 0 "remove NetworkManager-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-debugsource.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..272e27300c710349d9aafa47ef7ffbbef84b4abe --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-debugsource | grep -v \.src | grep NetworkManager-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-debugsource + CHECK_RESULT $? 0 0 "install NetworkManager-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-debugsource + CHECK_RESULT $? 0 0 "remove NetworkManager-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-help.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7089982e63703b10b8f7bcc18ac9b389f5bd48fa --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-help | grep -v \.src | grep NetworkManager-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-help + CHECK_RESULT $? 0 0 "install NetworkManager-help failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-help + CHECK_RESULT $? 0 0 "remove NetworkManager-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-libnm-devel.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-libnm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb67756420da37aa462a7bf07dbc324584af9ffc --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-libnm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-libnm-devel | grep -v \.src | grep NetworkManager-libnm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-libnm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-libnm-devel + CHECK_RESULT $? 0 0 "install NetworkManager-libnm-devel failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-libnm-devel + CHECK_RESULT $? 0 0 "remove NetworkManager-libnm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-libnm.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-libnm.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6b6a41887815d43dd59d05735578c58029fe05d --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-libnm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-libnm | grep -v \.src | grep NetworkManager-libnm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-libnm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-libnm + CHECK_RESULT $? 0 0 "install NetworkManager-libnm failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-libnm + CHECK_RESULT $? 0 0 "remove NetworkManager-libnm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-ovs.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-ovs.sh new file mode 100644 index 0000000000000000000000000000000000000000..4cebe736d8a0d1ee151da4b1fdbef78e79ecad91 --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-ovs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-ovs | grep -v \.src | grep NetworkManager-ovs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-ovs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-ovs + CHECK_RESULT $? 0 0 "install NetworkManager-ovs failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-ovs + CHECK_RESULT $? 0 0 "remove NetworkManager-ovs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-ppp.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-ppp.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8695bd5ae58ca4aec7388bde8deaeb56a3e16e8 --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-ppp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-ppp | grep -v \.src | grep NetworkManager-ppp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-ppp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-ppp + CHECK_RESULT $? 0 0 "install NetworkManager-ppp failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-ppp + CHECK_RESULT $? 0 0 "remove NetworkManager-ppp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-team.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-team.sh new file mode 100644 index 0000000000000000000000000000000000000000..13178639bbe136b053f9417078dcbec8f30835ec --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-team.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-team | grep -v \.src | grep NetworkManager-team + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-team" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-team + CHECK_RESULT $? 0 0 "install NetworkManager-team failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-team + CHECK_RESULT $? 0 0 "remove NetworkManager-team failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-wifi.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-wifi.sh new file mode 100644 index 0000000000000000000000000000000000000000..51d24e88c72bd79e8ecab0b97f40f330ea9d328f --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-wifi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-wifi | grep -v \.src | grep NetworkManager-wifi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-wifi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-wifi + CHECK_RESULT $? 0 0 "install NetworkManager-wifi failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-wifi + CHECK_RESULT $? 0 0 "remove NetworkManager-wifi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-wwan.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-wwan.sh new file mode 100644 index 0000000000000000000000000000000000000000..0caf90bcf5dc0825810636c88c834668da369bd7 --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager-wwan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager-wwan | grep -v \.src | grep NetworkManager-wwan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager-wwan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager-wwan + CHECK_RESULT $? 0 0 "install NetworkManager-wwan failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager-wwan + CHECK_RESULT $? 0 0 "remove NetworkManager-wwan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager.sh b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b8ae2698fa8f16c38039702a722c13d56129ffb --- /dev/null +++ b/testcases/cli-test/NetworkManager/oe_test_NetworkManager_install_and_remove_NetworkManager.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src NetworkManager +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available NetworkManager | grep -v \.src | grep NetworkManager + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm NetworkManager" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y NetworkManager + CHECK_RESULT $? 0 0 "install NetworkManager failed" + SLEEP_WAIT 1 + dnf remove -y NetworkManager + CHECK_RESULT $? 0 0 "remove NetworkManager failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-debuginfo.sh b/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a10a5cefb2ea451f6635522e25cdb9f610cbd78 --- /dev/null +++ b/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src OpenEXR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available OpenEXR-debuginfo | grep -v \.src | grep OpenEXR-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm OpenEXR-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y OpenEXR-debuginfo + CHECK_RESULT $? 0 0 "install OpenEXR-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y OpenEXR-debuginfo + CHECK_RESULT $? 0 0 "remove OpenEXR-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-debugsource.sh b/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e949ce82fe0a0a445601e07f2268966faa8b115 --- /dev/null +++ b/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src OpenEXR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available OpenEXR-debugsource | grep -v \.src | grep OpenEXR-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm OpenEXR-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y OpenEXR-debugsource + CHECK_RESULT $? 0 0 "install OpenEXR-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y OpenEXR-debugsource + CHECK_RESULT $? 0 0 "remove OpenEXR-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-devel.sh b/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2dc93da3e53e180356c62ab912c904a8a4824366 --- /dev/null +++ b/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src OpenEXR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available OpenEXR-devel | grep -v \.src | grep OpenEXR-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm OpenEXR-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y OpenEXR-devel + CHECK_RESULT $? 0 0 "install OpenEXR-devel failed" + SLEEP_WAIT 1 + dnf remove -y OpenEXR-devel + CHECK_RESULT $? 0 0 "remove OpenEXR-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-libs.sh b/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bc81062dd13a831180cb5c3087b831dcd2eceec --- /dev/null +++ b/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src OpenEXR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available OpenEXR-libs | grep -v \.src | grep OpenEXR-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm OpenEXR-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y OpenEXR-libs + CHECK_RESULT $? 0 0 "install OpenEXR-libs failed" + SLEEP_WAIT 1 + dnf remove -y OpenEXR-libs + CHECK_RESULT $? 0 0 "remove OpenEXR-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR.sh b/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR.sh new file mode 100644 index 0000000000000000000000000000000000000000..621ea928ecbcdcdca610e0655055ab48bddf7571 --- /dev/null +++ b/testcases/cli-test/OpenEXR/oe_test_OpenEXR_install_and_remove_OpenEXR.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src OpenEXR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available OpenEXR | grep -v \.src | grep OpenEXR + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm OpenEXR" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y OpenEXR + CHECK_RESULT $? 0 0 "install OpenEXR failed" + SLEEP_WAIT 1 + dnf remove -y OpenEXR + CHECK_RESULT $? 0 0 "remove OpenEXR failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-debuginfo.sh b/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9e982d1d407e0a7b9215665374c53ddc8ba1073 --- /dev/null +++ b/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src SDL +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available SDL-debuginfo | grep -v \.src | grep SDL-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm SDL-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y SDL-debuginfo + CHECK_RESULT $? 0 0 "install SDL-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y SDL-debuginfo + CHECK_RESULT $? 0 0 "remove SDL-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-debugsource.sh b/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a7003e05c894d25aead13291dc73cbb6cbe5b6e --- /dev/null +++ b/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src SDL +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available SDL-debugsource | grep -v \.src | grep SDL-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm SDL-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y SDL-debugsource + CHECK_RESULT $? 0 0 "install SDL-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y SDL-debugsource + CHECK_RESULT $? 0 0 "remove SDL-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-devel.sh b/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e9cf149312fa5bedb156e7c3b6140a117b4f1af --- /dev/null +++ b/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src SDL +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available SDL-devel | grep -v \.src | grep SDL-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm SDL-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y SDL-devel + CHECK_RESULT $? 0 0 "install SDL-devel failed" + SLEEP_WAIT 1 + dnf remove -y SDL-devel + CHECK_RESULT $? 0 0 "remove SDL-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-help.sh b/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b23bdc80b1bdb732341723427d403f4663cd5d42 --- /dev/null +++ b/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src SDL +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available SDL-help | grep -v \.src | grep SDL-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm SDL-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y SDL-help + CHECK_RESULT $? 0 0 "install SDL-help failed" + SLEEP_WAIT 1 + dnf remove -y SDL-help + CHECK_RESULT $? 0 0 "remove SDL-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL.sh b/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL.sh new file mode 100644 index 0000000000000000000000000000000000000000..72db10996dc033ba753548efe5ff006b856caeac --- /dev/null +++ b/testcases/cli-test/SDL/oe_test_SDL_install_and_remove_SDL.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src SDL +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available SDL | grep -v \.src | grep SDL + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm SDL" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y SDL + CHECK_RESULT $? 0 0 "install SDL failed" + SLEEP_WAIT 1 + dnf remove -y SDL + CHECK_RESULT $? 0 0 "remove SDL failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-debuginfo.sh b/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b976991ed8bafc840f61417ac60ecb82fa09904 --- /dev/null +++ b/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Xaw3d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Xaw3d-debuginfo | grep -v \.src | grep Xaw3d-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Xaw3d-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Xaw3d-debuginfo + CHECK_RESULT $? 0 0 "install Xaw3d-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y Xaw3d-debuginfo + CHECK_RESULT $? 0 0 "remove Xaw3d-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-debugsource.sh b/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c6c4e5a7608a6d90857bd72f157811ff741682e --- /dev/null +++ b/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Xaw3d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Xaw3d-debugsource | grep -v \.src | grep Xaw3d-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Xaw3d-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Xaw3d-debugsource + CHECK_RESULT $? 0 0 "install Xaw3d-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y Xaw3d-debugsource + CHECK_RESULT $? 0 0 "remove Xaw3d-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-devel.sh b/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..487f257a0f819db39e557be7e46d04b8136f2706 --- /dev/null +++ b/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Xaw3d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Xaw3d-devel | grep -v \.src | grep Xaw3d-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Xaw3d-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Xaw3d-devel + CHECK_RESULT $? 0 0 "install Xaw3d-devel failed" + SLEEP_WAIT 1 + dnf remove -y Xaw3d-devel + CHECK_RESULT $? 0 0 "remove Xaw3d-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-help.sh b/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5595edbbdae4a55d090ee6b8a80668ac0a4afe00 --- /dev/null +++ b/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Xaw3d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Xaw3d-help | grep -v \.src | grep Xaw3d-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Xaw3d-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Xaw3d-help + CHECK_RESULT $? 0 0 "install Xaw3d-help failed" + SLEEP_WAIT 1 + dnf remove -y Xaw3d-help + CHECK_RESULT $? 0 0 "remove Xaw3d-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d.sh b/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d.sh new file mode 100644 index 0000000000000000000000000000000000000000..f54c2a254dc76b187352ab3d523c3fe6f80b192e --- /dev/null +++ b/testcases/cli-test/Xaw3d/oe_test_Xaw3d_install_and_remove_Xaw3d.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src Xaw3d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available Xaw3d | grep -v \.src | grep Xaw3d + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm Xaw3d" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y Xaw3d + CHECK_RESULT $? 0 0 "install Xaw3d failed" + SLEEP_WAIT 1 + dnf remove -y Xaw3d + CHECK_RESULT $? 0 0 "remove Xaw3d failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/abattis-cantarell-fonts/oe_test_abattis-cantarell-fonts_install_and_remove_abattis-cantarell-fonts-help.sh b/testcases/cli-test/abattis-cantarell-fonts/oe_test_abattis-cantarell-fonts_install_and_remove_abattis-cantarell-fonts-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec24518c70ed48a54960baca76493e77aba750a7 --- /dev/null +++ b/testcases/cli-test/abattis-cantarell-fonts/oe_test_abattis-cantarell-fonts_install_and_remove_abattis-cantarell-fonts-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src abattis-cantarell-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available abattis-cantarell-fonts-help | grep -v \.src | grep abattis-cantarell-fonts-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm abattis-cantarell-fonts-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y abattis-cantarell-fonts-help + CHECK_RESULT $? 0 0 "install abattis-cantarell-fonts-help failed" + SLEEP_WAIT 1 + dnf remove -y abattis-cantarell-fonts-help + CHECK_RESULT $? 0 0 "remove abattis-cantarell-fonts-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/abattis-cantarell-fonts/oe_test_abattis-cantarell-fonts_install_and_remove_abattis-cantarell-fonts.sh b/testcases/cli-test/abattis-cantarell-fonts/oe_test_abattis-cantarell-fonts_install_and_remove_abattis-cantarell-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cc82354d8c2334db810f939caef11b2638a47d2 --- /dev/null +++ b/testcases/cli-test/abattis-cantarell-fonts/oe_test_abattis-cantarell-fonts_install_and_remove_abattis-cantarell-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src abattis-cantarell-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available abattis-cantarell-fonts | grep -v \.src | grep abattis-cantarell-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm abattis-cantarell-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y abattis-cantarell-fonts + CHECK_RESULT $? 0 0 "install abattis-cantarell-fonts failed" + SLEEP_WAIT 1 + dnf remove -y abattis-cantarell-fonts + CHECK_RESULT $? 0 0 "remove abattis-cantarell-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp-debuginfo.sh b/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bad15b0d52ace71de0c5a9d252750160d1a0bfe9 --- /dev/null +++ b/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src abseil-cpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available abseil-cpp-debuginfo | grep -v \.src | grep abseil-cpp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm abseil-cpp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y abseil-cpp-debuginfo + CHECK_RESULT $? 0 0 "install abseil-cpp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y abseil-cpp-debuginfo + CHECK_RESULT $? 0 0 "remove abseil-cpp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp-debugsource.sh b/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9541548388fc48455806bfcb059d26a5e5c586d --- /dev/null +++ b/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src abseil-cpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available abseil-cpp-debugsource | grep -v \.src | grep abseil-cpp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm abseil-cpp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y abseil-cpp-debugsource + CHECK_RESULT $? 0 0 "install abseil-cpp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y abseil-cpp-debugsource + CHECK_RESULT $? 0 0 "remove abseil-cpp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp-devel.sh b/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..04a3250164391fa38ef94714901d1bfa6f4c2781 --- /dev/null +++ b/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src abseil-cpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available abseil-cpp-devel | grep -v \.src | grep abseil-cpp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm abseil-cpp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y abseil-cpp-devel + CHECK_RESULT $? 0 0 "install abseil-cpp-devel failed" + SLEEP_WAIT 1 + dnf remove -y abseil-cpp-devel + CHECK_RESULT $? 0 0 "remove abseil-cpp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp.sh b/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8ffed4c9ea467bd9a3b5fbffc26998115234246 --- /dev/null +++ b/testcases/cli-test/abseil-cpp/oe_test_abseil-cpp_install_and_remove_abseil-cpp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src abseil-cpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available abseil-cpp | grep -v \.src | grep abseil-cpp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm abseil-cpp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y abseil-cpp + CHECK_RESULT $? 0 0 "install abseil-cpp failed" + SLEEP_WAIT 1 + dnf remove -y abseil-cpp + CHECK_RESULT $? 0 0 "remove abseil-cpp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-debuginfo.sh b/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..926ec59f05b60927e3b86d89d0b79a5781618864 --- /dev/null +++ b/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src acl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available acl-debuginfo | grep -v \.src | grep acl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm acl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y acl-debuginfo + CHECK_RESULT $? 0 0 "install acl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y acl-debuginfo + CHECK_RESULT $? 0 0 "remove acl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-debugsource.sh b/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..aec873899788e53009c33cc77a113433170b760f --- /dev/null +++ b/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src acl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available acl-debugsource | grep -v \.src | grep acl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm acl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y acl-debugsource + CHECK_RESULT $? 0 0 "install acl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y acl-debugsource + CHECK_RESULT $? 0 0 "remove acl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-devel.sh b/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5498534bc2640cf4c614abb6c2fa580bc63e336 --- /dev/null +++ b/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src acl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available acl-devel | grep -v \.src | grep acl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm acl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y acl-devel + CHECK_RESULT $? 0 0 "install acl-devel failed" + SLEEP_WAIT 1 + dnf remove -y acl-devel + CHECK_RESULT $? 0 0 "remove acl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-help.sh b/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..331d4e7f52b0e315a1b70c102fd500c3bacd5389 --- /dev/null +++ b/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src acl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available acl-help | grep -v \.src | grep acl-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm acl-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y acl-help + CHECK_RESULT $? 0 0 "install acl-help failed" + SLEEP_WAIT 1 + dnf remove -y acl-help + CHECK_RESULT $? 0 0 "remove acl-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl.sh b/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl.sh new file mode 100644 index 0000000000000000000000000000000000000000..4562ace46a7d5daa9b2d0fd8c880f62879c5fc50 --- /dev/null +++ b/testcases/cli-test/acl/oe_test_acl_install_and_remove_acl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src acl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available acl | grep -v \.src | grep acl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm acl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y acl + CHECK_RESULT $? 0 0 "install acl failed" + SLEEP_WAIT 1 + dnf remove -y acl + CHECK_RESULT $? 0 0 "remove acl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/acl/oe_test_acl_install_and_remove_libacl-devel.sh b/testcases/cli-test/acl/oe_test_acl_install_and_remove_libacl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b67bb49e845d6a6f1afb582d30a2780cde5fc03e --- /dev/null +++ b/testcases/cli-test/acl/oe_test_acl_install_and_remove_libacl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src acl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libacl-devel | grep -v \.src | grep libacl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libacl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libacl-devel + CHECK_RESULT $? 0 0 "install libacl-devel failed" + SLEEP_WAIT 1 + dnf remove -y libacl-devel + CHECK_RESULT $? 0 0 "remove libacl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/acl/oe_test_acl_install_and_remove_libacl.sh b/testcases/cli-test/acl/oe_test_acl_install_and_remove_libacl.sh new file mode 100644 index 0000000000000000000000000000000000000000..c508c6cd2fb6a6d00fdbe0e708bc2d3814fa42c7 --- /dev/null +++ b/testcases/cli-test/acl/oe_test_acl_install_and_remove_libacl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src acl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libacl | grep -v \.src | grep libacl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libacl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libacl + CHECK_RESULT $? 0 0 "install libacl failed" + SLEEP_WAIT 1 + dnf remove -y libacl + CHECK_RESULT $? 0 0 "remove libacl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-devel.sh b/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8e3e6190fcb132c91550e2fa9f90f2804d607a7 --- /dev/null +++ b/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src adobe-mappings-cmap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available adobe-mappings-cmap-devel | grep -v \.src | grep adobe-mappings-cmap-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm adobe-mappings-cmap-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y adobe-mappings-cmap-devel + CHECK_RESULT $? 0 0 "install adobe-mappings-cmap-devel failed" + SLEEP_WAIT 1 + dnf remove -y adobe-mappings-cmap-devel + CHECK_RESULT $? 0 0 "remove adobe-mappings-cmap-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-help.sh b/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e89858efaf38f469e4e3e90d9d204a44bba305d --- /dev/null +++ b/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src adobe-mappings-cmap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available adobe-mappings-cmap-help | grep -v \.src | grep adobe-mappings-cmap-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm adobe-mappings-cmap-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y adobe-mappings-cmap-help + CHECK_RESULT $? 0 0 "install adobe-mappings-cmap-help failed" + SLEEP_WAIT 1 + dnf remove -y adobe-mappings-cmap-help + CHECK_RESULT $? 0 0 "remove adobe-mappings-cmap-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-lang.sh b/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-lang.sh new file mode 100644 index 0000000000000000000000000000000000000000..d856e0322d44acc2456acf6355cbb6438bd0ee69 --- /dev/null +++ b/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap-lang.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src adobe-mappings-cmap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available adobe-mappings-cmap-lang | grep -v \.src | grep adobe-mappings-cmap-lang + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm adobe-mappings-cmap-lang" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y adobe-mappings-cmap-lang + CHECK_RESULT $? 0 0 "install adobe-mappings-cmap-lang failed" + SLEEP_WAIT 1 + dnf remove -y adobe-mappings-cmap-lang + CHECK_RESULT $? 0 0 "remove adobe-mappings-cmap-lang failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap.sh b/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..09d6164e9d0020169fff2586002570632df925e3 --- /dev/null +++ b/testcases/cli-test/adobe-mappings-cmap/oe_test_adobe-mappings-cmap_install_and_remove_adobe-mappings-cmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src adobe-mappings-cmap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available adobe-mappings-cmap | grep -v \.src | grep adobe-mappings-cmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm adobe-mappings-cmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y adobe-mappings-cmap + CHECK_RESULT $? 0 0 "install adobe-mappings-cmap failed" + SLEEP_WAIT 1 + dnf remove -y adobe-mappings-cmap + CHECK_RESULT $? 0 0 "remove adobe-mappings-cmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/adobe-mappings-pdf/oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf-devel.sh b/testcases/cli-test/adobe-mappings-pdf/oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..24211d44245ecb3ca6ed1f0f3b37b9c01ca1b5c5 --- /dev/null +++ b/testcases/cli-test/adobe-mappings-pdf/oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src adobe-mappings-pdf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available adobe-mappings-pdf-devel | grep -v \.src | grep adobe-mappings-pdf-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm adobe-mappings-pdf-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y adobe-mappings-pdf-devel + CHECK_RESULT $? 0 0 "install adobe-mappings-pdf-devel failed" + SLEEP_WAIT 1 + dnf remove -y adobe-mappings-pdf-devel + CHECK_RESULT $? 0 0 "remove adobe-mappings-pdf-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/adobe-mappings-pdf/oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf-help.sh b/testcases/cli-test/adobe-mappings-pdf/oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4378d85a18ce5bc29127371b6d244cba182a0b6 --- /dev/null +++ b/testcases/cli-test/adobe-mappings-pdf/oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src adobe-mappings-pdf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available adobe-mappings-pdf-help | grep -v \.src | grep adobe-mappings-pdf-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm adobe-mappings-pdf-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y adobe-mappings-pdf-help + CHECK_RESULT $? 0 0 "install adobe-mappings-pdf-help failed" + SLEEP_WAIT 1 + dnf remove -y adobe-mappings-pdf-help + CHECK_RESULT $? 0 0 "remove adobe-mappings-pdf-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/adobe-mappings-pdf/oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf.sh b/testcases/cli-test/adobe-mappings-pdf/oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..661df8d71f211fec4d8991e947a59f9d2d7e32c8 --- /dev/null +++ b/testcases/cli-test/adobe-mappings-pdf/oe_test_adobe-mappings-pdf_install_and_remove_adobe-mappings-pdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src adobe-mappings-pdf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available adobe-mappings-pdf | grep -v \.src | grep adobe-mappings-pdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm adobe-mappings-pdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y adobe-mappings-pdf + CHECK_RESULT $? 0 0 "install adobe-mappings-pdf failed" + SLEEP_WAIT 1 + dnf remove -y adobe-mappings-pdf + CHECK_RESULT $? 0 0 "remove adobe-mappings-pdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/adwaita-icon-theme/oe_test_adwaita-icon-theme_install_and_remove_adwaita-cursor-theme.sh b/testcases/cli-test/adwaita-icon-theme/oe_test_adwaita-icon-theme_install_and_remove_adwaita-cursor-theme.sh new file mode 100644 index 0000000000000000000000000000000000000000..6dd007204ab13ae3b486b0639bbd1cc91dcf095e --- /dev/null +++ b/testcases/cli-test/adwaita-icon-theme/oe_test_adwaita-icon-theme_install_and_remove_adwaita-cursor-theme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src adwaita-icon-theme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available adwaita-cursor-theme | grep -v \.src | grep adwaita-cursor-theme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm adwaita-cursor-theme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y adwaita-cursor-theme + CHECK_RESULT $? 0 0 "install adwaita-cursor-theme failed" + SLEEP_WAIT 1 + dnf remove -y adwaita-cursor-theme + CHECK_RESULT $? 0 0 "remove adwaita-cursor-theme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/adwaita-icon-theme/oe_test_adwaita-icon-theme_install_and_remove_adwaita-icon-theme-devel.sh b/testcases/cli-test/adwaita-icon-theme/oe_test_adwaita-icon-theme_install_and_remove_adwaita-icon-theme-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9587bb4ec8453b2ff0f3c31ed5d4ab1f759fbc1 --- /dev/null +++ b/testcases/cli-test/adwaita-icon-theme/oe_test_adwaita-icon-theme_install_and_remove_adwaita-icon-theme-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src adwaita-icon-theme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available adwaita-icon-theme-devel | grep -v \.src | grep adwaita-icon-theme-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm adwaita-icon-theme-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y adwaita-icon-theme-devel + CHECK_RESULT $? 0 0 "install adwaita-icon-theme-devel failed" + SLEEP_WAIT 1 + dnf remove -y adwaita-icon-theme-devel + CHECK_RESULT $? 0 0 "remove adwaita-icon-theme-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/adwaita-icon-theme/oe_test_adwaita-icon-theme_install_and_remove_adwaita-icon-theme.sh b/testcases/cli-test/adwaita-icon-theme/oe_test_adwaita-icon-theme_install_and_remove_adwaita-icon-theme.sh new file mode 100644 index 0000000000000000000000000000000000000000..15fd3e2297733a27ffd955a6d59299ac614fc2f9 --- /dev/null +++ b/testcases/cli-test/adwaita-icon-theme/oe_test_adwaita-icon-theme_install_and_remove_adwaita-icon-theme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src adwaita-icon-theme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available adwaita-icon-theme | grep -v \.src | grep adwaita-icon-theme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm adwaita-icon-theme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y adwaita-icon-theme + CHECK_RESULT $? 0 0 "install adwaita-icon-theme failed" + SLEEP_WAIT 1 + dnf remove -y adwaita-icon-theme + CHECK_RESULT $? 0 0 "remove adwaita-icon-theme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib-debuginfo.sh b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1059fdae06e6f2974ea5f172550328270161d7e2 --- /dev/null +++ b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src alsa-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available alsa-lib-debuginfo | grep -v \.src | grep alsa-lib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm alsa-lib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y alsa-lib-debuginfo + CHECK_RESULT $? 0 0 "install alsa-lib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y alsa-lib-debuginfo + CHECK_RESULT $? 0 0 "remove alsa-lib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib-debugsource.sh b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..88999138348e51cad5b48f3961416ceca9b10190 --- /dev/null +++ b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src alsa-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available alsa-lib-debugsource | grep -v \.src | grep alsa-lib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm alsa-lib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y alsa-lib-debugsource + CHECK_RESULT $? 0 0 "install alsa-lib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y alsa-lib-debugsource + CHECK_RESULT $? 0 0 "remove alsa-lib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib-devel.sh b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e7c5953e7618a5bd579dab14cd5b8f9a6fc9a8f --- /dev/null +++ b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src alsa-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available alsa-lib-devel | grep -v \.src | grep alsa-lib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm alsa-lib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y alsa-lib-devel + CHECK_RESULT $? 0 0 "install alsa-lib-devel failed" + SLEEP_WAIT 1 + dnf remove -y alsa-lib-devel + CHECK_RESULT $? 0 0 "remove alsa-lib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib.sh b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c4f205e4bf8012f14b25ea4285701ff0d373e79 --- /dev/null +++ b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-lib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src alsa-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available alsa-lib | grep -v \.src | grep alsa-lib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm alsa-lib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y alsa-lib + CHECK_RESULT $? 0 0 "install alsa-lib failed" + SLEEP_WAIT 1 + dnf remove -y alsa-lib + CHECK_RESULT $? 0 0 "remove alsa-lib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-topology.sh b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-topology.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b354004cf782837d81fce2911a163897923b3ba --- /dev/null +++ b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-topology.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src alsa-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available alsa-topology | grep -v \.src | grep alsa-topology + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm alsa-topology" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y alsa-topology + CHECK_RESULT $? 0 0 "install alsa-topology failed" + SLEEP_WAIT 1 + dnf remove -y alsa-topology + CHECK_RESULT $? 0 0 "remove alsa-topology failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-ucm.sh b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-ucm.sh new file mode 100644 index 0000000000000000000000000000000000000000..104c4bd23ead02810d394e1aef59f949e7c065ce --- /dev/null +++ b/testcases/cli-test/alsa-lib/oe_test_alsa-lib_install_and_remove_alsa-ucm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src alsa-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available alsa-ucm | grep -v \.src | grep alsa-ucm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm alsa-ucm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y alsa-ucm + CHECK_RESULT $? 0 0 "install alsa-ucm failed" + SLEEP_WAIT 1 + dnf remove -y alsa-ucm + CHECK_RESULT $? 0 0 "remove alsa-ucm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-core.sh b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..deb941d32f634959130b9435bd15e0bfe4f6eee2 --- /dev/null +++ b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anaconda +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anaconda-core | grep -v \.src | grep anaconda-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anaconda-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anaconda-core + CHECK_RESULT $? 0 0 "install anaconda-core failed" + SLEEP_WAIT 1 + dnf remove -y anaconda-core + CHECK_RESULT $? 0 0 "remove anaconda-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-debuginfo.sh b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b282f38489d0511e247189b88105f9d96713b663 --- /dev/null +++ b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anaconda +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anaconda-debuginfo | grep -v \.src | grep anaconda-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anaconda-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anaconda-debuginfo + CHECK_RESULT $? 0 0 "install anaconda-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y anaconda-debuginfo + CHECK_RESULT $? 0 0 "remove anaconda-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-debugsource.sh b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5f04b8c3dc232668340f51620ec4d713c300018 --- /dev/null +++ b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anaconda +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anaconda-debugsource | grep -v \.src | grep anaconda-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anaconda-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anaconda-debugsource + CHECK_RESULT $? 0 0 "install anaconda-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y anaconda-debugsource + CHECK_RESULT $? 0 0 "remove anaconda-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-devel.sh b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c18832401135cd6c51b01e1fc1aa44170cbeadca --- /dev/null +++ b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anaconda +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anaconda-devel | grep -v \.src | grep anaconda-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anaconda-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anaconda-devel + CHECK_RESULT $? 0 0 "install anaconda-devel failed" + SLEEP_WAIT 1 + dnf remove -y anaconda-devel + CHECK_RESULT $? 0 0 "remove anaconda-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-dracut.sh b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-dracut.sh new file mode 100644 index 0000000000000000000000000000000000000000..b486492716e40a3294e5bdae76fc90a974a9b0e4 --- /dev/null +++ b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-dracut.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anaconda +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anaconda-dracut | grep -v \.src | grep anaconda-dracut + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anaconda-dracut" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anaconda-dracut + CHECK_RESULT $? 0 0 "install anaconda-dracut failed" + SLEEP_WAIT 1 + dnf remove -y anaconda-dracut + CHECK_RESULT $? 0 0 "remove anaconda-dracut failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-tui.sh b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-tui.sh new file mode 100644 index 0000000000000000000000000000000000000000..1673665038d613ca73d0dc019d858bdab0021145 --- /dev/null +++ b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda-tui.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anaconda +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anaconda-tui | grep -v \.src | grep anaconda-tui + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anaconda-tui" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anaconda-tui + CHECK_RESULT $? 0 0 "install anaconda-tui failed" + SLEEP_WAIT 1 + dnf remove -y anaconda-tui + CHECK_RESULT $? 0 0 "remove anaconda-tui failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda.sh b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d2d32692526f8be042145aae55ab5b8fe844fd6 --- /dev/null +++ b/testcases/cli-test/anaconda/oe_test_anaconda_install_and_remove_anaconda.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anaconda +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anaconda | grep -v \.src | grep anaconda + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anaconda" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anaconda + CHECK_RESULT $? 0 0 "install anaconda failed" + SLEEP_WAIT 1 + dnf remove -y anaconda + CHECK_RESULT $? 0 0 "remove anaconda failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-annocheck.sh b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-annocheck.sh new file mode 100644 index 0000000000000000000000000000000000000000..142a449b8360638baddbe78e68f95a3e3d8c2bba --- /dev/null +++ b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-annocheck.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src annobin +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available annobin-annocheck | grep -v \.src | grep annobin-annocheck + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm annobin-annocheck" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y annobin-annocheck + CHECK_RESULT $? 0 0 "install annobin-annocheck failed" + SLEEP_WAIT 1 + dnf remove -y annobin-annocheck + CHECK_RESULT $? 0 0 "remove annobin-annocheck failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-debuginfo.sh b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..31047be59417a6bf90ce01cbdf1e5534e02c92a2 --- /dev/null +++ b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src annobin +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available annobin-debuginfo | grep -v \.src | grep annobin-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm annobin-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y annobin-debuginfo + CHECK_RESULT $? 0 0 "install annobin-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y annobin-debuginfo + CHECK_RESULT $? 0 0 "remove annobin-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-debugsource.sh b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..67fe97e3c34d66d8cebe21a358508fafd8c5f201 --- /dev/null +++ b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src annobin +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available annobin-debugsource | grep -v \.src | grep annobin-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm annobin-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y annobin-debugsource + CHECK_RESULT $? 0 0 "install annobin-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y annobin-debugsource + CHECK_RESULT $? 0 0 "remove annobin-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-help.sh b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a60eca8c547ee78fd09e5992f4cdcb1429cb8ce0 --- /dev/null +++ b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src annobin +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available annobin-help | grep -v \.src | grep annobin-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm annobin-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y annobin-help + CHECK_RESULT $? 0 0 "install annobin-help failed" + SLEEP_WAIT 1 + dnf remove -y annobin-help + CHECK_RESULT $? 0 0 "remove annobin-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-tests.sh b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..3432831206e07395ecfbb4072e966e20ae21da15 --- /dev/null +++ b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src annobin +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available annobin-tests | grep -v \.src | grep annobin-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm annobin-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y annobin-tests + CHECK_RESULT $? 0 0 "install annobin-tests failed" + SLEEP_WAIT 1 + dnf remove -y annobin-tests + CHECK_RESULT $? 0 0 "remove annobin-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin.sh b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8f229968103eb8adc9146f8b3a05f5bcaacaeb1 --- /dev/null +++ b/testcases/cli-test/annobin/oe_test_annobin_install_and_remove_annobin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src annobin +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available annobin | grep -v \.src | grep annobin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm annobin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y annobin + CHECK_RESULT $? 0 0 "install annobin failed" + SLEEP_WAIT 1 + dnf remove -y annobin + CHECK_RESULT $? 0 0 "remove annobin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-antlr.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-antlr.sh new file mode 100644 index 0000000000000000000000000000000000000000..53691d29ffe4b2750bb192c3c075eca211533036 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-antlr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-antlr | grep -v \.src | grep ant-antlr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-antlr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-antlr + CHECK_RESULT $? 0 0 "install ant-antlr failed" + SLEEP_WAIT 1 + dnf remove -y ant-antlr + CHECK_RESULT $? 0 0 "remove ant-antlr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-bcel.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-bcel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b74ce09e6febbf5ec9b88cc0cd27713163b4a7e7 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-bcel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-apache-bcel | grep -v \.src | grep ant-apache-bcel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-apache-bcel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-apache-bcel + CHECK_RESULT $? 0 0 "install ant-apache-bcel failed" + SLEEP_WAIT 1 + dnf remove -y ant-apache-bcel + CHECK_RESULT $? 0 0 "remove ant-apache-bcel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-bsf.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-bsf.sh new file mode 100644 index 0000000000000000000000000000000000000000..180f9c0857b8ac16869f4a97ada3f6c9c5367ca8 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-bsf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-apache-bsf | grep -v \.src | grep ant-apache-bsf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-apache-bsf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-apache-bsf + CHECK_RESULT $? 0 0 "install ant-apache-bsf failed" + SLEEP_WAIT 1 + dnf remove -y ant-apache-bsf + CHECK_RESULT $? 0 0 "remove ant-apache-bsf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-log4j.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-log4j.sh new file mode 100644 index 0000000000000000000000000000000000000000..b62cb6d4ac3e15eea3eb5ced24fa5914276df5a0 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-log4j.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-apache-log4j | grep -v \.src | grep ant-apache-log4j + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-apache-log4j" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-apache-log4j + CHECK_RESULT $? 0 0 "install ant-apache-log4j failed" + SLEEP_WAIT 1 + dnf remove -y ant-apache-log4j + CHECK_RESULT $? 0 0 "remove ant-apache-log4j failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-oro.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-oro.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f65b1b32faa1ead892b32f16409d15490029ada --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-oro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-apache-oro | grep -v \.src | grep ant-apache-oro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-apache-oro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-apache-oro + CHECK_RESULT $? 0 0 "install ant-apache-oro failed" + SLEEP_WAIT 1 + dnf remove -y ant-apache-oro + CHECK_RESULT $? 0 0 "remove ant-apache-oro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-regexp.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-regexp.sh new file mode 100644 index 0000000000000000000000000000000000000000..461b707eecba266f23ea78ad0e33bc87f85bd1af --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-regexp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-apache-regexp | grep -v \.src | grep ant-apache-regexp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-apache-regexp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-apache-regexp + CHECK_RESULT $? 0 0 "install ant-apache-regexp failed" + SLEEP_WAIT 1 + dnf remove -y ant-apache-regexp + CHECK_RESULT $? 0 0 "remove ant-apache-regexp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-resolver.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-resolver.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a12f88e0bf4d54f0e92a10289f6cf27234b5bdf --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-resolver.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-apache-resolver | grep -v \.src | grep ant-apache-resolver + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-apache-resolver" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-apache-resolver + CHECK_RESULT $? 0 0 "install ant-apache-resolver failed" + SLEEP_WAIT 1 + dnf remove -y ant-apache-resolver + CHECK_RESULT $? 0 0 "remove ant-apache-resolver failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-xalan2.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-xalan2.sh new file mode 100644 index 0000000000000000000000000000000000000000..a39aa5a150816c263705216450472d5368707ea6 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-apache-xalan2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-apache-xalan2 | grep -v \.src | grep ant-apache-xalan2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-apache-xalan2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-apache-xalan2 + CHECK_RESULT $? 0 0 "install ant-apache-xalan2 failed" + SLEEP_WAIT 1 + dnf remove -y ant-apache-xalan2 + CHECK_RESULT $? 0 0 "remove ant-apache-xalan2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-commons-logging.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-commons-logging.sh new file mode 100644 index 0000000000000000000000000000000000000000..85828de0ee09d089c191c1ec26f52da51c291f5f --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-commons-logging.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-commons-logging | grep -v \.src | grep ant-commons-logging + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-commons-logging" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-commons-logging + CHECK_RESULT $? 0 0 "install ant-commons-logging failed" + SLEEP_WAIT 1 + dnf remove -y ant-commons-logging + CHECK_RESULT $? 0 0 "remove ant-commons-logging failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-commons-net.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-commons-net.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca3470f734dd1685a0b6f26e708671fb820f0abc --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-commons-net.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-commons-net | grep -v \.src | grep ant-commons-net + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-commons-net" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-commons-net + CHECK_RESULT $? 0 0 "install ant-commons-net failed" + SLEEP_WAIT 1 + dnf remove -y ant-commons-net + CHECK_RESULT $? 0 0 "remove ant-commons-net failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-help.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e74fc844faa8fc11b2a45d349ab5d3aca12c466f --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-help | grep -v \.src | grep ant-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-help + CHECK_RESULT $? 0 0 "install ant-help failed" + SLEEP_WAIT 1 + dnf remove -y ant-help + CHECK_RESULT $? 0 0 "remove ant-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-imageio.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-imageio.sh new file mode 100644 index 0000000000000000000000000000000000000000..7748d88c84c6430a41b4de4cc372f164cb86ca9e --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-imageio.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-imageio | grep -v \.src | grep ant-imageio + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-imageio" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-imageio + CHECK_RESULT $? 0 0 "install ant-imageio failed" + SLEEP_WAIT 1 + dnf remove -y ant-imageio + CHECK_RESULT $? 0 0 "remove ant-imageio failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-javamail.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-javamail.sh new file mode 100644 index 0000000000000000000000000000000000000000..5eceee9c6d1253749c4467d923bfb2471247b971 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-javamail.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-javamail | grep -v \.src | grep ant-javamail + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-javamail" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-javamail + CHECK_RESULT $? 0 0 "install ant-javamail failed" + SLEEP_WAIT 1 + dnf remove -y ant-javamail + CHECK_RESULT $? 0 0 "remove ant-javamail failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-jdepend.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-jdepend.sh new file mode 100644 index 0000000000000000000000000000000000000000..71da4789d83b5268ad487c01ded4abff84b9ae13 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-jdepend.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-jdepend | grep -v \.src | grep ant-jdepend + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-jdepend" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-jdepend + CHECK_RESULT $? 0 0 "install ant-jdepend failed" + SLEEP_WAIT 1 + dnf remove -y ant-jdepend + CHECK_RESULT $? 0 0 "remove ant-jdepend failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-jmf.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-jmf.sh new file mode 100644 index 0000000000000000000000000000000000000000..842088791d34a0f1101608e1ba14c6f74cd3ed7e --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-jmf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-jmf | grep -v \.src | grep ant-jmf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-jmf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-jmf + CHECK_RESULT $? 0 0 "install ant-jmf failed" + SLEEP_WAIT 1 + dnf remove -y ant-jmf + CHECK_RESULT $? 0 0 "remove ant-jmf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-jsch.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-jsch.sh new file mode 100644 index 0000000000000000000000000000000000000000..169fc7da92acab939859497991e24bc1f5c6b4fd --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-jsch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-jsch | grep -v \.src | grep ant-jsch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-jsch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-jsch + CHECK_RESULT $? 0 0 "install ant-jsch failed" + SLEEP_WAIT 1 + dnf remove -y ant-jsch + CHECK_RESULT $? 0 0 "remove ant-jsch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-junit.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-junit.sh new file mode 100644 index 0000000000000000000000000000000000000000..5893e84245a3e562ea692b20fdea539f7369734d --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-junit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-junit | grep -v \.src | grep ant-junit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-junit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-junit + CHECK_RESULT $? 0 0 "install ant-junit failed" + SLEEP_WAIT 1 + dnf remove -y ant-junit + CHECK_RESULT $? 0 0 "remove ant-junit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-junit5.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-junit5.sh new file mode 100644 index 0000000000000000000000000000000000000000..971c6ad0bc76f5f5e6c9a0d5627ab4470b35c6e6 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-junit5.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-junit5 | grep -v \.src | grep ant-junit5 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-junit5" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-junit5 + CHECK_RESULT $? 0 0 "install ant-junit5 failed" + SLEEP_WAIT 1 + dnf remove -y ant-junit5 + CHECK_RESULT $? 0 0 "remove ant-junit5 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-lib.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-lib.sh new file mode 100644 index 0000000000000000000000000000000000000000..0681c001f3ef45bc6bfad8df736aba61489493c9 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-lib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-lib | grep -v \.src | grep ant-lib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-lib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-lib + CHECK_RESULT $? 0 0 "install ant-lib failed" + SLEEP_WAIT 1 + dnf remove -y ant-lib + CHECK_RESULT $? 0 0 "remove ant-lib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-swing.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-swing.sh new file mode 100644 index 0000000000000000000000000000000000000000..56ae4a74766317113a9b9bed61f45cb9ccd57dbb --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-swing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-swing | grep -v \.src | grep ant-swing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-swing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-swing + CHECK_RESULT $? 0 0 "install ant-swing failed" + SLEEP_WAIT 1 + dnf remove -y ant-swing + CHECK_RESULT $? 0 0 "remove ant-swing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-testutil.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-testutil.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5222134db3855af343bb39aa56cb60a85ae6d09 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-testutil.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-testutil | grep -v \.src | grep ant-testutil + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-testutil" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-testutil + CHECK_RESULT $? 0 0 "install ant-testutil failed" + SLEEP_WAIT 1 + dnf remove -y ant-testutil + CHECK_RESULT $? 0 0 "remove ant-testutil failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-xz.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-xz.sh new file mode 100644 index 0000000000000000000000000000000000000000..58e228eff9a926f78b0efaed0077418832365b44 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant-xz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant-xz | grep -v \.src | grep ant-xz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant-xz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant-xz + CHECK_RESULT $? 0 0 "install ant-xz failed" + SLEEP_WAIT 1 + dnf remove -y ant-xz + CHECK_RESULT $? 0 0 "remove ant-xz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant.sh b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcbe860352d7de2967d0da216543003971a87869 --- /dev/null +++ b/testcases/cli-test/ant/oe_test_ant_install_and_remove_ant.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ant | grep -v \.src | grep ant + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ant" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ant + CHECK_RESULT $? 0 0 "install ant failed" + SLEEP_WAIT 1 + dnf remove -y ant + CHECK_RESULT $? 0 0 "remove ant failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-debuginfo.sh b/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc5ad22d88be5bdc046c1456dc95d15b41839dac --- /dev/null +++ b/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anthy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anthy-debuginfo | grep -v \.src | grep anthy-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anthy-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anthy-debuginfo + CHECK_RESULT $? 0 0 "install anthy-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y anthy-debuginfo + CHECK_RESULT $? 0 0 "remove anthy-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-debugsource.sh b/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4b41394362635bf5029795bc6be3a2101706ca2 --- /dev/null +++ b/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anthy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anthy-debugsource | grep -v \.src | grep anthy-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anthy-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anthy-debugsource + CHECK_RESULT $? 0 0 "install anthy-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y anthy-debugsource + CHECK_RESULT $? 0 0 "remove anthy-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-devel.sh b/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1fe7ffddee2f3913cf64c716542b5b990b6e018 --- /dev/null +++ b/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anthy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anthy-devel | grep -v \.src | grep anthy-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anthy-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anthy-devel + CHECK_RESULT $? 0 0 "install anthy-devel failed" + SLEEP_WAIT 1 + dnf remove -y anthy-devel + CHECK_RESULT $? 0 0 "remove anthy-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-help.sh b/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c37fee8937741fcd1e2b1b66a220faaa083e704 --- /dev/null +++ b/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anthy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anthy-help | grep -v \.src | grep anthy-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anthy-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anthy-help + CHECK_RESULT $? 0 0 "install anthy-help failed" + SLEEP_WAIT 1 + dnf remove -y anthy-help + CHECK_RESULT $? 0 0 "remove anthy-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy.sh b/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy.sh new file mode 100644 index 0000000000000000000000000000000000000000..d42924a4a3858e8a840174efa4dc85b547b5311b --- /dev/null +++ b/testcases/cli-test/anthy/oe_test_anthy_install_and_remove_anthy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src anthy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available anthy | grep -v \.src | grep anthy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm anthy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y anthy + CHECK_RESULT $? 0 0 "install anthy failed" + SLEEP_WAIT 1 + dnf remove -y anthy + CHECK_RESULT $? 0 0 "remove anthy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/apache-parent/oe_test_apache-parent_install_and_remove_apache-parent.sh b/testcases/cli-test/apache-parent/oe_test_apache-parent_install_and_remove_apache-parent.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8bc0a91d2225a347f01c39c20c3054921511b90 --- /dev/null +++ b/testcases/cli-test/apache-parent/oe_test_apache-parent_install_and_remove_apache-parent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src apache-parent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available apache-parent | grep -v \.src | grep apache-parent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm apache-parent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y apache-parent + CHECK_RESULT $? 0 0 "install apache-parent failed" + SLEEP_WAIT 1 + dnf remove -y apache-parent + CHECK_RESULT $? 0 0 "remove apache-parent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-debuginfo.sh b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..568e641f7a27d7a21f44f7dee35635c520d3a65e --- /dev/null +++ b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src argon2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available argon2-debuginfo | grep -v \.src | grep argon2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm argon2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y argon2-debuginfo + CHECK_RESULT $? 0 0 "install argon2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y argon2-debuginfo + CHECK_RESULT $? 0 0 "remove argon2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-debugsource.sh b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e81346d2488d5755d7cb1714b36c7c1506af9bc3 --- /dev/null +++ b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src argon2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available argon2-debugsource | grep -v \.src | grep argon2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm argon2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y argon2-debugsource + CHECK_RESULT $? 0 0 "install argon2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y argon2-debugsource + CHECK_RESULT $? 0 0 "remove argon2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-devel.sh b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9be7196c56a74b9e99452f24bbca280c8b0d8cc0 --- /dev/null +++ b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src argon2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available argon2-devel | grep -v \.src | grep argon2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm argon2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y argon2-devel + CHECK_RESULT $? 0 0 "install argon2-devel failed" + SLEEP_WAIT 1 + dnf remove -y argon2-devel + CHECK_RESULT $? 0 0 "remove argon2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-help.sh b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..de4ebaff0863ef7c254c52b95e442a8e535d4ea6 --- /dev/null +++ b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src argon2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available argon2-help | grep -v \.src | grep argon2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm argon2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y argon2-help + CHECK_RESULT $? 0 0 "install argon2-help failed" + SLEEP_WAIT 1 + dnf remove -y argon2-help + CHECK_RESULT $? 0 0 "remove argon2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2.sh b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2.sh new file mode 100644 index 0000000000000000000000000000000000000000..1871f79bb3a2ec26358e7cb5fe0d5682f24bd97c --- /dev/null +++ b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_argon2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src argon2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available argon2 | grep -v \.src | grep argon2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm argon2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y argon2 + CHECK_RESULT $? 0 0 "install argon2 failed" + SLEEP_WAIT 1 + dnf remove -y argon2 + CHECK_RESULT $? 0 0 "remove argon2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_libargon2-devel.sh b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_libargon2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9a8726199f433079976efa5d4b5cf8b12645d0e --- /dev/null +++ b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_libargon2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src argon2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libargon2-devel | grep -v \.src | grep libargon2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libargon2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libargon2-devel + CHECK_RESULT $? 0 0 "install libargon2-devel failed" + SLEEP_WAIT 1 + dnf remove -y libargon2-devel + CHECK_RESULT $? 0 0 "remove libargon2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_libargon2.sh b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_libargon2.sh new file mode 100644 index 0000000000000000000000000000000000000000..2feb87c68a14ecaac39d5f295226f4f8739ca329 --- /dev/null +++ b/testcases/cli-test/argon2/oe_test_argon2_install_and_remove_libargon2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src argon2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libargon2 | grep -v \.src | grep libargon2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libargon2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libargon2 + CHECK_RESULT $? 0 0 "install libargon2 failed" + SLEEP_WAIT 1 + dnf remove -y libargon2 + CHECK_RESULT $? 0 0 "remove libargon2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-doc.sh b/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bb790ef0756eb328b4c1f02cb00612b3d6dcd37 --- /dev/null +++ b/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src asciidoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available asciidoc-doc | grep -v \.src | grep asciidoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm asciidoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y asciidoc-doc + CHECK_RESULT $? 0 0 "install asciidoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y asciidoc-doc + CHECK_RESULT $? 0 0 "remove asciidoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-help.sh b/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..31960fc9f195ef912725c04f7ead74bdfcdbc571 --- /dev/null +++ b/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src asciidoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available asciidoc-help | grep -v \.src | grep asciidoc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm asciidoc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y asciidoc-help + CHECK_RESULT $? 0 0 "install asciidoc-help failed" + SLEEP_WAIT 1 + dnf remove -y asciidoc-help + CHECK_RESULT $? 0 0 "remove asciidoc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-latex.sh b/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-latex.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ad765de4c0465a2b837342c27dbed41bcd916ce --- /dev/null +++ b/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-latex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src asciidoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available asciidoc-latex | grep -v \.src | grep asciidoc-latex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm asciidoc-latex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y asciidoc-latex + CHECK_RESULT $? 0 0 "install asciidoc-latex failed" + SLEEP_WAIT 1 + dnf remove -y asciidoc-latex + CHECK_RESULT $? 0 0 "remove asciidoc-latex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-music.sh b/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-music.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ea64275e685259273aded35c330b9cdfca8b8d8 --- /dev/null +++ b/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc-music.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src asciidoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available asciidoc-music | grep -v \.src | grep asciidoc-music + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm asciidoc-music" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y asciidoc-music + CHECK_RESULT $? 0 0 "install asciidoc-music failed" + SLEEP_WAIT 1 + dnf remove -y asciidoc-music + CHECK_RESULT $? 0 0 "remove asciidoc-music failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc.sh b/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..146de3977f83d64e3668fd2ce6b232d6012fed7a --- /dev/null +++ b/testcases/cli-test/asciidoc/oe_test_asciidoc_install_and_remove_asciidoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src asciidoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available asciidoc | grep -v \.src | grep asciidoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm asciidoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y asciidoc + CHECK_RESULT $? 0 0 "install asciidoc failed" + SLEEP_WAIT 1 + dnf remove -y asciidoc + CHECK_RESULT $? 0 0 "remove asciidoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-debuginfo.sh b/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8504b139e9e2cd036ce57165e5ef02b3db8c8aee --- /dev/null +++ b/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src aspell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available aspell-debuginfo | grep -v \.src | grep aspell-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm aspell-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y aspell-debuginfo + CHECK_RESULT $? 0 0 "install aspell-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y aspell-debuginfo + CHECK_RESULT $? 0 0 "remove aspell-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-debugsource.sh b/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c1926ba07447fe7ef3364a5b981ac461a8eb8ad --- /dev/null +++ b/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src aspell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available aspell-debugsource | grep -v \.src | grep aspell-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm aspell-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y aspell-debugsource + CHECK_RESULT $? 0 0 "install aspell-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y aspell-debugsource + CHECK_RESULT $? 0 0 "remove aspell-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-devel.sh b/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e93f017de355aa4f744a0d66d7ff183ab6769ec --- /dev/null +++ b/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src aspell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available aspell-devel | grep -v \.src | grep aspell-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm aspell-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y aspell-devel + CHECK_RESULT $? 0 0 "install aspell-devel failed" + SLEEP_WAIT 1 + dnf remove -y aspell-devel + CHECK_RESULT $? 0 0 "remove aspell-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-help.sh b/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f81676541f6505db256ef8678ed1bfbaa6a4bc50 --- /dev/null +++ b/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src aspell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available aspell-help | grep -v \.src | grep aspell-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm aspell-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y aspell-help + CHECK_RESULT $? 0 0 "install aspell-help failed" + SLEEP_WAIT 1 + dnf remove -y aspell-help + CHECK_RESULT $? 0 0 "remove aspell-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell.sh b/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell.sh new file mode 100644 index 0000000000000000000000000000000000000000..26e8070bebe0ad65f2cc9dcb040b2cc28dad4668 --- /dev/null +++ b/testcases/cli-test/aspell/oe_test_aspell_install_and_remove_aspell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src aspell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available aspell | grep -v \.src | grep aspell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm aspell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y aspell + CHECK_RESULT $? 0 0 "install aspell failed" + SLEEP_WAIT 1 + dnf remove -y aspell + CHECK_RESULT $? 0 0 "remove aspell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-debuginfo.sh b/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d041dc075303e022dee01535e8ddbe69e023ccdc --- /dev/null +++ b/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-atk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-atk-debuginfo | grep -v \.src | grep at-spi2-atk-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-atk-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-atk-debuginfo + CHECK_RESULT $? 0 0 "install at-spi2-atk-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-atk-debuginfo + CHECK_RESULT $? 0 0 "remove at-spi2-atk-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-debugsource.sh b/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6aebf0c174e21bb78385221f465303412bddb0c0 --- /dev/null +++ b/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-atk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-atk-debugsource | grep -v \.src | grep at-spi2-atk-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-atk-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-atk-debugsource + CHECK_RESULT $? 0 0 "install at-spi2-atk-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-atk-debugsource + CHECK_RESULT $? 0 0 "remove at-spi2-atk-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-devel.sh b/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..de26f1bd364f1d9a4aafa9f3c21cdf9f8961f22b --- /dev/null +++ b/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-atk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-atk-devel | grep -v \.src | grep at-spi2-atk-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-atk-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-atk-devel + CHECK_RESULT $? 0 0 "install at-spi2-atk-devel failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-atk-devel + CHECK_RESULT $? 0 0 "remove at-spi2-atk-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-help.sh b/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bd83c284900576b5d2c41a4ded5a63a065fecd5 --- /dev/null +++ b/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-atk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-atk-help | grep -v \.src | grep at-spi2-atk-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-atk-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-atk-help + CHECK_RESULT $? 0 0 "install at-spi2-atk-help failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-atk-help + CHECK_RESULT $? 0 0 "remove at-spi2-atk-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk.sh b/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cad1e72300637a7bceae7219c99f16536a30a83 --- /dev/null +++ b/testcases/cli-test/at-spi2-atk/oe_test_at-spi2-atk_install_and_remove_at-spi2-atk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-atk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-atk | grep -v \.src | grep at-spi2-atk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-atk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-atk + CHECK_RESULT $? 0 0 "install at-spi2-atk failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-atk + CHECK_RESULT $? 0 0 "remove at-spi2-atk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-atk-devel.sh b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-atk-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7f95b5afbcff30cd80bb6989186734563582839 --- /dev/null +++ b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-atk-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-atk-devel | grep -v \.src | grep at-spi2-atk-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-atk-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-atk-devel + CHECK_RESULT $? 0 0 "install at-spi2-atk-devel failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-atk-devel + CHECK_RESULT $? 0 0 "remove at-spi2-atk-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-atk.sh b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-atk.sh new file mode 100644 index 0000000000000000000000000000000000000000..62fd84a2006778739cbdd3653fc6ca05c2b790e2 --- /dev/null +++ b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-atk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-atk | grep -v \.src | grep at-spi2-atk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-atk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-atk + CHECK_RESULT $? 0 0 "install at-spi2-atk failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-atk + CHECK_RESULT $? 0 0 "remove at-spi2-atk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-debuginfo.sh b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..55569fb2dadb8d35a5e6a061f58d86fb0e13f60a --- /dev/null +++ b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-core-debuginfo | grep -v \.src | grep at-spi2-core-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-core-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-core-debuginfo + CHECK_RESULT $? 0 0 "install at-spi2-core-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-core-debuginfo + CHECK_RESULT $? 0 0 "remove at-spi2-core-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-debugsource.sh b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..44ac72332eff5fa85da96726881c4aee973f6444 --- /dev/null +++ b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-core-debugsource | grep -v \.src | grep at-spi2-core-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-core-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-core-debugsource + CHECK_RESULT $? 0 0 "install at-spi2-core-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-core-debugsource + CHECK_RESULT $? 0 0 "remove at-spi2-core-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-devel.sh b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4626e7317713e634c57bf04c6e9ad58323faba70 --- /dev/null +++ b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-core-devel | grep -v \.src | grep at-spi2-core-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-core-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-core-devel + CHECK_RESULT $? 0 0 "install at-spi2-core-devel failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-core-devel + CHECK_RESULT $? 0 0 "remove at-spi2-core-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-help.sh b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..85de16a19b435474d51c7e183ae5b4d5874f29d3 --- /dev/null +++ b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-core-help | grep -v \.src | grep at-spi2-core-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-core-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-core-help + CHECK_RESULT $? 0 0 "install at-spi2-core-help failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-core-help + CHECK_RESULT $? 0 0 "remove at-spi2-core-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core.sh b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c860d1fded3e34dab68afe661a4824cc9ddd6d2 --- /dev/null +++ b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_at-spi2-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available at-spi2-core | grep -v \.src | grep at-spi2-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm at-spi2-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y at-spi2-core + CHECK_RESULT $? 0 0 "install at-spi2-core failed" + SLEEP_WAIT 1 + dnf remove -y at-spi2-core + CHECK_RESULT $? 0 0 "remove at-spi2-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_atk-devel.sh b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_atk-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf7ecbc808af67507ce2b0f1ad07ef56b48fb8bf --- /dev/null +++ b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_atk-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atk-devel | grep -v \.src | grep atk-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atk-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atk-devel + CHECK_RESULT $? 0 0 "install atk-devel failed" + SLEEP_WAIT 1 + dnf remove -y atk-devel + CHECK_RESULT $? 0 0 "remove atk-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_atk.sh b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_atk.sh new file mode 100644 index 0000000000000000000000000000000000000000..17d1dc38e5097b658c3d5d3f83b3d67f83290ddf --- /dev/null +++ b/testcases/cli-test/at-spi2-core/oe_test_at-spi2-core_install_and_remove_atk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src at-spi2-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atk | grep -v \.src | grep atk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atk + CHECK_RESULT $? 0 0 "install atk failed" + SLEEP_WAIT 1 + dnf remove -y atk + CHECK_RESULT $? 0 0 "remove atk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-debuginfo.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7bd84ca872015307f8d2f1cb2801e3c8c131f36 --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atf-debuginfo | grep -v \.src | grep atf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atf-debuginfo + CHECK_RESULT $? 0 0 "install atf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y atf-debuginfo + CHECK_RESULT $? 0 0 "remove atf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-debugsource.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..abc30d9a899953b7e4664699da57592a9ce64af0 --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atf-debugsource | grep -v \.src | grep atf-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atf-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atf-debugsource + CHECK_RESULT $? 0 0 "install atf-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y atf-debugsource + CHECK_RESULT $? 0 0 "remove atf-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-help.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..38f68cdef26765c4cc0d1ac28b1c5f722b57f221 --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atf-help | grep -v \.src | grep atf-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atf-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atf-help + CHECK_RESULT $? 0 0 "install atf-help failed" + SLEEP_WAIT 1 + dnf remove -y atf-help + CHECK_RESULT $? 0 0 "remove atf-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-tests.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c7061b4e9c5f220f763d1fb47aaebaf5535ea68 --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atf-tests | grep -v \.src | grep atf-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atf-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atf-tests + CHECK_RESULT $? 0 0 "install atf-tests failed" + SLEEP_WAIT 1 + dnf remove -y atf-tests + CHECK_RESULT $? 0 0 "remove atf-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf.sh new file mode 100644 index 0000000000000000000000000000000000000000..5332483d1949dda6c4de8d7d139813504a6e0555 --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_atf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atf | grep -v \.src | grep atf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atf + CHECK_RESULT $? 0 0 "install atf failed" + SLEEP_WAIT 1 + dnf remove -y atf + CHECK_RESULT $? 0 0 "remove atf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c++-devel.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c++-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef35cc7c4ad96e1df15e2312e578a58b74739874 --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c++-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatf-c++-devel | grep -v \.src | grep libatf-c++-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatf-c++-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatf-c++-devel + CHECK_RESULT $? 0 0 "install libatf-c++-devel failed" + SLEEP_WAIT 1 + dnf remove -y libatf-c++-devel + CHECK_RESULT $? 0 0 "remove libatf-c++-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c++.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c++.sh new file mode 100644 index 0000000000000000000000000000000000000000..752f41d68148cd1fcc36d95bcccf8256435411fc --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c++.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatf-c++ | grep -v \.src | grep libatf-c++ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatf-c++" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatf-c++ + CHECK_RESULT $? 0 0 "install libatf-c++ failed" + SLEEP_WAIT 1 + dnf remove -y libatf-c++ + CHECK_RESULT $? 0 0 "remove libatf-c++ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c-devel.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..59e9027140301055b4f350c629980943e82098ac --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatf-c-devel | grep -v \.src | grep libatf-c-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatf-c-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatf-c-devel + CHECK_RESULT $? 0 0 "install libatf-c-devel failed" + SLEEP_WAIT 1 + dnf remove -y libatf-c-devel + CHECK_RESULT $? 0 0 "remove libatf-c-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c.sh new file mode 100644 index 0000000000000000000000000000000000000000..533b343b38af98ebdc223b0583ac33651bfca8e5 --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-c.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatf-c | grep -v \.src | grep libatf-c + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatf-c" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatf-c + CHECK_RESULT $? 0 0 "install libatf-c failed" + SLEEP_WAIT 1 + dnf remove -y libatf-c + CHECK_RESULT $? 0 0 "remove libatf-c failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-sh-devel.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-sh-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..131a3af1caf114a77ce4536e1755d45abef6a6d5 --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-sh-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatf-sh-devel | grep -v \.src | grep libatf-sh-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatf-sh-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatf-sh-devel + CHECK_RESULT $? 0 0 "install libatf-sh-devel failed" + SLEEP_WAIT 1 + dnf remove -y libatf-sh-devel + CHECK_RESULT $? 0 0 "remove libatf-sh-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-sh.sh b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5eb7e9d58597032cc79a0bbf920aa46d90936b3 --- /dev/null +++ b/testcases/cli-test/atf/oe_test_atf_install_and_remove_libatf-sh.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatf-sh | grep -v \.src | grep libatf-sh + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatf-sh" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatf-sh + CHECK_RESULT $? 0 0 "install libatf-sh failed" + SLEEP_WAIT 1 + dnf remove -y libatf-sh + CHECK_RESULT $? 0 0 "remove libatf-sh failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk-debuginfo.sh b/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8d388c69b8a051e82d25225f62c21acce2f29db --- /dev/null +++ b/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atk-debuginfo | grep -v \.src | grep atk-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atk-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atk-debuginfo + CHECK_RESULT $? 0 0 "install atk-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y atk-debuginfo + CHECK_RESULT $? 0 0 "remove atk-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk-debugsource.sh b/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..854c710f2ed151cd8e7eed55d91bfa21477cf3e0 --- /dev/null +++ b/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atk-debugsource | grep -v \.src | grep atk-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atk-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atk-debugsource + CHECK_RESULT $? 0 0 "install atk-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y atk-debugsource + CHECK_RESULT $? 0 0 "remove atk-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk-devel.sh b/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1aad3916711fcd0660f7ebc5018fa04f439a0bf --- /dev/null +++ b/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atk-devel | grep -v \.src | grep atk-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atk-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atk-devel + CHECK_RESULT $? 0 0 "install atk-devel failed" + SLEEP_WAIT 1 + dnf remove -y atk-devel + CHECK_RESULT $? 0 0 "remove atk-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk.sh b/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk.sh new file mode 100644 index 0000000000000000000000000000000000000000..35b9df820afd417ec45fe53d7336db35607d53b8 --- /dev/null +++ b/testcases/cli-test/atk/oe_test_atk_install_and_remove_atk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atk | grep -v \.src | grep atk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atk + CHECK_RESULT $? 0 0 "install atk failed" + SLEEP_WAIT 1 + dnf remove -y atk + CHECK_RESULT $? 0 0 "remove atk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atmel-firmware/oe_test_atmel-firmware_install_and_remove_atmel-firmware-help.sh b/testcases/cli-test/atmel-firmware/oe_test_atmel-firmware_install_and_remove_atmel-firmware-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0dcf82f0f85cda79fc92f75b99a0b49a9bc22638 --- /dev/null +++ b/testcases/cli-test/atmel-firmware/oe_test_atmel-firmware_install_and_remove_atmel-firmware-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atmel-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atmel-firmware-help | grep -v \.src | grep atmel-firmware-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atmel-firmware-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atmel-firmware-help + CHECK_RESULT $? 0 0 "install atmel-firmware-help failed" + SLEEP_WAIT 1 + dnf remove -y atmel-firmware-help + CHECK_RESULT $? 0 0 "remove atmel-firmware-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/atmel-firmware/oe_test_atmel-firmware_install_and_remove_atmel-firmware.sh b/testcases/cli-test/atmel-firmware/oe_test_atmel-firmware_install_and_remove_atmel-firmware.sh new file mode 100644 index 0000000000000000000000000000000000000000..196f26208a28bb923ecd88788366ee8f20ba77c8 --- /dev/null +++ b/testcases/cli-test/atmel-firmware/oe_test_atmel-firmware_install_and_remove_atmel-firmware.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src atmel-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available atmel-firmware | grep -v \.src | grep atmel-firmware + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm atmel-firmware" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y atmel-firmware + CHECK_RESULT $? 0 0 "install atmel-firmware failed" + SLEEP_WAIT 1 + dnf remove -y atmel-firmware + CHECK_RESULT $? 0 0 "remove atmel-firmware failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr-debuginfo.sh b/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..df0ae40578ef3688aeaec6dd1bcab2ef031e94e5 --- /dev/null +++ b/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src attr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available attr-debuginfo | grep -v \.src | grep attr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm attr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y attr-debuginfo + CHECK_RESULT $? 0 0 "install attr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y attr-debuginfo + CHECK_RESULT $? 0 0 "remove attr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr-debugsource.sh b/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b224162d67556be252d37042a6e8375202364a26 --- /dev/null +++ b/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src attr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available attr-debugsource | grep -v \.src | grep attr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm attr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y attr-debugsource + CHECK_RESULT $? 0 0 "install attr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y attr-debugsource + CHECK_RESULT $? 0 0 "remove attr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr-help.sh b/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc8c2b6e6a4107c133cbc9c2a1e688ec91673831 --- /dev/null +++ b/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src attr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available attr-help | grep -v \.src | grep attr-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm attr-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y attr-help + CHECK_RESULT $? 0 0 "install attr-help failed" + SLEEP_WAIT 1 + dnf remove -y attr-help + CHECK_RESULT $? 0 0 "remove attr-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr.sh b/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr.sh new file mode 100644 index 0000000000000000000000000000000000000000..d79839141ffcdf6e8856b876709a7146013eaf76 --- /dev/null +++ b/testcases/cli-test/attr/oe_test_attr_install_and_remove_attr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src attr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available attr | grep -v \.src | grep attr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm attr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y attr + CHECK_RESULT $? 0 0 "install attr failed" + SLEEP_WAIT 1 + dnf remove -y attr + CHECK_RESULT $? 0 0 "remove attr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/attr/oe_test_attr_install_and_remove_libattr-devel.sh b/testcases/cli-test/attr/oe_test_attr_install_and_remove_libattr-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d553a50ddae0c5cc1bd899bbd187b32a0f9d680e --- /dev/null +++ b/testcases/cli-test/attr/oe_test_attr_install_and_remove_libattr-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src attr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libattr-devel | grep -v \.src | grep libattr-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libattr-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libattr-devel + CHECK_RESULT $? 0 0 "install libattr-devel failed" + SLEEP_WAIT 1 + dnf remove -y libattr-devel + CHECK_RESULT $? 0 0 "remove libattr-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/audit/oe_test_audit_install_and_remove_audispd-plugins-zos.sh b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audispd-plugins-zos.sh new file mode 100644 index 0000000000000000000000000000000000000000..d695f584f193d73872a28f2d403399dbc7c3f1b9 --- /dev/null +++ b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audispd-plugins-zos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src audit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available audispd-plugins-zos | grep -v \.src | grep audispd-plugins-zos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm audispd-plugins-zos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y audispd-plugins-zos + CHECK_RESULT $? 0 0 "install audispd-plugins-zos failed" + SLEEP_WAIT 1 + dnf remove -y audispd-plugins-zos + CHECK_RESULT $? 0 0 "remove audispd-plugins-zos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/audit/oe_test_audit_install_and_remove_audispd-plugins.sh b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audispd-plugins.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d9cf2625bebdc236788423b3dfbe5ba9b8eef81 --- /dev/null +++ b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audispd-plugins.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src audit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available audispd-plugins | grep -v \.src | grep audispd-plugins + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm audispd-plugins" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y audispd-plugins + CHECK_RESULT $? 0 0 "install audispd-plugins failed" + SLEEP_WAIT 1 + dnf remove -y audispd-plugins + CHECK_RESULT $? 0 0 "remove audispd-plugins failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-debuginfo.sh b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ea56dc6c92303824b2634e63ba7824609490513 --- /dev/null +++ b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src audit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available audit-debuginfo | grep -v \.src | grep audit-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm audit-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y audit-debuginfo + CHECK_RESULT $? 0 0 "install audit-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y audit-debuginfo + CHECK_RESULT $? 0 0 "remove audit-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-debugsource.sh b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..31e35e886c3509eb2ff20f52bafe3f20c5f4f110 --- /dev/null +++ b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src audit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available audit-debugsource | grep -v \.src | grep audit-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm audit-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y audit-debugsource + CHECK_RESULT $? 0 0 "install audit-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y audit-debugsource + CHECK_RESULT $? 0 0 "remove audit-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-devel.sh b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e19cdfda7d6ac8dba43b7f85da5d7592b7d9624b --- /dev/null +++ b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src audit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available audit-devel | grep -v \.src | grep audit-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm audit-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y audit-devel + CHECK_RESULT $? 0 0 "install audit-devel failed" + SLEEP_WAIT 1 + dnf remove -y audit-devel + CHECK_RESULT $? 0 0 "remove audit-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-help.sh b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..82b5b82a0425ec71605b0050ca66fda8a089f2aa --- /dev/null +++ b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src audit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available audit-help | grep -v \.src | grep audit-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm audit-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y audit-help + CHECK_RESULT $? 0 0 "install audit-help failed" + SLEEP_WAIT 1 + dnf remove -y audit-help + CHECK_RESULT $? 0 0 "remove audit-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-libs.sh b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..ded4f7dee64d6732f3ccef0ac39807c9746d9be7 --- /dev/null +++ b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src audit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available audit-libs | grep -v \.src | grep audit-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm audit-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y audit-libs + CHECK_RESULT $? 0 0 "install audit-libs failed" + SLEEP_WAIT 1 + dnf remove -y audit-libs + CHECK_RESULT $? 0 0 "remove audit-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit.sh b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f1b8059f8659eb4e9237e49568fe78216df69a7 --- /dev/null +++ b/testcases/cli-test/audit/oe_test_audit_install_and_remove_audit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src audit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available audit | grep -v \.src | grep audit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm audit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y audit + CHECK_RESULT $? 0 0 "install audit failed" + SLEEP_WAIT 1 + dnf remove -y audit + CHECK_RESULT $? 0 0 "remove audit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/audit/oe_test_audit_install_and_remove_python2-audit.sh b/testcases/cli-test/audit/oe_test_audit_install_and_remove_python2-audit.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9e1afd38cd823110d327cb7b528db095ca73250 --- /dev/null +++ b/testcases/cli-test/audit/oe_test_audit_install_and_remove_python2-audit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src audit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-audit | grep -v \.src | grep python2-audit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-audit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-audit + CHECK_RESULT $? 0 0 "install python2-audit failed" + SLEEP_WAIT 1 + dnf remove -y python2-audit + CHECK_RESULT $? 0 0 "remove python2-audit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/audit/oe_test_audit_install_and_remove_python3-audit.sh b/testcases/cli-test/audit/oe_test_audit_install_and_remove_python3-audit.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd899bbfe8831b180e01b6a8de87c017f2cf9556 --- /dev/null +++ b/testcases/cli-test/audit/oe_test_audit_install_and_remove_python3-audit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src audit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-audit | grep -v \.src | grep python3-audit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-audit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-audit + CHECK_RESULT $? 0 0 "install python3-audit failed" + SLEEP_WAIT 1 + dnf remove -y python3-audit + CHECK_RESULT $? 0 0 "remove python3-audit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-debuginfo.sh b/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed08c2a9be73037f5182301c27cf172d4a8b9a8b --- /dev/null +++ b/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src augeas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available augeas-debuginfo | grep -v \.src | grep augeas-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm augeas-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y augeas-debuginfo + CHECK_RESULT $? 0 0 "install augeas-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y augeas-debuginfo + CHECK_RESULT $? 0 0 "remove augeas-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-debugsource.sh b/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d88fdeea4e0aa561656d270526eb4f23a4e34235 --- /dev/null +++ b/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src augeas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available augeas-debugsource | grep -v \.src | grep augeas-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm augeas-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y augeas-debugsource + CHECK_RESULT $? 0 0 "install augeas-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y augeas-debugsource + CHECK_RESULT $? 0 0 "remove augeas-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-devel.sh b/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcd49044cb1ae3cf3602ec65504cce840b0c1dd1 --- /dev/null +++ b/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src augeas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available augeas-devel | grep -v \.src | grep augeas-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm augeas-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y augeas-devel + CHECK_RESULT $? 0 0 "install augeas-devel failed" + SLEEP_WAIT 1 + dnf remove -y augeas-devel + CHECK_RESULT $? 0 0 "remove augeas-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-help.sh b/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..05e21ac3c6c995adcb5d1d316bd2249616f391b4 --- /dev/null +++ b/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src augeas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available augeas-help | grep -v \.src | grep augeas-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm augeas-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y augeas-help + CHECK_RESULT $? 0 0 "install augeas-help failed" + SLEEP_WAIT 1 + dnf remove -y augeas-help + CHECK_RESULT $? 0 0 "remove augeas-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas.sh b/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6ba248a0400b1bd85613620910c734c1a187e13 --- /dev/null +++ b/testcases/cli-test/augeas/oe_test_augeas_install_and_remove_augeas.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src augeas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available augeas | grep -v \.src | grep augeas + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm augeas" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y augeas + CHECK_RESULT $? 0 0 "install augeas failed" + SLEEP_WAIT 1 + dnf remove -y augeas + CHECK_RESULT $? 0 0 "remove augeas failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-compat.sh b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-compat.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c3d3cfd5e57774b6639520e3555df216ec9c982 --- /dev/null +++ b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-compat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src authselect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available authselect-compat | grep -v \.src | grep authselect-compat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm authselect-compat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y authselect-compat + CHECK_RESULT $? 0 0 "install authselect-compat failed" + SLEEP_WAIT 1 + dnf remove -y authselect-compat + CHECK_RESULT $? 0 0 "remove authselect-compat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-debuginfo.sh b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5653552007dacfdb48fa6e08dfe10a3e62942ebb --- /dev/null +++ b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src authselect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available authselect-debuginfo | grep -v \.src | grep authselect-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm authselect-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y authselect-debuginfo + CHECK_RESULT $? 0 0 "install authselect-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y authselect-debuginfo + CHECK_RESULT $? 0 0 "remove authselect-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-debugsource.sh b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d84d2df244ea040367bcc92851faf1b39767bd77 --- /dev/null +++ b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src authselect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available authselect-debugsource | grep -v \.src | grep authselect-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm authselect-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y authselect-debugsource + CHECK_RESULT $? 0 0 "install authselect-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y authselect-debugsource + CHECK_RESULT $? 0 0 "remove authselect-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-devel.sh b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6841bbc7fada9d64f8c4f97ba3486879cbb69225 --- /dev/null +++ b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src authselect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available authselect-devel | grep -v \.src | grep authselect-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm authselect-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y authselect-devel + CHECK_RESULT $? 0 0 "install authselect-devel failed" + SLEEP_WAIT 1 + dnf remove -y authselect-devel + CHECK_RESULT $? 0 0 "remove authselect-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-help.sh b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..353468c2b16299c1994f501e412d79594f60bace --- /dev/null +++ b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src authselect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available authselect-help | grep -v \.src | grep authselect-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm authselect-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y authselect-help + CHECK_RESULT $? 0 0 "install authselect-help failed" + SLEEP_WAIT 1 + dnf remove -y authselect-help + CHECK_RESULT $? 0 0 "remove authselect-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect.sh b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect.sh new file mode 100644 index 0000000000000000000000000000000000000000..839b09f0ef1c36cd249c417d11ace4471bf1a023 --- /dev/null +++ b/testcases/cli-test/authselect/oe_test_authselect_install_and_remove_authselect.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src authselect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available authselect | grep -v \.src | grep authselect + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm authselect" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y authselect + CHECK_RESULT $? 0 0 "install authselect failed" + SLEEP_WAIT 1 + dnf remove -y authselect + CHECK_RESULT $? 0 0 "remove authselect failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autoconf-archive/oe_test_autoconf-archive_install_and_remove_autoconf-archive.sh b/testcases/cli-test/autoconf-archive/oe_test_autoconf-archive_install_and_remove_autoconf-archive.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9bf1c061c6d92638ac43efc1d85d9c4db53e2ec --- /dev/null +++ b/testcases/cli-test/autoconf-archive/oe_test_autoconf-archive_install_and_remove_autoconf-archive.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autoconf-archive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autoconf-archive | grep -v \.src | grep autoconf-archive + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autoconf-archive" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autoconf-archive + CHECK_RESULT $? 0 0 "install autoconf-archive failed" + SLEEP_WAIT 1 + dnf remove -y autoconf-archive + CHECK_RESULT $? 0 0 "remove autoconf-archive failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autoconf/oe_test_autoconf_install_and_remove_autoconf-help.sh b/testcases/cli-test/autoconf/oe_test_autoconf_install_and_remove_autoconf-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d37e75270448dec89364b96f9b5620b7701e4198 --- /dev/null +++ b/testcases/cli-test/autoconf/oe_test_autoconf_install_and_remove_autoconf-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autoconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autoconf-help | grep -v \.src | grep autoconf-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autoconf-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autoconf-help + CHECK_RESULT $? 0 0 "install autoconf-help failed" + SLEEP_WAIT 1 + dnf remove -y autoconf-help + CHECK_RESULT $? 0 0 "remove autoconf-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autoconf/oe_test_autoconf_install_and_remove_autoconf.sh b/testcases/cli-test/autoconf/oe_test_autoconf_install_and_remove_autoconf.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa4c6723cc3a132cdde476b41cf67da4aa77022d --- /dev/null +++ b/testcases/cli-test/autoconf/oe_test_autoconf_install_and_remove_autoconf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autoconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autoconf | grep -v \.src | grep autoconf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autoconf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autoconf + CHECK_RESULT $? 0 0 "install autoconf failed" + SLEEP_WAIT 1 + dnf remove -y autoconf + CHECK_RESULT $? 0 0 "remove autoconf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-debuginfo.sh b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..52596d7bd5eaad0541240b0afef26dfe06e46de3 --- /dev/null +++ b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autogen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autogen-debuginfo | grep -v \.src | grep autogen-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autogen-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autogen-debuginfo + CHECK_RESULT $? 0 0 "install autogen-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y autogen-debuginfo + CHECK_RESULT $? 0 0 "remove autogen-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-debugsource.sh b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b220bac390c69b7d80bcf265e46d233265fcbe0a --- /dev/null +++ b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autogen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autogen-debugsource | grep -v \.src | grep autogen-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autogen-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autogen-debugsource + CHECK_RESULT $? 0 0 "install autogen-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y autogen-debugsource + CHECK_RESULT $? 0 0 "remove autogen-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-devel.sh b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..71809637d2b5509cb40360d7611fd78e7f364a1a --- /dev/null +++ b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autogen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autogen-devel | grep -v \.src | grep autogen-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autogen-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autogen-devel + CHECK_RESULT $? 0 0 "install autogen-devel failed" + SLEEP_WAIT 1 + dnf remove -y autogen-devel + CHECK_RESULT $? 0 0 "remove autogen-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-doc.sh b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd091ee84ef94588a5d8c8ee559b83368b80f128 --- /dev/null +++ b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autogen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autogen-doc | grep -v \.src | grep autogen-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autogen-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autogen-doc + CHECK_RESULT $? 0 0 "install autogen-doc failed" + SLEEP_WAIT 1 + dnf remove -y autogen-doc + CHECK_RESULT $? 0 0 "remove autogen-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-help.sh b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..04e38823db7bf4a845c451c7e1f8d1371d32c7e4 --- /dev/null +++ b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autogen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autogen-help | grep -v \.src | grep autogen-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autogen-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autogen-help + CHECK_RESULT $? 0 0 "install autogen-help failed" + SLEEP_WAIT 1 + dnf remove -y autogen-help + CHECK_RESULT $? 0 0 "remove autogen-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-libopts-devel.sh b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-libopts-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d4d17c9a4fd6768866153b1dfd0a66f165cc3e5 --- /dev/null +++ b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-libopts-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autogen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autogen-libopts-devel | grep -v \.src | grep autogen-libopts-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autogen-libopts-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autogen-libopts-devel + CHECK_RESULT $? 0 0 "install autogen-libopts-devel failed" + SLEEP_WAIT 1 + dnf remove -y autogen-libopts-devel + CHECK_RESULT $? 0 0 "remove autogen-libopts-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-libopts.sh b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-libopts.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d23f1f3d55da5ec8f262e2b7fae3c0c007f68de --- /dev/null +++ b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen-libopts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autogen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autogen-libopts | grep -v \.src | grep autogen-libopts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autogen-libopts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autogen-libopts + CHECK_RESULT $? 0 0 "install autogen-libopts failed" + SLEEP_WAIT 1 + dnf remove -y autogen-libopts + CHECK_RESULT $? 0 0 "remove autogen-libopts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen.sh b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7bb6187c170b583026b60bfe26f36081a3bac1e --- /dev/null +++ b/testcases/cli-test/autogen/oe_test_autogen_install_and_remove_autogen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src autogen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available autogen | grep -v \.src | grep autogen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm autogen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y autogen + CHECK_RESULT $? 0 0 "install autogen failed" + SLEEP_WAIT 1 + dnf remove -y autogen + CHECK_RESULT $? 0 0 "remove autogen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/automake/oe_test_automake_install_and_remove_automake-help.sh b/testcases/cli-test/automake/oe_test_automake_install_and_remove_automake-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d45ad3c7b7a816579d29d4a58081ba3ba8a93e4f --- /dev/null +++ b/testcases/cli-test/automake/oe_test_automake_install_and_remove_automake-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src automake +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available automake-help | grep -v \.src | grep automake-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm automake-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y automake-help + CHECK_RESULT $? 0 0 "install automake-help failed" + SLEEP_WAIT 1 + dnf remove -y automake-help + CHECK_RESULT $? 0 0 "remove automake-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/automake/oe_test_automake_install_and_remove_automake.sh b/testcases/cli-test/automake/oe_test_automake_install_and_remove_automake.sh new file mode 100644 index 0000000000000000000000000000000000000000..e299f90455ddc9c6839b64e2f45e40fc68c0cddd --- /dev/null +++ b/testcases/cli-test/automake/oe_test_automake_install_and_remove_automake.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src automake +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available automake | grep -v \.src | grep automake + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm automake" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y automake + CHECK_RESULT $? 0 0 "install automake failed" + SLEEP_WAIT 1 + dnf remove -y automake + CHECK_RESULT $? 0 0 "remove automake failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-autoipd.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-autoipd.sh new file mode 100644 index 0000000000000000000000000000000000000000..15993a4d7e4e29047c528f9a9b896f95a884d3e4 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-autoipd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-autoipd | grep -v \.src | grep avahi-autoipd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-autoipd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-autoipd + CHECK_RESULT $? 0 0 "install avahi-autoipd failed" + SLEEP_WAIT 1 + dnf remove -y avahi-autoipd + CHECK_RESULT $? 0 0 "remove avahi-autoipd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-howl-devel.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-howl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd6a8547138bd41f8dfca3f0680bd1f170c9150a --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-howl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-compat-howl-devel | grep -v \.src | grep avahi-compat-howl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-compat-howl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-compat-howl-devel + CHECK_RESULT $? 0 0 "install avahi-compat-howl-devel failed" + SLEEP_WAIT 1 + dnf remove -y avahi-compat-howl-devel + CHECK_RESULT $? 0 0 "remove avahi-compat-howl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-howl.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-howl.sh new file mode 100644 index 0000000000000000000000000000000000000000..2747063bd4f2441a87710b54f1d99622f383e59f --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-howl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-compat-howl | grep -v \.src | grep avahi-compat-howl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-compat-howl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-compat-howl + CHECK_RESULT $? 0 0 "install avahi-compat-howl failed" + SLEEP_WAIT 1 + dnf remove -y avahi-compat-howl + CHECK_RESULT $? 0 0 "remove avahi-compat-howl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-libdns_sd-devel.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-libdns_sd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d41080e2c32c8303215a87515c9a617407f452d --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-libdns_sd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-compat-libdns_sd-devel | grep -v \.src | grep avahi-compat-libdns_sd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-compat-libdns_sd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-compat-libdns_sd-devel + CHECK_RESULT $? 0 0 "install avahi-compat-libdns_sd-devel failed" + SLEEP_WAIT 1 + dnf remove -y avahi-compat-libdns_sd-devel + CHECK_RESULT $? 0 0 "remove avahi-compat-libdns_sd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-libdns_sd.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-libdns_sd.sh new file mode 100644 index 0000000000000000000000000000000000000000..3376cccb3f4d27276320ab838250e068df1b0dc4 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-compat-libdns_sd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-compat-libdns_sd | grep -v \.src | grep avahi-compat-libdns_sd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-compat-libdns_sd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-compat-libdns_sd + CHECK_RESULT $? 0 0 "install avahi-compat-libdns_sd failed" + SLEEP_WAIT 1 + dnf remove -y avahi-compat-libdns_sd + CHECK_RESULT $? 0 0 "remove avahi-compat-libdns_sd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-debuginfo.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0834d1da128ca243b4deee71eb79d8f280aa9c4 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-debuginfo | grep -v \.src | grep avahi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-debuginfo + CHECK_RESULT $? 0 0 "install avahi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y avahi-debuginfo + CHECK_RESULT $? 0 0 "remove avahi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-debugsource.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ba9e62c490e008474c8a59742959a0961a61488 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-debugsource | grep -v \.src | grep avahi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-debugsource + CHECK_RESULT $? 0 0 "install avahi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y avahi-debugsource + CHECK_RESULT $? 0 0 "remove avahi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-devel.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5d9ea4543836464d1efd4236b92dc86ec4cb531 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-devel | grep -v \.src | grep avahi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-devel + CHECK_RESULT $? 0 0 "install avahi-devel failed" + SLEEP_WAIT 1 + dnf remove -y avahi-devel + CHECK_RESULT $? 0 0 "remove avahi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-dnsconfd.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-dnsconfd.sh new file mode 100644 index 0000000000000000000000000000000000000000..05c8dbb492fed4c530718b978044871e280fcff8 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-dnsconfd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-dnsconfd | grep -v \.src | grep avahi-dnsconfd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-dnsconfd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-dnsconfd + CHECK_RESULT $? 0 0 "install avahi-dnsconfd failed" + SLEEP_WAIT 1 + dnf remove -y avahi-dnsconfd + CHECK_RESULT $? 0 0 "remove avahi-dnsconfd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-glib-devel.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-glib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb93f96c30680b524b0f215ab826b207a582e82f --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-glib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-glib-devel | grep -v \.src | grep avahi-glib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-glib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-glib-devel + CHECK_RESULT $? 0 0 "install avahi-glib-devel failed" + SLEEP_WAIT 1 + dnf remove -y avahi-glib-devel + CHECK_RESULT $? 0 0 "remove avahi-glib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-glib.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-glib.sh new file mode 100644 index 0000000000000000000000000000000000000000..2cd528feb4e9b1404b02ac694eb203e10133b5dd --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-glib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-glib | grep -v \.src | grep avahi-glib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-glib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-glib + CHECK_RESULT $? 0 0 "install avahi-glib failed" + SLEEP_WAIT 1 + dnf remove -y avahi-glib + CHECK_RESULT $? 0 0 "remove avahi-glib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-gobject-devel.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-gobject-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a493694f528ca9a6508b1d84071efd7745129de8 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-gobject-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-gobject-devel | grep -v \.src | grep avahi-gobject-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-gobject-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-gobject-devel + CHECK_RESULT $? 0 0 "install avahi-gobject-devel failed" + SLEEP_WAIT 1 + dnf remove -y avahi-gobject-devel + CHECK_RESULT $? 0 0 "remove avahi-gobject-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-gobject.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-gobject.sh new file mode 100644 index 0000000000000000000000000000000000000000..461242e3090c613081f38b2fd30f7360bc2aac5f --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-gobject.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-gobject | grep -v \.src | grep avahi-gobject + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-gobject" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-gobject + CHECK_RESULT $? 0 0 "install avahi-gobject failed" + SLEEP_WAIT 1 + dnf remove -y avahi-gobject + CHECK_RESULT $? 0 0 "remove avahi-gobject failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-help.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..27ee09ca1f6b483adfe285cb8a4a5fa5fa8bffd7 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-help | grep -v \.src | grep avahi-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-help + CHECK_RESULT $? 0 0 "install avahi-help failed" + SLEEP_WAIT 1 + dnf remove -y avahi-help + CHECK_RESULT $? 0 0 "remove avahi-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-libs.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..0da781d3e39a5134edb7faff56af3abb3c0dc763 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-libs | grep -v \.src | grep avahi-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-libs + CHECK_RESULT $? 0 0 "install avahi-libs failed" + SLEEP_WAIT 1 + dnf remove -y avahi-libs + CHECK_RESULT $? 0 0 "remove avahi-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-qt5-devel.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-qt5-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f5ed6a41ec75755cd66f5af1ac0c7cd476b20eb --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-qt5-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-qt5-devel | grep -v \.src | grep avahi-qt5-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-qt5-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-qt5-devel + CHECK_RESULT $? 0 0 "install avahi-qt5-devel failed" + SLEEP_WAIT 1 + dnf remove -y avahi-qt5-devel + CHECK_RESULT $? 0 0 "remove avahi-qt5-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-qt5.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-qt5.sh new file mode 100644 index 0000000000000000000000000000000000000000..0599fad03b3396ab07e93f8af09e0997a7d419eb --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-qt5.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-qt5 | grep -v \.src | grep avahi-qt5 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-qt5" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-qt5 + CHECK_RESULT $? 0 0 "install avahi-qt5 failed" + SLEEP_WAIT 1 + dnf remove -y avahi-qt5 + CHECK_RESULT $? 0 0 "remove avahi-qt5 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-tools.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..b55f704a7e8e0b28f418d683a4e617ae11d64e81 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-tools | grep -v \.src | grep avahi-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-tools + CHECK_RESULT $? 0 0 "install avahi-tools failed" + SLEEP_WAIT 1 + dnf remove -y avahi-tools + CHECK_RESULT $? 0 0 "remove avahi-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui-devel.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba579f89f23540f8912b38c250012eaffff4fa37 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-ui-devel | grep -v \.src | grep avahi-ui-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-ui-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-ui-devel + CHECK_RESULT $? 0 0 "install avahi-ui-devel failed" + SLEEP_WAIT 1 + dnf remove -y avahi-ui-devel + CHECK_RESULT $? 0 0 "remove avahi-ui-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui-gtk3.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui-gtk3.sh new file mode 100644 index 0000000000000000000000000000000000000000..e255a5aa60552acaba26cdb34c6dd0fd3c681172 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui-gtk3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-ui-gtk3 | grep -v \.src | grep avahi-ui-gtk3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-ui-gtk3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-ui-gtk3 + CHECK_RESULT $? 0 0 "install avahi-ui-gtk3 failed" + SLEEP_WAIT 1 + dnf remove -y avahi-ui-gtk3 + CHECK_RESULT $? 0 0 "remove avahi-ui-gtk3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui-tools.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..95796ed126799b3e9f09b6f2586b86df8aac9390 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-ui-tools | grep -v \.src | grep avahi-ui-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-ui-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-ui-tools + CHECK_RESULT $? 0 0 "install avahi-ui-tools failed" + SLEEP_WAIT 1 + dnf remove -y avahi-ui-tools + CHECK_RESULT $? 0 0 "remove avahi-ui-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui.sh new file mode 100644 index 0000000000000000000000000000000000000000..a29dd4326d56653f467161e15de4d83d363be24b --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi-ui.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi-ui | grep -v \.src | grep avahi-ui + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi-ui" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi-ui + CHECK_RESULT $? 0 0 "install avahi-ui failed" + SLEEP_WAIT 1 + dnf remove -y avahi-ui + CHECK_RESULT $? 0 0 "remove avahi-ui failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi.sh new file mode 100644 index 0000000000000000000000000000000000000000..76d6f7783d85113c0b688e02088e3abd9d19d2a7 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_avahi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available avahi | grep -v \.src | grep avahi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm avahi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y avahi + CHECK_RESULT $? 0 0 "install avahi failed" + SLEEP_WAIT 1 + dnf remove -y avahi + CHECK_RESULT $? 0 0 "remove avahi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_python2-avahi.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_python2-avahi.sh new file mode 100644 index 0000000000000000000000000000000000000000..73385b768afcd9dfccd69ecc535a58ff4a520427 --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_python2-avahi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-avahi | grep -v \.src | grep python2-avahi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-avahi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-avahi + CHECK_RESULT $? 0 0 "install python2-avahi failed" + SLEEP_WAIT 1 + dnf remove -y python2-avahi + CHECK_RESULT $? 0 0 "remove python2-avahi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_python3-avahi.sh b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_python3-avahi.sh new file mode 100644 index 0000000000000000000000000000000000000000..966f6cc6112b30673bbd91f7f76db9ea4d270f1f --- /dev/null +++ b/testcases/cli-test/avahi/oe_test_avahi_install_and_remove_python3-avahi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src avahi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-avahi | grep -v \.src | grep python3-avahi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-avahi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-avahi + CHECK_RESULT $? 0 0 "install python3-avahi failed" + SLEEP_WAIT 1 + dnf remove -y python3-avahi + CHECK_RESULT $? 0 0 "remove python3-avahi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/b43-openfwwf/oe_test_b43-openfwwf_install_and_remove_b43-openfwwf-help.sh b/testcases/cli-test/b43-openfwwf/oe_test_b43-openfwwf_install_and_remove_b43-openfwwf-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e0361c621546570f3c73f5ea909f95ff94a6f5b --- /dev/null +++ b/testcases/cli-test/b43-openfwwf/oe_test_b43-openfwwf_install_and_remove_b43-openfwwf-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src b43-openfwwf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available b43-openfwwf-help | grep -v \.src | grep b43-openfwwf-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm b43-openfwwf-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y b43-openfwwf-help + CHECK_RESULT $? 0 0 "install b43-openfwwf-help failed" + SLEEP_WAIT 1 + dnf remove -y b43-openfwwf-help + CHECK_RESULT $? 0 0 "remove b43-openfwwf-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/b43-openfwwf/oe_test_b43-openfwwf_install_and_remove_b43-openfwwf.sh b/testcases/cli-test/b43-openfwwf/oe_test_b43-openfwwf_install_and_remove_b43-openfwwf.sh new file mode 100644 index 0000000000000000000000000000000000000000..08f8b3c99429016fa76afc5491d8d49cdcf2d73a --- /dev/null +++ b/testcases/cli-test/b43-openfwwf/oe_test_b43-openfwwf_install_and_remove_b43-openfwwf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src b43-openfwwf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available b43-openfwwf | grep -v \.src | grep b43-openfwwf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm b43-openfwwf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y b43-openfwwf + CHECK_RESULT $? 0 0 "install b43-openfwwf failed" + SLEEP_WAIT 1 + dnf remove -y b43-openfwwf + CHECK_RESULT $? 0 0 "remove b43-openfwwf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/b43-tools/oe_test_b43-tools_install_and_remove_b43-tools-debuginfo.sh b/testcases/cli-test/b43-tools/oe_test_b43-tools_install_and_remove_b43-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c682d85ec03426617039e791566ea04fe1a3f1f --- /dev/null +++ b/testcases/cli-test/b43-tools/oe_test_b43-tools_install_and_remove_b43-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src b43-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available b43-tools-debuginfo | grep -v \.src | grep b43-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm b43-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y b43-tools-debuginfo + CHECK_RESULT $? 0 0 "install b43-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y b43-tools-debuginfo + CHECK_RESULT $? 0 0 "remove b43-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/b43-tools/oe_test_b43-tools_install_and_remove_b43-tools-debugsource.sh b/testcases/cli-test/b43-tools/oe_test_b43-tools_install_and_remove_b43-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8af41b37476c7d9b35bf3289ed17f0679cb52108 --- /dev/null +++ b/testcases/cli-test/b43-tools/oe_test_b43-tools_install_and_remove_b43-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src b43-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available b43-tools-debugsource | grep -v \.src | grep b43-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm b43-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y b43-tools-debugsource + CHECK_RESULT $? 0 0 "install b43-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y b43-tools-debugsource + CHECK_RESULT $? 0 0 "remove b43-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/b43-tools/oe_test_b43-tools_install_and_remove_b43-tools.sh b/testcases/cli-test/b43-tools/oe_test_b43-tools_install_and_remove_b43-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..594b4cf7e8e948e652fcb3f271f315feaae6ade7 --- /dev/null +++ b/testcases/cli-test/b43-tools/oe_test_b43-tools_install_and_remove_b43-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src b43-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available b43-tools | grep -v \.src | grep b43-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm b43-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y b43-tools + CHECK_RESULT $? 0 0 "install b43-tools failed" + SLEEP_WAIT 1 + dnf remove -y b43-tools + CHECK_RESULT $? 0 0 "remove b43-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/babel/oe_test_babel_install_and_remove_babel-help.sh b/testcases/cli-test/babel/oe_test_babel_install_and_remove_babel-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1abbcd8091f29dc8e2b8d44dd6a5c2ad517b3754 --- /dev/null +++ b/testcases/cli-test/babel/oe_test_babel_install_and_remove_babel-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src babel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available babel-help | grep -v \.src | grep babel-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm babel-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y babel-help + CHECK_RESULT $? 0 0 "install babel-help failed" + SLEEP_WAIT 1 + dnf remove -y babel-help + CHECK_RESULT $? 0 0 "remove babel-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/babel/oe_test_babel_install_and_remove_babel.sh b/testcases/cli-test/babel/oe_test_babel_install_and_remove_babel.sh new file mode 100644 index 0000000000000000000000000000000000000000..036cc873129b2c9fbbad56b5456e82fb9e2d5deb --- /dev/null +++ b/testcases/cli-test/babel/oe_test_babel_install_and_remove_babel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src babel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available babel | grep -v \.src | grep babel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm babel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y babel + CHECK_RESULT $? 0 0 "install babel failed" + SLEEP_WAIT 1 + dnf remove -y babel + CHECK_RESULT $? 0 0 "remove babel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/babel/oe_test_babel_install_and_remove_python2-babel.sh b/testcases/cli-test/babel/oe_test_babel_install_and_remove_python2-babel.sh new file mode 100644 index 0000000000000000000000000000000000000000..014a571dfce09baca01caf5b1f89e3c0122e62a8 --- /dev/null +++ b/testcases/cli-test/babel/oe_test_babel_install_and_remove_python2-babel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src babel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-babel | grep -v \.src | grep python2-babel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-babel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-babel + CHECK_RESULT $? 0 0 "install python2-babel failed" + SLEEP_WAIT 1 + dnf remove -y python2-babel + CHECK_RESULT $? 0 0 "remove python2-babel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/babel/oe_test_babel_install_and_remove_python3-babel.sh b/testcases/cli-test/babel/oe_test_babel_install_and_remove_python3-babel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c04139424c229238dce2c50ef8a7aff863a91d65 --- /dev/null +++ b/testcases/cli-test/babel/oe_test_babel_install_and_remove_python3-babel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src babel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-babel | grep -v \.src | grep python3-babel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-babel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-babel + CHECK_RESULT $? 0 0 "install python3-babel failed" + SLEEP_WAIT 1 + dnf remove -y python3-babel + CHECK_RESULT $? 0 0 "remove python3-babel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace-debuginfo.sh b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..72b94fa0ee5d44f5265ddd6e38a5fb53ab3f3653 --- /dev/null +++ b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src babeltrace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available babeltrace-debuginfo | grep -v \.src | grep babeltrace-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm babeltrace-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y babeltrace-debuginfo + CHECK_RESULT $? 0 0 "install babeltrace-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y babeltrace-debuginfo + CHECK_RESULT $? 0 0 "remove babeltrace-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace-debugsource.sh b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..02766068f23ea9da41a46ddfef9a8b72f70aa399 --- /dev/null +++ b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src babeltrace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available babeltrace-debugsource | grep -v \.src | grep babeltrace-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm babeltrace-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y babeltrace-debugsource + CHECK_RESULT $? 0 0 "install babeltrace-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y babeltrace-debugsource + CHECK_RESULT $? 0 0 "remove babeltrace-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace-help.sh b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..57751468ecfdc06433e176adddc213d7e34d26b5 --- /dev/null +++ b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src babeltrace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available babeltrace-help | grep -v \.src | grep babeltrace-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm babeltrace-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y babeltrace-help + CHECK_RESULT $? 0 0 "install babeltrace-help failed" + SLEEP_WAIT 1 + dnf remove -y babeltrace-help + CHECK_RESULT $? 0 0 "remove babeltrace-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace.sh b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace.sh new file mode 100644 index 0000000000000000000000000000000000000000..c46e0faf70ce31a506e9391149a2052bc61d2229 --- /dev/null +++ b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_babeltrace.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src babeltrace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available babeltrace | grep -v \.src | grep babeltrace + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm babeltrace" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y babeltrace + CHECK_RESULT $? 0 0 "install babeltrace failed" + SLEEP_WAIT 1 + dnf remove -y babeltrace + CHECK_RESULT $? 0 0 "remove babeltrace failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_libbabeltrace-devel.sh b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_libbabeltrace-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5416b8fa91785856d8dfd46439596c7af1e969f --- /dev/null +++ b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_libbabeltrace-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src babeltrace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbabeltrace-devel | grep -v \.src | grep libbabeltrace-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbabeltrace-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbabeltrace-devel + CHECK_RESULT $? 0 0 "install libbabeltrace-devel failed" + SLEEP_WAIT 1 + dnf remove -y libbabeltrace-devel + CHECK_RESULT $? 0 0 "remove libbabeltrace-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_python3-babeltrace.sh b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_python3-babeltrace.sh new file mode 100644 index 0000000000000000000000000000000000000000..dabebe80a30001f5c7726894c3eca1ef4329b848 --- /dev/null +++ b/testcases/cli-test/babeltrace/oe_test_babeltrace_install_and_remove_python3-babeltrace.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src babeltrace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-babeltrace | grep -v \.src | grep python3-babeltrace + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-babeltrace" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-babeltrace + CHECK_RESULT $? 0 0 "install python3-babeltrace failed" + SLEEP_WAIT 1 + dnf remove -y python3-babeltrace + CHECK_RESULT $? 0 0 "remove python3-babeltrace failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/basesystem/oe_test_basesystem_install_and_remove_basesystem.sh b/testcases/cli-test/basesystem/oe_test_basesystem_install_and_remove_basesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..525443bff59f49da655bde4941f5cb84172d53cc --- /dev/null +++ b/testcases/cli-test/basesystem/oe_test_basesystem_install_and_remove_basesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src basesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available basesystem | grep -v \.src | grep basesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm basesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y basesystem + CHECK_RESULT $? 0 0 "install basesystem failed" + SLEEP_WAIT 1 + dnf remove -y basesystem + CHECK_RESULT $? 0 0 "remove basesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bash-completion/oe_test_bash-completion_install_and_remove_bash-completion-help.sh b/testcases/cli-test/bash-completion/oe_test_bash-completion_install_and_remove_bash-completion-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..df3bd6cfef7e4663e7600148e901cb6e6c37c68f --- /dev/null +++ b/testcases/cli-test/bash-completion/oe_test_bash-completion_install_and_remove_bash-completion-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bash-completion +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bash-completion-help | grep -v \.src | grep bash-completion-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bash-completion-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bash-completion-help + CHECK_RESULT $? 0 0 "install bash-completion-help failed" + SLEEP_WAIT 1 + dnf remove -y bash-completion-help + CHECK_RESULT $? 0 0 "remove bash-completion-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bash-completion/oe_test_bash-completion_install_and_remove_bash-completion.sh b/testcases/cli-test/bash-completion/oe_test_bash-completion_install_and_remove_bash-completion.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd68ba9a05cc200f39ffb02cd708c9e06fb89b2a --- /dev/null +++ b/testcases/cli-test/bash-completion/oe_test_bash-completion_install_and_remove_bash-completion.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bash-completion +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bash-completion | grep -v \.src | grep bash-completion + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bash-completion" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bash-completion + CHECK_RESULT $? 0 0 "install bash-completion failed" + SLEEP_WAIT 1 + dnf remove -y bash-completion + CHECK_RESULT $? 0 0 "remove bash-completion failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-debuginfo.sh b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..facfea51c893272faaab8e1ec4601bdb916afecf --- /dev/null +++ b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bash-debuginfo | grep -v \.src | grep bash-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bash-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bash-debuginfo + CHECK_RESULT $? 0 0 "install bash-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y bash-debuginfo + CHECK_RESULT $? 0 0 "remove bash-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-debugsource.sh b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..efd7b61cfdb6d6489760ef2f7b012a88649a55c2 --- /dev/null +++ b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bash-debugsource | grep -v \.src | grep bash-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bash-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bash-debugsource + CHECK_RESULT $? 0 0 "install bash-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y bash-debugsource + CHECK_RESULT $? 0 0 "remove bash-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-devel.sh b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a8d503daa338988d6e926d7a1baf001ea933554 --- /dev/null +++ b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bash-devel | grep -v \.src | grep bash-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bash-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bash-devel + CHECK_RESULT $? 0 0 "install bash-devel failed" + SLEEP_WAIT 1 + dnf remove -y bash-devel + CHECK_RESULT $? 0 0 "remove bash-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-doc.sh b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8164e7cc0ba6c8c6bff3645855b2cde1c3faf20d --- /dev/null +++ b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bash-doc | grep -v \.src | grep bash-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bash-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bash-doc + CHECK_RESULT $? 0 0 "install bash-doc failed" + SLEEP_WAIT 1 + dnf remove -y bash-doc + CHECK_RESULT $? 0 0 "remove bash-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-help.sh b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..53ce04b249cfa10470e8844c0d503fad71f60549 --- /dev/null +++ b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bash-help | grep -v \.src | grep bash-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bash-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bash-help + CHECK_RESULT $? 0 0 "install bash-help failed" + SLEEP_WAIT 1 + dnf remove -y bash-help + CHECK_RESULT $? 0 0 "remove bash-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-relocation.sh b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-relocation.sh new file mode 100644 index 0000000000000000000000000000000000000000..a236bb302e9158c0083f3dce9acdd0d870a0291f --- /dev/null +++ b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash-relocation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bash-relocation | grep -v \.src | grep bash-relocation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bash-relocation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bash-relocation + CHECK_RESULT $? 0 0 "install bash-relocation failed" + SLEEP_WAIT 1 + dnf remove -y bash-relocation + CHECK_RESULT $? 0 0 "remove bash-relocation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash.sh b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fda3ae8e01112dbda38220bc8b3d5a48cac9f77 --- /dev/null +++ b/testcases/cli-test/bash/oe_test_bash_install_and_remove_bash.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bash | grep -v \.src | grep bash + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bash" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bash + CHECK_RESULT $? 0 0 "install bash failed" + SLEEP_WAIT 1 + dnf remove -y bash + CHECK_RESULT $? 0 0 "remove bash failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc-debuginfo.sh b/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6d88bff54ad86f7d7c4e71880d933660d16178d --- /dev/null +++ b/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bc-debuginfo | grep -v \.src | grep bc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bc-debuginfo + CHECK_RESULT $? 0 0 "install bc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y bc-debuginfo + CHECK_RESULT $? 0 0 "remove bc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc-debugsource.sh b/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..444042b3eb412e29320c1b715eb3c48af7d16c79 --- /dev/null +++ b/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bc-debugsource | grep -v \.src | grep bc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bc-debugsource + CHECK_RESULT $? 0 0 "install bc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y bc-debugsource + CHECK_RESULT $? 0 0 "remove bc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc-help.sh b/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d351d52e493f32c22c7c3ba43527b132beeb12a5 --- /dev/null +++ b/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bc-help | grep -v \.src | grep bc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bc-help + CHECK_RESULT $? 0 0 "install bc-help failed" + SLEEP_WAIT 1 + dnf remove -y bc-help + CHECK_RESULT $? 0 0 "remove bc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc.sh b/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5b0bff84e6e4b00329be9da740cd7b4a543044c --- /dev/null +++ b/testcases/cli-test/bc/oe_test_bc_install_and_remove_bc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bc | grep -v \.src | grep bc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bc + CHECK_RESULT $? 0 0 "install bc failed" + SLEEP_WAIT 1 + dnf remove -y bc + CHECK_RESULT $? 0 0 "remove bc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bcel/oe_test_bcel_install_and_remove_bcel.sh b/testcases/cli-test/bcel/oe_test_bcel_install_and_remove_bcel.sh new file mode 100644 index 0000000000000000000000000000000000000000..77ebabc0544a86e096c334a19d0f532377374a6f --- /dev/null +++ b/testcases/cli-test/bcel/oe_test_bcel_install_and_remove_bcel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bcel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bcel | grep -v \.src | grep bcel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bcel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bcel + CHECK_RESULT $? 0 0 "install bcel failed" + SLEEP_WAIT 1 + dnf remove -y bcel + CHECK_RESULT $? 0 0 "remove bcel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/beakerlib/oe_test_beakerlib_install_and_remove_beakerlib-help.sh b/testcases/cli-test/beakerlib/oe_test_beakerlib_install_and_remove_beakerlib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfbe1342e9b2706b5c2eaf2af9084e2c85923eb1 --- /dev/null +++ b/testcases/cli-test/beakerlib/oe_test_beakerlib_install_and_remove_beakerlib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src beakerlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available beakerlib-help | grep -v \.src | grep beakerlib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm beakerlib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y beakerlib-help + CHECK_RESULT $? 0 0 "install beakerlib-help failed" + SLEEP_WAIT 1 + dnf remove -y beakerlib-help + CHECK_RESULT $? 0 0 "remove beakerlib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/beakerlib/oe_test_beakerlib_install_and_remove_beakerlib-vim-syntax.sh b/testcases/cli-test/beakerlib/oe_test_beakerlib_install_and_remove_beakerlib-vim-syntax.sh new file mode 100644 index 0000000000000000000000000000000000000000..953b5c81b3492b5e1f76f190c4660712792065f6 --- /dev/null +++ b/testcases/cli-test/beakerlib/oe_test_beakerlib_install_and_remove_beakerlib-vim-syntax.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src beakerlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available beakerlib-vim-syntax | grep -v \.src | grep beakerlib-vim-syntax + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm beakerlib-vim-syntax" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y beakerlib-vim-syntax + CHECK_RESULT $? 0 0 "install beakerlib-vim-syntax failed" + SLEEP_WAIT 1 + dnf remove -y beakerlib-vim-syntax + CHECK_RESULT $? 0 0 "remove beakerlib-vim-syntax failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/beakerlib/oe_test_beakerlib_install_and_remove_beakerlib.sh b/testcases/cli-test/beakerlib/oe_test_beakerlib_install_and_remove_beakerlib.sh new file mode 100644 index 0000000000000000000000000000000000000000..06a04a0870eac04ad91df2cbb727e4804828f961 --- /dev/null +++ b/testcases/cli-test/beakerlib/oe_test_beakerlib_install_and_remove_beakerlib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src beakerlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available beakerlib | grep -v \.src | grep beakerlib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm beakerlib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y beakerlib + CHECK_RESULT $? 0 0 "install beakerlib failed" + SLEEP_WAIT 1 + dnf remove -y beakerlib + CHECK_RESULT $? 0 0 "remove beakerlib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-chroot.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-chroot.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a128eaf505ab1fab3b9117ac00931597e5607b7 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-chroot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-chroot | grep -v \.src | grep bind-chroot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-chroot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-chroot + CHECK_RESULT $? 0 0 "install bind-chroot failed" + SLEEP_WAIT 1 + dnf remove -y bind-chroot + CHECK_RESULT $? 0 0 "remove bind-chroot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-debuginfo.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b34523df216c9c786ac3149493bf5bd04acab53c --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-debuginfo | grep -v \.src | grep bind-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-debuginfo + CHECK_RESULT $? 0 0 "install bind-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y bind-debuginfo + CHECK_RESULT $? 0 0 "remove bind-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-debugsource.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac3198661bd462ab7fa8d20fe39e92e7a65c9f45 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-debugsource | grep -v \.src | grep bind-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-debugsource + CHECK_RESULT $? 0 0 "install bind-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y bind-debugsource + CHECK_RESULT $? 0 0 "remove bind-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-devel.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..30416e58b30e5a30b82ba31c4288b88ca80f75bf --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-devel | grep -v \.src | grep bind-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-devel + CHECK_RESULT $? 0 0 "install bind-devel failed" + SLEEP_WAIT 1 + dnf remove -y bind-devel + CHECK_RESULT $? 0 0 "remove bind-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-dnssec-doc.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-dnssec-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f335a71766859bcccab94103cab7976e9fa76955 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-dnssec-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-dnssec-doc | grep -v \.src | grep bind-dnssec-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-dnssec-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-dnssec-doc + CHECK_RESULT $? 0 0 "install bind-dnssec-doc failed" + SLEEP_WAIT 1 + dnf remove -y bind-dnssec-doc + CHECK_RESULT $? 0 0 "remove bind-dnssec-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-dnssec-utils.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-dnssec-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..2de9d4b030fca40284e0c6fe2ed0ed16cb71423a --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-dnssec-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-dnssec-utils | grep -v \.src | grep bind-dnssec-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-dnssec-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-dnssec-utils + CHECK_RESULT $? 0 0 "install bind-dnssec-utils failed" + SLEEP_WAIT 1 + dnf remove -y bind-dnssec-utils + CHECK_RESULT $? 0 0 "remove bind-dnssec-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-export-devel.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-export-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfdfa955cf791899c41d5ec3b43182da56d2e467 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-export-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-export-devel | grep -v \.src | grep bind-export-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-export-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-export-devel + CHECK_RESULT $? 0 0 "install bind-export-devel failed" + SLEEP_WAIT 1 + dnf remove -y bind-export-devel + CHECK_RESULT $? 0 0 "remove bind-export-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-export-libs.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-export-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d6bb3e44a874fabccc674c0eeedb7ff5c6bd8fb --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-export-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-export-libs | grep -v \.src | grep bind-export-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-export-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-export-libs + CHECK_RESULT $? 0 0 "install bind-export-libs failed" + SLEEP_WAIT 1 + dnf remove -y bind-export-libs + CHECK_RESULT $? 0 0 "remove bind-export-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-libs-lite.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-libs-lite.sh new file mode 100644 index 0000000000000000000000000000000000000000..66825117742b28b381e6842721409a851ff9e56e --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-libs-lite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-libs-lite | grep -v \.src | grep bind-libs-lite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-libs-lite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-libs-lite + CHECK_RESULT $? 0 0 "install bind-libs-lite failed" + SLEEP_WAIT 1 + dnf remove -y bind-libs-lite + CHECK_RESULT $? 0 0 "remove bind-libs-lite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-libs.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5f2dede1521352f0d60b2d2df1c7f762f9b29b5 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-libs | grep -v \.src | grep bind-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-libs + CHECK_RESULT $? 0 0 "install bind-libs failed" + SLEEP_WAIT 1 + dnf remove -y bind-libs + CHECK_RESULT $? 0 0 "remove bind-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-license.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-license.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2177bfe7e732af6475a0b6e23aa8d1ceafa4441 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-license.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-license | grep -v \.src | grep bind-license + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-license" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-license + CHECK_RESULT $? 0 0 "install bind-license failed" + SLEEP_WAIT 1 + dnf remove -y bind-license + CHECK_RESULT $? 0 0 "remove bind-license failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11-devel.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..80962385f97cc005ebe2179a3614681cd277f533 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-pkcs11-devel | grep -v \.src | grep bind-pkcs11-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-pkcs11-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-pkcs11-devel + CHECK_RESULT $? 0 0 "install bind-pkcs11-devel failed" + SLEEP_WAIT 1 + dnf remove -y bind-pkcs11-devel + CHECK_RESULT $? 0 0 "remove bind-pkcs11-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11-libs.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..eee9fa7e419d2ba279c4ba3a73f0626c6abe0d74 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-pkcs11-libs | grep -v \.src | grep bind-pkcs11-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-pkcs11-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-pkcs11-libs + CHECK_RESULT $? 0 0 "install bind-pkcs11-libs failed" + SLEEP_WAIT 1 + dnf remove -y bind-pkcs11-libs + CHECK_RESULT $? 0 0 "remove bind-pkcs11-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11-utils.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..145cb8aee2153d75ff932e4c3ddfd3facf0cc00c --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-pkcs11-utils | grep -v \.src | grep bind-pkcs11-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-pkcs11-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-pkcs11-utils + CHECK_RESULT $? 0 0 "install bind-pkcs11-utils failed" + SLEEP_WAIT 1 + dnf remove -y bind-pkcs11-utils + CHECK_RESULT $? 0 0 "remove bind-pkcs11-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11.sh new file mode 100644 index 0000000000000000000000000000000000000000..10a070aa14417c4ba301d22b944a219eb36f0390 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-pkcs11.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-pkcs11 | grep -v \.src | grep bind-pkcs11 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-pkcs11" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-pkcs11 + CHECK_RESULT $? 0 0 "install bind-pkcs11 failed" + SLEEP_WAIT 1 + dnf remove -y bind-pkcs11 + CHECK_RESULT $? 0 0 "remove bind-pkcs11 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-sdb-chroot.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-sdb-chroot.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b4b49623fe20ef80a4f3aee4faa182399477fdb --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-sdb-chroot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-sdb-chroot | grep -v \.src | grep bind-sdb-chroot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-sdb-chroot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-sdb-chroot + CHECK_RESULT $? 0 0 "install bind-sdb-chroot failed" + SLEEP_WAIT 1 + dnf remove -y bind-sdb-chroot + CHECK_RESULT $? 0 0 "remove bind-sdb-chroot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-sdb.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-sdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd26d42c8c63c1d70a9edf4a49207262683a0779 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-sdb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-sdb | grep -v \.src | grep bind-sdb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-sdb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-sdb + CHECK_RESULT $? 0 0 "install bind-sdb failed" + SLEEP_WAIT 1 + dnf remove -y bind-sdb + CHECK_RESULT $? 0 0 "remove bind-sdb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-utils.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..59f2eb0117103aea0e52e55ae4eb46b6cc9a5eb8 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind-utils | grep -v \.src | grep bind-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind-utils + CHECK_RESULT $? 0 0 "install bind-utils failed" + SLEEP_WAIT 1 + dnf remove -y bind-utils + CHECK_RESULT $? 0 0 "remove bind-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9f7f11d1597f63b9d62decc8c9d10ca253976c4 --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_bind.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bind | grep -v \.src | grep bind + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bind" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bind + CHECK_RESULT $? 0 0 "install bind failed" + SLEEP_WAIT 1 + dnf remove -y bind + CHECK_RESULT $? 0 0 "remove bind failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bind/oe_test_bind_install_and_remove_python3-bind.sh b/testcases/cli-test/bind/oe_test_bind_install_and_remove_python3-bind.sh new file mode 100644 index 0000000000000000000000000000000000000000..312e020b088c1ae5852bbd85a68db643f7576bfc --- /dev/null +++ b/testcases/cli-test/bind/oe_test_bind_install_and_remove_python3-bind.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-bind | grep -v \.src | grep python3-bind + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-bind" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-bind + CHECK_RESULT $? 0 0 "install python3-bind failed" + SLEEP_WAIT 1 + dnf remove -y python3-bind + CHECK_RESULT $? 0 0 "remove python3-bind failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-debuginfo.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d6d899fbcf0f65e0ad37b4c9e6737abb9ebd3e4 --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available binutils-debuginfo | grep -v \.src | grep binutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm binutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y binutils-debuginfo + CHECK_RESULT $? 0 0 "install binutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y binutils-debuginfo + CHECK_RESULT $? 0 0 "remove binutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-debugsource.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb04a86ea931d08d0c443c142c9419edd3ecc202 --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available binutils-debugsource | grep -v \.src | grep binutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm binutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y binutils-debugsource + CHECK_RESULT $? 0 0 "install binutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y binutils-debugsource + CHECK_RESULT $? 0 0 "remove binutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-devel.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..36f5b80e78850f82f0c12171130ed288031a0dcf --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available binutils-devel | grep -v \.src | grep binutils-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm binutils-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y binutils-devel + CHECK_RESULT $? 0 0 "install binutils-devel failed" + SLEEP_WAIT 1 + dnf remove -y binutils-devel + CHECK_RESULT $? 0 0 "remove binutils-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-gold.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-gold.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c5f2dda09a301c933a9f6f5f53d1f7ad3951499 --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-gold.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available binutils-gold | grep -v \.src | grep binutils-gold + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm binutils-gold" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y binutils-gold + CHECK_RESULT $? 0 0 "install binutils-gold failed" + SLEEP_WAIT 1 + dnf remove -y binutils-gold + CHECK_RESULT $? 0 0 "remove binutils-gold failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-gprofng.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-gprofng.sh new file mode 100644 index 0000000000000000000000000000000000000000..569f0d6d3f8bfcb95f80b4e0ac4755ed5a4b274b --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-gprofng.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available binutils-gprofng | grep -v \.src | grep binutils-gprofng + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm binutils-gprofng" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y binutils-gprofng + CHECK_RESULT $? 0 0 "install binutils-gprofng failed" + SLEEP_WAIT 1 + dnf remove -y binutils-gprofng + CHECK_RESULT $? 0 0 "remove binutils-gprofng failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-help.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e30294fde93720c521748c467465b358c695b831 --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available binutils-help | grep -v \.src | grep binutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm binutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y binutils-help + CHECK_RESULT $? 0 0 "install binutils-help failed" + SLEEP_WAIT 1 + dnf remove -y binutils-help + CHECK_RESULT $? 0 0 "remove binutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7638f508d6f154b5582277b943ffc7a32e4887a --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_binutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available binutils | grep -v \.src | grep binutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm binutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y binutils + CHECK_RESULT $? 0 0 "install binutils failed" + SLEEP_WAIT 1 + dnf remove -y binutils + CHECK_RESULT $? 0 0 "remove binutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-aarch64.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-aarch64.sh new file mode 100644 index 0000000000000000000000000000000000000000..928e6dd84170bd771cc2e546a860734134950086 --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-aarch64.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cross-binutils-aarch64 | grep -v \.src | grep cross-binutils-aarch64 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cross-binutils-aarch64" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cross-binutils-aarch64 + CHECK_RESULT $? 0 0 "install cross-binutils-aarch64 failed" + SLEEP_WAIT 1 + dnf remove -y cross-binutils-aarch64 + CHECK_RESULT $? 0 0 "remove cross-binutils-aarch64 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-ppc64le.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-ppc64le.sh new file mode 100644 index 0000000000000000000000000000000000000000..72f6878e3eabb7dab86ca636b500ce4193d1b4ba --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-ppc64le.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cross-binutils-ppc64le | grep -v \.src | grep cross-binutils-ppc64le + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cross-binutils-ppc64le" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cross-binutils-ppc64le + CHECK_RESULT $? 0 0 "install cross-binutils-ppc64le failed" + SLEEP_WAIT 1 + dnf remove -y cross-binutils-ppc64le + CHECK_RESULT $? 0 0 "remove cross-binutils-ppc64le failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-s390x.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-s390x.sh new file mode 100644 index 0000000000000000000000000000000000000000..23a5b0e5b28afd31519621fadc2e178d452f8c9f --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-s390x.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cross-binutils-s390x | grep -v \.src | grep cross-binutils-s390x + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cross-binutils-s390x" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cross-binutils-s390x + CHECK_RESULT $? 0 0 "install cross-binutils-s390x failed" + SLEEP_WAIT 1 + dnf remove -y cross-binutils-s390x + CHECK_RESULT $? 0 0 "remove cross-binutils-s390x failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-x86_64.sh b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-x86_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..debd31974e7e5f1f52a4c787c11d571ed4128643 --- /dev/null +++ b/testcases/cli-test/binutils/oe_test_binutils_install_and_remove_cross-binutils-x86_64.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src binutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cross-binutils-x86_64 | grep -v \.src | grep cross-binutils-x86_64 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cross-binutils-x86_64" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cross-binutils-x86_64 + CHECK_RESULT $? 0 0 "install cross-binutils-x86_64 failed" + SLEEP_WAIT 1 + dnf remove -y cross-binutils-x86_64 + CHECK_RESULT $? 0 0 "remove cross-binutils-x86_64 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-debuginfo.sh b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0885dfa6e69ca0c96b9b86b414bd0609fad994d --- /dev/null +++ b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bison +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bison-debuginfo | grep -v \.src | grep bison-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bison-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bison-debuginfo + CHECK_RESULT $? 0 0 "install bison-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y bison-debuginfo + CHECK_RESULT $? 0 0 "remove bison-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-debugsource.sh b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2712879871039c63cd131b58430f18e92e6a02c3 --- /dev/null +++ b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bison +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bison-debugsource | grep -v \.src | grep bison-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bison-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bison-debugsource + CHECK_RESULT $? 0 0 "install bison-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y bison-debugsource + CHECK_RESULT $? 0 0 "remove bison-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-devel.sh b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1068ac7afe172b8850340b41f45f068a0ce3e3f3 --- /dev/null +++ b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bison +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bison-devel | grep -v \.src | grep bison-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bison-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bison-devel + CHECK_RESULT $? 0 0 "install bison-devel failed" + SLEEP_WAIT 1 + dnf remove -y bison-devel + CHECK_RESULT $? 0 0 "remove bison-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-help.sh b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..be16cc75419917a001ea20c3a24dcb785d847d5d --- /dev/null +++ b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bison +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bison-help | grep -v \.src | grep bison-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bison-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bison-help + CHECK_RESULT $? 0 0 "install bison-help failed" + SLEEP_WAIT 1 + dnf remove -y bison-help + CHECK_RESULT $? 0 0 "remove bison-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-lang.sh b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-lang.sh new file mode 100644 index 0000000000000000000000000000000000000000..821ed75f8e088d82b037d8babac6b2c08a099cce --- /dev/null +++ b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison-lang.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bison +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bison-lang | grep -v \.src | grep bison-lang + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bison-lang" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bison-lang + CHECK_RESULT $? 0 0 "install bison-lang failed" + SLEEP_WAIT 1 + dnf remove -y bison-lang + CHECK_RESULT $? 0 0 "remove bison-lang failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison.sh b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison.sh new file mode 100644 index 0000000000000000000000000000000000000000..64b9387ef3d21891371b780f03a53f397f43bec8 --- /dev/null +++ b/testcases/cli-test/bison/oe_test_bison_install_and_remove_bison.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bison +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bison | grep -v \.src | grep bison + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bison" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bison + CHECK_RESULT $? 0 0 "install bison failed" + SLEEP_WAIT 1 + dnf remove -y bison + CHECK_RESULT $? 0 0 "remove bison failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-cups.sh b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-cups.sh new file mode 100644 index 0000000000000000000000000000000000000000..107ad6ca969a2fb236a0f9b6b13bdf3ed8a7e314 --- /dev/null +++ b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-cups.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bluez +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bluez-cups | grep -v \.src | grep bluez-cups + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bluez-cups" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bluez-cups + CHECK_RESULT $? 0 0 "install bluez-cups failed" + SLEEP_WAIT 1 + dnf remove -y bluez-cups + CHECK_RESULT $? 0 0 "remove bluez-cups failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-debuginfo.sh b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c26656cf8af81c4c4917be3dbd3b97c3c0601024 --- /dev/null +++ b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bluez +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bluez-debuginfo | grep -v \.src | grep bluez-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bluez-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bluez-debuginfo + CHECK_RESULT $? 0 0 "install bluez-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y bluez-debuginfo + CHECK_RESULT $? 0 0 "remove bluez-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-debugsource.sh b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c515c40bff55dee0686b57c6dd977fb665a644d --- /dev/null +++ b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bluez +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bluez-debugsource | grep -v \.src | grep bluez-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bluez-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bluez-debugsource + CHECK_RESULT $? 0 0 "install bluez-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y bluez-debugsource + CHECK_RESULT $? 0 0 "remove bluez-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-devel.sh b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..395df9123cdfef365809b25c2c5b8564930d928e --- /dev/null +++ b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bluez +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bluez-devel | grep -v \.src | grep bluez-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bluez-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bluez-devel + CHECK_RESULT $? 0 0 "install bluez-devel failed" + SLEEP_WAIT 1 + dnf remove -y bluez-devel + CHECK_RESULT $? 0 0 "remove bluez-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-help.sh b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..257d8e2e5b3e1a1186fdfdbf804b10e3fc938a4a --- /dev/null +++ b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bluez +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bluez-help | grep -v \.src | grep bluez-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bluez-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bluez-help + CHECK_RESULT $? 0 0 "install bluez-help failed" + SLEEP_WAIT 1 + dnf remove -y bluez-help + CHECK_RESULT $? 0 0 "remove bluez-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-libs.sh b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..46c3700942e5c942828db2323e385b8f23e9cf87 --- /dev/null +++ b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bluez +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bluez-libs | grep -v \.src | grep bluez-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bluez-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bluez-libs + CHECK_RESULT $? 0 0 "install bluez-libs failed" + SLEEP_WAIT 1 + dnf remove -y bluez-libs + CHECK_RESULT $? 0 0 "remove bluez-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez.sh b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez.sh new file mode 100644 index 0000000000000000000000000000000000000000..a859e5001836ed37f31566c8be5f91e76eeb49e0 --- /dev/null +++ b/testcases/cli-test/bluez/oe_test_bluez_install_and_remove_bluez.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bluez +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bluez | grep -v \.src | grep bluez + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bluez" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bluez + CHECK_RESULT $? 0 0 "install bluez failed" + SLEEP_WAIT 1 + dnf remove -y bluez + CHECK_RESULT $? 0 0 "remove bluez failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-atomic.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-atomic.sh new file mode 100644 index 0000000000000000000000000000000000000000..dad27efd0aa5db0b972ea017265324531ce146f0 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-atomic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-atomic | grep -v \.src | grep boost-atomic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-atomic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-atomic + CHECK_RESULT $? 0 0 "install boost-atomic failed" + SLEEP_WAIT 1 + dnf remove -y boost-atomic + CHECK_RESULT $? 0 0 "remove boost-atomic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-b2.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-b2.sh new file mode 100644 index 0000000000000000000000000000000000000000..f85d0b6ad9ed29c76025f2aaecd48e1af643b404 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-b2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-b2 | grep -v \.src | grep boost-b2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-b2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-b2 + CHECK_RESULT $? 0 0 "install boost-b2 failed" + SLEEP_WAIT 1 + dnf remove -y boost-b2 + CHECK_RESULT $? 0 0 "remove boost-b2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-build.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-build.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bfe57ee71ba4d5f3cb720e012b660f08000c535 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-build.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-build | grep -v \.src | grep boost-build + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-build" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-build + CHECK_RESULT $? 0 0 "install boost-build failed" + SLEEP_WAIT 1 + dnf remove -y boost-build + CHECK_RESULT $? 0 0 "remove boost-build failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-chrono.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-chrono.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c707dbcd8daec829b0124a80e902515c9ce12dd --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-chrono.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-chrono | grep -v \.src | grep boost-chrono + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-chrono" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-chrono + CHECK_RESULT $? 0 0 "install boost-chrono failed" + SLEEP_WAIT 1 + dnf remove -y boost-chrono + CHECK_RESULT $? 0 0 "remove boost-chrono failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-container.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-container.sh new file mode 100644 index 0000000000000000000000000000000000000000..384abc32389fcd47df40adcce8c5923f02c60609 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-container.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-container | grep -v \.src | grep boost-container + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-container" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-container + CHECK_RESULT $? 0 0 "install boost-container failed" + SLEEP_WAIT 1 + dnf remove -y boost-container + CHECK_RESULT $? 0 0 "remove boost-container failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-context.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-context.sh new file mode 100644 index 0000000000000000000000000000000000000000..98fe439e859f44bbf885cb9f3979670d5c1c65ec --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-context.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-context | grep -v \.src | grep boost-context + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-context" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-context + CHECK_RESULT $? 0 0 "install boost-context failed" + SLEEP_WAIT 1 + dnf remove -y boost-context + CHECK_RESULT $? 0 0 "remove boost-context failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-contract.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-contract.sh new file mode 100644 index 0000000000000000000000000000000000000000..91b515985bd11b99c8d86cf14571167f021e9680 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-contract.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-contract | grep -v \.src | grep boost-contract + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-contract" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-contract + CHECK_RESULT $? 0 0 "install boost-contract failed" + SLEEP_WAIT 1 + dnf remove -y boost-contract + CHECK_RESULT $? 0 0 "remove boost-contract failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-coroutine.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-coroutine.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce8efc58f1f3ec6a89c22be4c5ede4ea5947a276 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-coroutine.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-coroutine | grep -v \.src | grep boost-coroutine + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-coroutine" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-coroutine + CHECK_RESULT $? 0 0 "install boost-coroutine failed" + SLEEP_WAIT 1 + dnf remove -y boost-coroutine + CHECK_RESULT $? 0 0 "remove boost-coroutine failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-date-time.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-date-time.sh new file mode 100644 index 0000000000000000000000000000000000000000..90806436c0e4037bf667cf8537b0fac1f9bd9f7d --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-date-time.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-date-time | grep -v \.src | grep boost-date-time + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-date-time" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-date-time + CHECK_RESULT $? 0 0 "install boost-date-time failed" + SLEEP_WAIT 1 + dnf remove -y boost-date-time + CHECK_RESULT $? 0 0 "remove boost-date-time failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-debuginfo.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8bb0be56c955b19a93f77d2b9797da7c0da8ec3 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-debuginfo | grep -v \.src | grep boost-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-debuginfo + CHECK_RESULT $? 0 0 "install boost-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y boost-debuginfo + CHECK_RESULT $? 0 0 "remove boost-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-debugsource.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f62751dd2ad0d8068358aefbfbee458645385e9 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-debugsource | grep -v \.src | grep boost-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-debugsource + CHECK_RESULT $? 0 0 "install boost-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y boost-debugsource + CHECK_RESULT $? 0 0 "remove boost-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-devel.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2e27e0f5b57eb0540fe5c0e07c5e422fcc247f0 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-devel | grep -v \.src | grep boost-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-devel + CHECK_RESULT $? 0 0 "install boost-devel failed" + SLEEP_WAIT 1 + dnf remove -y boost-devel + CHECK_RESULT $? 0 0 "remove boost-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-doc.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c83d46e88341e5e1ed3fbe32e774ded92078c28 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-doc | grep -v \.src | grep boost-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-doc + CHECK_RESULT $? 0 0 "install boost-doc failed" + SLEEP_WAIT 1 + dnf remove -y boost-doc + CHECK_RESULT $? 0 0 "remove boost-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-doctools.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-doctools.sh new file mode 100644 index 0000000000000000000000000000000000000000..5166b0be0e799a96a238e1416529e71cfe605eb2 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-doctools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-doctools | grep -v \.src | grep boost-doctools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-doctools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-doctools + CHECK_RESULT $? 0 0 "install boost-doctools failed" + SLEEP_WAIT 1 + dnf remove -y boost-doctools + CHECK_RESULT $? 0 0 "remove boost-doctools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-examples.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-examples.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e9694de1396cf16539790fb6f5865a09831d3a6 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-examples.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-examples | grep -v \.src | grep boost-examples + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-examples" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-examples + CHECK_RESULT $? 0 0 "install boost-examples failed" + SLEEP_WAIT 1 + dnf remove -y boost-examples + CHECK_RESULT $? 0 0 "remove boost-examples failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-fiber.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-fiber.sh new file mode 100644 index 0000000000000000000000000000000000000000..17118ea7463ba777184e87cccd9531ea4604f76f --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-fiber.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-fiber | grep -v \.src | grep boost-fiber + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-fiber" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-fiber + CHECK_RESULT $? 0 0 "install boost-fiber failed" + SLEEP_WAIT 1 + dnf remove -y boost-fiber + CHECK_RESULT $? 0 0 "remove boost-fiber failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-filesystem.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0aee94ead08ee5cfb10c406c6c31730534d4618 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-filesystem | grep -v \.src | grep boost-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-filesystem + CHECK_RESULT $? 0 0 "install boost-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y boost-filesystem + CHECK_RESULT $? 0 0 "remove boost-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-graph-mpich.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-graph-mpich.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a648633b11db360cad81303441169e38966e7c0 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-graph-mpich.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-graph-mpich | grep -v \.src | grep boost-graph-mpich + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-graph-mpich" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-graph-mpich + CHECK_RESULT $? 0 0 "install boost-graph-mpich failed" + SLEEP_WAIT 1 + dnf remove -y boost-graph-mpich + CHECK_RESULT $? 0 0 "remove boost-graph-mpich failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-graph-openmpi.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-graph-openmpi.sh new file mode 100644 index 0000000000000000000000000000000000000000..d991d315008a6e062ba7fab2ba9599de968b2fa3 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-graph-openmpi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-graph-openmpi | grep -v \.src | grep boost-graph-openmpi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-graph-openmpi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-graph-openmpi + CHECK_RESULT $? 0 0 "install boost-graph-openmpi failed" + SLEEP_WAIT 1 + dnf remove -y boost-graph-openmpi + CHECK_RESULT $? 0 0 "remove boost-graph-openmpi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-graph.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-graph.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3623b776229f762e46ffab5942554c239d7b188 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-graph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-graph | grep -v \.src | grep boost-graph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-graph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-graph + CHECK_RESULT $? 0 0 "install boost-graph failed" + SLEEP_WAIT 1 + dnf remove -y boost-graph + CHECK_RESULT $? 0 0 "remove boost-graph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-help.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7774620a781c6edb6f2034ba192fc57c0d6dadd3 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-help | grep -v \.src | grep boost-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-help + CHECK_RESULT $? 0 0 "install boost-help failed" + SLEEP_WAIT 1 + dnf remove -y boost-help + CHECK_RESULT $? 0 0 "remove boost-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-iostreams.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-iostreams.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a00dba29be33e08051f0949389fee80859d61f5 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-iostreams.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-iostreams | grep -v \.src | grep boost-iostreams + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-iostreams" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-iostreams + CHECK_RESULT $? 0 0 "install boost-iostreams failed" + SLEEP_WAIT 1 + dnf remove -y boost-iostreams + CHECK_RESULT $? 0 0 "remove boost-iostreams failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-jam.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-jam.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e183bafeacff7e9cb476222f92886f659573529 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-jam.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-jam | grep -v \.src | grep boost-jam + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-jam" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-jam + CHECK_RESULT $? 0 0 "install boost-jam failed" + SLEEP_WAIT 1 + dnf remove -y boost-jam + CHECK_RESULT $? 0 0 "remove boost-jam failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-json.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-json.sh new file mode 100644 index 0000000000000000000000000000000000000000..80edabaa7e9ffe6575c98371c2ee4f6a2d2fd970 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-json.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-json | grep -v \.src | grep boost-json + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-json" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-json + CHECK_RESULT $? 0 0 "install boost-json failed" + SLEEP_WAIT 1 + dnf remove -y boost-json + CHECK_RESULT $? 0 0 "remove boost-json failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-locale.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-locale.sh new file mode 100644 index 0000000000000000000000000000000000000000..88ea0a00a3870575f2ace420b11654bab7b4cdeb --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-locale.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-locale | grep -v \.src | grep boost-locale + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-locale" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-locale + CHECK_RESULT $? 0 0 "install boost-locale failed" + SLEEP_WAIT 1 + dnf remove -y boost-locale + CHECK_RESULT $? 0 0 "remove boost-locale failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-log.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-log.sh new file mode 100644 index 0000000000000000000000000000000000000000..69c663946a5b4ab9c43c2c3162c41066f5e321b2 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-log.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-log | grep -v \.src | grep boost-log + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-log" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-log + CHECK_RESULT $? 0 0 "install boost-log failed" + SLEEP_WAIT 1 + dnf remove -y boost-log + CHECK_RESULT $? 0 0 "remove boost-log failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-math.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-math.sh new file mode 100644 index 0000000000000000000000000000000000000000..7859a047b0f60cc5e4edb7ccbf293ca8434e0391 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-math.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-math | grep -v \.src | grep boost-math + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-math" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-math + CHECK_RESULT $? 0 0 "install boost-math failed" + SLEEP_WAIT 1 + dnf remove -y boost-math + CHECK_RESULT $? 0 0 "remove boost-math failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-devel.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dcd8412c7a7661f962e0ddd2e053c0427945c8c --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-mpich-devel | grep -v \.src | grep boost-mpich-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-mpich-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-mpich-devel + CHECK_RESULT $? 0 0 "install boost-mpich-devel failed" + SLEEP_WAIT 1 + dnf remove -y boost-mpich-devel + CHECK_RESULT $? 0 0 "remove boost-mpich-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-python.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-python.sh new file mode 100644 index 0000000000000000000000000000000000000000..d615ed97617efe896b2dfff865b93ad8d6f42772 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-python.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-mpich-python | grep -v \.src | grep boost-mpich-python + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-mpich-python" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-mpich-python + CHECK_RESULT $? 0 0 "install boost-mpich-python failed" + SLEEP_WAIT 1 + dnf remove -y boost-mpich-python + CHECK_RESULT $? 0 0 "remove boost-mpich-python failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-python3-devel.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-python3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f52aca5cfa0ddedbc5c34edfe65b487d7049158b --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-python3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-mpich-python3-devel | grep -v \.src | grep boost-mpich-python3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-mpich-python3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-mpich-python3-devel + CHECK_RESULT $? 0 0 "install boost-mpich-python3-devel failed" + SLEEP_WAIT 1 + dnf remove -y boost-mpich-python3-devel + CHECK_RESULT $? 0 0 "remove boost-mpich-python3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-python3.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-python3.sh new file mode 100644 index 0000000000000000000000000000000000000000..a251d8e2784bda2f5f486b35b3b343f8ebdf3369 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich-python3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-mpich-python3 | grep -v \.src | grep boost-mpich-python3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-mpich-python3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-mpich-python3 + CHECK_RESULT $? 0 0 "install boost-mpich-python3 failed" + SLEEP_WAIT 1 + dnf remove -y boost-mpich-python3 + CHECK_RESULT $? 0 0 "remove boost-mpich-python3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich.sh new file mode 100644 index 0000000000000000000000000000000000000000..caaf37ef4108fc0e6e5911a0202b73559cc435a4 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-mpich.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-mpich | grep -v \.src | grep boost-mpich + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-mpich" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-mpich + CHECK_RESULT $? 0 0 "install boost-mpich failed" + SLEEP_WAIT 1 + dnf remove -y boost-mpich + CHECK_RESULT $? 0 0 "remove boost-mpich failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-nowide.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-nowide.sh new file mode 100644 index 0000000000000000000000000000000000000000..21ce858f02900d4b0c61ff0253f894e3bf451557 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-nowide.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-nowide | grep -v \.src | grep boost-nowide + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-nowide" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-nowide + CHECK_RESULT $? 0 0 "install boost-nowide failed" + SLEEP_WAIT 1 + dnf remove -y boost-nowide + CHECK_RESULT $? 0 0 "remove boost-nowide failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-numpy2.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-numpy2.sh new file mode 100644 index 0000000000000000000000000000000000000000..04d03278c4414a4659d68884b4890305fea8526d --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-numpy2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-numpy2 | grep -v \.src | grep boost-numpy2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-numpy2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-numpy2 + CHECK_RESULT $? 0 0 "install boost-numpy2 failed" + SLEEP_WAIT 1 + dnf remove -y boost-numpy2 + CHECK_RESULT $? 0 0 "remove boost-numpy2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-numpy3.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-numpy3.sh new file mode 100644 index 0000000000000000000000000000000000000000..583f608200e645da000c763efe7a75255257fd67 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-numpy3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-numpy3 | grep -v \.src | grep boost-numpy3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-numpy3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-numpy3 + CHECK_RESULT $? 0 0 "install boost-numpy3 failed" + SLEEP_WAIT 1 + dnf remove -y boost-numpy3 + CHECK_RESULT $? 0 0 "remove boost-numpy3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-devel.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3adc97c8ceb3d64ae18a5227639f157bda0e834e --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-openmpi-devel | grep -v \.src | grep boost-openmpi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-openmpi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-openmpi-devel + CHECK_RESULT $? 0 0 "install boost-openmpi-devel failed" + SLEEP_WAIT 1 + dnf remove -y boost-openmpi-devel + CHECK_RESULT $? 0 0 "remove boost-openmpi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-python.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-python.sh new file mode 100644 index 0000000000000000000000000000000000000000..dafb1cfa1a064b9291baf3ae5483334b70c8ea5b --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-python.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-openmpi-python | grep -v \.src | grep boost-openmpi-python + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-openmpi-python" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-openmpi-python + CHECK_RESULT $? 0 0 "install boost-openmpi-python failed" + SLEEP_WAIT 1 + dnf remove -y boost-openmpi-python + CHECK_RESULT $? 0 0 "remove boost-openmpi-python failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-python3-devel.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-python3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..53df981a208f6f65e4c5ebb979758b0a847ed4b7 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-python3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-openmpi-python3-devel | grep -v \.src | grep boost-openmpi-python3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-openmpi-python3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-openmpi-python3-devel + CHECK_RESULT $? 0 0 "install boost-openmpi-python3-devel failed" + SLEEP_WAIT 1 + dnf remove -y boost-openmpi-python3-devel + CHECK_RESULT $? 0 0 "remove boost-openmpi-python3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-python3.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-python3.sh new file mode 100644 index 0000000000000000000000000000000000000000..be4fa13412d9e5a6725b112b2756e303b9c6dde7 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi-python3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-openmpi-python3 | grep -v \.src | grep boost-openmpi-python3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-openmpi-python3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-openmpi-python3 + CHECK_RESULT $? 0 0 "install boost-openmpi-python3 failed" + SLEEP_WAIT 1 + dnf remove -y boost-openmpi-python3 + CHECK_RESULT $? 0 0 "remove boost-openmpi-python3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd5d5a4843ca6118bf312f317840d47c72aa4552 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-openmpi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-openmpi | grep -v \.src | grep boost-openmpi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-openmpi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-openmpi + CHECK_RESULT $? 0 0 "install boost-openmpi failed" + SLEEP_WAIT 1 + dnf remove -y boost-openmpi + CHECK_RESULT $? 0 0 "remove boost-openmpi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-program-options.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-program-options.sh new file mode 100644 index 0000000000000000000000000000000000000000..f33fb4e2a6b9da1842c9e606834b28dcfc2fc90c --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-program-options.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-program-options | grep -v \.src | grep boost-program-options + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-program-options" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-program-options + CHECK_RESULT $? 0 0 "install boost-program-options failed" + SLEEP_WAIT 1 + dnf remove -y boost-program-options + CHECK_RESULT $? 0 0 "remove boost-program-options failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python.sh new file mode 100644 index 0000000000000000000000000000000000000000..f575c1638f595280c2466acc328f9d078251c306 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-python | grep -v \.src | grep boost-python + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-python" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-python + CHECK_RESULT $? 0 0 "install boost-python failed" + SLEEP_WAIT 1 + dnf remove -y boost-python + CHECK_RESULT $? 0 0 "remove boost-python failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python2-devel.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9fbbc0d65787d2f1cf0d9c590c7f09e3068cbea --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-python2-devel | grep -v \.src | grep boost-python2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-python2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-python2-devel + CHECK_RESULT $? 0 0 "install boost-python2-devel failed" + SLEEP_WAIT 1 + dnf remove -y boost-python2-devel + CHECK_RESULT $? 0 0 "remove boost-python2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python2.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python2.sh new file mode 100644 index 0000000000000000000000000000000000000000..776792a6426dc746d6eb24cc5cebdc57efd7dd8a --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-python2 | grep -v \.src | grep boost-python2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-python2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-python2 + CHECK_RESULT $? 0 0 "install boost-python2 failed" + SLEEP_WAIT 1 + dnf remove -y boost-python2 + CHECK_RESULT $? 0 0 "remove boost-python2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python3-devel.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..52de62d6b5cf1ba5f272f4ff9ac1b8389caf15d7 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-python3-devel | grep -v \.src | grep boost-python3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-python3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-python3-devel + CHECK_RESULT $? 0 0 "install boost-python3-devel failed" + SLEEP_WAIT 1 + dnf remove -y boost-python3-devel + CHECK_RESULT $? 0 0 "remove boost-python3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python3.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python3.sh new file mode 100644 index 0000000000000000000000000000000000000000..24cd7531fd032b0497ff301378dc2c6ef88bc91d --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-python3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-python3 | grep -v \.src | grep boost-python3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-python3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-python3 + CHECK_RESULT $? 0 0 "install boost-python3 failed" + SLEEP_WAIT 1 + dnf remove -y boost-python3 + CHECK_RESULT $? 0 0 "remove boost-python3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-random.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-random.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0cd1855ccf2ad32e3e44c5edec1cdeb27170895 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-random.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-random | grep -v \.src | grep boost-random + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-random" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-random + CHECK_RESULT $? 0 0 "install boost-random failed" + SLEEP_WAIT 1 + dnf remove -y boost-random + CHECK_RESULT $? 0 0 "remove boost-random failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-regex.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-regex.sh new file mode 100644 index 0000000000000000000000000000000000000000..e83d97d8cc4e58f0c937022265922363f0f7e947 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-regex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-regex | grep -v \.src | grep boost-regex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-regex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-regex + CHECK_RESULT $? 0 0 "install boost-regex failed" + SLEEP_WAIT 1 + dnf remove -y boost-regex + CHECK_RESULT $? 0 0 "remove boost-regex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-serialization.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-serialization.sh new file mode 100644 index 0000000000000000000000000000000000000000..627231fb03bc1ff2d8407dce4e342734b79972ca --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-serialization.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-serialization | grep -v \.src | grep boost-serialization + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-serialization" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-serialization + CHECK_RESULT $? 0 0 "install boost-serialization failed" + SLEEP_WAIT 1 + dnf remove -y boost-serialization + CHECK_RESULT $? 0 0 "remove boost-serialization failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-signals.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-signals.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d298fad7de2ce8ecfe5cf783d1685abe6a4f1e0 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-signals.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-signals | grep -v \.src | grep boost-signals + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-signals" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-signals + CHECK_RESULT $? 0 0 "install boost-signals failed" + SLEEP_WAIT 1 + dnf remove -y boost-signals + CHECK_RESULT $? 0 0 "remove boost-signals failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-stacktrace.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-stacktrace.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4ec3070a0f94670fb2c9e258c636656d90a3959 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-stacktrace.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-stacktrace | grep -v \.src | grep boost-stacktrace + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-stacktrace" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-stacktrace + CHECK_RESULT $? 0 0 "install boost-stacktrace failed" + SLEEP_WAIT 1 + dnf remove -y boost-stacktrace + CHECK_RESULT $? 0 0 "remove boost-stacktrace failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-static.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c47da8df56c00003bdb772fec80c1ce196cf53f --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-static | grep -v \.src | grep boost-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-static + CHECK_RESULT $? 0 0 "install boost-static failed" + SLEEP_WAIT 1 + dnf remove -y boost-static + CHECK_RESULT $? 0 0 "remove boost-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-system.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-system.sh new file mode 100644 index 0000000000000000000000000000000000000000..ded593df1cd68b70cebdbd9547721fe806d35509 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-system.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-system | grep -v \.src | grep boost-system + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-system" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-system + CHECK_RESULT $? 0 0 "install boost-system failed" + SLEEP_WAIT 1 + dnf remove -y boost-system + CHECK_RESULT $? 0 0 "remove boost-system failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-test.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-test.sh new file mode 100644 index 0000000000000000000000000000000000000000..9709c95217a707b3ec04199b5c8f5bd62c153265 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-test.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-test | grep -v \.src | grep boost-test + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-test" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-test + CHECK_RESULT $? 0 0 "install boost-test failed" + SLEEP_WAIT 1 + dnf remove -y boost-test + CHECK_RESULT $? 0 0 "remove boost-test failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-thread.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-thread.sh new file mode 100644 index 0000000000000000000000000000000000000000..c90bc3aa810a4a121ea6ff17dffdfd960c599efb --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-thread.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-thread | grep -v \.src | grep boost-thread + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-thread" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-thread + CHECK_RESULT $? 0 0 "install boost-thread failed" + SLEEP_WAIT 1 + dnf remove -y boost-thread + CHECK_RESULT $? 0 0 "remove boost-thread failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-timer.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-timer.sh new file mode 100644 index 0000000000000000000000000000000000000000..064e57e7f786000f879cd1c436be39de0ab43143 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-timer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-timer | grep -v \.src | grep boost-timer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-timer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-timer + CHECK_RESULT $? 0 0 "install boost-timer failed" + SLEEP_WAIT 1 + dnf remove -y boost-timer + CHECK_RESULT $? 0 0 "remove boost-timer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-type_erasure.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-type_erasure.sh new file mode 100644 index 0000000000000000000000000000000000000000..52ead843f85465bfa292704483555dba25052966 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-type_erasure.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-type_erasure | grep -v \.src | grep boost-type_erasure + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-type_erasure" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-type_erasure + CHECK_RESULT $? 0 0 "install boost-type_erasure failed" + SLEEP_WAIT 1 + dnf remove -y boost-type_erasure + CHECK_RESULT $? 0 0 "remove boost-type_erasure failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-url.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-url.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae47d3c8fdf75f93240e88dddb0f2259b377663d --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-url.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-url | grep -v \.src | grep boost-url + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-url" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-url + CHECK_RESULT $? 0 0 "install boost-url failed" + SLEEP_WAIT 1 + dnf remove -y boost-url + CHECK_RESULT $? 0 0 "remove boost-url failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-wave.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-wave.sh new file mode 100644 index 0000000000000000000000000000000000000000..f729cc940b16d33253b2328a8375eb2a63f37d4e --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost-wave.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost-wave | grep -v \.src | grep boost-wave + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost-wave" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost-wave + CHECK_RESULT $? 0 0 "install boost-wave failed" + SLEEP_WAIT 1 + dnf remove -y boost-wave + CHECK_RESULT $? 0 0 "remove boost-wave failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost.sh b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b836b97f484208e83c7f15f850ceb33114c2840 --- /dev/null +++ b/testcases/cli-test/boost/oe_test_boost_install_and_remove_boost.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available boost | grep -v \.src | grep boost + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm boost" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y boost + CHECK_RESULT $? 0 0 "install boost failed" + SLEEP_WAIT 1 + dnf remove -y boost + CHECK_RESULT $? 0 0 "remove boost failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bridge-utils/oe_test_bridge-utils_install_and_remove_bridge-utils-debuginfo.sh b/testcases/cli-test/bridge-utils/oe_test_bridge-utils_install_and_remove_bridge-utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4dd1638921e19e2ca9e62606efa2235b5d5d659b --- /dev/null +++ b/testcases/cli-test/bridge-utils/oe_test_bridge-utils_install_and_remove_bridge-utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bridge-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bridge-utils-debuginfo | grep -v \.src | grep bridge-utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bridge-utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bridge-utils-debuginfo + CHECK_RESULT $? 0 0 "install bridge-utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y bridge-utils-debuginfo + CHECK_RESULT $? 0 0 "remove bridge-utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bridge-utils/oe_test_bridge-utils_install_and_remove_bridge-utils-debugsource.sh b/testcases/cli-test/bridge-utils/oe_test_bridge-utils_install_and_remove_bridge-utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a382146da49c5f9ae2cf6fe55ad4cedfd90a1fc3 --- /dev/null +++ b/testcases/cli-test/bridge-utils/oe_test_bridge-utils_install_and_remove_bridge-utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bridge-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bridge-utils-debugsource | grep -v \.src | grep bridge-utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bridge-utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bridge-utils-debugsource + CHECK_RESULT $? 0 0 "install bridge-utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y bridge-utils-debugsource + CHECK_RESULT $? 0 0 "remove bridge-utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bridge-utils/oe_test_bridge-utils_install_and_remove_bridge-utils.sh b/testcases/cli-test/bridge-utils/oe_test_bridge-utils_install_and_remove_bridge-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..37ce72d1e9890d10b6e1a6beed628540004ace2c --- /dev/null +++ b/testcases/cli-test/bridge-utils/oe_test_bridge-utils_install_and_remove_bridge-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bridge-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bridge-utils | grep -v \.src | grep bridge-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bridge-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bridge-utils + CHECK_RESULT $? 0 0 "install bridge-utils failed" + SLEEP_WAIT 1 + dnf remove -y bridge-utils + CHECK_RESULT $? 0 0 "remove bridge-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-debuginfo.sh b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..03260905457725cab75ea67525153f44b4393078 --- /dev/null +++ b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src brotli +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available brotli-debuginfo | grep -v \.src | grep brotli-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm brotli-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y brotli-debuginfo + CHECK_RESULT $? 0 0 "install brotli-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y brotli-debuginfo + CHECK_RESULT $? 0 0 "remove brotli-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-debugsource.sh b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4a352272410be6b7b339ed9b25362e1e7a4ed29 --- /dev/null +++ b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src brotli +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available brotli-debugsource | grep -v \.src | grep brotli-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm brotli-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y brotli-debugsource + CHECK_RESULT $? 0 0 "install brotli-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y brotli-debugsource + CHECK_RESULT $? 0 0 "remove brotli-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-devel.sh b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a10a45e2d720d1f5bb126dfd4b2ac06a109d4ce --- /dev/null +++ b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src brotli +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available brotli-devel | grep -v \.src | grep brotli-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm brotli-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y brotli-devel + CHECK_RESULT $? 0 0 "install brotli-devel failed" + SLEEP_WAIT 1 + dnf remove -y brotli-devel + CHECK_RESULT $? 0 0 "remove brotli-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-help.sh b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..526d18fb139c4318b13863176c86aa700f9b9b39 --- /dev/null +++ b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src brotli +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available brotli-help | grep -v \.src | grep brotli-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm brotli-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y brotli-help + CHECK_RESULT $? 0 0 "install brotli-help failed" + SLEEP_WAIT 1 + dnf remove -y brotli-help + CHECK_RESULT $? 0 0 "remove brotli-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli.sh b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli.sh new file mode 100644 index 0000000000000000000000000000000000000000..f83f02f40b3401d0b92f2c0e9b13142a2c6e7470 --- /dev/null +++ b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_brotli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src brotli +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available brotli | grep -v \.src | grep brotli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm brotli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y brotli + CHECK_RESULT $? 0 0 "install brotli failed" + SLEEP_WAIT 1 + dnf remove -y brotli + CHECK_RESULT $? 0 0 "remove brotli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_python2-brotli.sh b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_python2-brotli.sh new file mode 100644 index 0000000000000000000000000000000000000000..546486c1054c892afcfb0af11c8a08b9ea3c6bb3 --- /dev/null +++ b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_python2-brotli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src brotli +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-brotli | grep -v \.src | grep python2-brotli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-brotli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-brotli + CHECK_RESULT $? 0 0 "install python2-brotli failed" + SLEEP_WAIT 1 + dnf remove -y python2-brotli + CHECK_RESULT $? 0 0 "remove python2-brotli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_python3-brotli.sh b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_python3-brotli.sh new file mode 100644 index 0000000000000000000000000000000000000000..76878da3f7d53001ef8ee7887ea8ab8f564b6132 --- /dev/null +++ b/testcases/cli-test/brotli/oe_test_brotli_install_and_remove_python3-brotli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src brotli +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-brotli | grep -v \.src | grep python3-brotli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-brotli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-brotli + CHECK_RESULT $? 0 0 "install python3-brotli failed" + SLEEP_WAIT 1 + dnf remove -y python3-brotli + CHECK_RESULT $? 0 0 "remove python3-brotli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-debuginfo.sh b/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..defcc31cfdc8f33468c2558b23e9be272b6c340c --- /dev/null +++ b/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src btrfs-progs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available btrfs-progs-debuginfo | grep -v \.src | grep btrfs-progs-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm btrfs-progs-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y btrfs-progs-debuginfo + CHECK_RESULT $? 0 0 "install btrfs-progs-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y btrfs-progs-debuginfo + CHECK_RESULT $? 0 0 "remove btrfs-progs-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-debugsource.sh b/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad773253156691cd95d3783729d7d0e0c10e592a --- /dev/null +++ b/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src btrfs-progs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available btrfs-progs-debugsource | grep -v \.src | grep btrfs-progs-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm btrfs-progs-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y btrfs-progs-debugsource + CHECK_RESULT $? 0 0 "install btrfs-progs-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y btrfs-progs-debugsource + CHECK_RESULT $? 0 0 "remove btrfs-progs-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-devel.sh b/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7198d1ba2dac8f96eb2f0f32c4b39f5d39edaf57 --- /dev/null +++ b/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src btrfs-progs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available btrfs-progs-devel | grep -v \.src | grep btrfs-progs-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm btrfs-progs-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y btrfs-progs-devel + CHECK_RESULT $? 0 0 "install btrfs-progs-devel failed" + SLEEP_WAIT 1 + dnf remove -y btrfs-progs-devel + CHECK_RESULT $? 0 0 "remove btrfs-progs-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-help.sh b/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a0423f0a7c80749f9161d7b6c552e05e1011880 --- /dev/null +++ b/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src btrfs-progs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available btrfs-progs-help | grep -v \.src | grep btrfs-progs-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm btrfs-progs-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y btrfs-progs-help + CHECK_RESULT $? 0 0 "install btrfs-progs-help failed" + SLEEP_WAIT 1 + dnf remove -y btrfs-progs-help + CHECK_RESULT $? 0 0 "remove btrfs-progs-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs.sh b/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5fd5e2edb0a54d2f1568146d64791b0c8bc1902 --- /dev/null +++ b/testcases/cli-test/btrfs-progs/oe_test_btrfs-progs_install_and_remove_btrfs-progs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src btrfs-progs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available btrfs-progs | grep -v \.src | grep btrfs-progs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm btrfs-progs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y btrfs-progs + CHECK_RESULT $? 0 0 "install btrfs-progs failed" + SLEEP_WAIT 1 + dnf remove -y btrfs-progs + CHECK_RESULT $? 0 0 "remove btrfs-progs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap-debuginfo.sh b/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d59f256964b191bb1c2c76780cc0c83d98d5fc5f --- /dev/null +++ b/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bubblewrap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bubblewrap-debuginfo | grep -v \.src | grep bubblewrap-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bubblewrap-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bubblewrap-debuginfo + CHECK_RESULT $? 0 0 "install bubblewrap-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y bubblewrap-debuginfo + CHECK_RESULT $? 0 0 "remove bubblewrap-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap-debugsource.sh b/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab9988e3f54da175129b4c0a26a6d86a371f9e1f --- /dev/null +++ b/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bubblewrap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bubblewrap-debugsource | grep -v \.src | grep bubblewrap-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bubblewrap-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bubblewrap-debugsource + CHECK_RESULT $? 0 0 "install bubblewrap-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y bubblewrap-debugsource + CHECK_RESULT $? 0 0 "remove bubblewrap-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap-help.sh b/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..10e831db80d1983368216f1c37d93f3d04e33ed9 --- /dev/null +++ b/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bubblewrap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bubblewrap-help | grep -v \.src | grep bubblewrap-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bubblewrap-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bubblewrap-help + CHECK_RESULT $? 0 0 "install bubblewrap-help failed" + SLEEP_WAIT 1 + dnf remove -y bubblewrap-help + CHECK_RESULT $? 0 0 "remove bubblewrap-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap.sh b/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2a8aca1b633b64fdaa5707382add13d8795ae8b --- /dev/null +++ b/testcases/cli-test/bubblewrap/oe_test_bubblewrap_install_and_remove_bubblewrap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bubblewrap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bubblewrap | grep -v \.src | grep bubblewrap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bubblewrap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bubblewrap + CHECK_RESULT $? 0 0 "install bubblewrap failed" + SLEEP_WAIT 1 + dnf remove -y bubblewrap + CHECK_RESULT $? 0 0 "remove bubblewrap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc-debuginfo.sh b/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b674672a3d48c638d8fc1723d5c957370d0d2b9f --- /dev/null +++ b/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src byacc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available byacc-debuginfo | grep -v \.src | grep byacc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm byacc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y byacc-debuginfo + CHECK_RESULT $? 0 0 "install byacc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y byacc-debuginfo + CHECK_RESULT $? 0 0 "remove byacc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc-debugsource.sh b/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c850e6d093829996cc6bae431cb32b743ad1fee --- /dev/null +++ b/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src byacc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available byacc-debugsource | grep -v \.src | grep byacc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm byacc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y byacc-debugsource + CHECK_RESULT $? 0 0 "install byacc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y byacc-debugsource + CHECK_RESULT $? 0 0 "remove byacc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc-help.sh b/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3eee34fe62785e58750668066fb8c54aa0fd306 --- /dev/null +++ b/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src byacc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available byacc-help | grep -v \.src | grep byacc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm byacc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y byacc-help + CHECK_RESULT $? 0 0 "install byacc-help failed" + SLEEP_WAIT 1 + dnf remove -y byacc-help + CHECK_RESULT $? 0 0 "remove byacc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc.sh b/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8a328e2816bce60a8d50a27580311c3a471d380 --- /dev/null +++ b/testcases/cli-test/byacc/oe_test_byacc_install_and_remove_byacc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src byacc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available byacc | grep -v \.src | grep byacc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm byacc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y byacc + CHECK_RESULT $? 0 0 "install byacc failed" + SLEEP_WAIT 1 + dnf remove -y byacc + CHECK_RESULT $? 0 0 "remove byacc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-debuginfo.sh b/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec3ffca265eda17acb4c3cc6fcb53b6eb617a713 --- /dev/null +++ b/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bzip2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bzip2-debuginfo | grep -v \.src | grep bzip2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bzip2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bzip2-debuginfo + CHECK_RESULT $? 0 0 "install bzip2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y bzip2-debuginfo + CHECK_RESULT $? 0 0 "remove bzip2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-debugsource.sh b/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a5333720089c2f588e779526cba8741b1472757 --- /dev/null +++ b/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bzip2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bzip2-debugsource | grep -v \.src | grep bzip2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bzip2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bzip2-debugsource + CHECK_RESULT $? 0 0 "install bzip2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y bzip2-debugsource + CHECK_RESULT $? 0 0 "remove bzip2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-devel.sh b/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e87cb563fd8c7a48a793470c8df3f6c78229a2d --- /dev/null +++ b/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bzip2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bzip2-devel | grep -v \.src | grep bzip2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bzip2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bzip2-devel + CHECK_RESULT $? 0 0 "install bzip2-devel failed" + SLEEP_WAIT 1 + dnf remove -y bzip2-devel + CHECK_RESULT $? 0 0 "remove bzip2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-help.sh b/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e8cb831707c55d20e18b1a06393b6ef2f45c012 --- /dev/null +++ b/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bzip2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bzip2-help | grep -v \.src | grep bzip2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bzip2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bzip2-help + CHECK_RESULT $? 0 0 "install bzip2-help failed" + SLEEP_WAIT 1 + dnf remove -y bzip2-help + CHECK_RESULT $? 0 0 "remove bzip2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2.sh b/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2.sh new file mode 100644 index 0000000000000000000000000000000000000000..45bcf261d97fbbf18275a5991005ce8b05dcadb4 --- /dev/null +++ b/testcases/cli-test/bzip2/oe_test_bzip2_install_and_remove_bzip2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src bzip2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bzip2 | grep -v \.src | grep bzip2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bzip2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bzip2 + CHECK_RESULT $? 0 0 "install bzip2 failed" + SLEEP_WAIT 1 + dnf remove -y bzip2 + CHECK_RESULT $? 0 0 "remove bzip2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-debuginfo.sh b/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6476696093df84a088ff8d395c5145076b7bf80e --- /dev/null +++ b/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src c-ares +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available c-ares-debuginfo | grep -v \.src | grep c-ares-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm c-ares-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y c-ares-debuginfo + CHECK_RESULT $? 0 0 "install c-ares-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y c-ares-debuginfo + CHECK_RESULT $? 0 0 "remove c-ares-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-debugsource.sh b/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfb1344be98fcb9bc056505fc05f33e3e83f7f9a --- /dev/null +++ b/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src c-ares +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available c-ares-debugsource | grep -v \.src | grep c-ares-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm c-ares-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y c-ares-debugsource + CHECK_RESULT $? 0 0 "install c-ares-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y c-ares-debugsource + CHECK_RESULT $? 0 0 "remove c-ares-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-devel.sh b/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e3f53826f68984b311464c234f9667a776e1826 --- /dev/null +++ b/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src c-ares +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available c-ares-devel | grep -v \.src | grep c-ares-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm c-ares-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y c-ares-devel + CHECK_RESULT $? 0 0 "install c-ares-devel failed" + SLEEP_WAIT 1 + dnf remove -y c-ares-devel + CHECK_RESULT $? 0 0 "remove c-ares-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-help.sh b/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a87b020e4d64fc4d9e9a8548a2656934ca75b5cb --- /dev/null +++ b/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src c-ares +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available c-ares-help | grep -v \.src | grep c-ares-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm c-ares-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y c-ares-help + CHECK_RESULT $? 0 0 "install c-ares-help failed" + SLEEP_WAIT 1 + dnf remove -y c-ares-help + CHECK_RESULT $? 0 0 "remove c-ares-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares.sh b/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares.sh new file mode 100644 index 0000000000000000000000000000000000000000..3db006d336270496503714d109545cca13473af7 --- /dev/null +++ b/testcases/cli-test/c-ares/oe_test_c-ares_install_and_remove_c-ares.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src c-ares +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available c-ares | grep -v \.src | grep c-ares + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm c-ares" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y c-ares + CHECK_RESULT $? 0 0 "install c-ares failed" + SLEEP_WAIT 1 + dnf remove -y c-ares + CHECK_RESULT $? 0 0 "remove c-ares failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ca-certificates/oe_test_ca-certificates_install_and_remove_ca-certificates.sh b/testcases/cli-test/ca-certificates/oe_test_ca-certificates_install_and_remove_ca-certificates.sh new file mode 100644 index 0000000000000000000000000000000000000000..896d68c9b2a10950242c3f81b6273d062822bf98 --- /dev/null +++ b/testcases/cli-test/ca-certificates/oe_test_ca-certificates_install_and_remove_ca-certificates.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ca-certificates +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ca-certificates | grep -v \.src | grep ca-certificates + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ca-certificates" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ca-certificates + CHECK_RESULT $? 0 0 "install ca-certificates failed" + SLEEP_WAIT 1 + dnf remove -y ca-certificates + CHECK_RESULT $? 0 0 "remove ca-certificates failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/color-filesystem/oe_test_color-filesystem_install_and_remove_color-filesystem.sh b/testcases/cli-test/color-filesystem/oe_test_color-filesystem_install_and_remove_color-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..41c1326059667873845112388fe344a48de9c660 --- /dev/null +++ b/testcases/cli-test/color-filesystem/oe_test_color-filesystem_install_and_remove_color-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src color-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available color-filesystem | grep -v \.src | grep color-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm color-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y color-filesystem + CHECK_RESULT $? 0 0 "install color-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y color-filesystem + CHECK_RESULT $? 0 0 "remove color-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-debuginfo.sh b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..756a16d8d92efd845c6045494214bbbab75a2121 --- /dev/null +++ b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src colord +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available colord-debuginfo | grep -v \.src | grep colord-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm colord-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y colord-debuginfo + CHECK_RESULT $? 0 0 "install colord-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y colord-debuginfo + CHECK_RESULT $? 0 0 "remove colord-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-debugsource.sh b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..95eefb2941abd91074192972790fdc164b7e43d0 --- /dev/null +++ b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src colord +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available colord-debugsource | grep -v \.src | grep colord-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm colord-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y colord-debugsource + CHECK_RESULT $? 0 0 "install colord-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y colord-debugsource + CHECK_RESULT $? 0 0 "remove colord-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-devel-docs.sh b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-devel-docs.sh new file mode 100644 index 0000000000000000000000000000000000000000..93e1c5be0d421580a1e298c592abfe429a25bc69 --- /dev/null +++ b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-devel-docs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src colord +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available colord-devel-docs | grep -v \.src | grep colord-devel-docs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm colord-devel-docs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y colord-devel-docs + CHECK_RESULT $? 0 0 "install colord-devel-docs failed" + SLEEP_WAIT 1 + dnf remove -y colord-devel-docs + CHECK_RESULT $? 0 0 "remove colord-devel-docs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-devel.sh b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..49b436428990dc2d306e848296e72842af760226 --- /dev/null +++ b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src colord +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available colord-devel | grep -v \.src | grep colord-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm colord-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y colord-devel + CHECK_RESULT $? 0 0 "install colord-devel failed" + SLEEP_WAIT 1 + dnf remove -y colord-devel + CHECK_RESULT $? 0 0 "remove colord-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-doc.sh b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf9345c267c4104f699a1465dcd6f4d077234fdd --- /dev/null +++ b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src colord +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available colord-doc | grep -v \.src | grep colord-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm colord-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y colord-doc + CHECK_RESULT $? 0 0 "install colord-doc failed" + SLEEP_WAIT 1 + dnf remove -y colord-doc + CHECK_RESULT $? 0 0 "remove colord-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-extra-profiles.sh b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-extra-profiles.sh new file mode 100644 index 0000000000000000000000000000000000000000..81d2ea743d2234d06aa0b944e43bdd5414c27ae7 --- /dev/null +++ b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-extra-profiles.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src colord +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available colord-extra-profiles | grep -v \.src | grep colord-extra-profiles + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm colord-extra-profiles" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y colord-extra-profiles + CHECK_RESULT $? 0 0 "install colord-extra-profiles failed" + SLEEP_WAIT 1 + dnf remove -y colord-extra-profiles + CHECK_RESULT $? 0 0 "remove colord-extra-profiles failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-help.sh b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..10fda08f2da910e9cd5a467a1f629874d5004870 --- /dev/null +++ b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src colord +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available colord-help | grep -v \.src | grep colord-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm colord-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y colord-help + CHECK_RESULT $? 0 0 "install colord-help failed" + SLEEP_WAIT 1 + dnf remove -y colord-help + CHECK_RESULT $? 0 0 "remove colord-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-libs.sh b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..d055478f00300e27d49d76ac710ec37a96a86026 --- /dev/null +++ b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src colord +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available colord-libs | grep -v \.src | grep colord-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm colord-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y colord-libs + CHECK_RESULT $? 0 0 "install colord-libs failed" + SLEEP_WAIT 1 + dnf remove -y colord-libs + CHECK_RESULT $? 0 0 "remove colord-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-tests.sh b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfe45a4c491373771829aa5c227b8214980ca5cc --- /dev/null +++ b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src colord +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available colord-tests | grep -v \.src | grep colord-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm colord-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y colord-tests + CHECK_RESULT $? 0 0 "install colord-tests failed" + SLEEP_WAIT 1 + dnf remove -y colord-tests + CHECK_RESULT $? 0 0 "remove colord-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord.sh b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6f7ca891e07fa186587fd8703e15ad10ec358b5 --- /dev/null +++ b/testcases/cli-test/colord/oe_test_colord_install_and_remove_colord.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src colord +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available colord | grep -v \.src | grep colord + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm colord" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y colord + CHECK_RESULT $? 0 0 "install colord failed" + SLEEP_WAIT 1 + dnf remove -y colord + CHECK_RESULT $? 0 0 "remove colord failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/console-setup/oe_test_console-setup_install_and_remove_console-setup-help.sh b/testcases/cli-test/console-setup/oe_test_console-setup_install_and_remove_console-setup-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..09ccb688ecc882440810b671b8f517b477dbcc02 --- /dev/null +++ b/testcases/cli-test/console-setup/oe_test_console-setup_install_and_remove_console-setup-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src console-setup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available console-setup-help | grep -v \.src | grep console-setup-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm console-setup-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y console-setup-help + CHECK_RESULT $? 0 0 "install console-setup-help failed" + SLEEP_WAIT 1 + dnf remove -y console-setup-help + CHECK_RESULT $? 0 0 "remove console-setup-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/console-setup/oe_test_console-setup_install_and_remove_console-setup.sh b/testcases/cli-test/console-setup/oe_test_console-setup_install_and_remove_console-setup.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae5013c1ef8d2533620cc5471f592e8b9b8b58fe --- /dev/null +++ b/testcases/cli-test/console-setup/oe_test_console-setup_install_and_remove_console-setup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src console-setup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available console-setup | grep -v \.src | grep console-setup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm console-setup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y console-setup + CHECK_RESULT $? 0 0 "install console-setup failed" + SLEEP_WAIT 1 + dnf remove -y console-setup + CHECK_RESULT $? 0 0 "remove console-setup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils-debuginfo.sh b/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd5ffe5327db4e9b2973b6c752ab2f0058c67652 --- /dev/null +++ b/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src coreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available coreutils-debuginfo | grep -v \.src | grep coreutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm coreutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y coreutils-debuginfo + CHECK_RESULT $? 0 0 "install coreutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y coreutils-debuginfo + CHECK_RESULT $? 0 0 "remove coreutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils-debugsource.sh b/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..46d3c59ec773646afd1c06befbee76b0aef79c73 --- /dev/null +++ b/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src coreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available coreutils-debugsource | grep -v \.src | grep coreutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm coreutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y coreutils-debugsource + CHECK_RESULT $? 0 0 "install coreutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y coreutils-debugsource + CHECK_RESULT $? 0 0 "remove coreutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils-help.sh b/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac834628b728ada721bcdc0f5bc6a14563b3b387 --- /dev/null +++ b/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src coreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available coreutils-help | grep -v \.src | grep coreutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm coreutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y coreutils-help + CHECK_RESULT $? 0 0 "install coreutils-help failed" + SLEEP_WAIT 1 + dnf remove -y coreutils-help + CHECK_RESULT $? 0 0 "remove coreutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils.sh b/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fb607a212214c5768235f42e3668ac0a66f2512 --- /dev/null +++ b/testcases/cli-test/coreutils/oe_test_coreutils_install_and_remove_coreutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src coreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available coreutils | grep -v \.src | grep coreutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm coreutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y coreutils + CHECK_RESULT $? 0 0 "install coreutils failed" + SLEEP_WAIT 1 + dnf remove -y coreutils + CHECK_RESULT $? 0 0 "remove coreutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio-debuginfo.sh b/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c1e980bf4f342d1c99bd15962352b20ffe5f25c --- /dev/null +++ b/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cpio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cpio-debuginfo | grep -v \.src | grep cpio-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cpio-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cpio-debuginfo + CHECK_RESULT $? 0 0 "install cpio-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y cpio-debuginfo + CHECK_RESULT $? 0 0 "remove cpio-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio-debugsource.sh b/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5715612a4022471532dff11cc761ca846518639e --- /dev/null +++ b/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cpio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cpio-debugsource | grep -v \.src | grep cpio-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cpio-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cpio-debugsource + CHECK_RESULT $? 0 0 "install cpio-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y cpio-debugsource + CHECK_RESULT $? 0 0 "remove cpio-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio-help.sh b/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ed93814cd6b780f212616e1651696de0f082f83 --- /dev/null +++ b/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cpio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cpio-help | grep -v \.src | grep cpio-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cpio-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cpio-help + CHECK_RESULT $? 0 0 "install cpio-help failed" + SLEEP_WAIT 1 + dnf remove -y cpio-help + CHECK_RESULT $? 0 0 "remove cpio-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio.sh b/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio.sh new file mode 100644 index 0000000000000000000000000000000000000000..7addff77bcdbea26aa9a0d31f9d17dbdb1a71a28 --- /dev/null +++ b/testcases/cli-test/cpio/oe_test_cpio_install_and_remove_cpio.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cpio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cpio | grep -v \.src | grep cpio + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cpio" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cpio + CHECK_RESULT $? 0 0 "install cpio failed" + SLEEP_WAIT 1 + dnf remove -y cpio + CHECK_RESULT $? 0 0 "remove cpio failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck-debuginfo.sh b/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8541dec9cc5e83c56934e1ffb0034b8c8f4df31c --- /dev/null +++ b/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cppcheck +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cppcheck-debuginfo | grep -v \.src | grep cppcheck-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cppcheck-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cppcheck-debuginfo + CHECK_RESULT $? 0 0 "install cppcheck-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y cppcheck-debuginfo + CHECK_RESULT $? 0 0 "remove cppcheck-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck-debugsource.sh b/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..21a41d664d21040b4f6dbc621d1e0af58056c0a3 --- /dev/null +++ b/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cppcheck +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cppcheck-debugsource | grep -v \.src | grep cppcheck-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cppcheck-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cppcheck-debugsource + CHECK_RESULT $? 0 0 "install cppcheck-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y cppcheck-debugsource + CHECK_RESULT $? 0 0 "remove cppcheck-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck-help.sh b/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd7af4845f2bb79c41d5068db1bbe6a11b0aabf7 --- /dev/null +++ b/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cppcheck +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cppcheck-help | grep -v \.src | grep cppcheck-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cppcheck-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cppcheck-help + CHECK_RESULT $? 0 0 "install cppcheck-help failed" + SLEEP_WAIT 1 + dnf remove -y cppcheck-help + CHECK_RESULT $? 0 0 "remove cppcheck-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck.sh b/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck.sh new file mode 100644 index 0000000000000000000000000000000000000000..e74318189d2ac05f0a08416291b5916221a4779e --- /dev/null +++ b/testcases/cli-test/cppcheck/oe_test_cppcheck_install_and_remove_cppcheck.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cppcheck +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cppcheck | grep -v \.src | grep cppcheck + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cppcheck" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cppcheck + CHECK_RESULT $? 0 0 "install cppcheck failed" + SLEEP_WAIT 1 + dnf remove -y cppcheck + CHECK_RESULT $? 0 0 "remove cppcheck failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-debuginfo.sh b/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0812b00934f84d42e6d54b09b98fb805a22ee332 --- /dev/null +++ b/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cppunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cppunit-debuginfo | grep -v \.src | grep cppunit-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cppunit-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cppunit-debuginfo + CHECK_RESULT $? 0 0 "install cppunit-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y cppunit-debuginfo + CHECK_RESULT $? 0 0 "remove cppunit-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-debugsource.sh b/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f052b557b263392b7ec8934599ab63af7da1875e --- /dev/null +++ b/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cppunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cppunit-debugsource | grep -v \.src | grep cppunit-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cppunit-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cppunit-debugsource + CHECK_RESULT $? 0 0 "install cppunit-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y cppunit-debugsource + CHECK_RESULT $? 0 0 "remove cppunit-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-devel.sh b/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d277a483407687bc0572f7967179a2e2f5e27102 --- /dev/null +++ b/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cppunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cppunit-devel | grep -v \.src | grep cppunit-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cppunit-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cppunit-devel + CHECK_RESULT $? 0 0 "install cppunit-devel failed" + SLEEP_WAIT 1 + dnf remove -y cppunit-devel + CHECK_RESULT $? 0 0 "remove cppunit-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-help.sh b/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1176d63ee5f40fc80d833c1dce0facfa8a1e64c5 --- /dev/null +++ b/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cppunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cppunit-help | grep -v \.src | grep cppunit-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cppunit-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cppunit-help + CHECK_RESULT $? 0 0 "install cppunit-help failed" + SLEEP_WAIT 1 + dnf remove -y cppunit-help + CHECK_RESULT $? 0 0 "remove cppunit-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit.sh b/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit.sh new file mode 100644 index 0000000000000000000000000000000000000000..b07e79c53888ecb4adee19c90f4c95badfbdb7cb --- /dev/null +++ b/testcases/cli-test/cppunit/oe_test_cppunit_install_and_remove_cppunit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cppunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cppunit | grep -v \.src | grep cppunit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cppunit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cppunit + CHECK_RESULT $? 0 0 "install cppunit failed" + SLEEP_WAIT 1 + dnf remove -y cppunit + CHECK_RESULT $? 0 0 "remove cppunit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-debuginfo.sh b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..02e1aa2d11be20628c0da73353ca5a5846cf4738 --- /dev/null +++ b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cracklib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cracklib-debuginfo | grep -v \.src | grep cracklib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cracklib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cracklib-debuginfo + CHECK_RESULT $? 0 0 "install cracklib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y cracklib-debuginfo + CHECK_RESULT $? 0 0 "remove cracklib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-debugsource.sh b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..76b576b3ba3583e3346744d11106dcf414ab2732 --- /dev/null +++ b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cracklib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cracklib-debugsource | grep -v \.src | grep cracklib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cracklib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cracklib-debugsource + CHECK_RESULT $? 0 0 "install cracklib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y cracklib-debugsource + CHECK_RESULT $? 0 0 "remove cracklib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-devel.sh b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f92c2b567d70e679b00c78069ad0f2cbf85c4785 --- /dev/null +++ b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cracklib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cracklib-devel | grep -v \.src | grep cracklib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cracklib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cracklib-devel + CHECK_RESULT $? 0 0 "install cracklib-devel failed" + SLEEP_WAIT 1 + dnf remove -y cracklib-devel + CHECK_RESULT $? 0 0 "remove cracklib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-help.sh b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebfb25097d4160a7b79b972365b3eb81e8b8bca3 --- /dev/null +++ b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cracklib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cracklib-help | grep -v \.src | grep cracklib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cracklib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cracklib-help + CHECK_RESULT $? 0 0 "install cracklib-help failed" + SLEEP_WAIT 1 + dnf remove -y cracklib-help + CHECK_RESULT $? 0 0 "remove cracklib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib.sh b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib.sh new file mode 100644 index 0000000000000000000000000000000000000000..6990d29af1fe2731ed1478a5e887487520a30130 --- /dev/null +++ b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_cracklib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cracklib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cracklib | grep -v \.src | grep cracklib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cracklib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cracklib + CHECK_RESULT $? 0 0 "install cracklib failed" + SLEEP_WAIT 1 + dnf remove -y cracklib + CHECK_RESULT $? 0 0 "remove cracklib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_python2-cracklib.sh b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_python2-cracklib.sh new file mode 100644 index 0000000000000000000000000000000000000000..1bf442cc48f4387cbd3dea2b63065396aae6d4de --- /dev/null +++ b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_python2-cracklib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cracklib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-cracklib | grep -v \.src | grep python2-cracklib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-cracklib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-cracklib + CHECK_RESULT $? 0 0 "install python2-cracklib failed" + SLEEP_WAIT 1 + dnf remove -y python2-cracklib + CHECK_RESULT $? 0 0 "remove python2-cracklib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_python3-cracklib.sh b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_python3-cracklib.sh new file mode 100644 index 0000000000000000000000000000000000000000..07150c4d92d4b2d78ff6b677d4e4f2c79b68449e --- /dev/null +++ b/testcases/cli-test/cracklib/oe_test_cracklib_install_and_remove_python3-cracklib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cracklib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-cracklib | grep -v \.src | grep python3-cracklib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-cracklib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-cracklib + CHECK_RESULT $? 0 0 "install python3-cracklib failed" + SLEEP_WAIT 1 + dnf remove -y python3-cracklib + CHECK_RESULT $? 0 0 "remove python3-cracklib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-debuginfo.sh b/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c1fcbe887a92a061e323c4ff280609300d0f53b --- /dev/null +++ b/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src crash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available crash-debuginfo | grep -v \.src | grep crash-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm crash-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y crash-debuginfo + CHECK_RESULT $? 0 0 "install crash-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y crash-debuginfo + CHECK_RESULT $? 0 0 "remove crash-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-debugsource.sh b/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..911c42ba8664355dea863f22ce25255f536f8ce6 --- /dev/null +++ b/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src crash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available crash-debugsource | grep -v \.src | grep crash-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm crash-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y crash-debugsource + CHECK_RESULT $? 0 0 "install crash-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y crash-debugsource + CHECK_RESULT $? 0 0 "remove crash-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-devel.sh b/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..284af28b6f8e9ba67731dd2a9dc772efe8625937 --- /dev/null +++ b/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src crash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available crash-devel | grep -v \.src | grep crash-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm crash-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y crash-devel + CHECK_RESULT $? 0 0 "install crash-devel failed" + SLEEP_WAIT 1 + dnf remove -y crash-devel + CHECK_RESULT $? 0 0 "remove crash-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-help.sh b/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebade0bcec40a883bd1ee253d2b226aae3f062a1 --- /dev/null +++ b/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src crash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available crash-help | grep -v \.src | grep crash-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm crash-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y crash-help + CHECK_RESULT $? 0 0 "install crash-help failed" + SLEEP_WAIT 1 + dnf remove -y crash-help + CHECK_RESULT $? 0 0 "remove crash-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash.sh b/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9e4943e2a7d2a127bd424fcd856b74aaa0af9e9 --- /dev/null +++ b/testcases/cli-test/crash/oe_test_crash_install_and_remove_crash.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src crash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available crash | grep -v \.src | grep crash + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm crash" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y crash + CHECK_RESULT $? 0 0 "install crash failed" + SLEEP_WAIT 1 + dnf remove -y crash + CHECK_RESULT $? 0 0 "remove crash failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-debuginfo.sh b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa4addc91f7b9e63a656c2ebd2534cde9e58ee47 --- /dev/null +++ b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src createrepo_c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available createrepo_c-debuginfo | grep -v \.src | grep createrepo_c-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm createrepo_c-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y createrepo_c-debuginfo + CHECK_RESULT $? 0 0 "install createrepo_c-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y createrepo_c-debuginfo + CHECK_RESULT $? 0 0 "remove createrepo_c-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-debugsource.sh b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..96f555b753347c02253d70280f579b4b4b118939 --- /dev/null +++ b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src createrepo_c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available createrepo_c-debugsource | grep -v \.src | grep createrepo_c-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm createrepo_c-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y createrepo_c-debugsource + CHECK_RESULT $? 0 0 "install createrepo_c-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y createrepo_c-debugsource + CHECK_RESULT $? 0 0 "remove createrepo_c-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-devel.sh b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2ab41382a324de30957fbb046ff67913172654d --- /dev/null +++ b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src createrepo_c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available createrepo_c-devel | grep -v \.src | grep createrepo_c-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm createrepo_c-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y createrepo_c-devel + CHECK_RESULT $? 0 0 "install createrepo_c-devel failed" + SLEEP_WAIT 1 + dnf remove -y createrepo_c-devel + CHECK_RESULT $? 0 0 "remove createrepo_c-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-help.sh b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b40d2270ab690e61c34d2595aae32c06258ea739 --- /dev/null +++ b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src createrepo_c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available createrepo_c-help | grep -v \.src | grep createrepo_c-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm createrepo_c-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y createrepo_c-help + CHECK_RESULT $? 0 0 "install createrepo_c-help failed" + SLEEP_WAIT 1 + dnf remove -y createrepo_c-help + CHECK_RESULT $? 0 0 "remove createrepo_c-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c.sh b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6202f9778991c987a780a9c0dffa95fc90a81fa --- /dev/null +++ b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_createrepo_c.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src createrepo_c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available createrepo_c | grep -v \.src | grep createrepo_c + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm createrepo_c" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y createrepo_c + CHECK_RESULT $? 0 0 "install createrepo_c failed" + SLEEP_WAIT 1 + dnf remove -y createrepo_c + CHECK_RESULT $? 0 0 "remove createrepo_c failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_python2-createrepo_c.sh b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_python2-createrepo_c.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dc44a128dbecd0e5292f4823ca1ea8021745460 --- /dev/null +++ b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_python2-createrepo_c.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src createrepo_c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-createrepo_c | grep -v \.src | grep python2-createrepo_c + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-createrepo_c" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-createrepo_c + CHECK_RESULT $? 0 0 "install python2-createrepo_c failed" + SLEEP_WAIT 1 + dnf remove -y python2-createrepo_c + CHECK_RESULT $? 0 0 "remove python2-createrepo_c failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_python3-createrepo_c.sh b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_python3-createrepo_c.sh new file mode 100644 index 0000000000000000000000000000000000000000..35d9c15b8965d48f91115e186fd61adfccdcd746 --- /dev/null +++ b/testcases/cli-test/createrepo_c/oe_test_createrepo_c_install_and_remove_python3-createrepo_c.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src createrepo_c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-createrepo_c | grep -v \.src | grep python3-createrepo_c + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-createrepo_c" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-createrepo_c + CHECK_RESULT $? 0 0 "install python3-createrepo_c failed" + SLEEP_WAIT 1 + dnf remove -y python3-createrepo_c + CHECK_RESULT $? 0 0 "remove python3-createrepo_c failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie-debuginfo.sh b/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..67b882fadc9e78867eecbbe39da178bd6dd47882 --- /dev/null +++ b/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cronie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cronie-debuginfo | grep -v \.src | grep cronie-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cronie-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cronie-debuginfo + CHECK_RESULT $? 0 0 "install cronie-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y cronie-debuginfo + CHECK_RESULT $? 0 0 "remove cronie-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie-debugsource.sh b/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..862432f9e1d8b3f6f68dba1328e7fdbf01f05e06 --- /dev/null +++ b/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cronie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cronie-debugsource | grep -v \.src | grep cronie-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cronie-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cronie-debugsource + CHECK_RESULT $? 0 0 "install cronie-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y cronie-debugsource + CHECK_RESULT $? 0 0 "remove cronie-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie-help.sh b/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa20f49f0b6fae5ea54ccf745ca35f017a152767 --- /dev/null +++ b/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cronie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cronie-help | grep -v \.src | grep cronie-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cronie-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cronie-help + CHECK_RESULT $? 0 0 "install cronie-help failed" + SLEEP_WAIT 1 + dnf remove -y cronie-help + CHECK_RESULT $? 0 0 "remove cronie-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie.sh b/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie.sh new file mode 100644 index 0000000000000000000000000000000000000000..848c7cf3dd302fae3335a0d78e47f435e4f0104d --- /dev/null +++ b/testcases/cli-test/cronie/oe_test_cronie_install_and_remove_cronie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cronie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cronie | grep -v \.src | grep cronie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cronie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cronie + CHECK_RESULT $? 0 0 "install cronie failed" + SLEEP_WAIT 1 + dnf remove -y cronie + CHECK_RESULT $? 0 0 "remove cronie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/crontabs/oe_test_crontabs_install_and_remove_crontabs-help.sh b/testcases/cli-test/crontabs/oe_test_crontabs_install_and_remove_crontabs-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c92f93454f22ede2cefd12bca10cd042eab906c --- /dev/null +++ b/testcases/cli-test/crontabs/oe_test_crontabs_install_and_remove_crontabs-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src crontabs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available crontabs-help | grep -v \.src | grep crontabs-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm crontabs-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y crontabs-help + CHECK_RESULT $? 0 0 "install crontabs-help failed" + SLEEP_WAIT 1 + dnf remove -y crontabs-help + CHECK_RESULT $? 0 0 "remove crontabs-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/crontabs/oe_test_crontabs_install_and_remove_crontabs.sh b/testcases/cli-test/crontabs/oe_test_crontabs_install_and_remove_crontabs.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f4ec578ef80a22cfd4f4dcf2eddaf9d86c22580 --- /dev/null +++ b/testcases/cli-test/crontabs/oe_test_crontabs_install_and_remove_crontabs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src crontabs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available crontabs | grep -v \.src | grep crontabs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm crontabs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y crontabs + CHECK_RESULT $? 0 0 "install crontabs failed" + SLEEP_WAIT 1 + dnf remove -y crontabs + CHECK_RESULT $? 0 0 "remove crontabs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/crypto-policies/oe_test_crypto-policies_install_and_remove_crypto-policies-scripts.sh b/testcases/cli-test/crypto-policies/oe_test_crypto-policies_install_and_remove_crypto-policies-scripts.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c7fbf9ef3117dc4f9e2cf5d10b7c5eff7f5ec6e --- /dev/null +++ b/testcases/cli-test/crypto-policies/oe_test_crypto-policies_install_and_remove_crypto-policies-scripts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src crypto-policies +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available crypto-policies-scripts | grep -v \.src | grep crypto-policies-scripts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm crypto-policies-scripts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y crypto-policies-scripts + CHECK_RESULT $? 0 0 "install crypto-policies-scripts failed" + SLEEP_WAIT 1 + dnf remove -y crypto-policies-scripts + CHECK_RESULT $? 0 0 "remove crypto-policies-scripts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/crypto-policies/oe_test_crypto-policies_install_and_remove_crypto-policies.sh b/testcases/cli-test/crypto-policies/oe_test_crypto-policies_install_and_remove_crypto-policies.sh new file mode 100644 index 0000000000000000000000000000000000000000..673f8be7b7439b336957058d479e43a6d678c778 --- /dev/null +++ b/testcases/cli-test/crypto-policies/oe_test_crypto-policies_install_and_remove_crypto-policies.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src crypto-policies +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available crypto-policies | grep -v \.src | grep crypto-policies + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm crypto-policies" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y crypto-policies + CHECK_RESULT $? 0 0 "install crypto-policies failed" + SLEEP_WAIT 1 + dnf remove -y crypto-policies + CHECK_RESULT $? 0 0 "remove crypto-policies failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-debuginfo.sh b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bfcdbedf1abb74f1cf8b883bb8c256e2d6c8848 --- /dev/null +++ b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cryptsetup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cryptsetup-debuginfo | grep -v \.src | grep cryptsetup-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cryptsetup-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cryptsetup-debuginfo + CHECK_RESULT $? 0 0 "install cryptsetup-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y cryptsetup-debuginfo + CHECK_RESULT $? 0 0 "remove cryptsetup-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-debugsource.sh b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..98cc62bf5b621795619f5ecdce0580ff6f7b262e --- /dev/null +++ b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cryptsetup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cryptsetup-debugsource | grep -v \.src | grep cryptsetup-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cryptsetup-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cryptsetup-debugsource + CHECK_RESULT $? 0 0 "install cryptsetup-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y cryptsetup-debugsource + CHECK_RESULT $? 0 0 "remove cryptsetup-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-devel.sh b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..53a2b08cfc35c7c86a2e2e9ed712a37a81b18a8c --- /dev/null +++ b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cryptsetup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cryptsetup-devel | grep -v \.src | grep cryptsetup-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cryptsetup-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cryptsetup-devel + CHECK_RESULT $? 0 0 "install cryptsetup-devel failed" + SLEEP_WAIT 1 + dnf remove -y cryptsetup-devel + CHECK_RESULT $? 0 0 "remove cryptsetup-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-help.sh b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..20faf7c25bf65bb3b96a531f98e92205df609a1e --- /dev/null +++ b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cryptsetup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cryptsetup-help | grep -v \.src | grep cryptsetup-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cryptsetup-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cryptsetup-help + CHECK_RESULT $? 0 0 "install cryptsetup-help failed" + SLEEP_WAIT 1 + dnf remove -y cryptsetup-help + CHECK_RESULT $? 0 0 "remove cryptsetup-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-python3.sh b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-python3.sh new file mode 100644 index 0000000000000000000000000000000000000000..bdc4c9fef18157225874ca7b322780047ad2fa52 --- /dev/null +++ b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-python3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cryptsetup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cryptsetup-python3 | grep -v \.src | grep cryptsetup-python3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cryptsetup-python3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cryptsetup-python3 + CHECK_RESULT $? 0 0 "install cryptsetup-python3 failed" + SLEEP_WAIT 1 + dnf remove -y cryptsetup-python3 + CHECK_RESULT $? 0 0 "remove cryptsetup-python3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-reencrypt.sh b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-reencrypt.sh new file mode 100644 index 0000000000000000000000000000000000000000..852bc3d3718b19e242a06996fc77b8fbffe8a56c --- /dev/null +++ b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup-reencrypt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cryptsetup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cryptsetup-reencrypt | grep -v \.src | grep cryptsetup-reencrypt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cryptsetup-reencrypt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cryptsetup-reencrypt + CHECK_RESULT $? 0 0 "install cryptsetup-reencrypt failed" + SLEEP_WAIT 1 + dnf remove -y cryptsetup-reencrypt + CHECK_RESULT $? 0 0 "remove cryptsetup-reencrypt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup.sh b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup.sh new file mode 100644 index 0000000000000000000000000000000000000000..528278bca8a9b5f2075f29b00c270593304df47e --- /dev/null +++ b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_cryptsetup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cryptsetup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cryptsetup | grep -v \.src | grep cryptsetup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cryptsetup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cryptsetup + CHECK_RESULT $? 0 0 "install cryptsetup failed" + SLEEP_WAIT 1 + dnf remove -y cryptsetup + CHECK_RESULT $? 0 0 "remove cryptsetup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_integritysetup.sh b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_integritysetup.sh new file mode 100644 index 0000000000000000000000000000000000000000..8206995919ec655e706782228ee4b26cce274d71 --- /dev/null +++ b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_integritysetup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cryptsetup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available integritysetup | grep -v \.src | grep integritysetup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm integritysetup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y integritysetup + CHECK_RESULT $? 0 0 "install integritysetup failed" + SLEEP_WAIT 1 + dnf remove -y integritysetup + CHECK_RESULT $? 0 0 "remove integritysetup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_python2-cryptsetup.sh b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_python2-cryptsetup.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f03f7b1ba781ae1cfbbfc55827de753f25d770a --- /dev/null +++ b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_python2-cryptsetup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cryptsetup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-cryptsetup | grep -v \.src | grep python2-cryptsetup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-cryptsetup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-cryptsetup + CHECK_RESULT $? 0 0 "install python2-cryptsetup failed" + SLEEP_WAIT 1 + dnf remove -y python2-cryptsetup + CHECK_RESULT $? 0 0 "remove python2-cryptsetup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_veritysetup.sh b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_veritysetup.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc5f5d42d5e9ca6a5a2a1bb6944e6d85f3ea1d3c --- /dev/null +++ b/testcases/cli-test/cryptsetup/oe_test_cryptsetup_install_and_remove_veritysetup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cryptsetup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available veritysetup | grep -v \.src | grep veritysetup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm veritysetup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y veritysetup + CHECK_RESULT $? 0 0 "install veritysetup failed" + SLEEP_WAIT 1 + dnf remove -y veritysetup + CHECK_RESULT $? 0 0 "remove veritysetup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-debuginfo.sh b/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..53c7e615596bbf9518fc24c10ee64947461ba2c5 --- /dev/null +++ b/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cscope +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cscope-debuginfo | grep -v \.src | grep cscope-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cscope-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cscope-debuginfo + CHECK_RESULT $? 0 0 "install cscope-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y cscope-debuginfo + CHECK_RESULT $? 0 0 "remove cscope-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-debugsource.sh b/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a46d408503a9a64e396c24451908877a608f776a --- /dev/null +++ b/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cscope +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cscope-debugsource | grep -v \.src | grep cscope-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cscope-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cscope-debugsource + CHECK_RESULT $? 0 0 "install cscope-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y cscope-debugsource + CHECK_RESULT $? 0 0 "remove cscope-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-doc.sh b/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..effb639734ae0141944a1a5f8ae5e309accfb20d --- /dev/null +++ b/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cscope +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cscope-doc | grep -v \.src | grep cscope-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cscope-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cscope-doc + CHECK_RESULT $? 0 0 "install cscope-doc failed" + SLEEP_WAIT 1 + dnf remove -y cscope-doc + CHECK_RESULT $? 0 0 "remove cscope-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-help.sh b/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..18773c3f73773332fb46ceb9c2733a275b66eadb --- /dev/null +++ b/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cscope +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cscope-help | grep -v \.src | grep cscope-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cscope-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cscope-help + CHECK_RESULT $? 0 0 "install cscope-help failed" + SLEEP_WAIT 1 + dnf remove -y cscope-help + CHECK_RESULT $? 0 0 "remove cscope-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope.sh b/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d21edfb7f5e9cdf1f44ef0b9da3d31a2089c2f9 --- /dev/null +++ b/testcases/cli-test/cscope/oe_test_cscope_install_and_remove_cscope.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cscope +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cscope | grep -v \.src | grep cscope + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cscope" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cscope + CHECK_RESULT $? 0 0 "install cscope failed" + SLEEP_WAIT 1 + dnf remove -y cscope + CHECK_RESULT $? 0 0 "remove cscope failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-client.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-client.sh new file mode 100644 index 0000000000000000000000000000000000000000..56cdd6d668227d1908dd0d28d382ae1484205652 --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-client.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups-client | grep -v \.src | grep cups-client + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups-client" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups-client + CHECK_RESULT $? 0 0 "install cups-client failed" + SLEEP_WAIT 1 + dnf remove -y cups-client + CHECK_RESULT $? 0 0 "remove cups-client failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-debuginfo.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d056c0d4c42e0007a4592afe15d5f641e1a0276 --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups-debuginfo | grep -v \.src | grep cups-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups-debuginfo + CHECK_RESULT $? 0 0 "install cups-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y cups-debuginfo + CHECK_RESULT $? 0 0 "remove cups-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-debugsource.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf147901c63e9f3d052f538acf2ad4720926ab26 --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups-debugsource | grep -v \.src | grep cups-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups-debugsource + CHECK_RESULT $? 0 0 "install cups-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y cups-debugsource + CHECK_RESULT $? 0 0 "remove cups-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-devel.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5d4464247de332cf7adf4ee22554d4ad21f2017 --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups-devel | grep -v \.src | grep cups-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups-devel + CHECK_RESULT $? 0 0 "install cups-devel failed" + SLEEP_WAIT 1 + dnf remove -y cups-devel + CHECK_RESULT $? 0 0 "remove cups-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-filesystem.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..101738b6a23e99bd97aa554294ba72c09045777a --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups-filesystem | grep -v \.src | grep cups-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups-filesystem + CHECK_RESULT $? 0 0 "install cups-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y cups-filesystem + CHECK_RESULT $? 0 0 "remove cups-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-help.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..91f424f1091ea141a83681f04b3ca98930cf46b4 --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups-help | grep -v \.src | grep cups-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups-help + CHECK_RESULT $? 0 0 "install cups-help failed" + SLEEP_WAIT 1 + dnf remove -y cups-help + CHECK_RESULT $? 0 0 "remove cups-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-ipptool.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-ipptool.sh new file mode 100644 index 0000000000000000000000000000000000000000..c70debee935235a34407425f1ddcdb7076edec90 --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-ipptool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups-ipptool | grep -v \.src | grep cups-ipptool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups-ipptool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups-ipptool + CHECK_RESULT $? 0 0 "install cups-ipptool failed" + SLEEP_WAIT 1 + dnf remove -y cups-ipptool + CHECK_RESULT $? 0 0 "remove cups-ipptool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-libs.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..3014f8c53150d5a67094a676c6f5c204a7cc230e --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups-libs | grep -v \.src | grep cups-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups-libs + CHECK_RESULT $? 0 0 "install cups-libs failed" + SLEEP_WAIT 1 + dnf remove -y cups-libs + CHECK_RESULT $? 0 0 "remove cups-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-lpd.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-lpd.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcd8db5dd78a87d35fbc3dfdd50e165cc2e6a7cb --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-lpd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups-lpd | grep -v \.src | grep cups-lpd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups-lpd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups-lpd + CHECK_RESULT $? 0 0 "install cups-lpd failed" + SLEEP_WAIT 1 + dnf remove -y cups-lpd + CHECK_RESULT $? 0 0 "remove cups-lpd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-printerapp.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-printerapp.sh new file mode 100644 index 0000000000000000000000000000000000000000..6125e4604538363bd05f0df5a84c13c2b895587c --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups-printerapp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups-printerapp | grep -v \.src | grep cups-printerapp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups-printerapp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups-printerapp + CHECK_RESULT $? 0 0 "install cups-printerapp failed" + SLEEP_WAIT 1 + dnf remove -y cups-printerapp + CHECK_RESULT $? 0 0 "remove cups-printerapp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups.sh b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7bde0c2e20d2b2b9958236dc0de80181b78887e --- /dev/null +++ b/testcases/cli-test/cups/oe_test_cups_install_and_remove_cups.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cups | grep -v \.src | grep cups + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cups" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cups + CHECK_RESULT $? 0 0 "install cups failed" + SLEEP_WAIT 1 + dnf remove -y cups + CHECK_RESULT $? 0 0 "remove cups failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-debuginfo.sh b/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bef911dbced3c5644598409b5ea4e3582666a96 --- /dev/null +++ b/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src curl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available curl-debuginfo | grep -v \.src | grep curl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm curl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y curl-debuginfo + CHECK_RESULT $? 0 0 "install curl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y curl-debuginfo + CHECK_RESULT $? 0 0 "remove curl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-debugsource.sh b/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1863a3976ff1f74997a997d29b9c0561839ee2ab --- /dev/null +++ b/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src curl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available curl-debugsource | grep -v \.src | grep curl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm curl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y curl-debugsource + CHECK_RESULT $? 0 0 "install curl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y curl-debugsource + CHECK_RESULT $? 0 0 "remove curl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-devel.sh b/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4072cb35726083aeb075f6c5c6f8586e3b7b804 --- /dev/null +++ b/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src curl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available curl-devel | grep -v \.src | grep curl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm curl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y curl-devel + CHECK_RESULT $? 0 0 "install curl-devel failed" + SLEEP_WAIT 1 + dnf remove -y curl-devel + CHECK_RESULT $? 0 0 "remove curl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-help.sh b/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7e7cf9a77af918a1d606698d4de5819b7e67f61 --- /dev/null +++ b/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src curl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available curl-help | grep -v \.src | grep curl-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm curl-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y curl-help + CHECK_RESULT $? 0 0 "install curl-help failed" + SLEEP_WAIT 1 + dnf remove -y curl-help + CHECK_RESULT $? 0 0 "remove curl-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl.sh b/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c0782ce4459f4a75d2602617720984905848f6e --- /dev/null +++ b/testcases/cli-test/curl/oe_test_curl_install_and_remove_curl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src curl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available curl | grep -v \.src | grep curl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm curl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y curl + CHECK_RESULT $? 0 0 "install curl failed" + SLEEP_WAIT 1 + dnf remove -y curl + CHECK_RESULT $? 0 0 "remove curl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/curl/oe_test_curl_install_and_remove_libcurl-devel.sh b/testcases/cli-test/curl/oe_test_curl_install_and_remove_libcurl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..33af2da779abfe9f8056eac20e41f432ae3172d7 --- /dev/null +++ b/testcases/cli-test/curl/oe_test_curl_install_and_remove_libcurl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src curl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcurl-devel | grep -v \.src | grep libcurl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcurl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcurl-devel + CHECK_RESULT $? 0 0 "install libcurl-devel failed" + SLEEP_WAIT 1 + dnf remove -y libcurl-devel + CHECK_RESULT $? 0 0 "remove libcurl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/curl/oe_test_curl_install_and_remove_libcurl.sh b/testcases/cli-test/curl/oe_test_curl_install_and_remove_libcurl.sh new file mode 100644 index 0000000000000000000000000000000000000000..b001533b7d4768d5b81c6eda95d68ed0b6669c5c --- /dev/null +++ b/testcases/cli-test/curl/oe_test_curl_install_and_remove_libcurl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src curl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcurl | grep -v \.src | grep libcurl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcurl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcurl + CHECK_RESULT $? 0 0 "install libcurl failed" + SLEEP_WAIT 1 + dnf remove -y libcurl + CHECK_RESULT $? 0 0 "remove libcurl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-debuginfo.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a13b286ccbe42036695b8b6cc0a73e9d53a0983 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-debuginfo | grep -v \.src | grep cyrus-sasl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-debuginfo + CHECK_RESULT $? 0 0 "install cyrus-sasl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-debuginfo + CHECK_RESULT $? 0 0 "remove cyrus-sasl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-debugsource.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..044420699e291ffc4f39f68fa4cfbe23121f0b24 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-debugsource | grep -v \.src | grep cyrus-sasl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-debugsource + CHECK_RESULT $? 0 0 "install cyrus-sasl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-debugsource + CHECK_RESULT $? 0 0 "remove cyrus-sasl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-devel.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9147c7597a898a01d9fe4177d66ab10941ec973 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-devel | grep -v \.src | grep cyrus-sasl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-devel + CHECK_RESULT $? 0 0 "install cyrus-sasl-devel failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-devel + CHECK_RESULT $? 0 0 "remove cyrus-sasl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-gs2.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-gs2.sh new file mode 100644 index 0000000000000000000000000000000000000000..17e651dcf2203adc9fb4f203e71d3b46bbc3ec2d --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-gs2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-gs2 | grep -v \.src | grep cyrus-sasl-gs2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-gs2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-gs2 + CHECK_RESULT $? 0 0 "install cyrus-sasl-gs2 failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-gs2 + CHECK_RESULT $? 0 0 "remove cyrus-sasl-gs2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-gssapi.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-gssapi.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdbaa6ee13ca1d994ad3203e92ec3dce155d6981 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-gssapi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-gssapi | grep -v \.src | grep cyrus-sasl-gssapi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-gssapi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-gssapi + CHECK_RESULT $? 0 0 "install cyrus-sasl-gssapi failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-gssapi + CHECK_RESULT $? 0 0 "remove cyrus-sasl-gssapi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-help.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2ae7f64416ae02a9450c1ac19f211c2adc037c3 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-help | grep -v \.src | grep cyrus-sasl-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-help + CHECK_RESULT $? 0 0 "install cyrus-sasl-help failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-help + CHECK_RESULT $? 0 0 "remove cyrus-sasl-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-ldap.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-ldap.sh new file mode 100644 index 0000000000000000000000000000000000000000..f29f71f89c6b1a96474bad09acde1300f2b8a209 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-ldap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-ldap | grep -v \.src | grep cyrus-sasl-ldap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-ldap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-ldap + CHECK_RESULT $? 0 0 "install cyrus-sasl-ldap failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-ldap + CHECK_RESULT $? 0 0 "remove cyrus-sasl-ldap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-lib.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-lib.sh new file mode 100644 index 0000000000000000000000000000000000000000..41f12e4b92b6e20f8fae9e6b4e99461dd00b3ad1 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-lib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-lib | grep -v \.src | grep cyrus-sasl-lib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-lib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-lib + CHECK_RESULT $? 0 0 "install cyrus-sasl-lib failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-lib + CHECK_RESULT $? 0 0 "remove cyrus-sasl-lib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-md5.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-md5.sh new file mode 100644 index 0000000000000000000000000000000000000000..d577f58b4f9ef05d6b002661d70a11384517eaca --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-md5.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-md5 | grep -v \.src | grep cyrus-sasl-md5 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-md5" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-md5 + CHECK_RESULT $? 0 0 "install cyrus-sasl-md5 failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-md5 + CHECK_RESULT $? 0 0 "remove cyrus-sasl-md5 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-ntlm.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-ntlm.sh new file mode 100644 index 0000000000000000000000000000000000000000..39aac4c0f2b06bfa1d82a2665510e44ea3644f81 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-ntlm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-ntlm | grep -v \.src | grep cyrus-sasl-ntlm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-ntlm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-ntlm + CHECK_RESULT $? 0 0 "install cyrus-sasl-ntlm failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-ntlm + CHECK_RESULT $? 0 0 "remove cyrus-sasl-ntlm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-plain.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-plain.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d751d73ab27786649481da9d4e3500b2b40d2c1 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-plain.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-plain | grep -v \.src | grep cyrus-sasl-plain + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-plain" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-plain + CHECK_RESULT $? 0 0 "install cyrus-sasl-plain failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-plain + CHECK_RESULT $? 0 0 "remove cyrus-sasl-plain failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-scram.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-scram.sh new file mode 100644 index 0000000000000000000000000000000000000000..da6eb52beb1040e0fc1339bd1920e6786e65eaac --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-scram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-scram | grep -v \.src | grep cyrus-sasl-scram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-scram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-scram + CHECK_RESULT $? 0 0 "install cyrus-sasl-scram failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-scram + CHECK_RESULT $? 0 0 "remove cyrus-sasl-scram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-sql.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-sql.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f65be299b127b5f902cb9cb9682841c1941aeb0 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl-sql.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl-sql | grep -v \.src | grep cyrus-sasl-sql + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl-sql" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl-sql + CHECK_RESULT $? 0 0 "install cyrus-sasl-sql failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl-sql + CHECK_RESULT $? 0 0 "remove cyrus-sasl-sql failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl.sh b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl.sh new file mode 100644 index 0000000000000000000000000000000000000000..658fb76ec91cc8471be2bb0a7aada892bfd57da8 --- /dev/null +++ b/testcases/cli-test/cyrus-sasl/oe_test_cyrus-sasl_install_and_remove_cyrus-sasl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src cyrus-sasl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cyrus-sasl | grep -v \.src | grep cyrus-sasl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cyrus-sasl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cyrus-sasl + CHECK_RESULT $? 0 0 "install cyrus-sasl failed" + SLEEP_WAIT 1 + dnf remove -y cyrus-sasl + CHECK_RESULT $? 0 0 "remove cyrus-sasl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dblatex/oe_test_dblatex_install_and_remove_dblatex-help.sh b/testcases/cli-test/dblatex/oe_test_dblatex_install_and_remove_dblatex-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e05b4215fe4edbae42d4c5326448d8e81ace8d80 --- /dev/null +++ b/testcases/cli-test/dblatex/oe_test_dblatex_install_and_remove_dblatex-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dblatex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dblatex-help | grep -v \.src | grep dblatex-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dblatex-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dblatex-help + CHECK_RESULT $? 0 0 "install dblatex-help failed" + SLEEP_WAIT 1 + dnf remove -y dblatex-help + CHECK_RESULT $? 0 0 "remove dblatex-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dblatex/oe_test_dblatex_install_and_remove_dblatex.sh b/testcases/cli-test/dblatex/oe_test_dblatex_install_and_remove_dblatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..e954d7ab35c0375e432b2b0bd7f8ce5248d4dd8a --- /dev/null +++ b/testcases/cli-test/dblatex/oe_test_dblatex_install_and_remove_dblatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dblatex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dblatex | grep -v \.src | grep dblatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dblatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dblatex + CHECK_RESULT $? 0 0 "install dblatex failed" + SLEEP_WAIT 1 + dnf remove -y dblatex + CHECK_RESULT $? 0 0 "remove dblatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-debuginfo.sh b/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4ceb0091bd560872af67451610790fde8a1c3a6 --- /dev/null +++ b/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-glib-debuginfo | grep -v \.src | grep dbus-glib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-glib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-glib-debuginfo + CHECK_RESULT $? 0 0 "install dbus-glib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dbus-glib-debuginfo + CHECK_RESULT $? 0 0 "remove dbus-glib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-debugsource.sh b/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..31462f464bd519c366cf500d73a037117c49832c --- /dev/null +++ b/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-glib-debugsource | grep -v \.src | grep dbus-glib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-glib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-glib-debugsource + CHECK_RESULT $? 0 0 "install dbus-glib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dbus-glib-debugsource + CHECK_RESULT $? 0 0 "remove dbus-glib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-devel.sh b/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..766dc7118956de16394345bd5eaa150cdbd7884d --- /dev/null +++ b/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-glib-devel | grep -v \.src | grep dbus-glib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-glib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-glib-devel + CHECK_RESULT $? 0 0 "install dbus-glib-devel failed" + SLEEP_WAIT 1 + dnf remove -y dbus-glib-devel + CHECK_RESULT $? 0 0 "remove dbus-glib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-help.sh b/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..83c85cc8a4c7524faf5a54e6c7c7880b2fbbbe96 --- /dev/null +++ b/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-glib-help | grep -v \.src | grep dbus-glib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-glib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-glib-help + CHECK_RESULT $? 0 0 "install dbus-glib-help failed" + SLEEP_WAIT 1 + dnf remove -y dbus-glib-help + CHECK_RESULT $? 0 0 "remove dbus-glib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib.sh b/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fad5d1931c106d2d0d66369d2bbfc8a986f28d9 --- /dev/null +++ b/testcases/cli-test/dbus-glib/oe_test_dbus-glib_install_and_remove_dbus-glib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-glib | grep -v \.src | grep dbus-glib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-glib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-glib + CHECK_RESULT $? 0 0 "install dbus-glib failed" + SLEEP_WAIT 1 + dnf remove -y dbus-glib + CHECK_RESULT $? 0 0 "remove dbus-glib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-debuginfo.sh b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf40792ea038b6acd40d2a87999654b1599d797a --- /dev/null +++ b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-python +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-python-debuginfo | grep -v \.src | grep dbus-python-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-python-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-python-debuginfo + CHECK_RESULT $? 0 0 "install dbus-python-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dbus-python-debuginfo + CHECK_RESULT $? 0 0 "remove dbus-python-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-debugsource.sh b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8769cc3ccb9d8506c8a2e17954b0a29189113d7c --- /dev/null +++ b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-python +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-python-debugsource | grep -v \.src | grep dbus-python-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-python-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-python-debugsource + CHECK_RESULT $? 0 0 "install dbus-python-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dbus-python-debugsource + CHECK_RESULT $? 0 0 "remove dbus-python-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-devel.sh b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9a2f10053862db7a8f0fe05b1d224642622ce53 --- /dev/null +++ b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-python +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-python-devel | grep -v \.src | grep dbus-python-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-python-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-python-devel + CHECK_RESULT $? 0 0 "install dbus-python-devel failed" + SLEEP_WAIT 1 + dnf remove -y dbus-python-devel + CHECK_RESULT $? 0 0 "remove dbus-python-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-help.sh b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ee6c5d81af23106866943be71c782e4d34f406f --- /dev/null +++ b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-python +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-python-help | grep -v \.src | grep dbus-python-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-python-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-python-help + CHECK_RESULT $? 0 0 "install dbus-python-help failed" + SLEEP_WAIT 1 + dnf remove -y dbus-python-help + CHECK_RESULT $? 0 0 "remove dbus-python-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python.sh b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8ae0bd91b018979d941fb3329ed99f96c255160 --- /dev/null +++ b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_dbus-python.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-python +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-python | grep -v \.src | grep dbus-python + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-python" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-python + CHECK_RESULT $? 0 0 "install dbus-python failed" + SLEEP_WAIT 1 + dnf remove -y dbus-python + CHECK_RESULT $? 0 0 "remove dbus-python failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_python2-dbus.sh b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_python2-dbus.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb660426d96543fc26b55c65afef0e4ede37479d --- /dev/null +++ b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_python2-dbus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-python +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-dbus | grep -v \.src | grep python2-dbus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-dbus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-dbus + CHECK_RESULT $? 0 0 "install python2-dbus failed" + SLEEP_WAIT 1 + dnf remove -y python2-dbus + CHECK_RESULT $? 0 0 "remove python2-dbus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_python3-dbus.sh b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_python3-dbus.sh new file mode 100644 index 0000000000000000000000000000000000000000..033c6dad74d52570ff50213182c5066908b623be --- /dev/null +++ b/testcases/cli-test/dbus-python/oe_test_dbus-python_install_and_remove_python3-dbus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus-python +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dbus | grep -v \.src | grep python3-dbus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dbus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dbus + CHECK_RESULT $? 0 0 "install python3-dbus failed" + SLEEP_WAIT 1 + dnf remove -y python3-dbus + CHECK_RESULT $? 0 0 "remove python3-dbus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-common.sh b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ca01319e34f6139a6f634b24b85737d5584243d --- /dev/null +++ b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-common | grep -v \.src | grep dbus-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-common + CHECK_RESULT $? 0 0 "install dbus-common failed" + SLEEP_WAIT 1 + dnf remove -y dbus-common + CHECK_RESULT $? 0 0 "remove dbus-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-daemon.sh b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-daemon.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0d2fa49f87b63a17a22ac611f6a8ddb333473cf --- /dev/null +++ b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-daemon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-daemon | grep -v \.src | grep dbus-daemon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-daemon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-daemon + CHECK_RESULT $? 0 0 "install dbus-daemon failed" + SLEEP_WAIT 1 + dnf remove -y dbus-daemon + CHECK_RESULT $? 0 0 "remove dbus-daemon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-debuginfo.sh b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..aac3dee0c7051f567df17461e2dca5135985b3c4 --- /dev/null +++ b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-debuginfo | grep -v \.src | grep dbus-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-debuginfo + CHECK_RESULT $? 0 0 "install dbus-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dbus-debuginfo + CHECK_RESULT $? 0 0 "remove dbus-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-debugsource.sh b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..145ba87c27f01230467a48a5ae846eaab70d5475 --- /dev/null +++ b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-debugsource | grep -v \.src | grep dbus-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-debugsource + CHECK_RESULT $? 0 0 "install dbus-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dbus-debugsource + CHECK_RESULT $? 0 0 "remove dbus-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-devel.sh b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d7baad94d1628d803f5c83e5bcc94405fa4d715 --- /dev/null +++ b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-devel | grep -v \.src | grep dbus-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-devel + CHECK_RESULT $? 0 0 "install dbus-devel failed" + SLEEP_WAIT 1 + dnf remove -y dbus-devel + CHECK_RESULT $? 0 0 "remove dbus-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-help.sh b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..241709f8e9ed83621adb1fd41259fb3a2478bf9a --- /dev/null +++ b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-help | grep -v \.src | grep dbus-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-help + CHECK_RESULT $? 0 0 "install dbus-help failed" + SLEEP_WAIT 1 + dnf remove -y dbus-help + CHECK_RESULT $? 0 0 "remove dbus-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-libs.sh b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..83d2c8cfafadb206a6670e4510244449ffc6d8ad --- /dev/null +++ b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-libs | grep -v \.src | grep dbus-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-libs + CHECK_RESULT $? 0 0 "install dbus-libs failed" + SLEEP_WAIT 1 + dnf remove -y dbus-libs + CHECK_RESULT $? 0 0 "remove dbus-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-tools.sh b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..01bf8f05972e0186b13df4bf5dc3f1ee9417f84d --- /dev/null +++ b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-tools | grep -v \.src | grep dbus-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-tools + CHECK_RESULT $? 0 0 "install dbus-tools failed" + SLEEP_WAIT 1 + dnf remove -y dbus-tools + CHECK_RESULT $? 0 0 "remove dbus-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-x11.sh b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-x11.sh new file mode 100644 index 0000000000000000000000000000000000000000..deb1b506bee704ba8e7a8de1ed6d1d2463af4d5f --- /dev/null +++ b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus-x11.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus-x11 | grep -v \.src | grep dbus-x11 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus-x11" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus-x11 + CHECK_RESULT $? 0 0 "install dbus-x11 failed" + SLEEP_WAIT 1 + dnf remove -y dbus-x11 + CHECK_RESULT $? 0 0 "remove dbus-x11 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus.sh b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus.sh new file mode 100644 index 0000000000000000000000000000000000000000..34f1a02d3c8c2d36475db615a10544c2fe762385 --- /dev/null +++ b/testcases/cli-test/dbus/oe_test_dbus_install_and_remove_dbus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dbus | grep -v \.src | grep dbus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dbus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dbus + CHECK_RESULT $? 0 0 "install dbus failed" + SLEEP_WAIT 1 + dnf remove -y dbus + CHECK_RESULT $? 0 0 "remove dbus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/debugedit/oe_test_debugedit_install_and_remove_debugedit-debuginfo.sh b/testcases/cli-test/debugedit/oe_test_debugedit_install_and_remove_debugedit-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..029dd7983e34b874f34387fbf762f43460fe7e4a --- /dev/null +++ b/testcases/cli-test/debugedit/oe_test_debugedit_install_and_remove_debugedit-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src debugedit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available debugedit-debuginfo | grep -v \.src | grep debugedit-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm debugedit-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y debugedit-debuginfo + CHECK_RESULT $? 0 0 "install debugedit-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y debugedit-debuginfo + CHECK_RESULT $? 0 0 "remove debugedit-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/debugedit/oe_test_debugedit_install_and_remove_debugedit-debugsource.sh b/testcases/cli-test/debugedit/oe_test_debugedit_install_and_remove_debugedit-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c1a04dc30a78992122779aff5405178b8d4f483 --- /dev/null +++ b/testcases/cli-test/debugedit/oe_test_debugedit_install_and_remove_debugedit-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src debugedit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available debugedit-debugsource | grep -v \.src | grep debugedit-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm debugedit-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y debugedit-debugsource + CHECK_RESULT $? 0 0 "install debugedit-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y debugedit-debugsource + CHECK_RESULT $? 0 0 "remove debugedit-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/debugedit/oe_test_debugedit_install_and_remove_debugedit.sh b/testcases/cli-test/debugedit/oe_test_debugedit_install_and_remove_debugedit.sh new file mode 100644 index 0000000000000000000000000000000000000000..52d278fe89722f0d8bf50274dcd73c1e2a65f765 --- /dev/null +++ b/testcases/cli-test/debugedit/oe_test_debugedit_install_and_remove_debugedit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src debugedit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available debugedit | grep -v \.src | grep debugedit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm debugedit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y debugedit + CHECK_RESULT $? 0 0 "install debugedit failed" + SLEEP_WAIT 1 + dnf remove -y debugedit + CHECK_RESULT $? 0 0 "remove debugedit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dejagnu/oe_test_dejagnu_install_and_remove_dejagnu-help.sh b/testcases/cli-test/dejagnu/oe_test_dejagnu_install_and_remove_dejagnu-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ead687399dcd4505c12635b45af6a2945f8f692 --- /dev/null +++ b/testcases/cli-test/dejagnu/oe_test_dejagnu_install_and_remove_dejagnu-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dejagnu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dejagnu-help | grep -v \.src | grep dejagnu-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dejagnu-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dejagnu-help + CHECK_RESULT $? 0 0 "install dejagnu-help failed" + SLEEP_WAIT 1 + dnf remove -y dejagnu-help + CHECK_RESULT $? 0 0 "remove dejagnu-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dejagnu/oe_test_dejagnu_install_and_remove_dejagnu.sh b/testcases/cli-test/dejagnu/oe_test_dejagnu_install_and_remove_dejagnu.sh new file mode 100644 index 0000000000000000000000000000000000000000..b694fdf24b23d5bda4628aa1f59ce9ec4fd827e1 --- /dev/null +++ b/testcases/cli-test/dejagnu/oe_test_dejagnu_install_and_remove_dejagnu.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dejagnu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dejagnu | grep -v \.src | grep dejagnu + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dejagnu" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dejagnu + CHECK_RESULT $? 0 0 "install dejagnu failed" + SLEEP_WAIT 1 + dnf remove -y dejagnu + CHECK_RESULT $? 0 0 "remove dejagnu failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dejavu-fonts/oe_test_dejavu-fonts_install_and_remove_dejavu-fonts.sh b/testcases/cli-test/dejavu-fonts/oe_test_dejavu-fonts_install_and_remove_dejavu-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..4fb2adccfa85d552cefa7c41cf2ba4a2a9f8e472 --- /dev/null +++ b/testcases/cli-test/dejavu-fonts/oe_test_dejavu-fonts_install_and_remove_dejavu-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dejavu-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dejavu-fonts | grep -v \.src | grep dejavu-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dejavu-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dejavu-fonts + CHECK_RESULT $? 0 0 "install dejavu-fonts failed" + SLEEP_WAIT 1 + dnf remove -y dejavu-fonts + CHECK_RESULT $? 0 0 "remove dejavu-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-debuginfo.sh b/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6709fe623e426168af67b47e016dd44810d70a9 --- /dev/null +++ b/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src desktop-file-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available desktop-file-utils-debuginfo | grep -v \.src | grep desktop-file-utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm desktop-file-utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y desktop-file-utils-debuginfo + CHECK_RESULT $? 0 0 "install desktop-file-utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y desktop-file-utils-debuginfo + CHECK_RESULT $? 0 0 "remove desktop-file-utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-debugsource.sh b/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..427f3c3554b7df045dd9a0d6784d73af94398670 --- /dev/null +++ b/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src desktop-file-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available desktop-file-utils-debugsource | grep -v \.src | grep desktop-file-utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm desktop-file-utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y desktop-file-utils-debugsource + CHECK_RESULT $? 0 0 "install desktop-file-utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y desktop-file-utils-debugsource + CHECK_RESULT $? 0 0 "remove desktop-file-utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-help.sh b/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1c44fcafb0c337f93d96c5e6f0672927783c6a3 --- /dev/null +++ b/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src desktop-file-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available desktop-file-utils-help | grep -v \.src | grep desktop-file-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm desktop-file-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y desktop-file-utils-help + CHECK_RESULT $? 0 0 "install desktop-file-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y desktop-file-utils-help + CHECK_RESULT $? 0 0 "remove desktop-file-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils.sh b/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..dca2efa8d0a6ec33d8a4ede1d818b22977dfa4cc --- /dev/null +++ b/testcases/cli-test/desktop-file-utils/oe_test_desktop-file-utils_install_and_remove_desktop-file-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src desktop-file-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available desktop-file-utils | grep -v \.src | grep desktop-file-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm desktop-file-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y desktop-file-utils + CHECK_RESULT $? 0 0 "install desktop-file-utils failed" + SLEEP_WAIT 1 + dnf remove -y desktop-file-utils + CHECK_RESULT $? 0 0 "remove desktop-file-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-debuginfo.sh b/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..437d5bdc0d9b7d25a3ced0f8e6d3b4a976123d78 --- /dev/null +++ b/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dhcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dhcp-debuginfo | grep -v \.src | grep dhcp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dhcp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dhcp-debuginfo + CHECK_RESULT $? 0 0 "install dhcp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dhcp-debuginfo + CHECK_RESULT $? 0 0 "remove dhcp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-debugsource.sh b/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..268732626a5a646ed3b0824f957b8f72cb5d6463 --- /dev/null +++ b/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dhcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dhcp-debugsource | grep -v \.src | grep dhcp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dhcp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dhcp-debugsource + CHECK_RESULT $? 0 0 "install dhcp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dhcp-debugsource + CHECK_RESULT $? 0 0 "remove dhcp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-devel.sh b/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c57c05e9803a104657e46bd5757b265d3d878936 --- /dev/null +++ b/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dhcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dhcp-devel | grep -v \.src | grep dhcp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dhcp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dhcp-devel + CHECK_RESULT $? 0 0 "install dhcp-devel failed" + SLEEP_WAIT 1 + dnf remove -y dhcp-devel + CHECK_RESULT $? 0 0 "remove dhcp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-help.sh b/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..20bf95fd0e8aa3bc5a00be3124bc59ee562c8e23 --- /dev/null +++ b/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dhcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dhcp-help | grep -v \.src | grep dhcp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dhcp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dhcp-help + CHECK_RESULT $? 0 0 "install dhcp-help failed" + SLEEP_WAIT 1 + dnf remove -y dhcp-help + CHECK_RESULT $? 0 0 "remove dhcp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp.sh b/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp.sh new file mode 100644 index 0000000000000000000000000000000000000000..37850f626ab9846b3110b4e9f74489cfca5f3cc6 --- /dev/null +++ b/testcases/cli-test/dhcp/oe_test_dhcp_install_and_remove_dhcp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dhcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dhcp | grep -v \.src | grep dhcp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dhcp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dhcp + CHECK_RESULT $? 0 0 "install dhcp failed" + SLEEP_WAIT 1 + dnf remove -y dhcp + CHECK_RESULT $? 0 0 "remove dhcp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat-debuginfo.sh b/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..47adf4acd72172148b141e8ff6a66d2b448d4092 --- /dev/null +++ b/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src diffstat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available diffstat-debuginfo | grep -v \.src | grep diffstat-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm diffstat-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y diffstat-debuginfo + CHECK_RESULT $? 0 0 "install diffstat-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y diffstat-debuginfo + CHECK_RESULT $? 0 0 "remove diffstat-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat-debugsource.sh b/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7cf8a08ae8c81fbac1836957df460a5ddb9ebdb --- /dev/null +++ b/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src diffstat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available diffstat-debugsource | grep -v \.src | grep diffstat-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm diffstat-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y diffstat-debugsource + CHECK_RESULT $? 0 0 "install diffstat-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y diffstat-debugsource + CHECK_RESULT $? 0 0 "remove diffstat-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat-help.sh b/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..80cd52372d56a6ebd5eb3a654418b26e415e7fd4 --- /dev/null +++ b/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src diffstat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available diffstat-help | grep -v \.src | grep diffstat-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm diffstat-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y diffstat-help + CHECK_RESULT $? 0 0 "install diffstat-help failed" + SLEEP_WAIT 1 + dnf remove -y diffstat-help + CHECK_RESULT $? 0 0 "remove diffstat-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat.sh b/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat.sh new file mode 100644 index 0000000000000000000000000000000000000000..4904e9c844923a691aacd53f9456022de2007f01 --- /dev/null +++ b/testcases/cli-test/diffstat/oe_test_diffstat_install_and_remove_diffstat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src diffstat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available diffstat | grep -v \.src | grep diffstat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm diffstat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y diffstat + CHECK_RESULT $? 0 0 "install diffstat failed" + SLEEP_WAIT 1 + dnf remove -y diffstat + CHECK_RESULT $? 0 0 "remove diffstat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils-debuginfo.sh b/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..adc4273f0f9d7774be6445279d99e4bbaa2b8ea5 --- /dev/null +++ b/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src diffutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available diffutils-debuginfo | grep -v \.src | grep diffutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm diffutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y diffutils-debuginfo + CHECK_RESULT $? 0 0 "install diffutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y diffutils-debuginfo + CHECK_RESULT $? 0 0 "remove diffutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils-debugsource.sh b/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..45e315374f7d077bb068aed05e0af80c544d186f --- /dev/null +++ b/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src diffutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available diffutils-debugsource | grep -v \.src | grep diffutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm diffutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y diffutils-debugsource + CHECK_RESULT $? 0 0 "install diffutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y diffutils-debugsource + CHECK_RESULT $? 0 0 "remove diffutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils-help.sh b/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5633b9b108a583e042386050097560abd30d75f7 --- /dev/null +++ b/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src diffutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available diffutils-help | grep -v \.src | grep diffutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm diffutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y diffutils-help + CHECK_RESULT $? 0 0 "install diffutils-help failed" + SLEEP_WAIT 1 + dnf remove -y diffutils-help + CHECK_RESULT $? 0 0 "remove diffutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils.sh b/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..e231984dc23a20bcafd91485a7428620b1952a43 --- /dev/null +++ b/testcases/cli-test/diffutils/oe_test_diffutils_install_and_remove_diffutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src diffutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available diffutils | grep -v \.src | grep diffutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm diffutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y diffutils + CHECK_RESULT $? 0 0 "install diffutils failed" + SLEEP_WAIT 1 + dnf remove -y diffutils + CHECK_RESULT $? 0 0 "remove diffutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-debuginfo.sh b/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f4c641a9b27481a286cc35c291c095b51aa23b8 --- /dev/null +++ b/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ding-libs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ding-libs-debuginfo | grep -v \.src | grep ding-libs-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ding-libs-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ding-libs-debuginfo + CHECK_RESULT $? 0 0 "install ding-libs-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ding-libs-debuginfo + CHECK_RESULT $? 0 0 "remove ding-libs-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-debugsource.sh b/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd862876342f1500856489fea8c47fadaf6a449e --- /dev/null +++ b/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ding-libs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ding-libs-debugsource | grep -v \.src | grep ding-libs-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ding-libs-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ding-libs-debugsource + CHECK_RESULT $? 0 0 "install ding-libs-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ding-libs-debugsource + CHECK_RESULT $? 0 0 "remove ding-libs-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-devel.sh b/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..63c222b8d8ac6a70e9b19c0c6ef86b17ca9d0d22 --- /dev/null +++ b/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ding-libs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ding-libs-devel | grep -v \.src | grep ding-libs-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ding-libs-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ding-libs-devel + CHECK_RESULT $? 0 0 "install ding-libs-devel failed" + SLEEP_WAIT 1 + dnf remove -y ding-libs-devel + CHECK_RESULT $? 0 0 "remove ding-libs-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-help.sh b/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b258facd554e02c0a60e69e19b029f30728c48f --- /dev/null +++ b/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ding-libs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ding-libs-help | grep -v \.src | grep ding-libs-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ding-libs-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ding-libs-help + CHECK_RESULT $? 0 0 "install ding-libs-help failed" + SLEEP_WAIT 1 + dnf remove -y ding-libs-help + CHECK_RESULT $? 0 0 "remove ding-libs-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs.sh b/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0957e6099322c48d4e9673170b9b21a2b4e51a6 --- /dev/null +++ b/testcases/cli-test/ding-libs/oe_test_ding-libs_install_and_remove_ding-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ding-libs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ding-libs | grep -v \.src | grep ding-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ding-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ding-libs + CHECK_RESULT $? 0 0 "install ding-libs failed" + SLEEP_WAIT 1 + dnf remove -y ding-libs + CHECK_RESULT $? 0 0 "remove ding-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-debuginfo.sh b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bfedc0fcd6a21f92c37d4e8e88fc1c5a0edb1b1 --- /dev/null +++ b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dmraid +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dmraid-debuginfo | grep -v \.src | grep dmraid-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dmraid-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dmraid-debuginfo + CHECK_RESULT $? 0 0 "install dmraid-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dmraid-debuginfo + CHECK_RESULT $? 0 0 "remove dmraid-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-debugsource.sh b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccaf26ad80727b7e234e1d4121a165594a1b4c2c --- /dev/null +++ b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dmraid +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dmraid-debugsource | grep -v \.src | grep dmraid-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dmraid-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dmraid-debugsource + CHECK_RESULT $? 0 0 "install dmraid-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dmraid-debugsource + CHECK_RESULT $? 0 0 "remove dmraid-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-devel.sh b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1f30c638b3e61bb8d212af211081cd68a9630f6 --- /dev/null +++ b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dmraid +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dmraid-devel | grep -v \.src | grep dmraid-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dmraid-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dmraid-devel + CHECK_RESULT $? 0 0 "install dmraid-devel failed" + SLEEP_WAIT 1 + dnf remove -y dmraid-devel + CHECK_RESULT $? 0 0 "remove dmraid-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-events-logwatch.sh b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-events-logwatch.sh new file mode 100644 index 0000000000000000000000000000000000000000..5127907e1442f6ffea32768c9c4fda2e0f2c516c --- /dev/null +++ b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-events-logwatch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dmraid +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dmraid-events-logwatch | grep -v \.src | grep dmraid-events-logwatch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dmraid-events-logwatch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dmraid-events-logwatch + CHECK_RESULT $? 0 0 "install dmraid-events-logwatch failed" + SLEEP_WAIT 1 + dnf remove -y dmraid-events-logwatch + CHECK_RESULT $? 0 0 "remove dmraid-events-logwatch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-events.sh b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-events.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6913cb7d41dd76002f21ea2ed95acdbbab94c3e --- /dev/null +++ b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid-events.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dmraid +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dmraid-events | grep -v \.src | grep dmraid-events + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dmraid-events" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dmraid-events + CHECK_RESULT $? 0 0 "install dmraid-events failed" + SLEEP_WAIT 1 + dnf remove -y dmraid-events + CHECK_RESULT $? 0 0 "remove dmraid-events failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid.sh b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid.sh new file mode 100644 index 0000000000000000000000000000000000000000..b192355802bf098ad51eb0427912da9365b0b4d1 --- /dev/null +++ b/testcases/cli-test/dmraid/oe_test_dmraid_install_and_remove_dmraid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dmraid +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dmraid | grep -v \.src | grep dmraid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dmraid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dmraid + CHECK_RESULT $? 0 0 "install dmraid failed" + SLEEP_WAIT 1 + dnf remove -y dmraid + CHECK_RESULT $? 0 0 "remove dmraid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_dnf-plugins-core-help.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_dnf-plugins-core-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..16fe89645ece9b76127d224758769f61d1c8f82c --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_dnf-plugins-core-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dnf-plugins-core-help | grep -v \.src | grep dnf-plugins-core-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dnf-plugins-core-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dnf-plugins-core-help + CHECK_RESULT $? 0 0 "install dnf-plugins-core-help failed" + SLEEP_WAIT 1 + dnf remove -y dnf-plugins-core-help + CHECK_RESULT $? 0 0 "remove dnf-plugins-core-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_dnf-plugins-core.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_dnf-plugins-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7ac0ef2fb24c98f0fcbf86baec519f7ec05b209 --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_dnf-plugins-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dnf-plugins-core | grep -v \.src | grep dnf-plugins-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dnf-plugins-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dnf-plugins-core + CHECK_RESULT $? 0 0 "install dnf-plugins-core failed" + SLEEP_WAIT 1 + dnf remove -y dnf-plugins-core + CHECK_RESULT $? 0 0 "remove dnf-plugins-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugin-migrate.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugin-migrate.sh new file mode 100644 index 0000000000000000000000000000000000000000..1506867ee5d13e13f9998a1a04aca60ac5e0185f --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugin-migrate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-dnf-plugin-migrate | grep -v \.src | grep python2-dnf-plugin-migrate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-dnf-plugin-migrate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-dnf-plugin-migrate + CHECK_RESULT $? 0 0 "install python2-dnf-plugin-migrate failed" + SLEEP_WAIT 1 + dnf remove -y python2-dnf-plugin-migrate + CHECK_RESULT $? 0 0 "remove python2-dnf-plugin-migrate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugin-versionlock.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugin-versionlock.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2624867f064493a04d7ff67f89a7982e232d937 --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugin-versionlock.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-dnf-plugin-versionlock | grep -v \.src | grep python2-dnf-plugin-versionlock + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-dnf-plugin-versionlock" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-dnf-plugin-versionlock + CHECK_RESULT $? 0 0 "install python2-dnf-plugin-versionlock failed" + SLEEP_WAIT 1 + dnf remove -y python2-dnf-plugin-versionlock + CHECK_RESULT $? 0 0 "remove python2-dnf-plugin-versionlock failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugins-core.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugins-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6a44bb739c071d35cd06bacf7ba223eed9e3489 --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python2-dnf-plugins-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-dnf-plugins-core | grep -v \.src | grep python2-dnf-plugins-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-dnf-plugins-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-dnf-plugins-core + CHECK_RESULT $? 0 0 "install python2-dnf-plugins-core failed" + SLEEP_WAIT 1 + dnf remove -y python2-dnf-plugins-core + CHECK_RESULT $? 0 0 "remove python2-dnf-plugins-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-leaves.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-leaves.sh new file mode 100644 index 0000000000000000000000000000000000000000..5414dc958a09deab215202abcef871f52e73afa5 --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-leaves.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dnf-plugin-leaves | grep -v \.src | grep python3-dnf-plugin-leaves + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dnf-plugin-leaves" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dnf-plugin-leaves + CHECK_RESULT $? 0 0 "install python3-dnf-plugin-leaves failed" + SLEEP_WAIT 1 + dnf remove -y python3-dnf-plugin-leaves + CHECK_RESULT $? 0 0 "remove python3-dnf-plugin-leaves failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-local.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-local.sh new file mode 100644 index 0000000000000000000000000000000000000000..d160c9686969b98b14d6c1c03e46c0e9382aec32 --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-local.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dnf-plugin-local | grep -v \.src | grep python3-dnf-plugin-local + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dnf-plugin-local" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dnf-plugin-local + CHECK_RESULT $? 0 0 "install python3-dnf-plugin-local failed" + SLEEP_WAIT 1 + dnf remove -y python3-dnf-plugin-local + CHECK_RESULT $? 0 0 "remove python3-dnf-plugin-local failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-modulesync.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-modulesync.sh new file mode 100644 index 0000000000000000000000000000000000000000..77157bc026b9b0728a9719656761f8ed83fbe069 --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-modulesync.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dnf-plugin-modulesync | grep -v \.src | grep python3-dnf-plugin-modulesync + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dnf-plugin-modulesync" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dnf-plugin-modulesync + CHECK_RESULT $? 0 0 "install python3-dnf-plugin-modulesync failed" + SLEEP_WAIT 1 + dnf remove -y python3-dnf-plugin-modulesync + CHECK_RESULT $? 0 0 "remove python3-dnf-plugin-modulesync failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-post-transaction-actions.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-post-transaction-actions.sh new file mode 100644 index 0000000000000000000000000000000000000000..d59351fdcb3c823e5b1541756afc3bf59715e24d --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-post-transaction-actions.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dnf-plugin-post-transaction-actions | grep -v \.src | grep python3-dnf-plugin-post-transaction-actions + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dnf-plugin-post-transaction-actions" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dnf-plugin-post-transaction-actions + CHECK_RESULT $? 0 0 "install python3-dnf-plugin-post-transaction-actions failed" + SLEEP_WAIT 1 + dnf remove -y python3-dnf-plugin-post-transaction-actions + CHECK_RESULT $? 0 0 "remove python3-dnf-plugin-post-transaction-actions failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-show-leaves.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-show-leaves.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8dbce1564b41da021aaa70997d78df62604244f --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-show-leaves.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dnf-plugin-show-leaves | grep -v \.src | grep python3-dnf-plugin-show-leaves + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dnf-plugin-show-leaves" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dnf-plugin-show-leaves + CHECK_RESULT $? 0 0 "install python3-dnf-plugin-show-leaves failed" + SLEEP_WAIT 1 + dnf remove -y python3-dnf-plugin-show-leaves + CHECK_RESULT $? 0 0 "remove python3-dnf-plugin-show-leaves failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-versionlock.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-versionlock.sh new file mode 100644 index 0000000000000000000000000000000000000000..f300eed0fa3027367ffdf1637888a79fb7d0cd59 --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugin-versionlock.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dnf-plugin-versionlock | grep -v \.src | grep python3-dnf-plugin-versionlock + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dnf-plugin-versionlock" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dnf-plugin-versionlock + CHECK_RESULT $? 0 0 "install python3-dnf-plugin-versionlock failed" + SLEEP_WAIT 1 + dnf remove -y python3-dnf-plugin-versionlock + CHECK_RESULT $? 0 0 "remove python3-dnf-plugin-versionlock failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugins-core.sh b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugins-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..b020e06d36179299f5f87af42e46f7c24c420d15 --- /dev/null +++ b/testcases/cli-test/dnf-plugins-core/oe_test_dnf-plugins-core_install_and_remove_python3-dnf-plugins-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf-plugins-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dnf-plugins-core | grep -v \.src | grep python3-dnf-plugins-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dnf-plugins-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dnf-plugins-core + CHECK_RESULT $? 0 0 "install python3-dnf-plugins-core failed" + SLEEP_WAIT 1 + dnf remove -y python3-dnf-plugins-core + CHECK_RESULT $? 0 0 "remove python3-dnf-plugins-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf-automatic.sh b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf-automatic.sh new file mode 100644 index 0000000000000000000000000000000000000000..e398de8a9c7aa8eba9abb66bd64279c055c021df --- /dev/null +++ b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf-automatic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dnf-automatic | grep -v \.src | grep dnf-automatic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dnf-automatic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dnf-automatic + CHECK_RESULT $? 0 0 "install dnf-automatic failed" + SLEEP_WAIT 1 + dnf remove -y dnf-automatic + CHECK_RESULT $? 0 0 "remove dnf-automatic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf-data.sh b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf-data.sh new file mode 100644 index 0000000000000000000000000000000000000000..338895e46731de718ef9c2b269bfe2572c00b21f --- /dev/null +++ b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf-data.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dnf-data | grep -v \.src | grep dnf-data + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dnf-data" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dnf-data + CHECK_RESULT $? 0 0 "install dnf-data failed" + SLEEP_WAIT 1 + dnf remove -y dnf-data + CHECK_RESULT $? 0 0 "remove dnf-data failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf-help.sh b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9c029287e62cd1e9884f8900abfd84eca5d5a73 --- /dev/null +++ b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dnf-help | grep -v \.src | grep dnf-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dnf-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dnf-help + CHECK_RESULT $? 0 0 "install dnf-help failed" + SLEEP_WAIT 1 + dnf remove -y dnf-help + CHECK_RESULT $? 0 0 "remove dnf-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf.sh b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f3927ef5b48c92ec017acc22fe1e00cc3100727 --- /dev/null +++ b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_dnf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dnf | grep -v \.src | grep dnf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dnf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dnf + CHECK_RESULT $? 0 0 "install dnf failed" + SLEEP_WAIT 1 + dnf remove -y dnf + CHECK_RESULT $? 0 0 "remove dnf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_python2-dnf.sh b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_python2-dnf.sh new file mode 100644 index 0000000000000000000000000000000000000000..148020936ea5c6d15ccee691129a0b62ef51a150 --- /dev/null +++ b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_python2-dnf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-dnf | grep -v \.src | grep python2-dnf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-dnf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-dnf + CHECK_RESULT $? 0 0 "install python2-dnf failed" + SLEEP_WAIT 1 + dnf remove -y python2-dnf + CHECK_RESULT $? 0 0 "remove python2-dnf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_python3-dnf.sh b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_python3-dnf.sh new file mode 100644 index 0000000000000000000000000000000000000000..410f64ffd336235272f1411ab7fdfb8474a590ca --- /dev/null +++ b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_python3-dnf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dnf | grep -v \.src | grep python3-dnf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dnf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dnf + CHECK_RESULT $? 0 0 "install python3-dnf failed" + SLEEP_WAIT 1 + dnf remove -y python3-dnf + CHECK_RESULT $? 0 0 "remove python3-dnf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_yum.sh b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_yum.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a038a0b3b37310b9d8dab062dece72443ae922c --- /dev/null +++ b/testcases/cli-test/dnf/oe_test_dnf_install_and_remove_yum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available yum | grep -v \.src | grep yum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm yum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y yum + CHECK_RESULT $? 0 0 "install yum failed" + SLEEP_WAIT 1 + dnf remove -y yum + CHECK_RESULT $? 0 0 "remove yum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/docbook-dtds/oe_test_docbook-dtds_install_and_remove_docbook-dtds.sh b/testcases/cli-test/docbook-dtds/oe_test_docbook-dtds_install_and_remove_docbook-dtds.sh new file mode 100644 index 0000000000000000000000000000000000000000..206e27bf2910c33912b3949c83a4fe7b73b22f9d --- /dev/null +++ b/testcases/cli-test/docbook-dtds/oe_test_docbook-dtds_install_and_remove_docbook-dtds.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src docbook-dtds +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available docbook-dtds | grep -v \.src | grep docbook-dtds + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm docbook-dtds" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y docbook-dtds + CHECK_RESULT $? 0 0 "install docbook-dtds failed" + SLEEP_WAIT 1 + dnf remove -y docbook-dtds + CHECK_RESULT $? 0 0 "remove docbook-dtds failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/docbook-style-dsssl/oe_test_docbook-style-dsssl_install_and_remove_docbook-style-dsssl-help.sh b/testcases/cli-test/docbook-style-dsssl/oe_test_docbook-style-dsssl_install_and_remove_docbook-style-dsssl-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6abe5f255ebb8c6b54fef6f9e67dc92f8ab18a76 --- /dev/null +++ b/testcases/cli-test/docbook-style-dsssl/oe_test_docbook-style-dsssl_install_and_remove_docbook-style-dsssl-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src docbook-style-dsssl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available docbook-style-dsssl-help | grep -v \.src | grep docbook-style-dsssl-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm docbook-style-dsssl-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y docbook-style-dsssl-help + CHECK_RESULT $? 0 0 "install docbook-style-dsssl-help failed" + SLEEP_WAIT 1 + dnf remove -y docbook-style-dsssl-help + CHECK_RESULT $? 0 0 "remove docbook-style-dsssl-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/docbook-style-dsssl/oe_test_docbook-style-dsssl_install_and_remove_docbook-style-dsssl.sh b/testcases/cli-test/docbook-style-dsssl/oe_test_docbook-style-dsssl_install_and_remove_docbook-style-dsssl.sh new file mode 100644 index 0000000000000000000000000000000000000000..359027a0d4868e3693337a95cf6420202dcb24a9 --- /dev/null +++ b/testcases/cli-test/docbook-style-dsssl/oe_test_docbook-style-dsssl_install_and_remove_docbook-style-dsssl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src docbook-style-dsssl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available docbook-style-dsssl | grep -v \.src | grep docbook-style-dsssl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm docbook-style-dsssl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y docbook-style-dsssl + CHECK_RESULT $? 0 0 "install docbook-style-dsssl failed" + SLEEP_WAIT 1 + dnf remove -y docbook-style-dsssl + CHECK_RESULT $? 0 0 "remove docbook-style-dsssl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/docbook-style-xsl/oe_test_docbook-style-xsl_install_and_remove_docbook-style-xsl.sh b/testcases/cli-test/docbook-style-xsl/oe_test_docbook-style-xsl_install_and_remove_docbook-style-xsl.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8b53c4e57237f1a811d8759380b31b75173e539 --- /dev/null +++ b/testcases/cli-test/docbook-style-xsl/oe_test_docbook-style-xsl_install_and_remove_docbook-style-xsl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src docbook-style-xsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available docbook-style-xsl | grep -v \.src | grep docbook-style-xsl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm docbook-style-xsl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y docbook-style-xsl + CHECK_RESULT $? 0 0 "install docbook-style-xsl failed" + SLEEP_WAIT 1 + dnf remove -y docbook-style-xsl + CHECK_RESULT $? 0 0 "remove docbook-style-xsl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/docbook-utils/oe_test_docbook-utils_install_and_remove_docbook-utils-help.sh b/testcases/cli-test/docbook-utils/oe_test_docbook-utils_install_and_remove_docbook-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b40f27bbe042e9856af48cd1e8c3ebf606369ec2 --- /dev/null +++ b/testcases/cli-test/docbook-utils/oe_test_docbook-utils_install_and_remove_docbook-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src docbook-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available docbook-utils-help | grep -v \.src | grep docbook-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm docbook-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y docbook-utils-help + CHECK_RESULT $? 0 0 "install docbook-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y docbook-utils-help + CHECK_RESULT $? 0 0 "remove docbook-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/docbook-utils/oe_test_docbook-utils_install_and_remove_docbook-utils-pdf.sh b/testcases/cli-test/docbook-utils/oe_test_docbook-utils_install_and_remove_docbook-utils-pdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..a56b5db13e6b211d9a161f003c3e644494090897 --- /dev/null +++ b/testcases/cli-test/docbook-utils/oe_test_docbook-utils_install_and_remove_docbook-utils-pdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src docbook-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available docbook-utils-pdf | grep -v \.src | grep docbook-utils-pdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm docbook-utils-pdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y docbook-utils-pdf + CHECK_RESULT $? 0 0 "install docbook-utils-pdf failed" + SLEEP_WAIT 1 + dnf remove -y docbook-utils-pdf + CHECK_RESULT $? 0 0 "remove docbook-utils-pdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/docbook-utils/oe_test_docbook-utils_install_and_remove_docbook-utils.sh b/testcases/cli-test/docbook-utils/oe_test_docbook-utils_install_and_remove_docbook-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..aff418f924c07da881151d3bf4c7f456eaaa41d8 --- /dev/null +++ b/testcases/cli-test/docbook-utils/oe_test_docbook-utils_install_and_remove_docbook-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src docbook-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available docbook-utils | grep -v \.src | grep docbook-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm docbook-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y docbook-utils + CHECK_RESULT $? 0 0 "install docbook-utils failed" + SLEEP_WAIT 1 + dnf remove -y docbook-utils + CHECK_RESULT $? 0 0 "remove docbook-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/docbook5-style-xsl/oe_test_docbook5-style-xsl_install_and_remove_docbook5-style-xsl-help.sh b/testcases/cli-test/docbook5-style-xsl/oe_test_docbook5-style-xsl_install_and_remove_docbook5-style-xsl-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecdab185ba97cca9637f2a9fd148f19480c8b2a1 --- /dev/null +++ b/testcases/cli-test/docbook5-style-xsl/oe_test_docbook5-style-xsl_install_and_remove_docbook5-style-xsl-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src docbook5-style-xsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available docbook5-style-xsl-help | grep -v \.src | grep docbook5-style-xsl-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm docbook5-style-xsl-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y docbook5-style-xsl-help + CHECK_RESULT $? 0 0 "install docbook5-style-xsl-help failed" + SLEEP_WAIT 1 + dnf remove -y docbook5-style-xsl-help + CHECK_RESULT $? 0 0 "remove docbook5-style-xsl-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/docbook5-style-xsl/oe_test_docbook5-style-xsl_install_and_remove_docbook5-style-xsl.sh b/testcases/cli-test/docbook5-style-xsl/oe_test_docbook5-style-xsl_install_and_remove_docbook5-style-xsl.sh new file mode 100644 index 0000000000000000000000000000000000000000..0035c9ecd9e86482c1c0e0f57df934262ec04b45 --- /dev/null +++ b/testcases/cli-test/docbook5-style-xsl/oe_test_docbook5-style-xsl_install_and_remove_docbook5-style-xsl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src docbook5-style-xsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available docbook5-style-xsl | grep -v \.src | grep docbook5-style-xsl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm docbook5-style-xsl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y docbook5-style-xsl + CHECK_RESULT $? 0 0 "install docbook5-style-xsl failed" + SLEEP_WAIT 1 + dnf remove -y docbook5-style-xsl + CHECK_RESULT $? 0 0 "remove docbook5-style-xsl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix-debuginfo.sh b/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..10825435574dd82d7705e5aae1c0fb9bccb07896 --- /dev/null +++ b/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dos2unix +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dos2unix-debuginfo | grep -v \.src | grep dos2unix-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dos2unix-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dos2unix-debuginfo + CHECK_RESULT $? 0 0 "install dos2unix-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dos2unix-debuginfo + CHECK_RESULT $? 0 0 "remove dos2unix-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix-debugsource.sh b/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..db4cabbd7a1280342b8425d0b2b88c8b5c9f48af --- /dev/null +++ b/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dos2unix +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dos2unix-debugsource | grep -v \.src | grep dos2unix-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dos2unix-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dos2unix-debugsource + CHECK_RESULT $? 0 0 "install dos2unix-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dos2unix-debugsource + CHECK_RESULT $? 0 0 "remove dos2unix-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix-help.sh b/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..de0d2359a9804f4e99bf14e091d64f5d0ac28f71 --- /dev/null +++ b/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dos2unix +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dos2unix-help | grep -v \.src | grep dos2unix-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dos2unix-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dos2unix-help + CHECK_RESULT $? 0 0 "install dos2unix-help failed" + SLEEP_WAIT 1 + dnf remove -y dos2unix-help + CHECK_RESULT $? 0 0 "remove dos2unix-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix.sh b/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix.sh new file mode 100644 index 0000000000000000000000000000000000000000..82b60a2babd46d72c2b4025ff4c4b52b705c36e5 --- /dev/null +++ b/testcases/cli-test/dos2unix/oe_test_dos2unix_install_and_remove_dos2unix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dos2unix +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dos2unix | grep -v \.src | grep dos2unix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dos2unix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dos2unix + CHECK_RESULT $? 0 0 "install dos2unix failed" + SLEEP_WAIT 1 + dnf remove -y dos2unix + CHECK_RESULT $? 0 0 "remove dos2unix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools-debuginfo.sh b/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0069ce559ac99cc9d8b2333c86a6ac49698a66b3 --- /dev/null +++ b/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dosfstools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dosfstools-debuginfo | grep -v \.src | grep dosfstools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dosfstools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dosfstools-debuginfo + CHECK_RESULT $? 0 0 "install dosfstools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dosfstools-debuginfo + CHECK_RESULT $? 0 0 "remove dosfstools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools-debugsource.sh b/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..815b738d50076a40be22401f2f734d11b0a9fdae --- /dev/null +++ b/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dosfstools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dosfstools-debugsource | grep -v \.src | grep dosfstools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dosfstools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dosfstools-debugsource + CHECK_RESULT $? 0 0 "install dosfstools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dosfstools-debugsource + CHECK_RESULT $? 0 0 "remove dosfstools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools-help.sh b/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a877a44fe6794ebc668b42f1e1a8292adaddac7 --- /dev/null +++ b/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dosfstools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dosfstools-help | grep -v \.src | grep dosfstools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dosfstools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dosfstools-help + CHECK_RESULT $? 0 0 "install dosfstools-help failed" + SLEEP_WAIT 1 + dnf remove -y dosfstools-help + CHECK_RESULT $? 0 0 "remove dosfstools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools.sh b/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools.sh new file mode 100644 index 0000000000000000000000000000000000000000..04aa3063ab3511cb0658bc3505d7bc1ed3dcd2c0 --- /dev/null +++ b/testcases/cli-test/dosfstools/oe_test_dosfstools_install_and_remove_dosfstools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dosfstools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dosfstools | grep -v \.src | grep dosfstools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dosfstools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dosfstools + CHECK_RESULT $? 0 0 "install dosfstools failed" + SLEEP_WAIT 1 + dnf remove -y dosfstools + CHECK_RESULT $? 0 0 "remove dosfstools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-debuginfo.sh b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..38f372e3d88d01e13496100426b93c0449cc74cd --- /dev/null +++ b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src doxygen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available doxygen-debuginfo | grep -v \.src | grep doxygen-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm doxygen-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y doxygen-debuginfo + CHECK_RESULT $? 0 0 "install doxygen-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y doxygen-debuginfo + CHECK_RESULT $? 0 0 "remove doxygen-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-debugsource.sh b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..738051eeebbf920742437e49a229fe1915c56a80 --- /dev/null +++ b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src doxygen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available doxygen-debugsource | grep -v \.src | grep doxygen-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm doxygen-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y doxygen-debugsource + CHECK_RESULT $? 0 0 "install doxygen-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y doxygen-debugsource + CHECK_RESULT $? 0 0 "remove doxygen-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-doxywizard.sh b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-doxywizard.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4d71e8fc149432880828c9949b3edabc0ecc2e9 --- /dev/null +++ b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-doxywizard.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src doxygen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available doxygen-doxywizard | grep -v \.src | grep doxygen-doxywizard + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm doxygen-doxywizard" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y doxygen-doxywizard + CHECK_RESULT $? 0 0 "install doxygen-doxywizard failed" + SLEEP_WAIT 1 + dnf remove -y doxygen-doxywizard + CHECK_RESULT $? 0 0 "remove doxygen-doxywizard failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-help.sh b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a5218316e340760fcc681837425d727b147abfb --- /dev/null +++ b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src doxygen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available doxygen-help | grep -v \.src | grep doxygen-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm doxygen-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y doxygen-help + CHECK_RESULT $? 0 0 "install doxygen-help failed" + SLEEP_WAIT 1 + dnf remove -y doxygen-help + CHECK_RESULT $? 0 0 "remove doxygen-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-latex.sh b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-latex.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d117ee492f4e6957ea1c3e16a10453edfc2d26d --- /dev/null +++ b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen-latex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src doxygen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available doxygen-latex | grep -v \.src | grep doxygen-latex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm doxygen-latex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y doxygen-latex + CHECK_RESULT $? 0 0 "install doxygen-latex failed" + SLEEP_WAIT 1 + dnf remove -y doxygen-latex + CHECK_RESULT $? 0 0 "remove doxygen-latex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen.sh b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad6c1ae23ec6f3eab00691c52a3b5fd8a684ede8 --- /dev/null +++ b/testcases/cli-test/doxygen/oe_test_doxygen_install_and_remove_doxygen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src doxygen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available doxygen | grep -v \.src | grep doxygen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm doxygen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y doxygen + CHECK_RESULT $? 0 0 "install doxygen failed" + SLEEP_WAIT 1 + dnf remove -y doxygen + CHECK_RESULT $? 0 0 "remove doxygen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-caps.sh b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-caps.sh new file mode 100644 index 0000000000000000000000000000000000000000..40ba9c813ffb027c4a3dfd9ee9f1c8448b181598 --- /dev/null +++ b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-caps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dracut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dracut-caps | grep -v \.src | grep dracut-caps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dracut-caps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dracut-caps + CHECK_RESULT $? 0 0 "install dracut-caps failed" + SLEEP_WAIT 1 + dnf remove -y dracut-caps + CHECK_RESULT $? 0 0 "remove dracut-caps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-config-generic.sh b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-config-generic.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba7a4ec46abceb9789c81a6518ef835126f2e793 --- /dev/null +++ b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-config-generic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dracut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dracut-config-generic | grep -v \.src | grep dracut-config-generic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dracut-config-generic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dracut-config-generic + CHECK_RESULT $? 0 0 "install dracut-config-generic failed" + SLEEP_WAIT 1 + dnf remove -y dracut-config-generic + CHECK_RESULT $? 0 0 "remove dracut-config-generic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-config-rescue.sh b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-config-rescue.sh new file mode 100644 index 0000000000000000000000000000000000000000..b99194c2adb8ecc9774743799af4f3d4dfbc9af8 --- /dev/null +++ b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-config-rescue.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dracut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dracut-config-rescue | grep -v \.src | grep dracut-config-rescue + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dracut-config-rescue" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dracut-config-rescue + CHECK_RESULT $? 0 0 "install dracut-config-rescue failed" + SLEEP_WAIT 1 + dnf remove -y dracut-config-rescue + CHECK_RESULT $? 0 0 "remove dracut-config-rescue failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-debuginfo.sh b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..31e6db1e0816c147c7b87135d124562f23593958 --- /dev/null +++ b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dracut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dracut-debuginfo | grep -v \.src | grep dracut-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dracut-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dracut-debuginfo + CHECK_RESULT $? 0 0 "install dracut-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dracut-debuginfo + CHECK_RESULT $? 0 0 "remove dracut-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-debugsource.sh b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fb4083e46f357b8774958a2f3c0e7329715ba33 --- /dev/null +++ b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dracut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dracut-debugsource | grep -v \.src | grep dracut-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dracut-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dracut-debugsource + CHECK_RESULT $? 0 0 "install dracut-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dracut-debugsource + CHECK_RESULT $? 0 0 "remove dracut-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-live.sh b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-live.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6a139c828e8d9f379f2f5b3aa9428e9ae848dd7 --- /dev/null +++ b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-live.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dracut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dracut-live | grep -v \.src | grep dracut-live + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dracut-live" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dracut-live + CHECK_RESULT $? 0 0 "install dracut-live failed" + SLEEP_WAIT 1 + dnf remove -y dracut-live + CHECK_RESULT $? 0 0 "remove dracut-live failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-network.sh b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-network.sh new file mode 100644 index 0000000000000000000000000000000000000000..d40293a691367332ecb237c44717c20d50b57d61 --- /dev/null +++ b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-network.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dracut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dracut-network | grep -v \.src | grep dracut-network + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dracut-network" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dracut-network + CHECK_RESULT $? 0 0 "install dracut-network failed" + SLEEP_WAIT 1 + dnf remove -y dracut-network + CHECK_RESULT $? 0 0 "remove dracut-network failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-squash.sh b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-squash.sh new file mode 100644 index 0000000000000000000000000000000000000000..28681c4d079b15ce073d78248520ad885789ece6 --- /dev/null +++ b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-squash.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dracut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dracut-squash | grep -v \.src | grep dracut-squash + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dracut-squash" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dracut-squash + CHECK_RESULT $? 0 0 "install dracut-squash failed" + SLEEP_WAIT 1 + dnf remove -y dracut-squash + CHECK_RESULT $? 0 0 "remove dracut-squash failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-tools.sh b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..725df425bad73aad2eca61f7901ffe71bdee4e9f --- /dev/null +++ b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dracut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dracut-tools | grep -v \.src | grep dracut-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dracut-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dracut-tools + CHECK_RESULT $? 0 0 "install dracut-tools failed" + SLEEP_WAIT 1 + dnf remove -y dracut-tools + CHECK_RESULT $? 0 0 "remove dracut-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut.sh b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut.sh new file mode 100644 index 0000000000000000000000000000000000000000..5918c4f63535fdba11dd9e0d7c0bce76242a838d --- /dev/null +++ b/testcases/cli-test/dracut/oe_test_dracut_install_and_remove_dracut.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dracut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dracut | grep -v \.src | grep dracut + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dracut" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dracut + CHECK_RESULT $? 0 0 "install dracut failed" + SLEEP_WAIT 1 + dnf remove -y dracut + CHECK_RESULT $? 0 0 "remove dracut failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-debuginfo.sh b/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f714c569704c3f2444aa93bc815ad329850ff119 --- /dev/null +++ b/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src drpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available drpm-debuginfo | grep -v \.src | grep drpm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm drpm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y drpm-debuginfo + CHECK_RESULT $? 0 0 "install drpm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y drpm-debuginfo + CHECK_RESULT $? 0 0 "remove drpm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-debugsource.sh b/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd97b8e19c4cb056597f5ddd3602e9ce04bc8ed1 --- /dev/null +++ b/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src drpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available drpm-debugsource | grep -v \.src | grep drpm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm drpm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y drpm-debugsource + CHECK_RESULT $? 0 0 "install drpm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y drpm-debugsource + CHECK_RESULT $? 0 0 "remove drpm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-devel.sh b/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..999bbc62342a1c4bc80af8541f5ae9fc4b078fda --- /dev/null +++ b/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src drpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available drpm-devel | grep -v \.src | grep drpm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm drpm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y drpm-devel + CHECK_RESULT $? 0 0 "install drpm-devel failed" + SLEEP_WAIT 1 + dnf remove -y drpm-devel + CHECK_RESULT $? 0 0 "remove drpm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-help.sh b/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e8506e52cd8bfbad7dd223ebdab6ea8d1915c06 --- /dev/null +++ b/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src drpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available drpm-help | grep -v \.src | grep drpm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm drpm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y drpm-help + CHECK_RESULT $? 0 0 "install drpm-help failed" + SLEEP_WAIT 1 + dnf remove -y drpm-help + CHECK_RESULT $? 0 0 "remove drpm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm.sh b/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm.sh new file mode 100644 index 0000000000000000000000000000000000000000..d45ca24e676d91c56840def3963fc882066f8d7f --- /dev/null +++ b/testcases/cli-test/drpm/oe_test_drpm_install_and_remove_drpm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src drpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available drpm | grep -v \.src | grep drpm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm drpm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y drpm + CHECK_RESULT $? 0 0 "install drpm failed" + SLEEP_WAIT 1 + dnf remove -y drpm + CHECK_RESULT $? 0 0 "remove drpm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-debuginfo.sh b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3da700129d35711af5458a64159415f6629ccdcc --- /dev/null +++ b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dtc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dtc-debuginfo | grep -v \.src | grep dtc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dtc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dtc-debuginfo + CHECK_RESULT $? 0 0 "install dtc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dtc-debuginfo + CHECK_RESULT $? 0 0 "remove dtc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-debugsource.sh b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6e49c68ab89524bc0ece9da912cbbebd8e72dfb --- /dev/null +++ b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dtc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dtc-debugsource | grep -v \.src | grep dtc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dtc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dtc-debugsource + CHECK_RESULT $? 0 0 "install dtc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dtc-debugsource + CHECK_RESULT $? 0 0 "remove dtc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-devel.sh b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbab63a9577cd2c4e6401465e525ae641ce92532 --- /dev/null +++ b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dtc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dtc-devel | grep -v \.src | grep dtc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dtc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dtc-devel + CHECK_RESULT $? 0 0 "install dtc-devel failed" + SLEEP_WAIT 1 + dnf remove -y dtc-devel + CHECK_RESULT $? 0 0 "remove dtc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-help.sh b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4a07e60f9aa962a136dcfa24317ff5ab614a11d --- /dev/null +++ b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dtc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dtc-help | grep -v \.src | grep dtc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dtc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dtc-help + CHECK_RESULT $? 0 0 "install dtc-help failed" + SLEEP_WAIT 1 + dnf remove -y dtc-help + CHECK_RESULT $? 0 0 "remove dtc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc.sh b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc.sh new file mode 100644 index 0000000000000000000000000000000000000000..751ad556f2daa2ee15d8ab2cc3e022ae50b2e11e --- /dev/null +++ b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_dtc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dtc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dtc | grep -v \.src | grep dtc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dtc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dtc + CHECK_RESULT $? 0 0 "install dtc failed" + SLEEP_WAIT 1 + dnf remove -y dtc + CHECK_RESULT $? 0 0 "remove dtc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_python2-libfdt.sh b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_python2-libfdt.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfdec11b9a193d550b424dfbdf8ebf88522883fd --- /dev/null +++ b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_python2-libfdt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dtc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libfdt | grep -v \.src | grep python2-libfdt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libfdt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libfdt + CHECK_RESULT $? 0 0 "install python2-libfdt failed" + SLEEP_WAIT 1 + dnf remove -y python2-libfdt + CHECK_RESULT $? 0 0 "remove python2-libfdt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_python3-libfdt.sh b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_python3-libfdt.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f8b422d3f0526dbc3724c60fe124fda1db5a279 --- /dev/null +++ b/testcases/cli-test/dtc/oe_test_dtc_install_and_remove_python3-libfdt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dtc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libfdt | grep -v \.src | grep python3-libfdt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libfdt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libfdt + CHECK_RESULT $? 0 0 "install python3-libfdt failed" + SLEEP_WAIT 1 + dnf remove -y python3-libfdt + CHECK_RESULT $? 0 0 "remove python3-libfdt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape-debuginfo.sh b/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2e6adac388630799a169161cc5414de83161fd5 --- /dev/null +++ b/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src duktape +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available duktape-debuginfo | grep -v \.src | grep duktape-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm duktape-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y duktape-debuginfo + CHECK_RESULT $? 0 0 "install duktape-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y duktape-debuginfo + CHECK_RESULT $? 0 0 "remove duktape-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape-debugsource.sh b/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..56b71672f85ea06ff824ad9417b4326df205aaa6 --- /dev/null +++ b/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src duktape +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available duktape-debugsource | grep -v \.src | grep duktape-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm duktape-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y duktape-debugsource + CHECK_RESULT $? 0 0 "install duktape-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y duktape-debugsource + CHECK_RESULT $? 0 0 "remove duktape-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape-devel.sh b/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9535d8409b8942a0be6321eace3bc0a0079f02a8 --- /dev/null +++ b/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src duktape +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available duktape-devel | grep -v \.src | grep duktape-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm duktape-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y duktape-devel + CHECK_RESULT $? 0 0 "install duktape-devel failed" + SLEEP_WAIT 1 + dnf remove -y duktape-devel + CHECK_RESULT $? 0 0 "remove duktape-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape.sh b/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape.sh new file mode 100644 index 0000000000000000000000000000000000000000..56dd2d7604f72268c09f347ad0c9f5c576c3903f --- /dev/null +++ b/testcases/cli-test/duktape/oe_test_duktape_install_and_remove_duktape.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src duktape +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available duktape | grep -v \.src | grep duktape + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm duktape" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y duktape + CHECK_RESULT $? 0 0 "install duktape failed" + SLEEP_WAIT 1 + dnf remove -y duktape + CHECK_RESULT $? 0 0 "remove duktape failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_dwarves-debuginfo.sh b/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_dwarves-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..35f8b4c0a53e82663fcf5dbd62406a3e0f8fd720 --- /dev/null +++ b/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_dwarves-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dwarves +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dwarves-debuginfo | grep -v \.src | grep dwarves-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dwarves-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dwarves-debuginfo + CHECK_RESULT $? 0 0 "install dwarves-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dwarves-debuginfo + CHECK_RESULT $? 0 0 "remove dwarves-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_dwarves-debugsource.sh b/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_dwarves-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..89a4621e46098ae5ff67794d828edc678f778d33 --- /dev/null +++ b/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_dwarves-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dwarves +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dwarves-debugsource | grep -v \.src | grep dwarves-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dwarves-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dwarves-debugsource + CHECK_RESULT $? 0 0 "install dwarves-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dwarves-debugsource + CHECK_RESULT $? 0 0 "remove dwarves-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_dwarves.sh b/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_dwarves.sh new file mode 100644 index 0000000000000000000000000000000000000000..6848a4d50f2ea3cc8a420019686007f82648c648 --- /dev/null +++ b/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_dwarves.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dwarves +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dwarves | grep -v \.src | grep dwarves + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dwarves" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dwarves + CHECK_RESULT $? 0 0 "install dwarves failed" + SLEEP_WAIT 1 + dnf remove -y dwarves + CHECK_RESULT $? 0 0 "remove dwarves failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_libdwarves1-devel.sh b/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_libdwarves1-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1da9621dd037f2320726c7bb7a45d8d7e0ffe9c9 --- /dev/null +++ b/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_libdwarves1-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dwarves +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdwarves1-devel | grep -v \.src | grep libdwarves1-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdwarves1-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdwarves1-devel + CHECK_RESULT $? 0 0 "install libdwarves1-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdwarves1-devel + CHECK_RESULT $? 0 0 "remove libdwarves1-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_libdwarves1.sh b/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_libdwarves1.sh new file mode 100644 index 0000000000000000000000000000000000000000..05acb1c52ed4e82826c55388c2fa61ba294dc8d3 --- /dev/null +++ b/testcases/cli-test/dwarves/oe_test_dwarves_install_and_remove_libdwarves1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dwarves +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdwarves1 | grep -v \.src | grep libdwarves1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdwarves1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdwarves1 + CHECK_RESULT $? 0 0 "install libdwarves1 failed" + SLEEP_WAIT 1 + dnf remove -y libdwarves1 + CHECK_RESULT $? 0 0 "remove libdwarves1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz-debuginfo.sh b/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..780ac46697e4aa6e5bb684a4a3c8bfc3b1840876 --- /dev/null +++ b/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dwz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dwz-debuginfo | grep -v \.src | grep dwz-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dwz-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dwz-debuginfo + CHECK_RESULT $? 0 0 "install dwz-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dwz-debuginfo + CHECK_RESULT $? 0 0 "remove dwz-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz-debugsource.sh b/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc1c13ad525031110ffd43e4a34b33d83a1edc31 --- /dev/null +++ b/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dwz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dwz-debugsource | grep -v \.src | grep dwz-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dwz-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dwz-debugsource + CHECK_RESULT $? 0 0 "install dwz-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dwz-debugsource + CHECK_RESULT $? 0 0 "remove dwz-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz-help.sh b/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e751b41dcd31200b912f763c973b77ff98bb5a51 --- /dev/null +++ b/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dwz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dwz-help | grep -v \.src | grep dwz-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dwz-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dwz-help + CHECK_RESULT $? 0 0 "install dwz-help failed" + SLEEP_WAIT 1 + dnf remove -y dwz-help + CHECK_RESULT $? 0 0 "remove dwz-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz.sh b/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz.sh new file mode 100644 index 0000000000000000000000000000000000000000..095e47c10a7fd2f22e2e74bd27b23545a82ff2d8 --- /dev/null +++ b/testcases/cli-test/dwz/oe_test_dwz_install_and_remove_dwz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dwz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dwz | grep -v \.src | grep dwz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dwz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dwz + CHECK_RESULT $? 0 0 "install dwz failed" + SLEEP_WAIT 1 + dnf remove -y dwz + CHECK_RESULT $? 0 0 "remove dwz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-debuginfo.sh b/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..519ad3f7dc5ff4a9f86a6bf04a5502340475694e --- /dev/null +++ b/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dyninst +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dyninst-debuginfo | grep -v \.src | grep dyninst-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dyninst-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dyninst-debuginfo + CHECK_RESULT $? 0 0 "install dyninst-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y dyninst-debuginfo + CHECK_RESULT $? 0 0 "remove dyninst-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-debugsource.sh b/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba2f8fbdc770976595a430040e2485c5aad661e4 --- /dev/null +++ b/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dyninst +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dyninst-debugsource | grep -v \.src | grep dyninst-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dyninst-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dyninst-debugsource + CHECK_RESULT $? 0 0 "install dyninst-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y dyninst-debugsource + CHECK_RESULT $? 0 0 "remove dyninst-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-devel.sh b/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2043b745dc9f1e1be63b3bbced1ab034ef4fb8d --- /dev/null +++ b/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dyninst +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dyninst-devel | grep -v \.src | grep dyninst-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dyninst-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dyninst-devel + CHECK_RESULT $? 0 0 "install dyninst-devel failed" + SLEEP_WAIT 1 + dnf remove -y dyninst-devel + CHECK_RESULT $? 0 0 "remove dyninst-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-help.sh b/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..36276b47a3e4b8047d501183532a957bdbe7df79 --- /dev/null +++ b/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dyninst +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dyninst-help | grep -v \.src | grep dyninst-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dyninst-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dyninst-help + CHECK_RESULT $? 0 0 "install dyninst-help failed" + SLEEP_WAIT 1 + dnf remove -y dyninst-help + CHECK_RESULT $? 0 0 "remove dyninst-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst.sh b/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst.sh new file mode 100644 index 0000000000000000000000000000000000000000..53aadca49b1b4bd2ebd1455fe67d51fb129b15b3 --- /dev/null +++ b/testcases/cli-test/dyninst/oe_test_dyninst_install_and_remove_dyninst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src dyninst +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available dyninst | grep -v \.src | grep dyninst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm dyninst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y dyninst + CHECK_RESULT $? 0 0 "install dyninst failed" + SLEEP_WAIT 1 + dnf remove -y dyninst + CHECK_RESULT $? 0 0 "remove dyninst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-debuginfo.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..611869384b53880a6831640f5001050ea4031caa --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available e2fsprogs-debuginfo | grep -v \.src | grep e2fsprogs-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm e2fsprogs-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y e2fsprogs-debuginfo + CHECK_RESULT $? 0 0 "install e2fsprogs-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y e2fsprogs-debuginfo + CHECK_RESULT $? 0 0 "remove e2fsprogs-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-debugsource.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ce1a928694b3fb275696e87d8f035f32118d5ed --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available e2fsprogs-debugsource | grep -v \.src | grep e2fsprogs-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm e2fsprogs-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y e2fsprogs-debugsource + CHECK_RESULT $? 0 0 "install e2fsprogs-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y e2fsprogs-debugsource + CHECK_RESULT $? 0 0 "remove e2fsprogs-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-devel.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5140cda84105b888fb16ef0094f3949d19801746 --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available e2fsprogs-devel | grep -v \.src | grep e2fsprogs-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm e2fsprogs-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y e2fsprogs-devel + CHECK_RESULT $? 0 0 "install e2fsprogs-devel failed" + SLEEP_WAIT 1 + dnf remove -y e2fsprogs-devel + CHECK_RESULT $? 0 0 "remove e2fsprogs-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-help.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..edfd092c9558fff28149e43012933b475ed713c8 --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available e2fsprogs-help | grep -v \.src | grep e2fsprogs-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm e2fsprogs-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y e2fsprogs-help + CHECK_RESULT $? 0 0 "install e2fsprogs-help failed" + SLEEP_WAIT 1 + dnf remove -y e2fsprogs-help + CHECK_RESULT $? 0 0 "remove e2fsprogs-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-libs.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..9115d9f4a344b5dac6c1c07cf9716928a1b0c590 --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available e2fsprogs-libs | grep -v \.src | grep e2fsprogs-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm e2fsprogs-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y e2fsprogs-libs + CHECK_RESULT $? 0 0 "install e2fsprogs-libs failed" + SLEEP_WAIT 1 + dnf remove -y e2fsprogs-libs + CHECK_RESULT $? 0 0 "remove e2fsprogs-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-static.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e3abcfbaf85d8e20ae6d177e545066e2bb87133 --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available e2fsprogs-static | grep -v \.src | grep e2fsprogs-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm e2fsprogs-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y e2fsprogs-static + CHECK_RESULT $? 0 0 "install e2fsprogs-static failed" + SLEEP_WAIT 1 + dnf remove -y e2fsprogs-static + CHECK_RESULT $? 0 0 "remove e2fsprogs-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6e41b1dec5179bf5ace498cb2ce4ce4d929dae1 --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2fsprogs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available e2fsprogs | grep -v \.src | grep e2fsprogs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm e2fsprogs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y e2fsprogs + CHECK_RESULT $? 0 0 "install e2fsprogs failed" + SLEEP_WAIT 1 + dnf remove -y e2fsprogs + CHECK_RESULT $? 0 0 "remove e2fsprogs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2scrub.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2scrub.sh new file mode 100644 index 0000000000000000000000000000000000000000..a20e2e2ff3f1b2e0e3740327bd8e39711faf280d --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_e2scrub.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available e2scrub | grep -v \.src | grep e2scrub + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm e2scrub" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y e2scrub + CHECK_RESULT $? 0 0 "install e2scrub failed" + SLEEP_WAIT 1 + dnf remove -y e2scrub + CHECK_RESULT $? 0 0 "remove e2scrub failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libcom_err-devel.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libcom_err-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c5ae46a8ce2f31a9171afce9bfb09a3aace13f9 --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libcom_err-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcom_err-devel | grep -v \.src | grep libcom_err-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcom_err-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcom_err-devel + CHECK_RESULT $? 0 0 "install libcom_err-devel failed" + SLEEP_WAIT 1 + dnf remove -y libcom_err-devel + CHECK_RESULT $? 0 0 "remove libcom_err-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libcom_err.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libcom_err.sh new file mode 100644 index 0000000000000000000000000000000000000000..b22be05de1bfe09d99b187bcd0b68c3ebcda5157 --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libcom_err.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcom_err | grep -v \.src | grep libcom_err + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcom_err" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcom_err + CHECK_RESULT $? 0 0 "install libcom_err failed" + SLEEP_WAIT 1 + dnf remove -y libcom_err + CHECK_RESULT $? 0 0 "remove libcom_err failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libss-devel.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libss-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fb46f8294f081c604dabdaa618053446c339923 --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libss-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libss-devel | grep -v \.src | grep libss-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libss-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libss-devel + CHECK_RESULT $? 0 0 "install libss-devel failed" + SLEEP_WAIT 1 + dnf remove -y libss-devel + CHECK_RESULT $? 0 0 "remove libss-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libss.sh b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libss.sh new file mode 100644 index 0000000000000000000000000000000000000000..5631aa23bbe77a7775a966cc3ef3c3eb97af6aac --- /dev/null +++ b/testcases/cli-test/e2fsprogs/oe_test_e2fsprogs_install_and_remove_libss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src e2fsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libss | grep -v \.src | grep libss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libss + CHECK_RESULT $? 0 0 "install libss failed" + SLEEP_WAIT 1 + dnf remove -y libss + CHECK_RESULT $? 0 0 "remove libss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables-debuginfo.sh b/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7fc772bc7aaf7c696357f1a22f4df48d893cf7df --- /dev/null +++ b/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ebtables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ebtables-debuginfo | grep -v \.src | grep ebtables-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ebtables-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ebtables-debuginfo + CHECK_RESULT $? 0 0 "install ebtables-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ebtables-debuginfo + CHECK_RESULT $? 0 0 "remove ebtables-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables-debugsource.sh b/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e341726ac64608227dbcc3a8a0566677b35ecb1e --- /dev/null +++ b/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ebtables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ebtables-debugsource | grep -v \.src | grep ebtables-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ebtables-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ebtables-debugsource + CHECK_RESULT $? 0 0 "install ebtables-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ebtables-debugsource + CHECK_RESULT $? 0 0 "remove ebtables-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables-help.sh b/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d0200d9d4bce28a08ba9e997a2b6c82df9cba2c --- /dev/null +++ b/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ebtables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ebtables-help | grep -v \.src | grep ebtables-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ebtables-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ebtables-help + CHECK_RESULT $? 0 0 "install ebtables-help failed" + SLEEP_WAIT 1 + dnf remove -y ebtables-help + CHECK_RESULT $? 0 0 "remove ebtables-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables.sh b/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables.sh new file mode 100644 index 0000000000000000000000000000000000000000..35794583bf706c8146c4b2de38edc32911bb8054 --- /dev/null +++ b/testcases/cli-test/ebtables/oe_test_ebtables_install_and_remove_ebtables.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ebtables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ebtables | grep -v \.src | grep ebtables + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ebtables" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ebtables + CHECK_RESULT $? 0 0 "install ebtables failed" + SLEEP_WAIT 1 + dnf remove -y ebtables + CHECK_RESULT $? 0 0 "remove ebtables failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed-debuginfo.sh b/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..793a4ebe3fe0905cbfd857dce1313f340ed46f9b --- /dev/null +++ b/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ed-debuginfo | grep -v \.src | grep ed-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ed-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ed-debuginfo + CHECK_RESULT $? 0 0 "install ed-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ed-debuginfo + CHECK_RESULT $? 0 0 "remove ed-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed-debugsource.sh b/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a858e400d9ae23b9b5e8f7834d37d80f3889348d --- /dev/null +++ b/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ed-debugsource | grep -v \.src | grep ed-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ed-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ed-debugsource + CHECK_RESULT $? 0 0 "install ed-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ed-debugsource + CHECK_RESULT $? 0 0 "remove ed-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed-help.sh b/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e1353d46d29d4a193a4f42e6986c3ca25616792 --- /dev/null +++ b/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ed-help | grep -v \.src | grep ed-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ed-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ed-help + CHECK_RESULT $? 0 0 "install ed-help failed" + SLEEP_WAIT 1 + dnf remove -y ed-help + CHECK_RESULT $? 0 0 "remove ed-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed.sh b/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdc6827e802e019a61b7d1c4d8bd1bd6d6383d2a --- /dev/null +++ b/testcases/cli-test/ed/oe_test_ed_install_and_remove_ed.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ed | grep -v \.src | grep ed + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ed" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ed + CHECK_RESULT $? 0 0 "install ed failed" + SLEEP_WAIT 1 + dnf remove -y ed + CHECK_RESULT $? 0 0 "remove ed failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efi-rpm-macros/oe_test_efi-rpm-macros_install_and_remove_efi-filesystem.sh b/testcases/cli-test/efi-rpm-macros/oe_test_efi-rpm-macros_install_and_remove_efi-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..86c7b118bf7e04b5e5e563b0959acf71a492073f --- /dev/null +++ b/testcases/cli-test/efi-rpm-macros/oe_test_efi-rpm-macros_install_and_remove_efi-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efi-rpm-macros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efi-filesystem | grep -v \.src | grep efi-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efi-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efi-filesystem + CHECK_RESULT $? 0 0 "install efi-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y efi-filesystem + CHECK_RESULT $? 0 0 "remove efi-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efi-rpm-macros/oe_test_efi-rpm-macros_install_and_remove_efi-rpm-macros.sh b/testcases/cli-test/efi-rpm-macros/oe_test_efi-rpm-macros_install_and_remove_efi-rpm-macros.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5f82964c514cb2f3f6176105831e13f94776115 --- /dev/null +++ b/testcases/cli-test/efi-rpm-macros/oe_test_efi-rpm-macros_install_and_remove_efi-rpm-macros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efi-rpm-macros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efi-rpm-macros | grep -v \.src | grep efi-rpm-macros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efi-rpm-macros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efi-rpm-macros + CHECK_RESULT $? 0 0 "install efi-rpm-macros failed" + SLEEP_WAIT 1 + dnf remove -y efi-rpm-macros + CHECK_RESULT $? 0 0 "remove efi-rpm-macros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efi-rpm-macros/oe_test_efi-rpm-macros_install_and_remove_efi-srpm-macros.sh b/testcases/cli-test/efi-rpm-macros/oe_test_efi-rpm-macros_install_and_remove_efi-srpm-macros.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd8ccef16bacc5ac2678d89c781e218bd430c03e --- /dev/null +++ b/testcases/cli-test/efi-rpm-macros/oe_test_efi-rpm-macros_install_and_remove_efi-srpm-macros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efi-rpm-macros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efi-srpm-macros | grep -v \.src | grep efi-srpm-macros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efi-srpm-macros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efi-srpm-macros + CHECK_RESULT $? 0 0 "install efi-srpm-macros failed" + SLEEP_WAIT 1 + dnf remove -y efi-srpm-macros + CHECK_RESULT $? 0 0 "remove efi-srpm-macros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr-debuginfo.sh b/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..788923cb2e97ac44705a7b106582bac6645ee685 --- /dev/null +++ b/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efibootmgr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efibootmgr-debuginfo | grep -v \.src | grep efibootmgr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efibootmgr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efibootmgr-debuginfo + CHECK_RESULT $? 0 0 "install efibootmgr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y efibootmgr-debuginfo + CHECK_RESULT $? 0 0 "remove efibootmgr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr-debugsource.sh b/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..80ba28b29659b3e35a30ae246b6c15613755588f --- /dev/null +++ b/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efibootmgr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efibootmgr-debugsource | grep -v \.src | grep efibootmgr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efibootmgr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efibootmgr-debugsource + CHECK_RESULT $? 0 0 "install efibootmgr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y efibootmgr-debugsource + CHECK_RESULT $? 0 0 "remove efibootmgr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr-help.sh b/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bec5da7d6438d924abb964cddd2c5019a54cc6b --- /dev/null +++ b/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efibootmgr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efibootmgr-help | grep -v \.src | grep efibootmgr-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efibootmgr-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efibootmgr-help + CHECK_RESULT $? 0 0 "install efibootmgr-help failed" + SLEEP_WAIT 1 + dnf remove -y efibootmgr-help + CHECK_RESULT $? 0 0 "remove efibootmgr-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr.sh b/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr.sh new file mode 100644 index 0000000000000000000000000000000000000000..db3f0e6d261cb776f2d496d215ca7ce19ad89074 --- /dev/null +++ b/testcases/cli-test/efibootmgr/oe_test_efibootmgr_install_and_remove_efibootmgr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efibootmgr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efibootmgr | grep -v \.src | grep efibootmgr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efibootmgr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efibootmgr + CHECK_RESULT $? 0 0 "install efibootmgr failed" + SLEEP_WAIT 1 + dnf remove -y efibootmgr + CHECK_RESULT $? 0 0 "remove efibootmgr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-debuginfo.sh b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..34d878098a62e73db045a0b36d15ee02dad2b0ea --- /dev/null +++ b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efivar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efivar-debuginfo | grep -v \.src | grep efivar-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efivar-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efivar-debuginfo + CHECK_RESULT $? 0 0 "install efivar-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y efivar-debuginfo + CHECK_RESULT $? 0 0 "remove efivar-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-debugsource.sh b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..87695be59788b6ea83ff080dd27008fa2f089756 --- /dev/null +++ b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efivar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efivar-debugsource | grep -v \.src | grep efivar-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efivar-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efivar-debugsource + CHECK_RESULT $? 0 0 "install efivar-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y efivar-debugsource + CHECK_RESULT $? 0 0 "remove efivar-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-devel.sh b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..64e4fb481d17e089f132d195d2be10bc9ba40094 --- /dev/null +++ b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efivar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efivar-devel | grep -v \.src | grep efivar-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efivar-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efivar-devel + CHECK_RESULT $? 0 0 "install efivar-devel failed" + SLEEP_WAIT 1 + dnf remove -y efivar-devel + CHECK_RESULT $? 0 0 "remove efivar-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-help.sh b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba3502978658556fff57a865bdc4a1f621b20463 --- /dev/null +++ b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efivar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efivar-help | grep -v \.src | grep efivar-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efivar-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efivar-help + CHECK_RESULT $? 0 0 "install efivar-help failed" + SLEEP_WAIT 1 + dnf remove -y efivar-help + CHECK_RESULT $? 0 0 "remove efivar-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-libs.sh b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..230c945ce79b58ec06091b5c334149f4c6a9db79 --- /dev/null +++ b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efivar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efivar-libs | grep -v \.src | grep efivar-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efivar-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efivar-libs + CHECK_RESULT $? 0 0 "install efivar-libs failed" + SLEEP_WAIT 1 + dnf remove -y efivar-libs + CHECK_RESULT $? 0 0 "remove efivar-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar.sh b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar.sh new file mode 100644 index 0000000000000000000000000000000000000000..43b25fdad4f0adb607219979a934d2881addd14a --- /dev/null +++ b/testcases/cli-test/efivar/oe_test_efivar_install_and_remove_efivar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src efivar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available efivar | grep -v \.src | grep efivar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm efivar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y efivar + CHECK_RESULT $? 0 0 "install efivar failed" + SLEEP_WAIT 1 + dnf remove -y efivar + CHECK_RESULT $? 0 0 "remove efivar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland-debuginfo.sh b/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2aa7ebf1d96205e374d4c191b359ddbbcf6ec20a --- /dev/null +++ b/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src egl-wayland +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available egl-wayland-debuginfo | grep -v \.src | grep egl-wayland-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm egl-wayland-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y egl-wayland-debuginfo + CHECK_RESULT $? 0 0 "install egl-wayland-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y egl-wayland-debuginfo + CHECK_RESULT $? 0 0 "remove egl-wayland-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland-debugsource.sh b/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0368f61eac9970b2345013d706c2af65d6193e76 --- /dev/null +++ b/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src egl-wayland +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available egl-wayland-debugsource | grep -v \.src | grep egl-wayland-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm egl-wayland-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y egl-wayland-debugsource + CHECK_RESULT $? 0 0 "install egl-wayland-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y egl-wayland-debugsource + CHECK_RESULT $? 0 0 "remove egl-wayland-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland-devel.sh b/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5d9e86014a1cf970d6bacf9990fb053aa219653 --- /dev/null +++ b/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src egl-wayland +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available egl-wayland-devel | grep -v \.src | grep egl-wayland-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm egl-wayland-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y egl-wayland-devel + CHECK_RESULT $? 0 0 "install egl-wayland-devel failed" + SLEEP_WAIT 1 + dnf remove -y egl-wayland-devel + CHECK_RESULT $? 0 0 "remove egl-wayland-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland.sh b/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d212b830cc17af984578b1736c4571b036126a5 --- /dev/null +++ b/testcases/cli-test/egl-wayland/oe_test_egl-wayland_install_and_remove_egl-wayland.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src egl-wayland +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available egl-wayland | grep -v \.src | grep egl-wayland + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm egl-wayland" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y egl-wayland + CHECK_RESULT $? 0 0 "install egl-wayland failed" + SLEEP_WAIT 1 + dnf remove -y egl-wayland + CHECK_RESULT $? 0 0 "remove egl-wayland failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/eglexternalplatform/oe_test_eglexternalplatform_install_and_remove_eglexternalplatform-devel.sh b/testcases/cli-test/eglexternalplatform/oe_test_eglexternalplatform_install_and_remove_eglexternalplatform-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5d081ad4fb3727f37f68d90111d37654739b7ce --- /dev/null +++ b/testcases/cli-test/eglexternalplatform/oe_test_eglexternalplatform_install_and_remove_eglexternalplatform-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src eglexternalplatform +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available eglexternalplatform-devel | grep -v \.src | grep eglexternalplatform-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm eglexternalplatform-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y eglexternalplatform-devel + CHECK_RESULT $? 0 0 "install eglexternalplatform-devel failed" + SLEEP_WAIT 1 + dnf remove -y eglexternalplatform-devel + CHECK_RESULT $? 0 0 "remove eglexternalplatform-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/eglexternalplatform/oe_test_eglexternalplatform_install_and_remove_eglexternalplatform.sh b/testcases/cli-test/eglexternalplatform/oe_test_eglexternalplatform_install_and_remove_eglexternalplatform.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff226d62904dc8b59a08ef841dd74adecee14761 --- /dev/null +++ b/testcases/cli-test/eglexternalplatform/oe_test_eglexternalplatform_install_and_remove_eglexternalplatform.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src eglexternalplatform +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available eglexternalplatform | grep -v \.src | grep eglexternalplatform + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm eglexternalplatform" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y eglexternalplatform + CHECK_RESULT $? 0 0 "install eglexternalplatform failed" + SLEEP_WAIT 1 + dnf remove -y eglexternalplatform + CHECK_RESULT $? 0 0 "remove eglexternalplatform failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfo.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f91df9d3f49115ace117d72290bcbbfb9d3d1d1 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-debuginfo | grep -v \.src | grep elfutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-debuginfo + CHECK_RESULT $? 0 0 "install elfutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-debuginfo + CHECK_RESULT $? 0 0 "remove elfutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfod-client-devel.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfod-client-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa0be5470c313656868a1223c64d6cb4060f570d --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfod-client-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-debuginfod-client-devel | grep -v \.src | grep elfutils-debuginfod-client-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-debuginfod-client-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-debuginfod-client-devel + CHECK_RESULT $? 0 0 "install elfutils-debuginfod-client-devel failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-debuginfod-client-devel + CHECK_RESULT $? 0 0 "remove elfutils-debuginfod-client-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfod-client.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfod-client.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3edf5d9b120462d6c8ef14aceed142652fb7391 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfod-client.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-debuginfod-client | grep -v \.src | grep elfutils-debuginfod-client + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-debuginfod-client" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-debuginfod-client + CHECK_RESULT $? 0 0 "install elfutils-debuginfod-client failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-debuginfod-client + CHECK_RESULT $? 0 0 "remove elfutils-debuginfod-client failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfod.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfod.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d5118016ee67f6a88ff28f1f3c0f84ce4f714a2 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debuginfod.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-debuginfod | grep -v \.src | grep elfutils-debuginfod + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-debuginfod" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-debuginfod + CHECK_RESULT $? 0 0 "install elfutils-debuginfod failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-debuginfod + CHECK_RESULT $? 0 0 "remove elfutils-debuginfod failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debugsource.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c7050b9a24d1ef25ba1093f43b85834442aaafc --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-debugsource | grep -v \.src | grep elfutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-debugsource + CHECK_RESULT $? 0 0 "install elfutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-debugsource + CHECK_RESULT $? 0 0 "remove elfutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-default-yama-scope.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-default-yama-scope.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9ec9e1647e68d0bdf56d025348952589fdabb82 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-default-yama-scope.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-default-yama-scope | grep -v \.src | grep elfutils-default-yama-scope + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-default-yama-scope" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-default-yama-scope + CHECK_RESULT $? 0 0 "install elfutils-default-yama-scope failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-default-yama-scope + CHECK_RESULT $? 0 0 "remove elfutils-default-yama-scope failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-devel-static.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-devel-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..93ccca073c25362f2a02a365f4329612e465fde1 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-devel-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-devel-static | grep -v \.src | grep elfutils-devel-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-devel-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-devel-static + CHECK_RESULT $? 0 0 "install elfutils-devel-static failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-devel-static + CHECK_RESULT $? 0 0 "remove elfutils-devel-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-devel.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0e1e4fed1eab12b472005c67c04fa703d595c08 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-devel | grep -v \.src | grep elfutils-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-devel + CHECK_RESULT $? 0 0 "install elfutils-devel failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-devel + CHECK_RESULT $? 0 0 "remove elfutils-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-doc.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3acc1b10410fefe607a588a65c70fdc4a183336c --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-doc | grep -v \.src | grep elfutils-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-doc + CHECK_RESULT $? 0 0 "install elfutils-doc failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-doc + CHECK_RESULT $? 0 0 "remove elfutils-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-extra.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-extra.sh new file mode 100644 index 0000000000000000000000000000000000000000..9be1e08177b8b4b097f0a65cc7708ef95de16367 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-extra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-extra | grep -v \.src | grep elfutils-extra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-extra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-extra + CHECK_RESULT $? 0 0 "install elfutils-extra failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-extra + CHECK_RESULT $? 0 0 "remove elfutils-extra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-help.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..55b0749981a9ac93cc9fcfdbcf7f69399828f366 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-help | grep -v \.src | grep elfutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-help + CHECK_RESULT $? 0 0 "install elfutils-help failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-help + CHECK_RESULT $? 0 0 "remove elfutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libelf-devel-static.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libelf-devel-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..7362e613ceeefb79e629c5ae973ea7554ddf1180 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libelf-devel-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-libelf-devel-static | grep -v \.src | grep elfutils-libelf-devel-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-libelf-devel-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-libelf-devel-static + CHECK_RESULT $? 0 0 "install elfutils-libelf-devel-static failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-libelf-devel-static + CHECK_RESULT $? 0 0 "remove elfutils-libelf-devel-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libelf-devel.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libelf-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..27e1176f5960affa7c82636e44cbfac62af698f9 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libelf-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-libelf-devel | grep -v \.src | grep elfutils-libelf-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-libelf-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-libelf-devel + CHECK_RESULT $? 0 0 "install elfutils-libelf-devel failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-libelf-devel + CHECK_RESULT $? 0 0 "remove elfutils-libelf-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libelf.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libelf.sh new file mode 100644 index 0000000000000000000000000000000000000000..df0282df441acf544129e8b77fafcc6daef5f872 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libelf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-libelf | grep -v \.src | grep elfutils-libelf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-libelf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-libelf + CHECK_RESULT $? 0 0 "install elfutils-libelf failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-libelf + CHECK_RESULT $? 0 0 "remove elfutils-libelf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libs.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..02f7bbcce2d806ff1e78871662c49181fad269cb --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils-libs | grep -v \.src | grep elfutils-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils-libs + CHECK_RESULT $? 0 0 "install elfutils-libs failed" + SLEEP_WAIT 1 + dnf remove -y elfutils-libs + CHECK_RESULT $? 0 0 "remove elfutils-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils.sh b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..a589a1caa5bd44c72681c2a9e3d3e5c765fc5e14 --- /dev/null +++ b/testcases/cli-test/elfutils/oe_test_elfutils_install_and_remove_elfutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src elfutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available elfutils | grep -v \.src | grep elfutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm elfutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y elfutils + CHECK_RESULT $? 0 0 "install elfutils failed" + SLEEP_WAIT 1 + dnf remove -y elfutils + CHECK_RESULT $? 0 0 "remove elfutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-common.sh b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..aece7533603380d2a17d4892c630b13b637f8c40 --- /dev/null +++ b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src emacs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs-common | grep -v \.src | grep emacs-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs-common + CHECK_RESULT $? 0 0 "install emacs-common failed" + SLEEP_WAIT 1 + dnf remove -y emacs-common + CHECK_RESULT $? 0 0 "remove emacs-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-debuginfo.sh b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ca8ec3f355335f52d4a82f0ce9216116a1c02ec --- /dev/null +++ b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src emacs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs-debuginfo | grep -v \.src | grep emacs-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs-debuginfo + CHECK_RESULT $? 0 0 "install emacs-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y emacs-debuginfo + CHECK_RESULT $? 0 0 "remove emacs-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-debugsource.sh b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..fad1c2a1ae3426a437589bb66e4f4bf5facd4435 --- /dev/null +++ b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src emacs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs-debugsource | grep -v \.src | grep emacs-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs-debugsource + CHECK_RESULT $? 0 0 "install emacs-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y emacs-debugsource + CHECK_RESULT $? 0 0 "remove emacs-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-devel.sh b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..efc8490e38e0d221ea1b82bcb9b32bd4e104446a --- /dev/null +++ b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src emacs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs-devel | grep -v \.src | grep emacs-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs-devel + CHECK_RESULT $? 0 0 "install emacs-devel failed" + SLEEP_WAIT 1 + dnf remove -y emacs-devel + CHECK_RESULT $? 0 0 "remove emacs-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-filesystem.sh b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea71bb9938e0915196a81c869cdd594ce7192e61 --- /dev/null +++ b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src emacs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs-filesystem | grep -v \.src | grep emacs-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs-filesystem + CHECK_RESULT $? 0 0 "install emacs-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y emacs-filesystem + CHECK_RESULT $? 0 0 "remove emacs-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-help.sh b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf8d7f723d4ba3d2963ca86f631e5e11e55eea92 --- /dev/null +++ b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src emacs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs-help | grep -v \.src | grep emacs-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs-help + CHECK_RESULT $? 0 0 "install emacs-help failed" + SLEEP_WAIT 1 + dnf remove -y emacs-help + CHECK_RESULT $? 0 0 "remove emacs-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-lucid.sh b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-lucid.sh new file mode 100644 index 0000000000000000000000000000000000000000..13f1c5dc821eaaab2fea19c04c62622f79916161 --- /dev/null +++ b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-lucid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src emacs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs-lucid | grep -v \.src | grep emacs-lucid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs-lucid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs-lucid + CHECK_RESULT $? 0 0 "install emacs-lucid failed" + SLEEP_WAIT 1 + dnf remove -y emacs-lucid + CHECK_RESULT $? 0 0 "remove emacs-lucid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-nox.sh b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-nox.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b6ef2e6231f5a58a3228f1193a7f943b4d232af --- /dev/null +++ b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-nox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src emacs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs-nox | grep -v \.src | grep emacs-nox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs-nox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs-nox + CHECK_RESULT $? 0 0 "install emacs-nox failed" + SLEEP_WAIT 1 + dnf remove -y emacs-nox + CHECK_RESULT $? 0 0 "remove emacs-nox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-terminal.sh b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-terminal.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e9c83eedd071b3743f4cb1b807a4a4d4a3468be --- /dev/null +++ b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs-terminal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src emacs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs-terminal | grep -v \.src | grep emacs-terminal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs-terminal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs-terminal + CHECK_RESULT $? 0 0 "install emacs-terminal failed" + SLEEP_WAIT 1 + dnf remove -y emacs-terminal + CHECK_RESULT $? 0 0 "remove emacs-terminal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs.sh b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs.sh new file mode 100644 index 0000000000000000000000000000000000000000..2626495c3218a0edcd5a1427dd0a4f2a816b2f6b --- /dev/null +++ b/testcases/cli-test/emacs/oe_test_emacs_install_and_remove_emacs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src emacs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs | grep -v \.src | grep emacs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs + CHECK_RESULT $? 0 0 "install emacs failed" + SLEEP_WAIT 1 + dnf remove -y emacs + CHECK_RESULT $? 0 0 "remove emacs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-aspell.sh b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-aspell.sh new file mode 100644 index 0000000000000000000000000000000000000000..66e4e1cf4f552ca9439e4a5660928ca22b51203d --- /dev/null +++ b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-aspell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src enchant2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available enchant2-aspell | grep -v \.src | grep enchant2-aspell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm enchant2-aspell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y enchant2-aspell + CHECK_RESULT $? 0 0 "install enchant2-aspell failed" + SLEEP_WAIT 1 + dnf remove -y enchant2-aspell + CHECK_RESULT $? 0 0 "remove enchant2-aspell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-debuginfo.sh b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f444d795da91144850dd2de407e9fb9288ee3658 --- /dev/null +++ b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src enchant2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available enchant2-debuginfo | grep -v \.src | grep enchant2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm enchant2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y enchant2-debuginfo + CHECK_RESULT $? 0 0 "install enchant2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y enchant2-debuginfo + CHECK_RESULT $? 0 0 "remove enchant2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-debugsource.sh b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0570b1f8525b2fa3998af83689a4c75e4986d77b --- /dev/null +++ b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src enchant2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available enchant2-debugsource | grep -v \.src | grep enchant2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm enchant2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y enchant2-debugsource + CHECK_RESULT $? 0 0 "install enchant2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y enchant2-debugsource + CHECK_RESULT $? 0 0 "remove enchant2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-devel.sh b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..16977953f991727d0b74249414db4824beb4069c --- /dev/null +++ b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src enchant2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available enchant2-devel | grep -v \.src | grep enchant2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm enchant2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y enchant2-devel + CHECK_RESULT $? 0 0 "install enchant2-devel failed" + SLEEP_WAIT 1 + dnf remove -y enchant2-devel + CHECK_RESULT $? 0 0 "remove enchant2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-help.sh b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c1f52b8e25481df61348864bcc0454d0ad39103 --- /dev/null +++ b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src enchant2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available enchant2-help | grep -v \.src | grep enchant2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm enchant2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y enchant2-help + CHECK_RESULT $? 0 0 "install enchant2-help failed" + SLEEP_WAIT 1 + dnf remove -y enchant2-help + CHECK_RESULT $? 0 0 "remove enchant2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-voikko.sh b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-voikko.sh new file mode 100644 index 0000000000000000000000000000000000000000..225bea1b11ac6d19438b56d37b49c0229ad78a07 --- /dev/null +++ b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2-voikko.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src enchant2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available enchant2-voikko | grep -v \.src | grep enchant2-voikko + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm enchant2-voikko" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y enchant2-voikko + CHECK_RESULT $? 0 0 "install enchant2-voikko failed" + SLEEP_WAIT 1 + dnf remove -y enchant2-voikko + CHECK_RESULT $? 0 0 "remove enchant2-voikko failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2.sh b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dc261148e1e5d599cd2bfffb390352f9c22877d --- /dev/null +++ b/testcases/cli-test/enchant2/oe_test_enchant2_install_and_remove_enchant2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src enchant2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available enchant2 | grep -v \.src | grep enchant2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm enchant2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y enchant2 + CHECK_RESULT $? 0 0 "install enchant2 failed" + SLEEP_WAIT 1 + dnf remove -y enchant2 + CHECK_RESULT $? 0 0 "remove enchant2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool-debuginfo.sh b/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fabb6f0d6e6149178678063072a71babb327599 --- /dev/null +++ b/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ethtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ethtool-debuginfo | grep -v \.src | grep ethtool-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ethtool-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ethtool-debuginfo + CHECK_RESULT $? 0 0 "install ethtool-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ethtool-debuginfo + CHECK_RESULT $? 0 0 "remove ethtool-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool-debugsource.sh b/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb89cca6451e351f24b39ec92b2e701d69fa6744 --- /dev/null +++ b/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ethtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ethtool-debugsource | grep -v \.src | grep ethtool-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ethtool-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ethtool-debugsource + CHECK_RESULT $? 0 0 "install ethtool-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ethtool-debugsource + CHECK_RESULT $? 0 0 "remove ethtool-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool-help.sh b/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dbb12139fd740997379998db702296ba4d5b601 --- /dev/null +++ b/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ethtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ethtool-help | grep -v \.src | grep ethtool-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ethtool-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ethtool-help + CHECK_RESULT $? 0 0 "install ethtool-help failed" + SLEEP_WAIT 1 + dnf remove -y ethtool-help + CHECK_RESULT $? 0 0 "remove ethtool-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool.sh b/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool.sh new file mode 100644 index 0000000000000000000000000000000000000000..241722e5fa3a54d9300e5ab861ecd877355fa464 --- /dev/null +++ b/testcases/cli-test/ethtool/oe_test_ethtool_install_and_remove_ethtool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ethtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ethtool | grep -v \.src | grep ethtool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ethtool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ethtool + CHECK_RESULT $? 0 0 "install ethtool failed" + SLEEP_WAIT 1 + dnf remove -y ethtool + CHECK_RESULT $? 0 0 "remove ethtool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-debuginfo.sh b/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f466bd05f5d745d26cf5005ab175286ae9e8cc6 --- /dev/null +++ b/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src exempi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available exempi-debuginfo | grep -v \.src | grep exempi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm exempi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y exempi-debuginfo + CHECK_RESULT $? 0 0 "install exempi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y exempi-debuginfo + CHECK_RESULT $? 0 0 "remove exempi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-debugsource.sh b/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3fd4b30d00caac44cc8ff818439aca60a796ad6 --- /dev/null +++ b/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src exempi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available exempi-debugsource | grep -v \.src | grep exempi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm exempi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y exempi-debugsource + CHECK_RESULT $? 0 0 "install exempi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y exempi-debugsource + CHECK_RESULT $? 0 0 "remove exempi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-devel.sh b/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..492340640e693475718e847975557b58823c1f47 --- /dev/null +++ b/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src exempi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available exempi-devel | grep -v \.src | grep exempi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm exempi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y exempi-devel + CHECK_RESULT $? 0 0 "install exempi-devel failed" + SLEEP_WAIT 1 + dnf remove -y exempi-devel + CHECK_RESULT $? 0 0 "remove exempi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-help.sh b/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..498d536c81c4de4801f20a8a93361084e3e58495 --- /dev/null +++ b/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src exempi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available exempi-help | grep -v \.src | grep exempi-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm exempi-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y exempi-help + CHECK_RESULT $? 0 0 "install exempi-help failed" + SLEEP_WAIT 1 + dnf remove -y exempi-help + CHECK_RESULT $? 0 0 "remove exempi-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi.sh b/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi.sh new file mode 100644 index 0000000000000000000000000000000000000000..d90bd9ff49d9c4c60cc122884fea13301c92573c --- /dev/null +++ b/testcases/cli-test/exempi/oe_test_exempi_install_and_remove_exempi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src exempi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available exempi | grep -v \.src | grep exempi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm exempi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y exempi + CHECK_RESULT $? 0 0 "install exempi failed" + SLEEP_WAIT 1 + dnf remove -y exempi + CHECK_RESULT $? 0 0 "remove exempi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-debuginfo.sh b/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e3c1f500c56c2f698d6c6dc4cb8b21fd5cebf8a --- /dev/null +++ b/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src expat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available expat-debuginfo | grep -v \.src | grep expat-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm expat-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y expat-debuginfo + CHECK_RESULT $? 0 0 "install expat-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y expat-debuginfo + CHECK_RESULT $? 0 0 "remove expat-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-debugsource.sh b/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..864b983044b069acf0e2201edc39f0c5a1b8612b --- /dev/null +++ b/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src expat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available expat-debugsource | grep -v \.src | grep expat-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm expat-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y expat-debugsource + CHECK_RESULT $? 0 0 "install expat-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y expat-debugsource + CHECK_RESULT $? 0 0 "remove expat-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-devel.sh b/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc8d5c442f6b3d46e1f20341e8b9b5aa719b85ff --- /dev/null +++ b/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src expat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available expat-devel | grep -v \.src | grep expat-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm expat-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y expat-devel + CHECK_RESULT $? 0 0 "install expat-devel failed" + SLEEP_WAIT 1 + dnf remove -y expat-devel + CHECK_RESULT $? 0 0 "remove expat-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-help.sh b/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..af1f82384694b4e0a71658d267b546dcfca3b0ae --- /dev/null +++ b/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src expat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available expat-help | grep -v \.src | grep expat-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm expat-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y expat-help + CHECK_RESULT $? 0 0 "install expat-help failed" + SLEEP_WAIT 1 + dnf remove -y expat-help + CHECK_RESULT $? 0 0 "remove expat-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat.sh b/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat.sh new file mode 100644 index 0000000000000000000000000000000000000000..80f121757289fca4b62b1a56e0e6bec4d1611887 --- /dev/null +++ b/testcases/cli-test/expat/oe_test_expat_install_and_remove_expat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src expat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available expat | grep -v \.src | grep expat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm expat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y expat + CHECK_RESULT $? 0 0 "install expat failed" + SLEEP_WAIT 1 + dnf remove -y expat + CHECK_RESULT $? 0 0 "remove expat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-debuginfo.sh b/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7604cc52b92a00d53dac0b42b3444694ffb04841 --- /dev/null +++ b/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src expect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available expect-debuginfo | grep -v \.src | grep expect-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm expect-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y expect-debuginfo + CHECK_RESULT $? 0 0 "install expect-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y expect-debuginfo + CHECK_RESULT $? 0 0 "remove expect-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-debugsource.sh b/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..327367831b8181026b098c6223a30f145c4633b5 --- /dev/null +++ b/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src expect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available expect-debugsource | grep -v \.src | grep expect-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm expect-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y expect-debugsource + CHECK_RESULT $? 0 0 "install expect-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y expect-debugsource + CHECK_RESULT $? 0 0 "remove expect-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-devel.sh b/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bef968ff7a03c3d5bc87bb92c7fa633e9b60776 --- /dev/null +++ b/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src expect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available expect-devel | grep -v \.src | grep expect-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm expect-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y expect-devel + CHECK_RESULT $? 0 0 "install expect-devel failed" + SLEEP_WAIT 1 + dnf remove -y expect-devel + CHECK_RESULT $? 0 0 "remove expect-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-help.sh b/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a7b0dbd604247427e7e747a7c32e4c0457b19b3 --- /dev/null +++ b/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src expect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available expect-help | grep -v \.src | grep expect-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm expect-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y expect-help + CHECK_RESULT $? 0 0 "install expect-help failed" + SLEEP_WAIT 1 + dnf remove -y expect-help + CHECK_RESULT $? 0 0 "remove expect-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect.sh b/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect.sh new file mode 100644 index 0000000000000000000000000000000000000000..b58530ed42577cb1bda77b6a6fa1572d0d2c2b65 --- /dev/null +++ b/testcases/cli-test/expect/oe_test_expect_install_and_remove_expect.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src expect +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available expect | grep -v \.src | grep expect + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm expect" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y expect + CHECK_RESULT $? 0 0 "install expect failed" + SLEEP_WAIT 1 + dnf remove -y expect + CHECK_RESULT $? 0 0 "remove expect failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot-debuginfo.sh b/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..26173fd5870d2f3fb2bcf562009e15c3d48aef81 --- /dev/null +++ b/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fakechroot +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fakechroot-debuginfo | grep -v \.src | grep fakechroot-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fakechroot-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fakechroot-debuginfo + CHECK_RESULT $? 0 0 "install fakechroot-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fakechroot-debuginfo + CHECK_RESULT $? 0 0 "remove fakechroot-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot-debugsource.sh b/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2433baceef92e176bfe312ab5d067b2c3c9a034d --- /dev/null +++ b/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fakechroot +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fakechroot-debugsource | grep -v \.src | grep fakechroot-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fakechroot-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fakechroot-debugsource + CHECK_RESULT $? 0 0 "install fakechroot-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fakechroot-debugsource + CHECK_RESULT $? 0 0 "remove fakechroot-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot-help.sh b/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7bd02215f12e5dba50ce5c1fcf73fdffb8574c6 --- /dev/null +++ b/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fakechroot +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fakechroot-help | grep -v \.src | grep fakechroot-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fakechroot-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fakechroot-help + CHECK_RESULT $? 0 0 "install fakechroot-help failed" + SLEEP_WAIT 1 + dnf remove -y fakechroot-help + CHECK_RESULT $? 0 0 "remove fakechroot-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot.sh b/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot.sh new file mode 100644 index 0000000000000000000000000000000000000000..578a0fd1567c8d52748a4cbfb5b76349ad57e81e --- /dev/null +++ b/testcases/cli-test/fakechroot/oe_test_fakechroot_install_and_remove_fakechroot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fakechroot +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fakechroot | grep -v \.src | grep fakechroot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fakechroot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fakechroot + CHECK_RESULT $? 0 0 "install fakechroot failed" + SLEEP_WAIT 1 + dnf remove -y fakechroot + CHECK_RESULT $? 0 0 "remove fakechroot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils-debuginfo.sh b/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..09400c4527b3bceb4411aa8e3257ef7bf335cfd1 --- /dev/null +++ b/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fcoe-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fcoe-utils-debuginfo | grep -v \.src | grep fcoe-utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fcoe-utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fcoe-utils-debuginfo + CHECK_RESULT $? 0 0 "install fcoe-utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fcoe-utils-debuginfo + CHECK_RESULT $? 0 0 "remove fcoe-utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils-debugsource.sh b/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb2d3813d661ab5fd66502f2fb39d0beb0011039 --- /dev/null +++ b/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fcoe-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fcoe-utils-debugsource | grep -v \.src | grep fcoe-utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fcoe-utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fcoe-utils-debugsource + CHECK_RESULT $? 0 0 "install fcoe-utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fcoe-utils-debugsource + CHECK_RESULT $? 0 0 "remove fcoe-utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils-help.sh b/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..33b36c9120fb29473ab1c082f7a72ba96389df6c --- /dev/null +++ b/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fcoe-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fcoe-utils-help | grep -v \.src | grep fcoe-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fcoe-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fcoe-utils-help + CHECK_RESULT $? 0 0 "install fcoe-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y fcoe-utils-help + CHECK_RESULT $? 0 0 "remove fcoe-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils.sh b/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..caf834e2f7dd15a221ed70bd6746ac6d0e3bcd4e --- /dev/null +++ b/testcases/cli-test/fcoe-utils/oe_test_fcoe-utils_install_and_remove_fcoe-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fcoe-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fcoe-utils | grep -v \.src | grep fcoe-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fcoe-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fcoe-utils + CHECK_RESULT $? 0 0 "install fcoe-utils failed" + SLEEP_WAIT 1 + dnf remove -y fcoe-utils + CHECK_RESULT $? 0 0 "remove fcoe-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes-debuginfo.sh b/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb4ce89044e9553ccd88841389c36100655a8f11 --- /dev/null +++ b/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fdupes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fdupes-debuginfo | grep -v \.src | grep fdupes-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fdupes-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fdupes-debuginfo + CHECK_RESULT $? 0 0 "install fdupes-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fdupes-debuginfo + CHECK_RESULT $? 0 0 "remove fdupes-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes-debugsource.sh b/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..77db64ea1f7792ad1449a4559c90028edf4a4740 --- /dev/null +++ b/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fdupes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fdupes-debugsource | grep -v \.src | grep fdupes-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fdupes-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fdupes-debugsource + CHECK_RESULT $? 0 0 "install fdupes-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fdupes-debugsource + CHECK_RESULT $? 0 0 "remove fdupes-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes-help.sh b/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5f0f12e9650805b094fe6ce856d336753d106cd --- /dev/null +++ b/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fdupes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fdupes-help | grep -v \.src | grep fdupes-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fdupes-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fdupes-help + CHECK_RESULT $? 0 0 "install fdupes-help failed" + SLEEP_WAIT 1 + dnf remove -y fdupes-help + CHECK_RESULT $? 0 0 "remove fdupes-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes.sh b/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e37be7024947ffbf16c960ac49e9d863db512e5 --- /dev/null +++ b/testcases/cli-test/fdupes/oe_test_fdupes_install_and_remove_fdupes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fdupes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fdupes | grep -v \.src | grep fdupes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fdupes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fdupes + CHECK_RESULT $? 0 0 "install fdupes failed" + SLEEP_WAIT 1 + dnf remove -y fdupes + CHECK_RESULT $? 0 0 "remove fdupes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-devel.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2272fc438610eef6cf6e6a65195f4a51f50806f --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-devel | grep -v \.src | grep fftw-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-devel + CHECK_RESULT $? 0 0 "install fftw-devel failed" + SLEEP_WAIT 1 + dnf remove -y fftw-devel + CHECK_RESULT $? 0 0 "remove fftw-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-help.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a42d6dfa23ecd034d758220f9182f02c0eb9c18 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-help | grep -v \.src | grep fftw-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-help + CHECK_RESULT $? 0 0 "install fftw-help failed" + SLEEP_WAIT 1 + dnf remove -y fftw-help + CHECK_RESULT $? 0 0 "remove fftw-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-double.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-double.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f24f71228e4ffa37d34625d6ea357ffe83a0a53 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-double.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-libs-double | grep -v \.src | grep fftw-libs-double + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-libs-double" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-libs-double + CHECK_RESULT $? 0 0 "install fftw-libs-double failed" + SLEEP_WAIT 1 + dnf remove -y fftw-libs-double + CHECK_RESULT $? 0 0 "remove fftw-libs-double failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-long.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-long.sh new file mode 100644 index 0000000000000000000000000000000000000000..838bc8fca7c78579556a9b32aee15eca8e103010 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-long.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-libs-long | grep -v \.src | grep fftw-libs-long + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-libs-long" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-libs-long + CHECK_RESULT $? 0 0 "install fftw-libs-long failed" + SLEEP_WAIT 1 + dnf remove -y fftw-libs-long + CHECK_RESULT $? 0 0 "remove fftw-libs-long failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-quad.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-quad.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cbf7c8f4d90f803cbe530b7a30362953d7476d1 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-quad.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-libs-quad | grep -v \.src | grep fftw-libs-quad + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-libs-quad" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-libs-quad + CHECK_RESULT $? 0 0 "install fftw-libs-quad failed" + SLEEP_WAIT 1 + dnf remove -y fftw-libs-quad + CHECK_RESULT $? 0 0 "remove fftw-libs-quad failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-single.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-single.sh new file mode 100644 index 0000000000000000000000000000000000000000..395e8eccc88606affb5cfbb61757d627b06ae0c8 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs-single.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-libs-single | grep -v \.src | grep fftw-libs-single + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-libs-single" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-libs-single + CHECK_RESULT $? 0 0 "install fftw-libs-single failed" + SLEEP_WAIT 1 + dnf remove -y fftw-libs-single + CHECK_RESULT $? 0 0 "remove fftw-libs-single failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4a5a409d354ac9ef5d6d2a86596741bf1ced35f --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-libs | grep -v \.src | grep fftw-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-libs + CHECK_RESULT $? 0 0 "install fftw-libs failed" + SLEEP_WAIT 1 + dnf remove -y fftw-libs + CHECK_RESULT $? 0 0 "remove fftw-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-devel.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a132303311e85dfcbe5da402c74f49565cffe65 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-mpich-devel | grep -v \.src | grep fftw-mpich-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-mpich-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-mpich-devel + CHECK_RESULT $? 0 0 "install fftw-mpich-devel failed" + SLEEP_WAIT 1 + dnf remove -y fftw-mpich-devel + CHECK_RESULT $? 0 0 "remove fftw-mpich-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs-double.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs-double.sh new file mode 100644 index 0000000000000000000000000000000000000000..d456bb0101d7a2057c91eed84c2c80a152e5fbd9 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs-double.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-mpich-libs-double | grep -v \.src | grep fftw-mpich-libs-double + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-mpich-libs-double" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-mpich-libs-double + CHECK_RESULT $? 0 0 "install fftw-mpich-libs-double failed" + SLEEP_WAIT 1 + dnf remove -y fftw-mpich-libs-double + CHECK_RESULT $? 0 0 "remove fftw-mpich-libs-double failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs-long.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs-long.sh new file mode 100644 index 0000000000000000000000000000000000000000..1417d1863ceb300fb166e14d559e653d021cd70a --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs-long.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-mpich-libs-long | grep -v \.src | grep fftw-mpich-libs-long + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-mpich-libs-long" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-mpich-libs-long + CHECK_RESULT $? 0 0 "install fftw-mpich-libs-long failed" + SLEEP_WAIT 1 + dnf remove -y fftw-mpich-libs-long + CHECK_RESULT $? 0 0 "remove fftw-mpich-libs-long failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs-single.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs-single.sh new file mode 100644 index 0000000000000000000000000000000000000000..caa4d9ca796f7ca2b91444ba3c45ac01cd3868cc --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs-single.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-mpich-libs-single | grep -v \.src | grep fftw-mpich-libs-single + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-mpich-libs-single" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-mpich-libs-single + CHECK_RESULT $? 0 0 "install fftw-mpich-libs-single failed" + SLEEP_WAIT 1 + dnf remove -y fftw-mpich-libs-single + CHECK_RESULT $? 0 0 "remove fftw-mpich-libs-single failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..db318291532b119814c05a694455ea339358c621 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-mpich-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-mpich-libs | grep -v \.src | grep fftw-mpich-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-mpich-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-mpich-libs + CHECK_RESULT $? 0 0 "install fftw-mpich-libs failed" + SLEEP_WAIT 1 + dnf remove -y fftw-mpich-libs + CHECK_RESULT $? 0 0 "remove fftw-mpich-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-devel.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a3fd933271616fecadb330d79ecfa7edb0a0827 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-openmpi-devel | grep -v \.src | grep fftw-openmpi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-openmpi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-openmpi-devel + CHECK_RESULT $? 0 0 "install fftw-openmpi-devel failed" + SLEEP_WAIT 1 + dnf remove -y fftw-openmpi-devel + CHECK_RESULT $? 0 0 "remove fftw-openmpi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs-double.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs-double.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a25bb638d52d22aa1061452a1d6324ea53e303f --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs-double.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-openmpi-libs-double | grep -v \.src | grep fftw-openmpi-libs-double + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-openmpi-libs-double" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-openmpi-libs-double + CHECK_RESULT $? 0 0 "install fftw-openmpi-libs-double failed" + SLEEP_WAIT 1 + dnf remove -y fftw-openmpi-libs-double + CHECK_RESULT $? 0 0 "remove fftw-openmpi-libs-double failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs-long.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs-long.sh new file mode 100644 index 0000000000000000000000000000000000000000..b06ca3b6d266224f4e883ff5e589a25f3bd2e6e5 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs-long.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-openmpi-libs-long | grep -v \.src | grep fftw-openmpi-libs-long + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-openmpi-libs-long" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-openmpi-libs-long + CHECK_RESULT $? 0 0 "install fftw-openmpi-libs-long failed" + SLEEP_WAIT 1 + dnf remove -y fftw-openmpi-libs-long + CHECK_RESULT $? 0 0 "remove fftw-openmpi-libs-long failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs-single.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs-single.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d96585c6e75adf182a78e4bb2b6c3225a7a56b5 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs-single.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-openmpi-libs-single | grep -v \.src | grep fftw-openmpi-libs-single + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-openmpi-libs-single" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-openmpi-libs-single + CHECK_RESULT $? 0 0 "install fftw-openmpi-libs-single failed" + SLEEP_WAIT 1 + dnf remove -y fftw-openmpi-libs-single + CHECK_RESULT $? 0 0 "remove fftw-openmpi-libs-single failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..4744b0189fd020011a15e9dcdb2c52241dba5482 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw-openmpi-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw-openmpi-libs | grep -v \.src | grep fftw-openmpi-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw-openmpi-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw-openmpi-libs + CHECK_RESULT $? 0 0 "install fftw-openmpi-libs failed" + SLEEP_WAIT 1 + dnf remove -y fftw-openmpi-libs + CHECK_RESULT $? 0 0 "remove fftw-openmpi-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw.sh b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b479bf38165a320cedeef1d4abc156a47b34171 --- /dev/null +++ b/testcases/cli-test/fftw/oe_test_fftw_install_and_remove_fftw.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fftw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fftw | grep -v \.src | grep fftw + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fftw" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fftw + CHECK_RESULT $? 0 0 "install fftw failed" + SLEEP_WAIT 1 + dnf remove -y fftw + CHECK_RESULT $? 0 0 "remove fftw failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/file/oe_test_file_install_and_remove_file-debuginfo.sh b/testcases/cli-test/file/oe_test_file_install_and_remove_file-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f5b874b111cf7024d6ca2d9eed252dfaf01a443 --- /dev/null +++ b/testcases/cli-test/file/oe_test_file_install_and_remove_file-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available file-debuginfo | grep -v \.src | grep file-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm file-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y file-debuginfo + CHECK_RESULT $? 0 0 "install file-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y file-debuginfo + CHECK_RESULT $? 0 0 "remove file-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/file/oe_test_file_install_and_remove_file-debugsource.sh b/testcases/cli-test/file/oe_test_file_install_and_remove_file-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e2a42bc2e583cbdb25b6e34d08c0a5052b85ebf --- /dev/null +++ b/testcases/cli-test/file/oe_test_file_install_and_remove_file-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available file-debugsource | grep -v \.src | grep file-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm file-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y file-debugsource + CHECK_RESULT $? 0 0 "install file-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y file-debugsource + CHECK_RESULT $? 0 0 "remove file-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/file/oe_test_file_install_and_remove_file-devel.sh b/testcases/cli-test/file/oe_test_file_install_and_remove_file-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac53b532189bf1e079e78aa1a9122c8126839b8e --- /dev/null +++ b/testcases/cli-test/file/oe_test_file_install_and_remove_file-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available file-devel | grep -v \.src | grep file-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm file-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y file-devel + CHECK_RESULT $? 0 0 "install file-devel failed" + SLEEP_WAIT 1 + dnf remove -y file-devel + CHECK_RESULT $? 0 0 "remove file-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/file/oe_test_file_install_and_remove_file-help.sh b/testcases/cli-test/file/oe_test_file_install_and_remove_file-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..879ca3b514b6974d51b87445c45dcd9262afcdef --- /dev/null +++ b/testcases/cli-test/file/oe_test_file_install_and_remove_file-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available file-help | grep -v \.src | grep file-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm file-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y file-help + CHECK_RESULT $? 0 0 "install file-help failed" + SLEEP_WAIT 1 + dnf remove -y file-help + CHECK_RESULT $? 0 0 "remove file-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/file/oe_test_file_install_and_remove_file-libs.sh b/testcases/cli-test/file/oe_test_file_install_and_remove_file-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..af8df355a43634a434e9e54bc24a56d845f0081f --- /dev/null +++ b/testcases/cli-test/file/oe_test_file_install_and_remove_file-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available file-libs | grep -v \.src | grep file-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm file-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y file-libs + CHECK_RESULT $? 0 0 "install file-libs failed" + SLEEP_WAIT 1 + dnf remove -y file-libs + CHECK_RESULT $? 0 0 "remove file-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/file/oe_test_file_install_and_remove_file.sh b/testcases/cli-test/file/oe_test_file_install_and_remove_file.sh new file mode 100644 index 0000000000000000000000000000000000000000..f158a577971926ac06b3d2576dbfd652850a8549 --- /dev/null +++ b/testcases/cli-test/file/oe_test_file_install_and_remove_file.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available file | grep -v \.src | grep file + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm file" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y file + CHECK_RESULT $? 0 0 "install file failed" + SLEEP_WAIT 1 + dnf remove -y file + CHECK_RESULT $? 0 0 "remove file failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/file/oe_test_file_install_and_remove_python2-magic.sh b/testcases/cli-test/file/oe_test_file_install_and_remove_python2-magic.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d739c2b455cccb61cad310bad7bede7e497d922 --- /dev/null +++ b/testcases/cli-test/file/oe_test_file_install_and_remove_python2-magic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-magic | grep -v \.src | grep python2-magic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-magic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-magic + CHECK_RESULT $? 0 0 "install python2-magic failed" + SLEEP_WAIT 1 + dnf remove -y python2-magic + CHECK_RESULT $? 0 0 "remove python2-magic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/file/oe_test_file_install_and_remove_python3-magic.sh b/testcases/cli-test/file/oe_test_file_install_and_remove_python3-magic.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec4d2c7d80cd86d4ccd03044b63957e50a6b2a0a --- /dev/null +++ b/testcases/cli-test/file/oe_test_file_install_and_remove_python3-magic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-magic | grep -v \.src | grep python3-magic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-magic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-magic + CHECK_RESULT $? 0 0 "install python3-magic failed" + SLEEP_WAIT 1 + dnf remove -y python3-magic + CHECK_RESULT $? 0 0 "remove python3-magic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/filesystem/oe_test_filesystem_install_and_remove_filesystem-afs.sh b/testcases/cli-test/filesystem/oe_test_filesystem_install_and_remove_filesystem-afs.sh new file mode 100644 index 0000000000000000000000000000000000000000..0505ce196b9d49dfe73c7de5c4fbc83490e6c04f --- /dev/null +++ b/testcases/cli-test/filesystem/oe_test_filesystem_install_and_remove_filesystem-afs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available filesystem-afs | grep -v \.src | grep filesystem-afs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm filesystem-afs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y filesystem-afs + CHECK_RESULT $? 0 0 "install filesystem-afs failed" + SLEEP_WAIT 1 + dnf remove -y filesystem-afs + CHECK_RESULT $? 0 0 "remove filesystem-afs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/filesystem/oe_test_filesystem_install_and_remove_filesystem-content.sh b/testcases/cli-test/filesystem/oe_test_filesystem_install_and_remove_filesystem-content.sh new file mode 100644 index 0000000000000000000000000000000000000000..83c7ac0d9414efa9e9d6029bc3c9e84ad2d22422 --- /dev/null +++ b/testcases/cli-test/filesystem/oe_test_filesystem_install_and_remove_filesystem-content.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available filesystem-content | grep -v \.src | grep filesystem-content + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm filesystem-content" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y filesystem-content + CHECK_RESULT $? 0 0 "install filesystem-content failed" + SLEEP_WAIT 1 + dnf remove -y filesystem-content + CHECK_RESULT $? 0 0 "remove filesystem-content failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/filesystem/oe_test_filesystem_install_and_remove_filesystem.sh b/testcases/cli-test/filesystem/oe_test_filesystem_install_and_remove_filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..3444400995c78f97f3d09c6a9576dad77ea04bae --- /dev/null +++ b/testcases/cli-test/filesystem/oe_test_filesystem_install_and_remove_filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available filesystem | grep -v \.src | grep filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y filesystem + CHECK_RESULT $? 0 0 "install filesystem failed" + SLEEP_WAIT 1 + dnf remove -y filesystem + CHECK_RESULT $? 0 0 "remove filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils-debuginfo.sh b/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..900195d10fde9a0b7f14d1a6d7780e2c1237dba7 --- /dev/null +++ b/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src findutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available findutils-debuginfo | grep -v \.src | grep findutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm findutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y findutils-debuginfo + CHECK_RESULT $? 0 0 "install findutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y findutils-debuginfo + CHECK_RESULT $? 0 0 "remove findutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils-debugsource.sh b/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..77242acc03a7e53b42ae555f7cc5bc1f93e8ab4c --- /dev/null +++ b/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src findutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available findutils-debugsource | grep -v \.src | grep findutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm findutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y findutils-debugsource + CHECK_RESULT $? 0 0 "install findutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y findutils-debugsource + CHECK_RESULT $? 0 0 "remove findutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils-help.sh b/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a44f4d72d009213fede32ff18d90e0880aa56ebd --- /dev/null +++ b/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src findutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available findutils-help | grep -v \.src | grep findutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm findutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y findutils-help + CHECK_RESULT $? 0 0 "install findutils-help failed" + SLEEP_WAIT 1 + dnf remove -y findutils-help + CHECK_RESULT $? 0 0 "remove findutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils.sh b/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..01052e85c087519ff77b738501fb28330aac45e9 --- /dev/null +++ b/testcases/cli-test/findutils/oe_test_findutils_install_and_remove_findutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src findutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available findutils | grep -v \.src | grep findutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm findutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y findutils + CHECK_RESULT $? 0 0 "install findutils failed" + SLEEP_WAIT 1 + dnf remove -y findutils + CHECK_RESULT $? 0 0 "remove findutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-debuginfo.sh b/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae7a6079d85822887e7dc465d172cc91e544a1c6 --- /dev/null +++ b/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fipscheck +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fipscheck-debuginfo | grep -v \.src | grep fipscheck-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fipscheck-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fipscheck-debuginfo + CHECK_RESULT $? 0 0 "install fipscheck-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fipscheck-debuginfo + CHECK_RESULT $? 0 0 "remove fipscheck-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-debugsource.sh b/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f939154e18daac8e49153e56272ab19336cdd16c --- /dev/null +++ b/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fipscheck +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fipscheck-debugsource | grep -v \.src | grep fipscheck-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fipscheck-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fipscheck-debugsource + CHECK_RESULT $? 0 0 "install fipscheck-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fipscheck-debugsource + CHECK_RESULT $? 0 0 "remove fipscheck-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-devel.sh b/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5296fd5777ddd1c91589ad971030ac1787d0ef32 --- /dev/null +++ b/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fipscheck +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fipscheck-devel | grep -v \.src | grep fipscheck-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fipscheck-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fipscheck-devel + CHECK_RESULT $? 0 0 "install fipscheck-devel failed" + SLEEP_WAIT 1 + dnf remove -y fipscheck-devel + CHECK_RESULT $? 0 0 "remove fipscheck-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-help.sh b/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f81678d2726acefc385092081ad6340acc834d6 --- /dev/null +++ b/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fipscheck +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fipscheck-help | grep -v \.src | grep fipscheck-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fipscheck-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fipscheck-help + CHECK_RESULT $? 0 0 "install fipscheck-help failed" + SLEEP_WAIT 1 + dnf remove -y fipscheck-help + CHECK_RESULT $? 0 0 "remove fipscheck-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck.sh b/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck.sh new file mode 100644 index 0000000000000000000000000000000000000000..79ba27fa862e0ded36a2c30f0784ffe950672cc1 --- /dev/null +++ b/testcases/cli-test/fipscheck/oe_test_fipscheck_install_and_remove_fipscheck.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fipscheck +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fipscheck | grep -v \.src | grep fipscheck + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fipscheck" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fipscheck + CHECK_RESULT $? 0 0 "install fipscheck failed" + SLEEP_WAIT 1 + dnf remove -y fipscheck + CHECK_RESULT $? 0 0 "remove fipscheck failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_firewalld-doc.sh b/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_firewalld-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae79574c0352eee4f37cbc99512ca9e223325472 --- /dev/null +++ b/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_firewalld-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src firewalld +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available firewalld-doc | grep -v \.src | grep firewalld-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm firewalld-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y firewalld-doc + CHECK_RESULT $? 0 0 "install firewalld-doc failed" + SLEEP_WAIT 1 + dnf remove -y firewalld-doc + CHECK_RESULT $? 0 0 "remove firewalld-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_firewalld-test.sh b/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_firewalld-test.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5bda3e1b05253871371e25a81f39080f6953dcb --- /dev/null +++ b/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_firewalld-test.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src firewalld +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available firewalld-test | grep -v \.src | grep firewalld-test + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm firewalld-test" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y firewalld-test + CHECK_RESULT $? 0 0 "install firewalld-test failed" + SLEEP_WAIT 1 + dnf remove -y firewalld-test + CHECK_RESULT $? 0 0 "remove firewalld-test failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_firewalld.sh b/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_firewalld.sh new file mode 100644 index 0000000000000000000000000000000000000000..7848d7f3f70759cf1749d5923de3a143038ffa4c --- /dev/null +++ b/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_firewalld.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src firewalld +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available firewalld | grep -v \.src | grep firewalld + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm firewalld" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y firewalld + CHECK_RESULT $? 0 0 "install firewalld failed" + SLEEP_WAIT 1 + dnf remove -y firewalld + CHECK_RESULT $? 0 0 "remove firewalld failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_python3-firewall.sh b/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_python3-firewall.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f452c55f56337881e8a0e5f0c9d5d3943e0e4be --- /dev/null +++ b/testcases/cli-test/firewalld/oe_test_firewalld_install_and_remove_python3-firewall.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src firewalld +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-firewall | grep -v \.src | grep python3-firewall + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-firewall" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-firewall + CHECK_RESULT $? 0 0 "install python3-firewall failed" + SLEEP_WAIT 1 + dnf remove -y python3-firewall + CHECK_RESULT $? 0 0 "remove python3-firewall failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-debuginfo.sh b/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fbde264cc3776ed9c8453561829c69f8220cf8d --- /dev/null +++ b/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flac +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available flac-debuginfo | grep -v \.src | grep flac-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm flac-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y flac-debuginfo + CHECK_RESULT $? 0 0 "install flac-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y flac-debuginfo + CHECK_RESULT $? 0 0 "remove flac-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-debugsource.sh b/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fb6205e904d34db463ba2216137a4c7220c7bd7 --- /dev/null +++ b/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flac +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available flac-debugsource | grep -v \.src | grep flac-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm flac-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y flac-debugsource + CHECK_RESULT $? 0 0 "install flac-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y flac-debugsource + CHECK_RESULT $? 0 0 "remove flac-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-devel.sh b/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9dc79303c29e00ee4a48c04fa74bf164fbe0998 --- /dev/null +++ b/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flac +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available flac-devel | grep -v \.src | grep flac-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm flac-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y flac-devel + CHECK_RESULT $? 0 0 "install flac-devel failed" + SLEEP_WAIT 1 + dnf remove -y flac-devel + CHECK_RESULT $? 0 0 "remove flac-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-help.sh b/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..18889550704bd8551655fd539e106592da37ab2e --- /dev/null +++ b/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flac +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available flac-help | grep -v \.src | grep flac-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm flac-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y flac-help + CHECK_RESULT $? 0 0 "install flac-help failed" + SLEEP_WAIT 1 + dnf remove -y flac-help + CHECK_RESULT $? 0 0 "remove flac-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac.sh b/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac.sh new file mode 100644 index 0000000000000000000000000000000000000000..525b2704c0219bb0444367c6816de00053df31d4 --- /dev/null +++ b/testcases/cli-test/flac/oe_test_flac_install_and_remove_flac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flac +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available flac | grep -v \.src | grep flac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm flac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y flac + CHECK_RESULT $? 0 0 "install flac failed" + SLEEP_WAIT 1 + dnf remove -y flac + CHECK_RESULT $? 0 0 "remove flac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flac/oe_test_flac_install_and_remove_xmms-flac.sh b/testcases/cli-test/flac/oe_test_flac_install_and_remove_xmms-flac.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4f98606ed8281200e72862d418396960eee057c --- /dev/null +++ b/testcases/cli-test/flac/oe_test_flac_install_and_remove_xmms-flac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flac +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmms-flac | grep -v \.src | grep xmms-flac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmms-flac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmms-flac + CHECK_RESULT $? 0 0 "install xmms-flac failed" + SLEEP_WAIT 1 + dnf remove -y xmms-flac + CHECK_RESULT $? 0 0 "remove xmms-flac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-debuginfo.sh b/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..babe7973d366dfa057a3a17af00d365840a8152c --- /dev/null +++ b/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available flex-debuginfo | grep -v \.src | grep flex-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm flex-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y flex-debuginfo + CHECK_RESULT $? 0 0 "install flex-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y flex-debuginfo + CHECK_RESULT $? 0 0 "remove flex-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-debugsource.sh b/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4ca7f0b4758f96f7bfd0d289b5febe6d99577ac --- /dev/null +++ b/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available flex-debugsource | grep -v \.src | grep flex-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm flex-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y flex-debugsource + CHECK_RESULT $? 0 0 "install flex-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y flex-debugsource + CHECK_RESULT $? 0 0 "remove flex-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-devel.sh b/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e89bc4d1782a5a89a1b2024073c6d8673a81c5e --- /dev/null +++ b/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available flex-devel | grep -v \.src | grep flex-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm flex-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y flex-devel + CHECK_RESULT $? 0 0 "install flex-devel failed" + SLEEP_WAIT 1 + dnf remove -y flex-devel + CHECK_RESULT $? 0 0 "remove flex-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-help.sh b/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..680d8caa7a33b03b9bfbbc5d9c449e628def7ec6 --- /dev/null +++ b/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available flex-help | grep -v \.src | grep flex-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm flex-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y flex-help + CHECK_RESULT $? 0 0 "install flex-help failed" + SLEEP_WAIT 1 + dnf remove -y flex-help + CHECK_RESULT $? 0 0 "remove flex-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex.sh b/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf9ab312afcb10c55d9c99919150799bfaa5f8ee --- /dev/null +++ b/testcases/cli-test/flex/oe_test_flex_install_and_remove_flex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src flex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available flex | grep -v \.src | grep flex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm flex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y flex + CHECK_RESULT $? 0 0 "install flex failed" + SLEEP_WAIT 1 + dnf remove -y flex + CHECK_RESULT $? 0 0 "remove flex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-debuginfo.sh b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7730995ae7d898ca98a1745da626fafaabb10986 --- /dev/null +++ b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fltk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fltk-debuginfo | grep -v \.src | grep fltk-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fltk-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fltk-debuginfo + CHECK_RESULT $? 0 0 "install fltk-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fltk-debuginfo + CHECK_RESULT $? 0 0 "remove fltk-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-debugsource.sh b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..17e4c92f9edf3b383118e50341cb58f2a0a5773a --- /dev/null +++ b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fltk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fltk-debugsource | grep -v \.src | grep fltk-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fltk-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fltk-debugsource + CHECK_RESULT $? 0 0 "install fltk-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fltk-debugsource + CHECK_RESULT $? 0 0 "remove fltk-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-devel.sh b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f0d1a4096c04c8294e02824817c69110ac6d45f --- /dev/null +++ b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fltk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fltk-devel | grep -v \.src | grep fltk-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fltk-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fltk-devel + CHECK_RESULT $? 0 0 "install fltk-devel failed" + SLEEP_WAIT 1 + dnf remove -y fltk-devel + CHECK_RESULT $? 0 0 "remove fltk-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-fluid.sh b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-fluid.sh new file mode 100644 index 0000000000000000000000000000000000000000..944c73cb025d097efadb57c6a4a06f84f3aa445c --- /dev/null +++ b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-fluid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fltk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fltk-fluid | grep -v \.src | grep fltk-fluid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fltk-fluid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fltk-fluid + CHECK_RESULT $? 0 0 "install fltk-fluid failed" + SLEEP_WAIT 1 + dnf remove -y fltk-fluid + CHECK_RESULT $? 0 0 "remove fltk-fluid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-help.sh b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..562cfbbaf5958a9db0d3791a8bde745a8d20909c --- /dev/null +++ b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fltk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fltk-help | grep -v \.src | grep fltk-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fltk-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fltk-help + CHECK_RESULT $? 0 0 "install fltk-help failed" + SLEEP_WAIT 1 + dnf remove -y fltk-help + CHECK_RESULT $? 0 0 "remove fltk-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-static.sh b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fafdbdadd3f4dc2f1e63ad78c4997b5f0743481 --- /dev/null +++ b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fltk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fltk-static | grep -v \.src | grep fltk-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fltk-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fltk-static + CHECK_RESULT $? 0 0 "install fltk-static failed" + SLEEP_WAIT 1 + dnf remove -y fltk-static + CHECK_RESULT $? 0 0 "remove fltk-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk.sh b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk.sh new file mode 100644 index 0000000000000000000000000000000000000000..a793ec094864ef82659d0e90b2ab2b0c0cf83b76 --- /dev/null +++ b/testcases/cli-test/fltk/oe_test_fltk_install_and_remove_fltk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fltk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fltk | grep -v \.src | grep fltk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fltk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fltk + CHECK_RESULT $? 0 0 "install fltk failed" + SLEEP_WAIT 1 + dnf remove -y fltk + CHECK_RESULT $? 0 0 "remove fltk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-debuginfo.sh b/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c91253b3c8dee6a2542141e29e89ca6c8605088 --- /dev/null +++ b/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fontconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fontconfig-debuginfo | grep -v \.src | grep fontconfig-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fontconfig-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fontconfig-debuginfo + CHECK_RESULT $? 0 0 "install fontconfig-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fontconfig-debuginfo + CHECK_RESULT $? 0 0 "remove fontconfig-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-debugsource.sh b/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..49a301456949efed1c0527fa9a7ed7e56dfcdbc8 --- /dev/null +++ b/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fontconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fontconfig-debugsource | grep -v \.src | grep fontconfig-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fontconfig-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fontconfig-debugsource + CHECK_RESULT $? 0 0 "install fontconfig-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fontconfig-debugsource + CHECK_RESULT $? 0 0 "remove fontconfig-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-devel.sh b/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1db2a91885f1aa17a9272e6ac92959c0912f91c6 --- /dev/null +++ b/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fontconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fontconfig-devel | grep -v \.src | grep fontconfig-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fontconfig-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fontconfig-devel + CHECK_RESULT $? 0 0 "install fontconfig-devel failed" + SLEEP_WAIT 1 + dnf remove -y fontconfig-devel + CHECK_RESULT $? 0 0 "remove fontconfig-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-help.sh b/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ff7b90f347f54ebc57a6cee399a3588b405060b --- /dev/null +++ b/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fontconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fontconfig-help | grep -v \.src | grep fontconfig-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fontconfig-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fontconfig-help + CHECK_RESULT $? 0 0 "install fontconfig-help failed" + SLEEP_WAIT 1 + dnf remove -y fontconfig-help + CHECK_RESULT $? 0 0 "remove fontconfig-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig.sh b/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a5671109cb878d73dd2ec12bf494e07e15b2619 --- /dev/null +++ b/testcases/cli-test/fontconfig/oe_test_fontconfig_install_and_remove_fontconfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fontconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fontconfig | grep -v \.src | grep fontconfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fontconfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fontconfig + CHECK_RESULT $? 0 0 "install fontconfig failed" + SLEEP_WAIT 1 + dnf remove -y fontconfig + CHECK_RESULT $? 0 0 "remove fontconfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-debuginfo.sh b/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2178c22cef1eeb77583b22a11dbdebcfab13e2e --- /dev/null +++ b/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fontforge +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fontforge-debuginfo | grep -v \.src | grep fontforge-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fontforge-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fontforge-debuginfo + CHECK_RESULT $? 0 0 "install fontforge-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fontforge-debuginfo + CHECK_RESULT $? 0 0 "remove fontforge-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-debugsource.sh b/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..739fc51fcc2427b26003728275873eb23dcffdde --- /dev/null +++ b/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fontforge +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fontforge-debugsource | grep -v \.src | grep fontforge-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fontforge-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fontforge-debugsource + CHECK_RESULT $? 0 0 "install fontforge-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fontforge-debugsource + CHECK_RESULT $? 0 0 "remove fontforge-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-devel.sh b/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..20147057ffcfac14722e85741ae4cbd89f6ebfbb --- /dev/null +++ b/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fontforge +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fontforge-devel | grep -v \.src | grep fontforge-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fontforge-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fontforge-devel + CHECK_RESULT $? 0 0 "install fontforge-devel failed" + SLEEP_WAIT 1 + dnf remove -y fontforge-devel + CHECK_RESULT $? 0 0 "remove fontforge-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-help.sh b/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7423a1c19aa6449527468c3567640e7281508b91 --- /dev/null +++ b/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fontforge +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fontforge-help | grep -v \.src | grep fontforge-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fontforge-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fontforge-help + CHECK_RESULT $? 0 0 "install fontforge-help failed" + SLEEP_WAIT 1 + dnf remove -y fontforge-help + CHECK_RESULT $? 0 0 "remove fontforge-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge.sh b/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae62474ea98060d473c75336c793d349f1a5b133 --- /dev/null +++ b/testcases/cli-test/fontforge/oe_test_fontforge_install_and_remove_fontforge.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fontforge +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fontforge | grep -v \.src | grep fontforge + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fontforge" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fontforge + CHECK_RESULT $? 0 0 "install fontforge failed" + SLEEP_WAIT 1 + dnf remove -y fontforge + CHECK_RESULT $? 0 0 "remove fontforge failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-filesystem.sh b/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..7fd1f00088a0d2ffaad850cdd48230d0cc815dfd --- /dev/null +++ b/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fonts-rpm-macros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fonts-filesystem | grep -v \.src | grep fonts-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fonts-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fonts-filesystem + CHECK_RESULT $? 0 0 "install fonts-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y fonts-filesystem + CHECK_RESULT $? 0 0 "remove fonts-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-macros-help.sh b/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-macros-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..39aec200d2724c2cc8ad7d29ff6017691b8706b1 --- /dev/null +++ b/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-macros-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fonts-rpm-macros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fonts-rpm-macros-help | grep -v \.src | grep fonts-rpm-macros-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fonts-rpm-macros-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fonts-rpm-macros-help + CHECK_RESULT $? 0 0 "install fonts-rpm-macros-help failed" + SLEEP_WAIT 1 + dnf remove -y fonts-rpm-macros-help + CHECK_RESULT $? 0 0 "remove fonts-rpm-macros-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-macros.sh b/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-macros.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc7cb3305ee2054da5f5c38f2a42834add51b1ba --- /dev/null +++ b/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-macros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fonts-rpm-macros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fonts-rpm-macros | grep -v \.src | grep fonts-rpm-macros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fonts-rpm-macros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fonts-rpm-macros + CHECK_RESULT $? 0 0 "install fonts-rpm-macros failed" + SLEEP_WAIT 1 + dnf remove -y fonts-rpm-macros + CHECK_RESULT $? 0 0 "remove fonts-rpm-macros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-templates.sh b/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-templates.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f1183f7b56083cfa9093eac6ab3876328f3d07f --- /dev/null +++ b/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-rpm-templates.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fonts-rpm-macros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fonts-rpm-templates | grep -v \.src | grep fonts-rpm-templates + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fonts-rpm-templates" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fonts-rpm-templates + CHECK_RESULT $? 0 0 "install fonts-rpm-templates failed" + SLEEP_WAIT 1 + dnf remove -y fonts-rpm-templates + CHECK_RESULT $? 0 0 "remove fonts-rpm-templates failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-srpm-macros.sh b/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-srpm-macros.sh new file mode 100644 index 0000000000000000000000000000000000000000..24f0d8fd582d18833ddf663d56744a654308db4c --- /dev/null +++ b/testcases/cli-test/fonts-rpm-macros/oe_test_fonts-rpm-macros_install_and_remove_fonts-srpm-macros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fonts-rpm-macros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fonts-srpm-macros | grep -v \.src | grep fonts-srpm-macros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fonts-srpm-macros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fonts-srpm-macros + CHECK_RESULT $? 0 0 "install fonts-srpm-macros failed" + SLEEP_WAIT 1 + dnf remove -y fonts-srpm-macros + CHECK_RESULT $? 0 0 "remove fonts-srpm-macros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fpaste/oe_test_fpaste_install_and_remove_fpaste-help.sh b/testcases/cli-test/fpaste/oe_test_fpaste_install_and_remove_fpaste-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b281c1c5b1b7f6d320cb892fd2105e093c258c8a --- /dev/null +++ b/testcases/cli-test/fpaste/oe_test_fpaste_install_and_remove_fpaste-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fpaste +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fpaste-help | grep -v \.src | grep fpaste-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fpaste-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fpaste-help + CHECK_RESULT $? 0 0 "install fpaste-help failed" + SLEEP_WAIT 1 + dnf remove -y fpaste-help + CHECK_RESULT $? 0 0 "remove fpaste-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fpaste/oe_test_fpaste_install_and_remove_fpaste.sh b/testcases/cli-test/fpaste/oe_test_fpaste_install_and_remove_fpaste.sh new file mode 100644 index 0000000000000000000000000000000000000000..62e7466ec66fe84bf86867885e3f2aabb92c8e83 --- /dev/null +++ b/testcases/cli-test/fpaste/oe_test_fpaste_install_and_remove_fpaste.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fpaste +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fpaste | grep -v \.src | grep fpaste + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fpaste" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fpaste + CHECK_RESULT $? 0 0 "install fpaste failed" + SLEEP_WAIT 1 + dnf remove -y fpaste + CHECK_RESULT $? 0 0 "remove fpaste failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-debuginfo.sh b/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5fd8ea1e01e87386691925d2c6e8e4b1db9e7a6 --- /dev/null +++ b/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freeglut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freeglut-debuginfo | grep -v \.src | grep freeglut-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freeglut-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freeglut-debuginfo + CHECK_RESULT $? 0 0 "install freeglut-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y freeglut-debuginfo + CHECK_RESULT $? 0 0 "remove freeglut-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-debugsource.sh b/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..904b323e0f1f6dd58037929281306012f8afb02d --- /dev/null +++ b/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freeglut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freeglut-debugsource | grep -v \.src | grep freeglut-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freeglut-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freeglut-debugsource + CHECK_RESULT $? 0 0 "install freeglut-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y freeglut-debugsource + CHECK_RESULT $? 0 0 "remove freeglut-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-devel.sh b/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..47a14159ae91aebe7d94cfcb29b3501bac90f298 --- /dev/null +++ b/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freeglut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freeglut-devel | grep -v \.src | grep freeglut-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freeglut-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freeglut-devel + CHECK_RESULT $? 0 0 "install freeglut-devel failed" + SLEEP_WAIT 1 + dnf remove -y freeglut-devel + CHECK_RESULT $? 0 0 "remove freeglut-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-help.sh b/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a68f0b8d8b60e3d8dfdec018bb6c0515fe964cd0 --- /dev/null +++ b/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freeglut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freeglut-help | grep -v \.src | grep freeglut-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freeglut-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freeglut-help + CHECK_RESULT $? 0 0 "install freeglut-help failed" + SLEEP_WAIT 1 + dnf remove -y freeglut-help + CHECK_RESULT $? 0 0 "remove freeglut-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut.sh b/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbd0b157af16efadef4259ad8cd2a0e7d7f339fa --- /dev/null +++ b/testcases/cli-test/freeglut/oe_test_freeglut_install_and_remove_freeglut.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freeglut +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freeglut | grep -v \.src | grep freeglut + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freeglut" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freeglut + CHECK_RESULT $? 0 0 "install freeglut failed" + SLEEP_WAIT 1 + dnf remove -y freeglut + CHECK_RESULT $? 0 0 "remove freeglut failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-debuginfo.sh b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..80b65280675124111b7dd5008796b0270b6f7dad --- /dev/null +++ b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freetype +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freetype-debuginfo | grep -v \.src | grep freetype-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freetype-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freetype-debuginfo + CHECK_RESULT $? 0 0 "install freetype-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y freetype-debuginfo + CHECK_RESULT $? 0 0 "remove freetype-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-debugsource.sh b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..035911d51e7526a0090d5ccf792aa0666c257ec6 --- /dev/null +++ b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freetype +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freetype-debugsource | grep -v \.src | grep freetype-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freetype-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freetype-debugsource + CHECK_RESULT $? 0 0 "install freetype-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y freetype-debugsource + CHECK_RESULT $? 0 0 "remove freetype-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-demos.sh b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-demos.sh new file mode 100644 index 0000000000000000000000000000000000000000..57bbe78ac9952b05b7e21958aa67c49376c40e87 --- /dev/null +++ b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-demos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freetype +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freetype-demos | grep -v \.src | grep freetype-demos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freetype-demos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freetype-demos + CHECK_RESULT $? 0 0 "install freetype-demos failed" + SLEEP_WAIT 1 + dnf remove -y freetype-demos + CHECK_RESULT $? 0 0 "remove freetype-demos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-devel.sh b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..df0578cb2c5de070fda033a789477dc82dadd92b --- /dev/null +++ b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freetype +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freetype-devel | grep -v \.src | grep freetype-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freetype-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freetype-devel + CHECK_RESULT $? 0 0 "install freetype-devel failed" + SLEEP_WAIT 1 + dnf remove -y freetype-devel + CHECK_RESULT $? 0 0 "remove freetype-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-help.sh b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b203ad3d2dd4f29b2494a5d06d87c94e5395cc7b --- /dev/null +++ b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freetype +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freetype-help | grep -v \.src | grep freetype-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freetype-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freetype-help + CHECK_RESULT $? 0 0 "install freetype-help failed" + SLEEP_WAIT 1 + dnf remove -y freetype-help + CHECK_RESULT $? 0 0 "remove freetype-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype.sh b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype.sh new file mode 100644 index 0000000000000000000000000000000000000000..22a9ccaf2b36f719d3a1db03963e765aacead310 --- /dev/null +++ b/testcases/cli-test/freetype/oe_test_freetype_install_and_remove_freetype.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src freetype +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available freetype | grep -v \.src | grep freetype + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm freetype" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y freetype + CHECK_RESULT $? 0 0 "install freetype failed" + SLEEP_WAIT 1 + dnf remove -y freetype + CHECK_RESULT $? 0 0 "remove freetype failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi-debuginfo.sh b/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..940ed6b8b55a3fd677b936df5a471af5414b8999 --- /dev/null +++ b/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fribidi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fribidi-debuginfo | grep -v \.src | grep fribidi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fribidi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fribidi-debuginfo + CHECK_RESULT $? 0 0 "install fribidi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fribidi-debuginfo + CHECK_RESULT $? 0 0 "remove fribidi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi-debugsource.sh b/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..51d626c3f13c6ab16acc8af423f685a75699ad16 --- /dev/null +++ b/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fribidi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fribidi-debugsource | grep -v \.src | grep fribidi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fribidi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fribidi-debugsource + CHECK_RESULT $? 0 0 "install fribidi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fribidi-debugsource + CHECK_RESULT $? 0 0 "remove fribidi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi-devel.sh b/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc278e0f638d125c9ccf02896debb45fb4a40488 --- /dev/null +++ b/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fribidi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fribidi-devel | grep -v \.src | grep fribidi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fribidi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fribidi-devel + CHECK_RESULT $? 0 0 "install fribidi-devel failed" + SLEEP_WAIT 1 + dnf remove -y fribidi-devel + CHECK_RESULT $? 0 0 "remove fribidi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi.sh b/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec6cc5cfbbf2d3f00afae4a0c1daf9757bd6df39 --- /dev/null +++ b/testcases/cli-test/fribidi/oe_test_fribidi_install_and_remove_fribidi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fribidi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fribidi | grep -v \.src | grep fribidi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fribidi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fribidi + CHECK_RESULT $? 0 0 "install fribidi failed" + SLEEP_WAIT 1 + dnf remove -y fribidi + CHECK_RESULT $? 0 0 "remove fribidi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fros/oe_test_fros_install_and_remove_fros-help.sh b/testcases/cli-test/fros/oe_test_fros_install_and_remove_fros-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..58ec215ad08eac1c7ab1ae750f8773d42a93a308 --- /dev/null +++ b/testcases/cli-test/fros/oe_test_fros_install_and_remove_fros-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fros-help | grep -v \.src | grep fros-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fros-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fros-help + CHECK_RESULT $? 0 0 "install fros-help failed" + SLEEP_WAIT 1 + dnf remove -y fros-help + CHECK_RESULT $? 0 0 "remove fros-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fros/oe_test_fros_install_and_remove_fros.sh b/testcases/cli-test/fros/oe_test_fros_install_and_remove_fros.sh new file mode 100644 index 0000000000000000000000000000000000000000..c085a42baa43b2089aa0638e33b043ca4235fba9 --- /dev/null +++ b/testcases/cli-test/fros/oe_test_fros_install_and_remove_fros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fros | grep -v \.src | grep fros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fros + CHECK_RESULT $? 0 0 "install fros failed" + SLEEP_WAIT 1 + dnf remove -y fros + CHECK_RESULT $? 0 0 "remove fros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp-debuginfo.sh b/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..087e53c1b47f091eda203362f5c9444f8a75908f --- /dev/null +++ b/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ftp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ftp-debuginfo | grep -v \.src | grep ftp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ftp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ftp-debuginfo + CHECK_RESULT $? 0 0 "install ftp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ftp-debuginfo + CHECK_RESULT $? 0 0 "remove ftp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp-debugsource.sh b/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..caec5fdae9b35219735c40f77bba93e3004659c3 --- /dev/null +++ b/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ftp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ftp-debugsource | grep -v \.src | grep ftp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ftp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ftp-debugsource + CHECK_RESULT $? 0 0 "install ftp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ftp-debugsource + CHECK_RESULT $? 0 0 "remove ftp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp-help.sh b/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c88d714d9d769c8a1ba1efa521cfea8d09445f47 --- /dev/null +++ b/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ftp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ftp-help | grep -v \.src | grep ftp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ftp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ftp-help + CHECK_RESULT $? 0 0 "install ftp-help failed" + SLEEP_WAIT 1 + dnf remove -y ftp-help + CHECK_RESULT $? 0 0 "remove ftp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp.sh b/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec94f1de34b3f3403363288e734d434a6a271d74 --- /dev/null +++ b/testcases/cli-test/ftp/oe_test_ftp_install_and_remove_ftp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ftp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ftp | grep -v \.src | grep ftp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ftp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ftp + CHECK_RESULT $? 0 0 "install ftp failed" + SLEEP_WAIT 1 + dnf remove -y ftp + CHECK_RESULT $? 0 0 "remove ftp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-debuginfo.sh b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..258cc8885f62fa7d9f77d1c24125af80e1cd1711 --- /dev/null +++ b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse-debuginfo | grep -v \.src | grep fuse-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse-debuginfo + CHECK_RESULT $? 0 0 "install fuse-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fuse-debuginfo + CHECK_RESULT $? 0 0 "remove fuse-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-debugsource.sh b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e07489b7c53f2ec1febbce448d9c4499440a5dc --- /dev/null +++ b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse-debugsource | grep -v \.src | grep fuse-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse-debugsource + CHECK_RESULT $? 0 0 "install fuse-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fuse-debugsource + CHECK_RESULT $? 0 0 "remove fuse-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-devel.sh b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..392e00698477bec3f067cc9c228fe286562467b8 --- /dev/null +++ b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse-devel | grep -v \.src | grep fuse-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse-devel + CHECK_RESULT $? 0 0 "install fuse-devel failed" + SLEEP_WAIT 1 + dnf remove -y fuse-devel + CHECK_RESULT $? 0 0 "remove fuse-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-help.sh b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd4d6068c63c6ca720fac392b888bd629c1af437 --- /dev/null +++ b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse-help | grep -v \.src | grep fuse-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse-help + CHECK_RESULT $? 0 0 "install fuse-help failed" + SLEEP_WAIT 1 + dnf remove -y fuse-help + CHECK_RESULT $? 0 0 "remove fuse-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse.sh b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse.sh new file mode 100644 index 0000000000000000000000000000000000000000..5212a41beb3c63ff0451b827c8f51453b8867eb2 --- /dev/null +++ b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse | grep -v \.src | grep fuse + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse + CHECK_RESULT $? 0 0 "install fuse failed" + SLEEP_WAIT 1 + dnf remove -y fuse + CHECK_RESULT $? 0 0 "remove fuse failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse3-devel.sh b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3edc9dc3295621dfec1f1a03ff9b572961aa94d --- /dev/null +++ b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse3-devel | grep -v \.src | grep fuse3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse3-devel + CHECK_RESULT $? 0 0 "install fuse3-devel failed" + SLEEP_WAIT 1 + dnf remove -y fuse3-devel + CHECK_RESULT $? 0 0 "remove fuse3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse3.sh b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse3.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ea82ed671ef48fdf19d5e47e9f6e660d9e80c6c --- /dev/null +++ b/testcases/cli-test/fuse/oe_test_fuse_install_and_remove_fuse3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse3 | grep -v \.src | grep fuse3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse3 + CHECK_RESULT $? 0 0 "install fuse3 failed" + SLEEP_WAIT 1 + dnf remove -y fuse3 + CHECK_RESULT $? 0 0 "remove fuse3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse-common.sh b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..466174e7591719965eec8302f32b26fefec795be --- /dev/null +++ b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse-common | grep -v \.src | grep fuse-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse-common + CHECK_RESULT $? 0 0 "install fuse-common failed" + SLEEP_WAIT 1 + dnf remove -y fuse-common + CHECK_RESULT $? 0 0 "remove fuse-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-debuginfo.sh b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b13802c076050409f011c0bb4adccad6506fee0b --- /dev/null +++ b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse3-debuginfo | grep -v \.src | grep fuse3-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse3-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse3-debuginfo + CHECK_RESULT $? 0 0 "install fuse3-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fuse3-debuginfo + CHECK_RESULT $? 0 0 "remove fuse3-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-debugsource.sh b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..40007d99a1b65b1d7570b87bc87fc7969ce3d2b0 --- /dev/null +++ b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse3-debugsource | grep -v \.src | grep fuse3-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse3-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse3-debugsource + CHECK_RESULT $? 0 0 "install fuse3-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fuse3-debugsource + CHECK_RESULT $? 0 0 "remove fuse3-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-devel.sh b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9f4a1ebc1482924b49062ce6edf80063029c008 --- /dev/null +++ b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse3-devel | grep -v \.src | grep fuse3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse3-devel + CHECK_RESULT $? 0 0 "install fuse3-devel failed" + SLEEP_WAIT 1 + dnf remove -y fuse3-devel + CHECK_RESULT $? 0 0 "remove fuse3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-help.sh b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..68de2ee8e73d3d88a82745557ee83eed940b8477 --- /dev/null +++ b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse3-help | grep -v \.src | grep fuse3-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse3-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse3-help + CHECK_RESULT $? 0 0 "install fuse3-help failed" + SLEEP_WAIT 1 + dnf remove -y fuse3-help + CHECK_RESULT $? 0 0 "remove fuse3-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3.sh b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c92e61b3422e57f480ac5c7308a965afee17aa3 --- /dev/null +++ b/testcases/cli-test/fuse3/oe_test_fuse3_install_and_remove_fuse3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fuse3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fuse3 | grep -v \.src | grep fuse3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fuse3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fuse3 + CHECK_RESULT $? 0 0 "install fuse3 failed" + SLEEP_WAIT 1 + dnf remove -y fuse3 + CHECK_RESULT $? 0 0 "remove fuse3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-debuginfo.sh b/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b35d3e8a52188af24ad3fc173c51cecce4d48e6 --- /dev/null +++ b/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fwupd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fwupd-debuginfo | grep -v \.src | grep fwupd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fwupd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fwupd-debuginfo + CHECK_RESULT $? 0 0 "install fwupd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y fwupd-debuginfo + CHECK_RESULT $? 0 0 "remove fwupd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-debugsource.sh b/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..017f870275b1e66ecda650dfb39b4e2d259be03e --- /dev/null +++ b/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fwupd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fwupd-debugsource | grep -v \.src | grep fwupd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fwupd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fwupd-debugsource + CHECK_RESULT $? 0 0 "install fwupd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y fwupd-debugsource + CHECK_RESULT $? 0 0 "remove fwupd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-devel.sh b/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e78dc80575f5352b960b97a0402ace025bc04f33 --- /dev/null +++ b/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fwupd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fwupd-devel | grep -v \.src | grep fwupd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fwupd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fwupd-devel + CHECK_RESULT $? 0 0 "install fwupd-devel failed" + SLEEP_WAIT 1 + dnf remove -y fwupd-devel + CHECK_RESULT $? 0 0 "remove fwupd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-help.sh b/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..427959b2c35ddbcf3005d0d4f34b5ac6b268e56d --- /dev/null +++ b/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fwupd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fwupd-help | grep -v \.src | grep fwupd-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fwupd-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fwupd-help + CHECK_RESULT $? 0 0 "install fwupd-help failed" + SLEEP_WAIT 1 + dnf remove -y fwupd-help + CHECK_RESULT $? 0 0 "remove fwupd-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd.sh b/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd.sh new file mode 100644 index 0000000000000000000000000000000000000000..961c97679c9e2b1c2016d064db17a9e7a86ae219 --- /dev/null +++ b/testcases/cli-test/fwupd/oe_test_fwupd_install_and_remove_fwupd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src fwupd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available fwupd | grep -v \.src | grep fwupd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm fwupd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y fwupd + CHECK_RESULT $? 0 0 "install fwupd failed" + SLEEP_WAIT 1 + dnf remove -y fwupd + CHECK_RESULT $? 0 0 "remove fwupd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-all-langpacks.sh b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-all-langpacks.sh new file mode 100644 index 0000000000000000000000000000000000000000..a03d90162fc3667b465a41143bb3fda55f767258 --- /dev/null +++ b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-all-langpacks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gawk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gawk-all-langpacks | grep -v \.src | grep gawk-all-langpacks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gawk-all-langpacks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gawk-all-langpacks + CHECK_RESULT $? 0 0 "install gawk-all-langpacks failed" + SLEEP_WAIT 1 + dnf remove -y gawk-all-langpacks + CHECK_RESULT $? 0 0 "remove gawk-all-langpacks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-debuginfo.sh b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4ffd6c2d849cda13e21fb6e9787fd86b1668371 --- /dev/null +++ b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gawk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gawk-debuginfo | grep -v \.src | grep gawk-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gawk-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gawk-debuginfo + CHECK_RESULT $? 0 0 "install gawk-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gawk-debuginfo + CHECK_RESULT $? 0 0 "remove gawk-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-debugsource.sh b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b41a7f3ccf77764e54c2e152ef743ae2aa2a415d --- /dev/null +++ b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gawk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gawk-debugsource | grep -v \.src | grep gawk-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gawk-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gawk-debugsource + CHECK_RESULT $? 0 0 "install gawk-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gawk-debugsource + CHECK_RESULT $? 0 0 "remove gawk-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-devel.sh b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..350bce1f87d13e878c09d9739dd0ae23824d1bb1 --- /dev/null +++ b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gawk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gawk-devel | grep -v \.src | grep gawk-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gawk-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gawk-devel + CHECK_RESULT $? 0 0 "install gawk-devel failed" + SLEEP_WAIT 1 + dnf remove -y gawk-devel + CHECK_RESULT $? 0 0 "remove gawk-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-doc.sh b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..df0fc27585738b41995eec6de35cdf217e45e5cf --- /dev/null +++ b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gawk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gawk-doc | grep -v \.src | grep gawk-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gawk-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gawk-doc + CHECK_RESULT $? 0 0 "install gawk-doc failed" + SLEEP_WAIT 1 + dnf remove -y gawk-doc + CHECK_RESULT $? 0 0 "remove gawk-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-help.sh b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..053879e6aace34eed8d1c2411f4e001c07fe2e9d --- /dev/null +++ b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gawk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gawk-help | grep -v \.src | grep gawk-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gawk-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gawk-help + CHECK_RESULT $? 0 0 "install gawk-help failed" + SLEEP_WAIT 1 + dnf remove -y gawk-help + CHECK_RESULT $? 0 0 "remove gawk-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-lang.sh b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-lang.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e3194aea9a7b32dea85b109023528f486c7463a --- /dev/null +++ b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk-lang.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gawk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gawk-lang | grep -v \.src | grep gawk-lang + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gawk-lang" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gawk-lang + CHECK_RESULT $? 0 0 "install gawk-lang failed" + SLEEP_WAIT 1 + dnf remove -y gawk-lang + CHECK_RESULT $? 0 0 "remove gawk-lang failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk.sh b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk.sh new file mode 100644 index 0000000000000000000000000000000000000000..a60d2c635b2562d44f02ec986eb72d2377aba070 --- /dev/null +++ b/testcases/cli-test/gawk/oe_test_gawk_install_and_remove_gawk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gawk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gawk | grep -v \.src | grep gawk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gawk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gawk + CHECK_RESULT $? 0 0 "install gawk failed" + SLEEP_WAIT 1 + dnf remove -y gawk + CHECK_RESULT $? 0 0 "remove gawk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc-debuginfo.sh b/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5249a4887263199aefb3e1a3bd798456fc9af78 --- /dev/null +++ b/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gc-debuginfo | grep -v \.src | grep gc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gc-debuginfo + CHECK_RESULT $? 0 0 "install gc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gc-debuginfo + CHECK_RESULT $? 0 0 "remove gc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc-debugsource.sh b/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1681a6ef894ed0b368e2fdde9761b2abb2caf88d --- /dev/null +++ b/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gc-debugsource | grep -v \.src | grep gc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gc-debugsource + CHECK_RESULT $? 0 0 "install gc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gc-debugsource + CHECK_RESULT $? 0 0 "remove gc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc-devel.sh b/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..432740e68982d84f3a11107cbd101d62e921912e --- /dev/null +++ b/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gc-devel | grep -v \.src | grep gc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gc-devel + CHECK_RESULT $? 0 0 "install gc-devel failed" + SLEEP_WAIT 1 + dnf remove -y gc-devel + CHECK_RESULT $? 0 0 "remove gc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc.sh b/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc.sh new file mode 100644 index 0000000000000000000000000000000000000000..54040cd262fa8a9863f9b911d71f99cbf64f2b6e --- /dev/null +++ b/testcases/cli-test/gc/oe_test_gc_install_and_remove_gc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gc | grep -v \.src | grep gc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gc + CHECK_RESULT $? 0 0 "install gc failed" + SLEEP_WAIT 1 + dnf remove -y gc + CHECK_RESULT $? 0 0 "remove gc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-debuginfo.sh b/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..cde45eb4ba2b4e051121fcec5655b5be697643e6 --- /dev/null +++ b/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcab +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcab-debuginfo | grep -v \.src | grep gcab-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcab-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcab-debuginfo + CHECK_RESULT $? 0 0 "install gcab-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gcab-debuginfo + CHECK_RESULT $? 0 0 "remove gcab-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-debugsource.sh b/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..343f02e1e7ffa5229d0abcdedb47d3fdd7be3702 --- /dev/null +++ b/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcab +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcab-debugsource | grep -v \.src | grep gcab-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcab-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcab-debugsource + CHECK_RESULT $? 0 0 "install gcab-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gcab-debugsource + CHECK_RESULT $? 0 0 "remove gcab-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-devel.sh b/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..937f04e617295ec2b859ebf4dace26d2d9787db3 --- /dev/null +++ b/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcab +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcab-devel | grep -v \.src | grep gcab-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcab-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcab-devel + CHECK_RESULT $? 0 0 "install gcab-devel failed" + SLEEP_WAIT 1 + dnf remove -y gcab-devel + CHECK_RESULT $? 0 0 "remove gcab-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-help.sh b/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4462dc01c5a12c3d5fb8c9747e9e2b291b6b06d1 --- /dev/null +++ b/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcab +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcab-help | grep -v \.src | grep gcab-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcab-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcab-help + CHECK_RESULT $? 0 0 "install gcab-help failed" + SLEEP_WAIT 1 + dnf remove -y gcab-help + CHECK_RESULT $? 0 0 "remove gcab-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab.sh b/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab.sh new file mode 100644 index 0000000000000000000000000000000000000000..e86b951ffe059e17afa83157cbd00424209c0270 --- /dev/null +++ b/testcases/cli-test/gcab/oe_test_gcab_install_and_remove_gcab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcab +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcab | grep -v \.src | grep gcab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcab + CHECK_RESULT $? 0 0 "install gcab failed" + SLEEP_WAIT 1 + dnf remove -y gcab + CHECK_RESULT $? 0 0 "remove gcab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_accelerate-libs.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_accelerate-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..32e2bd35a4d200ed1f5b3d1a43305ce69ac25f1c --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_accelerate-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available accelerate-libs | grep -v \.src | grep accelerate-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm accelerate-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y accelerate-libs + CHECK_RESULT $? 0 0 "install accelerate-libs failed" + SLEEP_WAIT 1 + dnf remove -y accelerate-libs + CHECK_RESULT $? 0 0 "remove accelerate-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_cpp.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_cpp.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2972bd80e18b4570cc022f0764ad97132d45a37 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_cpp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cpp | grep -v \.src | grep cpp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cpp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cpp + CHECK_RESULT $? 0 0 "install cpp failed" + SLEEP_WAIT 1 + dnf remove -y cpp + CHECK_RESULT $? 0 0 "remove cpp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-c++.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-c++.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb75677685a996894e59fc20e5f8ff3b7af061ec --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-c++.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-c++ | grep -v \.src | grep gcc-c++ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-c++" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-c++ + CHECK_RESULT $? 0 0 "install gcc-c++ failed" + SLEEP_WAIT 1 + dnf remove -y gcc-c++ + CHECK_RESULT $? 0 0 "remove gcc-c++ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-debuginfo.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a30f69fc98d9b08eec0195fc19c0514fdc8aa5a0 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-debuginfo | grep -v \.src | grep gcc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-debuginfo + CHECK_RESULT $? 0 0 "install gcc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gcc-debuginfo + CHECK_RESULT $? 0 0 "remove gcc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-debugsource.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd3c1d56bc326a8cffc982227d1a6648fb06f4f7 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-debugsource | grep -v \.src | grep gcc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-debugsource + CHECK_RESULT $? 0 0 "install gcc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gcc-debugsource + CHECK_RESULT $? 0 0 "remove gcc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gdb-plugin.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gdb-plugin.sh new file mode 100644 index 0000000000000000000000000000000000000000..b708a882749a53e5013a8110c9c77530f29542f3 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gdb-plugin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-gdb-plugin | grep -v \.src | grep gcc-gdb-plugin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-gdb-plugin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-gdb-plugin + CHECK_RESULT $? 0 0 "install gcc-gdb-plugin failed" + SLEEP_WAIT 1 + dnf remove -y gcc-gdb-plugin + CHECK_RESULT $? 0 0 "remove gcc-gdb-plugin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gdc.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gdc.sh new file mode 100644 index 0000000000000000000000000000000000000000..31157439725e66478cf7ceb337f70d278aef3449 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gdc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-gdc | grep -v \.src | grep gcc-gdc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-gdc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-gdc + CHECK_RESULT $? 0 0 "install gcc-gdc failed" + SLEEP_WAIT 1 + dnf remove -y gcc-gdc + CHECK_RESULT $? 0 0 "remove gcc-gdc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gfortran.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb5be8895490b30961b89c4734b57a2139b1a9c8 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gfortran.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-gfortran | grep -v \.src | grep gcc-gfortran + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-gfortran" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-gfortran + CHECK_RESULT $? 0 0 "install gcc-gfortran failed" + SLEEP_WAIT 1 + dnf remove -y gcc-gfortran + CHECK_RESULT $? 0 0 "remove gcc-gfortran failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gnat.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gnat.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cb32762f715c2350659cce93b151228c95732f3 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-gnat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-gnat | grep -v \.src | grep gcc-gnat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-gnat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-gnat + CHECK_RESULT $? 0 0 "install gcc-gnat failed" + SLEEP_WAIT 1 + dnf remove -y gcc-gnat + CHECK_RESULT $? 0 0 "remove gcc-gnat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-go.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-go.sh new file mode 100644 index 0000000000000000000000000000000000000000..e74051e442b306c1357ed03c5abcc44a5469c230 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-go.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-go | grep -v \.src | grep gcc-go + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-go" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-go + CHECK_RESULT $? 0 0 "install gcc-go failed" + SLEEP_WAIT 1 + dnf remove -y gcc-go + CHECK_RESULT $? 0 0 "remove gcc-go failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-objc++.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-objc++.sh new file mode 100644 index 0000000000000000000000000000000000000000..e69894499b1a52278c72576cef786ccc96df1e6a --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-objc++.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-objc++ | grep -v \.src | grep gcc-objc++ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-objc++" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-objc++ + CHECK_RESULT $? 0 0 "install gcc-objc++ failed" + SLEEP_WAIT 1 + dnf remove -y gcc-objc++ + CHECK_RESULT $? 0 0 "remove gcc-objc++ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-objc.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-objc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3a217b8fe1b75bd61ceff67b39d3b9031a8ff87 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-objc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-objc | grep -v \.src | grep gcc-objc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-objc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-objc + CHECK_RESULT $? 0 0 "install gcc-objc failed" + SLEEP_WAIT 1 + dnf remove -y gcc-objc + CHECK_RESULT $? 0 0 "remove gcc-objc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-plugin-devel.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-plugin-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fe5d167fd3f11da5924fa56c0d7df471358285f --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc-plugin-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc-plugin-devel | grep -v \.src | grep gcc-plugin-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc-plugin-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc-plugin-devel + CHECK_RESULT $? 0 0 "install gcc-plugin-devel failed" + SLEEP_WAIT 1 + dnf remove -y gcc-plugin-devel + CHECK_RESULT $? 0 0 "remove gcc-plugin-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb89a79e17983fdc47a3f0d12c60c9cd93b06350 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_gcc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc | grep -v \.src | grep gcc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc + CHECK_RESULT $? 0 0 "install gcc failed" + SLEEP_WAIT 1 + dnf remove -y gcc + CHECK_RESULT $? 0 0 "remove gcc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libasan-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libasan-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f8ee79d74778ddf485649f669a3b30613151fbd --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libasan-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libasan-static | grep -v \.src | grep libasan-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libasan-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libasan-static + CHECK_RESULT $? 0 0 "install libasan-static failed" + SLEEP_WAIT 1 + dnf remove -y libasan-static + CHECK_RESULT $? 0 0 "remove libasan-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libasan.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libasan.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb35ec5fbd21bf40a4a6eef421ad668ca4ee9672 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libasan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libasan | grep -v \.src | grep libasan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libasan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libasan + CHECK_RESULT $? 0 0 "install libasan failed" + SLEEP_WAIT 1 + dnf remove -y libasan + CHECK_RESULT $? 0 0 "remove libasan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libatomic-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libatomic-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..9464047b806086bc15005644f44eb28eb7eac0b9 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libatomic-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatomic-static | grep -v \.src | grep libatomic-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatomic-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatomic-static + CHECK_RESULT $? 0 0 "install libatomic-static failed" + SLEEP_WAIT 1 + dnf remove -y libatomic-static + CHECK_RESULT $? 0 0 "remove libatomic-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libatomic.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libatomic.sh new file mode 100644 index 0000000000000000000000000000000000000000..c669991927a89c4cf9231c637d212a47242c84b5 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libatomic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatomic | grep -v \.src | grep libatomic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatomic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatomic + CHECK_RESULT $? 0 0 "install libatomic failed" + SLEEP_WAIT 1 + dnf remove -y libatomic + CHECK_RESULT $? 0 0 "remove libatomic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgcc.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..41f5fcd927fd39dd56c0da2a23fa35b19408b178 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgcc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgcc | grep -v \.src | grep libgcc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgcc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgcc + CHECK_RESULT $? 0 0 "install libgcc failed" + SLEEP_WAIT 1 + dnf remove -y libgcc + CHECK_RESULT $? 0 0 "remove libgcc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgccjit-devel.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgccjit-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b433ad0da85d874f79adb276ba665c82f8938578 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgccjit-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgccjit-devel | grep -v \.src | grep libgccjit-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgccjit-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgccjit-devel + CHECK_RESULT $? 0 0 "install libgccjit-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgccjit-devel + CHECK_RESULT $? 0 0 "remove libgccjit-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgccjit.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgccjit.sh new file mode 100644 index 0000000000000000000000000000000000000000..32c7e3cbf3a6543c2d52c1120e53dc9b53b1e5b9 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgccjit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgccjit | grep -v \.src | grep libgccjit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgccjit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgccjit + CHECK_RESULT $? 0 0 "install libgccjit failed" + SLEEP_WAIT 1 + dnf remove -y libgccjit + CHECK_RESULT $? 0 0 "remove libgccjit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgfortran-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgfortran-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..12160c7f7c2d408f6d4fb2f25a791fe6971917ec --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgfortran-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgfortran-static | grep -v \.src | grep libgfortran-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgfortran-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgfortran-static + CHECK_RESULT $? 0 0 "install libgfortran-static failed" + SLEEP_WAIT 1 + dnf remove -y libgfortran-static + CHECK_RESULT $? 0 0 "remove libgfortran-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgfortran.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgfortran.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbbf587212986b03d1151bc2e3621e749be79c3d --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgfortran.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgfortran | grep -v \.src | grep libgfortran + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgfortran" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgfortran + CHECK_RESULT $? 0 0 "install libgfortran failed" + SLEEP_WAIT 1 + dnf remove -y libgfortran + CHECK_RESULT $? 0 0 "remove libgfortran failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgnat-devel.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgnat-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8de7da0ca157ae9c9b9360e78033b8689c74ab3 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgnat-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgnat-devel | grep -v \.src | grep libgnat-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgnat-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgnat-devel + CHECK_RESULT $? 0 0 "install libgnat-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgnat-devel + CHECK_RESULT $? 0 0 "remove libgnat-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgnat-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgnat-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..68d4e5907bd2723116f488a6da747ce999e602e7 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgnat-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgnat-static | grep -v \.src | grep libgnat-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgnat-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgnat-static + CHECK_RESULT $? 0 0 "install libgnat-static failed" + SLEEP_WAIT 1 + dnf remove -y libgnat-static + CHECK_RESULT $? 0 0 "remove libgnat-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgnat.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgnat.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f0d58e8b517c8291a827a6ee2ac60e3a903f41d --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgnat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgnat | grep -v \.src | grep libgnat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgnat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgnat + CHECK_RESULT $? 0 0 "install libgnat failed" + SLEEP_WAIT 1 + dnf remove -y libgnat + CHECK_RESULT $? 0 0 "remove libgnat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgo-devel.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgo-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7df4f5563945c0b89397b4c21b2b2580f9b64f5f --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgo-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgo-devel | grep -v \.src | grep libgo-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgo-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgo-devel + CHECK_RESULT $? 0 0 "install libgo-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgo-devel + CHECK_RESULT $? 0 0 "remove libgo-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgo-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgo-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6f33f04a039a36b03b681a25b34409f16c2e24e --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgo-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgo-static | grep -v \.src | grep libgo-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgo-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgo-static + CHECK_RESULT $? 0 0 "install libgo-static failed" + SLEEP_WAIT 1 + dnf remove -y libgo-static + CHECK_RESULT $? 0 0 "remove libgo-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgo.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgo.sh new file mode 100644 index 0000000000000000000000000000000000000000..10052a15deb3db050675687cdd5baa9b5eab86d2 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgo | grep -v \.src | grep libgo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgo + CHECK_RESULT $? 0 0 "install libgo failed" + SLEEP_WAIT 1 + dnf remove -y libgo + CHECK_RESULT $? 0 0 "remove libgo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgomp.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgomp.sh new file mode 100644 index 0000000000000000000000000000000000000000..95091a641fce4341c601b8b0d97a282026f1b933 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgomp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgomp | grep -v \.src | grep libgomp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgomp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgomp + CHECK_RESULT $? 0 0 "install libgomp failed" + SLEEP_WAIT 1 + dnf remove -y libgomp + CHECK_RESULT $? 0 0 "remove libgomp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgphobos-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgphobos-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..1521c7688374d95c4cb54f37c7b0c48826609cc5 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgphobos-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgphobos-static | grep -v \.src | grep libgphobos-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgphobos-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgphobos-static + CHECK_RESULT $? 0 0 "install libgphobos-static failed" + SLEEP_WAIT 1 + dnf remove -y libgphobos-static + CHECK_RESULT $? 0 0 "remove libgphobos-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgphobos.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgphobos.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f7376b2b297599111d9834597dcbb6ca381d330 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libgphobos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgphobos | grep -v \.src | grep libgphobos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgphobos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgphobos + CHECK_RESULT $? 0 0 "install libgphobos failed" + SLEEP_WAIT 1 + dnf remove -y libgphobos + CHECK_RESULT $? 0 0 "remove libgphobos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libitm-devel.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libitm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5dc0333b4cc03482ba4019d000815017779539e --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libitm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libitm-devel | grep -v \.src | grep libitm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libitm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libitm-devel + CHECK_RESULT $? 0 0 "install libitm-devel failed" + SLEEP_WAIT 1 + dnf remove -y libitm-devel + CHECK_RESULT $? 0 0 "remove libitm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libitm-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libitm-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..3134a5b9f65a5d24ae8f21c2a639440a3cfc2fd8 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libitm-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libitm-static | grep -v \.src | grep libitm-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libitm-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libitm-static + CHECK_RESULT $? 0 0 "install libitm-static failed" + SLEEP_WAIT 1 + dnf remove -y libitm-static + CHECK_RESULT $? 0 0 "remove libitm-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libitm.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libitm.sh new file mode 100644 index 0000000000000000000000000000000000000000..f82ee18514a9cf6ab5767c38230398d55361b204 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libitm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libitm | grep -v \.src | grep libitm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libitm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libitm + CHECK_RESULT $? 0 0 "install libitm failed" + SLEEP_WAIT 1 + dnf remove -y libitm + CHECK_RESULT $? 0 0 "remove libitm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_liblsan-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_liblsan-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..75adcf4e77e57c8a4b98d064af6d6a3f00f4c8fa --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_liblsan-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblsan-static | grep -v \.src | grep liblsan-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblsan-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblsan-static + CHECK_RESULT $? 0 0 "install liblsan-static failed" + SLEEP_WAIT 1 + dnf remove -y liblsan-static + CHECK_RESULT $? 0 0 "remove liblsan-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_liblsan.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_liblsan.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff766c1464f4da05aabd8d3b50f2cfbebbeb1ad7 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_liblsan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblsan | grep -v \.src | grep liblsan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblsan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblsan + CHECK_RESULT $? 0 0 "install liblsan failed" + SLEEP_WAIT 1 + dnf remove -y liblsan + CHECK_RESULT $? 0 0 "remove liblsan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libobjc.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libobjc.sh new file mode 100644 index 0000000000000000000000000000000000000000..65fe14513812e2e33c91594a2b9a3e9c229aaf71 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libobjc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libobjc | grep -v \.src | grep libobjc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libobjc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libobjc + CHECK_RESULT $? 0 0 "install libobjc failed" + SLEEP_WAIT 1 + dnf remove -y libobjc + CHECK_RESULT $? 0 0 "remove libobjc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libquadmath-devel.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libquadmath-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6aa43f42dc2ceb3f546cab0bb3c3b4812fd6503 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libquadmath-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libquadmath-devel | grep -v \.src | grep libquadmath-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libquadmath-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libquadmath-devel + CHECK_RESULT $? 0 0 "install libquadmath-devel failed" + SLEEP_WAIT 1 + dnf remove -y libquadmath-devel + CHECK_RESULT $? 0 0 "remove libquadmath-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libquadmath-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libquadmath-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..61ddb09c74b81fb8bad8bd2ae4b6e87b89291fd4 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libquadmath-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libquadmath-static | grep -v \.src | grep libquadmath-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libquadmath-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libquadmath-static + CHECK_RESULT $? 0 0 "install libquadmath-static failed" + SLEEP_WAIT 1 + dnf remove -y libquadmath-static + CHECK_RESULT $? 0 0 "remove libquadmath-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libquadmath.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libquadmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..27ea2c07f6de36ce2bdb0f84fda18533b9ddcd59 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libquadmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libquadmath | grep -v \.src | grep libquadmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libquadmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libquadmath + CHECK_RESULT $? 0 0 "install libquadmath failed" + SLEEP_WAIT 1 + dnf remove -y libquadmath + CHECK_RESULT $? 0 0 "remove libquadmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++-devel.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4604830b2c3e08e19231e4a46e1d8f6a320fd9aa --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstdc++-devel | grep -v \.src | grep libstdc++-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstdc++-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstdc++-devel + CHECK_RESULT $? 0 0 "install libstdc++-devel failed" + SLEEP_WAIT 1 + dnf remove -y libstdc++-devel + CHECK_RESULT $? 0 0 "remove libstdc++-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++-docs.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++-docs.sh new file mode 100644 index 0000000000000000000000000000000000000000..10edd84315dfcd7267ad97eec02440a26f0b773f --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++-docs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstdc++-docs | grep -v \.src | grep libstdc++-docs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstdc++-docs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstdc++-docs + CHECK_RESULT $? 0 0 "install libstdc++-docs failed" + SLEEP_WAIT 1 + dnf remove -y libstdc++-docs + CHECK_RESULT $? 0 0 "remove libstdc++-docs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..cec4ef19f7ddc00e160ba7ba274c02fdc2da115e --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstdc++-static | grep -v \.src | grep libstdc++-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstdc++-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstdc++-static + CHECK_RESULT $? 0 0 "install libstdc++-static failed" + SLEEP_WAIT 1 + dnf remove -y libstdc++-static + CHECK_RESULT $? 0 0 "remove libstdc++-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++.sh new file mode 100644 index 0000000000000000000000000000000000000000..24b9655d4c92c2e7755e9161ea1831a5cccaf31d --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libstdc++.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstdc++ | grep -v \.src | grep libstdc++ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstdc++" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstdc++ + CHECK_RESULT $? 0 0 "install libstdc++ failed" + SLEEP_WAIT 1 + dnf remove -y libstdc++ + CHECK_RESULT $? 0 0 "remove libstdc++ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libtsan-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libtsan-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..115d949dba8181d3cd1026e16081fe4108aa5393 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libtsan-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtsan-static | grep -v \.src | grep libtsan-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtsan-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtsan-static + CHECK_RESULT $? 0 0 "install libtsan-static failed" + SLEEP_WAIT 1 + dnf remove -y libtsan-static + CHECK_RESULT $? 0 0 "remove libtsan-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libtsan.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libtsan.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcd6031e22871b970560ae6412899f254a174bdd --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libtsan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtsan | grep -v \.src | grep libtsan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtsan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtsan + CHECK_RESULT $? 0 0 "install libtsan failed" + SLEEP_WAIT 1 + dnf remove -y libtsan + CHECK_RESULT $? 0 0 "remove libtsan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libubsan-static.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libubsan-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..091a6ee450955dbda365eb0d7e85921017431952 --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libubsan-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libubsan-static | grep -v \.src | grep libubsan-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libubsan-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libubsan-static + CHECK_RESULT $? 0 0 "install libubsan-static failed" + SLEEP_WAIT 1 + dnf remove -y libubsan-static + CHECK_RESULT $? 0 0 "remove libubsan-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libubsan.sh b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libubsan.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c1e55ca9698fd47316abfc297117c0b2fd5e46f --- /dev/null +++ b/testcases/cli-test/gcc/oe_test_gcc_install_and_remove_libubsan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libubsan | grep -v \.src | grep libubsan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libubsan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libubsan + CHECK_RESULT $? 0 0 "install libubsan failed" + SLEEP_WAIT 1 + dnf remove -y libubsan + CHECK_RESULT $? 0 0 "remove libubsan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcc_secure/oe_test_gcc_secure_install_and_remove_gcc_secure.sh b/testcases/cli-test/gcc_secure/oe_test_gcc_secure_install_and_remove_gcc_secure.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff2e7db358a0ded644d9717d31343a9cede093e8 --- /dev/null +++ b/testcases/cli-test/gcc_secure/oe_test_gcc_secure_install_and_remove_gcc_secure.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcc_secure +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcc_secure | grep -v \.src | grep gcc_secure + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcc_secure" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcc_secure + CHECK_RESULT $? 0 0 "install gcc_secure failed" + SLEEP_WAIT 1 + dnf remove -y gcc_secure + CHECK_RESULT $? 0 0 "remove gcc_secure failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-base.sh b/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..34c083ddafe713bb66ecc424a465fc153752aa67 --- /dev/null +++ b/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcr-base | grep -v \.src | grep gcr-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcr-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcr-base + CHECK_RESULT $? 0 0 "install gcr-base failed" + SLEEP_WAIT 1 + dnf remove -y gcr-base + CHECK_RESULT $? 0 0 "remove gcr-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-debuginfo.sh b/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1128ec2d544f47b85f50e953252a84a6029599a5 --- /dev/null +++ b/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcr-debuginfo | grep -v \.src | grep gcr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcr-debuginfo + CHECK_RESULT $? 0 0 "install gcr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gcr-debuginfo + CHECK_RESULT $? 0 0 "remove gcr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-debugsource.sh b/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7a3e3960e6af8eca36c2405776d626db0243909 --- /dev/null +++ b/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcr-debugsource | grep -v \.src | grep gcr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcr-debugsource + CHECK_RESULT $? 0 0 "install gcr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gcr-debugsource + CHECK_RESULT $? 0 0 "remove gcr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-devel.sh b/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b788f8c2c7cdf4defd779cce2c9a35078cdbf293 --- /dev/null +++ b/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcr-devel | grep -v \.src | grep gcr-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcr-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcr-devel + CHECK_RESULT $? 0 0 "install gcr-devel failed" + SLEEP_WAIT 1 + dnf remove -y gcr-devel + CHECK_RESULT $? 0 0 "remove gcr-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr.sh b/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f26c165c59548b584f5f8dbe8904d766e0bcc93 --- /dev/null +++ b/testcases/cli-test/gcr/oe_test_gcr_install_and_remove_gcr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gcr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gcr | grep -v \.src | grep gcr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gcr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gcr + CHECK_RESULT $? 0 0 "install gcr failed" + SLEEP_WAIT 1 + dnf remove -y gcr + CHECK_RESULT $? 0 0 "remove gcr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-debuginfo.sh b/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..86dd4c4c6c6b385c78f0b155934d5747c8b4c906 --- /dev/null +++ b/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gd-debuginfo | grep -v \.src | grep gd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gd-debuginfo + CHECK_RESULT $? 0 0 "install gd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gd-debuginfo + CHECK_RESULT $? 0 0 "remove gd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-debugsource.sh b/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4846245e424f04475328010d2468a1bed314b97a --- /dev/null +++ b/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gd-debugsource | grep -v \.src | grep gd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gd-debugsource + CHECK_RESULT $? 0 0 "install gd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gd-debugsource + CHECK_RESULT $? 0 0 "remove gd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-devel.sh b/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b8d0f9bd48060dfdc00c25bb5b12da4cfbd5bdc --- /dev/null +++ b/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gd-devel | grep -v \.src | grep gd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gd-devel + CHECK_RESULT $? 0 0 "install gd-devel failed" + SLEEP_WAIT 1 + dnf remove -y gd-devel + CHECK_RESULT $? 0 0 "remove gd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-progs.sh b/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-progs.sh new file mode 100644 index 0000000000000000000000000000000000000000..0363b2ee32ddc17b210ebc61e25a31038479f59b --- /dev/null +++ b/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd-progs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gd-progs | grep -v \.src | grep gd-progs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gd-progs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gd-progs + CHECK_RESULT $? 0 0 "install gd-progs failed" + SLEEP_WAIT 1 + dnf remove -y gd-progs + CHECK_RESULT $? 0 0 "remove gd-progs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd.sh b/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd.sh new file mode 100644 index 0000000000000000000000000000000000000000..940436ce34ed4b98f0feb9463779714ec5f596dd --- /dev/null +++ b/testcases/cli-test/gd/oe_test_gd_install_and_remove_gd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gd | grep -v \.src | grep gd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gd + CHECK_RESULT $? 0 0 "install gd failed" + SLEEP_WAIT 1 + dnf remove -y gd + CHECK_RESULT $? 0 0 "remove gd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-debuginfo.sh b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fea1849e7847ff4dfc77549c6c9b3d073e8a7c9 --- /dev/null +++ b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdb-debuginfo | grep -v \.src | grep gdb-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdb-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdb-debuginfo + CHECK_RESULT $? 0 0 "install gdb-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gdb-debuginfo + CHECK_RESULT $? 0 0 "remove gdb-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-debugsource.sh b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6eb644d32d3f0c1776e871bcfc386f58f0e2037 --- /dev/null +++ b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdb-debugsource | grep -v \.src | grep gdb-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdb-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdb-debugsource + CHECK_RESULT $? 0 0 "install gdb-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gdb-debugsource + CHECK_RESULT $? 0 0 "remove gdb-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-gdbserver.sh b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-gdbserver.sh new file mode 100644 index 0000000000000000000000000000000000000000..51611976e948e656788f01bca22305e25a2207e7 --- /dev/null +++ b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-gdbserver.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdb-gdbserver | grep -v \.src | grep gdb-gdbserver + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdb-gdbserver" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdb-gdbserver + CHECK_RESULT $? 0 0 "install gdb-gdbserver failed" + SLEEP_WAIT 1 + dnf remove -y gdb-gdbserver + CHECK_RESULT $? 0 0 "remove gdb-gdbserver failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-headless.sh b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-headless.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ee5f03c0b57505d501b3135018c9ee0cbe2a77a --- /dev/null +++ b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-headless.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdb-headless | grep -v \.src | grep gdb-headless + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdb-headless" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdb-headless + CHECK_RESULT $? 0 0 "install gdb-headless failed" + SLEEP_WAIT 1 + dnf remove -y gdb-headless + CHECK_RESULT $? 0 0 "remove gdb-headless failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-help.sh b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..376a05709ae4be7704dcd348a454b64e1ef1f587 --- /dev/null +++ b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdb-help | grep -v \.src | grep gdb-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdb-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdb-help + CHECK_RESULT $? 0 0 "install gdb-help failed" + SLEEP_WAIT 1 + dnf remove -y gdb-help + CHECK_RESULT $? 0 0 "remove gdb-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb.sh b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..02b933b79b1cfd3e57a7b36452b0bb0cef0d1e04 --- /dev/null +++ b/testcases/cli-test/gdb/oe_test_gdb_install_and_remove_gdb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdb | grep -v \.src | grep gdb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdb + CHECK_RESULT $? 0 0 "install gdb failed" + SLEEP_WAIT 1 + dnf remove -y gdb + CHECK_RESULT $? 0 0 "remove gdb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-debuginfo.sh b/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..322630146eb7082baba08a634e1d92120084ab56 --- /dev/null +++ b/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdbm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdbm-debuginfo | grep -v \.src | grep gdbm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdbm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdbm-debuginfo + CHECK_RESULT $? 0 0 "install gdbm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gdbm-debuginfo + CHECK_RESULT $? 0 0 "remove gdbm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-debugsource.sh b/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..63d6e5be444b226d03317e09df0db7a76ed3b341 --- /dev/null +++ b/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdbm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdbm-debugsource | grep -v \.src | grep gdbm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdbm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdbm-debugsource + CHECK_RESULT $? 0 0 "install gdbm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gdbm-debugsource + CHECK_RESULT $? 0 0 "remove gdbm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-devel.sh b/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..669b25ed5f2b1eb66620aae68f15fd7a8dad478f --- /dev/null +++ b/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdbm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdbm-devel | grep -v \.src | grep gdbm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdbm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdbm-devel + CHECK_RESULT $? 0 0 "install gdbm-devel failed" + SLEEP_WAIT 1 + dnf remove -y gdbm-devel + CHECK_RESULT $? 0 0 "remove gdbm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-help.sh b/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c59106d42b3b7820abb1a65237c8167d1ce2de8d --- /dev/null +++ b/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdbm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdbm-help | grep -v \.src | grep gdbm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdbm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdbm-help + CHECK_RESULT $? 0 0 "install gdbm-help failed" + SLEEP_WAIT 1 + dnf remove -y gdbm-help + CHECK_RESULT $? 0 0 "remove gdbm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm.sh b/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9fd5e4c1ae63f987db0e991ae573c7b8a0a1e9d --- /dev/null +++ b/testcases/cli-test/gdbm/oe_test_gdbm_install_and_remove_gdbm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdbm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdbm | grep -v \.src | grep gdbm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdbm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdbm + CHECK_RESULT $? 0 0 "install gdbm failed" + SLEEP_WAIT 1 + dnf remove -y gdbm + CHECK_RESULT $? 0 0 "remove gdbm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk-debuginfo.sh b/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d4b5cfbf60cb5b30681fc57b866e948d5bcdb77 --- /dev/null +++ b/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdisk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdisk-debuginfo | grep -v \.src | grep gdisk-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdisk-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdisk-debuginfo + CHECK_RESULT $? 0 0 "install gdisk-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gdisk-debuginfo + CHECK_RESULT $? 0 0 "remove gdisk-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk-debugsource.sh b/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..34590b9e3552932a22822a6c5d9766340ea7b579 --- /dev/null +++ b/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdisk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdisk-debugsource | grep -v \.src | grep gdisk-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdisk-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdisk-debugsource + CHECK_RESULT $? 0 0 "install gdisk-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gdisk-debugsource + CHECK_RESULT $? 0 0 "remove gdisk-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk-help.sh b/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..66f4f27fd66340ff78cc660bd3ef00000c794355 --- /dev/null +++ b/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdisk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdisk-help | grep -v \.src | grep gdisk-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdisk-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdisk-help + CHECK_RESULT $? 0 0 "install gdisk-help failed" + SLEEP_WAIT 1 + dnf remove -y gdisk-help + CHECK_RESULT $? 0 0 "remove gdisk-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk.sh b/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbba8d7761518fe011cad7678f9ba943d97c3729 --- /dev/null +++ b/testcases/cli-test/gdisk/oe_test_gdisk_install_and_remove_gdisk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdisk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdisk | grep -v \.src | grep gdisk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdisk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdisk + CHECK_RESULT $? 0 0 "install gdisk failed" + SLEEP_WAIT 1 + dnf remove -y gdisk + CHECK_RESULT $? 0 0 "remove gdisk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-debuginfo.sh b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfe189fbcb62897d7892ac094ac41f9b29aa4812 --- /dev/null +++ b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdk-pixbuf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdk-pixbuf2-debuginfo | grep -v \.src | grep gdk-pixbuf2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdk-pixbuf2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdk-pixbuf2-debuginfo + CHECK_RESULT $? 0 0 "install gdk-pixbuf2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gdk-pixbuf2-debuginfo + CHECK_RESULT $? 0 0 "remove gdk-pixbuf2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-debugsource.sh b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..63bdf75648e189eda46c064b3a2ae837b94b8280 --- /dev/null +++ b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdk-pixbuf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdk-pixbuf2-debugsource | grep -v \.src | grep gdk-pixbuf2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdk-pixbuf2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdk-pixbuf2-debugsource + CHECK_RESULT $? 0 0 "install gdk-pixbuf2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gdk-pixbuf2-debugsource + CHECK_RESULT $? 0 0 "remove gdk-pixbuf2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-devel.sh b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3dd68338244cf8c8239f20a83f2562283c120c2b --- /dev/null +++ b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdk-pixbuf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdk-pixbuf2-devel | grep -v \.src | grep gdk-pixbuf2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdk-pixbuf2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdk-pixbuf2-devel + CHECK_RESULT $? 0 0 "install gdk-pixbuf2-devel failed" + SLEEP_WAIT 1 + dnf remove -y gdk-pixbuf2-devel + CHECK_RESULT $? 0 0 "remove gdk-pixbuf2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-help.sh b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfb397f840e9f9991cf2acb5d8178f99c437c99f --- /dev/null +++ b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdk-pixbuf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdk-pixbuf2-help | grep -v \.src | grep gdk-pixbuf2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdk-pixbuf2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdk-pixbuf2-help + CHECK_RESULT $? 0 0 "install gdk-pixbuf2-help failed" + SLEEP_WAIT 1 + dnf remove -y gdk-pixbuf2-help + CHECK_RESULT $? 0 0 "remove gdk-pixbuf2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-modules.sh b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d20422f0e7fa2c23a16548f7c96c9abcece85af --- /dev/null +++ b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdk-pixbuf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdk-pixbuf2-modules | grep -v \.src | grep gdk-pixbuf2-modules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdk-pixbuf2-modules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdk-pixbuf2-modules + CHECK_RESULT $? 0 0 "install gdk-pixbuf2-modules failed" + SLEEP_WAIT 1 + dnf remove -y gdk-pixbuf2-modules + CHECK_RESULT $? 0 0 "remove gdk-pixbuf2-modules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-tests.sh b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..78c404f5f2a589e330361569e85c57a67078589f --- /dev/null +++ b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdk-pixbuf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdk-pixbuf2-tests | grep -v \.src | grep gdk-pixbuf2-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdk-pixbuf2-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdk-pixbuf2-tests + CHECK_RESULT $? 0 0 "install gdk-pixbuf2-tests failed" + SLEEP_WAIT 1 + dnf remove -y gdk-pixbuf2-tests + CHECK_RESULT $? 0 0 "remove gdk-pixbuf2-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2.sh b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2.sh new file mode 100644 index 0000000000000000000000000000000000000000..68fed1173b5cac95081a832af7b827b01e5bffd8 --- /dev/null +++ b/testcases/cli-test/gdk-pixbuf2/oe_test_gdk-pixbuf2_install_and_remove_gdk-pixbuf2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gdk-pixbuf2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gdk-pixbuf2 | grep -v \.src | grep gdk-pixbuf2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gdk-pixbuf2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gdk-pixbuf2 + CHECK_RESULT $? 0 0 "install gdk-pixbuf2 failed" + SLEEP_WAIT 1 + dnf remove -y gdk-pixbuf2 + CHECK_RESULT $? 0 0 "remove gdk-pixbuf2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2-debuginfo.sh b/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcbba3a50617aa8fb511497cf0cf397e99bd5e79 --- /dev/null +++ b/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src geoclue2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available geoclue2-debuginfo | grep -v \.src | grep geoclue2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm geoclue2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y geoclue2-debuginfo + CHECK_RESULT $? 0 0 "install geoclue2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y geoclue2-debuginfo + CHECK_RESULT $? 0 0 "remove geoclue2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2-debugsource.sh b/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8837ccca0ef16eb90054444c8696325d8b9d3a41 --- /dev/null +++ b/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src geoclue2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available geoclue2-debugsource | grep -v \.src | grep geoclue2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm geoclue2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y geoclue2-debugsource + CHECK_RESULT $? 0 0 "install geoclue2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y geoclue2-debugsource + CHECK_RESULT $? 0 0 "remove geoclue2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2-devel.sh b/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f42634faebd4d880cb72178c6af786ea356d4622 --- /dev/null +++ b/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src geoclue2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available geoclue2-devel | grep -v \.src | grep geoclue2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm geoclue2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y geoclue2-devel + CHECK_RESULT $? 0 0 "install geoclue2-devel failed" + SLEEP_WAIT 1 + dnf remove -y geoclue2-devel + CHECK_RESULT $? 0 0 "remove geoclue2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2.sh b/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfe7069df36c9f3c5388e4c0a4858dd0da59264d --- /dev/null +++ b/testcases/cli-test/geoclue2/oe_test_geoclue2_install_and_remove_geoclue2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src geoclue2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available geoclue2 | grep -v \.src | grep geoclue2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm geoclue2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y geoclue2 + CHECK_RESULT $? 0 0 "install geoclue2 failed" + SLEEP_WAIT 1 + dnf remove -y geoclue2 + CHECK_RESULT $? 0 0 "remove geoclue2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_emacs-gettext.sh b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_emacs-gettext.sh new file mode 100644 index 0000000000000000000000000000000000000000..f19b2f7746e06aa9240396f292cf3f863071da16 --- /dev/null +++ b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_emacs-gettext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gettext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available emacs-gettext | grep -v \.src | grep emacs-gettext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm emacs-gettext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y emacs-gettext + CHECK_RESULT $? 0 0 "install emacs-gettext failed" + SLEEP_WAIT 1 + dnf remove -y emacs-gettext + CHECK_RESULT $? 0 0 "remove emacs-gettext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-debuginfo.sh b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..51aa24f9e095090d63ea8dde6eea0beee7752d34 --- /dev/null +++ b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gettext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gettext-debuginfo | grep -v \.src | grep gettext-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gettext-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gettext-debuginfo + CHECK_RESULT $? 0 0 "install gettext-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gettext-debuginfo + CHECK_RESULT $? 0 0 "remove gettext-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-debugsource.sh b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..54abba709c9d8b9cbf8119d70482f9ec5ba92a1b --- /dev/null +++ b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gettext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gettext-debugsource | grep -v \.src | grep gettext-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gettext-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gettext-debugsource + CHECK_RESULT $? 0 0 "install gettext-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gettext-debugsource + CHECK_RESULT $? 0 0 "remove gettext-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-devel.sh b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8f54d7b1891191a31335eec15eb6caa2fa497f0 --- /dev/null +++ b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gettext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gettext-devel | grep -v \.src | grep gettext-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gettext-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gettext-devel + CHECK_RESULT $? 0 0 "install gettext-devel failed" + SLEEP_WAIT 1 + dnf remove -y gettext-devel + CHECK_RESULT $? 0 0 "remove gettext-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-help.sh b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..35b50664f797d639faf0f93b7be8b3823607d40c --- /dev/null +++ b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gettext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gettext-help | grep -v \.src | grep gettext-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gettext-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gettext-help + CHECK_RESULT $? 0 0 "install gettext-help failed" + SLEEP_WAIT 1 + dnf remove -y gettext-help + CHECK_RESULT $? 0 0 "remove gettext-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext.sh b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9965fcdbe7dbce1ce71867e7b76df2b378def46 --- /dev/null +++ b/testcases/cli-test/gettext/oe_test_gettext_install_and_remove_gettext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gettext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gettext | grep -v \.src | grep gettext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gettext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gettext + CHECK_RESULT $? 0 0 "install gettext failed" + SLEEP_WAIT 1 + dnf remove -y gettext + CHECK_RESULT $? 0 0 "remove gettext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils-debuginfo.sh b/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..26dc1c3dfc15e612a4a2ee5a88c270e3149ddfa0 --- /dev/null +++ b/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gfs2-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gfs2-utils-debuginfo | grep -v \.src | grep gfs2-utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gfs2-utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gfs2-utils-debuginfo + CHECK_RESULT $? 0 0 "install gfs2-utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gfs2-utils-debuginfo + CHECK_RESULT $? 0 0 "remove gfs2-utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils-debugsource.sh b/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..46caa00dfc090b5ec818884f27032a6a114ea94f --- /dev/null +++ b/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gfs2-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gfs2-utils-debugsource | grep -v \.src | grep gfs2-utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gfs2-utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gfs2-utils-debugsource + CHECK_RESULT $? 0 0 "install gfs2-utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gfs2-utils-debugsource + CHECK_RESULT $? 0 0 "remove gfs2-utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils-help.sh b/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..29d28bba34bb8d4cc0d0017d11458d89587f2cc2 --- /dev/null +++ b/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gfs2-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gfs2-utils-help | grep -v \.src | grep gfs2-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gfs2-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gfs2-utils-help + CHECK_RESULT $? 0 0 "install gfs2-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y gfs2-utils-help + CHECK_RESULT $? 0 0 "remove gfs2-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils.sh b/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ea1d1e2a6cbd4832528560617939e3b90d35266 --- /dev/null +++ b/testcases/cli-test/gfs2-utils/oe_test_gfs2-utils_install_and_remove_gfs2-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gfs2-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gfs2-utils | grep -v \.src | grep gfs2-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gfs2-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gfs2-utils + CHECK_RESULT $? 0 0 "install gfs2-utils failed" + SLEEP_WAIT 1 + dnf remove -y gfs2-utils + CHECK_RESULT $? 0 0 "remove gfs2-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-debuginfo.sh b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..310951988f928fcf94fd5341d31548100ad164e9 --- /dev/null +++ b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ghostscript +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ghostscript-debuginfo | grep -v \.src | grep ghostscript-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ghostscript-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ghostscript-debuginfo + CHECK_RESULT $? 0 0 "install ghostscript-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ghostscript-debuginfo + CHECK_RESULT $? 0 0 "remove ghostscript-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-debugsource.sh b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d0cfee8f23084711e0a94f3d57c1e03d003ae53 --- /dev/null +++ b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ghostscript +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ghostscript-debugsource | grep -v \.src | grep ghostscript-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ghostscript-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ghostscript-debugsource + CHECK_RESULT $? 0 0 "install ghostscript-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ghostscript-debugsource + CHECK_RESULT $? 0 0 "remove ghostscript-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-devel.sh b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0bd09873667167ad8828d23bc33bbd0fbbba5bf --- /dev/null +++ b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ghostscript +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ghostscript-devel | grep -v \.src | grep ghostscript-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ghostscript-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ghostscript-devel + CHECK_RESULT $? 0 0 "install ghostscript-devel failed" + SLEEP_WAIT 1 + dnf remove -y ghostscript-devel + CHECK_RESULT $? 0 0 "remove ghostscript-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-help.sh b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b4add81d4caaeb2549b22a7c0b075ae006c1d4f --- /dev/null +++ b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ghostscript +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ghostscript-help | grep -v \.src | grep ghostscript-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ghostscript-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ghostscript-help + CHECK_RESULT $? 0 0 "install ghostscript-help failed" + SLEEP_WAIT 1 + dnf remove -y ghostscript-help + CHECK_RESULT $? 0 0 "remove ghostscript-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-tools-dvipdf.sh b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-tools-dvipdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f319d2fa17e234249c4deb0d07950ad36ee4b4a --- /dev/null +++ b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript-tools-dvipdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ghostscript +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ghostscript-tools-dvipdf | grep -v \.src | grep ghostscript-tools-dvipdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ghostscript-tools-dvipdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ghostscript-tools-dvipdf + CHECK_RESULT $? 0 0 "install ghostscript-tools-dvipdf failed" + SLEEP_WAIT 1 + dnf remove -y ghostscript-tools-dvipdf + CHECK_RESULT $? 0 0 "remove ghostscript-tools-dvipdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript.sh b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript.sh new file mode 100644 index 0000000000000000000000000000000000000000..239631434e13a0e8ac5c697e3fb9f405659b5658 --- /dev/null +++ b/testcases/cli-test/ghostscript/oe_test_ghostscript_install_and_remove_ghostscript.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ghostscript +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ghostscript | grep -v \.src | grep ghostscript + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ghostscript" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ghostscript + CHECK_RESULT $? 0 0 "install ghostscript failed" + SLEEP_WAIT 1 + dnf remove -y ghostscript + CHECK_RESULT $? 0 0 "remove ghostscript failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gi-docgen/oe_test_gi-docgen_install_and_remove_gi-docgen-doc.sh b/testcases/cli-test/gi-docgen/oe_test_gi-docgen_install_and_remove_gi-docgen-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0139907e922f2c9d33bd27d7c7a885ed10eee89a --- /dev/null +++ b/testcases/cli-test/gi-docgen/oe_test_gi-docgen_install_and_remove_gi-docgen-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gi-docgen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gi-docgen-doc | grep -v \.src | grep gi-docgen-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gi-docgen-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gi-docgen-doc + CHECK_RESULT $? 0 0 "install gi-docgen-doc failed" + SLEEP_WAIT 1 + dnf remove -y gi-docgen-doc + CHECK_RESULT $? 0 0 "remove gi-docgen-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gi-docgen/oe_test_gi-docgen_install_and_remove_gi-docgen.sh b/testcases/cli-test/gi-docgen/oe_test_gi-docgen_install_and_remove_gi-docgen.sh new file mode 100644 index 0000000000000000000000000000000000000000..e1442740c81af8ae93fc2232fcbdf48d92a90020 --- /dev/null +++ b/testcases/cli-test/gi-docgen/oe_test_gi-docgen_install_and_remove_gi-docgen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gi-docgen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gi-docgen | grep -v \.src | grep gi-docgen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gi-docgen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gi-docgen + CHECK_RESULT $? 0 0 "install gi-docgen failed" + SLEEP_WAIT 1 + dnf remove -y gi-docgen + CHECK_RESULT $? 0 0 "remove gi-docgen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib-devel.sh b/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3837ef1225fe82bae60e9b95ae94b05c581fcbc --- /dev/null +++ b/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src giflib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available giflib-devel | grep -v \.src | grep giflib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm giflib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y giflib-devel + CHECK_RESULT $? 0 0 "install giflib-devel failed" + SLEEP_WAIT 1 + dnf remove -y giflib-devel + CHECK_RESULT $? 0 0 "remove giflib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib-help.sh b/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2cfdf227401462fa81cc7c99a2fcfbeae9adb713 --- /dev/null +++ b/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src giflib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available giflib-help | grep -v \.src | grep giflib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm giflib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y giflib-help + CHECK_RESULT $? 0 0 "install giflib-help failed" + SLEEP_WAIT 1 + dnf remove -y giflib-help + CHECK_RESULT $? 0 0 "remove giflib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib-utils.sh b/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..45ee2486a44a4779ae21a1fff505194cabf94711 --- /dev/null +++ b/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src giflib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available giflib-utils | grep -v \.src | grep giflib-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm giflib-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y giflib-utils + CHECK_RESULT $? 0 0 "install giflib-utils failed" + SLEEP_WAIT 1 + dnf remove -y giflib-utils + CHECK_RESULT $? 0 0 "remove giflib-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib.sh b/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fc64c3b2d7c6e686ec86e96f5d9750c13de7341 --- /dev/null +++ b/testcases/cli-test/giflib/oe_test_giflib_install_and_remove_giflib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src giflib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available giflib | grep -v \.src | grep giflib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm giflib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y giflib + CHECK_RESULT $? 0 0 "install giflib failed" + SLEEP_WAIT 1 + dnf remove -y giflib + CHECK_RESULT $? 0 0 "remove giflib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git-core.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfe57a5900223df68797a43685d2f45da304ecaa --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git-core | grep -v \.src | grep git-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git-core + CHECK_RESULT $? 0 0 "install git-core failed" + SLEEP_WAIT 1 + dnf remove -y git-core + CHECK_RESULT $? 0 0 "remove git-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git-cvs.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git-cvs.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2da83ac877e2273d7b945eb0e19dd333e4084b5 --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git-cvs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git-cvs | grep -v \.src | grep git-cvs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git-cvs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git-cvs + CHECK_RESULT $? 0 0 "install git-cvs failed" + SLEEP_WAIT 1 + dnf remove -y git-cvs + CHECK_RESULT $? 0 0 "remove git-cvs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git-daemon.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git-daemon.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff63941134e7d083bbfa55556b6402d9ea2c733a --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git-daemon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git-daemon | grep -v \.src | grep git-daemon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git-daemon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git-daemon + CHECK_RESULT $? 0 0 "install git-daemon failed" + SLEEP_WAIT 1 + dnf remove -y git-daemon + CHECK_RESULT $? 0 0 "remove git-daemon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git-debuginfo.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..564b967ee714df5e82620d42dc6c78bdc443868e --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git-debuginfo | grep -v \.src | grep git-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git-debuginfo + CHECK_RESULT $? 0 0 "install git-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y git-debuginfo + CHECK_RESULT $? 0 0 "remove git-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git-debugsource.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5044e4d7d33a63ad808879cc7b1af0f47b9dcd24 --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git-debugsource | grep -v \.src | grep git-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git-debugsource + CHECK_RESULT $? 0 0 "install git-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y git-debugsource + CHECK_RESULT $? 0 0 "remove git-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git-email.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git-email.sh new file mode 100644 index 0000000000000000000000000000000000000000..0caf7f21ff91f18e2ceaafe15fecf926ffc2fef8 --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git-email.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git-email | grep -v \.src | grep git-email + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git-email" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git-email + CHECK_RESULT $? 0 0 "install git-email failed" + SLEEP_WAIT 1 + dnf remove -y git-email + CHECK_RESULT $? 0 0 "remove git-email failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git-gui.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git-gui.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c726ffab9f0da93161823fe73556435405664bc --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git-gui.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git-gui | grep -v \.src | grep git-gui + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git-gui" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git-gui + CHECK_RESULT $? 0 0 "install git-gui failed" + SLEEP_WAIT 1 + dnf remove -y git-gui + CHECK_RESULT $? 0 0 "remove git-gui failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git-help.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..08c59f2c28c26176869bacb4a2f6712317b712b2 --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git-help | grep -v \.src | grep git-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git-help + CHECK_RESULT $? 0 0 "install git-help failed" + SLEEP_WAIT 1 + dnf remove -y git-help + CHECK_RESULT $? 0 0 "remove git-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git-svn.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git-svn.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d3be4181042bb38d1d370cd530e42aa9e6cb95d --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git-svn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git-svn | grep -v \.src | grep git-svn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git-svn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git-svn + CHECK_RESULT $? 0 0 "install git-svn failed" + SLEEP_WAIT 1 + dnf remove -y git-svn + CHECK_RESULT $? 0 0 "remove git-svn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git-web.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git-web.sh new file mode 100644 index 0000000000000000000000000000000000000000..739eb1a742fa713d5e4ae9e30eb2efd6236534ba --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git-web.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git-web | grep -v \.src | grep git-web + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git-web" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git-web + CHECK_RESULT $? 0 0 "install git-web failed" + SLEEP_WAIT 1 + dnf remove -y git-web + CHECK_RESULT $? 0 0 "remove git-web failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_git.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_git.sh new file mode 100644 index 0000000000000000000000000000000000000000..5dd267f90da226698ed13da097fbd131c23b5026 --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_git.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available git | grep -v \.src | grep git + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm git" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y git + CHECK_RESULT $? 0 0 "install git failed" + SLEEP_WAIT 1 + dnf remove -y git + CHECK_RESULT $? 0 0 "remove git failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_gitk.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_gitk.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcff07b508f90454c8d1e6eae55485385e467907 --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_gitk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gitk | grep -v \.src | grep gitk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gitk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gitk + CHECK_RESULT $? 0 0 "install gitk failed" + SLEEP_WAIT 1 + dnf remove -y gitk + CHECK_RESULT $? 0 0 "remove gitk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_perl-Git-SVN.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_perl-Git-SVN.sh new file mode 100644 index 0000000000000000000000000000000000000000..87204f293ea42ae939785afdb01be07485758c40 --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_perl-Git-SVN.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Git-SVN | grep -v \.src | grep perl-Git-SVN + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Git-SVN" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Git-SVN + CHECK_RESULT $? 0 0 "install perl-Git-SVN failed" + SLEEP_WAIT 1 + dnf remove -y perl-Git-SVN + CHECK_RESULT $? 0 0 "remove perl-Git-SVN failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/git/oe_test_git_install_and_remove_perl-Git.sh b/testcases/cli-test/git/oe_test_git_install_and_remove_perl-Git.sh new file mode 100644 index 0000000000000000000000000000000000000000..b95087d79aae7ddc2f82e5e32fde8adcc9130fbe --- /dev/null +++ b/testcases/cli-test/git/oe_test_git_install_and_remove_perl-Git.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src git +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Git | grep -v \.src | grep perl-Git + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Git" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Git + CHECK_RESULT $? 0 0 "install perl-Git failed" + SLEEP_WAIT 1 + dnf remove -y perl-Git + CHECK_RESULT $? 0 0 "remove perl-Git failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-debuginfo.sh b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f001fbb0103e63a32cbd205d91badb21e712a0fd --- /dev/null +++ b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glade +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glade-debuginfo | grep -v \.src | grep glade-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glade-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glade-debuginfo + CHECK_RESULT $? 0 0 "install glade-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y glade-debuginfo + CHECK_RESULT $? 0 0 "remove glade-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-debugsource.sh b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ce3c490ecaa07d62f9e684278eb5bb70ce8737b --- /dev/null +++ b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glade +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glade-debugsource | grep -v \.src | grep glade-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glade-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glade-debugsource + CHECK_RESULT $? 0 0 "install glade-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y glade-debugsource + CHECK_RESULT $? 0 0 "remove glade-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-devel.sh b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7262348a86b54f8537d9ca81ae79b8befb2f4f8e --- /dev/null +++ b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glade +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glade-devel | grep -v \.src | grep glade-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glade-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glade-devel + CHECK_RESULT $? 0 0 "install glade-devel failed" + SLEEP_WAIT 1 + dnf remove -y glade-devel + CHECK_RESULT $? 0 0 "remove glade-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-help.sh b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..01a4cd01206f6456922df1b287a895be9b569fff --- /dev/null +++ b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glade +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glade-help | grep -v \.src | grep glade-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glade-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glade-help + CHECK_RESULT $? 0 0 "install glade-help failed" + SLEEP_WAIT 1 + dnf remove -y glade-help + CHECK_RESULT $? 0 0 "remove glade-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-libs.sh b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..20d515ad9ffd838c5587e3b1b0697dd3fe0bc51d --- /dev/null +++ b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glade +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glade-libs | grep -v \.src | grep glade-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glade-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glade-libs + CHECK_RESULT $? 0 0 "install glade-libs failed" + SLEEP_WAIT 1 + dnf remove -y glade-libs + CHECK_RESULT $? 0 0 "remove glade-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade.sh b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade.sh new file mode 100644 index 0000000000000000000000000000000000000000..e62d1cdac487c5260292cc8eba5976bce63bccc0 --- /dev/null +++ b/testcases/cli-test/glade/oe_test_glade_install_and_remove_glade.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glade +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glade | grep -v \.src | grep glade + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glade" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glade + CHECK_RESULT $? 0 0 "install glade failed" + SLEEP_WAIT 1 + dnf remove -y glade + CHECK_RESULT $? 0 0 "remove glade failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glassfish-servlet-api/oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api-help.sh b/testcases/cli-test/glassfish-servlet-api/oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..de9676c9ca1804e1b28c1a8e6e5b6d8a01b75c8c --- /dev/null +++ b/testcases/cli-test/glassfish-servlet-api/oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glassfish-servlet-api +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glassfish-servlet-api-help | grep -v \.src | grep glassfish-servlet-api-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glassfish-servlet-api-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glassfish-servlet-api-help + CHECK_RESULT $? 0 0 "install glassfish-servlet-api-help failed" + SLEEP_WAIT 1 + dnf remove -y glassfish-servlet-api-help + CHECK_RESULT $? 0 0 "remove glassfish-servlet-api-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glassfish-servlet-api/oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api-javadoc.sh b/testcases/cli-test/glassfish-servlet-api/oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api-javadoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e454922a09d7763c6722c79cea7212096346ab9b --- /dev/null +++ b/testcases/cli-test/glassfish-servlet-api/oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api-javadoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glassfish-servlet-api +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glassfish-servlet-api-javadoc | grep -v \.src | grep glassfish-servlet-api-javadoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glassfish-servlet-api-javadoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glassfish-servlet-api-javadoc + CHECK_RESULT $? 0 0 "install glassfish-servlet-api-javadoc failed" + SLEEP_WAIT 1 + dnf remove -y glassfish-servlet-api-javadoc + CHECK_RESULT $? 0 0 "remove glassfish-servlet-api-javadoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glassfish-servlet-api/oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api.sh b/testcases/cli-test/glassfish-servlet-api/oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api.sh new file mode 100644 index 0000000000000000000000000000000000000000..0450a0ed5a16e172d6fbcc9c20909b8d172bdf97 --- /dev/null +++ b/testcases/cli-test/glassfish-servlet-api/oe_test_glassfish-servlet-api_install_and_remove_glassfish-servlet-api.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glassfish-servlet-api +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glassfish-servlet-api | grep -v \.src | grep glassfish-servlet-api + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glassfish-servlet-api" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glassfish-servlet-api + CHECK_RESULT $? 0 0 "install glassfish-servlet-api failed" + SLEEP_WAIT 1 + dnf remove -y glassfish-servlet-api + CHECK_RESULT $? 0 0 "remove glassfish-servlet-api failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew-debuginfo.sh b/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..30e71946c37b41439b11c8e48b62120670adfc17 --- /dev/null +++ b/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glew +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glew-debuginfo | grep -v \.src | grep glew-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glew-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glew-debuginfo + CHECK_RESULT $? 0 0 "install glew-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y glew-debuginfo + CHECK_RESULT $? 0 0 "remove glew-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew-debugsource.sh b/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8779cf642308377e8ccea3ce17e60ad688ab592 --- /dev/null +++ b/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glew +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glew-debugsource | grep -v \.src | grep glew-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glew-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glew-debugsource + CHECK_RESULT $? 0 0 "install glew-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y glew-debugsource + CHECK_RESULT $? 0 0 "remove glew-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew-devel.sh b/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1af9f1ea2229be935baa11b5f284610ba6db7c7f --- /dev/null +++ b/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glew +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glew-devel | grep -v \.src | grep glew-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glew-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glew-devel + CHECK_RESULT $? 0 0 "install glew-devel failed" + SLEEP_WAIT 1 + dnf remove -y glew-devel + CHECK_RESULT $? 0 0 "remove glew-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew.sh b/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew.sh new file mode 100644 index 0000000000000000000000000000000000000000..8664fd91cfdcb53d94bd7d9c907c9ac64c1a73f2 --- /dev/null +++ b/testcases/cli-test/glew/oe_test_glew_install_and_remove_glew.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glew +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glew | grep -v \.src | grep glew + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glew" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glew + CHECK_RESULT $? 0 0 "install glew failed" + SLEEP_WAIT 1 + dnf remove -y glew + CHECK_RESULT $? 0 0 "remove glew failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking-debuginfo.sh b/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..43aa33a58ed37dc659754c2586c01b5c71cb36a2 --- /dev/null +++ b/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib-networking +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib-networking-debuginfo | grep -v \.src | grep glib-networking-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib-networking-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib-networking-debuginfo + CHECK_RESULT $? 0 0 "install glib-networking-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y glib-networking-debuginfo + CHECK_RESULT $? 0 0 "remove glib-networking-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking-debugsource.sh b/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..747ceef0c353cef794d3cf967a34759ac2d681ae --- /dev/null +++ b/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib-networking +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib-networking-debugsource | grep -v \.src | grep glib-networking-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib-networking-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib-networking-debugsource + CHECK_RESULT $? 0 0 "install glib-networking-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y glib-networking-debugsource + CHECK_RESULT $? 0 0 "remove glib-networking-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking-tests.sh b/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..450b99cb929e8f8c33d8da83e1062ca8b9efcef1 --- /dev/null +++ b/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib-networking +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib-networking-tests | grep -v \.src | grep glib-networking-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib-networking-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib-networking-tests + CHECK_RESULT $? 0 0 "install glib-networking-tests failed" + SLEEP_WAIT 1 + dnf remove -y glib-networking-tests + CHECK_RESULT $? 0 0 "remove glib-networking-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking.sh b/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking.sh new file mode 100644 index 0000000000000000000000000000000000000000..909976891c95196ebffa5aef38aecefd6a414488 --- /dev/null +++ b/testcases/cli-test/glib-networking/oe_test_glib-networking_install_and_remove_glib-networking.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib-networking +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib-networking | grep -v \.src | grep glib-networking + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib-networking" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib-networking + CHECK_RESULT $? 0 0 "install glib-networking failed" + SLEEP_WAIT 1 + dnf remove -y glib-networking + CHECK_RESULT $? 0 0 "remove glib-networking failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-debuginfo.sh b/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe565226a19ce06edd156b3746a84abe2bb37e23 --- /dev/null +++ b/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib-debuginfo | grep -v \.src | grep glib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib-debuginfo + CHECK_RESULT $? 0 0 "install glib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y glib-debuginfo + CHECK_RESULT $? 0 0 "remove glib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-debugsource.sh b/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..762f9e6e05e4a2946035b32e777d9efd93e7a320 --- /dev/null +++ b/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib-debugsource | grep -v \.src | grep glib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib-debugsource + CHECK_RESULT $? 0 0 "install glib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y glib-debugsource + CHECK_RESULT $? 0 0 "remove glib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-devel.sh b/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..52221187d9c4db7740ffb12b704cb095d688d791 --- /dev/null +++ b/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib-devel | grep -v \.src | grep glib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib-devel + CHECK_RESULT $? 0 0 "install glib-devel failed" + SLEEP_WAIT 1 + dnf remove -y glib-devel + CHECK_RESULT $? 0 0 "remove glib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-help.sh b/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..285675ae29b2ed5fbe58a81633aaaa6a095f4c95 --- /dev/null +++ b/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib-help | grep -v \.src | grep glib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib-help + CHECK_RESULT $? 0 0 "install glib-help failed" + SLEEP_WAIT 1 + dnf remove -y glib-help + CHECK_RESULT $? 0 0 "remove glib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib.sh b/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ccf41e9f27e7ff7305067624c75c0565a7e1e67 --- /dev/null +++ b/testcases/cli-test/glib/oe_test_glib_install_and_remove_glib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib | grep -v \.src | grep glib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib + CHECK_RESULT $? 0 0 "install glib failed" + SLEEP_WAIT 1 + dnf remove -y glib + CHECK_RESULT $? 0 0 "remove glib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-debuginfo.sh b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f91e61cab05a92fdb1dc88f6961d17ad3288cf3 --- /dev/null +++ b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib2-debuginfo | grep -v \.src | grep glib2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib2-debuginfo + CHECK_RESULT $? 0 0 "install glib2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y glib2-debuginfo + CHECK_RESULT $? 0 0 "remove glib2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-debugsource.sh b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bf015ddf3ba5315b53b18d9ac84acf630143b9b --- /dev/null +++ b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib2-debugsource | grep -v \.src | grep glib2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib2-debugsource + CHECK_RESULT $? 0 0 "install glib2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y glib2-debugsource + CHECK_RESULT $? 0 0 "remove glib2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-devel.sh b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..60ab389306abfa11d06b05fb6448ca68a9f629f4 --- /dev/null +++ b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib2-devel | grep -v \.src | grep glib2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib2-devel + CHECK_RESULT $? 0 0 "install glib2-devel failed" + SLEEP_WAIT 1 + dnf remove -y glib2-devel + CHECK_RESULT $? 0 0 "remove glib2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-help.sh b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8973a44939cb4f54dd064dbf211f3fdda0a86774 --- /dev/null +++ b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib2-help | grep -v \.src | grep glib2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib2-help + CHECK_RESULT $? 0 0 "install glib2-help failed" + SLEEP_WAIT 1 + dnf remove -y glib2-help + CHECK_RESULT $? 0 0 "remove glib2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-static.sh b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..20c02469401073dafe2085b5eb13fa0cf30d8ace --- /dev/null +++ b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib2-static | grep -v \.src | grep glib2-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib2-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib2-static + CHECK_RESULT $? 0 0 "install glib2-static failed" + SLEEP_WAIT 1 + dnf remove -y glib2-static + CHECK_RESULT $? 0 0 "remove glib2-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-tests.sh b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ab59418bbc257a54c13b191b34dc11b285bcddf --- /dev/null +++ b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib2-tests | grep -v \.src | grep glib2-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib2-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib2-tests + CHECK_RESULT $? 0 0 "install glib2-tests failed" + SLEEP_WAIT 1 + dnf remove -y glib2-tests + CHECK_RESULT $? 0 0 "remove glib2-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2.sh b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2.sh new file mode 100644 index 0000000000000000000000000000000000000000..e341960766cbd3078d21d05ee097165438677cfb --- /dev/null +++ b/testcases/cli-test/glib2/oe_test_glib2_install_and_remove_glib2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glib2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glib2 | grep -v \.src | grep glib2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glib2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glib2 + CHECK_RESULT $? 0 0 "install glib2 failed" + SLEEP_WAIT 1 + dnf remove -y glib2 + CHECK_RESULT $? 0 0 "remove glib2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-all-langpacks.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-all-langpacks.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdfd5af7d4e4ed0c1f5a2d2c6eee90d8d2643fb7 --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-all-langpacks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-all-langpacks | grep -v \.src | grep glibc-all-langpacks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-all-langpacks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-all-langpacks + CHECK_RESULT $? 0 0 "install glibc-all-langpacks failed" + SLEEP_WAIT 1 + dnf remove -y glibc-all-langpacks + CHECK_RESULT $? 0 0 "remove glibc-all-langpacks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-benchtests.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-benchtests.sh new file mode 100644 index 0000000000000000000000000000000000000000..c912a5f6c41b16d512d5bbb85907c89aae7c58b0 --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-benchtests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-benchtests | grep -v \.src | grep glibc-benchtests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-benchtests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-benchtests + CHECK_RESULT $? 0 0 "install glibc-benchtests failed" + SLEEP_WAIT 1 + dnf remove -y glibc-benchtests + CHECK_RESULT $? 0 0 "remove glibc-benchtests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-common.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..363af9ac14f7d2bccc748d34c25cf0097c0a649f --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-common | grep -v \.src | grep glibc-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-common + CHECK_RESULT $? 0 0 "install glibc-common failed" + SLEEP_WAIT 1 + dnf remove -y glibc-common + CHECK_RESULT $? 0 0 "remove glibc-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-compat-2.17.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-compat-2.17.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bacaea921ad0921c23ab4381bae85e463c0106f --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-compat-2.17.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-compat-2.17 | grep -v \.src | grep glibc-compat-2.17 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-compat-2.17" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-compat-2.17 + CHECK_RESULT $? 0 0 "install glibc-compat-2.17 failed" + SLEEP_WAIT 1 + dnf remove -y glibc-compat-2.17 + CHECK_RESULT $? 0 0 "remove glibc-compat-2.17 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-debuginfo.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..aeec90a3e48469b8edf354b118d3048eea3c8407 --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-debuginfo | grep -v \.src | grep glibc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-debuginfo + CHECK_RESULT $? 0 0 "install glibc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y glibc-debuginfo + CHECK_RESULT $? 0 0 "remove glibc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-debugsource.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f2f60f4d6a74829b78f5be49aaeb48d0efd8905 --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-debugsource | grep -v \.src | grep glibc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-debugsource + CHECK_RESULT $? 0 0 "install glibc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y glibc-debugsource + CHECK_RESULT $? 0 0 "remove glibc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-debugutils.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-debugutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..1321bf62ab76b124404fb7b25d4e86feab720658 --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-debugutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-debugutils | grep -v \.src | grep glibc-debugutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-debugutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-debugutils + CHECK_RESULT $? 0 0 "install glibc-debugutils failed" + SLEEP_WAIT 1 + dnf remove -y glibc-debugutils + CHECK_RESULT $? 0 0 "remove glibc-debugutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-devel.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4c146a58c8d4d1094fea03589f04cdf75464a40 --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-devel | grep -v \.src | grep glibc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-devel + CHECK_RESULT $? 0 0 "install glibc-devel failed" + SLEEP_WAIT 1 + dnf remove -y glibc-devel + CHECK_RESULT $? 0 0 "remove glibc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-help.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c0ed407e2b8db3e9048c1c5a8ba2c3174ecdc1c --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-help | grep -v \.src | grep glibc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-help + CHECK_RESULT $? 0 0 "install glibc-help failed" + SLEEP_WAIT 1 + dnf remove -y glibc-help + CHECK_RESULT $? 0 0 "remove glibc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-locale-archive.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-locale-archive.sh new file mode 100644 index 0000000000000000000000000000000000000000..15613cf0381691608afb6dc89466f551b28ef124 --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-locale-archive.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-locale-archive | grep -v \.src | grep glibc-locale-archive + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-locale-archive" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-locale-archive + CHECK_RESULT $? 0 0 "install glibc-locale-archive failed" + SLEEP_WAIT 1 + dnf remove -y glibc-locale-archive + CHECK_RESULT $? 0 0 "remove glibc-locale-archive failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-locale-source.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-locale-source.sh new file mode 100644 index 0000000000000000000000000000000000000000..4caeb26713880fd79acca00d9af885b118d697b9 --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-locale-source.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-locale-source | grep -v \.src | grep glibc-locale-source + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-locale-source" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-locale-source + CHECK_RESULT $? 0 0 "install glibc-locale-source failed" + SLEEP_WAIT 1 + dnf remove -y glibc-locale-source + CHECK_RESULT $? 0 0 "remove glibc-locale-source failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-nss-devel.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-nss-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f24cc8656e15222b5e79442541381fd89d57408e --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-nss-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-nss-devel | grep -v \.src | grep glibc-nss-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-nss-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-nss-devel + CHECK_RESULT $? 0 0 "install glibc-nss-devel failed" + SLEEP_WAIT 1 + dnf remove -y glibc-nss-devel + CHECK_RESULT $? 0 0 "remove glibc-nss-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-relocation.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-relocation.sh new file mode 100644 index 0000000000000000000000000000000000000000..ffb55f11cb8790275f9878d7fd2da7ab7e531c1e --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc-relocation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc-relocation | grep -v \.src | grep glibc-relocation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc-relocation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc-relocation + CHECK_RESULT $? 0 0 "install glibc-relocation failed" + SLEEP_WAIT 1 + dnf remove -y glibc-relocation + CHECK_RESULT $? 0 0 "remove glibc-relocation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc.sh new file mode 100644 index 0000000000000000000000000000000000000000..578564d318f5bb3d354b386368cc2aa0e176a13f --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_glibc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glibc | grep -v \.src | grep glibc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glibc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glibc + CHECK_RESULT $? 0 0 "install glibc failed" + SLEEP_WAIT 1 + dnf remove -y glibc + CHECK_RESULT $? 0 0 "remove glibc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_libnsl.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_libnsl.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b7ba802dc69885574f5f862e13d54aa03b5ebb5 --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_libnsl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnsl | grep -v \.src | grep libnsl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnsl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnsl + CHECK_RESULT $? 0 0 "install libnsl failed" + SLEEP_WAIT 1 + dnf remove -y libnsl + CHECK_RESULT $? 0 0 "remove libnsl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_nscd.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_nscd.sh new file mode 100644 index 0000000000000000000000000000000000000000..776b1a21e7f3da25a136a45d2547a35b03f7384d --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_nscd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nscd | grep -v \.src | grep nscd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nscd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nscd + CHECK_RESULT $? 0 0 "install nscd failed" + SLEEP_WAIT 1 + dnf remove -y nscd + CHECK_RESULT $? 0 0 "remove nscd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_nss_modules.sh b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_nss_modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..432a2db88362afb49f4d40222b114d2587fb4809 --- /dev/null +++ b/testcases/cli-test/glibc/oe_test_glibc_install_and_remove_nss_modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glibc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss_modules | grep -v \.src | grep nss_modules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss_modules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss_modules + CHECK_RESULT $? 0 0 "install nss_modules failed" + SLEEP_WAIT 1 + dnf remove -y nss_modules + CHECK_RESULT $? 0 0 "remove nss_modules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-cli.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-cli.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b04d2e631b0cc9a232f4e0103f53294a47bedef --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-cli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-cli | grep -v \.src | grep glusterfs-cli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-cli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-cli + CHECK_RESULT $? 0 0 "install glusterfs-cli failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-cli + CHECK_RESULT $? 0 0 "remove glusterfs-cli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-client-xlators.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-client-xlators.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc778e5d82ba9dd62cc2a5d99406f27e2112eaca --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-client-xlators.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-client-xlators | grep -v \.src | grep glusterfs-client-xlators + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-client-xlators" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-client-xlators + CHECK_RESULT $? 0 0 "install glusterfs-client-xlators failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-client-xlators + CHECK_RESULT $? 0 0 "remove glusterfs-client-xlators failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-cloudsync-plugins.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-cloudsync-plugins.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b5ab9d29ff1e357e401db97aec7aea1916f2c92 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-cloudsync-plugins.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-cloudsync-plugins | grep -v \.src | grep glusterfs-cloudsync-plugins + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-cloudsync-plugins" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-cloudsync-plugins + CHECK_RESULT $? 0 0 "install glusterfs-cloudsync-plugins failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-cloudsync-plugins + CHECK_RESULT $? 0 0 "remove glusterfs-cloudsync-plugins failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-debuginfo.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..cce4cbf0ba53e6da49d9bc2c755791987c8740da --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-debuginfo | grep -v \.src | grep glusterfs-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-debuginfo + CHECK_RESULT $? 0 0 "install glusterfs-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-debuginfo + CHECK_RESULT $? 0 0 "remove glusterfs-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-debugsource.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f34a8c94044f1ea1a659e78d31929e802cef69c --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-debugsource | grep -v \.src | grep glusterfs-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-debugsource + CHECK_RESULT $? 0 0 "install glusterfs-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-debugsource + CHECK_RESULT $? 0 0 "remove glusterfs-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-devel.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c46b1ca0452924e440beb1b6062917121a935c49 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-devel | grep -v \.src | grep glusterfs-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-devel + CHECK_RESULT $? 0 0 "install glusterfs-devel failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-devel + CHECK_RESULT $? 0 0 "remove glusterfs-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-events.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-events.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebfba2916c6ee8cf0fa910f288c1db83275a9be9 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-events.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-events | grep -v \.src | grep glusterfs-events + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-events" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-events + CHECK_RESULT $? 0 0 "install glusterfs-events failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-events + CHECK_RESULT $? 0 0 "remove glusterfs-events failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-extra-xlators.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-extra-xlators.sh new file mode 100644 index 0000000000000000000000000000000000000000..910e0ddad7bf5acc667d8efb7ea15a04cbd5601d --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-extra-xlators.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-extra-xlators | grep -v \.src | grep glusterfs-extra-xlators + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-extra-xlators" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-extra-xlators + CHECK_RESULT $? 0 0 "install glusterfs-extra-xlators failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-extra-xlators + CHECK_RESULT $? 0 0 "remove glusterfs-extra-xlators failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-fuse.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-fuse.sh new file mode 100644 index 0000000000000000000000000000000000000000..11d151469afe535faf76ae7ae9b55c140def52e2 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-fuse.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-fuse | grep -v \.src | grep glusterfs-fuse + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-fuse" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-fuse + CHECK_RESULT $? 0 0 "install glusterfs-fuse failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-fuse + CHECK_RESULT $? 0 0 "remove glusterfs-fuse failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-geo-replication.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-geo-replication.sh new file mode 100644 index 0000000000000000000000000000000000000000..24bc92340402f6e1d2d78aac77de6e49b71cccfe --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-geo-replication.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-geo-replication | grep -v \.src | grep glusterfs-geo-replication + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-geo-replication" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-geo-replication + CHECK_RESULT $? 0 0 "install glusterfs-geo-replication failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-geo-replication + CHECK_RESULT $? 0 0 "remove glusterfs-geo-replication failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-help.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b53bc656635afff261eea9d94c27c19314ccdfad --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-help | grep -v \.src | grep glusterfs-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-help + CHECK_RESULT $? 0 0 "install glusterfs-help failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-help + CHECK_RESULT $? 0 0 "remove glusterfs-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-resource-agents.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-resource-agents.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6f329e00c07ee4777eefb6372ac314147bc2146 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-resource-agents.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-resource-agents | grep -v \.src | grep glusterfs-resource-agents + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-resource-agents" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-resource-agents + CHECK_RESULT $? 0 0 "install glusterfs-resource-agents failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-resource-agents + CHECK_RESULT $? 0 0 "remove glusterfs-resource-agents failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-server.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-server.sh new file mode 100644 index 0000000000000000000000000000000000000000..762b6cd829c43700dcd3c59d9f1c9a2628f5cda5 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-server.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-server | grep -v \.src | grep glusterfs-server + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-server" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-server + CHECK_RESULT $? 0 0 "install glusterfs-server failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-server + CHECK_RESULT $? 0 0 "remove glusterfs-server failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-thin-arbiter.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-thin-arbiter.sh new file mode 100644 index 0000000000000000000000000000000000000000..96c66ccab2acb7b1912203fb496ae4561d6bf493 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs-thin-arbiter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs-thin-arbiter | grep -v \.src | grep glusterfs-thin-arbiter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs-thin-arbiter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs-thin-arbiter + CHECK_RESULT $? 0 0 "install glusterfs-thin-arbiter failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs-thin-arbiter + CHECK_RESULT $? 0 0 "remove glusterfs-thin-arbiter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d754061c297c1a464acbb563fac450ec23ca7db --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_glusterfs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available glusterfs | grep -v \.src | grep glusterfs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm glusterfs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y glusterfs + CHECK_RESULT $? 0 0 "install glusterfs failed" + SLEEP_WAIT 1 + dnf remove -y glusterfs + CHECK_RESULT $? 0 0 "remove glusterfs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfapi-devel.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfapi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a83ea1657ef680dc9ac33976381f61d8238d6c16 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfapi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgfapi-devel | grep -v \.src | grep libgfapi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgfapi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgfapi-devel + CHECK_RESULT $? 0 0 "install libgfapi-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgfapi-devel + CHECK_RESULT $? 0 0 "remove libgfapi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfapi0.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfapi0.sh new file mode 100644 index 0000000000000000000000000000000000000000..04fb5b480c4402f79e5bce0eabb6e3d372d6105f --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfapi0.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgfapi0 | grep -v \.src | grep libgfapi0 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgfapi0" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgfapi0 + CHECK_RESULT $? 0 0 "install libgfapi0 failed" + SLEEP_WAIT 1 + dnf remove -y libgfapi0 + CHECK_RESULT $? 0 0 "remove libgfapi0 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfchangelog-devel.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfchangelog-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..11227f8d92d43aa465c0a94f5b14ce1f6d991444 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfchangelog-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgfchangelog-devel | grep -v \.src | grep libgfchangelog-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgfchangelog-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgfchangelog-devel + CHECK_RESULT $? 0 0 "install libgfchangelog-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgfchangelog-devel + CHECK_RESULT $? 0 0 "remove libgfchangelog-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfchangelog0.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfchangelog0.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c3c3e82196441c9b54b9ad2497d1910823abb6a --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfchangelog0.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgfchangelog0 | grep -v \.src | grep libgfchangelog0 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgfchangelog0" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgfchangelog0 + CHECK_RESULT $? 0 0 "install libgfchangelog0 failed" + SLEEP_WAIT 1 + dnf remove -y libgfchangelog0 + CHECK_RESULT $? 0 0 "remove libgfchangelog0 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfrpc-devel.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfrpc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef70eafa6ef9c4db9e594e93db3d3648d555733d --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfrpc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgfrpc-devel | grep -v \.src | grep libgfrpc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgfrpc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgfrpc-devel + CHECK_RESULT $? 0 0 "install libgfrpc-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgfrpc-devel + CHECK_RESULT $? 0 0 "remove libgfrpc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfrpc0.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfrpc0.sh new file mode 100644 index 0000000000000000000000000000000000000000..c49246748253ef6ea6d1aa603e2441b7f951a539 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfrpc0.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgfrpc0 | grep -v \.src | grep libgfrpc0 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgfrpc0" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgfrpc0 + CHECK_RESULT $? 0 0 "install libgfrpc0 failed" + SLEEP_WAIT 1 + dnf remove -y libgfrpc0 + CHECK_RESULT $? 0 0 "remove libgfrpc0 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfxdr-devel.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfxdr-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc918dae64b1bcbc0e0f457678a6441d52715f6d --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfxdr-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgfxdr-devel | grep -v \.src | grep libgfxdr-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgfxdr-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgfxdr-devel + CHECK_RESULT $? 0 0 "install libgfxdr-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgfxdr-devel + CHECK_RESULT $? 0 0 "remove libgfxdr-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfxdr0.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfxdr0.sh new file mode 100644 index 0000000000000000000000000000000000000000..197bb78dace7736e6ce32e1977916e24aac915f1 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libgfxdr0.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgfxdr0 | grep -v \.src | grep libgfxdr0 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgfxdr0" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgfxdr0 + CHECK_RESULT $? 0 0 "install libgfxdr0 failed" + SLEEP_WAIT 1 + dnf remove -y libgfxdr0 + CHECK_RESULT $? 0 0 "remove libgfxdr0 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libglusterd0.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libglusterd0.sh new file mode 100644 index 0000000000000000000000000000000000000000..0aaf25fd07306c37e0753ad7f9193014ba4ed0c4 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libglusterd0.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglusterd0 | grep -v \.src | grep libglusterd0 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglusterd0" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglusterd0 + CHECK_RESULT $? 0 0 "install libglusterd0 failed" + SLEEP_WAIT 1 + dnf remove -y libglusterd0 + CHECK_RESULT $? 0 0 "remove libglusterd0 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libglusterfs-devel.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libglusterfs-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b4f104de9ca7eae8f004ff7d4464cbb084ecdba --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libglusterfs-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglusterfs-devel | grep -v \.src | grep libglusterfs-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglusterfs-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglusterfs-devel + CHECK_RESULT $? 0 0 "install libglusterfs-devel failed" + SLEEP_WAIT 1 + dnf remove -y libglusterfs-devel + CHECK_RESULT $? 0 0 "remove libglusterfs-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libglusterfs0.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libglusterfs0.sh new file mode 100644 index 0000000000000000000000000000000000000000..3508456107f132d4739ee4cecee31039fd898420 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_libglusterfs0.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglusterfs0 | grep -v \.src | grep libglusterfs0 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglusterfs0" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglusterfs0 + CHECK_RESULT $? 0 0 "install libglusterfs0 failed" + SLEEP_WAIT 1 + dnf remove -y libglusterfs0 + CHECK_RESULT $? 0 0 "remove libglusterfs0 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_python3-gluster.sh b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_python3-gluster.sh new file mode 100644 index 0000000000000000000000000000000000000000..d78c2c8b02cdfeba4d1d24ce57633eaade6ef255 --- /dev/null +++ b/testcases/cli-test/glusterfs/oe_test_glusterfs_install_and_remove_python3-gluster.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src glusterfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-gluster | grep -v \.src | grep python3-gluster + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-gluster" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-gluster + CHECK_RESULT $? 0 0 "install python3-gluster failed" + SLEEP_WAIT 1 + dnf remove -y python3-gluster + CHECK_RESULT $? 0 0 "remove python3-gluster failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-c++.sh b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-c++.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ca90a240fcbae59fa7a2288ac804eb68d6b3e98 --- /dev/null +++ b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-c++.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gmp-c++ | grep -v \.src | grep gmp-c++ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gmp-c++" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gmp-c++ + CHECK_RESULT $? 0 0 "install gmp-c++ failed" + SLEEP_WAIT 1 + dnf remove -y gmp-c++ + CHECK_RESULT $? 0 0 "remove gmp-c++ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-debuginfo.sh b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5591fb39bcd4a819dbd8c003c9ae73bb1f7ab2dc --- /dev/null +++ b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gmp-debuginfo | grep -v \.src | grep gmp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gmp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gmp-debuginfo + CHECK_RESULT $? 0 0 "install gmp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gmp-debuginfo + CHECK_RESULT $? 0 0 "remove gmp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-debugsource.sh b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c36fcbd23399abc9bfd8fd448885bc41437d542 --- /dev/null +++ b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gmp-debugsource | grep -v \.src | grep gmp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gmp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gmp-debugsource + CHECK_RESULT $? 0 0 "install gmp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gmp-debugsource + CHECK_RESULT $? 0 0 "remove gmp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-devel.sh b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..78094f3dcd1dafa08e1fa969db4049da896853ec --- /dev/null +++ b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gmp-devel | grep -v \.src | grep gmp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gmp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gmp-devel + CHECK_RESULT $? 0 0 "install gmp-devel failed" + SLEEP_WAIT 1 + dnf remove -y gmp-devel + CHECK_RESULT $? 0 0 "remove gmp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-relocation.sh b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-relocation.sh new file mode 100644 index 0000000000000000000000000000000000000000..236cd24673c6a3a0d848a3b9bd5d8d5f147e8f4c --- /dev/null +++ b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp-relocation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gmp-relocation | grep -v \.src | grep gmp-relocation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gmp-relocation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gmp-relocation + CHECK_RESULT $? 0 0 "install gmp-relocation failed" + SLEEP_WAIT 1 + dnf remove -y gmp-relocation + CHECK_RESULT $? 0 0 "remove gmp-relocation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp.sh b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp.sh new file mode 100644 index 0000000000000000000000000000000000000000..51e4cdcdd5ac4a520cbce112dc6212ae56cdab5a --- /dev/null +++ b/testcases/cli-test/gmp/oe_test_gmp_install_and_remove_gmp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gmp | grep -v \.src | grep gmp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gmp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gmp + CHECK_RESULT $? 0 0 "install gmp failed" + SLEEP_WAIT 1 + dnf remove -y gmp + CHECK_RESULT $? 0 0 "remove gmp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnome-common/oe_test_gnome-common_install_and_remove_gnome-common.sh b/testcases/cli-test/gnome-common/oe_test_gnome-common_install_and_remove_gnome-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..f81bd11a2281cbf69c0d326768b069802428db98 --- /dev/null +++ b/testcases/cli-test/gnome-common/oe_test_gnome-common_install_and_remove_gnome-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnome-common +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnome-common | grep -v \.src | grep gnome-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnome-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnome-common + CHECK_RESULT $? 0 0 "install gnome-common failed" + SLEEP_WAIT 1 + dnf remove -y gnome-common + CHECK_RESULT $? 0 0 "remove gnome-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnome-doc-utils/oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils-help.sh b/testcases/cli-test/gnome-doc-utils/oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c406c0cea7f7ea2668932ace974d7f2baa4ee9bf --- /dev/null +++ b/testcases/cli-test/gnome-doc-utils/oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnome-doc-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnome-doc-utils-help | grep -v \.src | grep gnome-doc-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnome-doc-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnome-doc-utils-help + CHECK_RESULT $? 0 0 "install gnome-doc-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y gnome-doc-utils-help + CHECK_RESULT $? 0 0 "remove gnome-doc-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnome-doc-utils/oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils-stylesheets.sh b/testcases/cli-test/gnome-doc-utils/oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils-stylesheets.sh new file mode 100644 index 0000000000000000000000000000000000000000..8009bb6c48cf2af74bc21453d62c34e14fa3d925 --- /dev/null +++ b/testcases/cli-test/gnome-doc-utils/oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils-stylesheets.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnome-doc-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnome-doc-utils-stylesheets | grep -v \.src | grep gnome-doc-utils-stylesheets + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnome-doc-utils-stylesheets" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnome-doc-utils-stylesheets + CHECK_RESULT $? 0 0 "install gnome-doc-utils-stylesheets failed" + SLEEP_WAIT 1 + dnf remove -y gnome-doc-utils-stylesheets + CHECK_RESULT $? 0 0 "remove gnome-doc-utils-stylesheets failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnome-doc-utils/oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils.sh b/testcases/cli-test/gnome-doc-utils/oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..083365bdb314192501f6200e49603246b972a87b --- /dev/null +++ b/testcases/cli-test/gnome-doc-utils/oe_test_gnome-doc-utils_install_and_remove_gnome-doc-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnome-doc-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnome-doc-utils | grep -v \.src | grep gnome-doc-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnome-doc-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnome-doc-utils + CHECK_RESULT $? 0 0 "install gnome-doc-utils failed" + SLEEP_WAIT 1 + dnf remove -y gnome-doc-utils + CHECK_RESULT $? 0 0 "remove gnome-doc-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnu-efi/oe_test_gnu-efi_install_and_remove_gnu-efi-devel.sh b/testcases/cli-test/gnu-efi/oe_test_gnu-efi_install_and_remove_gnu-efi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..32c68ec9f17b2efec1430fab4e760964278ad3ef --- /dev/null +++ b/testcases/cli-test/gnu-efi/oe_test_gnu-efi_install_and_remove_gnu-efi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnu-efi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnu-efi-devel | grep -v \.src | grep gnu-efi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnu-efi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnu-efi-devel + CHECK_RESULT $? 0 0 "install gnu-efi-devel failed" + SLEEP_WAIT 1 + dnf remove -y gnu-efi-devel + CHECK_RESULT $? 0 0 "remove gnu-efi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnu-efi/oe_test_gnu-efi_install_and_remove_gnu-efi.sh b/testcases/cli-test/gnu-efi/oe_test_gnu-efi_install_and_remove_gnu-efi.sh new file mode 100644 index 0000000000000000000000000000000000000000..30a198895d87eafe1b33b3cf0d8f2205e58fb8a8 --- /dev/null +++ b/testcases/cli-test/gnu-efi/oe_test_gnu-efi_install_and_remove_gnu-efi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnu-efi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnu-efi | grep -v \.src | grep gnu-efi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnu-efi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnu-efi + CHECK_RESULT $? 0 0 "install gnu-efi failed" + SLEEP_WAIT 1 + dnf remove -y gnu-efi + CHECK_RESULT $? 0 0 "remove gnu-efi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2-debuginfo.sh b/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ac57cf79b75a8105ae00d711933a08f94e75a67 --- /dev/null +++ b/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnupg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnupg2-debuginfo | grep -v \.src | grep gnupg2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnupg2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnupg2-debuginfo + CHECK_RESULT $? 0 0 "install gnupg2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gnupg2-debuginfo + CHECK_RESULT $? 0 0 "remove gnupg2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2-debugsource.sh b/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..03abd0b0bb88f3242ea9ff6112921c16528341f6 --- /dev/null +++ b/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnupg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnupg2-debugsource | grep -v \.src | grep gnupg2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnupg2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnupg2-debugsource + CHECK_RESULT $? 0 0 "install gnupg2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gnupg2-debugsource + CHECK_RESULT $? 0 0 "remove gnupg2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2-help.sh b/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..946bdf7c501bc415030da6e2c4a9390e235a8f4e --- /dev/null +++ b/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnupg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnupg2-help | grep -v \.src | grep gnupg2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnupg2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnupg2-help + CHECK_RESULT $? 0 0 "install gnupg2-help failed" + SLEEP_WAIT 1 + dnf remove -y gnupg2-help + CHECK_RESULT $? 0 0 "remove gnupg2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2.sh b/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2.sh new file mode 100644 index 0000000000000000000000000000000000000000..abf40088187da8187b2de8b9f088490560c01a85 --- /dev/null +++ b/testcases/cli-test/gnupg2/oe_test_gnupg2_install_and_remove_gnupg2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnupg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnupg2 | grep -v \.src | grep gnupg2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnupg2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnupg2 + CHECK_RESULT $? 0 0 "install gnupg2 failed" + SLEEP_WAIT 1 + dnf remove -y gnupg2 + CHECK_RESULT $? 0 0 "remove gnupg2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-c++.sh b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-c++.sh new file mode 100644 index 0000000000000000000000000000000000000000..6265c55144088e09aeead449f18f56da583c5e36 --- /dev/null +++ b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-c++.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnutls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnutls-c++ | grep -v \.src | grep gnutls-c++ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnutls-c++" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnutls-c++ + CHECK_RESULT $? 0 0 "install gnutls-c++ failed" + SLEEP_WAIT 1 + dnf remove -y gnutls-c++ + CHECK_RESULT $? 0 0 "remove gnutls-c++ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-dane.sh b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-dane.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b385adc30cd28c694fec75f2eaf462688463589 --- /dev/null +++ b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-dane.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnutls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnutls-dane | grep -v \.src | grep gnutls-dane + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnutls-dane" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnutls-dane + CHECK_RESULT $? 0 0 "install gnutls-dane failed" + SLEEP_WAIT 1 + dnf remove -y gnutls-dane + CHECK_RESULT $? 0 0 "remove gnutls-dane failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-debuginfo.sh b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f039839089a27563b46ed4d1300e1330dcd22aa4 --- /dev/null +++ b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnutls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnutls-debuginfo | grep -v \.src | grep gnutls-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnutls-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnutls-debuginfo + CHECK_RESULT $? 0 0 "install gnutls-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gnutls-debuginfo + CHECK_RESULT $? 0 0 "remove gnutls-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-debugsource.sh b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..51b642be126d26b7cde5f6dbf5857251d83de233 --- /dev/null +++ b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnutls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnutls-debugsource | grep -v \.src | grep gnutls-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnutls-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnutls-debugsource + CHECK_RESULT $? 0 0 "install gnutls-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gnutls-debugsource + CHECK_RESULT $? 0 0 "remove gnutls-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-devel.sh b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..471829af8e6fcaec4c029f710c7c0f82ac91cc5c --- /dev/null +++ b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnutls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnutls-devel | grep -v \.src | grep gnutls-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnutls-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnutls-devel + CHECK_RESULT $? 0 0 "install gnutls-devel failed" + SLEEP_WAIT 1 + dnf remove -y gnutls-devel + CHECK_RESULT $? 0 0 "remove gnutls-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-doc.sh b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3cdf686b07d7ddc97ff5658ff9fe54fdad58726c --- /dev/null +++ b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnutls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnutls-doc | grep -v \.src | grep gnutls-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnutls-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnutls-doc + CHECK_RESULT $? 0 0 "install gnutls-doc failed" + SLEEP_WAIT 1 + dnf remove -y gnutls-doc + CHECK_RESULT $? 0 0 "remove gnutls-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-guile.sh b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-guile.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf830ea786e2a55357d9b3e9fdf51ab768119894 --- /dev/null +++ b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-guile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnutls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnutls-guile | grep -v \.src | grep gnutls-guile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnutls-guile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnutls-guile + CHECK_RESULT $? 0 0 "install gnutls-guile failed" + SLEEP_WAIT 1 + dnf remove -y gnutls-guile + CHECK_RESULT $? 0 0 "remove gnutls-guile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-help.sh b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f93c5a5601c2143b1bf39892d5fb21d7c4294f7 --- /dev/null +++ b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnutls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnutls-help | grep -v \.src | grep gnutls-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnutls-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnutls-help + CHECK_RESULT $? 0 0 "install gnutls-help failed" + SLEEP_WAIT 1 + dnf remove -y gnutls-help + CHECK_RESULT $? 0 0 "remove gnutls-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-utils.sh b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b60bc3d5d9e9a25e2cc358773602629724d1efd --- /dev/null +++ b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnutls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnutls-utils | grep -v \.src | grep gnutls-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnutls-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnutls-utils + CHECK_RESULT $? 0 0 "install gnutls-utils failed" + SLEEP_WAIT 1 + dnf remove -y gnutls-utils + CHECK_RESULT $? 0 0 "remove gnutls-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls.sh b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fba7608938b48933006cd9342cac83f36c4f532 --- /dev/null +++ b/testcases/cli-test/gnutls/oe_test_gnutls_install_and_remove_gnutls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gnutls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gnutls | grep -v \.src | grep gnutls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gnutls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gnutls + CHECK_RESULT $? 0 0 "install gnutls failed" + SLEEP_WAIT 1 + dnf remove -y gnutls + CHECK_RESULT $? 0 0 "remove gnutls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-debuginfo.sh b/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..98322228de3361ea1224c0a03f76ed1586647c04 --- /dev/null +++ b/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gobject-introspection +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gobject-introspection-debuginfo | grep -v \.src | grep gobject-introspection-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gobject-introspection-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gobject-introspection-debuginfo + CHECK_RESULT $? 0 0 "install gobject-introspection-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gobject-introspection-debuginfo + CHECK_RESULT $? 0 0 "remove gobject-introspection-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-debugsource.sh b/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c6ac10553fa73c13186c2ce07300f529746d3f0 --- /dev/null +++ b/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gobject-introspection +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gobject-introspection-debugsource | grep -v \.src | grep gobject-introspection-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gobject-introspection-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gobject-introspection-debugsource + CHECK_RESULT $? 0 0 "install gobject-introspection-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gobject-introspection-debugsource + CHECK_RESULT $? 0 0 "remove gobject-introspection-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-devel.sh b/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ec1367b68a37d2368977272495af21dd09da2e0 --- /dev/null +++ b/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gobject-introspection +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gobject-introspection-devel | grep -v \.src | grep gobject-introspection-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gobject-introspection-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gobject-introspection-devel + CHECK_RESULT $? 0 0 "install gobject-introspection-devel failed" + SLEEP_WAIT 1 + dnf remove -y gobject-introspection-devel + CHECK_RESULT $? 0 0 "remove gobject-introspection-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-help.sh b/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..95a774c8ff5a6e5448bfd7a6907bf8eb43748b6d --- /dev/null +++ b/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gobject-introspection +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gobject-introspection-help | grep -v \.src | grep gobject-introspection-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gobject-introspection-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gobject-introspection-help + CHECK_RESULT $? 0 0 "install gobject-introspection-help failed" + SLEEP_WAIT 1 + dnf remove -y gobject-introspection-help + CHECK_RESULT $? 0 0 "remove gobject-introspection-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection.sh b/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection.sh new file mode 100644 index 0000000000000000000000000000000000000000..c82fb025e68149e08a6ec57ac2c745be7b685dbd --- /dev/null +++ b/testcases/cli-test/gobject-introspection/oe_test_gobject-introspection_install_and_remove_gobject-introspection.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gobject-introspection +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gobject-introspection | grep -v \.src | grep gobject-introspection + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gobject-introspection" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gobject-introspection + CHECK_RESULT $? 0 0 "install gobject-introspection failed" + SLEEP_WAIT 1 + dnf remove -y gobject-introspection + CHECK_RESULT $? 0 0 "remove gobject-introspection failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/golang/oe_test_golang_install_and_remove_golang-devel.sh b/testcases/cli-test/golang/oe_test_golang_install_and_remove_golang-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cdafd6ec62a81944abe15c6cb434d9c09bc8bbc --- /dev/null +++ b/testcases/cli-test/golang/oe_test_golang_install_and_remove_golang-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src golang +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available golang-devel | grep -v \.src | grep golang-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm golang-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y golang-devel + CHECK_RESULT $? 0 0 "install golang-devel failed" + SLEEP_WAIT 1 + dnf remove -y golang-devel + CHECK_RESULT $? 0 0 "remove golang-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/golang/oe_test_golang_install_and_remove_golang-help.sh b/testcases/cli-test/golang/oe_test_golang_install_and_remove_golang-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd3d0125106c92feab6704309ba72c9dff2d2a27 --- /dev/null +++ b/testcases/cli-test/golang/oe_test_golang_install_and_remove_golang-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src golang +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available golang-help | grep -v \.src | grep golang-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm golang-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y golang-help + CHECK_RESULT $? 0 0 "install golang-help failed" + SLEEP_WAIT 1 + dnf remove -y golang-help + CHECK_RESULT $? 0 0 "remove golang-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/golang/oe_test_golang_install_and_remove_golang.sh b/testcases/cli-test/golang/oe_test_golang_install_and_remove_golang.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad0499382cec718896a65d92f9daf94e148c2484 --- /dev/null +++ b/testcases/cli-test/golang/oe_test_golang_install_and_remove_golang.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src golang +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available golang | grep -v \.src | grep golang + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm golang" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y golang + CHECK_RESULT $? 0 0 "install golang failed" + SLEEP_WAIT 1 + dnf remove -y golang + CHECK_RESULT $? 0 0 "remove golang failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-fonts.sh b/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..deb06ba6035d8a8c678f10cf0ee64c8030d20c22 --- /dev/null +++ b/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-droid-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-droid-fonts | grep -v \.src | grep google-droid-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-droid-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-droid-fonts + CHECK_RESULT $? 0 0 "install google-droid-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-droid-fonts + CHECK_RESULT $? 0 0 "remove google-droid-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-kufi-fonts.sh b/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-kufi-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..5039dc02ed9f46b8b4c3c84cc4b29546a8b1fecd --- /dev/null +++ b/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-kufi-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-droid-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-droid-kufi-fonts | grep -v \.src | grep google-droid-kufi-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-droid-kufi-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-droid-kufi-fonts + CHECK_RESULT $? 0 0 "install google-droid-kufi-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-droid-kufi-fonts + CHECK_RESULT $? 0 0 "remove google-droid-kufi-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-sans-fonts.sh b/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-sans-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d8a73b08b6e3e2a5f882fc61d61359e0090c472 --- /dev/null +++ b/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-sans-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-droid-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-droid-sans-fonts | grep -v \.src | grep google-droid-sans-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-droid-sans-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-droid-sans-fonts + CHECK_RESULT $? 0 0 "install google-droid-sans-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-droid-sans-fonts + CHECK_RESULT $? 0 0 "remove google-droid-sans-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-sans-mono-fonts.sh b/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-sans-mono-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..d07e33abc17928d24bfb4994091bb5b1040d0f45 --- /dev/null +++ b/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-sans-mono-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-droid-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-droid-sans-mono-fonts | grep -v \.src | grep google-droid-sans-mono-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-droid-sans-mono-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-droid-sans-mono-fonts + CHECK_RESULT $? 0 0 "install google-droid-sans-mono-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-droid-sans-mono-fonts + CHECK_RESULT $? 0 0 "remove google-droid-sans-mono-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-serif-fonts.sh b/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-serif-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..79f8fdacd5235541aaea7a148c08a6b991ef87f1 --- /dev/null +++ b/testcases/cli-test/google-droid-fonts/oe_test_google-droid-fonts_install_and_remove_google-droid-serif-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-droid-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-droid-serif-fonts | grep -v \.src | grep google-droid-serif-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-droid-serif-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-droid-serif-fonts + CHECK_RESULT $? 0 0 "install google-droid-serif-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-droid-serif-fonts + CHECK_RESULT $? 0 0 "remove google-droid-serif-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-cjk-fonts-help.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-cjk-fonts-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed323313211b62c10108fd3a2f6fa3cc287fcde6 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-cjk-fonts-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-cjk-fonts-help | grep -v \.src | grep google-noto-cjk-fonts-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-cjk-fonts-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-cjk-fonts-help + CHECK_RESULT $? 0 0 "install google-noto-cjk-fonts-help failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-cjk-fonts-help + CHECK_RESULT $? 0 0 "remove google-noto-cjk-fonts-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-cjk-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-cjk-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fac6b6c6f43831db7dae049299f4d0a850acc6a --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-cjk-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-cjk-fonts | grep -v \.src | grep google-noto-cjk-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-cjk-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-cjk-fonts + CHECK_RESULT $? 0 0 "install google-noto-cjk-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-cjk-fonts + CHECK_RESULT $? 0 0 "remove google-noto-cjk-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-jp-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-jp-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfe680b46e60c93f06008c79658055ffafa7a50a --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-jp-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-cjk-jp-fonts | grep -v \.src | grep google-noto-sans-cjk-jp-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-cjk-jp-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-cjk-jp-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-cjk-jp-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-cjk-jp-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-cjk-jp-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-kr-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-kr-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..36e7f96ba354f1c4a1eb8314a8265e0b217eb89a --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-kr-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-cjk-kr-fonts | grep -v \.src | grep google-noto-sans-cjk-kr-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-cjk-kr-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-cjk-kr-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-cjk-kr-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-cjk-kr-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-cjk-kr-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-sc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-sc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..31d33202f9e341d1543d8e4a10217d56d85f4c34 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-sc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-cjk-sc-fonts | grep -v \.src | grep google-noto-sans-cjk-sc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-cjk-sc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-cjk-sc-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-cjk-sc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-cjk-sc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-cjk-sc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-tc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-tc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..522403163ea974b4becf7ee3011f005d601e12f1 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-tc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-cjk-tc-fonts | grep -v \.src | grep google-noto-sans-cjk-tc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-cjk-tc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-cjk-tc-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-cjk-tc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-cjk-tc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-cjk-tc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-ttc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-ttc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..603be424d939138d75f3e780d661a7c1d507a2d8 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-cjk-ttc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-cjk-ttc-fonts | grep -v \.src | grep google-noto-sans-cjk-ttc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-cjk-ttc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-cjk-ttc-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-cjk-ttc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-cjk-ttc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-cjk-ttc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-jp-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-jp-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..135496212a666fadf6beaf61c96fea41e9368b6d --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-jp-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-jp-fonts | grep -v \.src | grep google-noto-sans-jp-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-jp-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-jp-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-jp-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-jp-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-jp-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-kr-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-kr-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa4ef5a232ea8d5e9c7be39e5de3539021699e3a --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-kr-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-kr-fonts | grep -v \.src | grep google-noto-sans-kr-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-kr-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-kr-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-kr-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-kr-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-kr-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-jp-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-jp-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..777c3b4da0365c1e5e060c2a0105f8b2652bd072 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-jp-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-mono-cjk-jp-fonts | grep -v \.src | grep google-noto-sans-mono-cjk-jp-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-mono-cjk-jp-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-mono-cjk-jp-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-mono-cjk-jp-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-mono-cjk-jp-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-mono-cjk-jp-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-kr-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-kr-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8050e94e60175bf87a17e8e833881521ceed356 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-kr-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-mono-cjk-kr-fonts | grep -v \.src | grep google-noto-sans-mono-cjk-kr-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-mono-cjk-kr-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-mono-cjk-kr-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-mono-cjk-kr-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-mono-cjk-kr-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-mono-cjk-kr-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-sc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-sc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..def8260bbb4eeb9d65f95b76ca03db5442a417e3 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-sc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-mono-cjk-sc-fonts | grep -v \.src | grep google-noto-sans-mono-cjk-sc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-mono-cjk-sc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-mono-cjk-sc-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-mono-cjk-sc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-mono-cjk-sc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-mono-cjk-sc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-tc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-tc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2400fe2e35a8f7bfefde21d949e59f11fdd5705 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-mono-cjk-tc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-mono-cjk-tc-fonts | grep -v \.src | grep google-noto-sans-mono-cjk-tc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-mono-cjk-tc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-mono-cjk-tc-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-mono-cjk-tc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-mono-cjk-tc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-mono-cjk-tc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-sc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-sc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ac6362e905e671a607a132c43fd4602ec5a625b --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-sc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-sc-fonts | grep -v \.src | grep google-noto-sans-sc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-sc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-sc-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-sc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-sc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-sc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-tc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-tc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a78e1fff0cef2273b6c603cf1a0d87709ba3c1c --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-sans-tc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-sans-tc-fonts | grep -v \.src | grep google-noto-sans-tc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-sans-tc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-sans-tc-fonts + CHECK_RESULT $? 0 0 "install google-noto-sans-tc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-sans-tc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-sans-tc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-jp-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-jp-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..7961a18ed2dbefccece8fc5bbd90244573e0db5a --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-jp-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-serif-cjk-jp-fonts | grep -v \.src | grep google-noto-serif-cjk-jp-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-serif-cjk-jp-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-serif-cjk-jp-fonts + CHECK_RESULT $? 0 0 "install google-noto-serif-cjk-jp-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-serif-cjk-jp-fonts + CHECK_RESULT $? 0 0 "remove google-noto-serif-cjk-jp-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-kr-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-kr-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..781960d68c7b0d8a43de53cd3b6159171e241f21 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-kr-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-serif-cjk-kr-fonts | grep -v \.src | grep google-noto-serif-cjk-kr-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-serif-cjk-kr-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-serif-cjk-kr-fonts + CHECK_RESULT $? 0 0 "install google-noto-serif-cjk-kr-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-serif-cjk-kr-fonts + CHECK_RESULT $? 0 0 "remove google-noto-serif-cjk-kr-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-sc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-sc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..80dbd4335dc0991d31b7ffbeb6666b4587a4ecfd --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-sc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-serif-cjk-sc-fonts | grep -v \.src | grep google-noto-serif-cjk-sc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-serif-cjk-sc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-serif-cjk-sc-fonts + CHECK_RESULT $? 0 0 "install google-noto-serif-cjk-sc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-serif-cjk-sc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-serif-cjk-sc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-tc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-tc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bd8c2d5493ed15d60912047b2746ace46ac0bd4 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-tc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-serif-cjk-tc-fonts | grep -v \.src | grep google-noto-serif-cjk-tc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-serif-cjk-tc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-serif-cjk-tc-fonts + CHECK_RESULT $? 0 0 "install google-noto-serif-cjk-tc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-serif-cjk-tc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-serif-cjk-tc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-ttc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-ttc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..345cc1ba2c247ff675bd8ccce745740fad3685f6 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-cjk-ttc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-serif-cjk-ttc-fonts | grep -v \.src | grep google-noto-serif-cjk-ttc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-serif-cjk-ttc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-serif-cjk-ttc-fonts + CHECK_RESULT $? 0 0 "install google-noto-serif-cjk-ttc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-serif-cjk-ttc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-serif-cjk-ttc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-jp-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-jp-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..5401a2e15e20f8caefaf500c2e71cb652ada02bb --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-jp-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-serif-jp-fonts | grep -v \.src | grep google-noto-serif-jp-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-serif-jp-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-serif-jp-fonts + CHECK_RESULT $? 0 0 "install google-noto-serif-jp-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-serif-jp-fonts + CHECK_RESULT $? 0 0 "remove google-noto-serif-jp-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-kr-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-kr-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..722a9e900400f7b6a8312a655e7fe04a0a849d55 --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-kr-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-serif-kr-fonts | grep -v \.src | grep google-noto-serif-kr-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-serif-kr-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-serif-kr-fonts + CHECK_RESULT $? 0 0 "install google-noto-serif-kr-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-serif-kr-fonts + CHECK_RESULT $? 0 0 "remove google-noto-serif-kr-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-sc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-sc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac92e8c3a8241f2a1a8c735675233dc7f04dbcba --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-sc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-serif-sc-fonts | grep -v \.src | grep google-noto-serif-sc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-serif-sc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-serif-sc-fonts + CHECK_RESULT $? 0 0 "install google-noto-serif-sc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-serif-sc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-serif-sc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-tc-fonts.sh b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-tc-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6c1b1539443b51f2216fe7718a6a40eadd7d4ef --- /dev/null +++ b/testcases/cli-test/google-noto-cjk-fonts/oe_test_google-noto-cjk-fonts_install_and_remove_google-noto-serif-tc-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src google-noto-cjk-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available google-noto-serif-tc-fonts | grep -v \.src | grep google-noto-serif-tc-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm google-noto-serif-tc-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y google-noto-serif-tc-fonts + CHECK_RESULT $? 0 0 "install google-noto-serif-tc-fonts failed" + SLEEP_WAIT 1 + dnf remove -y google-noto-serif-tc-fonts + CHECK_RESULT $? 0 0 "remove google-noto-serif-tc-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf-debuginfo.sh b/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7432dba9f0ed174a0852bfbe9702d9cb783360b --- /dev/null +++ b/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gperf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gperf-debuginfo | grep -v \.src | grep gperf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gperf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gperf-debuginfo + CHECK_RESULT $? 0 0 "install gperf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gperf-debuginfo + CHECK_RESULT $? 0 0 "remove gperf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf-debugsource.sh b/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..20651ed061c21deb563a0751c532182d5c6fe3b7 --- /dev/null +++ b/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gperf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gperf-debugsource | grep -v \.src | grep gperf-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gperf-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gperf-debugsource + CHECK_RESULT $? 0 0 "install gperf-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gperf-debugsource + CHECK_RESULT $? 0 0 "remove gperf-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf-help.sh b/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..248f7b0c43ddbc60963d721d3782997cc6c6acc7 --- /dev/null +++ b/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gperf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gperf-help | grep -v \.src | grep gperf-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gperf-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gperf-help + CHECK_RESULT $? 0 0 "install gperf-help failed" + SLEEP_WAIT 1 + dnf remove -y gperf-help + CHECK_RESULT $? 0 0 "remove gperf-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf.sh b/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf.sh new file mode 100644 index 0000000000000000000000000000000000000000..f16a14f42fa28ea62a90185c1cde8fe2919ca547 --- /dev/null +++ b/testcases/cli-test/gperf/oe_test_gperf_install_and_remove_gperf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gperf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gperf | grep -v \.src | grep gperf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gperf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gperf + CHECK_RESULT $? 0 0 "install gperf failed" + SLEEP_WAIT 1 + dnf remove -y gperf + CHECK_RESULT $? 0 0 "remove gperf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-debuginfo.sh b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9426669c90e3394df8e0d80aa7d26b409ddeb8e --- /dev/null +++ b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gperftools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gperftools-debuginfo | grep -v \.src | grep gperftools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gperftools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gperftools-debuginfo + CHECK_RESULT $? 0 0 "install gperftools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gperftools-debuginfo + CHECK_RESULT $? 0 0 "remove gperftools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-debugsource.sh b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c69e5ae3f291bf0a782a9c0260bfc627649ddda --- /dev/null +++ b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gperftools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gperftools-debugsource | grep -v \.src | grep gperftools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gperftools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gperftools-debugsource + CHECK_RESULT $? 0 0 "install gperftools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gperftools-debugsource + CHECK_RESULT $? 0 0 "remove gperftools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-devel.sh b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..096a77750b2ca485d694816f54c6cd87c8c29ebe --- /dev/null +++ b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gperftools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gperftools-devel | grep -v \.src | grep gperftools-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gperftools-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gperftools-devel + CHECK_RESULT $? 0 0 "install gperftools-devel failed" + SLEEP_WAIT 1 + dnf remove -y gperftools-devel + CHECK_RESULT $? 0 0 "remove gperftools-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-libs.sh b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..7120e95be4629ec6f4bf85439db04d8a1aebd198 --- /dev/null +++ b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gperftools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gperftools-libs | grep -v \.src | grep gperftools-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gperftools-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gperftools-libs + CHECK_RESULT $? 0 0 "install gperftools-libs failed" + SLEEP_WAIT 1 + dnf remove -y gperftools-libs + CHECK_RESULT $? 0 0 "remove gperftools-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools.sh b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9d2ee98f5a66b4c719092508bf3ff29447ac166 --- /dev/null +++ b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_gperftools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gperftools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gperftools | grep -v \.src | grep gperftools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gperftools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gperftools + CHECK_RESULT $? 0 0 "install gperftools failed" + SLEEP_WAIT 1 + dnf remove -y gperftools + CHECK_RESULT $? 0 0 "remove gperftools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_pprof.sh b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_pprof.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f9ef543b0e23a73dc6b952c4ff9fbbdca3c8298 --- /dev/null +++ b/testcases/cli-test/gperftools/oe_test_gperftools_install_and_remove_pprof.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gperftools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pprof | grep -v \.src | grep pprof + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pprof" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pprof + CHECK_RESULT $? 0 0 "install pprof failed" + SLEEP_WAIT 1 + dnf remove -y pprof + CHECK_RESULT $? 0 0 "remove pprof failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_cpp-gpgme.sh b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_cpp-gpgme.sh new file mode 100644 index 0000000000000000000000000000000000000000..b604efaed44b1fe52fa139f35364e32dda4016f8 --- /dev/null +++ b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_cpp-gpgme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpgme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cpp-gpgme | grep -v \.src | grep cpp-gpgme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cpp-gpgme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cpp-gpgme + CHECK_RESULT $? 0 0 "install cpp-gpgme failed" + SLEEP_WAIT 1 + dnf remove -y cpp-gpgme + CHECK_RESULT $? 0 0 "remove cpp-gpgme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-debuginfo.sh b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..abb46dd52f1b1b750f8dfa4aaeec2309faa08cb5 --- /dev/null +++ b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpgme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpgme-debuginfo | grep -v \.src | grep gpgme-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpgme-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpgme-debuginfo + CHECK_RESULT $? 0 0 "install gpgme-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gpgme-debuginfo + CHECK_RESULT $? 0 0 "remove gpgme-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-debugsource.sh b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4086ea8a50dea4be1b363082944267902bf82a0 --- /dev/null +++ b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpgme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpgme-debugsource | grep -v \.src | grep gpgme-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpgme-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpgme-debugsource + CHECK_RESULT $? 0 0 "install gpgme-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gpgme-debugsource + CHECK_RESULT $? 0 0 "remove gpgme-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-devel.sh b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..750cb77abc0351d07d0183bda2b33630182c8563 --- /dev/null +++ b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpgme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpgme-devel | grep -v \.src | grep gpgme-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpgme-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpgme-devel + CHECK_RESULT $? 0 0 "install gpgme-devel failed" + SLEEP_WAIT 1 + dnf remove -y gpgme-devel + CHECK_RESULT $? 0 0 "remove gpgme-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-help.sh b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..eaed6eff8b8ded6ab19788f94ebd3e7ed7fefa1c --- /dev/null +++ b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpgme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpgme-help | grep -v \.src | grep gpgme-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpgme-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpgme-help + CHECK_RESULT $? 0 0 "install gpgme-help failed" + SLEEP_WAIT 1 + dnf remove -y gpgme-help + CHECK_RESULT $? 0 0 "remove gpgme-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme.sh b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbb3ac037c6fc62b520e464c36d71a7984eaadf4 --- /dev/null +++ b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_gpgme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpgme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpgme | grep -v \.src | grep gpgme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpgme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpgme + CHECK_RESULT $? 0 0 "install gpgme failed" + SLEEP_WAIT 1 + dnf remove -y gpgme + CHECK_RESULT $? 0 0 "remove gpgme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_python2-gpgme.sh b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_python2-gpgme.sh new file mode 100644 index 0000000000000000000000000000000000000000..917cce15359281e35b3e1c42f4975f488926816c --- /dev/null +++ b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_python2-gpgme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpgme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-gpgme | grep -v \.src | grep python2-gpgme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-gpgme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-gpgme + CHECK_RESULT $? 0 0 "install python2-gpgme failed" + SLEEP_WAIT 1 + dnf remove -y python2-gpgme + CHECK_RESULT $? 0 0 "remove python2-gpgme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_python3-gpgme.sh b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_python3-gpgme.sh new file mode 100644 index 0000000000000000000000000000000000000000..82e87afea75e276c989aea9b38274a245b535883 --- /dev/null +++ b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_python3-gpgme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpgme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-gpgme | grep -v \.src | grep python3-gpgme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-gpgme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-gpgme + CHECK_RESULT $? 0 0 "install python3-gpgme failed" + SLEEP_WAIT 1 + dnf remove -y python3-gpgme + CHECK_RESULT $? 0 0 "remove python3-gpgme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_qt-gpgme.sh b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_qt-gpgme.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2c7a1c38d534c36bf4ffdd887b6b56d643406e6 --- /dev/null +++ b/testcases/cli-test/gpgme/oe_test_gpgme_install_and_remove_qt-gpgme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpgme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt-gpgme | grep -v \.src | grep qt-gpgme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt-gpgme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt-gpgme + CHECK_RESULT $? 0 0 "install qt-gpgme failed" + SLEEP_WAIT 1 + dnf remove -y qt-gpgme + CHECK_RESULT $? 0 0 "remove qt-gpgme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2-debuginfo.sh b/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac8e92948b368a1cf26a0738f7c3b43786f2f3f2 --- /dev/null +++ b/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gphoto2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gphoto2-debuginfo | grep -v \.src | grep gphoto2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gphoto2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gphoto2-debuginfo + CHECK_RESULT $? 0 0 "install gphoto2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gphoto2-debuginfo + CHECK_RESULT $? 0 0 "remove gphoto2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2-debugsource.sh b/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..382eae3ca5e43b7e4f3a3e48394aa3be0209ebc1 --- /dev/null +++ b/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gphoto2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gphoto2-debugsource | grep -v \.src | grep gphoto2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gphoto2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gphoto2-debugsource + CHECK_RESULT $? 0 0 "install gphoto2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gphoto2-debugsource + CHECK_RESULT $? 0 0 "remove gphoto2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2-help.sh b/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5201460213c783a21ab88d629493780d4044488f --- /dev/null +++ b/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gphoto2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gphoto2-help | grep -v \.src | grep gphoto2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gphoto2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gphoto2-help + CHECK_RESULT $? 0 0 "install gphoto2-help failed" + SLEEP_WAIT 1 + dnf remove -y gphoto2-help + CHECK_RESULT $? 0 0 "remove gphoto2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2.sh b/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1012832bc04e35db18845e910d2fa7d944cd1e4 --- /dev/null +++ b/testcases/cli-test/gphoto2/oe_test_gphoto2_install_and_remove_gphoto2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gphoto2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gphoto2 | grep -v \.src | grep gphoto2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gphoto2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gphoto2 + CHECK_RESULT $? 0 0 "install gphoto2 failed" + SLEEP_WAIT 1 + dnf remove -y gphoto2 + CHECK_RESULT $? 0 0 "remove gphoto2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-debuginfo.sh b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4df74cffe420b52940ed2948a381d4b2524a5e1a --- /dev/null +++ b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpm-debuginfo | grep -v \.src | grep gpm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpm-debuginfo + CHECK_RESULT $? 0 0 "install gpm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gpm-debuginfo + CHECK_RESULT $? 0 0 "remove gpm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-debugsource.sh b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e11c4e6ffe2541045a9c8c7b84f35d4a3d3c37e0 --- /dev/null +++ b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpm-debugsource | grep -v \.src | grep gpm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpm-debugsource + CHECK_RESULT $? 0 0 "install gpm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gpm-debugsource + CHECK_RESULT $? 0 0 "remove gpm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-devel.sh b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4157eef78fdfcdff0af51638acbadf32d6476e8 --- /dev/null +++ b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpm-devel | grep -v \.src | grep gpm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpm-devel + CHECK_RESULT $? 0 0 "install gpm-devel failed" + SLEEP_WAIT 1 + dnf remove -y gpm-devel + CHECK_RESULT $? 0 0 "remove gpm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-help.sh b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab0cc5b973f04eb3d50b8455040e645b89c2ed58 --- /dev/null +++ b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpm-help | grep -v \.src | grep gpm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpm-help + CHECK_RESULT $? 0 0 "install gpm-help failed" + SLEEP_WAIT 1 + dnf remove -y gpm-help + CHECK_RESULT $? 0 0 "remove gpm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-libs.sh b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..55be7205f9a8694ccf08895c203a886080e3f9ae --- /dev/null +++ b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpm-libs | grep -v \.src | grep gpm-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpm-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpm-libs + CHECK_RESULT $? 0 0 "install gpm-libs failed" + SLEEP_WAIT 1 + dnf remove -y gpm-libs + CHECK_RESULT $? 0 0 "remove gpm-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm.sh b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm.sh new file mode 100644 index 0000000000000000000000000000000000000000..18d73eda2685d3470f8d1844a2b91652b8128dbe --- /dev/null +++ b/testcases/cli-test/gpm/oe_test_gpm_install_and_remove_gpm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gpm | grep -v \.src | grep gpm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gpm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gpm + CHECK_RESULT $? 0 0 "install gpm failed" + SLEEP_WAIT 1 + dnf remove -y gpm + CHECK_RESULT $? 0 0 "remove gpm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-debuginfo.sh b/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7915857d90f07cbf081138901827bfdab1d79d3c --- /dev/null +++ b/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphene +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphene-debuginfo | grep -v \.src | grep graphene-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphene-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphene-debuginfo + CHECK_RESULT $? 0 0 "install graphene-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y graphene-debuginfo + CHECK_RESULT $? 0 0 "remove graphene-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-debugsource.sh b/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1446a2b0b89739666ee0dce399d945c0c57dd746 --- /dev/null +++ b/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphene +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphene-debugsource | grep -v \.src | grep graphene-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphene-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphene-debugsource + CHECK_RESULT $? 0 0 "install graphene-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y graphene-debugsource + CHECK_RESULT $? 0 0 "remove graphene-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-devel.sh b/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..91ed65669925ad200ca46636f919a2a091422644 --- /dev/null +++ b/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphene +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphene-devel | grep -v \.src | grep graphene-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphene-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphene-devel + CHECK_RESULT $? 0 0 "install graphene-devel failed" + SLEEP_WAIT 1 + dnf remove -y graphene-devel + CHECK_RESULT $? 0 0 "remove graphene-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-tests.sh b/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3f23843bff3f50aac83e68359f42b08ac77b39f --- /dev/null +++ b/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphene +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphene-tests | grep -v \.src | grep graphene-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphene-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphene-tests + CHECK_RESULT $? 0 0 "install graphene-tests failed" + SLEEP_WAIT 1 + dnf remove -y graphene-tests + CHECK_RESULT $? 0 0 "remove graphene-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene.sh b/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c6c26e9155eef5a151e4690e638efdd5661f5eb --- /dev/null +++ b/testcases/cli-test/graphene/oe_test_graphene_install_and_remove_graphene.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphene +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphene | grep -v \.src | grep graphene + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphene" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphene + CHECK_RESULT $? 0 0 "install graphene failed" + SLEEP_WAIT 1 + dnf remove -y graphene + CHECK_RESULT $? 0 0 "remove graphene failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2-debuginfo.sh b/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e4e487d4c8f14d61b13a7244b6b0f0dfe65436b --- /dev/null +++ b/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphite2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphite2-debuginfo | grep -v \.src | grep graphite2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphite2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphite2-debuginfo + CHECK_RESULT $? 0 0 "install graphite2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y graphite2-debuginfo + CHECK_RESULT $? 0 0 "remove graphite2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2-debugsource.sh b/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8f3c2cdabdeb7b798412453e94262a351952a21 --- /dev/null +++ b/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphite2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphite2-debugsource | grep -v \.src | grep graphite2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphite2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphite2-debugsource + CHECK_RESULT $? 0 0 "install graphite2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y graphite2-debugsource + CHECK_RESULT $? 0 0 "remove graphite2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2-devel.sh b/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d2bb006fe12df76c6d3ee1e6b7aa306868f3960 --- /dev/null +++ b/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphite2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphite2-devel | grep -v \.src | grep graphite2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphite2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphite2-devel + CHECK_RESULT $? 0 0 "install graphite2-devel failed" + SLEEP_WAIT 1 + dnf remove -y graphite2-devel + CHECK_RESULT $? 0 0 "remove graphite2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2.sh b/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2.sh new file mode 100644 index 0000000000000000000000000000000000000000..52f40215ae5793752786b89c01be44b85d51d809 --- /dev/null +++ b/testcases/cli-test/graphite2/oe_test_graphite2_install_and_remove_graphite2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphite2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphite2 | grep -v \.src | grep graphite2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphite2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphite2 + CHECK_RESULT $? 0 0 "install graphite2 failed" + SLEEP_WAIT 1 + dnf remove -y graphite2 + CHECK_RESULT $? 0 0 "remove graphite2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-debuginfo.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..44e6d3cd5d7330de733be8a17ad7038410796a9c --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-debuginfo | grep -v \.src | grep graphviz-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-debuginfo + CHECK_RESULT $? 0 0 "install graphviz-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-debuginfo + CHECK_RESULT $? 0 0 "remove graphviz-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-debugsource.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa6a81120aac30062cc6dfa54a3e930d9572eacc --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-debugsource | grep -v \.src | grep graphviz-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-debugsource + CHECK_RESULT $? 0 0 "install graphviz-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-debugsource + CHECK_RESULT $? 0 0 "remove graphviz-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-devel.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..65eef7cff397b0064791911402ef41eb29466f84 --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-devel | grep -v \.src | grep graphviz-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-devel + CHECK_RESULT $? 0 0 "install graphviz-devel failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-devel + CHECK_RESULT $? 0 0 "remove graphviz-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-docs.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-docs.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0cee868892746222b4b9bc000b10e190413539b --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-docs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-docs | grep -v \.src | grep graphviz-docs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-docs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-docs + CHECK_RESULT $? 0 0 "install graphviz-docs failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-docs + CHECK_RESULT $? 0 0 "remove graphviz-docs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-gd.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-gd.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e2114ce24faac8af9c776bc3f6ed4fad6b04423 --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-gd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-gd | grep -v \.src | grep graphviz-gd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-gd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-gd + CHECK_RESULT $? 0 0 "install graphviz-gd failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-gd + CHECK_RESULT $? 0 0 "remove graphviz-gd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-graphs.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-graphs.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f4865ae28d5f084e9eed849f76286494f7ef6e0 --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-graphs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-graphs | grep -v \.src | grep graphviz-graphs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-graphs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-graphs + CHECK_RESULT $? 0 0 "install graphviz-graphs failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-graphs + CHECK_RESULT $? 0 0 "remove graphviz-graphs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-guile.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-guile.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccfe0c454abb661e5ae0d798b473908b36e70be7 --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-guile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-guile | grep -v \.src | grep graphviz-guile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-guile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-guile + CHECK_RESULT $? 0 0 "install graphviz-guile failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-guile + CHECK_RESULT $? 0 0 "remove graphviz-guile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-java.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-java.sh new file mode 100644 index 0000000000000000000000000000000000000000..11f9d6fc2c39c94bd687731adc4c7cb01429fdbd --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-java.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-java | grep -v \.src | grep graphviz-java + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-java" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-java + CHECK_RESULT $? 0 0 "install graphviz-java failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-java + CHECK_RESULT $? 0 0 "remove graphviz-java failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-lua.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-lua.sh new file mode 100644 index 0000000000000000000000000000000000000000..299532d8c97856d7f4ec6c382d0b457f3911c1fd --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-lua.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-lua | grep -v \.src | grep graphviz-lua + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-lua" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-lua + CHECK_RESULT $? 0 0 "install graphviz-lua failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-lua + CHECK_RESULT $? 0 0 "remove graphviz-lua failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-ocaml.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-ocaml.sh new file mode 100644 index 0000000000000000000000000000000000000000..5be2f59000862116ba863f93bf82edb54324d46b --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-ocaml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-ocaml | grep -v \.src | grep graphviz-ocaml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-ocaml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-ocaml + CHECK_RESULT $? 0 0 "install graphviz-ocaml failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-ocaml + CHECK_RESULT $? 0 0 "remove graphviz-ocaml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-perl.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-perl.sh new file mode 100644 index 0000000000000000000000000000000000000000..48a8f9c5bcb654e99e077502ff93b992be3da24d --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-perl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-perl | grep -v \.src | grep graphviz-perl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-perl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-perl + CHECK_RESULT $? 0 0 "install graphviz-perl failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-perl + CHECK_RESULT $? 0 0 "remove graphviz-perl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-php.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-php.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4a0a35e210e841d443875aefd3ec48321238953 --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-php.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-php | grep -v \.src | grep graphviz-php + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-php" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-php + CHECK_RESULT $? 0 0 "install graphviz-php failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-php + CHECK_RESULT $? 0 0 "remove graphviz-php failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-python2.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-python2.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ab14b51940220c2b4ab2660028cae615da10fa8 --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-python2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-python2 | grep -v \.src | grep graphviz-python2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-python2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-python2 + CHECK_RESULT $? 0 0 "install graphviz-python2 failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-python2 + CHECK_RESULT $? 0 0 "remove graphviz-python2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-python3.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-python3.sh new file mode 100644 index 0000000000000000000000000000000000000000..7774ee387d30ed332e48c4579a8bed51c55f984b --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-python3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-python3 | grep -v \.src | grep graphviz-python3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-python3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-python3 + CHECK_RESULT $? 0 0 "install graphviz-python3 failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-python3 + CHECK_RESULT $? 0 0 "remove graphviz-python3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-ruby.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-ruby.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd36a913974fe8e4174199184019b22812677da2 --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-ruby.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-ruby | grep -v \.src | grep graphviz-ruby + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-ruby" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-ruby + CHECK_RESULT $? 0 0 "install graphviz-ruby failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-ruby + CHECK_RESULT $? 0 0 "remove graphviz-ruby failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-tcl.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-tcl.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f0636ce6febea5a74f0ffac81d9c4004b915d7a --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz-tcl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz-tcl | grep -v \.src | grep graphviz-tcl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz-tcl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz-tcl + CHECK_RESULT $? 0 0 "install graphviz-tcl failed" + SLEEP_WAIT 1 + dnf remove -y graphviz-tcl + CHECK_RESULT $? 0 0 "remove graphviz-tcl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz.sh b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz.sh new file mode 100644 index 0000000000000000000000000000000000000000..f94fe11f26645ee92a5da4b24b78d32c733d596f --- /dev/null +++ b/testcases/cli-test/graphviz/oe_test_graphviz_install_and_remove_graphviz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src graphviz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available graphviz | grep -v \.src | grep graphviz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm graphviz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y graphviz + CHECK_RESULT $? 0 0 "install graphviz failed" + SLEEP_WAIT 1 + dnf remove -y graphviz + CHECK_RESULT $? 0 0 "remove graphviz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grep/oe_test_grep_install_and_remove_grep-debuginfo.sh b/testcases/cli-test/grep/oe_test_grep_install_and_remove_grep-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..785fc642400ec9c5a59ccaf0f3d2703fcbea63f3 --- /dev/null +++ b/testcases/cli-test/grep/oe_test_grep_install_and_remove_grep-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grep +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grep-debuginfo | grep -v \.src | grep grep-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grep-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grep-debuginfo + CHECK_RESULT $? 0 0 "install grep-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y grep-debuginfo + CHECK_RESULT $? 0 0 "remove grep-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grep/oe_test_grep_install_and_remove_grep-debugsource.sh b/testcases/cli-test/grep/oe_test_grep_install_and_remove_grep-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a4968126c2c0772f1f7768441098090814f600c --- /dev/null +++ b/testcases/cli-test/grep/oe_test_grep_install_and_remove_grep-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grep +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grep-debugsource | grep -v \.src | grep grep-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grep-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grep-debugsource + CHECK_RESULT $? 0 0 "install grep-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y grep-debugsource + CHECK_RESULT $? 0 0 "remove grep-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grep/oe_test_grep_install_and_remove_grep.sh b/testcases/cli-test/grep/oe_test_grep_install_and_remove_grep.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d3c4c83acd861a334e6c57b28661cc3c034adc3 --- /dev/null +++ b/testcases/cli-test/grep/oe_test_grep_install_and_remove_grep.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grep +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grep | grep -v \.src | grep grep + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grep" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grep + CHECK_RESULT $? 0 0 "install grep failed" + SLEEP_WAIT 1 + dnf remove -y grep + CHECK_RESULT $? 0 0 "remove grep failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-base.sh b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..54f39747efe291b28be3a7468211870429c3ae47 --- /dev/null +++ b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src groff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available groff-base | grep -v \.src | grep groff-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm groff-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y groff-base + CHECK_RESULT $? 0 0 "install groff-base failed" + SLEEP_WAIT 1 + dnf remove -y groff-base + CHECK_RESULT $? 0 0 "remove groff-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-debuginfo.sh b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..153880f18dada6b9326862f1398eaa259f80a03b --- /dev/null +++ b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src groff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available groff-debuginfo | grep -v \.src | grep groff-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm groff-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y groff-debuginfo + CHECK_RESULT $? 0 0 "install groff-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y groff-debuginfo + CHECK_RESULT $? 0 0 "remove groff-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-debugsource.sh b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a37568a675370be0a3b9fc5c319193d77645e9a --- /dev/null +++ b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src groff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available groff-debugsource | grep -v \.src | grep groff-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm groff-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y groff-debugsource + CHECK_RESULT $? 0 0 "install groff-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y groff-debugsource + CHECK_RESULT $? 0 0 "remove groff-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-help.sh b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e80c74ce48e53e85e17bdd213a6ee45ebd136167 --- /dev/null +++ b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src groff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available groff-help | grep -v \.src | grep groff-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm groff-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y groff-help + CHECK_RESULT $? 0 0 "install groff-help failed" + SLEEP_WAIT 1 + dnf remove -y groff-help + CHECK_RESULT $? 0 0 "remove groff-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-x11.sh b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-x11.sh new file mode 100644 index 0000000000000000000000000000000000000000..7244e615db21b0ad02fe1f0020ff7aa0676c606b --- /dev/null +++ b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff-x11.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src groff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available groff-x11 | grep -v \.src | grep groff-x11 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm groff-x11" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y groff-x11 + CHECK_RESULT $? 0 0 "install groff-x11 failed" + SLEEP_WAIT 1 + dnf remove -y groff-x11 + CHECK_RESULT $? 0 0 "remove groff-x11 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff.sh b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff.sh new file mode 100644 index 0000000000000000000000000000000000000000..724ae4cdedfc7bc8522bf776a29ac82666c96ff6 --- /dev/null +++ b/testcases/cli-test/groff/oe_test_groff_install_and_remove_groff.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src groff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available groff | grep -v \.src | grep groff + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm groff" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y groff + CHECK_RESULT $? 0 0 "install groff failed" + SLEEP_WAIT 1 + dnf remove -y groff + CHECK_RESULT $? 0 0 "remove groff failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-common.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..9611cb1a8a5978fc16cdeeda534ad4e7a1da3b34 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-common | grep -v \.src | grep grub2-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-common + CHECK_RESULT $? 0 0 "install grub2-common failed" + SLEEP_WAIT 1 + dnf remove -y grub2-common + CHECK_RESULT $? 0 0 "remove grub2-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-debuginfo.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e41b99c5b6f35d965d3c9a007489f9d56bd06b4 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-debuginfo | grep -v \.src | grep grub2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-debuginfo + CHECK_RESULT $? 0 0 "install grub2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y grub2-debuginfo + CHECK_RESULT $? 0 0 "remove grub2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-debugsource.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..95d20df4fbd2b0933a40538048394570bc8a9ffa --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-debugsource | grep -v \.src | grep grub2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-debugsource + CHECK_RESULT $? 0 0 "install grub2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y grub2-debugsource + CHECK_RESULT $? 0 0 "remove grub2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-aa64-cdboot.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-aa64-cdboot.sh new file mode 100644 index 0000000000000000000000000000000000000000..a543b7e55e6b621dad0a1b67c013c740dc9714f2 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-aa64-cdboot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-aa64-cdboot | grep -v \.src | grep grub2-efi-aa64-cdboot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-aa64-cdboot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-aa64-cdboot + CHECK_RESULT $? 0 0 "install grub2-efi-aa64-cdboot failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-aa64-cdboot + CHECK_RESULT $? 0 0 "remove grub2-efi-aa64-cdboot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-aa64-modules.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-aa64-modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d9ed39c83f4cc21be49adeb3746dbe988ef50ab --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-aa64-modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-aa64-modules | grep -v \.src | grep grub2-efi-aa64-modules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-aa64-modules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-aa64-modules + CHECK_RESULT $? 0 0 "install grub2-efi-aa64-modules failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-aa64-modules + CHECK_RESULT $? 0 0 "remove grub2-efi-aa64-modules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-aa64.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-aa64.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6a7a8b6b56348708fd5b52c746998c4dc401604 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-aa64.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-aa64 | grep -v \.src | grep grub2-efi-aa64 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-aa64" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-aa64 + CHECK_RESULT $? 0 0 "install grub2-efi-aa64 failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-aa64 + CHECK_RESULT $? 0 0 "remove grub2-efi-aa64 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-ia32-cdboot.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-ia32-cdboot.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ee7ac293df7fa7463840d6096f88f94e5da7770 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-ia32-cdboot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-ia32-cdboot | grep -v \.src | grep grub2-efi-ia32-cdboot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-ia32-cdboot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-ia32-cdboot + CHECK_RESULT $? 0 0 "install grub2-efi-ia32-cdboot failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-ia32-cdboot + CHECK_RESULT $? 0 0 "remove grub2-efi-ia32-cdboot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-ia32-modules.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-ia32-modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab3f6922316407a033b5f093d5d490916dc8e9c3 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-ia32-modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-ia32-modules | grep -v \.src | grep grub2-efi-ia32-modules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-ia32-modules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-ia32-modules + CHECK_RESULT $? 0 0 "install grub2-efi-ia32-modules failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-ia32-modules + CHECK_RESULT $? 0 0 "remove grub2-efi-ia32-modules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-ia32.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-ia32.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3ea5623a9eef1cf394319f6c0d829f2a71d81b5 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-ia32.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-ia32 | grep -v \.src | grep grub2-efi-ia32 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-ia32" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-ia32 + CHECK_RESULT $? 0 0 "install grub2-efi-ia32 failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-ia32 + CHECK_RESULT $? 0 0 "remove grub2-efi-ia32 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-loongarch64-modules.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-loongarch64-modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2d9265a0af7f2269d2ee99346126553347a22c3 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-loongarch64-modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-loongarch64-modules | grep -v \.src | grep grub2-efi-loongarch64-modules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-loongarch64-modules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-loongarch64-modules + CHECK_RESULT $? 0 0 "install grub2-efi-loongarch64-modules failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-loongarch64-modules + CHECK_RESULT $? 0 0 "remove grub2-efi-loongarch64-modules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-loongarch64.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-loongarch64.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a14c6de0c81786a6213bcc91ae3988070cdcf45 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-loongarch64.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-loongarch64 | grep -v \.src | grep grub2-efi-loongarch64 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-loongarch64" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-loongarch64 + CHECK_RESULT $? 0 0 "install grub2-efi-loongarch64 failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-loongarch64 + CHECK_RESULT $? 0 0 "remove grub2-efi-loongarch64 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-riscv64-cdboot.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-riscv64-cdboot.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d8e839890cf1fcf95c6c00ea44c2fe034fe722f --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-riscv64-cdboot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-riscv64-cdboot | grep -v \.src | grep grub2-efi-riscv64-cdboot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-riscv64-cdboot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-riscv64-cdboot + CHECK_RESULT $? 0 0 "install grub2-efi-riscv64-cdboot failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-riscv64-cdboot + CHECK_RESULT $? 0 0 "remove grub2-efi-riscv64-cdboot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-riscv64-modules.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-riscv64-modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0b93c108406e13c4ec3a028f7cf47f448bb1a25 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-riscv64-modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-riscv64-modules | grep -v \.src | grep grub2-efi-riscv64-modules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-riscv64-modules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-riscv64-modules + CHECK_RESULT $? 0 0 "install grub2-efi-riscv64-modules failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-riscv64-modules + CHECK_RESULT $? 0 0 "remove grub2-efi-riscv64-modules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-riscv64.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-riscv64.sh new file mode 100644 index 0000000000000000000000000000000000000000..34366a0bdb558a6768b24e7f9325e65c5acc3e38 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-riscv64.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-riscv64 | grep -v \.src | grep grub2-efi-riscv64 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-riscv64" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-riscv64 + CHECK_RESULT $? 0 0 "install grub2-efi-riscv64 failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-riscv64 + CHECK_RESULT $? 0 0 "remove grub2-efi-riscv64 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-x64-cdboot.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-x64-cdboot.sh new file mode 100644 index 0000000000000000000000000000000000000000..7480ef6b3ab2dec9727211cbe353e04d0b722182 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-x64-cdboot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-x64-cdboot | grep -v \.src | grep grub2-efi-x64-cdboot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-x64-cdboot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-x64-cdboot + CHECK_RESULT $? 0 0 "install grub2-efi-x64-cdboot failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-x64-cdboot + CHECK_RESULT $? 0 0 "remove grub2-efi-x64-cdboot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-x64-modules.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-x64-modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d66df0cc3b2e514f8d1a415395832208f85fc58 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-x64-modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-x64-modules | grep -v \.src | grep grub2-efi-x64-modules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-x64-modules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-x64-modules + CHECK_RESULT $? 0 0 "install grub2-efi-x64-modules failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-x64-modules + CHECK_RESULT $? 0 0 "remove grub2-efi-x64-modules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-x64.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-x64.sh new file mode 100644 index 0000000000000000000000000000000000000000..210549330fad17118bd41c006fae2e603a150128 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-efi-x64.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-efi-x64 | grep -v \.src | grep grub2-efi-x64 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-efi-x64" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-efi-x64 + CHECK_RESULT $? 0 0 "install grub2-efi-x64 failed" + SLEEP_WAIT 1 + dnf remove -y grub2-efi-x64 + CHECK_RESULT $? 0 0 "remove grub2-efi-x64 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-emu-modules.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-emu-modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d5cea84f3c5a2739a3eb5299854c13cefb0070c --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-emu-modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-emu-modules | grep -v \.src | grep grub2-emu-modules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-emu-modules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-emu-modules + CHECK_RESULT $? 0 0 "install grub2-emu-modules failed" + SLEEP_WAIT 1 + dnf remove -y grub2-emu-modules + CHECK_RESULT $? 0 0 "remove grub2-emu-modules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-emu.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-emu.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d042cfa28ff4dbac5e892a128f748b0d2bcacfe --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-emu.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-emu | grep -v \.src | grep grub2-emu + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-emu" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-emu + CHECK_RESULT $? 0 0 "install grub2-emu failed" + SLEEP_WAIT 1 + dnf remove -y grub2-emu + CHECK_RESULT $? 0 0 "remove grub2-emu failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-help.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..af0ecc2f1ff6681645f3b97519d8a68f3efbf4c9 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-help | grep -v \.src | grep grub2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-help + CHECK_RESULT $? 0 0 "install grub2-help failed" + SLEEP_WAIT 1 + dnf remove -y grub2-help + CHECK_RESULT $? 0 0 "remove grub2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-pc-modules.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-pc-modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..edffd08838b509af13c5ebea7e97a69523fbefb0 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-pc-modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-pc-modules | grep -v \.src | grep grub2-pc-modules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-pc-modules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-pc-modules + CHECK_RESULT $? 0 0 "install grub2-pc-modules failed" + SLEEP_WAIT 1 + dnf remove -y grub2-pc-modules + CHECK_RESULT $? 0 0 "remove grub2-pc-modules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-pc.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-pc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c50c906f57a3c7b25dd31b97b677d927d40338d --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-pc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-pc | grep -v \.src | grep grub2-pc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-pc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-pc + CHECK_RESULT $? 0 0 "install grub2-pc failed" + SLEEP_WAIT 1 + dnf remove -y grub2-pc + CHECK_RESULT $? 0 0 "remove grub2-pc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools-efi.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools-efi.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cf14c0b6b2a3e577c31141526b3ddd9f8a4ce4f --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools-efi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-tools-efi | grep -v \.src | grep grub2-tools-efi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-tools-efi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-tools-efi + CHECK_RESULT $? 0 0 "install grub2-tools-efi failed" + SLEEP_WAIT 1 + dnf remove -y grub2-tools-efi + CHECK_RESULT $? 0 0 "remove grub2-tools-efi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools-extra.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools-extra.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c989c9e05e86553954c81b7c14ce8fab2fe0de3 --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools-extra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-tools-extra | grep -v \.src | grep grub2-tools-extra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-tools-extra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-tools-extra + CHECK_RESULT $? 0 0 "install grub2-tools-extra failed" + SLEEP_WAIT 1 + dnf remove -y grub2-tools-extra + CHECK_RESULT $? 0 0 "remove grub2-tools-extra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools-minimal.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools-minimal.sh new file mode 100644 index 0000000000000000000000000000000000000000..dcc83bbc5989d904cff5a5d24366f9ae183ece3d --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools-minimal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-tools-minimal | grep -v \.src | grep grub2-tools-minimal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-tools-minimal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-tools-minimal + CHECK_RESULT $? 0 0 "install grub2-tools-minimal failed" + SLEEP_WAIT 1 + dnf remove -y grub2-tools-minimal + CHECK_RESULT $? 0 0 "remove grub2-tools-minimal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d67eb807db4fe9872cab5cfa64dd634baed3aee --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2-tools | grep -v \.src | grep grub2-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2-tools + CHECK_RESULT $? 0 0 "install grub2-tools failed" + SLEEP_WAIT 1 + dnf remove -y grub2-tools + CHECK_RESULT $? 0 0 "remove grub2-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2.sh b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7a4fc48be075b5532901975e27a3721b0cd7cba --- /dev/null +++ b/testcases/cli-test/grub2/oe_test_grub2_install_and_remove_grub2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grub2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grub2 | grep -v \.src | grep grub2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grub2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grub2 + CHECK_RESULT $? 0 0 "install grub2 failed" + SLEEP_WAIT 1 + dnf remove -y grub2 + CHECK_RESULT $? 0 0 "remove grub2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-bls.sh b/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-bls.sh new file mode 100644 index 0000000000000000000000000000000000000000..33c42a39e5d3de5d84bcbf924ef49bb14c2bd9be --- /dev/null +++ b/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-bls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grubby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grubby-bls | grep -v \.src | grep grubby-bls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grubby-bls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grubby-bls + CHECK_RESULT $? 0 0 "install grubby-bls failed" + SLEEP_WAIT 1 + dnf remove -y grubby-bls + CHECK_RESULT $? 0 0 "remove grubby-bls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-debuginfo.sh b/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..63c6a70d20657eb08a65639c1ffe38a62e25092f --- /dev/null +++ b/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grubby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grubby-debuginfo | grep -v \.src | grep grubby-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grubby-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grubby-debuginfo + CHECK_RESULT $? 0 0 "install grubby-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y grubby-debuginfo + CHECK_RESULT $? 0 0 "remove grubby-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-debugsource.sh b/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a37de996d4c25fbf3c519e3961bee24e866c933 --- /dev/null +++ b/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grubby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grubby-debugsource | grep -v \.src | grep grubby-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grubby-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grubby-debugsource + CHECK_RESULT $? 0 0 "install grubby-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y grubby-debugsource + CHECK_RESULT $? 0 0 "remove grubby-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-help.sh b/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..22b9543d820611686d984b1240aea79222e8ef65 --- /dev/null +++ b/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grubby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grubby-help | grep -v \.src | grep grubby-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grubby-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grubby-help + CHECK_RESULT $? 0 0 "install grubby-help failed" + SLEEP_WAIT 1 + dnf remove -y grubby-help + CHECK_RESULT $? 0 0 "remove grubby-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby.sh b/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby.sh new file mode 100644 index 0000000000000000000000000000000000000000..01c2b545a06632f90a9976a0986b9b714fddf588 --- /dev/null +++ b/testcases/cli-test/grubby/oe_test_grubby_install_and_remove_grubby.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src grubby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available grubby | grep -v \.src | grep grubby + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm grubby" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y grubby + CHECK_RESULT $? 0 0 "install grubby failed" + SLEEP_WAIT 1 + dnf remove -y grubby + CHECK_RESULT $? 0 0 "remove grubby failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gsettings-desktop-schemas/oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas-devel.sh b/testcases/cli-test/gsettings-desktop-schemas/oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb06c2c13f6444579b321fc76aad607ea93841fc --- /dev/null +++ b/testcases/cli-test/gsettings-desktop-schemas/oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gsettings-desktop-schemas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gsettings-desktop-schemas-devel | grep -v \.src | grep gsettings-desktop-schemas-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gsettings-desktop-schemas-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gsettings-desktop-schemas-devel + CHECK_RESULT $? 0 0 "install gsettings-desktop-schemas-devel failed" + SLEEP_WAIT 1 + dnf remove -y gsettings-desktop-schemas-devel + CHECK_RESULT $? 0 0 "remove gsettings-desktop-schemas-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gsettings-desktop-schemas/oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas-help.sh b/testcases/cli-test/gsettings-desktop-schemas/oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4baaf9eaf95ec66b4e8c58314b5ab136230c80b --- /dev/null +++ b/testcases/cli-test/gsettings-desktop-schemas/oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gsettings-desktop-schemas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gsettings-desktop-schemas-help | grep -v \.src | grep gsettings-desktop-schemas-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gsettings-desktop-schemas-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gsettings-desktop-schemas-help + CHECK_RESULT $? 0 0 "install gsettings-desktop-schemas-help failed" + SLEEP_WAIT 1 + dnf remove -y gsettings-desktop-schemas-help + CHECK_RESULT $? 0 0 "remove gsettings-desktop-schemas-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gsettings-desktop-schemas/oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas.sh b/testcases/cli-test/gsettings-desktop-schemas/oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e432b3583ad653ae931dcc2b96cd9234813a940 --- /dev/null +++ b/testcases/cli-test/gsettings-desktop-schemas/oe_test_gsettings-desktop-schemas_install_and_remove_gsettings-desktop-schemas.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gsettings-desktop-schemas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gsettings-desktop-schemas | grep -v \.src | grep gsettings-desktop-schemas + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gsettings-desktop-schemas" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gsettings-desktop-schemas + CHECK_RESULT $? 0 0 "install gsettings-desktop-schemas failed" + SLEEP_WAIT 1 + dnf remove -y gsettings-desktop-schemas + CHECK_RESULT $? 0 0 "remove gsettings-desktop-schemas failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-debuginfo.sh b/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b45da83fddd242e9aad3431e6b2e77935d188ce3 --- /dev/null +++ b/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gsm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gsm-debuginfo | grep -v \.src | grep gsm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gsm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gsm-debuginfo + CHECK_RESULT $? 0 0 "install gsm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gsm-debuginfo + CHECK_RESULT $? 0 0 "remove gsm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-debugsource.sh b/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1876f8c62ff969d96527976e3587b0213dc4faee --- /dev/null +++ b/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gsm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gsm-debugsource | grep -v \.src | grep gsm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gsm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gsm-debugsource + CHECK_RESULT $? 0 0 "install gsm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gsm-debugsource + CHECK_RESULT $? 0 0 "remove gsm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-devel.sh b/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..66dc78b96d693f0cfcfadc214bcda46d591c9724 --- /dev/null +++ b/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gsm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gsm-devel | grep -v \.src | grep gsm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gsm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gsm-devel + CHECK_RESULT $? 0 0 "install gsm-devel failed" + SLEEP_WAIT 1 + dnf remove -y gsm-devel + CHECK_RESULT $? 0 0 "remove gsm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-help.sh b/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2df7ab4baec99a57e6c81e3a17d6b3b6bc9c9fa --- /dev/null +++ b/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gsm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gsm-help | grep -v \.src | grep gsm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gsm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gsm-help + CHECK_RESULT $? 0 0 "install gsm-help failed" + SLEEP_WAIT 1 + dnf remove -y gsm-help + CHECK_RESULT $? 0 0 "remove gsm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm.sh b/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm.sh new file mode 100644 index 0000000000000000000000000000000000000000..41ddd004c5628143569f11a4390f7f768a2f4f85 --- /dev/null +++ b/testcases/cli-test/gsm/oe_test_gsm_install_and_remove_gsm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gsm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gsm | grep -v \.src | grep gsm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gsm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gsm + CHECK_RESULT $? 0 0 "install gsm failed" + SLEEP_WAIT 1 + dnf remove -y gsm + CHECK_RESULT $? 0 0 "remove gsm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-debuginfo.sh b/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea52c1c629eb95f3e35ef64de9cf9e8fc4ed8ccf --- /dev/null +++ b/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gssdp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gssdp-debuginfo | grep -v \.src | grep gssdp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gssdp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gssdp-debuginfo + CHECK_RESULT $? 0 0 "install gssdp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gssdp-debuginfo + CHECK_RESULT $? 0 0 "remove gssdp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-debugsource.sh b/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..649bcdfeb07e2390b138e8c72b8427f83cebc0e3 --- /dev/null +++ b/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gssdp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gssdp-debugsource | grep -v \.src | grep gssdp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gssdp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gssdp-debugsource + CHECK_RESULT $? 0 0 "install gssdp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gssdp-debugsource + CHECK_RESULT $? 0 0 "remove gssdp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-devel.sh b/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3652f36532a8ea6a1076a6894caff9e2210964c5 --- /dev/null +++ b/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gssdp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gssdp-devel | grep -v \.src | grep gssdp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gssdp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gssdp-devel + CHECK_RESULT $? 0 0 "install gssdp-devel failed" + SLEEP_WAIT 1 + dnf remove -y gssdp-devel + CHECK_RESULT $? 0 0 "remove gssdp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-help.sh b/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..15e2b80e153f88e4f4c18f7f5d722df0eb616869 --- /dev/null +++ b/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gssdp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gssdp-help | grep -v \.src | grep gssdp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gssdp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gssdp-help + CHECK_RESULT $? 0 0 "install gssdp-help failed" + SLEEP_WAIT 1 + dnf remove -y gssdp-help + CHECK_RESULT $? 0 0 "remove gssdp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp.sh b/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp.sh new file mode 100644 index 0000000000000000000000000000000000000000..93d705e7b4bf1201fa9858e62a06919509ede002 --- /dev/null +++ b/testcases/cli-test/gssdp/oe_test_gssdp_install_and_remove_gssdp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gssdp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gssdp | grep -v \.src | grep gssdp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gssdp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gssdp + CHECK_RESULT $? 0 0 "install gssdp failed" + SLEEP_WAIT 1 + dnf remove -y gssdp + CHECK_RESULT $? 0 0 "remove gssdp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy-debuginfo.sh b/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..00fa479f7078ea3de1d1b748613ccea2385312cd --- /dev/null +++ b/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gssproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gssproxy-debuginfo | grep -v \.src | grep gssproxy-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gssproxy-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gssproxy-debuginfo + CHECK_RESULT $? 0 0 "install gssproxy-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gssproxy-debuginfo + CHECK_RESULT $? 0 0 "remove gssproxy-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy-debugsource.sh b/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..926a1808e60e6ac6bf476bbd8bc4773d933a852d --- /dev/null +++ b/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gssproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gssproxy-debugsource | grep -v \.src | grep gssproxy-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gssproxy-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gssproxy-debugsource + CHECK_RESULT $? 0 0 "install gssproxy-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gssproxy-debugsource + CHECK_RESULT $? 0 0 "remove gssproxy-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy-help.sh b/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b0696db67c1789112b89776c95278054d2e5f77 --- /dev/null +++ b/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gssproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gssproxy-help | grep -v \.src | grep gssproxy-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gssproxy-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gssproxy-help + CHECK_RESULT $? 0 0 "install gssproxy-help failed" + SLEEP_WAIT 1 + dnf remove -y gssproxy-help + CHECK_RESULT $? 0 0 "remove gssproxy-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy.sh b/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3301777b33a5783f36980d8b322ae55f608850f --- /dev/null +++ b/testcases/cli-test/gssproxy/oe_test_gssproxy_install_and_remove_gssproxy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gssproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gssproxy | grep -v \.src | grep gssproxy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gssproxy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gssproxy + CHECK_RESULT $? 0 0 "install gssproxy failed" + SLEEP_WAIT 1 + dnf remove -y gssproxy + CHECK_RESULT $? 0 0 "remove gssproxy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-debuginfo.sh b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..37f3a982b5fdab0d6dee419059ced6ba9c213dd9 --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-bad-free +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-bad-free-debuginfo | grep -v \.src | grep gstreamer1-plugins-bad-free-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-bad-free-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-bad-free-debuginfo + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-bad-free-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-bad-free-debuginfo + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-bad-free-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-debugsource.sh b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2128d25daabfaa0dd16566a9f5ee8de56c9bcdae --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-bad-free +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-bad-free-debugsource | grep -v \.src | grep gstreamer1-plugins-bad-free-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-bad-free-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-bad-free-debugsource + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-bad-free-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-bad-free-debugsource + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-bad-free-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-devel.sh b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d97eda2c8e2c8e9cf402647a2353bd3a9ef7ee56 --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-bad-free +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-bad-free-devel | grep -v \.src | grep gstreamer1-plugins-bad-free-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-bad-free-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-bad-free-devel + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-bad-free-devel failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-bad-free-devel + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-bad-free-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-extras.sh b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-extras.sh new file mode 100644 index 0000000000000000000000000000000000000000..07783f76f3a589a284c2815902cf944c707e50b9 --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-extras.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-bad-free +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-bad-free-extras | grep -v \.src | grep gstreamer1-plugins-bad-free-extras + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-bad-free-extras" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-bad-free-extras + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-bad-free-extras failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-bad-free-extras + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-bad-free-extras failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-fluidsynth.sh b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-fluidsynth.sh new file mode 100644 index 0000000000000000000000000000000000000000..7355c945c59fb581d46064b28ad459f455112198 --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-fluidsynth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-bad-free +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-bad-free-fluidsynth | grep -v \.src | grep gstreamer1-plugins-bad-free-fluidsynth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-bad-free-fluidsynth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-bad-free-fluidsynth + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-bad-free-fluidsynth failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-bad-free-fluidsynth + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-bad-free-fluidsynth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-wildmidi.sh b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-wildmidi.sh new file mode 100644 index 0000000000000000000000000000000000000000..0abf305c54fe8dd322dc74502ff88d36232949ff --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free-wildmidi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-bad-free +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-bad-free-wildmidi | grep -v \.src | grep gstreamer1-plugins-bad-free-wildmidi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-bad-free-wildmidi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-bad-free-wildmidi + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-bad-free-wildmidi failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-bad-free-wildmidi + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-bad-free-wildmidi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free.sh b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a1f76009d88f77abf6037a92586f760928e1f37 --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-bad-free/oe_test_gstreamer1-plugins-bad-free_install_and_remove_gstreamer1-plugins-bad-free.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-bad-free +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-bad-free | grep -v \.src | grep gstreamer1-plugins-bad-free + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-bad-free" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-bad-free + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-bad-free failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-bad-free + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-bad-free failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-debuginfo.sh b/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..165ea51c5f3745122da9e21ebb223a75bdcd672f --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-base-debuginfo | grep -v \.src | grep gstreamer1-plugins-base-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-base-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-base-debuginfo + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-base-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-base-debuginfo + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-base-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-debugsource.sh b/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..51531080c5b3b1c7b8a65cc69ce854bd2de0b2e7 --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-base-debugsource | grep -v \.src | grep gstreamer1-plugins-base-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-base-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-base-debugsource + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-base-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-base-debugsource + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-base-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-devel.sh b/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d926cc84afe24beb7306071468a82335c9f51578 --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-base-devel | grep -v \.src | grep gstreamer1-plugins-base-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-base-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-base-devel + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-base-devel failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-base-devel + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-base-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-help.sh b/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e05f9cb1764e3cd3b0d1ea182612ddfd9af626bf --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-base-help | grep -v \.src | grep gstreamer1-plugins-base-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-base-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-base-help + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-base-help failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-base-help + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-base-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base.sh b/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8122aafa5e0faaf177954b590b34f640560260f --- /dev/null +++ b/testcases/cli-test/gstreamer1-plugins-base/oe_test_gstreamer1-plugins-base_install_and_remove_gstreamer1-plugins-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1-plugins-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-plugins-base | grep -v \.src | grep gstreamer1-plugins-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-plugins-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-plugins-base + CHECK_RESULT $? 0 0 "install gstreamer1-plugins-base failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-plugins-base + CHECK_RESULT $? 0 0 "remove gstreamer1-plugins-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-debuginfo.sh b/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2921099ba20e9d16340046f0157a7087a8c2d85b --- /dev/null +++ b/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-debuginfo | grep -v \.src | grep gstreamer1-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-debuginfo + CHECK_RESULT $? 0 0 "install gstreamer1-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-debuginfo + CHECK_RESULT $? 0 0 "remove gstreamer1-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-debugsource.sh b/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca38d42b648f3ab075161772e69075d5bc8ddbee --- /dev/null +++ b/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-debugsource | grep -v \.src | grep gstreamer1-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-debugsource + CHECK_RESULT $? 0 0 "install gstreamer1-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-debugsource + CHECK_RESULT $? 0 0 "remove gstreamer1-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-devel.sh b/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dd99dc91eaebae098c48807115c72071b155659 --- /dev/null +++ b/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-devel | grep -v \.src | grep gstreamer1-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-devel + CHECK_RESULT $? 0 0 "install gstreamer1-devel failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-devel + CHECK_RESULT $? 0 0 "remove gstreamer1-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-help.sh b/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e8eb11c008f3018798c9a915d564a0b41099744 --- /dev/null +++ b/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1-help | grep -v \.src | grep gstreamer1-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1-help + CHECK_RESULT $? 0 0 "install gstreamer1-help failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1-help + CHECK_RESULT $? 0 0 "remove gstreamer1-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1.sh b/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd83c800cb68cdb34d52c3c2e4bfa072d5107540 --- /dev/null +++ b/testcases/cli-test/gstreamer1/oe_test_gstreamer1_install_and_remove_gstreamer1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gstreamer1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gstreamer1 | grep -v \.src | grep gstreamer1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gstreamer1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gstreamer1 + CHECK_RESULT $? 0 0 "install gstreamer1 failed" + SLEEP_WAIT 1 + dnf remove -y gstreamer1 + CHECK_RESULT $? 0 0 "remove gstreamer1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gmock-devel.sh b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gmock-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f0a2120d046b88c17cab5da8a209bfbd14509ce --- /dev/null +++ b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gmock-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gmock-devel | grep -v \.src | grep gmock-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gmock-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gmock-devel + CHECK_RESULT $? 0 0 "install gmock-devel failed" + SLEEP_WAIT 1 + dnf remove -y gmock-devel + CHECK_RESULT $? 0 0 "remove gmock-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gmock.sh b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gmock.sh new file mode 100644 index 0000000000000000000000000000000000000000..f48521506593e9e8c8f60ec67e316b3320c019d0 --- /dev/null +++ b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gmock.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gmock | grep -v \.src | grep gmock + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gmock" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gmock + CHECK_RESULT $? 0 0 "install gmock failed" + SLEEP_WAIT 1 + dnf remove -y gmock + CHECK_RESULT $? 0 0 "remove gmock failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest-debuginfo.sh b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecbb8986990e4e6fed755247886c661d5c85f477 --- /dev/null +++ b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtest-debuginfo | grep -v \.src | grep gtest-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtest-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtest-debuginfo + CHECK_RESULT $? 0 0 "install gtest-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gtest-debuginfo + CHECK_RESULT $? 0 0 "remove gtest-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest-debugsource.sh b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..389e8860e1465996754fe6691de95eb96fff8446 --- /dev/null +++ b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtest-debugsource | grep -v \.src | grep gtest-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtest-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtest-debugsource + CHECK_RESULT $? 0 0 "install gtest-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gtest-debugsource + CHECK_RESULT $? 0 0 "remove gtest-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest-devel.sh b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..592d146cd3f135df1b9284cdb98944f9b39a6683 --- /dev/null +++ b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtest-devel | grep -v \.src | grep gtest-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtest-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtest-devel + CHECK_RESULT $? 0 0 "install gtest-devel failed" + SLEEP_WAIT 1 + dnf remove -y gtest-devel + CHECK_RESULT $? 0 0 "remove gtest-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest.sh b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest.sh new file mode 100644 index 0000000000000000000000000000000000000000..c844dac436dffa24cb5cc7c991a81a14093afa3c --- /dev/null +++ b/testcases/cli-test/gtest/oe_test_gtest_install_and_remove_gtest.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtest | grep -v \.src | grep gtest + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtest" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtest + CHECK_RESULT $? 0 0 "install gtest failed" + SLEEP_WAIT 1 + dnf remove -y gtest + CHECK_RESULT $? 0 0 "remove gtest failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk-doc/oe_test_gtk-doc_install_and_remove_gtk-doc.sh b/testcases/cli-test/gtk-doc/oe_test_gtk-doc_install_and_remove_gtk-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..84e3508baec426f12e5beb54d32fe3a50505691c --- /dev/null +++ b/testcases/cli-test/gtk-doc/oe_test_gtk-doc_install_and_remove_gtk-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk-doc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk-doc | grep -v \.src | grep gtk-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk-doc + CHECK_RESULT $? 0 0 "install gtk-doc failed" + SLEEP_WAIT 1 + dnf remove -y gtk-doc + CHECK_RESULT $? 0 0 "remove gtk-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-debuginfo.sh b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0d9718432c0063e3e406e267032669e728505fe --- /dev/null +++ b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk2-debuginfo | grep -v \.src | grep gtk2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk2-debuginfo + CHECK_RESULT $? 0 0 "install gtk2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gtk2-debuginfo + CHECK_RESULT $? 0 0 "remove gtk2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-debugsource.sh b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6b90997d5696bef68d05e64f3519dc6d29a00a4 --- /dev/null +++ b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk2-debugsource | grep -v \.src | grep gtk2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk2-debugsource + CHECK_RESULT $? 0 0 "install gtk2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gtk2-debugsource + CHECK_RESULT $? 0 0 "remove gtk2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-devel.sh b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd55e506119fa289ae4e8baa57f192f22da02d52 --- /dev/null +++ b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk2-devel | grep -v \.src | grep gtk2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk2-devel + CHECK_RESULT $? 0 0 "install gtk2-devel failed" + SLEEP_WAIT 1 + dnf remove -y gtk2-devel + CHECK_RESULT $? 0 0 "remove gtk2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-help.sh b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2c044289d0d1577178e3cd0af238eb9bd94552a --- /dev/null +++ b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk2-help | grep -v \.src | grep gtk2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk2-help + CHECK_RESULT $? 0 0 "install gtk2-help failed" + SLEEP_WAIT 1 + dnf remove -y gtk2-help + CHECK_RESULT $? 0 0 "remove gtk2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-immodule-xim.sh b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-immodule-xim.sh new file mode 100644 index 0000000000000000000000000000000000000000..48644e59a5ff8c82984363615f17fd1f98b65592 --- /dev/null +++ b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-immodule-xim.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk2-immodule-xim | grep -v \.src | grep gtk2-immodule-xim + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk2-immodule-xim" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk2-immodule-xim + CHECK_RESULT $? 0 0 "install gtk2-immodule-xim failed" + SLEEP_WAIT 1 + dnf remove -y gtk2-immodule-xim + CHECK_RESULT $? 0 0 "remove gtk2-immodule-xim failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-immodules.sh b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-immodules.sh new file mode 100644 index 0000000000000000000000000000000000000000..78de93e91aeef4b0018152dfceb2e9173cf7a652 --- /dev/null +++ b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2-immodules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk2-immodules | grep -v \.src | grep gtk2-immodules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk2-immodules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk2-immodules + CHECK_RESULT $? 0 0 "install gtk2-immodules failed" + SLEEP_WAIT 1 + dnf remove -y gtk2-immodules + CHECK_RESULT $? 0 0 "remove gtk2-immodules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2.sh b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f57b9c81ec7d978e1395f6a80fa661d460f6261 --- /dev/null +++ b/testcases/cli-test/gtk2/oe_test_gtk2_install_and_remove_gtk2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk2 | grep -v \.src | grep gtk2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk2 + CHECK_RESULT $? 0 0 "install gtk2 failed" + SLEEP_WAIT 1 + dnf remove -y gtk2 + CHECK_RESULT $? 0 0 "remove gtk2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk-update-icon-cache.sh b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk-update-icon-cache.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c09c6ab8dc701f889f4003fca0a063270190897 --- /dev/null +++ b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk-update-icon-cache.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk-update-icon-cache | grep -v \.src | grep gtk-update-icon-cache + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk-update-icon-cache" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk-update-icon-cache + CHECK_RESULT $? 0 0 "install gtk-update-icon-cache failed" + SLEEP_WAIT 1 + dnf remove -y gtk-update-icon-cache + CHECK_RESULT $? 0 0 "remove gtk-update-icon-cache failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-debuginfo.sh b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..71ab0b8405c244b754ae8826adb51d7aae47f70f --- /dev/null +++ b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk3-debuginfo | grep -v \.src | grep gtk3-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk3-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk3-debuginfo + CHECK_RESULT $? 0 0 "install gtk3-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gtk3-debuginfo + CHECK_RESULT $? 0 0 "remove gtk3-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-debugsource.sh b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b1c9290ed745b42e3b02395b47cf35b7d0ee477 --- /dev/null +++ b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk3-debugsource | grep -v \.src | grep gtk3-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk3-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk3-debugsource + CHECK_RESULT $? 0 0 "install gtk3-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gtk3-debugsource + CHECK_RESULT $? 0 0 "remove gtk3-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-devel.sh b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1326198312415a96b98ed3e44990a9260b2cee0 --- /dev/null +++ b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk3-devel | grep -v \.src | grep gtk3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk3-devel + CHECK_RESULT $? 0 0 "install gtk3-devel failed" + SLEEP_WAIT 1 + dnf remove -y gtk3-devel + CHECK_RESULT $? 0 0 "remove gtk3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-help.sh b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..07a8b033cbfad03054159d1b19d72988097c2370 --- /dev/null +++ b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk3-help | grep -v \.src | grep gtk3-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk3-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk3-help + CHECK_RESULT $? 0 0 "install gtk3-help failed" + SLEEP_WAIT 1 + dnf remove -y gtk3-help + CHECK_RESULT $? 0 0 "remove gtk3-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-immodule-xim.sh b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-immodule-xim.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfc3e1896bbd77cf2cb938ca6c6401b6cb15a48d --- /dev/null +++ b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-immodule-xim.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk3-immodule-xim | grep -v \.src | grep gtk3-immodule-xim + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk3-immodule-xim" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk3-immodule-xim + CHECK_RESULT $? 0 0 "install gtk3-immodule-xim failed" + SLEEP_WAIT 1 + dnf remove -y gtk3-immodule-xim + CHECK_RESULT $? 0 0 "remove gtk3-immodule-xim failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-immodules.sh b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-immodules.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d3d4e5cf8c3f90591c2b159d495114d81a4ea1c --- /dev/null +++ b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3-immodules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk3-immodules | grep -v \.src | grep gtk3-immodules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk3-immodules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk3-immodules + CHECK_RESULT $? 0 0 "install gtk3-immodules failed" + SLEEP_WAIT 1 + dnf remove -y gtk3-immodules + CHECK_RESULT $? 0 0 "remove gtk3-immodules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3.sh b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6c5edfa6bc0907a1fc97b1f4259bad8950f0ea1 --- /dev/null +++ b/testcases/cli-test/gtk3/oe_test_gtk3_install_and_remove_gtk3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk3 | grep -v \.src | grep gtk3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk3 + CHECK_RESULT $? 0 0 "install gtk3 failed" + SLEEP_WAIT 1 + dnf remove -y gtk3 + CHECK_RESULT $? 0 0 "remove gtk3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4-debuginfo.sh b/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8cf8a6dfe6fb918c6c119900309f9c5bc6d8707 --- /dev/null +++ b/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk4-debuginfo | grep -v \.src | grep gtk4-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk4-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk4-debuginfo + CHECK_RESULT $? 0 0 "install gtk4-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gtk4-debuginfo + CHECK_RESULT $? 0 0 "remove gtk4-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4-debugsource.sh b/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3a072de4d69db50c1c810e901dd931491f5bb07 --- /dev/null +++ b/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk4-debugsource | grep -v \.src | grep gtk4-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk4-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk4-debugsource + CHECK_RESULT $? 0 0 "install gtk4-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gtk4-debugsource + CHECK_RESULT $? 0 0 "remove gtk4-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4-devel.sh b/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..621ebc361980eddc2b53702acaf82b08df95bb27 --- /dev/null +++ b/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk4-devel | grep -v \.src | grep gtk4-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk4-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk4-devel + CHECK_RESULT $? 0 0 "install gtk4-devel failed" + SLEEP_WAIT 1 + dnf remove -y gtk4-devel + CHECK_RESULT $? 0 0 "remove gtk4-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4.sh b/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f87a3fd7ec105ec7b0e2b22b3cf05b99770565e --- /dev/null +++ b/testcases/cli-test/gtk4/oe_test_gtk4_install_and_remove_gtk4.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gtk4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gtk4 | grep -v \.src | grep gtk4 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gtk4" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gtk4 + CHECK_RESULT $? 0 0 "install gtk4 failed" + SLEEP_WAIT 1 + dnf remove -y gtk4 + CHECK_RESULT $? 0 0 "remove gtk4 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-debuginfo.sh b/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a6593f868b24e34aeb8baf2af45bef35091fd9b --- /dev/null +++ b/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src guile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available guile-debuginfo | grep -v \.src | grep guile-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm guile-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y guile-debuginfo + CHECK_RESULT $? 0 0 "install guile-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y guile-debuginfo + CHECK_RESULT $? 0 0 "remove guile-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-debugsource.sh b/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f25b0dd34f4fa348303cb735b006fddb8f3559ec --- /dev/null +++ b/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src guile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available guile-debugsource | grep -v \.src | grep guile-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm guile-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y guile-debugsource + CHECK_RESULT $? 0 0 "install guile-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y guile-debugsource + CHECK_RESULT $? 0 0 "remove guile-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-devel.sh b/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..18e06fe66ed7d3f6013eca83e9b93916d3f0ea64 --- /dev/null +++ b/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src guile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available guile-devel | grep -v \.src | grep guile-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm guile-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y guile-devel + CHECK_RESULT $? 0 0 "install guile-devel failed" + SLEEP_WAIT 1 + dnf remove -y guile-devel + CHECK_RESULT $? 0 0 "remove guile-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-help.sh b/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fdbfe6f62d02998a42e5baec3c537ab84da30933 --- /dev/null +++ b/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src guile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available guile-help | grep -v \.src | grep guile-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm guile-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y guile-help + CHECK_RESULT $? 0 0 "install guile-help failed" + SLEEP_WAIT 1 + dnf remove -y guile-help + CHECK_RESULT $? 0 0 "remove guile-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile.sh b/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6b142c485c302ef55249c857dde165929966892 --- /dev/null +++ b/testcases/cli-test/guile/oe_test_guile_install_and_remove_guile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src guile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available guile | grep -v \.src | grep guile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm guile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y guile + CHECK_RESULT $? 0 0 "install guile failed" + SLEEP_WAIT 1 + dnf remove -y guile + CHECK_RESULT $? 0 0 "remove guile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd-debuginfo.sh b/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..14685f190272f1b0b4714ac83734e998c70e5ce6 --- /dev/null +++ b/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gupnp-igd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gupnp-igd-debuginfo | grep -v \.src | grep gupnp-igd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gupnp-igd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gupnp-igd-debuginfo + CHECK_RESULT $? 0 0 "install gupnp-igd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gupnp-igd-debuginfo + CHECK_RESULT $? 0 0 "remove gupnp-igd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd-debugsource.sh b/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a60135243e0fd2e1856127b42b8347c81439a5bc --- /dev/null +++ b/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gupnp-igd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gupnp-igd-debugsource | grep -v \.src | grep gupnp-igd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gupnp-igd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gupnp-igd-debugsource + CHECK_RESULT $? 0 0 "install gupnp-igd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gupnp-igd-debugsource + CHECK_RESULT $? 0 0 "remove gupnp-igd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd-devel.sh b/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7db7e99eb009b52f7219579166e225904f0751d --- /dev/null +++ b/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gupnp-igd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gupnp-igd-devel | grep -v \.src | grep gupnp-igd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gupnp-igd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gupnp-igd-devel + CHECK_RESULT $? 0 0 "install gupnp-igd-devel failed" + SLEEP_WAIT 1 + dnf remove -y gupnp-igd-devel + CHECK_RESULT $? 0 0 "remove gupnp-igd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd.sh b/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd.sh new file mode 100644 index 0000000000000000000000000000000000000000..af0dc46975909c16b6db79b02db226ef4ab3811d --- /dev/null +++ b/testcases/cli-test/gupnp-igd/oe_test_gupnp-igd_install_and_remove_gupnp-igd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gupnp-igd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gupnp-igd | grep -v \.src | grep gupnp-igd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gupnp-igd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gupnp-igd + CHECK_RESULT $? 0 0 "install gupnp-igd failed" + SLEEP_WAIT 1 + dnf remove -y gupnp-igd + CHECK_RESULT $? 0 0 "remove gupnp-igd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-debuginfo.sh b/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e509bc50b0f4a4d7b0257dd72babcf19ef94f3ea --- /dev/null +++ b/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gupnp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gupnp-debuginfo | grep -v \.src | grep gupnp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gupnp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gupnp-debuginfo + CHECK_RESULT $? 0 0 "install gupnp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gupnp-debuginfo + CHECK_RESULT $? 0 0 "remove gupnp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-debugsource.sh b/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5369c676e118a6981b6deaa2db74a1dd38a85ed3 --- /dev/null +++ b/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gupnp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gupnp-debugsource | grep -v \.src | grep gupnp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gupnp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gupnp-debugsource + CHECK_RESULT $? 0 0 "install gupnp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gupnp-debugsource + CHECK_RESULT $? 0 0 "remove gupnp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-devel.sh b/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f0870c77d69af099648fc01651c230e37a52115 --- /dev/null +++ b/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gupnp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gupnp-devel | grep -v \.src | grep gupnp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gupnp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gupnp-devel + CHECK_RESULT $? 0 0 "install gupnp-devel failed" + SLEEP_WAIT 1 + dnf remove -y gupnp-devel + CHECK_RESULT $? 0 0 "remove gupnp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-help.sh b/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..de0667651d74410b59c98f39e32f19b30086f44f --- /dev/null +++ b/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gupnp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gupnp-help | grep -v \.src | grep gupnp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gupnp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gupnp-help + CHECK_RESULT $? 0 0 "install gupnp-help failed" + SLEEP_WAIT 1 + dnf remove -y gupnp-help + CHECK_RESULT $? 0 0 "remove gupnp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp.sh b/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a1206254d2c56424160bc0f40940e97fca8e1fa --- /dev/null +++ b/testcases/cli-test/gupnp/oe_test_gupnp_install_and_remove_gupnp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gupnp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gupnp | grep -v \.src | grep gupnp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gupnp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gupnp + CHECK_RESULT $? 0 0 "install gupnp failed" + SLEEP_WAIT 1 + dnf remove -y gupnp + CHECK_RESULT $? 0 0 "remove gupnp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip-debuginfo.sh b/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5be50b48c88bf0552d657329147f5371bd95194f --- /dev/null +++ b/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gzip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gzip-debuginfo | grep -v \.src | grep gzip-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gzip-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gzip-debuginfo + CHECK_RESULT $? 0 0 "install gzip-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y gzip-debuginfo + CHECK_RESULT $? 0 0 "remove gzip-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip-debugsource.sh b/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..95ba2229feb99851b1cf1c6eceef7a94b1ac18d3 --- /dev/null +++ b/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gzip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gzip-debugsource | grep -v \.src | grep gzip-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gzip-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gzip-debugsource + CHECK_RESULT $? 0 0 "install gzip-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y gzip-debugsource + CHECK_RESULT $? 0 0 "remove gzip-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip-help.sh b/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..756894defbe5f9795cc6d75ea9cfe87e43264ac3 --- /dev/null +++ b/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gzip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gzip-help | grep -v \.src | grep gzip-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gzip-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gzip-help + CHECK_RESULT $? 0 0 "install gzip-help failed" + SLEEP_WAIT 1 + dnf remove -y gzip-help + CHECK_RESULT $? 0 0 "remove gzip-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip.sh b/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip.sh new file mode 100644 index 0000000000000000000000000000000000000000..394f437b3a8597eafda155dbb06b3b39cf455260 --- /dev/null +++ b/testcases/cli-test/gzip/oe_test_gzip_install_and_remove_gzip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src gzip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gzip | grep -v \.src | grep gzip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gzip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gzip + CHECK_RESULT $? 0 0 "install gzip failed" + SLEEP_WAIT 1 + dnf remove -y gzip + CHECK_RESULT $? 0 0 "remove gzip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-debuginfo.sh b/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..af54ccbe01d86c4d598b243c5405e6576c6524c7 --- /dev/null +++ b/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src harfbuzz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available harfbuzz-debuginfo | grep -v \.src | grep harfbuzz-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm harfbuzz-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y harfbuzz-debuginfo + CHECK_RESULT $? 0 0 "install harfbuzz-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y harfbuzz-debuginfo + CHECK_RESULT $? 0 0 "remove harfbuzz-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-debugsource.sh b/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2efffc22269916db475af782bda5c63d0593f5a4 --- /dev/null +++ b/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src harfbuzz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available harfbuzz-debugsource | grep -v \.src | grep harfbuzz-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm harfbuzz-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y harfbuzz-debugsource + CHECK_RESULT $? 0 0 "install harfbuzz-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y harfbuzz-debugsource + CHECK_RESULT $? 0 0 "remove harfbuzz-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-devel.sh b/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..913ea816f2fe620a04423bd387921b8ff1a15d5e --- /dev/null +++ b/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src harfbuzz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available harfbuzz-devel | grep -v \.src | grep harfbuzz-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm harfbuzz-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y harfbuzz-devel + CHECK_RESULT $? 0 0 "install harfbuzz-devel failed" + SLEEP_WAIT 1 + dnf remove -y harfbuzz-devel + CHECK_RESULT $? 0 0 "remove harfbuzz-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-help.sh b/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c27383b630179f8a935f5ade6b0c4172ab31202 --- /dev/null +++ b/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src harfbuzz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available harfbuzz-help | grep -v \.src | grep harfbuzz-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm harfbuzz-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y harfbuzz-help + CHECK_RESULT $? 0 0 "install harfbuzz-help failed" + SLEEP_WAIT 1 + dnf remove -y harfbuzz-help + CHECK_RESULT $? 0 0 "remove harfbuzz-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz.sh b/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bd230acbdc1c3498a5fbc05fea08b58ab6667c9 --- /dev/null +++ b/testcases/cli-test/harfbuzz/oe_test_harfbuzz_install_and_remove_harfbuzz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src harfbuzz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available harfbuzz | grep -v \.src | grep harfbuzz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm harfbuzz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y harfbuzz + CHECK_RESULT $? 0 0 "install harfbuzz failed" + SLEEP_WAIT 1 + dnf remove -y harfbuzz + CHECK_RESULT $? 0 0 "remove harfbuzz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-debuginfo.sh b/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..08a583e4042bb1156abee9c0c39a1208d83e07c3 --- /dev/null +++ b/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src hunspell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available hunspell-debuginfo | grep -v \.src | grep hunspell-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm hunspell-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y hunspell-debuginfo + CHECK_RESULT $? 0 0 "install hunspell-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y hunspell-debuginfo + CHECK_RESULT $? 0 0 "remove hunspell-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-debugsource.sh b/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e89c3840382cfcffb2ebce6e1ee859572ffaaf0 --- /dev/null +++ b/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src hunspell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available hunspell-debugsource | grep -v \.src | grep hunspell-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm hunspell-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y hunspell-debugsource + CHECK_RESULT $? 0 0 "install hunspell-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y hunspell-debugsource + CHECK_RESULT $? 0 0 "remove hunspell-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-devel.sh b/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..24961b1c092a3ab37bec79ecb8e31f3930478e0a --- /dev/null +++ b/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src hunspell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available hunspell-devel | grep -v \.src | grep hunspell-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm hunspell-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y hunspell-devel + CHECK_RESULT $? 0 0 "install hunspell-devel failed" + SLEEP_WAIT 1 + dnf remove -y hunspell-devel + CHECK_RESULT $? 0 0 "remove hunspell-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-help.sh b/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..abd156afb818ac1e703e4b4f2b106e51d3829e67 --- /dev/null +++ b/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src hunspell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available hunspell-help | grep -v \.src | grep hunspell-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm hunspell-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y hunspell-help + CHECK_RESULT $? 0 0 "install hunspell-help failed" + SLEEP_WAIT 1 + dnf remove -y hunspell-help + CHECK_RESULT $? 0 0 "remove hunspell-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell.sh b/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b611806eade18aba59f8b0884b944f5a2e6e29e --- /dev/null +++ b/testcases/cli-test/hunspell/oe_test_hunspell_install_and_remove_hunspell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src hunspell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available hunspell | grep -v \.src | grep hunspell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm hunspell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y hunspell + CHECK_RESULT $? 0 0 "install hunspell failed" + SLEEP_WAIT 1 + dnf remove -y hunspell + CHECK_RESULT $? 0 0 "remove hunspell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/hwdata/oe_test_hwdata_install_and_remove_hwdata.sh b/testcases/cli-test/hwdata/oe_test_hwdata_install_and_remove_hwdata.sh new file mode 100644 index 0000000000000000000000000000000000000000..d77b105b8243f36076896d05366899e2042f398f --- /dev/null +++ b/testcases/cli-test/hwdata/oe_test_hwdata_install_and_remove_hwdata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src hwdata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available hwdata | grep -v \.src | grep hwdata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm hwdata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y hwdata + CHECK_RESULT $? 0 0 "install hwdata failed" + SLEEP_WAIT 1 + dnf remove -y hwdata + CHECK_RESULT $? 0 0 "remove hwdata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen-debuginfo.sh b/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7269bc857dd4f12804b0536a77ad976fab829c4 --- /dev/null +++ b/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src hyphen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available hyphen-debuginfo | grep -v \.src | grep hyphen-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm hyphen-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y hyphen-debuginfo + CHECK_RESULT $? 0 0 "install hyphen-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y hyphen-debuginfo + CHECK_RESULT $? 0 0 "remove hyphen-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen-debugsource.sh b/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e10a62f9a4753d64838a4d49dd5d531bfb5b852 --- /dev/null +++ b/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src hyphen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available hyphen-debugsource | grep -v \.src | grep hyphen-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm hyphen-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y hyphen-debugsource + CHECK_RESULT $? 0 0 "install hyphen-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y hyphen-debugsource + CHECK_RESULT $? 0 0 "remove hyphen-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen-devel.sh b/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..280e8aeb13ca1c95643c8aea0af655e0e1c84344 --- /dev/null +++ b/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src hyphen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available hyphen-devel | grep -v \.src | grep hyphen-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm hyphen-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y hyphen-devel + CHECK_RESULT $? 0 0 "install hyphen-devel failed" + SLEEP_WAIT 1 + dnf remove -y hyphen-devel + CHECK_RESULT $? 0 0 "remove hyphen-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen.sh b/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba2a05cf0cf920b32910965fdda90ad171b72b55 --- /dev/null +++ b/testcases/cli-test/hyphen/oe_test_hyphen_install_and_remove_hyphen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src hyphen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available hyphen | grep -v \.src | grep hyphen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm hyphen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y hyphen + CHECK_RESULT $? 0 0 "install hyphen failed" + SLEEP_WAIT 1 + dnf remove -y hyphen + CHECK_RESULT $? 0 0 "remove hyphen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/icfg/oe_test_icfg_install_and_remove_icfg-help.sh b/testcases/cli-test/icfg/oe_test_icfg_install_and_remove_icfg-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e75734a6dc07eff133fe75246b905442dcad208 --- /dev/null +++ b/testcases/cli-test/icfg/oe_test_icfg_install_and_remove_icfg-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src icfg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available icfg-help | grep -v \.src | grep icfg-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm icfg-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y icfg-help + CHECK_RESULT $? 0 0 "install icfg-help failed" + SLEEP_WAIT 1 + dnf remove -y icfg-help + CHECK_RESULT $? 0 0 "remove icfg-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/icfg/oe_test_icfg_install_and_remove_icfg.sh b/testcases/cli-test/icfg/oe_test_icfg_install_and_remove_icfg.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8f3cb144796311767d936070bc950e9a18b78f1 --- /dev/null +++ b/testcases/cli-test/icfg/oe_test_icfg_install_and_remove_icfg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src icfg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available icfg | grep -v \.src | grep icfg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm icfg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y icfg + CHECK_RESULT $? 0 0 "install icfg failed" + SLEEP_WAIT 1 + dnf remove -y icfg + CHECK_RESULT $? 0 0 "remove icfg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu-debuginfo.sh b/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..60a310e7eb8d10cc5fc3e801bcc2eb1260602677 --- /dev/null +++ b/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src icu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available icu-debuginfo | grep -v \.src | grep icu-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm icu-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y icu-debuginfo + CHECK_RESULT $? 0 0 "install icu-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y icu-debuginfo + CHECK_RESULT $? 0 0 "remove icu-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu-debugsource.sh b/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2cecacc2f628e0509be3592cfedf27e2337cba06 --- /dev/null +++ b/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src icu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available icu-debugsource | grep -v \.src | grep icu-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm icu-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y icu-debugsource + CHECK_RESULT $? 0 0 "install icu-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y icu-debugsource + CHECK_RESULT $? 0 0 "remove icu-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu-help.sh b/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..73c6f993a3dc3052c542ebda9d1baaee008561f6 --- /dev/null +++ b/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src icu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available icu-help | grep -v \.src | grep icu-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm icu-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y icu-help + CHECK_RESULT $? 0 0 "install icu-help failed" + SLEEP_WAIT 1 + dnf remove -y icu-help + CHECK_RESULT $? 0 0 "remove icu-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu.sh b/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c20031cbf86a589cd4c35a6c835106526c76399 --- /dev/null +++ b/testcases/cli-test/icu/oe_test_icu_install_and_remove_icu.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src icu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available icu | grep -v \.src | grep icu + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm icu" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y icu + CHECK_RESULT $? 0 0 "install icu failed" + SLEEP_WAIT 1 + dnf remove -y icu + CHECK_RESULT $? 0 0 "remove icu failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/icu/oe_test_icu_install_and_remove_libicu-devel.sh b/testcases/cli-test/icu/oe_test_icu_install_and_remove_libicu-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..18a2c9360a76a172f1d1357bd19e6d7be709825b --- /dev/null +++ b/testcases/cli-test/icu/oe_test_icu_install_and_remove_libicu-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src icu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libicu-devel | grep -v \.src | grep libicu-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libicu-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libicu-devel + CHECK_RESULT $? 0 0 "install libicu-devel failed" + SLEEP_WAIT 1 + dnf remove -y libicu-devel + CHECK_RESULT $? 0 0 "remove libicu-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/icu/oe_test_icu_install_and_remove_libicu-doc.sh b/testcases/cli-test/icu/oe_test_icu_install_and_remove_libicu-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c39247987f5cb367d570b0e4b71d83589b99460c --- /dev/null +++ b/testcases/cli-test/icu/oe_test_icu_install_and_remove_libicu-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src icu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libicu-doc | grep -v \.src | grep libicu-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libicu-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libicu-doc + CHECK_RESULT $? 0 0 "install libicu-doc failed" + SLEEP_WAIT 1 + dnf remove -y libicu-doc + CHECK_RESULT $? 0 0 "remove libicu-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/icu/oe_test_icu_install_and_remove_libicu.sh b/testcases/cli-test/icu/oe_test_icu_install_and_remove_libicu.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f1846b1920b76d1117433c4669a6dc8b7c9bd03 --- /dev/null +++ b/testcases/cli-test/icu/oe_test_icu_install_and_remove_libicu.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src icu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libicu | grep -v \.src | grep libicu + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libicu" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libicu + CHECK_RESULT $? 0 0 "install libicu failed" + SLEEP_WAIT 1 + dnf remove -y libicu + CHECK_RESULT $? 0 0 "remove libicu failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-debuginfo.sh b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..267ce28799fa5046b356a8b28f11de98dce3582f --- /dev/null +++ b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ima-evm-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ima-evm-utils-debuginfo | grep -v \.src | grep ima-evm-utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ima-evm-utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ima-evm-utils-debuginfo + CHECK_RESULT $? 0 0 "install ima-evm-utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ima-evm-utils-debuginfo + CHECK_RESULT $? 0 0 "remove ima-evm-utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-debugsource.sh b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..da0b23093c552b4c2deb74eb706e003893f0959c --- /dev/null +++ b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ima-evm-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ima-evm-utils-debugsource | grep -v \.src | grep ima-evm-utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ima-evm-utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ima-evm-utils-debugsource + CHECK_RESULT $? 0 0 "install ima-evm-utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ima-evm-utils-debugsource + CHECK_RESULT $? 0 0 "remove ima-evm-utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-devel.sh b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0311a0ac184785e7c7ae9746ac1406b0fe221a15 --- /dev/null +++ b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ima-evm-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ima-evm-utils-devel | grep -v \.src | grep ima-evm-utils-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ima-evm-utils-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ima-evm-utils-devel + CHECK_RESULT $? 0 0 "install ima-evm-utils-devel failed" + SLEEP_WAIT 1 + dnf remove -y ima-evm-utils-devel + CHECK_RESULT $? 0 0 "remove ima-evm-utils-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-help.sh b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..21b25682859f5edf8b85033e13b4778fc7a2b447 --- /dev/null +++ b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ima-evm-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ima-evm-utils-help | grep -v \.src | grep ima-evm-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ima-evm-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ima-evm-utils-help + CHECK_RESULT $? 0 0 "install ima-evm-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y ima-evm-utils-help + CHECK_RESULT $? 0 0 "remove ima-evm-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-libs.sh b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7669d45e99cb5e66f5fe580ea5251951d25c736 --- /dev/null +++ b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ima-evm-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ima-evm-utils-libs | grep -v \.src | grep ima-evm-utils-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ima-evm-utils-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ima-evm-utils-libs + CHECK_RESULT $? 0 0 "install ima-evm-utils-libs failed" + SLEEP_WAIT 1 + dnf remove -y ima-evm-utils-libs + CHECK_RESULT $? 0 0 "remove ima-evm-utils-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils.sh b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a15fb4cd9f77fe9d000f0170a731671cec8b718 --- /dev/null +++ b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_ima-evm-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ima-evm-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ima-evm-utils | grep -v \.src | grep ima-evm-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ima-evm-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ima-evm-utils + CHECK_RESULT $? 0 0 "install ima-evm-utils failed" + SLEEP_WAIT 1 + dnf remove -y ima-evm-utils + CHECK_RESULT $? 0 0 "remove ima-evm-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_libimaevm0.sh b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_libimaevm0.sh new file mode 100644 index 0000000000000000000000000000000000000000..abed6d9ecf2fa902db7151c0832a1a2286b05809 --- /dev/null +++ b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_libimaevm0.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ima-evm-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libimaevm0 | grep -v \.src | grep libimaevm0 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libimaevm0" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libimaevm0 + CHECK_RESULT $? 0 0 "install libimaevm0 failed" + SLEEP_WAIT 1 + dnf remove -y libimaevm0 + CHECK_RESULT $? 0 0 "remove libimaevm0 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_libimaevm1.sh b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_libimaevm1.sh new file mode 100644 index 0000000000000000000000000000000000000000..71b2a3953215f9de1c2dd1fddc059fa8e7fa3fe3 --- /dev/null +++ b/testcases/cli-test/ima-evm-utils/oe_test_ima-evm-utils_install_and_remove_libimaevm1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ima-evm-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libimaevm1 | grep -v \.src | grep libimaevm1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libimaevm1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libimaevm1 + CHECK_RESULT $? 0 0 "install libimaevm1 failed" + SLEEP_WAIT 1 + dnf remove -y libimaevm1 + CHECK_RESULT $? 0 0 "remove libimaevm1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih-debuginfo.sh b/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0f0595f9d02f75eff9672578ae564b8f108faf2 --- /dev/null +++ b/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src inih +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available inih-debuginfo | grep -v \.src | grep inih-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm inih-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y inih-debuginfo + CHECK_RESULT $? 0 0 "install inih-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y inih-debuginfo + CHECK_RESULT $? 0 0 "remove inih-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih-debugsource.sh b/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d57214c4e58ab82eb16ea9df5c1c939d0993c35 --- /dev/null +++ b/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src inih +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available inih-debugsource | grep -v \.src | grep inih-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm inih-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y inih-debugsource + CHECK_RESULT $? 0 0 "install inih-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y inih-debugsource + CHECK_RESULT $? 0 0 "remove inih-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih-devel.sh b/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..31f4839be7c28908534c5c0aaf36bcbe43ac8f8b --- /dev/null +++ b/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src inih +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available inih-devel | grep -v \.src | grep inih-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm inih-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y inih-devel + CHECK_RESULT $? 0 0 "install inih-devel failed" + SLEEP_WAIT 1 + dnf remove -y inih-devel + CHECK_RESULT $? 0 0 "remove inih-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih.sh b/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih.sh new file mode 100644 index 0000000000000000000000000000000000000000..317029b6cf6679ceb712a05bde1075700c162b72 --- /dev/null +++ b/testcases/cli-test/inih/oe_test_inih_install_and_remove_inih.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src inih +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available inih | grep -v \.src | grep inih + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm inih" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y inih + CHECK_RESULT $? 0 0 "install inih failed" + SLEEP_WAIT 1 + dnf remove -y inih + CHECK_RESULT $? 0 0 "remove inih failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iniparser/oe_test_iniparser_install_and_remove_iniparser-debuginfo.sh b/testcases/cli-test/iniparser/oe_test_iniparser_install_and_remove_iniparser-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8ab7132eebf7044f9f56d9837597a9708154f2d --- /dev/null +++ b/testcases/cli-test/iniparser/oe_test_iniparser_install_and_remove_iniparser-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iniparser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iniparser-debuginfo | grep -v \.src | grep iniparser-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iniparser-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iniparser-debuginfo + CHECK_RESULT $? 0 0 "install iniparser-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y iniparser-debuginfo + CHECK_RESULT $? 0 0 "remove iniparser-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iniparser/oe_test_iniparser_install_and_remove_iniparser-debugsource.sh b/testcases/cli-test/iniparser/oe_test_iniparser_install_and_remove_iniparser-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf529af0b1ecc5d669502014b89331647dceb12a --- /dev/null +++ b/testcases/cli-test/iniparser/oe_test_iniparser_install_and_remove_iniparser-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iniparser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iniparser-debugsource | grep -v \.src | grep iniparser-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iniparser-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iniparser-debugsource + CHECK_RESULT $? 0 0 "install iniparser-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y iniparser-debugsource + CHECK_RESULT $? 0 0 "remove iniparser-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iniparser/oe_test_iniparser_install_and_remove_iniparser.sh b/testcases/cli-test/iniparser/oe_test_iniparser_install_and_remove_iniparser.sh new file mode 100644 index 0000000000000000000000000000000000000000..80edd3471deaed3a57a31aeed8a2fef7ea545c44 --- /dev/null +++ b/testcases/cli-test/iniparser/oe_test_iniparser_install_and_remove_iniparser.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iniparser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iniparser | grep -v \.src | grep iniparser + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iniparser" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iniparser + CHECK_RESULT $? 0 0 "install iniparser failed" + SLEEP_WAIT 1 + dnf remove -y iniparser + CHECK_RESULT $? 0 0 "remove iniparser failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts-debuginfo.sh b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6a2ba83ea0d328435c4656067fb646011c4c018 --- /dev/null +++ b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src initscripts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available initscripts-debuginfo | grep -v \.src | grep initscripts-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm initscripts-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y initscripts-debuginfo + CHECK_RESULT $? 0 0 "install initscripts-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y initscripts-debuginfo + CHECK_RESULT $? 0 0 "remove initscripts-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts-debugsource.sh b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8d1105927df7b9da400467f9a1954867d7ccd6d --- /dev/null +++ b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src initscripts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available initscripts-debugsource | grep -v \.src | grep initscripts-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm initscripts-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y initscripts-debugsource + CHECK_RESULT $? 0 0 "install initscripts-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y initscripts-debugsource + CHECK_RESULT $? 0 0 "remove initscripts-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts-service.sh b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts-service.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0c985c4213a6628624515a16b96fba9e80121d8 --- /dev/null +++ b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts-service.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src initscripts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available initscripts-service | grep -v \.src | grep initscripts-service + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm initscripts-service" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y initscripts-service + CHECK_RESULT $? 0 0 "install initscripts-service failed" + SLEEP_WAIT 1 + dnf remove -y initscripts-service + CHECK_RESULT $? 0 0 "remove initscripts-service failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts.sh b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts.sh new file mode 100644 index 0000000000000000000000000000000000000000..a33b05f7cf967059e82f578c39e22eecac0413b1 --- /dev/null +++ b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_initscripts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src initscripts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available initscripts | grep -v \.src | grep initscripts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm initscripts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y initscripts + CHECK_RESULT $? 0 0 "install initscripts failed" + SLEEP_WAIT 1 + dnf remove -y initscripts + CHECK_RESULT $? 0 0 "remove initscripts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_netconsole-service.sh b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_netconsole-service.sh new file mode 100644 index 0000000000000000000000000000000000000000..2475cf46fc913212c8e380155f6bf822d550829c --- /dev/null +++ b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_netconsole-service.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src initscripts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available netconsole-service | grep -v \.src | grep netconsole-service + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm netconsole-service" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y netconsole-service + CHECK_RESULT $? 0 0 "install netconsole-service failed" + SLEEP_WAIT 1 + dnf remove -y netconsole-service + CHECK_RESULT $? 0 0 "remove netconsole-service failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_network-scripts.sh b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_network-scripts.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6d6e5b0297ef935156adbfaefc3ae7abe76a4e5 --- /dev/null +++ b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_network-scripts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src initscripts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available network-scripts | grep -v \.src | grep network-scripts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm network-scripts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y network-scripts + CHECK_RESULT $? 0 0 "install network-scripts failed" + SLEEP_WAIT 1 + dnf remove -y network-scripts + CHECK_RESULT $? 0 0 "remove network-scripts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_readonly-root.sh b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_readonly-root.sh new file mode 100644 index 0000000000000000000000000000000000000000..b44fefdd74fcb46b2eaa1d667190eac6ae7d5f7e --- /dev/null +++ b/testcases/cli-test/initscripts/oe_test_initscripts_install_and_remove_readonly-root.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src initscripts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available readonly-root | grep -v \.src | grep readonly-root + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm readonly-root" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y readonly-root + CHECK_RESULT $? 0 0 "install readonly-root failed" + SLEEP_WAIT 1 + dnf remove -y readonly-root + CHECK_RESULT $? 0 0 "remove readonly-root failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/intltool/oe_test_intltool_install_and_remove_intltool-help.sh b/testcases/cli-test/intltool/oe_test_intltool_install_and_remove_intltool-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a2faf996a154ab9207a45e0676b3e284d0f0148 --- /dev/null +++ b/testcases/cli-test/intltool/oe_test_intltool_install_and_remove_intltool-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src intltool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available intltool-help | grep -v \.src | grep intltool-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm intltool-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y intltool-help + CHECK_RESULT $? 0 0 "install intltool-help failed" + SLEEP_WAIT 1 + dnf remove -y intltool-help + CHECK_RESULT $? 0 0 "remove intltool-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/intltool/oe_test_intltool_install_and_remove_intltool.sh b/testcases/cli-test/intltool/oe_test_intltool_install_and_remove_intltool.sh new file mode 100644 index 0000000000000000000000000000000000000000..89da7477d0c9df38ddd2e882301ea204f86954a2 --- /dev/null +++ b/testcases/cli-test/intltool/oe_test_intltool_install_and_remove_intltool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src intltool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available intltool | grep -v \.src | grep intltool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm intltool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y intltool + CHECK_RESULT $? 0 0 "install intltool failed" + SLEEP_WAIT 1 + dnf remove -y intltool + CHECK_RESULT $? 0 0 "remove intltool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc-debuginfo.sh b/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..21960c76a24f359f5dac64e34ff10e5f5e5ccdf9 --- /dev/null +++ b/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipcalc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipcalc-debuginfo | grep -v \.src | grep ipcalc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipcalc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipcalc-debuginfo + CHECK_RESULT $? 0 0 "install ipcalc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ipcalc-debuginfo + CHECK_RESULT $? 0 0 "remove ipcalc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc-debugsource.sh b/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a94d7556e5dbc4047a0c36e2e08ce67cd442b190 --- /dev/null +++ b/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipcalc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipcalc-debugsource | grep -v \.src | grep ipcalc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipcalc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipcalc-debugsource + CHECK_RESULT $? 0 0 "install ipcalc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ipcalc-debugsource + CHECK_RESULT $? 0 0 "remove ipcalc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc-help.sh b/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bced1054e871a3dc7f5fd17f1be73b01621100e7 --- /dev/null +++ b/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipcalc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipcalc-help | grep -v \.src | grep ipcalc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipcalc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipcalc-help + CHECK_RESULT $? 0 0 "install ipcalc-help failed" + SLEEP_WAIT 1 + dnf remove -y ipcalc-help + CHECK_RESULT $? 0 0 "remove ipcalc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc.sh b/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ad8b00d569d2295ca29dd0d557fab9011b6cd26 --- /dev/null +++ b/testcases/cli-test/ipcalc/oe_test_ipcalc_install_and_remove_ipcalc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipcalc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipcalc | grep -v \.src | grep ipcalc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipcalc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipcalc + CHECK_RESULT $? 0 0 "install ipcalc failed" + SLEEP_WAIT 1 + dnf remove -y ipcalc + CHECK_RESULT $? 0 0 "remove ipcalc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_bmc-snmp-proxy.sh b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_bmc-snmp-proxy.sh new file mode 100644 index 0000000000000000000000000000000000000000..2933301804bea60a4d9b0767a1ebf3fbd99872cf --- /dev/null +++ b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_bmc-snmp-proxy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipmitool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bmc-snmp-proxy | grep -v \.src | grep bmc-snmp-proxy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bmc-snmp-proxy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bmc-snmp-proxy + CHECK_RESULT $? 0 0 "install bmc-snmp-proxy failed" + SLEEP_WAIT 1 + dnf remove -y bmc-snmp-proxy + CHECK_RESULT $? 0 0 "remove bmc-snmp-proxy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_exchange-bmc-os-info.sh b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_exchange-bmc-os-info.sh new file mode 100644 index 0000000000000000000000000000000000000000..06c54552fcce23f726102ea4508d5ad8f70f85f1 --- /dev/null +++ b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_exchange-bmc-os-info.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipmitool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available exchange-bmc-os-info | grep -v \.src | grep exchange-bmc-os-info + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm exchange-bmc-os-info" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y exchange-bmc-os-info + CHECK_RESULT $? 0 0 "install exchange-bmc-os-info failed" + SLEEP_WAIT 1 + dnf remove -y exchange-bmc-os-info + CHECK_RESULT $? 0 0 "remove exchange-bmc-os-info failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool-debuginfo.sh b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d930925a27728a0776a4c47e8e6fa636230afa8 --- /dev/null +++ b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipmitool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipmitool-debuginfo | grep -v \.src | grep ipmitool-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipmitool-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipmitool-debuginfo + CHECK_RESULT $? 0 0 "install ipmitool-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ipmitool-debuginfo + CHECK_RESULT $? 0 0 "remove ipmitool-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool-debugsource.sh b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8af3e5a919f4a43867a8be91b0dc16ac5378c15e --- /dev/null +++ b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipmitool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipmitool-debugsource | grep -v \.src | grep ipmitool-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipmitool-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipmitool-debugsource + CHECK_RESULT $? 0 0 "install ipmitool-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ipmitool-debugsource + CHECK_RESULT $? 0 0 "remove ipmitool-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool-help.sh b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9c2a798d73e94db259ecdf582a1716840993717 --- /dev/null +++ b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipmitool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipmitool-help | grep -v \.src | grep ipmitool-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipmitool-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipmitool-help + CHECK_RESULT $? 0 0 "install ipmitool-help failed" + SLEEP_WAIT 1 + dnf remove -y ipmitool-help + CHECK_RESULT $? 0 0 "remove ipmitool-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool.sh b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool.sh new file mode 100644 index 0000000000000000000000000000000000000000..380a714bf37f180c234b3ea848c238fe5748cea7 --- /dev/null +++ b/testcases/cli-test/ipmitool/oe_test_ipmitool_install_and_remove_ipmitool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipmitool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipmitool | grep -v \.src | grep ipmitool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipmitool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipmitool + CHECK_RESULT $? 0 0 "install ipmitool failed" + SLEEP_WAIT 1 + dnf remove -y ipmitool + CHECK_RESULT $? 0 0 "remove ipmitool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-debuginfo.sh b/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0f02d6ee6db61a80f099591ffe3dd1d7494b1ad --- /dev/null +++ b/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iproute +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iproute-debuginfo | grep -v \.src | grep iproute-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iproute-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iproute-debuginfo + CHECK_RESULT $? 0 0 "install iproute-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y iproute-debuginfo + CHECK_RESULT $? 0 0 "remove iproute-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-debugsource.sh b/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5ba2ed46cfb0f09ec60443dffdaaf78f30274e1 --- /dev/null +++ b/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iproute +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iproute-debugsource | grep -v \.src | grep iproute-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iproute-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iproute-debugsource + CHECK_RESULT $? 0 0 "install iproute-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y iproute-debugsource + CHECK_RESULT $? 0 0 "remove iproute-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-devel.sh b/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab1c5f1cd05d8374d086104194998c6543fead44 --- /dev/null +++ b/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iproute +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iproute-devel | grep -v \.src | grep iproute-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iproute-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iproute-devel + CHECK_RESULT $? 0 0 "install iproute-devel failed" + SLEEP_WAIT 1 + dnf remove -y iproute-devel + CHECK_RESULT $? 0 0 "remove iproute-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-help.sh b/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e6d80c912f4ac7eb09941097faf02a2742ffd6a --- /dev/null +++ b/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iproute +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iproute-help | grep -v \.src | grep iproute-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iproute-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iproute-help + CHECK_RESULT $? 0 0 "install iproute-help failed" + SLEEP_WAIT 1 + dnf remove -y iproute-help + CHECK_RESULT $? 0 0 "remove iproute-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute.sh b/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e2dbcfe20a06941c6be1df91fe81385fe15121c --- /dev/null +++ b/testcases/cli-test/iproute/oe_test_iproute_install_and_remove_iproute.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iproute +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iproute | grep -v \.src | grep iproute + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iproute" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iproute + CHECK_RESULT $? 0 0 "install iproute failed" + SLEEP_WAIT 1 + dnf remove -y iproute + CHECK_RESULT $? 0 0 "remove iproute failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils-debuginfo.sh b/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6dc7a63842d1244c9749c25f817fc0299a8e760 --- /dev/null +++ b/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iprutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iprutils-debuginfo | grep -v \.src | grep iprutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iprutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iprutils-debuginfo + CHECK_RESULT $? 0 0 "install iprutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y iprutils-debuginfo + CHECK_RESULT $? 0 0 "remove iprutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils-debugsource.sh b/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6894752f258b37bd9251122f2a4943461062a5e1 --- /dev/null +++ b/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iprutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iprutils-debugsource | grep -v \.src | grep iprutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iprutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iprutils-debugsource + CHECK_RESULT $? 0 0 "install iprutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y iprutils-debugsource + CHECK_RESULT $? 0 0 "remove iprutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils-help.sh b/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..11048671fd6da72ff7a3a482d4b223b8b92cb59f --- /dev/null +++ b/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iprutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iprutils-help | grep -v \.src | grep iprutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iprutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iprutils-help + CHECK_RESULT $? 0 0 "install iprutils-help failed" + SLEEP_WAIT 1 + dnf remove -y iprutils-help + CHECK_RESULT $? 0 0 "remove iprutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils.sh b/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..af9941de09da28b98fd0dea323ef36bd353c89cf --- /dev/null +++ b/testcases/cli-test/iprutils/oe_test_iprutils_install_and_remove_iprutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iprutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iprutils | grep -v \.src | grep iprutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iprutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iprutils + CHECK_RESULT $? 0 0 "install iprutils failed" + SLEEP_WAIT 1 + dnf remove -y iprutils + CHECK_RESULT $? 0 0 "remove iprutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-debuginfo.sh b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca1a3da96dce7fae757e5aa94359c7472c749a4f --- /dev/null +++ b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipset +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipset-debuginfo | grep -v \.src | grep ipset-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipset-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipset-debuginfo + CHECK_RESULT $? 0 0 "install ipset-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ipset-debuginfo + CHECK_RESULT $? 0 0 "remove ipset-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-debugsource.sh b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d3e1caba4f957bd637126d90bb3f070a49fce22 --- /dev/null +++ b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipset +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipset-debugsource | grep -v \.src | grep ipset-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipset-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipset-debugsource + CHECK_RESULT $? 0 0 "install ipset-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ipset-debugsource + CHECK_RESULT $? 0 0 "remove ipset-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-devel.sh b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..61c1dbffb4b64c93211fb2a9be51e189357e13bc --- /dev/null +++ b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipset +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipset-devel | grep -v \.src | grep ipset-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipset-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipset-devel + CHECK_RESULT $? 0 0 "install ipset-devel failed" + SLEEP_WAIT 1 + dnf remove -y ipset-devel + CHECK_RESULT $? 0 0 "remove ipset-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-help.sh b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..77961f6472e55b7931a51b455c72b20152f87903 --- /dev/null +++ b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipset +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipset-help | grep -v \.src | grep ipset-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipset-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipset-help + CHECK_RESULT $? 0 0 "install ipset-help failed" + SLEEP_WAIT 1 + dnf remove -y ipset-help + CHECK_RESULT $? 0 0 "remove ipset-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-libs.sh b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..da774a024cde1595770b6c959c9abc4bacca4661 --- /dev/null +++ b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipset +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipset-libs | grep -v \.src | grep ipset-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipset-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipset-libs + CHECK_RESULT $? 0 0 "install ipset-libs failed" + SLEEP_WAIT 1 + dnf remove -y ipset-libs + CHECK_RESULT $? 0 0 "remove ipset-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset.sh b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset.sh new file mode 100644 index 0000000000000000000000000000000000000000..e641a170b97f8a766da5c3d4d27efd8f537439f4 --- /dev/null +++ b/testcases/cli-test/ipset/oe_test_ipset_install_and_remove_ipset.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ipset +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ipset | grep -v \.src | grep ipset + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ipset" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ipset + CHECK_RESULT $? 0 0 "install ipset failed" + SLEEP_WAIT 1 + dnf remove -y ipset + CHECK_RESULT $? 0 0 "remove ipset failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-debuginfo.sh b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..35388cf4c06648875f08fdbf0a0a45125a116ff1 --- /dev/null +++ b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iptables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iptables-debuginfo | grep -v \.src | grep iptables-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iptables-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iptables-debuginfo + CHECK_RESULT $? 0 0 "install iptables-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y iptables-debuginfo + CHECK_RESULT $? 0 0 "remove iptables-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-debugsource.sh b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a7972c8399946f495aff2debe013366eeba99e3 --- /dev/null +++ b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iptables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iptables-debugsource | grep -v \.src | grep iptables-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iptables-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iptables-debugsource + CHECK_RESULT $? 0 0 "install iptables-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y iptables-debugsource + CHECK_RESULT $? 0 0 "remove iptables-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-devel.sh b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c028bf710441c263df6ec2224e0ce22268ed419 --- /dev/null +++ b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iptables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iptables-devel | grep -v \.src | grep iptables-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iptables-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iptables-devel + CHECK_RESULT $? 0 0 "install iptables-devel failed" + SLEEP_WAIT 1 + dnf remove -y iptables-devel + CHECK_RESULT $? 0 0 "remove iptables-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-help.sh b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..15ee2de2b7985b5f51690b73fd4ef915a8b63325 --- /dev/null +++ b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iptables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iptables-help | grep -v \.src | grep iptables-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iptables-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iptables-help + CHECK_RESULT $? 0 0 "install iptables-help failed" + SLEEP_WAIT 1 + dnf remove -y iptables-help + CHECK_RESULT $? 0 0 "remove iptables-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-libs.sh b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8b2344f69542e4af85cfca0f142bbc2dba2b941 --- /dev/null +++ b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iptables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iptables-libs | grep -v \.src | grep iptables-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iptables-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iptables-libs + CHECK_RESULT $? 0 0 "install iptables-libs failed" + SLEEP_WAIT 1 + dnf remove -y iptables-libs + CHECK_RESULT $? 0 0 "remove iptables-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-nft.sh b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-nft.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5002f2bff0a1ae76d3605fd4090da83249203f7 --- /dev/null +++ b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables-nft.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iptables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iptables-nft | grep -v \.src | grep iptables-nft + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iptables-nft" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iptables-nft + CHECK_RESULT $? 0 0 "install iptables-nft failed" + SLEEP_WAIT 1 + dnf remove -y iptables-nft + CHECK_RESULT $? 0 0 "remove iptables-nft failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables.sh b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables.sh new file mode 100644 index 0000000000000000000000000000000000000000..000e5119c1c4c0928590c79312144ace2ece0c93 --- /dev/null +++ b/testcases/cli-test/iptables/oe_test_iptables_install_and_remove_iptables.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iptables +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iptables | grep -v \.src | grep iptables + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iptables" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iptables + CHECK_RESULT $? 0 0 "install iptables failed" + SLEEP_WAIT 1 + dnf remove -y iptables + CHECK_RESULT $? 0 0 "remove iptables failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-debuginfo.sh b/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d924d8a8d9be031a80cdd51f4311042453b9ebd --- /dev/null +++ b/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iputils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iputils-debuginfo | grep -v \.src | grep iputils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iputils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iputils-debuginfo + CHECK_RESULT $? 0 0 "install iputils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y iputils-debuginfo + CHECK_RESULT $? 0 0 "remove iputils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-debugsource.sh b/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b042a2867a5cad7bae3e4ee855abff06f75e6f98 --- /dev/null +++ b/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iputils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iputils-debugsource | grep -v \.src | grep iputils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iputils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iputils-debugsource + CHECK_RESULT $? 0 0 "install iputils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y iputils-debugsource + CHECK_RESULT $? 0 0 "remove iputils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-help.sh b/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..947546832f1b995739f8de07a52731d966898a7e --- /dev/null +++ b/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iputils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iputils-help | grep -v \.src | grep iputils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iputils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iputils-help + CHECK_RESULT $? 0 0 "install iputils-help failed" + SLEEP_WAIT 1 + dnf remove -y iputils-help + CHECK_RESULT $? 0 0 "remove iputils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-ninfod.sh b/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-ninfod.sh new file mode 100644 index 0000000000000000000000000000000000000000..77f0b8b9ec6474d26e5878863f8dba133bcc6211 --- /dev/null +++ b/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils-ninfod.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iputils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iputils-ninfod | grep -v \.src | grep iputils-ninfod + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iputils-ninfod" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iputils-ninfod + CHECK_RESULT $? 0 0 "install iputils-ninfod failed" + SLEEP_WAIT 1 + dnf remove -y iputils-ninfod + CHECK_RESULT $? 0 0 "remove iputils-ninfod failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils.sh b/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils.sh new file mode 100644 index 0000000000000000000000000000000000000000..c927bab097d406fc83c544511a22c7e76a23d28e --- /dev/null +++ b/testcases/cli-test/iputils/oe_test_iputils_install_and_remove_iputils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iputils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iputils | grep -v \.src | grep iputils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iputils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iputils + CHECK_RESULT $? 0 0 "install iputils failed" + SLEEP_WAIT 1 + dnf remove -y iputils + CHECK_RESULT $? 0 0 "remove iputils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-debuginfo.sh b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..61c279a99e7850d55c7bcc5e2856537d7bbec14d --- /dev/null +++ b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src irqbalance +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available irqbalance-debuginfo | grep -v \.src | grep irqbalance-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm irqbalance-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y irqbalance-debuginfo + CHECK_RESULT $? 0 0 "install irqbalance-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y irqbalance-debuginfo + CHECK_RESULT $? 0 0 "remove irqbalance-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-debugsource.sh b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f5cd73bdbf183fea636a44124845a4df03ec6b1 --- /dev/null +++ b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src irqbalance +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available irqbalance-debugsource | grep -v \.src | grep irqbalance-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm irqbalance-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y irqbalance-debugsource + CHECK_RESULT $? 0 0 "install irqbalance-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y irqbalance-debugsource + CHECK_RESULT $? 0 0 "remove irqbalance-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-devel.sh b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..152bdd4480c60c4eacfeb5bae443beaeb1eaee64 --- /dev/null +++ b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src irqbalance +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available irqbalance-devel | grep -v \.src | grep irqbalance-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm irqbalance-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y irqbalance-devel + CHECK_RESULT $? 0 0 "install irqbalance-devel failed" + SLEEP_WAIT 1 + dnf remove -y irqbalance-devel + CHECK_RESULT $? 0 0 "remove irqbalance-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-help.sh b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a46d35d6d8ca4f2694964764f330a1b729979a3b --- /dev/null +++ b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src irqbalance +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available irqbalance-help | grep -v \.src | grep irqbalance-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm irqbalance-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y irqbalance-help + CHECK_RESULT $? 0 0 "install irqbalance-help failed" + SLEEP_WAIT 1 + dnf remove -y irqbalance-help + CHECK_RESULT $? 0 0 "remove irqbalance-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-libs.sh b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0939a429fbfa287dcca6bb9b25809cf658a4074 --- /dev/null +++ b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src irqbalance +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available irqbalance-libs | grep -v \.src | grep irqbalance-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm irqbalance-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y irqbalance-libs + CHECK_RESULT $? 0 0 "install irqbalance-libs failed" + SLEEP_WAIT 1 + dnf remove -y irqbalance-libs + CHECK_RESULT $? 0 0 "remove irqbalance-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance.sh b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance.sh new file mode 100644 index 0000000000000000000000000000000000000000..641ceccdac1b058235fe9316e02b3f85e0290f0c --- /dev/null +++ b/testcases/cli-test/irqbalance/oe_test_irqbalance_install_and_remove_irqbalance.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src irqbalance +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available irqbalance | grep -v \.src | grep irqbalance + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm irqbalance" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y irqbalance + CHECK_RESULT $? 0 0 "install irqbalance failed" + SLEEP_WAIT 1 + dnf remove -y irqbalance + CHECK_RESULT $? 0 0 "remove irqbalance failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iso-codes/oe_test_iso-codes_install_and_remove_iso-codes-devel.sh b/testcases/cli-test/iso-codes/oe_test_iso-codes_install_and_remove_iso-codes-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f63eb0077bbb83e2dd0a3bbd60fc54984712265c --- /dev/null +++ b/testcases/cli-test/iso-codes/oe_test_iso-codes_install_and_remove_iso-codes-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iso-codes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iso-codes-devel | grep -v \.src | grep iso-codes-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iso-codes-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iso-codes-devel + CHECK_RESULT $? 0 0 "install iso-codes-devel failed" + SLEEP_WAIT 1 + dnf remove -y iso-codes-devel + CHECK_RESULT $? 0 0 "remove iso-codes-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/iso-codes/oe_test_iso-codes_install_and_remove_iso-codes.sh b/testcases/cli-test/iso-codes/oe_test_iso-codes_install_and_remove_iso-codes.sh new file mode 100644 index 0000000000000000000000000000000000000000..446c59a31495dfda8d01287ad8c61bf210e21ff0 --- /dev/null +++ b/testcases/cli-test/iso-codes/oe_test_iso-codes_install_and_remove_iso-codes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src iso-codes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iso-codes | grep -v \.src | grep iso-codes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iso-codes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iso-codes + CHECK_RESULT $? 0 0 "install iso-codes failed" + SLEEP_WAIT 1 + dnf remove -y iso-codes + CHECK_RESULT $? 0 0 "remove iso-codes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-debuginfo.sh b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..72b47b30d02d91c8ba475cde1461d22e2ef6986b --- /dev/null +++ b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src isomd5sum +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available isomd5sum-debuginfo | grep -v \.src | grep isomd5sum-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm isomd5sum-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y isomd5sum-debuginfo + CHECK_RESULT $? 0 0 "install isomd5sum-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y isomd5sum-debuginfo + CHECK_RESULT $? 0 0 "remove isomd5sum-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-debugsource.sh b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..14a2d64c3e2ed355683abd1a48401020411bf196 --- /dev/null +++ b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src isomd5sum +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available isomd5sum-debugsource | grep -v \.src | grep isomd5sum-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm isomd5sum-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y isomd5sum-debugsource + CHECK_RESULT $? 0 0 "install isomd5sum-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y isomd5sum-debugsource + CHECK_RESULT $? 0 0 "remove isomd5sum-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-devel.sh b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d08634fc46eb7e9183af2007aadf6e82ee6ed23 --- /dev/null +++ b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src isomd5sum +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available isomd5sum-devel | grep -v \.src | grep isomd5sum-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm isomd5sum-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y isomd5sum-devel + CHECK_RESULT $? 0 0 "install isomd5sum-devel failed" + SLEEP_WAIT 1 + dnf remove -y isomd5sum-devel + CHECK_RESULT $? 0 0 "remove isomd5sum-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-help.sh b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c121c2e7feb2b80baf801307027723fa1300bba6 --- /dev/null +++ b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src isomd5sum +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available isomd5sum-help | grep -v \.src | grep isomd5sum-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm isomd5sum-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y isomd5sum-help + CHECK_RESULT $? 0 0 "install isomd5sum-help failed" + SLEEP_WAIT 1 + dnf remove -y isomd5sum-help + CHECK_RESULT $? 0 0 "remove isomd5sum-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum.sh b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc21cbee7e73976e50a2210d3a8054090c76dbe0 --- /dev/null +++ b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_isomd5sum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src isomd5sum +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available isomd5sum | grep -v \.src | grep isomd5sum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm isomd5sum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y isomd5sum + CHECK_RESULT $? 0 0 "install isomd5sum failed" + SLEEP_WAIT 1 + dnf remove -y isomd5sum + CHECK_RESULT $? 0 0 "remove isomd5sum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_python2-isomd5sum.sh b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_python2-isomd5sum.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c358e4a06f42bba9a91e69ca1993761a114681a --- /dev/null +++ b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_python2-isomd5sum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src isomd5sum +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-isomd5sum | grep -v \.src | grep python2-isomd5sum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-isomd5sum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-isomd5sum + CHECK_RESULT $? 0 0 "install python2-isomd5sum failed" + SLEEP_WAIT 1 + dnf remove -y python2-isomd5sum + CHECK_RESULT $? 0 0 "remove python2-isomd5sum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_python3-isomd5sum.sh b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_python3-isomd5sum.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e00c834494e58e152a37e033155544a55bfa706 --- /dev/null +++ b/testcases/cli-test/isomd5sum/oe_test_isomd5sum_install_and_remove_python3-isomd5sum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src isomd5sum +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-isomd5sum | grep -v \.src | grep python3-isomd5sum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-isomd5sum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-isomd5sum + CHECK_RESULT $? 0 0 "install python3-isomd5sum failed" + SLEEP_WAIT 1 + dnf remove -y python3-isomd5sum + CHECK_RESULT $? 0 0 "remove python3-isomd5sum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/itstool/oe_test_itstool_install_and_remove_itstool-help.sh b/testcases/cli-test/itstool/oe_test_itstool_install_and_remove_itstool-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..564ad6997f3732b173f77bc2e01c8f319b83126a --- /dev/null +++ b/testcases/cli-test/itstool/oe_test_itstool_install_and_remove_itstool-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src itstool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available itstool-help | grep -v \.src | grep itstool-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm itstool-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y itstool-help + CHECK_RESULT $? 0 0 "install itstool-help failed" + SLEEP_WAIT 1 + dnf remove -y itstool-help + CHECK_RESULT $? 0 0 "remove itstool-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/itstool/oe_test_itstool_install_and_remove_itstool.sh b/testcases/cli-test/itstool/oe_test_itstool_install_and_remove_itstool.sh new file mode 100644 index 0000000000000000000000000000000000000000..78475c5746a8568eba9d7bcd83ed1c2c42e5820d --- /dev/null +++ b/testcases/cli-test/itstool/oe_test_itstool_install_and_remove_itstool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src itstool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available itstool | grep -v \.src | grep itstool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm itstool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y itstool + CHECK_RESULT $? 0 0 "install itstool failed" + SLEEP_WAIT 1 + dnf remove -y itstool + CHECK_RESULT $? 0 0 "remove itstool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-debuginfo.sh b/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..46c4f4a30c1f2b068d32aa7faf58ed9863dfa2b9 --- /dev/null +++ b/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jansson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jansson-debuginfo | grep -v \.src | grep jansson-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jansson-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jansson-debuginfo + CHECK_RESULT $? 0 0 "install jansson-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y jansson-debuginfo + CHECK_RESULT $? 0 0 "remove jansson-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-debugsource.sh b/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3b05d3e191dda4fba43afc67a5570ba6103fc1d --- /dev/null +++ b/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jansson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jansson-debugsource | grep -v \.src | grep jansson-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jansson-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jansson-debugsource + CHECK_RESULT $? 0 0 "install jansson-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y jansson-debugsource + CHECK_RESULT $? 0 0 "remove jansson-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-devel.sh b/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..70c74a4265531f1843fdc7ef33438bc46b7d8380 --- /dev/null +++ b/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jansson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jansson-devel | grep -v \.src | grep jansson-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jansson-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jansson-devel + CHECK_RESULT $? 0 0 "install jansson-devel failed" + SLEEP_WAIT 1 + dnf remove -y jansson-devel + CHECK_RESULT $? 0 0 "remove jansson-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-help.sh b/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d266cb68b98bcefbf7f17bf786da15cadf723fd7 --- /dev/null +++ b/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jansson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jansson-help | grep -v \.src | grep jansson-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jansson-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jansson-help + CHECK_RESULT $? 0 0 "install jansson-help failed" + SLEEP_WAIT 1 + dnf remove -y jansson-help + CHECK_RESULT $? 0 0 "remove jansson-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson.sh b/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson.sh new file mode 100644 index 0000000000000000000000000000000000000000..f42c586069ea0e6347159bf3619d9b4e5c7e635a --- /dev/null +++ b/testcases/cli-test/jansson/oe_test_jansson_install_and_remove_jansson.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jansson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jansson | grep -v \.src | grep jansson + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jansson" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jansson + CHECK_RESULT $? 0 0 "install jansson failed" + SLEEP_WAIT 1 + dnf remove -y jansson + CHECK_RESULT $? 0 0 "remove jansson failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/java_cup/oe_test_java_cup_install_and_remove_java_cup-help.sh b/testcases/cli-test/java_cup/oe_test_java_cup_install_and_remove_java_cup-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b7292836b3bcab1380c81705fccc1d8adcace31 --- /dev/null +++ b/testcases/cli-test/java_cup/oe_test_java_cup_install_and_remove_java_cup-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src java_cup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available java_cup-help | grep -v \.src | grep java_cup-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm java_cup-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y java_cup-help + CHECK_RESULT $? 0 0 "install java_cup-help failed" + SLEEP_WAIT 1 + dnf remove -y java_cup-help + CHECK_RESULT $? 0 0 "remove java_cup-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/java_cup/oe_test_java_cup_install_and_remove_java_cup.sh b/testcases/cli-test/java_cup/oe_test_java_cup_install_and_remove_java_cup.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d0a37bd0163048e7a83b535e7642db61b08e490 --- /dev/null +++ b/testcases/cli-test/java_cup/oe_test_java_cup_install_and_remove_java_cup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src java_cup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available java_cup | grep -v \.src | grep java_cup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm java_cup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y java_cup + CHECK_RESULT $? 0 0 "install java_cup failed" + SLEEP_WAIT 1 + dnf remove -y java_cup + CHECK_RESULT $? 0 0 "remove java_cup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_gradle-local.sh b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_gradle-local.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b78ed3a459e1d3352d8c0e084702d26fbadc59b --- /dev/null +++ b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_gradle-local.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src javapackages-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gradle-local | grep -v \.src | grep gradle-local + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gradle-local" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gradle-local + CHECK_RESULT $? 0 0 "install gradle-local failed" + SLEEP_WAIT 1 + dnf remove -y gradle-local + CHECK_RESULT $? 0 0 "remove gradle-local failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_ivy-local.sh b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_ivy-local.sh new file mode 100644 index 0000000000000000000000000000000000000000..63328de5b652d18fcf908331c28969701b770865 --- /dev/null +++ b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_ivy-local.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src javapackages-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ivy-local | grep -v \.src | grep ivy-local + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ivy-local" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ivy-local + CHECK_RESULT $? 0 0 "install ivy-local failed" + SLEEP_WAIT 1 + dnf remove -y ivy-local + CHECK_RESULT $? 0 0 "remove ivy-local failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_javapackages-filesystem.sh b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_javapackages-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad578ed4cc91ae0ccf05f6999d222a7289c44e1b --- /dev/null +++ b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_javapackages-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src javapackages-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available javapackages-filesystem | grep -v \.src | grep javapackages-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm javapackages-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y javapackages-filesystem + CHECK_RESULT $? 0 0 "install javapackages-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y javapackages-filesystem + CHECK_RESULT $? 0 0 "remove javapackages-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_javapackages-local.sh b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_javapackages-local.sh new file mode 100644 index 0000000000000000000000000000000000000000..e87bf8c339895c6bac56f395e1bfe9045c8a665e --- /dev/null +++ b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_javapackages-local.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src javapackages-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available javapackages-local | grep -v \.src | grep javapackages-local + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm javapackages-local" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y javapackages-local + CHECK_RESULT $? 0 0 "install javapackages-local failed" + SLEEP_WAIT 1 + dnf remove -y javapackages-local + CHECK_RESULT $? 0 0 "remove javapackages-local failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_javapackages-tools.sh b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_javapackages-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..6afc334063f16c927c43f9dce9302ea1e0cdb2c4 --- /dev/null +++ b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_javapackages-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src javapackages-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available javapackages-tools | grep -v \.src | grep javapackages-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm javapackages-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y javapackages-tools + CHECK_RESULT $? 0 0 "install javapackages-tools failed" + SLEEP_WAIT 1 + dnf remove -y javapackages-tools + CHECK_RESULT $? 0 0 "remove javapackages-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_maven-local.sh b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_maven-local.sh new file mode 100644 index 0000000000000000000000000000000000000000..67c0d49ccce410933d79ed003bb3ca290aeda1b5 --- /dev/null +++ b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_maven-local.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src javapackages-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available maven-local | grep -v \.src | grep maven-local + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm maven-local" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y maven-local + CHECK_RESULT $? 0 0 "install maven-local failed" + SLEEP_WAIT 1 + dnf remove -y maven-local + CHECK_RESULT $? 0 0 "remove maven-local failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_python3-javapackages.sh b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_python3-javapackages.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2c7543a12fc40e4dfd616ac8abe884e856c6a4c --- /dev/null +++ b/testcases/cli-test/javapackages-tools/oe_test_javapackages-tools_install_and_remove_python3-javapackages.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src javapackages-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-javapackages | grep -v \.src | grep python3-javapackages + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-javapackages" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-javapackages + CHECK_RESULT $? 0 0 "install python3-javapackages failed" + SLEEP_WAIT 1 + dnf remove -y python3-javapackages + CHECK_RESULT $? 0 0 "remove python3-javapackages failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-debuginfo.sh b/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a1e7472ac10963bf870c14a83f94d29fd4900ed --- /dev/null +++ b/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbig2dec +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbig2dec-debuginfo | grep -v \.src | grep jbig2dec-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbig2dec-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbig2dec-debuginfo + CHECK_RESULT $? 0 0 "install jbig2dec-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y jbig2dec-debuginfo + CHECK_RESULT $? 0 0 "remove jbig2dec-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-debugsource.sh b/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..330f37f44dc2995e063f8b71e2bd8a6c2ed4ad28 --- /dev/null +++ b/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbig2dec +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbig2dec-debugsource | grep -v \.src | grep jbig2dec-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbig2dec-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbig2dec-debugsource + CHECK_RESULT $? 0 0 "install jbig2dec-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y jbig2dec-debugsource + CHECK_RESULT $? 0 0 "remove jbig2dec-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-devel.sh b/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..355ae9ada25c24978e6dfc4ace51e994c74185d9 --- /dev/null +++ b/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbig2dec +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbig2dec-devel | grep -v \.src | grep jbig2dec-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbig2dec-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbig2dec-devel + CHECK_RESULT $? 0 0 "install jbig2dec-devel failed" + SLEEP_WAIT 1 + dnf remove -y jbig2dec-devel + CHECK_RESULT $? 0 0 "remove jbig2dec-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-help.sh b/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f4eff936004493f661e7f049b81874642155831 --- /dev/null +++ b/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbig2dec +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbig2dec-help | grep -v \.src | grep jbig2dec-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbig2dec-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbig2dec-help + CHECK_RESULT $? 0 0 "install jbig2dec-help failed" + SLEEP_WAIT 1 + dnf remove -y jbig2dec-help + CHECK_RESULT $? 0 0 "remove jbig2dec-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec.sh b/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec.sh new file mode 100644 index 0000000000000000000000000000000000000000..c528d3656b41095b049760270e326b1c6dabd852 --- /dev/null +++ b/testcases/cli-test/jbig2dec/oe_test_jbig2dec_install_and_remove_jbig2dec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbig2dec +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbig2dec | grep -v \.src | grep jbig2dec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbig2dec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbig2dec + CHECK_RESULT $? 0 0 "install jbig2dec failed" + SLEEP_WAIT 1 + dnf remove -y jbig2dec + CHECK_RESULT $? 0 0 "remove jbig2dec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-debuginfo.sh b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c646363b90571e6b598e938951d7d00ee20f580d --- /dev/null +++ b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbigkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbigkit-debuginfo | grep -v \.src | grep jbigkit-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbigkit-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbigkit-debuginfo + CHECK_RESULT $? 0 0 "install jbigkit-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y jbigkit-debuginfo + CHECK_RESULT $? 0 0 "remove jbigkit-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-debugsource.sh b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2dd1431e7f4d56acc346f0665dfbd4873ee55c8a --- /dev/null +++ b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbigkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbigkit-debugsource | grep -v \.src | grep jbigkit-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbigkit-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbigkit-debugsource + CHECK_RESULT $? 0 0 "install jbigkit-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y jbigkit-debugsource + CHECK_RESULT $? 0 0 "remove jbigkit-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-devel.sh b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b583ee0ccdaa01660d987310ce9adf21a8f0147 --- /dev/null +++ b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbigkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbigkit-devel | grep -v \.src | grep jbigkit-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbigkit-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbigkit-devel + CHECK_RESULT $? 0 0 "install jbigkit-devel failed" + SLEEP_WAIT 1 + dnf remove -y jbigkit-devel + CHECK_RESULT $? 0 0 "remove jbigkit-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-help.sh b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1eff59b0a769f138da2c078702968bb68658b89 --- /dev/null +++ b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbigkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbigkit-help | grep -v \.src | grep jbigkit-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbigkit-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbigkit-help + CHECK_RESULT $? 0 0 "install jbigkit-help failed" + SLEEP_WAIT 1 + dnf remove -y jbigkit-help + CHECK_RESULT $? 0 0 "remove jbigkit-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-libs.sh b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..1621a099b040d6eac5e87583fdd4a1623a2cefa5 --- /dev/null +++ b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbigkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbigkit-libs | grep -v \.src | grep jbigkit-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbigkit-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbigkit-libs + CHECK_RESULT $? 0 0 "install jbigkit-libs failed" + SLEEP_WAIT 1 + dnf remove -y jbigkit-libs + CHECK_RESULT $? 0 0 "remove jbigkit-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit.sh b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit.sh new file mode 100644 index 0000000000000000000000000000000000000000..58d84b9edc473a543efde0fbe84d9fe9967c59ce --- /dev/null +++ b/testcases/cli-test/jbigkit/oe_test_jbigkit_install_and_remove_jbigkit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jbigkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jbigkit | grep -v \.src | grep jbigkit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jbigkit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jbigkit + CHECK_RESULT $? 0 0 "install jbigkit failed" + SLEEP_WAIT 1 + dnf remove -y jbigkit + CHECK_RESULT $? 0 0 "remove jbigkit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jflex/oe_test_jflex_install_and_remove_jflex-help.sh b/testcases/cli-test/jflex/oe_test_jflex_install_and_remove_jflex-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce18ca05136ddd79d0d1185ecfe1fcc9e28b6dc8 --- /dev/null +++ b/testcases/cli-test/jflex/oe_test_jflex_install_and_remove_jflex-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jflex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jflex-help | grep -v \.src | grep jflex-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jflex-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jflex-help + CHECK_RESULT $? 0 0 "install jflex-help failed" + SLEEP_WAIT 1 + dnf remove -y jflex-help + CHECK_RESULT $? 0 0 "remove jflex-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jflex/oe_test_jflex_install_and_remove_jflex.sh b/testcases/cli-test/jflex/oe_test_jflex_install_and_remove_jflex.sh new file mode 100644 index 0000000000000000000000000000000000000000..dac641b72ee2d87e6cd3d3b6a54c0913ab630f88 --- /dev/null +++ b/testcases/cli-test/jflex/oe_test_jflex_install_and_remove_jflex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jflex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jflex | grep -v \.src | grep jflex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jflex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jflex + CHECK_RESULT $? 0 0 "install jflex failed" + SLEEP_WAIT 1 + dnf remove -y jflex + CHECK_RESULT $? 0 0 "remove jflex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-debuginfo.sh b/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce5238617c3ce25e15e058bfea0bdde516f81f95 --- /dev/null +++ b/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jitterentropy-library +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jitterentropy-library-debuginfo | grep -v \.src | grep jitterentropy-library-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jitterentropy-library-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jitterentropy-library-debuginfo + CHECK_RESULT $? 0 0 "install jitterentropy-library-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y jitterentropy-library-debuginfo + CHECK_RESULT $? 0 0 "remove jitterentropy-library-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-debugsource.sh b/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..19236e38d04d4b0d1d9819abca68056d61e1af85 --- /dev/null +++ b/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jitterentropy-library +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jitterentropy-library-debugsource | grep -v \.src | grep jitterentropy-library-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jitterentropy-library-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jitterentropy-library-debugsource + CHECK_RESULT $? 0 0 "install jitterentropy-library-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y jitterentropy-library-debugsource + CHECK_RESULT $? 0 0 "remove jitterentropy-library-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-devel.sh b/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e93a68d26615cede9a0fdcd3443388270e390c0 --- /dev/null +++ b/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jitterentropy-library +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jitterentropy-library-devel | grep -v \.src | grep jitterentropy-library-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jitterentropy-library-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jitterentropy-library-devel + CHECK_RESULT $? 0 0 "install jitterentropy-library-devel failed" + SLEEP_WAIT 1 + dnf remove -y jitterentropy-library-devel + CHECK_RESULT $? 0 0 "remove jitterentropy-library-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library.sh b/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library.sh new file mode 100644 index 0000000000000000000000000000000000000000..139b116199deb6bcf7620ee2fc4e8360da13c180 --- /dev/null +++ b/testcases/cli-test/jitterentropy-library/oe_test_jitterentropy-library_install_and_remove_jitterentropy-library.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jitterentropy-library +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jitterentropy-library | grep -v \.src | grep jitterentropy-library + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jitterentropy-library" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jitterentropy-library + CHECK_RESULT $? 0 0 "install jitterentropy-library failed" + SLEEP_WAIT 1 + dnf remove -y jitterentropy-library + CHECK_RESULT $? 0 0 "remove jitterentropy-library failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-debuginfo.sh b/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2de6f2ac9698d119cfe58ff2687ab2c6ebbcb804 --- /dev/null +++ b/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src json-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available json-c-debuginfo | grep -v \.src | grep json-c-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm json-c-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y json-c-debuginfo + CHECK_RESULT $? 0 0 "install json-c-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y json-c-debuginfo + CHECK_RESULT $? 0 0 "remove json-c-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-debugsource.sh b/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5e851ce96b139d2858e2b2b638b8ace46654f34 --- /dev/null +++ b/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src json-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available json-c-debugsource | grep -v \.src | grep json-c-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm json-c-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y json-c-debugsource + CHECK_RESULT $? 0 0 "install json-c-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y json-c-debugsource + CHECK_RESULT $? 0 0 "remove json-c-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-devel.sh b/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..674d0eba4d886639bee2715d7530984301ebb536 --- /dev/null +++ b/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src json-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available json-c-devel | grep -v \.src | grep json-c-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm json-c-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y json-c-devel + CHECK_RESULT $? 0 0 "install json-c-devel failed" + SLEEP_WAIT 1 + dnf remove -y json-c-devel + CHECK_RESULT $? 0 0 "remove json-c-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-help.sh b/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..55a57402e70216aed9d38ce295357b1fcedcccf4 --- /dev/null +++ b/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src json-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available json-c-help | grep -v \.src | grep json-c-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm json-c-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y json-c-help + CHECK_RESULT $? 0 0 "install json-c-help failed" + SLEEP_WAIT 1 + dnf remove -y json-c-help + CHECK_RESULT $? 0 0 "remove json-c-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c.sh b/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c.sh new file mode 100644 index 0000000000000000000000000000000000000000..075e94c9019c84b9705f6dc0bc290a4e2e157b44 --- /dev/null +++ b/testcases/cli-test/json-c/oe_test_json-c_install_and_remove_json-c.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src json-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available json-c | grep -v \.src | grep json-c + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm json-c" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y json-c + CHECK_RESULT $? 0 0 "install json-c failed" + SLEEP_WAIT 1 + dnf remove -y json-c + CHECK_RESULT $? 0 0 "remove json-c failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-debuginfo.sh b/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f655dba85f58707f99be778580240352186d1f88 --- /dev/null +++ b/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src json-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available json-glib-debuginfo | grep -v \.src | grep json-glib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm json-glib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y json-glib-debuginfo + CHECK_RESULT $? 0 0 "install json-glib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y json-glib-debuginfo + CHECK_RESULT $? 0 0 "remove json-glib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-debugsource.sh b/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a08916b444eff5566416aaba900d85db1d6f2b4 --- /dev/null +++ b/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src json-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available json-glib-debugsource | grep -v \.src | grep json-glib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm json-glib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y json-glib-debugsource + CHECK_RESULT $? 0 0 "install json-glib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y json-glib-debugsource + CHECK_RESULT $? 0 0 "remove json-glib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-devel.sh b/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..65fa14f627e387ff0b4c46b9140dc064ce171921 --- /dev/null +++ b/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src json-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available json-glib-devel | grep -v \.src | grep json-glib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm json-glib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y json-glib-devel + CHECK_RESULT $? 0 0 "install json-glib-devel failed" + SLEEP_WAIT 1 + dnf remove -y json-glib-devel + CHECK_RESULT $? 0 0 "remove json-glib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-help.sh b/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..49242a9dc7cab36424bd3b2ac28e5b74bda7f2cd --- /dev/null +++ b/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src json-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available json-glib-help | grep -v \.src | grep json-glib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm json-glib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y json-glib-help + CHECK_RESULT $? 0 0 "install json-glib-help failed" + SLEEP_WAIT 1 + dnf remove -y json-glib-help + CHECK_RESULT $? 0 0 "remove json-glib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib.sh b/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib.sh new file mode 100644 index 0000000000000000000000000000000000000000..30ad0d5e34cbe63b8069e3d73ee3ca9fe624ffe1 --- /dev/null +++ b/testcases/cli-test/json-glib/oe_test_json-glib_install_and_remove_json-glib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src json-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available json-glib | grep -v \.src | grep json-glib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm json-glib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y json-glib + CHECK_RESULT $? 0 0 "install json-glib failed" + SLEEP_WAIT 1 + dnf remove -y json-glib + CHECK_RESULT $? 0 0 "remove json-glib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-debuginfo.sh b/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ed4b6b9cfc6cc6d4e9130e2797e433a4be97038 --- /dev/null +++ b/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jsoncpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jsoncpp-debuginfo | grep -v \.src | grep jsoncpp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jsoncpp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jsoncpp-debuginfo + CHECK_RESULT $? 0 0 "install jsoncpp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y jsoncpp-debuginfo + CHECK_RESULT $? 0 0 "remove jsoncpp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-debugsource.sh b/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..73a8eb43b610b9363d1e01b5a8d1fb42cf0b7170 --- /dev/null +++ b/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jsoncpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jsoncpp-debugsource | grep -v \.src | grep jsoncpp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jsoncpp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jsoncpp-debugsource + CHECK_RESULT $? 0 0 "install jsoncpp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y jsoncpp-debugsource + CHECK_RESULT $? 0 0 "remove jsoncpp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-devel.sh b/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d9578b74f300c1f3df3e38993a722e91638cab4 --- /dev/null +++ b/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jsoncpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jsoncpp-devel | grep -v \.src | grep jsoncpp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jsoncpp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jsoncpp-devel + CHECK_RESULT $? 0 0 "install jsoncpp-devel failed" + SLEEP_WAIT 1 + dnf remove -y jsoncpp-devel + CHECK_RESULT $? 0 0 "remove jsoncpp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-help.sh b/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..70877837e6bcb52bc9f9e0c50a54ac075052a3ef --- /dev/null +++ b/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jsoncpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jsoncpp-help | grep -v \.src | grep jsoncpp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jsoncpp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jsoncpp-help + CHECK_RESULT $? 0 0 "install jsoncpp-help failed" + SLEEP_WAIT 1 + dnf remove -y jsoncpp-help + CHECK_RESULT $? 0 0 "remove jsoncpp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp.sh b/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp.sh new file mode 100644 index 0000000000000000000000000000000000000000..0250eb9307594ec4ad1c4bb1812f9437c0b419bd --- /dev/null +++ b/testcases/cli-test/jsoncpp/oe_test_jsoncpp_install_and_remove_jsoncpp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jsoncpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jsoncpp | grep -v \.src | grep jsoncpp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jsoncpp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jsoncpp + CHECK_RESULT $? 0 0 "install jsoncpp failed" + SLEEP_WAIT 1 + dnf remove -y jsoncpp + CHECK_RESULT $? 0 0 "remove jsoncpp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/junit/oe_test_junit_install_and_remove_junit-help.sh b/testcases/cli-test/junit/oe_test_junit_install_and_remove_junit-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b710fab3ee7cad3e5130d63229b9a31932830a9d --- /dev/null +++ b/testcases/cli-test/junit/oe_test_junit_install_and_remove_junit-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src junit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available junit-help | grep -v \.src | grep junit-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm junit-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y junit-help + CHECK_RESULT $? 0 0 "install junit-help failed" + SLEEP_WAIT 1 + dnf remove -y junit-help + CHECK_RESULT $? 0 0 "remove junit-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/junit/oe_test_junit_install_and_remove_junit.sh b/testcases/cli-test/junit/oe_test_junit_install_and_remove_junit.sh new file mode 100644 index 0000000000000000000000000000000000000000..01d1fdc63900cca2b91acbd28f8575a6d1c0a00e --- /dev/null +++ b/testcases/cli-test/junit/oe_test_junit_install_and_remove_junit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src junit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available junit | grep -v \.src | grep junit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm junit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y junit + CHECK_RESULT $? 0 0 "install junit failed" + SLEEP_WAIT 1 + dnf remove -y junit + CHECK_RESULT $? 0 0 "remove junit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/junit5/oe_test_junit5_install_and_remove_junit5-guide.sh b/testcases/cli-test/junit5/oe_test_junit5_install_and_remove_junit5-guide.sh new file mode 100644 index 0000000000000000000000000000000000000000..81bfb33d087431eb77f16f2258c63fa86d418a39 --- /dev/null +++ b/testcases/cli-test/junit5/oe_test_junit5_install_and_remove_junit5-guide.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src junit5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available junit5-guide | grep -v \.src | grep junit5-guide + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm junit5-guide" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y junit5-guide + CHECK_RESULT $? 0 0 "install junit5-guide failed" + SLEEP_WAIT 1 + dnf remove -y junit5-guide + CHECK_RESULT $? 0 0 "remove junit5-guide failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/junit5/oe_test_junit5_install_and_remove_junit5-javadoc.sh b/testcases/cli-test/junit5/oe_test_junit5_install_and_remove_junit5-javadoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..570f4bd5e876e812a96538faf043636dfee552f4 --- /dev/null +++ b/testcases/cli-test/junit5/oe_test_junit5_install_and_remove_junit5-javadoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src junit5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available junit5-javadoc | grep -v \.src | grep junit5-javadoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm junit5-javadoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y junit5-javadoc + CHECK_RESULT $? 0 0 "install junit5-javadoc failed" + SLEEP_WAIT 1 + dnf remove -y junit5-javadoc + CHECK_RESULT $? 0 0 "remove junit5-javadoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/junit5/oe_test_junit5_install_and_remove_junit5.sh b/testcases/cli-test/junit5/oe_test_junit5_install_and_remove_junit5.sh new file mode 100644 index 0000000000000000000000000000000000000000..6138532fff153bbd4181d428c8d742e8c4a703f9 --- /dev/null +++ b/testcases/cli-test/junit5/oe_test_junit5_install_and_remove_junit5.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src junit5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available junit5 | grep -v \.src | grep junit5 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm junit5" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y junit5 + CHECK_RESULT $? 0 0 "install junit5 failed" + SLEEP_WAIT 1 + dnf remove -y junit5 + CHECK_RESULT $? 0 0 "remove junit5 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/jvnet-parent/oe_test_jvnet-parent_install_and_remove_jvnet-parent.sh b/testcases/cli-test/jvnet-parent/oe_test_jvnet-parent_install_and_remove_jvnet-parent.sh new file mode 100644 index 0000000000000000000000000000000000000000..c18d597dbe8bd4578ada8ef790986e6a8860b7f8 --- /dev/null +++ b/testcases/cli-test/jvnet-parent/oe_test_jvnet-parent_install_and_remove_jvnet-parent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src jvnet-parent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jvnet-parent | grep -v \.src | grep jvnet-parent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jvnet-parent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jvnet-parent + CHECK_RESULT $? 0 0 "install jvnet-parent failed" + SLEEP_WAIT 1 + dnf remove -y jvnet-parent + CHECK_RESULT $? 0 0 "remove jvnet-parent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-debuginfo.sh b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ea3c0de9d1a0d163744af1d24f777c64b57bd56 --- /dev/null +++ b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kbd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kbd-debuginfo | grep -v \.src | grep kbd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kbd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kbd-debuginfo + CHECK_RESULT $? 0 0 "install kbd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y kbd-debuginfo + CHECK_RESULT $? 0 0 "remove kbd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-debugsource.sh b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ab23d7a4ac04acb94358ec125aa4a86a18fd9c4 --- /dev/null +++ b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kbd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kbd-debugsource | grep -v \.src | grep kbd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kbd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kbd-debugsource + CHECK_RESULT $? 0 0 "install kbd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y kbd-debugsource + CHECK_RESULT $? 0 0 "remove kbd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-help.sh b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1edbbc9e9d3d933818c6d8a8399898ab763cb495 --- /dev/null +++ b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kbd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kbd-help | grep -v \.src | grep kbd-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kbd-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kbd-help + CHECK_RESULT $? 0 0 "install kbd-help failed" + SLEEP_WAIT 1 + dnf remove -y kbd-help + CHECK_RESULT $? 0 0 "remove kbd-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-legacy.sh b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-legacy.sh new file mode 100644 index 0000000000000000000000000000000000000000..0864dd536ad16c7fd7bfc8b8122f9b7e009016a4 --- /dev/null +++ b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-legacy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kbd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kbd-legacy | grep -v \.src | grep kbd-legacy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kbd-legacy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kbd-legacy + CHECK_RESULT $? 0 0 "install kbd-legacy failed" + SLEEP_WAIT 1 + dnf remove -y kbd-legacy + CHECK_RESULT $? 0 0 "remove kbd-legacy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-misc.sh b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-misc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c968d16f23aac023d1820265d2444b00e6b6d9f --- /dev/null +++ b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd-misc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kbd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kbd-misc | grep -v \.src | grep kbd-misc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kbd-misc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kbd-misc + CHECK_RESULT $? 0 0 "install kbd-misc failed" + SLEEP_WAIT 1 + dnf remove -y kbd-misc + CHECK_RESULT $? 0 0 "remove kbd-misc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd.sh b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd.sh new file mode 100644 index 0000000000000000000000000000000000000000..e45f6f0c708df3be7cc77f6305e4784fcbba7b29 --- /dev/null +++ b/testcases/cli-test/kbd/oe_test_kbd_install_and_remove_kbd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kbd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kbd | grep -v \.src | grep kbd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kbd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kbd + CHECK_RESULT $? 0 0 "install kbd failed" + SLEEP_WAIT 1 + dnf remove -y kbd + CHECK_RESULT $? 0 0 "remove kbd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kdump-anaconda-addon/oe_test_kdump-anaconda-addon_install_and_remove_kdump-anaconda-addon-doc.sh b/testcases/cli-test/kdump-anaconda-addon/oe_test_kdump-anaconda-addon_install_and_remove_kdump-anaconda-addon-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..065316b952a64f21045fd9b7902917295a10984b --- /dev/null +++ b/testcases/cli-test/kdump-anaconda-addon/oe_test_kdump-anaconda-addon_install_and_remove_kdump-anaconda-addon-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kdump-anaconda-addon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kdump-anaconda-addon-doc | grep -v \.src | grep kdump-anaconda-addon-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kdump-anaconda-addon-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kdump-anaconda-addon-doc + CHECK_RESULT $? 0 0 "install kdump-anaconda-addon-doc failed" + SLEEP_WAIT 1 + dnf remove -y kdump-anaconda-addon-doc + CHECK_RESULT $? 0 0 "remove kdump-anaconda-addon-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kdump-anaconda-addon/oe_test_kdump-anaconda-addon_install_and_remove_kdump-anaconda-addon.sh b/testcases/cli-test/kdump-anaconda-addon/oe_test_kdump-anaconda-addon_install_and_remove_kdump-anaconda-addon.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b55e4758e167bb7ebc36abbc7f8c2608ed1f86e --- /dev/null +++ b/testcases/cli-test/kdump-anaconda-addon/oe_test_kdump-anaconda-addon_install_and_remove_kdump-anaconda-addon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kdump-anaconda-addon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kdump-anaconda-addon | grep -v \.src | grep kdump-anaconda-addon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kdump-anaconda-addon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kdump-anaconda-addon + CHECK_RESULT $? 0 0 "install kdump-anaconda-addon failed" + SLEEP_WAIT 1 + dnf remove -y kdump-anaconda-addon + CHECK_RESULT $? 0 0 "remove kdump-anaconda-addon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_bpftool-debuginfo.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_bpftool-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d56488f812753ed3b5257533433304749e8dede --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_bpftool-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bpftool-debuginfo | grep -v \.src | grep bpftool-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bpftool-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bpftool-debuginfo + CHECK_RESULT $? 0 0 "install bpftool-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y bpftool-debuginfo + CHECK_RESULT $? 0 0 "remove bpftool-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_bpftool.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_bpftool.sh new file mode 100644 index 0000000000000000000000000000000000000000..7414f82b7b72846b81dba20aafd926f259649e27 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_bpftool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bpftool | grep -v \.src | grep bpftool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bpftool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bpftool + CHECK_RESULT $? 0 0 "install bpftool failed" + SLEEP_WAIT 1 + dnf remove -y bpftool + CHECK_RESULT $? 0 0 "remove bpftool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-debuginfo.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..63843e68a07d09eaadd32a22c1dd21bcc0865b02 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kernel-debuginfo | grep -v \.src | grep kernel-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kernel-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kernel-debuginfo + CHECK_RESULT $? 0 0 "install kernel-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y kernel-debuginfo + CHECK_RESULT $? 0 0 "remove kernel-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-debugsource.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5f2231e346b87efac9c2ba866168c7b9c16a5eb --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kernel-debugsource | grep -v \.src | grep kernel-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kernel-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kernel-debugsource + CHECK_RESULT $? 0 0 "install kernel-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y kernel-debugsource + CHECK_RESULT $? 0 0 "remove kernel-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-devel.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..943f5b20587bfcf83cbaefb719c42b0ae204c413 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kernel-devel | grep -v \.src | grep kernel-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kernel-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kernel-devel + CHECK_RESULT $? 0 0 "install kernel-devel failed" + SLEEP_WAIT 1 + dnf remove -y kernel-devel + CHECK_RESULT $? 0 0 "remove kernel-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-headers.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-headers.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2b0375039a130784974a169d988965b94099d75 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-headers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kernel-headers | grep -v \.src | grep kernel-headers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kernel-headers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kernel-headers + CHECK_RESULT $? 0 0 "install kernel-headers failed" + SLEEP_WAIT 1 + dnf remove -y kernel-headers + CHECK_RESULT $? 0 0 "remove kernel-headers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-source.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-source.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f807f83f78923de73e49368af2a279987414a6d --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-source.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kernel-source | grep -v \.src | grep kernel-source + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kernel-source" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kernel-source + CHECK_RESULT $? 0 0 "install kernel-source failed" + SLEEP_WAIT 1 + dnf remove -y kernel-source + CHECK_RESULT $? 0 0 "remove kernel-source failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-tools-debuginfo.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..27282a8ff1c5bdd7af55dcaceb26d84f6d50066c --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kernel-tools-debuginfo | grep -v \.src | grep kernel-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kernel-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kernel-tools-debuginfo + CHECK_RESULT $? 0 0 "install kernel-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y kernel-tools-debuginfo + CHECK_RESULT $? 0 0 "remove kernel-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-tools-devel.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-tools-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ba68a15f57862c05dec3b38d475693294302ff1 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-tools-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kernel-tools-devel | grep -v \.src | grep kernel-tools-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kernel-tools-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kernel-tools-devel + CHECK_RESULT $? 0 0 "install kernel-tools-devel failed" + SLEEP_WAIT 1 + dnf remove -y kernel-tools-devel + CHECK_RESULT $? 0 0 "remove kernel-tools-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-tools.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..78dae5bcf08ed45b8507e8a5e7f4320d78a01198 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kernel-tools | grep -v \.src | grep kernel-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kernel-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kernel-tools + CHECK_RESULT $? 0 0 "install kernel-tools failed" + SLEEP_WAIT 1 + dnf remove -y kernel-tools + CHECK_RESULT $? 0 0 "remove kernel-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6d1a70729052d2a21db49814d3ad88381c364d2 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_kernel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kernel | grep -v \.src | grep kernel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kernel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kernel + CHECK_RESULT $? 0 0 "install kernel failed" + SLEEP_WAIT 1 + dnf remove -y kernel + CHECK_RESULT $? 0 0 "remove kernel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_perf-debuginfo.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_perf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b74cd5eb64591ab6e38837f83c13a535fd5b5455 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_perf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perf-debuginfo | grep -v \.src | grep perf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perf-debuginfo + CHECK_RESULT $? 0 0 "install perf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perf-debuginfo + CHECK_RESULT $? 0 0 "remove perf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_perf.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_perf.sh new file mode 100644 index 0000000000000000000000000000000000000000..11e84a38123040b0eca6b71124cf354498517623 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_perf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perf | grep -v \.src | grep perf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perf + CHECK_RESULT $? 0 0 "install perf failed" + SLEEP_WAIT 1 + dnf remove -y perf + CHECK_RESULT $? 0 0 "remove perf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python2-perf-debuginfo.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python2-perf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd25b21addba7fd8a43994fde99c163a9fe4ae35 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python2-perf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-perf-debuginfo | grep -v \.src | grep python2-perf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-perf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-perf-debuginfo + CHECK_RESULT $? 0 0 "install python2-perf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python2-perf-debuginfo + CHECK_RESULT $? 0 0 "remove python2-perf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python2-perf.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python2-perf.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a3f6224e039f1d57dfbad6cd57b7fa935b5c2bb --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python2-perf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-perf | grep -v \.src | grep python2-perf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-perf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-perf + CHECK_RESULT $? 0 0 "install python2-perf failed" + SLEEP_WAIT 1 + dnf remove -y python2-perf + CHECK_RESULT $? 0 0 "remove python2-perf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python3-perf-debuginfo.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python3-perf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d453adf2a85f5a399774801463fa2ea5239b4cb --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python3-perf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-perf-debuginfo | grep -v \.src | grep python3-perf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-perf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-perf-debuginfo + CHECK_RESULT $? 0 0 "install python3-perf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python3-perf-debuginfo + CHECK_RESULT $? 0 0 "remove python3-perf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python3-perf.sh b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python3-perf.sh new file mode 100644 index 0000000000000000000000000000000000000000..c92e450fca67ac397dcad8bab536380cee00c548 --- /dev/null +++ b/testcases/cli-test/kernel/oe_test_kernel_install_and_remove_python3-perf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kernel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-perf | grep -v \.src | grep python3-perf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-perf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-perf + CHECK_RESULT $? 0 0 "install python3-perf failed" + SLEEP_WAIT 1 + dnf remove -y python3-perf + CHECK_RESULT $? 0 0 "remove python3-perf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools-debuginfo.sh b/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ddd0a0cc94515a8fb32cfada4af0c50889de456 --- /dev/null +++ b/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kexec-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kexec-tools-debuginfo | grep -v \.src | grep kexec-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kexec-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kexec-tools-debuginfo + CHECK_RESULT $? 0 0 "install kexec-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y kexec-tools-debuginfo + CHECK_RESULT $? 0 0 "remove kexec-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools-debugsource.sh b/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9fe8eaeecc3a5a03534dad77821c18e5f3b54a1 --- /dev/null +++ b/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kexec-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kexec-tools-debugsource | grep -v \.src | grep kexec-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kexec-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kexec-tools-debugsource + CHECK_RESULT $? 0 0 "install kexec-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y kexec-tools-debugsource + CHECK_RESULT $? 0 0 "remove kexec-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools-help.sh b/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f35f1458b6dcc76f616a36775010331bcb2312c8 --- /dev/null +++ b/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kexec-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kexec-tools-help | grep -v \.src | grep kexec-tools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kexec-tools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kexec-tools-help + CHECK_RESULT $? 0 0 "install kexec-tools-help failed" + SLEEP_WAIT 1 + dnf remove -y kexec-tools-help + CHECK_RESULT $? 0 0 "remove kexec-tools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools.sh b/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..994ec2e80b976115f6c298a7badaab49e921a6aa --- /dev/null +++ b/testcases/cli-test/kexec-tools/oe_test_kexec-tools_install_and_remove_kexec-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kexec-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kexec-tools | grep -v \.src | grep kexec-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kexec-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kexec-tools + CHECK_RESULT $? 0 0 "install kexec-tools failed" + SLEEP_WAIT 1 + dnf remove -y kexec-tools + CHECK_RESULT $? 0 0 "remove kexec-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-debuginfo.sh b/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..01066a9bf3109b3ff33bc824fbe3cb914a220b21 --- /dev/null +++ b/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keybinder3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keybinder3-debuginfo | grep -v \.src | grep keybinder3-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keybinder3-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keybinder3-debuginfo + CHECK_RESULT $? 0 0 "install keybinder3-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y keybinder3-debuginfo + CHECK_RESULT $? 0 0 "remove keybinder3-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-debugsource.sh b/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a4966a6ddef314bae0ee718a729cb7050c48f69 --- /dev/null +++ b/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keybinder3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keybinder3-debugsource | grep -v \.src | grep keybinder3-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keybinder3-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keybinder3-debugsource + CHECK_RESULT $? 0 0 "install keybinder3-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y keybinder3-debugsource + CHECK_RESULT $? 0 0 "remove keybinder3-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-devel.sh b/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..292c35107a031d33b4606635e96d61256d1d2ee0 --- /dev/null +++ b/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keybinder3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keybinder3-devel | grep -v \.src | grep keybinder3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keybinder3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keybinder3-devel + CHECK_RESULT $? 0 0 "install keybinder3-devel failed" + SLEEP_WAIT 1 + dnf remove -y keybinder3-devel + CHECK_RESULT $? 0 0 "remove keybinder3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-help.sh b/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d49156cb117c04ac21e1bf5bedc4199fa0e1fab --- /dev/null +++ b/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keybinder3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keybinder3-help | grep -v \.src | grep keybinder3-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keybinder3-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keybinder3-help + CHECK_RESULT $? 0 0 "install keybinder3-help failed" + SLEEP_WAIT 1 + dnf remove -y keybinder3-help + CHECK_RESULT $? 0 0 "remove keybinder3-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3.sh b/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b706aec6274255f7f6cd5b3aa59143e17688370 --- /dev/null +++ b/testcases/cli-test/keybinder3/oe_test_keybinder3_install_and_remove_keybinder3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keybinder3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keybinder3 | grep -v \.src | grep keybinder3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keybinder3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keybinder3 + CHECK_RESULT $? 0 0 "install keybinder3 failed" + SLEEP_WAIT 1 + dnf remove -y keybinder3 + CHECK_RESULT $? 0 0 "remove keybinder3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-debuginfo.sh b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e306f1ebee3888c67f691e4ab1de1060ac8a347a --- /dev/null +++ b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keyutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keyutils-debuginfo | grep -v \.src | grep keyutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keyutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keyutils-debuginfo + CHECK_RESULT $? 0 0 "install keyutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y keyutils-debuginfo + CHECK_RESULT $? 0 0 "remove keyutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-debugsource.sh b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f2e410f8fd114538f12edf258412989ca68b1c2 --- /dev/null +++ b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keyutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keyutils-debugsource | grep -v \.src | grep keyutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keyutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keyutils-debugsource + CHECK_RESULT $? 0 0 "install keyutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y keyutils-debugsource + CHECK_RESULT $? 0 0 "remove keyutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-help.sh b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc67fe7b14b5584a25dc32304eca2534c0ce6ba7 --- /dev/null +++ b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keyutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keyutils-help | grep -v \.src | grep keyutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keyutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keyutils-help + CHECK_RESULT $? 0 0 "install keyutils-help failed" + SLEEP_WAIT 1 + dnf remove -y keyutils-help + CHECK_RESULT $? 0 0 "remove keyutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-libs-devel.sh b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-libs-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3645f39ee285edb03a6ddc20d929a39f0ed5f252 --- /dev/null +++ b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-libs-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keyutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keyutils-libs-devel | grep -v \.src | grep keyutils-libs-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keyutils-libs-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keyutils-libs-devel + CHECK_RESULT $? 0 0 "install keyutils-libs-devel failed" + SLEEP_WAIT 1 + dnf remove -y keyutils-libs-devel + CHECK_RESULT $? 0 0 "remove keyutils-libs-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-libs.sh b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c7606ac908a16baf3d02441c4ab5ef152cf7729 --- /dev/null +++ b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keyutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keyutils-libs | grep -v \.src | grep keyutils-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keyutils-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keyutils-libs + CHECK_RESULT $? 0 0 "install keyutils-libs failed" + SLEEP_WAIT 1 + dnf remove -y keyutils-libs + CHECK_RESULT $? 0 0 "remove keyutils-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils.sh b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0e8fb959bda0a0a363015003a82e07b3b9a151a --- /dev/null +++ b/testcases/cli-test/keyutils/oe_test_keyutils_install_and_remove_keyutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src keyutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available keyutils | grep -v \.src | grep keyutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm keyutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y keyutils + CHECK_RESULT $? 0 0 "install keyutils failed" + SLEEP_WAIT 1 + dnf remove -y keyutils + CHECK_RESULT $? 0 0 "remove keyutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-debuginfo.sh b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0494932f14a1d91d534e274062c95017db6d5b08 --- /dev/null +++ b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kmod +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kmod-debuginfo | grep -v \.src | grep kmod-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kmod-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kmod-debuginfo + CHECK_RESULT $? 0 0 "install kmod-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y kmod-debuginfo + CHECK_RESULT $? 0 0 "remove kmod-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-debugsource.sh b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7bf82ce14379965dfa2a844c991e40f3dad961b --- /dev/null +++ b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kmod +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kmod-debugsource | grep -v \.src | grep kmod-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kmod-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kmod-debugsource + CHECK_RESULT $? 0 0 "install kmod-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y kmod-debugsource + CHECK_RESULT $? 0 0 "remove kmod-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-devel.sh b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c9af345e8c99443a5da5b4e57f84da536ba0723 --- /dev/null +++ b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kmod +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kmod-devel | grep -v \.src | grep kmod-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kmod-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kmod-devel + CHECK_RESULT $? 0 0 "install kmod-devel failed" + SLEEP_WAIT 1 + dnf remove -y kmod-devel + CHECK_RESULT $? 0 0 "remove kmod-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-help.sh b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f166d45d9813c8870236e12aa53ef234f08fcac --- /dev/null +++ b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kmod +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kmod-help | grep -v \.src | grep kmod-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kmod-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kmod-help + CHECK_RESULT $? 0 0 "install kmod-help failed" + SLEEP_WAIT 1 + dnf remove -y kmod-help + CHECK_RESULT $? 0 0 "remove kmod-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-libs.sh b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..04cbd8dc957b22b758b90f247cf0a6eb06a29004 --- /dev/null +++ b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kmod +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kmod-libs | grep -v \.src | grep kmod-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kmod-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kmod-libs + CHECK_RESULT $? 0 0 "install kmod-libs failed" + SLEEP_WAIT 1 + dnf remove -y kmod-libs + CHECK_RESULT $? 0 0 "remove kmod-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod.sh b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ea3c12338776e8b3ea4d3f98f85f6f50e1be6a9 --- /dev/null +++ b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_kmod.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kmod +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kmod | grep -v \.src | grep kmod + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kmod" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kmod + CHECK_RESULT $? 0 0 "install kmod failed" + SLEEP_WAIT 1 + dnf remove -y kmod + CHECK_RESULT $? 0 0 "remove kmod failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_python3-kmod.sh b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_python3-kmod.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fcff8d9fb38fae844545538c7c568954a1181ef --- /dev/null +++ b/testcases/cli-test/kmod/oe_test_kmod_install_and_remove_python3-kmod.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kmod +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-kmod | grep -v \.src | grep python3-kmod + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-kmod" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-kmod + CHECK_RESULT $? 0 0 "install python3-kmod failed" + SLEEP_WAIT 1 + dnf remove -y python3-kmod + CHECK_RESULT $? 0 0 "remove python3-kmod failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-client.sh b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-client.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f75e14fa59faf087c12deea98732d0ddadb5fd9 --- /dev/null +++ b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-client.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src krb5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available krb5-client | grep -v \.src | grep krb5-client + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm krb5-client" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y krb5-client + CHECK_RESULT $? 0 0 "install krb5-client failed" + SLEEP_WAIT 1 + dnf remove -y krb5-client + CHECK_RESULT $? 0 0 "remove krb5-client failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-debuginfo.sh b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8a2870d4cadabacf702280e919a5eabfbf0d4f5 --- /dev/null +++ b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src krb5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available krb5-debuginfo | grep -v \.src | grep krb5-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm krb5-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y krb5-debuginfo + CHECK_RESULT $? 0 0 "install krb5-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y krb5-debuginfo + CHECK_RESULT $? 0 0 "remove krb5-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-debugsource.sh b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..73f98ae639b7ba2f485112d705b4011580c995e2 --- /dev/null +++ b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src krb5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available krb5-debugsource | grep -v \.src | grep krb5-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm krb5-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y krb5-debugsource + CHECK_RESULT $? 0 0 "install krb5-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y krb5-debugsource + CHECK_RESULT $? 0 0 "remove krb5-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-devel.sh b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b939a4d9e0379914acb66c7cb57895348f5a8ef --- /dev/null +++ b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src krb5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available krb5-devel | grep -v \.src | grep krb5-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm krb5-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y krb5-devel + CHECK_RESULT $? 0 0 "install krb5-devel failed" + SLEEP_WAIT 1 + dnf remove -y krb5-devel + CHECK_RESULT $? 0 0 "remove krb5-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-help.sh b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..29b8679e3a4a17bff17a77ec1f2eb3fcc4403a9a --- /dev/null +++ b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src krb5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available krb5-help | grep -v \.src | grep krb5-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm krb5-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y krb5-help + CHECK_RESULT $? 0 0 "install krb5-help failed" + SLEEP_WAIT 1 + dnf remove -y krb5-help + CHECK_RESULT $? 0 0 "remove krb5-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-libs.sh b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..d641593990ec362d30786284582df01ed3633f87 --- /dev/null +++ b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src krb5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available krb5-libs | grep -v \.src | grep krb5-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm krb5-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y krb5-libs + CHECK_RESULT $? 0 0 "install krb5-libs failed" + SLEEP_WAIT 1 + dnf remove -y krb5-libs + CHECK_RESULT $? 0 0 "remove krb5-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-server.sh b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-server.sh new file mode 100644 index 0000000000000000000000000000000000000000..691edfb98e0c450ab28ddcbbc22485ca15307346 --- /dev/null +++ b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5-server.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src krb5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available krb5-server | grep -v \.src | grep krb5-server + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm krb5-server" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y krb5-server + CHECK_RESULT $? 0 0 "install krb5-server failed" + SLEEP_WAIT 1 + dnf remove -y krb5-server + CHECK_RESULT $? 0 0 "remove krb5-server failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5.sh b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5.sh new file mode 100644 index 0000000000000000000000000000000000000000..26e7f13ae49b470de07b6f379373f1c41871dec2 --- /dev/null +++ b/testcases/cli-test/krb5/oe_test_krb5_install_and_remove_krb5.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src krb5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available krb5 | grep -v \.src | grep krb5 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm krb5" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y krb5 + CHECK_RESULT $? 0 0 "install krb5 failed" + SLEEP_WAIT 1 + dnf remove -y krb5 + CHECK_RESULT $? 0 0 "remove krb5 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh-debuginfo.sh b/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba21cbc08fae3f7b8f4be5c6a52417d639049a23 --- /dev/null +++ b/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ksh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ksh-debuginfo | grep -v \.src | grep ksh-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ksh-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ksh-debuginfo + CHECK_RESULT $? 0 0 "install ksh-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ksh-debuginfo + CHECK_RESULT $? 0 0 "remove ksh-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh-debugsource.sh b/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..24fa991bc92ec24e42ee9c06ddcf7e00526e3d61 --- /dev/null +++ b/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ksh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ksh-debugsource | grep -v \.src | grep ksh-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ksh-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ksh-debugsource + CHECK_RESULT $? 0 0 "install ksh-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ksh-debugsource + CHECK_RESULT $? 0 0 "remove ksh-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh-help.sh b/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..92a77b3e476b75a09ccd26b092dca874b2acd27c --- /dev/null +++ b/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ksh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ksh-help | grep -v \.src | grep ksh-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ksh-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ksh-help + CHECK_RESULT $? 0 0 "install ksh-help failed" + SLEEP_WAIT 1 + dnf remove -y ksh-help + CHECK_RESULT $? 0 0 "remove ksh-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh.sh b/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh.sh new file mode 100644 index 0000000000000000000000000000000000000000..40044593e8ef9473bfe5185b244809003c622f4f --- /dev/null +++ b/testcases/cli-test/ksh/oe_test_ksh_install_and_remove_ksh.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ksh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ksh | grep -v \.src | grep ksh + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ksh" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ksh + CHECK_RESULT $? 0 0 "install ksh failed" + SLEEP_WAIT 1 + dnf remove -y ksh + CHECK_RESULT $? 0 0 "remove ksh failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-debuginfo.sh b/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c7502d8ae6b8641462c9668d2985551f65fa69d --- /dev/null +++ b/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kyua +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kyua-debuginfo | grep -v \.src | grep kyua-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kyua-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kyua-debuginfo + CHECK_RESULT $? 0 0 "install kyua-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y kyua-debuginfo + CHECK_RESULT $? 0 0 "remove kyua-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-debugsource.sh b/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac9d35b56d8a55227b8ce858c8a052bf61923a96 --- /dev/null +++ b/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kyua +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kyua-debugsource | grep -v \.src | grep kyua-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kyua-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kyua-debugsource + CHECK_RESULT $? 0 0 "install kyua-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y kyua-debugsource + CHECK_RESULT $? 0 0 "remove kyua-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-help.sh b/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..03393939c1f433135b770cb520d6b7432bf1a642 --- /dev/null +++ b/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kyua +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kyua-help | grep -v \.src | grep kyua-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kyua-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kyua-help + CHECK_RESULT $? 0 0 "install kyua-help failed" + SLEEP_WAIT 1 + dnf remove -y kyua-help + CHECK_RESULT $? 0 0 "remove kyua-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-tests.sh b/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..af6e847f752c9f2a287aafbfe1f6894c9b8ecb7a --- /dev/null +++ b/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kyua +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kyua-tests | grep -v \.src | grep kyua-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kyua-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kyua-tests + CHECK_RESULT $? 0 0 "install kyua-tests failed" + SLEEP_WAIT 1 + dnf remove -y kyua-tests + CHECK_RESULT $? 0 0 "remove kyua-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua.sh b/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua.sh new file mode 100644 index 0000000000000000000000000000000000000000..edc813c9c37d89f60e7612b2fda3c9db5e9b322e --- /dev/null +++ b/testcases/cli-test/kyua/oe_test_kyua_install_and_remove_kyua.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src kyua +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kyua | grep -v \.src | grep kyua + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kyua" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kyua + CHECK_RESULT $? 0 0 "install kyua failed" + SLEEP_WAIT 1 + dnf remove -y kyua + CHECK_RESULT $? 0 0 "remove kyua failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-debuginfo.sh b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a6efb06d548761789e2c636a72d86c75c5e3cad --- /dev/null +++ b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lame +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lame-debuginfo | grep -v \.src | grep lame-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lame-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lame-debuginfo + CHECK_RESULT $? 0 0 "install lame-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lame-debuginfo + CHECK_RESULT $? 0 0 "remove lame-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-debugsource.sh b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d29095ff68089e6a9a55e0d13fe3851d117f31a --- /dev/null +++ b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lame +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lame-debugsource | grep -v \.src | grep lame-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lame-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lame-debugsource + CHECK_RESULT $? 0 0 "install lame-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lame-debugsource + CHECK_RESULT $? 0 0 "remove lame-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-devel.sh b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7587a0052def044cbb24ed5e5fe2feb6c587a109 --- /dev/null +++ b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lame +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lame-devel | grep -v \.src | grep lame-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lame-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lame-devel + CHECK_RESULT $? 0 0 "install lame-devel failed" + SLEEP_WAIT 1 + dnf remove -y lame-devel + CHECK_RESULT $? 0 0 "remove lame-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-help.sh b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc0215977f56527108350c6e648578f2ae6e435d --- /dev/null +++ b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lame +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lame-help | grep -v \.src | grep lame-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lame-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lame-help + CHECK_RESULT $? 0 0 "install lame-help failed" + SLEEP_WAIT 1 + dnf remove -y lame-help + CHECK_RESULT $? 0 0 "remove lame-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-mp3x.sh b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-mp3x.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0fdde129a398a61b6be6f3f7a0e9c9637c0d333 --- /dev/null +++ b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame-mp3x.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lame +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lame-mp3x | grep -v \.src | grep lame-mp3x + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lame-mp3x" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lame-mp3x + CHECK_RESULT $? 0 0 "install lame-mp3x failed" + SLEEP_WAIT 1 + dnf remove -y lame-mp3x + CHECK_RESULT $? 0 0 "remove lame-mp3x failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame.sh b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce85f2b82241ee3b000bcddba57a0b9132fa2167 --- /dev/null +++ b/testcases/cli-test/lame/oe_test_lame_install_and_remove_lame.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lame +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lame | grep -v \.src | grep lame + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lame" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lame + CHECK_RESULT $? 0 0 "install lame failed" + SLEEP_WAIT 1 + dnf remove -y lame + CHECK_RESULT $? 0 0 "remove lame failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_langtable-data.sh b/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_langtable-data.sh new file mode 100644 index 0000000000000000000000000000000000000000..554a8a1c4d6a51589c2cd5b8d17079b30dc67a82 --- /dev/null +++ b/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_langtable-data.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src langtable +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available langtable-data | grep -v \.src | grep langtable-data + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm langtable-data" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y langtable-data + CHECK_RESULT $? 0 0 "install langtable-data failed" + SLEEP_WAIT 1 + dnf remove -y langtable-data + CHECK_RESULT $? 0 0 "remove langtable-data failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_langtable.sh b/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_langtable.sh new file mode 100644 index 0000000000000000000000000000000000000000..13c14146bfba5f43f6c466af2911e9333c07625c --- /dev/null +++ b/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_langtable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src langtable +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available langtable | grep -v \.src | grep langtable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm langtable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y langtable + CHECK_RESULT $? 0 0 "install langtable failed" + SLEEP_WAIT 1 + dnf remove -y langtable + CHECK_RESULT $? 0 0 "remove langtable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_python2-langtable.sh b/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_python2-langtable.sh new file mode 100644 index 0000000000000000000000000000000000000000..050c9ffd267a8f2387e8e217be76a8a7e76999a6 --- /dev/null +++ b/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_python2-langtable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src langtable +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-langtable | grep -v \.src | grep python2-langtable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-langtable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-langtable + CHECK_RESULT $? 0 0 "install python2-langtable failed" + SLEEP_WAIT 1 + dnf remove -y python2-langtable + CHECK_RESULT $? 0 0 "remove python2-langtable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_python3-langtable.sh b/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_python3-langtable.sh new file mode 100644 index 0000000000000000000000000000000000000000..a674f2cbf94dd13111980c013e0d27b388eda07a --- /dev/null +++ b/testcases/cli-test/langtable/oe_test_langtable_install_and_remove_python3-langtable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src langtable +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-langtable | grep -v \.src | grep python3-langtable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-langtable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-langtable + CHECK_RESULT $? 0 0 "install python3-langtable failed" + SLEEP_WAIT 1 + dnf remove -y python3-langtable + CHECK_RESULT $? 0 0 "remove python3-langtable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-debuginfo.sh b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4db05ff13c0aa8ec350caa2c98398299192d3c2c --- /dev/null +++ b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lapack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lapack-debuginfo | grep -v \.src | grep lapack-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lapack-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lapack-debuginfo + CHECK_RESULT $? 0 0 "install lapack-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lapack-debuginfo + CHECK_RESULT $? 0 0 "remove lapack-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-debugsource.sh b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..88459691fabc08ae58ea3d245426525d952b6593 --- /dev/null +++ b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lapack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lapack-debugsource | grep -v \.src | grep lapack-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lapack-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lapack-debugsource + CHECK_RESULT $? 0 0 "install lapack-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lapack-debugsource + CHECK_RESULT $? 0 0 "remove lapack-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-devel.sh b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..48e7af125c5e4968716d5d02f605433646e86bd3 --- /dev/null +++ b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lapack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lapack-devel | grep -v \.src | grep lapack-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lapack-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lapack-devel + CHECK_RESULT $? 0 0 "install lapack-devel failed" + SLEEP_WAIT 1 + dnf remove -y lapack-devel + CHECK_RESULT $? 0 0 "remove lapack-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-help.sh b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f36035d038e30f9df219046882f90be1f40337eb --- /dev/null +++ b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lapack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lapack-help | grep -v \.src | grep lapack-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lapack-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lapack-help + CHECK_RESULT $? 0 0 "install lapack-help failed" + SLEEP_WAIT 1 + dnf remove -y lapack-help + CHECK_RESULT $? 0 0 "remove lapack-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack.sh b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack.sh new file mode 100644 index 0000000000000000000000000000000000000000..ddf6655f43d16d15cc2201855460b0e823382af4 --- /dev/null +++ b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lapack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lapack | grep -v \.src | grep lapack + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lapack" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lapack + CHECK_RESULT $? 0 0 "install lapack failed" + SLEEP_WAIT 1 + dnf remove -y lapack + CHECK_RESULT $? 0 0 "remove lapack failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack64-devel.sh b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack64-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b23fd60b284fb3b9878f2e9a81cca4ed8a4176cb --- /dev/null +++ b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack64-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lapack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lapack64-devel | grep -v \.src | grep lapack64-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lapack64-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lapack64-devel + CHECK_RESULT $? 0 0 "install lapack64-devel failed" + SLEEP_WAIT 1 + dnf remove -y lapack64-devel + CHECK_RESULT $? 0 0 "remove lapack64-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack64.sh b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack64.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecea484a95d5d88dfcb8bac7a1389fa53e163d07 --- /dev/null +++ b/testcases/cli-test/lapack/oe_test_lapack_install_and_remove_lapack64.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lapack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lapack64 | grep -v \.src | grep lapack64 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lapack64" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lapack64 + CHECK_RESULT $? 0 0 "install lapack64 failed" + SLEEP_WAIT 1 + dnf remove -y lapack64 + CHECK_RESULT $? 0 0 "remove lapack64 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-debuginfo.sh b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0f42bb4e6f3afb6107fc4ac9aa7c9a788b23464 --- /dev/null +++ b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lcms2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lcms2-debuginfo | grep -v \.src | grep lcms2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lcms2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lcms2-debuginfo + CHECK_RESULT $? 0 0 "install lcms2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lcms2-debuginfo + CHECK_RESULT $? 0 0 "remove lcms2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-debugsource.sh b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..35ca46329239eb023276ef62585502b823235e7b --- /dev/null +++ b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lcms2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lcms2-debugsource | grep -v \.src | grep lcms2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lcms2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lcms2-debugsource + CHECK_RESULT $? 0 0 "install lcms2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lcms2-debugsource + CHECK_RESULT $? 0 0 "remove lcms2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-devel.sh b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..40cb05a4c4500834af552f3b64aacaa9992d8309 --- /dev/null +++ b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lcms2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lcms2-devel | grep -v \.src | grep lcms2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lcms2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lcms2-devel + CHECK_RESULT $? 0 0 "install lcms2-devel failed" + SLEEP_WAIT 1 + dnf remove -y lcms2-devel + CHECK_RESULT $? 0 0 "remove lcms2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-help.sh b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8cad37dba680b486814f3834b243bdf29d93a3d --- /dev/null +++ b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lcms2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lcms2-help | grep -v \.src | grep lcms2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lcms2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lcms2-help + CHECK_RESULT $? 0 0 "install lcms2-help failed" + SLEEP_WAIT 1 + dnf remove -y lcms2-help + CHECK_RESULT $? 0 0 "remove lcms2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-utils.sh b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..7479a9d5033ec251fcaf7ff4eee2684e0cf90e2d --- /dev/null +++ b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lcms2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lcms2-utils | grep -v \.src | grep lcms2-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lcms2-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lcms2-utils + CHECK_RESULT $? 0 0 "install lcms2-utils failed" + SLEEP_WAIT 1 + dnf remove -y lcms2-utils + CHECK_RESULT $? 0 0 "remove lcms2-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2.sh b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2.sh new file mode 100644 index 0000000000000000000000000000000000000000..fedabaf4e18536e772d4f2bf6ad2bbc93680e94e --- /dev/null +++ b/testcases/cli-test/lcms2/oe_test_lcms2_install_and_remove_lcms2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lcms2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lcms2 | grep -v \.src | grep lcms2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lcms2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lcms2 + CHECK_RESULT $? 0 0 "install lcms2 failed" + SLEEP_WAIT 1 + dnf remove -y lcms2 + CHECK_RESULT $? 0 0 "remove lcms2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/less/oe_test_less_install_and_remove_less-debuginfo.sh b/testcases/cli-test/less/oe_test_less_install_and_remove_less-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3720d025c4ee666e89911ce79fdfb61f98933f2e --- /dev/null +++ b/testcases/cli-test/less/oe_test_less_install_and_remove_less-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src less +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available less-debuginfo | grep -v \.src | grep less-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm less-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y less-debuginfo + CHECK_RESULT $? 0 0 "install less-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y less-debuginfo + CHECK_RESULT $? 0 0 "remove less-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/less/oe_test_less_install_and_remove_less-debugsource.sh b/testcases/cli-test/less/oe_test_less_install_and_remove_less-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..dac929fda53f02e1b74b7ed874bff83f97af6824 --- /dev/null +++ b/testcases/cli-test/less/oe_test_less_install_and_remove_less-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src less +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available less-debugsource | grep -v \.src | grep less-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm less-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y less-debugsource + CHECK_RESULT $? 0 0 "install less-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y less-debugsource + CHECK_RESULT $? 0 0 "remove less-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/less/oe_test_less_install_and_remove_less-help.sh b/testcases/cli-test/less/oe_test_less_install_and_remove_less-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..08d0630b033d790fc63d8e17cd67f7d8e280c3b7 --- /dev/null +++ b/testcases/cli-test/less/oe_test_less_install_and_remove_less-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src less +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available less-help | grep -v \.src | grep less-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm less-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y less-help + CHECK_RESULT $? 0 0 "install less-help failed" + SLEEP_WAIT 1 + dnf remove -y less-help + CHECK_RESULT $? 0 0 "remove less-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/less/oe_test_less_install_and_remove_less.sh b/testcases/cli-test/less/oe_test_less_install_and_remove_less.sh new file mode 100644 index 0000000000000000000000000000000000000000..d078f72bf81d06cf73b661eadb2c4643ac7ea77d --- /dev/null +++ b/testcases/cli-test/less/oe_test_less_install_and_remove_less.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src less +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available less | grep -v \.src | grep less + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm less" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y less + CHECK_RESULT $? 0 0 "install less failed" + SLEEP_WAIT 1 + dnf remove -y less + CHECK_RESULT $? 0 0 "remove less failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-debuginfo.sh b/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3e4c4d223c18344f4329d6ddc7b00d081a63d01 --- /dev/null +++ b/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libICE +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libICE-debuginfo | grep -v \.src | grep libICE-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libICE-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libICE-debuginfo + CHECK_RESULT $? 0 0 "install libICE-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libICE-debuginfo + CHECK_RESULT $? 0 0 "remove libICE-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-debugsource.sh b/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..00a84a99bb4a65af91de933ef026b58848e68864 --- /dev/null +++ b/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libICE +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libICE-debugsource | grep -v \.src | grep libICE-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libICE-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libICE-debugsource + CHECK_RESULT $? 0 0 "install libICE-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libICE-debugsource + CHECK_RESULT $? 0 0 "remove libICE-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-devel.sh b/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..484dfecfa0619ea9bc7066544787589b31737b53 --- /dev/null +++ b/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libICE +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libICE-devel | grep -v \.src | grep libICE-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libICE-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libICE-devel + CHECK_RESULT $? 0 0 "install libICE-devel failed" + SLEEP_WAIT 1 + dnf remove -y libICE-devel + CHECK_RESULT $? 0 0 "remove libICE-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-help.sh b/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..900f4dc773a56a84e3d781afc91b2a27e0f2d4fc --- /dev/null +++ b/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libICE +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libICE-help | grep -v \.src | grep libICE-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libICE-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libICE-help + CHECK_RESULT $? 0 0 "install libICE-help failed" + SLEEP_WAIT 1 + dnf remove -y libICE-help + CHECK_RESULT $? 0 0 "remove libICE-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE.sh b/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b66e5e0528a574baaef3522c303ee7c2fcfef74 --- /dev/null +++ b/testcases/cli-test/libICE/oe_test_libICE_install_and_remove_libICE.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libICE +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libICE | grep -v \.src | grep libICE + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libICE" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libICE + CHECK_RESULT $? 0 0 "install libICE failed" + SLEEP_WAIT 1 + dnf remove -y libICE + CHECK_RESULT $? 0 0 "remove libICE failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-debuginfo.sh b/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4c54209c19fc40cff09f6a39a12e5207738c4ba --- /dev/null +++ b/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libSM +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libSM-debuginfo | grep -v \.src | grep libSM-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libSM-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libSM-debuginfo + CHECK_RESULT $? 0 0 "install libSM-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libSM-debuginfo + CHECK_RESULT $? 0 0 "remove libSM-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-debugsource.sh b/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1ac50ce098b5f261e92ced4dae5514236f7d0a5 --- /dev/null +++ b/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libSM +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libSM-debugsource | grep -v \.src | grep libSM-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libSM-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libSM-debugsource + CHECK_RESULT $? 0 0 "install libSM-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libSM-debugsource + CHECK_RESULT $? 0 0 "remove libSM-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-devel.sh b/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bb93038ffdaeb0f1d96014e2e7bada4c5a07682 --- /dev/null +++ b/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libSM +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libSM-devel | grep -v \.src | grep libSM-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libSM-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libSM-devel + CHECK_RESULT $? 0 0 "install libSM-devel failed" + SLEEP_WAIT 1 + dnf remove -y libSM-devel + CHECK_RESULT $? 0 0 "remove libSM-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-help.sh b/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab62047655235a0416e2806f56e22a0495dc4449 --- /dev/null +++ b/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libSM +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libSM-help | grep -v \.src | grep libSM-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libSM-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libSM-help + CHECK_RESULT $? 0 0 "install libSM-help failed" + SLEEP_WAIT 1 + dnf remove -y libSM-help + CHECK_RESULT $? 0 0 "remove libSM-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM.sh b/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM.sh new file mode 100644 index 0000000000000000000000000000000000000000..b40c5e62052e65f45746372731e69cf67efe951f --- /dev/null +++ b/testcases/cli-test/libSM/oe_test_libSM_install_and_remove_libSM.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libSM +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libSM | grep -v \.src | grep libSM + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libSM" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libSM + CHECK_RESULT $? 0 0 "install libSM failed" + SLEEP_WAIT 1 + dnf remove -y libSM + CHECK_RESULT $? 0 0 "remove libSM failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-common.sh b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..f27554e231e9567f341eff62749de5531b30d9b5 --- /dev/null +++ b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libX11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libX11-common | grep -v \.src | grep libX11-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libX11-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libX11-common + CHECK_RESULT $? 0 0 "install libX11-common failed" + SLEEP_WAIT 1 + dnf remove -y libX11-common + CHECK_RESULT $? 0 0 "remove libX11-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-debuginfo.sh b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d86d25fe0ae646d6aeafc721448d3f8f1d47f2d --- /dev/null +++ b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libX11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libX11-debuginfo | grep -v \.src | grep libX11-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libX11-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libX11-debuginfo + CHECK_RESULT $? 0 0 "install libX11-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libX11-debuginfo + CHECK_RESULT $? 0 0 "remove libX11-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-debugsource.sh b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7346b1b4d3b424f0a1d6996474892ac2379f4512 --- /dev/null +++ b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libX11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libX11-debugsource | grep -v \.src | grep libX11-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libX11-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libX11-debugsource + CHECK_RESULT $? 0 0 "install libX11-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libX11-debugsource + CHECK_RESULT $? 0 0 "remove libX11-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-devel.sh b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c634cd758a24e8ee89ab3e23e590e2d5eba78932 --- /dev/null +++ b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libX11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libX11-devel | grep -v \.src | grep libX11-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libX11-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libX11-devel + CHECK_RESULT $? 0 0 "install libX11-devel failed" + SLEEP_WAIT 1 + dnf remove -y libX11-devel + CHECK_RESULT $? 0 0 "remove libX11-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-doc.sh b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e3414cdf853fe646efba76d183e82cd9d671482 --- /dev/null +++ b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libX11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libX11-doc | grep -v \.src | grep libX11-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libX11-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libX11-doc + CHECK_RESULT $? 0 0 "install libX11-doc failed" + SLEEP_WAIT 1 + dnf remove -y libX11-doc + CHECK_RESULT $? 0 0 "remove libX11-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-help.sh b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7058b342eccc958bb06bda8c9a23385c2ef34c7 --- /dev/null +++ b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libX11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libX11-help | grep -v \.src | grep libX11-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libX11-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libX11-help + CHECK_RESULT $? 0 0 "install libX11-help failed" + SLEEP_WAIT 1 + dnf remove -y libX11-help + CHECK_RESULT $? 0 0 "remove libX11-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-xcb.sh b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-xcb.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa5cfafe76036054711e4f6ae2a0747f41fc204f --- /dev/null +++ b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11-xcb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libX11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libX11-xcb | grep -v \.src | grep libX11-xcb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libX11-xcb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libX11-xcb + CHECK_RESULT $? 0 0 "install libX11-xcb failed" + SLEEP_WAIT 1 + dnf remove -y libX11-xcb + CHECK_RESULT $? 0 0 "remove libX11-xcb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11.sh b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11.sh new file mode 100644 index 0000000000000000000000000000000000000000..242d4d5323cb392da48f845cdfcdd5799d1652d0 --- /dev/null +++ b/testcases/cli-test/libX11/oe_test_libX11_install_and_remove_libX11.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libX11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libX11 | grep -v \.src | grep libX11 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libX11" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libX11 + CHECK_RESULT $? 0 0 "install libX11 failed" + SLEEP_WAIT 1 + dnf remove -y libX11 + CHECK_RESULT $? 0 0 "remove libX11 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-debuginfo.sh b/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..11de6e9835c04332019e8f61dc80121da34182fe --- /dev/null +++ b/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXScrnSaver +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXScrnSaver-debuginfo | grep -v \.src | grep libXScrnSaver-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXScrnSaver-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXScrnSaver-debuginfo + CHECK_RESULT $? 0 0 "install libXScrnSaver-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXScrnSaver-debuginfo + CHECK_RESULT $? 0 0 "remove libXScrnSaver-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-debugsource.sh b/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e4f57a61ef715ecd9393b1cc0fe9038a015d5ab --- /dev/null +++ b/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXScrnSaver +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXScrnSaver-debugsource | grep -v \.src | grep libXScrnSaver-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXScrnSaver-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXScrnSaver-debugsource + CHECK_RESULT $? 0 0 "install libXScrnSaver-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXScrnSaver-debugsource + CHECK_RESULT $? 0 0 "remove libXScrnSaver-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-devel.sh b/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..caef112a2d974452e6ebbf4e065cfa2ec7b7c238 --- /dev/null +++ b/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXScrnSaver +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXScrnSaver-devel | grep -v \.src | grep libXScrnSaver-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXScrnSaver-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXScrnSaver-devel + CHECK_RESULT $? 0 0 "install libXScrnSaver-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXScrnSaver-devel + CHECK_RESULT $? 0 0 "remove libXScrnSaver-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-help.sh b/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b2c96e1e8f8531892caaf400a8169651925c1ba --- /dev/null +++ b/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXScrnSaver +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXScrnSaver-help | grep -v \.src | grep libXScrnSaver-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXScrnSaver-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXScrnSaver-help + CHECK_RESULT $? 0 0 "install libXScrnSaver-help failed" + SLEEP_WAIT 1 + dnf remove -y libXScrnSaver-help + CHECK_RESULT $? 0 0 "remove libXScrnSaver-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver.sh b/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d3dee3bb7f22625f20c66e94a8a68a9aa4328f9 --- /dev/null +++ b/testcases/cli-test/libXScrnSaver/oe_test_libXScrnSaver_install_and_remove_libXScrnSaver.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXScrnSaver +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXScrnSaver | grep -v \.src | grep libXScrnSaver + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXScrnSaver" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXScrnSaver + CHECK_RESULT $? 0 0 "install libXScrnSaver failed" + SLEEP_WAIT 1 + dnf remove -y libXScrnSaver + CHECK_RESULT $? 0 0 "remove libXScrnSaver failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-debuginfo.sh b/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f5092d6e6de6bdfb9105e9b252f36849c0c88eb --- /dev/null +++ b/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXau-debuginfo | grep -v \.src | grep libXau-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXau-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXau-debuginfo + CHECK_RESULT $? 0 0 "install libXau-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXau-debuginfo + CHECK_RESULT $? 0 0 "remove libXau-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-debugsource.sh b/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..23c1030ab9ae813260d8709ac15534c262e44abb --- /dev/null +++ b/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXau-debugsource | grep -v \.src | grep libXau-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXau-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXau-debugsource + CHECK_RESULT $? 0 0 "install libXau-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXau-debugsource + CHECK_RESULT $? 0 0 "remove libXau-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-devel.sh b/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3459501971e087669cf651b2184b3fd50e3185c --- /dev/null +++ b/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXau-devel | grep -v \.src | grep libXau-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXau-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXau-devel + CHECK_RESULT $? 0 0 "install libXau-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXau-devel + CHECK_RESULT $? 0 0 "remove libXau-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-help.sh b/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..35da38b5a96b884a7f8732e2490a3cd6385da50e --- /dev/null +++ b/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXau-help | grep -v \.src | grep libXau-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXau-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXau-help + CHECK_RESULT $? 0 0 "install libXau-help failed" + SLEEP_WAIT 1 + dnf remove -y libXau-help + CHECK_RESULT $? 0 0 "remove libXau-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau.sh b/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau.sh new file mode 100644 index 0000000000000000000000000000000000000000..4169885e0cb2500a112a0da8def1345d6e7a81d0 --- /dev/null +++ b/testcases/cli-test/libXau/oe_test_libXau_install_and_remove_libXau.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXau | grep -v \.src | grep libXau + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXau" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXau + CHECK_RESULT $? 0 0 "install libXau failed" + SLEEP_WAIT 1 + dnf remove -y libXau + CHECK_RESULT $? 0 0 "remove libXau failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-debuginfo.sh b/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..389f12428b25b6ef3fe95d7d4745dd1e7dee5839 --- /dev/null +++ b/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXaw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXaw-debuginfo | grep -v \.src | grep libXaw-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXaw-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXaw-debuginfo + CHECK_RESULT $? 0 0 "install libXaw-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXaw-debuginfo + CHECK_RESULT $? 0 0 "remove libXaw-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-debugsource.sh b/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..40b94d627883ea56a867c13ceca71fc7d726c5cb --- /dev/null +++ b/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXaw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXaw-debugsource | grep -v \.src | grep libXaw-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXaw-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXaw-debugsource + CHECK_RESULT $? 0 0 "install libXaw-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXaw-debugsource + CHECK_RESULT $? 0 0 "remove libXaw-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-devel.sh b/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..44f1326aecf018551321f91f1c4285d3791142a1 --- /dev/null +++ b/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXaw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXaw-devel | grep -v \.src | grep libXaw-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXaw-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXaw-devel + CHECK_RESULT $? 0 0 "install libXaw-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXaw-devel + CHECK_RESULT $? 0 0 "remove libXaw-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-help.sh b/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..773a9f40b7f955b6b56e360683180b32ee48a46d --- /dev/null +++ b/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXaw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXaw-help | grep -v \.src | grep libXaw-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXaw-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXaw-help + CHECK_RESULT $? 0 0 "install libXaw-help failed" + SLEEP_WAIT 1 + dnf remove -y libXaw-help + CHECK_RESULT $? 0 0 "remove libXaw-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw.sh b/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c3ad5cf4a02258c5b83a1dd2be784db0682cb0a --- /dev/null +++ b/testcases/cli-test/libXaw/oe_test_libXaw_install_and_remove_libXaw.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXaw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXaw | grep -v \.src | grep libXaw + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXaw" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXaw + CHECK_RESULT $? 0 0 "install libXaw failed" + SLEEP_WAIT 1 + dnf remove -y libXaw + CHECK_RESULT $? 0 0 "remove libXaw failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-debuginfo.sh b/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fd38c95a7afceb3809bffdedf11fe354dc52f69 --- /dev/null +++ b/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXcomposite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXcomposite-debuginfo | grep -v \.src | grep libXcomposite-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXcomposite-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXcomposite-debuginfo + CHECK_RESULT $? 0 0 "install libXcomposite-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXcomposite-debuginfo + CHECK_RESULT $? 0 0 "remove libXcomposite-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-debugsource.sh b/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..614111ae6b7fc0bc40d2e39761fd518e8c3084d9 --- /dev/null +++ b/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXcomposite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXcomposite-debugsource | grep -v \.src | grep libXcomposite-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXcomposite-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXcomposite-debugsource + CHECK_RESULT $? 0 0 "install libXcomposite-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXcomposite-debugsource + CHECK_RESULT $? 0 0 "remove libXcomposite-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-devel.sh b/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dbc7b73a810e5ee81e7744323a2b77226ece12f --- /dev/null +++ b/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXcomposite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXcomposite-devel | grep -v \.src | grep libXcomposite-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXcomposite-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXcomposite-devel + CHECK_RESULT $? 0 0 "install libXcomposite-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXcomposite-devel + CHECK_RESULT $? 0 0 "remove libXcomposite-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-help.sh b/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2c0f7aac65edb8313f1e96226f58abd79aca3ec --- /dev/null +++ b/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXcomposite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXcomposite-help | grep -v \.src | grep libXcomposite-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXcomposite-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXcomposite-help + CHECK_RESULT $? 0 0 "install libXcomposite-help failed" + SLEEP_WAIT 1 + dnf remove -y libXcomposite-help + CHECK_RESULT $? 0 0 "remove libXcomposite-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite.sh b/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c8fbe781696d119123dd25df63e621fc91e7d1a --- /dev/null +++ b/testcases/cli-test/libXcomposite/oe_test_libXcomposite_install_and_remove_libXcomposite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXcomposite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXcomposite | grep -v \.src | grep libXcomposite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXcomposite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXcomposite + CHECK_RESULT $? 0 0 "install libXcomposite failed" + SLEEP_WAIT 1 + dnf remove -y libXcomposite + CHECK_RESULT $? 0 0 "remove libXcomposite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-debuginfo.sh b/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f70011376f4a44808563ecb8fd617d15521100f0 --- /dev/null +++ b/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXcursor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXcursor-debuginfo | grep -v \.src | grep libXcursor-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXcursor-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXcursor-debuginfo + CHECK_RESULT $? 0 0 "install libXcursor-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXcursor-debuginfo + CHECK_RESULT $? 0 0 "remove libXcursor-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-debugsource.sh b/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..61314cb931804c8b8111a770167b0fa65453deae --- /dev/null +++ b/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXcursor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXcursor-debugsource | grep -v \.src | grep libXcursor-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXcursor-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXcursor-debugsource + CHECK_RESULT $? 0 0 "install libXcursor-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXcursor-debugsource + CHECK_RESULT $? 0 0 "remove libXcursor-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-devel.sh b/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ab494b665755aa3045dc87a87970b5be6aa1c3c --- /dev/null +++ b/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXcursor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXcursor-devel | grep -v \.src | grep libXcursor-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXcursor-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXcursor-devel + CHECK_RESULT $? 0 0 "install libXcursor-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXcursor-devel + CHECK_RESULT $? 0 0 "remove libXcursor-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-help.sh b/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1dbb03075780d11185c0a08d5177dc21a5ba7b0 --- /dev/null +++ b/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXcursor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXcursor-help | grep -v \.src | grep libXcursor-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXcursor-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXcursor-help + CHECK_RESULT $? 0 0 "install libXcursor-help failed" + SLEEP_WAIT 1 + dnf remove -y libXcursor-help + CHECK_RESULT $? 0 0 "remove libXcursor-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor.sh b/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b8d38d73269d77ebe452e026c0b7e74af255c27 --- /dev/null +++ b/testcases/cli-test/libXcursor/oe_test_libXcursor_install_and_remove_libXcursor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXcursor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXcursor | grep -v \.src | grep libXcursor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXcursor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXcursor + CHECK_RESULT $? 0 0 "install libXcursor failed" + SLEEP_WAIT 1 + dnf remove -y libXcursor + CHECK_RESULT $? 0 0 "remove libXcursor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-debuginfo.sh b/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..abc0586c246cfbf853e8396e81e98fef349b673d --- /dev/null +++ b/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXdamage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXdamage-debuginfo | grep -v \.src | grep libXdamage-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXdamage-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXdamage-debuginfo + CHECK_RESULT $? 0 0 "install libXdamage-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXdamage-debuginfo + CHECK_RESULT $? 0 0 "remove libXdamage-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-debugsource.sh b/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf6305eae52e9a28b6ea37ed45097a6df7e8a049 --- /dev/null +++ b/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXdamage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXdamage-debugsource | grep -v \.src | grep libXdamage-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXdamage-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXdamage-debugsource + CHECK_RESULT $? 0 0 "install libXdamage-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXdamage-debugsource + CHECK_RESULT $? 0 0 "remove libXdamage-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-devel.sh b/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e21fc959592c41b3aee005a0054a6ab8863223dd --- /dev/null +++ b/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXdamage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXdamage-devel | grep -v \.src | grep libXdamage-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXdamage-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXdamage-devel + CHECK_RESULT $? 0 0 "install libXdamage-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXdamage-devel + CHECK_RESULT $? 0 0 "remove libXdamage-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-help.sh b/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4aff479f99deaa77cb72cea2de52d1d4ef1746c7 --- /dev/null +++ b/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXdamage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXdamage-help | grep -v \.src | grep libXdamage-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXdamage-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXdamage-help + CHECK_RESULT $? 0 0 "install libXdamage-help failed" + SLEEP_WAIT 1 + dnf remove -y libXdamage-help + CHECK_RESULT $? 0 0 "remove libXdamage-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage.sh b/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage.sh new file mode 100644 index 0000000000000000000000000000000000000000..a841c7b8227c6a127f7236f6e9b49b189446f4e9 --- /dev/null +++ b/testcases/cli-test/libXdamage/oe_test_libXdamage_install_and_remove_libXdamage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXdamage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXdamage | grep -v \.src | grep libXdamage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXdamage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXdamage + CHECK_RESULT $? 0 0 "install libXdamage failed" + SLEEP_WAIT 1 + dnf remove -y libXdamage + CHECK_RESULT $? 0 0 "remove libXdamage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-debuginfo.sh b/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f98a9e2180298ff88f00028d1daf92c841949b97 --- /dev/null +++ b/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXdmcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXdmcp-debuginfo | grep -v \.src | grep libXdmcp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXdmcp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXdmcp-debuginfo + CHECK_RESULT $? 0 0 "install libXdmcp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXdmcp-debuginfo + CHECK_RESULT $? 0 0 "remove libXdmcp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-debugsource.sh b/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0812c221fd36dfb041ced2c1da9f214ca3704aaa --- /dev/null +++ b/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXdmcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXdmcp-debugsource | grep -v \.src | grep libXdmcp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXdmcp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXdmcp-debugsource + CHECK_RESULT $? 0 0 "install libXdmcp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXdmcp-debugsource + CHECK_RESULT $? 0 0 "remove libXdmcp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-devel.sh b/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3a9f291ca8e951b221a8dacc3943f857601b537 --- /dev/null +++ b/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXdmcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXdmcp-devel | grep -v \.src | grep libXdmcp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXdmcp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXdmcp-devel + CHECK_RESULT $? 0 0 "install libXdmcp-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXdmcp-devel + CHECK_RESULT $? 0 0 "remove libXdmcp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-help.sh b/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6442defea3b0cf9c0480da66d58c9626d5d4b658 --- /dev/null +++ b/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXdmcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXdmcp-help | grep -v \.src | grep libXdmcp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXdmcp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXdmcp-help + CHECK_RESULT $? 0 0 "install libXdmcp-help failed" + SLEEP_WAIT 1 + dnf remove -y libXdmcp-help + CHECK_RESULT $? 0 0 "remove libXdmcp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp.sh b/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae16074c0acd77a1ef03ede79b905d5efa202a14 --- /dev/null +++ b/testcases/cli-test/libXdmcp/oe_test_libXdmcp_install_and_remove_libXdmcp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXdmcp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXdmcp | grep -v \.src | grep libXdmcp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXdmcp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXdmcp + CHECK_RESULT $? 0 0 "install libXdmcp failed" + SLEEP_WAIT 1 + dnf remove -y libXdmcp + CHECK_RESULT $? 0 0 "remove libXdmcp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-debuginfo.sh b/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b86345469019eae0548669e5ea1b073d07eb156 --- /dev/null +++ b/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXext-debuginfo | grep -v \.src | grep libXext-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXext-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXext-debuginfo + CHECK_RESULT $? 0 0 "install libXext-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXext-debuginfo + CHECK_RESULT $? 0 0 "remove libXext-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-debugsource.sh b/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..667dc4be45324485501a695d41fbcccda1b98ffc --- /dev/null +++ b/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXext-debugsource | grep -v \.src | grep libXext-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXext-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXext-debugsource + CHECK_RESULT $? 0 0 "install libXext-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXext-debugsource + CHECK_RESULT $? 0 0 "remove libXext-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-devel.sh b/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc793770862c243e3700b1cf5e0e8ddbe0989c73 --- /dev/null +++ b/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXext-devel | grep -v \.src | grep libXext-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXext-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXext-devel + CHECK_RESULT $? 0 0 "install libXext-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXext-devel + CHECK_RESULT $? 0 0 "remove libXext-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-help.sh b/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4259ddcff8f7a5eabb3e842a9f38b3d16d60e83c --- /dev/null +++ b/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXext-help | grep -v \.src | grep libXext-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXext-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXext-help + CHECK_RESULT $? 0 0 "install libXext-help failed" + SLEEP_WAIT 1 + dnf remove -y libXext-help + CHECK_RESULT $? 0 0 "remove libXext-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext.sh b/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext.sh new file mode 100644 index 0000000000000000000000000000000000000000..69032aa21183036d1a2df17e92f7f44442f3c6a7 --- /dev/null +++ b/testcases/cli-test/libXext/oe_test_libXext_install_and_remove_libXext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXext | grep -v \.src | grep libXext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXext + CHECK_RESULT $? 0 0 "install libXext failed" + SLEEP_WAIT 1 + dnf remove -y libXext + CHECK_RESULT $? 0 0 "remove libXext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-debuginfo.sh b/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b89b7a31b7bdad8c191c5bb57831995aed4ab58 --- /dev/null +++ b/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXfixes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXfixes-debuginfo | grep -v \.src | grep libXfixes-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXfixes-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXfixes-debuginfo + CHECK_RESULT $? 0 0 "install libXfixes-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXfixes-debuginfo + CHECK_RESULT $? 0 0 "remove libXfixes-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-debugsource.sh b/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..04ed7da569eae166fe2685699bd48ef07242b6fb --- /dev/null +++ b/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXfixes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXfixes-debugsource | grep -v \.src | grep libXfixes-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXfixes-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXfixes-debugsource + CHECK_RESULT $? 0 0 "install libXfixes-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXfixes-debugsource + CHECK_RESULT $? 0 0 "remove libXfixes-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-devel.sh b/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e531039b74059c86f9332328092230fc5278f325 --- /dev/null +++ b/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXfixes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXfixes-devel | grep -v \.src | grep libXfixes-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXfixes-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXfixes-devel + CHECK_RESULT $? 0 0 "install libXfixes-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXfixes-devel + CHECK_RESULT $? 0 0 "remove libXfixes-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-help.sh b/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..798810480a646c26d7176c1e409df3a98d5e35f5 --- /dev/null +++ b/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXfixes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXfixes-help | grep -v \.src | grep libXfixes-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXfixes-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXfixes-help + CHECK_RESULT $? 0 0 "install libXfixes-help failed" + SLEEP_WAIT 1 + dnf remove -y libXfixes-help + CHECK_RESULT $? 0 0 "remove libXfixes-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes.sh b/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes.sh new file mode 100644 index 0000000000000000000000000000000000000000..2085381e59b9c4b88dcb43312a6ac81680d5953f --- /dev/null +++ b/testcases/cli-test/libXfixes/oe_test_libXfixes_install_and_remove_libXfixes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXfixes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXfixes | grep -v \.src | grep libXfixes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXfixes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXfixes + CHECK_RESULT $? 0 0 "install libXfixes failed" + SLEEP_WAIT 1 + dnf remove -y libXfixes + CHECK_RESULT $? 0 0 "remove libXfixes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-debuginfo.sh b/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8148a5649ff9cfb0b49756ef8ae0e6f36781c9a7 --- /dev/null +++ b/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXfont2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXfont2-debuginfo | grep -v \.src | grep libXfont2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXfont2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXfont2-debuginfo + CHECK_RESULT $? 0 0 "install libXfont2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXfont2-debuginfo + CHECK_RESULT $? 0 0 "remove libXfont2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-debugsource.sh b/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bbe768f040b4c6e07bf167b11f03d6eedd8ee3b --- /dev/null +++ b/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXfont2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXfont2-debugsource | grep -v \.src | grep libXfont2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXfont2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXfont2-debugsource + CHECK_RESULT $? 0 0 "install libXfont2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXfont2-debugsource + CHECK_RESULT $? 0 0 "remove libXfont2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-devel.sh b/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..120516e692ebc9ec6338de2d26c541d8ac1a4d5b --- /dev/null +++ b/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXfont2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXfont2-devel | grep -v \.src | grep libXfont2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXfont2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXfont2-devel + CHECK_RESULT $? 0 0 "install libXfont2-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXfont2-devel + CHECK_RESULT $? 0 0 "remove libXfont2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-help.sh b/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ea1f5a0261c1d735beb3ba1379e2d7fdfe34ef8 --- /dev/null +++ b/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXfont2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXfont2-help | grep -v \.src | grep libXfont2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXfont2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXfont2-help + CHECK_RESULT $? 0 0 "install libXfont2-help failed" + SLEEP_WAIT 1 + dnf remove -y libXfont2-help + CHECK_RESULT $? 0 0 "remove libXfont2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2.sh b/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b7d447b40bac24c929b0e9837a5e5905680d2d6 --- /dev/null +++ b/testcases/cli-test/libXfont2/oe_test_libXfont2_install_and_remove_libXfont2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXfont2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXfont2 | grep -v \.src | grep libXfont2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXfont2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXfont2 + CHECK_RESULT $? 0 0 "install libXfont2 failed" + SLEEP_WAIT 1 + dnf remove -y libXfont2 + CHECK_RESULT $? 0 0 "remove libXfont2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-debuginfo.sh b/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7aa1104b8cfb038b342ae9ac9b75f8665a647607 --- /dev/null +++ b/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXft +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXft-debuginfo | grep -v \.src | grep libXft-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXft-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXft-debuginfo + CHECK_RESULT $? 0 0 "install libXft-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXft-debuginfo + CHECK_RESULT $? 0 0 "remove libXft-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-debugsource.sh b/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..dcfb85d4104205982288fb424de558e209f17554 --- /dev/null +++ b/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXft +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXft-debugsource | grep -v \.src | grep libXft-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXft-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXft-debugsource + CHECK_RESULT $? 0 0 "install libXft-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXft-debugsource + CHECK_RESULT $? 0 0 "remove libXft-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-devel.sh b/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2c22eb659b297c0285699d7c9e93056c6e7e4d9 --- /dev/null +++ b/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXft +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXft-devel | grep -v \.src | grep libXft-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXft-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXft-devel + CHECK_RESULT $? 0 0 "install libXft-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXft-devel + CHECK_RESULT $? 0 0 "remove libXft-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-help.sh b/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2671dff607939fe56d618c935d6b987acafa583a --- /dev/null +++ b/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXft +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXft-help | grep -v \.src | grep libXft-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXft-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXft-help + CHECK_RESULT $? 0 0 "install libXft-help failed" + SLEEP_WAIT 1 + dnf remove -y libXft-help + CHECK_RESULT $? 0 0 "remove libXft-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft.sh b/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft.sh new file mode 100644 index 0000000000000000000000000000000000000000..169836cc0b11c5d9ed9e63a334f526792baaf582 --- /dev/null +++ b/testcases/cli-test/libXft/oe_test_libXft_install_and_remove_libXft.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXft +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXft | grep -v \.src | grep libXft + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXft" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXft + CHECK_RESULT $? 0 0 "install libXft failed" + SLEEP_WAIT 1 + dnf remove -y libXft + CHECK_RESULT $? 0 0 "remove libXft failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-debuginfo.sh b/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d931554f20cc106b7f50c4d5c8f8bee7c3d1cd2 --- /dev/null +++ b/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXi-debuginfo | grep -v \.src | grep libXi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXi-debuginfo + CHECK_RESULT $? 0 0 "install libXi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXi-debuginfo + CHECK_RESULT $? 0 0 "remove libXi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-debugsource.sh b/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1024ed3c647d4b05de1b611d1cdb385bfe227f2b --- /dev/null +++ b/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXi-debugsource | grep -v \.src | grep libXi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXi-debugsource + CHECK_RESULT $? 0 0 "install libXi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXi-debugsource + CHECK_RESULT $? 0 0 "remove libXi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-devel.sh b/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..67901de3f1791028c1a33f408d8112636d10cf5b --- /dev/null +++ b/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXi-devel | grep -v \.src | grep libXi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXi-devel + CHECK_RESULT $? 0 0 "install libXi-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXi-devel + CHECK_RESULT $? 0 0 "remove libXi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-help.sh b/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..706dd34be1348c79cbf366759c6396273b1ec69b --- /dev/null +++ b/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXi-help | grep -v \.src | grep libXi-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXi-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXi-help + CHECK_RESULT $? 0 0 "install libXi-help failed" + SLEEP_WAIT 1 + dnf remove -y libXi-help + CHECK_RESULT $? 0 0 "remove libXi-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi.sh b/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi.sh new file mode 100644 index 0000000000000000000000000000000000000000..aaa0a54116e60b8707126ae5932ff183be9ea122 --- /dev/null +++ b/testcases/cli-test/libXi/oe_test_libXi_install_and_remove_libXi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXi | grep -v \.src | grep libXi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXi + CHECK_RESULT $? 0 0 "install libXi failed" + SLEEP_WAIT 1 + dnf remove -y libXi + CHECK_RESULT $? 0 0 "remove libXi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-debuginfo.sh b/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c4f341770efe4cd1712a83aa12d12ebdb822af7 --- /dev/null +++ b/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXinerama +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXinerama-debuginfo | grep -v \.src | grep libXinerama-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXinerama-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXinerama-debuginfo + CHECK_RESULT $? 0 0 "install libXinerama-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXinerama-debuginfo + CHECK_RESULT $? 0 0 "remove libXinerama-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-debugsource.sh b/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..615ed31b7c32432df08fe46d71e4e98b3ac4b29a --- /dev/null +++ b/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXinerama +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXinerama-debugsource | grep -v \.src | grep libXinerama-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXinerama-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXinerama-debugsource + CHECK_RESULT $? 0 0 "install libXinerama-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXinerama-debugsource + CHECK_RESULT $? 0 0 "remove libXinerama-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-devel.sh b/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..03e103b2a56d98736744ddc7f6f32e6445179fad --- /dev/null +++ b/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXinerama +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXinerama-devel | grep -v \.src | grep libXinerama-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXinerama-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXinerama-devel + CHECK_RESULT $? 0 0 "install libXinerama-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXinerama-devel + CHECK_RESULT $? 0 0 "remove libXinerama-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-help.sh b/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..93ff54eb1b4f6494afdbcca7fb6b143cb3deaf1b --- /dev/null +++ b/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXinerama +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXinerama-help | grep -v \.src | grep libXinerama-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXinerama-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXinerama-help + CHECK_RESULT $? 0 0 "install libXinerama-help failed" + SLEEP_WAIT 1 + dnf remove -y libXinerama-help + CHECK_RESULT $? 0 0 "remove libXinerama-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama.sh b/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama.sh new file mode 100644 index 0000000000000000000000000000000000000000..89d621f194674245b3c9ee47f3ca4c810654a04c --- /dev/null +++ b/testcases/cli-test/libXinerama/oe_test_libXinerama_install_and_remove_libXinerama.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXinerama +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXinerama | grep -v \.src | grep libXinerama + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXinerama" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXinerama + CHECK_RESULT $? 0 0 "install libXinerama failed" + SLEEP_WAIT 1 + dnf remove -y libXinerama + CHECK_RESULT $? 0 0 "remove libXinerama failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-debuginfo.sh b/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3ef864869f4b91fdca1c2723f5de12b23ff05da --- /dev/null +++ b/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXmu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXmu-debuginfo | grep -v \.src | grep libXmu-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXmu-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXmu-debuginfo + CHECK_RESULT $? 0 0 "install libXmu-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXmu-debuginfo + CHECK_RESULT $? 0 0 "remove libXmu-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-debugsource.sh b/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..65478507a3a802349f92211902ae18297a47973c --- /dev/null +++ b/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXmu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXmu-debugsource | grep -v \.src | grep libXmu-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXmu-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXmu-debugsource + CHECK_RESULT $? 0 0 "install libXmu-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXmu-debugsource + CHECK_RESULT $? 0 0 "remove libXmu-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-devel.sh b/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..545291ca1f505beace1f1d653ab5951115c3d7f9 --- /dev/null +++ b/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXmu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXmu-devel | grep -v \.src | grep libXmu-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXmu-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXmu-devel + CHECK_RESULT $? 0 0 "install libXmu-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXmu-devel + CHECK_RESULT $? 0 0 "remove libXmu-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-help.sh b/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..828b793790f2457a7a98876a1e317098031fc928 --- /dev/null +++ b/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXmu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXmu-help | grep -v \.src | grep libXmu-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXmu-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXmu-help + CHECK_RESULT $? 0 0 "install libXmu-help failed" + SLEEP_WAIT 1 + dnf remove -y libXmu-help + CHECK_RESULT $? 0 0 "remove libXmu-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu.sh b/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu.sh new file mode 100644 index 0000000000000000000000000000000000000000..41d75e09390b6108d3a79e4d150ca02b347fbc77 --- /dev/null +++ b/testcases/cli-test/libXmu/oe_test_libXmu_install_and_remove_libXmu.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXmu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXmu | grep -v \.src | grep libXmu + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXmu" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXmu + CHECK_RESULT $? 0 0 "install libXmu failed" + SLEEP_WAIT 1 + dnf remove -y libXmu + CHECK_RESULT $? 0 0 "remove libXmu failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-debuginfo.sh b/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a78af20a142f10f1d119db4b2f056e447fcddab6 --- /dev/null +++ b/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXpm-debuginfo | grep -v \.src | grep libXpm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXpm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXpm-debuginfo + CHECK_RESULT $? 0 0 "install libXpm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXpm-debuginfo + CHECK_RESULT $? 0 0 "remove libXpm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-debugsource.sh b/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c31af37fe9bea2cc31feb1bc6556ada8a038999 --- /dev/null +++ b/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXpm-debugsource | grep -v \.src | grep libXpm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXpm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXpm-debugsource + CHECK_RESULT $? 0 0 "install libXpm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXpm-debugsource + CHECK_RESULT $? 0 0 "remove libXpm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-devel.sh b/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2823e0d34853bc5f41a04325e024085bf5ac99af --- /dev/null +++ b/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXpm-devel | grep -v \.src | grep libXpm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXpm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXpm-devel + CHECK_RESULT $? 0 0 "install libXpm-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXpm-devel + CHECK_RESULT $? 0 0 "remove libXpm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-help.sh b/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a5cfbb08121ceeab4ae5ec7d8525884e547b0ef --- /dev/null +++ b/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXpm-help | grep -v \.src | grep libXpm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXpm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXpm-help + CHECK_RESULT $? 0 0 "install libXpm-help failed" + SLEEP_WAIT 1 + dnf remove -y libXpm-help + CHECK_RESULT $? 0 0 "remove libXpm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm.sh b/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm.sh new file mode 100644 index 0000000000000000000000000000000000000000..09aa4f236e43d0e82ba69996d343113f3b5f66d8 --- /dev/null +++ b/testcases/cli-test/libXpm/oe_test_libXpm_install_and_remove_libXpm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXpm | grep -v \.src | grep libXpm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXpm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXpm + CHECK_RESULT $? 0 0 "install libXpm failed" + SLEEP_WAIT 1 + dnf remove -y libXpm + CHECK_RESULT $? 0 0 "remove libXpm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-debuginfo.sh b/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f3142e8bf915fc6ab2c4b4e4b5e0ed8e671da08 --- /dev/null +++ b/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXrandr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXrandr-debuginfo | grep -v \.src | grep libXrandr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXrandr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXrandr-debuginfo + CHECK_RESULT $? 0 0 "install libXrandr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXrandr-debuginfo + CHECK_RESULT $? 0 0 "remove libXrandr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-debugsource.sh b/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..07ea8867631f7cddfd42526260155912f0277763 --- /dev/null +++ b/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXrandr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXrandr-debugsource | grep -v \.src | grep libXrandr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXrandr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXrandr-debugsource + CHECK_RESULT $? 0 0 "install libXrandr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXrandr-debugsource + CHECK_RESULT $? 0 0 "remove libXrandr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-devel.sh b/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4b9ec7d9e6903cc31b257ff0469f0a269290d4c --- /dev/null +++ b/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXrandr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXrandr-devel | grep -v \.src | grep libXrandr-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXrandr-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXrandr-devel + CHECK_RESULT $? 0 0 "install libXrandr-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXrandr-devel + CHECK_RESULT $? 0 0 "remove libXrandr-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-help.sh b/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..536d2ebaea2ba5ffd080af11286f2b014107fd83 --- /dev/null +++ b/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXrandr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXrandr-help | grep -v \.src | grep libXrandr-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXrandr-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXrandr-help + CHECK_RESULT $? 0 0 "install libXrandr-help failed" + SLEEP_WAIT 1 + dnf remove -y libXrandr-help + CHECK_RESULT $? 0 0 "remove libXrandr-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr.sh b/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b4af67156779f4a9a6e8c42f39b4d9b67ffeeb5 --- /dev/null +++ b/testcases/cli-test/libXrandr/oe_test_libXrandr_install_and_remove_libXrandr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXrandr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXrandr | grep -v \.src | grep libXrandr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXrandr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXrandr + CHECK_RESULT $? 0 0 "install libXrandr failed" + SLEEP_WAIT 1 + dnf remove -y libXrandr + CHECK_RESULT $? 0 0 "remove libXrandr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-debuginfo.sh b/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2a2fc5905208a3c3efaf8321de12d3471954d4e --- /dev/null +++ b/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXrender +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXrender-debuginfo | grep -v \.src | grep libXrender-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXrender-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXrender-debuginfo + CHECK_RESULT $? 0 0 "install libXrender-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXrender-debuginfo + CHECK_RESULT $? 0 0 "remove libXrender-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-debugsource.sh b/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a2dc50116421ec534dcabbdde7b8c37615f1203 --- /dev/null +++ b/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXrender +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXrender-debugsource | grep -v \.src | grep libXrender-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXrender-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXrender-debugsource + CHECK_RESULT $? 0 0 "install libXrender-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXrender-debugsource + CHECK_RESULT $? 0 0 "remove libXrender-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-devel.sh b/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..26dafff2099cd3ac30e0bfff8a4f1eb2541a3502 --- /dev/null +++ b/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXrender +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXrender-devel | grep -v \.src | grep libXrender-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXrender-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXrender-devel + CHECK_RESULT $? 0 0 "install libXrender-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXrender-devel + CHECK_RESULT $? 0 0 "remove libXrender-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-help.sh b/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..22a051483da93272ec138b788e9d14854141911c --- /dev/null +++ b/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXrender +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXrender-help | grep -v \.src | grep libXrender-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXrender-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXrender-help + CHECK_RESULT $? 0 0 "install libXrender-help failed" + SLEEP_WAIT 1 + dnf remove -y libXrender-help + CHECK_RESULT $? 0 0 "remove libXrender-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender.sh b/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender.sh new file mode 100644 index 0000000000000000000000000000000000000000..762b5ac9d409dbb33f79d0e21e909d32056b7e70 --- /dev/null +++ b/testcases/cli-test/libXrender/oe_test_libXrender_install_and_remove_libXrender.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXrender +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXrender | grep -v \.src | grep libXrender + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXrender" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXrender + CHECK_RESULT $? 0 0 "install libXrender failed" + SLEEP_WAIT 1 + dnf remove -y libXrender + CHECK_RESULT $? 0 0 "remove libXrender failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-debuginfo.sh b/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5cf4dd12387ef92f85121c2974371860ba0432ae --- /dev/null +++ b/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXres +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXres-debuginfo | grep -v \.src | grep libXres-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXres-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXres-debuginfo + CHECK_RESULT $? 0 0 "install libXres-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXres-debuginfo + CHECK_RESULT $? 0 0 "remove libXres-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-debugsource.sh b/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..595bed165d1e7df81425d867a1f42bce36b05c13 --- /dev/null +++ b/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXres +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXres-debugsource | grep -v \.src | grep libXres-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXres-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXres-debugsource + CHECK_RESULT $? 0 0 "install libXres-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXres-debugsource + CHECK_RESULT $? 0 0 "remove libXres-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-devel.sh b/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd6f78c331880577f357691670ebaea1baf9cef2 --- /dev/null +++ b/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXres +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXres-devel | grep -v \.src | grep libXres-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXres-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXres-devel + CHECK_RESULT $? 0 0 "install libXres-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXres-devel + CHECK_RESULT $? 0 0 "remove libXres-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-help.sh b/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbba1b679a12053086c2bb76b781efb1af40e077 --- /dev/null +++ b/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXres +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXres-help | grep -v \.src | grep libXres-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXres-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXres-help + CHECK_RESULT $? 0 0 "install libXres-help failed" + SLEEP_WAIT 1 + dnf remove -y libXres-help + CHECK_RESULT $? 0 0 "remove libXres-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres.sh b/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres.sh new file mode 100644 index 0000000000000000000000000000000000000000..911d5dc680f7651a2455481656a9826af1c568a5 --- /dev/null +++ b/testcases/cli-test/libXres/oe_test_libXres_install_and_remove_libXres.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXres +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXres | grep -v \.src | grep libXres + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXres" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXres + CHECK_RESULT $? 0 0 "install libXres failed" + SLEEP_WAIT 1 + dnf remove -y libXres + CHECK_RESULT $? 0 0 "remove libXres failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-debuginfo.sh b/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f42889f8774b3fc622c65f473129b12099c4401b --- /dev/null +++ b/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXt-debuginfo | grep -v \.src | grep libXt-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXt-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXt-debuginfo + CHECK_RESULT $? 0 0 "install libXt-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXt-debuginfo + CHECK_RESULT $? 0 0 "remove libXt-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-debugsource.sh b/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..904ac25d51b1b2f9ac320915af3b5ad9063907fc --- /dev/null +++ b/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXt-debugsource | grep -v \.src | grep libXt-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXt-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXt-debugsource + CHECK_RESULT $? 0 0 "install libXt-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXt-debugsource + CHECK_RESULT $? 0 0 "remove libXt-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-devel.sh b/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c02445bcf8693c333d94716b75e01ced9bf912ea --- /dev/null +++ b/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXt-devel | grep -v \.src | grep libXt-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXt-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXt-devel + CHECK_RESULT $? 0 0 "install libXt-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXt-devel + CHECK_RESULT $? 0 0 "remove libXt-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-help.sh b/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..849536a673d0bd27f9a13e5d37d4e4932297c753 --- /dev/null +++ b/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXt-help | grep -v \.src | grep libXt-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXt-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXt-help + CHECK_RESULT $? 0 0 "install libXt-help failed" + SLEEP_WAIT 1 + dnf remove -y libXt-help + CHECK_RESULT $? 0 0 "remove libXt-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt.sh b/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e92a4bf1139f0fcb5d799a7f2af55b7e8800775 --- /dev/null +++ b/testcases/cli-test/libXt/oe_test_libXt_install_and_remove_libXt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXt | grep -v \.src | grep libXt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXt + CHECK_RESULT $? 0 0 "install libXt failed" + SLEEP_WAIT 1 + dnf remove -y libXt + CHECK_RESULT $? 0 0 "remove libXt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-debuginfo.sh b/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..339b46444b7aa1620871a2c4e62948a456cca95d --- /dev/null +++ b/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXtst +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXtst-debuginfo | grep -v \.src | grep libXtst-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXtst-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXtst-debuginfo + CHECK_RESULT $? 0 0 "install libXtst-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXtst-debuginfo + CHECK_RESULT $? 0 0 "remove libXtst-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-debugsource.sh b/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..84a3383064c090559822f8301714389fcf8d8686 --- /dev/null +++ b/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXtst +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXtst-debugsource | grep -v \.src | grep libXtst-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXtst-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXtst-debugsource + CHECK_RESULT $? 0 0 "install libXtst-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXtst-debugsource + CHECK_RESULT $? 0 0 "remove libXtst-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-devel.sh b/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a25914c48de641074e0d6856d356c0fb35500b6c --- /dev/null +++ b/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXtst +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXtst-devel | grep -v \.src | grep libXtst-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXtst-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXtst-devel + CHECK_RESULT $? 0 0 "install libXtst-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXtst-devel + CHECK_RESULT $? 0 0 "remove libXtst-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-help.sh b/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3829adc85a1f8616a1b348fbc5ef21abaf27f25f --- /dev/null +++ b/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXtst +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXtst-help | grep -v \.src | grep libXtst-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXtst-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXtst-help + CHECK_RESULT $? 0 0 "install libXtst-help failed" + SLEEP_WAIT 1 + dnf remove -y libXtst-help + CHECK_RESULT $? 0 0 "remove libXtst-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst.sh b/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst.sh new file mode 100644 index 0000000000000000000000000000000000000000..78c396edf1a84ee459784f7160b481c71c264098 --- /dev/null +++ b/testcases/cli-test/libXtst/oe_test_libXtst_install_and_remove_libXtst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXtst +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXtst | grep -v \.src | grep libXtst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXtst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXtst + CHECK_RESULT $? 0 0 "install libXtst failed" + SLEEP_WAIT 1 + dnf remove -y libXtst + CHECK_RESULT $? 0 0 "remove libXtst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-debuginfo.sh b/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..910240f17b75afea22f99456f061d195dda0c68d --- /dev/null +++ b/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXv-debuginfo | grep -v \.src | grep libXv-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXv-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXv-debuginfo + CHECK_RESULT $? 0 0 "install libXv-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXv-debuginfo + CHECK_RESULT $? 0 0 "remove libXv-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-debugsource.sh b/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f568a6521b9239d638da840f1e1371cb9580e119 --- /dev/null +++ b/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXv-debugsource | grep -v \.src | grep libXv-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXv-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXv-debugsource + CHECK_RESULT $? 0 0 "install libXv-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXv-debugsource + CHECK_RESULT $? 0 0 "remove libXv-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-devel.sh b/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ead2a3a36d1ec782de03ff427a6dc04d40726c5 --- /dev/null +++ b/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXv-devel | grep -v \.src | grep libXv-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXv-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXv-devel + CHECK_RESULT $? 0 0 "install libXv-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXv-devel + CHECK_RESULT $? 0 0 "remove libXv-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-help.sh b/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f50a7301f4da0990c6c9c14001fee0158942bfbf --- /dev/null +++ b/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXv-help | grep -v \.src | grep libXv-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXv-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXv-help + CHECK_RESULT $? 0 0 "install libXv-help failed" + SLEEP_WAIT 1 + dnf remove -y libXv-help + CHECK_RESULT $? 0 0 "remove libXv-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv.sh b/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fd291514b0793708fa0590b9f87a93602eb8511 --- /dev/null +++ b/testcases/cli-test/libXv/oe_test_libXv_install_and_remove_libXv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXv | grep -v \.src | grep libXv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXv + CHECK_RESULT $? 0 0 "install libXv failed" + SLEEP_WAIT 1 + dnf remove -y libXv + CHECK_RESULT $? 0 0 "remove libXv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-debuginfo.sh b/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..832611783db1b1eec3d44e7d936886ebb3250601 --- /dev/null +++ b/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXvMC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXvMC-debuginfo | grep -v \.src | grep libXvMC-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXvMC-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXvMC-debuginfo + CHECK_RESULT $? 0 0 "install libXvMC-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXvMC-debuginfo + CHECK_RESULT $? 0 0 "remove libXvMC-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-debugsource.sh b/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9031764c5cf9c87200a14613b58aab7829c3d026 --- /dev/null +++ b/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXvMC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXvMC-debugsource | grep -v \.src | grep libXvMC-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXvMC-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXvMC-debugsource + CHECK_RESULT $? 0 0 "install libXvMC-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXvMC-debugsource + CHECK_RESULT $? 0 0 "remove libXvMC-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-devel.sh b/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..276e5f1153b0a70fa8075c5090e27864851e3827 --- /dev/null +++ b/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXvMC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXvMC-devel | grep -v \.src | grep libXvMC-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXvMC-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXvMC-devel + CHECK_RESULT $? 0 0 "install libXvMC-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXvMC-devel + CHECK_RESULT $? 0 0 "remove libXvMC-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-help.sh b/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..26184b06fc8eb5e390d03bafae93c9233bd1f58f --- /dev/null +++ b/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXvMC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXvMC-help | grep -v \.src | grep libXvMC-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXvMC-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXvMC-help + CHECK_RESULT $? 0 0 "install libXvMC-help failed" + SLEEP_WAIT 1 + dnf remove -y libXvMC-help + CHECK_RESULT $? 0 0 "remove libXvMC-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC.sh b/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bd8285cbddc99965896ca85ba3a5d83cdc5b2d5 --- /dev/null +++ b/testcases/cli-test/libXvMC/oe_test_libXvMC_install_and_remove_libXvMC.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXvMC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXvMC | grep -v \.src | grep libXvMC + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXvMC" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXvMC + CHECK_RESULT $? 0 0 "install libXvMC failed" + SLEEP_WAIT 1 + dnf remove -y libXvMC + CHECK_RESULT $? 0 0 "remove libXvMC failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-debuginfo.sh b/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fe96a773aab0cd5a088c90da5dcfd39d8e6024c --- /dev/null +++ b/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXxf86dga +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXxf86dga-debuginfo | grep -v \.src | grep libXxf86dga-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXxf86dga-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXxf86dga-debuginfo + CHECK_RESULT $? 0 0 "install libXxf86dga-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXxf86dga-debuginfo + CHECK_RESULT $? 0 0 "remove libXxf86dga-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-debugsource.sh b/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ceadfeb476c91b74197056c86f7b9fb5476c8508 --- /dev/null +++ b/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXxf86dga +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXxf86dga-debugsource | grep -v \.src | grep libXxf86dga-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXxf86dga-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXxf86dga-debugsource + CHECK_RESULT $? 0 0 "install libXxf86dga-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXxf86dga-debugsource + CHECK_RESULT $? 0 0 "remove libXxf86dga-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-devel.sh b/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..361df8a37786aeae037356fcb14fbd81e065e3f2 --- /dev/null +++ b/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXxf86dga +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXxf86dga-devel | grep -v \.src | grep libXxf86dga-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXxf86dga-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXxf86dga-devel + CHECK_RESULT $? 0 0 "install libXxf86dga-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXxf86dga-devel + CHECK_RESULT $? 0 0 "remove libXxf86dga-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-help.sh b/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6ea0d6ad6f738692f27e740e8e6dbabe7853c8b --- /dev/null +++ b/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libXxf86dga-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXxf86dga +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXxf86dga-help | grep -v \.src | grep libXxf86dga-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXxf86dga-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXxf86dga-help + CHECK_RESULT $? 0 0 "install libXxf86dga-help failed" + SLEEP_WAIT 1 + dnf remove -y libXxf86dga-help + CHECK_RESULT $? 0 0 "remove libXxf86dga-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libxxf86dga.sh b/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libxxf86dga.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cbb3af2e844c887fbef4c36fc9afbaa194b6d41 --- /dev/null +++ b/testcases/cli-test/libXxf86dga/oe_test_libXxf86dga_install_and_remove_libxxf86dga.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXxf86dga +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxxf86dga | grep -v \.src | grep libxxf86dga + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxxf86dga" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxxf86dga + CHECK_RESULT $? 0 0 "install libxxf86dga failed" + SLEEP_WAIT 1 + dnf remove -y libxxf86dga + CHECK_RESULT $? 0 0 "remove libxxf86dga failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-debuginfo.sh b/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..febc42a231e21978b365cf57832116eacf3cfe12 --- /dev/null +++ b/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXxf86vm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXxf86vm-debuginfo | grep -v \.src | grep libXxf86vm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXxf86vm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXxf86vm-debuginfo + CHECK_RESULT $? 0 0 "install libXxf86vm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libXxf86vm-debuginfo + CHECK_RESULT $? 0 0 "remove libXxf86vm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-debugsource.sh b/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a25d041faa8a73ffd5b4df55366e277a697d0ef --- /dev/null +++ b/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXxf86vm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXxf86vm-debugsource | grep -v \.src | grep libXxf86vm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXxf86vm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXxf86vm-debugsource + CHECK_RESULT $? 0 0 "install libXxf86vm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libXxf86vm-debugsource + CHECK_RESULT $? 0 0 "remove libXxf86vm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-devel.sh b/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3130cc22675ff2b2829ebd5161231051397b0110 --- /dev/null +++ b/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXxf86vm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXxf86vm-devel | grep -v \.src | grep libXxf86vm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXxf86vm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXxf86vm-devel + CHECK_RESULT $? 0 0 "install libXxf86vm-devel failed" + SLEEP_WAIT 1 + dnf remove -y libXxf86vm-devel + CHECK_RESULT $? 0 0 "remove libXxf86vm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-help.sh b/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b52ef22ba88d968c062aad3f60e0e5c9a93b7043 --- /dev/null +++ b/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXxf86vm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXxf86vm-help | grep -v \.src | grep libXxf86vm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXxf86vm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXxf86vm-help + CHECK_RESULT $? 0 0 "install libXxf86vm-help failed" + SLEEP_WAIT 1 + dnf remove -y libXxf86vm-help + CHECK_RESULT $? 0 0 "remove libXxf86vm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm.sh b/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d320eaaf9216267db30d5aebfd0e804ac416eb5 --- /dev/null +++ b/testcases/cli-test/libXxf86vm/oe_test_libXxf86vm_install_and_remove_libXxf86vm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libXxf86vm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libXxf86vm | grep -v \.src | grep libXxf86vm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libXxf86vm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libXxf86vm + CHECK_RESULT $? 0 0 "install libXxf86vm failed" + SLEEP_WAIT 1 + dnf remove -y libXxf86vm + CHECK_RESULT $? 0 0 "remove libXxf86vm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-debuginfo.sh b/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..91518056d0b408760a8a00d3423acadd3c2d554f --- /dev/null +++ b/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libadwaita +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libadwaita-debuginfo | grep -v \.src | grep libadwaita-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libadwaita-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libadwaita-debuginfo + CHECK_RESULT $? 0 0 "install libadwaita-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libadwaita-debuginfo + CHECK_RESULT $? 0 0 "remove libadwaita-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-debugsource.sh b/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..39b04ad197d5162ba40f12f2ccef8f0d4f0e2df2 --- /dev/null +++ b/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libadwaita +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libadwaita-debugsource | grep -v \.src | grep libadwaita-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libadwaita-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libadwaita-debugsource + CHECK_RESULT $? 0 0 "install libadwaita-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libadwaita-debugsource + CHECK_RESULT $? 0 0 "remove libadwaita-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-devel.sh b/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4b55b496c4383190a77babb5603e7ad11dbf5f0 --- /dev/null +++ b/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libadwaita +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libadwaita-devel | grep -v \.src | grep libadwaita-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libadwaita-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libadwaita-devel + CHECK_RESULT $? 0 0 "install libadwaita-devel failed" + SLEEP_WAIT 1 + dnf remove -y libadwaita-devel + CHECK_RESULT $? 0 0 "remove libadwaita-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-help.sh b/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7262d7283517400b62968325a17a7f26e3104375 --- /dev/null +++ b/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libadwaita +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libadwaita-help | grep -v \.src | grep libadwaita-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libadwaita-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libadwaita-help + CHECK_RESULT $? 0 0 "install libadwaita-help failed" + SLEEP_WAIT 1 + dnf remove -y libadwaita-help + CHECK_RESULT $? 0 0 "remove libadwaita-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita.sh b/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita.sh new file mode 100644 index 0000000000000000000000000000000000000000..a886c283f6c322c00fe9c3461bf18ae40e841ae3 --- /dev/null +++ b/testcases/cli-test/libadwaita/oe_test_libadwaita_install_and_remove_libadwaita.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libadwaita +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libadwaita | grep -v \.src | grep libadwaita + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libadwaita" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libadwaita + CHECK_RESULT $? 0 0 "install libadwaita failed" + SLEEP_WAIT 1 + dnf remove -y libadwaita + CHECK_RESULT $? 0 0 "remove libadwaita failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio-debuginfo.sh b/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..02d81cc1c3aa097d4e54540711097cfffd23ae21 --- /dev/null +++ b/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libaio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libaio-debuginfo | grep -v \.src | grep libaio-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libaio-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libaio-debuginfo + CHECK_RESULT $? 0 0 "install libaio-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libaio-debuginfo + CHECK_RESULT $? 0 0 "remove libaio-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio-debugsource.sh b/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d708b478925afdffd4afe1a299fdf93551d8794 --- /dev/null +++ b/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libaio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libaio-debugsource | grep -v \.src | grep libaio-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libaio-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libaio-debugsource + CHECK_RESULT $? 0 0 "install libaio-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libaio-debugsource + CHECK_RESULT $? 0 0 "remove libaio-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio-devel.sh b/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fb2ef1c5026253deaee27960ae71047491fd0e6 --- /dev/null +++ b/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libaio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libaio-devel | grep -v \.src | grep libaio-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libaio-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libaio-devel + CHECK_RESULT $? 0 0 "install libaio-devel failed" + SLEEP_WAIT 1 + dnf remove -y libaio-devel + CHECK_RESULT $? 0 0 "remove libaio-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio.sh b/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio.sh new file mode 100644 index 0000000000000000000000000000000000000000..f32d7513ea481bc74e2226fe230f080f18d2fb6f --- /dev/null +++ b/testcases/cli-test/libaio/oe_test_libaio_install_and_remove_libaio.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libaio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libaio | grep -v \.src | grep libaio + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libaio" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libaio + CHECK_RESULT $? 0 0 "install libaio failed" + SLEEP_WAIT 1 + dnf remove -y libaio + CHECK_RESULT $? 0 0 "remove libaio failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-debuginfo.sh b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..cad2a9ce3351a750d3fc69870ff6aa641c58c5ce --- /dev/null +++ b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappindicator-debuginfo | grep -v \.src | grep libappindicator-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappindicator-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappindicator-debuginfo + CHECK_RESULT $? 0 0 "install libappindicator-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libappindicator-debuginfo + CHECK_RESULT $? 0 0 "remove libappindicator-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-debugsource.sh b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..da3cf72333b34dfd0527ed3135fe80008dc4b255 --- /dev/null +++ b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappindicator-debugsource | grep -v \.src | grep libappindicator-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappindicator-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappindicator-debugsource + CHECK_RESULT $? 0 0 "install libappindicator-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libappindicator-debugsource + CHECK_RESULT $? 0 0 "remove libappindicator-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-devel.sh b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..fda2f4cbb290a2f73d8f21b38e55750b524d5213 --- /dev/null +++ b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappindicator-devel | grep -v \.src | grep libappindicator-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappindicator-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappindicator-devel + CHECK_RESULT $? 0 0 "install libappindicator-devel failed" + SLEEP_WAIT 1 + dnf remove -y libappindicator-devel + CHECK_RESULT $? 0 0 "remove libappindicator-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-docs.sh b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-docs.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e47a660dfc7a119b9d41338da3ace58955ab13b --- /dev/null +++ b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-docs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappindicator-docs | grep -v \.src | grep libappindicator-docs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappindicator-docs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappindicator-docs + CHECK_RESULT $? 0 0 "install libappindicator-docs failed" + SLEEP_WAIT 1 + dnf remove -y libappindicator-docs + CHECK_RESULT $? 0 0 "remove libappindicator-docs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-gtk3-devel.sh b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-gtk3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8d6e8f8ebc42f2555dbeb4a82c39b12b6b8874d --- /dev/null +++ b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-gtk3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappindicator-gtk3-devel | grep -v \.src | grep libappindicator-gtk3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappindicator-gtk3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappindicator-gtk3-devel + CHECK_RESULT $? 0 0 "install libappindicator-gtk3-devel failed" + SLEEP_WAIT 1 + dnf remove -y libappindicator-gtk3-devel + CHECK_RESULT $? 0 0 "remove libappindicator-gtk3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-gtk3.sh b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-gtk3.sh new file mode 100644 index 0000000000000000000000000000000000000000..c60e7f2a6be5900760a07848657b0a080e7bc81b --- /dev/null +++ b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator-gtk3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappindicator-gtk3 | grep -v \.src | grep libappindicator-gtk3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappindicator-gtk3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappindicator-gtk3 + CHECK_RESULT $? 0 0 "install libappindicator-gtk3 failed" + SLEEP_WAIT 1 + dnf remove -y libappindicator-gtk3 + CHECK_RESULT $? 0 0 "remove libappindicator-gtk3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator.sh b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator.sh new file mode 100644 index 0000000000000000000000000000000000000000..49580166bd988d3ae25beabba8ad0d139aa0f37a --- /dev/null +++ b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_libappindicator.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappindicator | grep -v \.src | grep libappindicator + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappindicator" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappindicator + CHECK_RESULT $? 0 0 "install libappindicator failed" + SLEEP_WAIT 1 + dnf remove -y libappindicator + CHECK_RESULT $? 0 0 "remove libappindicator failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_python2-appindicator.sh b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_python2-appindicator.sh new file mode 100644 index 0000000000000000000000000000000000000000..1570bb962421123b090cf5fd8f7cebf224b7d110 --- /dev/null +++ b/testcases/cli-test/libappindicator/oe_test_libappindicator_install_and_remove_python2-appindicator.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-appindicator | grep -v \.src | grep python2-appindicator + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-appindicator" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-appindicator + CHECK_RESULT $? 0 0 "install python2-appindicator failed" + SLEEP_WAIT 1 + dnf remove -y python2-appindicator + CHECK_RESULT $? 0 0 "remove python2-appindicator failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-debuginfo.sh b/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2174c2d920dbca96522cf96de8985801a85edc6a --- /dev/null +++ b/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappstream-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappstream-glib-debuginfo | grep -v \.src | grep libappstream-glib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappstream-glib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappstream-glib-debuginfo + CHECK_RESULT $? 0 0 "install libappstream-glib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libappstream-glib-debuginfo + CHECK_RESULT $? 0 0 "remove libappstream-glib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-debugsource.sh b/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb5daf6c2726afcf50b19e99aa838090307b0668 --- /dev/null +++ b/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappstream-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappstream-glib-debugsource | grep -v \.src | grep libappstream-glib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappstream-glib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappstream-glib-debugsource + CHECK_RESULT $? 0 0 "install libappstream-glib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libappstream-glib-debugsource + CHECK_RESULT $? 0 0 "remove libappstream-glib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-devel.sh b/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b75121bdf2c2ee2535ecbce39d4a92d2338a18b2 --- /dev/null +++ b/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappstream-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappstream-glib-devel | grep -v \.src | grep libappstream-glib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappstream-glib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappstream-glib-devel + CHECK_RESULT $? 0 0 "install libappstream-glib-devel failed" + SLEEP_WAIT 1 + dnf remove -y libappstream-glib-devel + CHECK_RESULT $? 0 0 "remove libappstream-glib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-help.sh b/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2cb529a00f521fc236aeb615439e28ff8f259099 --- /dev/null +++ b/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappstream-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappstream-glib-help | grep -v \.src | grep libappstream-glib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappstream-glib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappstream-glib-help + CHECK_RESULT $? 0 0 "install libappstream-glib-help failed" + SLEEP_WAIT 1 + dnf remove -y libappstream-glib-help + CHECK_RESULT $? 0 0 "remove libappstream-glib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib.sh b/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib.sh new file mode 100644 index 0000000000000000000000000000000000000000..5469f8928c94ef060fd3937d9507dd5b0bec14b4 --- /dev/null +++ b/testcases/cli-test/libappstream-glib/oe_test_libappstream-glib_install_and_remove_libappstream-glib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libappstream-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libappstream-glib | grep -v \.src | grep libappstream-glib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libappstream-glib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libappstream-glib + CHECK_RESULT $? 0 0 "install libappstream-glib failed" + SLEEP_WAIT 1 + dnf remove -y libappstream-glib + CHECK_RESULT $? 0 0 "remove libappstream-glib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdcat.sh b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdcat.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c8e9e3fa9e94248f3c0dccc6c1dcf06af3e9ac6 --- /dev/null +++ b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdcat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libarchive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bsdcat | grep -v \.src | grep bsdcat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bsdcat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bsdcat + CHECK_RESULT $? 0 0 "install bsdcat failed" + SLEEP_WAIT 1 + dnf remove -y bsdcat + CHECK_RESULT $? 0 0 "remove bsdcat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdcpio.sh b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdcpio.sh new file mode 100644 index 0000000000000000000000000000000000000000..6aaa4c9b3a62084302e99e3b5384453102b37754 --- /dev/null +++ b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdcpio.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libarchive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bsdcpio | grep -v \.src | grep bsdcpio + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bsdcpio" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bsdcpio + CHECK_RESULT $? 0 0 "install bsdcpio failed" + SLEEP_WAIT 1 + dnf remove -y bsdcpio + CHECK_RESULT $? 0 0 "remove bsdcpio failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdtar.sh b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdtar.sh new file mode 100644 index 0000000000000000000000000000000000000000..82f4eb84b7d04e380c662db4712ec4b7ce4f0fc3 --- /dev/null +++ b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdtar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libarchive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bsdtar | grep -v \.src | grep bsdtar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bsdtar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bsdtar + CHECK_RESULT $? 0 0 "install bsdtar failed" + SLEEP_WAIT 1 + dnf remove -y bsdtar + CHECK_RESULT $? 0 0 "remove bsdtar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdunzip.sh b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdunzip.sh new file mode 100644 index 0000000000000000000000000000000000000000..9276fb15df63f49f66f740b53cda1014205d7301 --- /dev/null +++ b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_bsdunzip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libarchive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bsdunzip | grep -v \.src | grep bsdunzip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bsdunzip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bsdunzip + CHECK_RESULT $? 0 0 "install bsdunzip failed" + SLEEP_WAIT 1 + dnf remove -y bsdunzip + CHECK_RESULT $? 0 0 "remove bsdunzip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-debuginfo.sh b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b932f5c73e956818c007338c69f8d40994ef10d --- /dev/null +++ b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libarchive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libarchive-debuginfo | grep -v \.src | grep libarchive-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libarchive-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libarchive-debuginfo + CHECK_RESULT $? 0 0 "install libarchive-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libarchive-debuginfo + CHECK_RESULT $? 0 0 "remove libarchive-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-debugsource.sh b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..16522dddf2b639814e4c24b04f8d138a974ae52b --- /dev/null +++ b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libarchive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libarchive-debugsource | grep -v \.src | grep libarchive-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libarchive-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libarchive-debugsource + CHECK_RESULT $? 0 0 "install libarchive-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libarchive-debugsource + CHECK_RESULT $? 0 0 "remove libarchive-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-devel.sh b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d801385f0546bea50905e8950111610fbe7f484a --- /dev/null +++ b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libarchive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libarchive-devel | grep -v \.src | grep libarchive-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libarchive-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libarchive-devel + CHECK_RESULT $? 0 0 "install libarchive-devel failed" + SLEEP_WAIT 1 + dnf remove -y libarchive-devel + CHECK_RESULT $? 0 0 "remove libarchive-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-help.sh b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..73f38952474d55bc7dc9cb64363bb22547b0cf60 --- /dev/null +++ b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libarchive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libarchive-help | grep -v \.src | grep libarchive-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libarchive-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libarchive-help + CHECK_RESULT $? 0 0 "install libarchive-help failed" + SLEEP_WAIT 1 + dnf remove -y libarchive-help + CHECK_RESULT $? 0 0 "remove libarchive-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive.sh b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive.sh new file mode 100644 index 0000000000000000000000000000000000000000..47c4d7e9aad22052577a0dc0b8ea4c1bb2c25c61 --- /dev/null +++ b/testcases/cli-test/libarchive/oe_test_libarchive_install_and_remove_libarchive.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libarchive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libarchive | grep -v \.src | grep libarchive + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libarchive" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libarchive + CHECK_RESULT $? 0 0 "install libarchive failed" + SLEEP_WAIT 1 + dnf remove -y libarchive + CHECK_RESULT $? 0 0 "remove libarchive failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-debuginfo.sh b/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b5c0f27af08e047ca040d469e49208f116ba1af --- /dev/null +++ b/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libassuan +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libassuan-debuginfo | grep -v \.src | grep libassuan-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libassuan-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libassuan-debuginfo + CHECK_RESULT $? 0 0 "install libassuan-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libassuan-debuginfo + CHECK_RESULT $? 0 0 "remove libassuan-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-debugsource.sh b/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1af6ef6fb8d4113887aadbc6907d4b0b3e6c8dcb --- /dev/null +++ b/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libassuan +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libassuan-debugsource | grep -v \.src | grep libassuan-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libassuan-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libassuan-debugsource + CHECK_RESULT $? 0 0 "install libassuan-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libassuan-debugsource + CHECK_RESULT $? 0 0 "remove libassuan-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-devel.sh b/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c7d65ea37fe77cd417c12c07dc2afb956dfb325 --- /dev/null +++ b/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libassuan +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libassuan-devel | grep -v \.src | grep libassuan-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libassuan-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libassuan-devel + CHECK_RESULT $? 0 0 "install libassuan-devel failed" + SLEEP_WAIT 1 + dnf remove -y libassuan-devel + CHECK_RESULT $? 0 0 "remove libassuan-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-help.sh b/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e1f64c137f5a58a6bc0dd9d6c47e6c33e735a43c --- /dev/null +++ b/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libassuan +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libassuan-help | grep -v \.src | grep libassuan-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libassuan-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libassuan-help + CHECK_RESULT $? 0 0 "install libassuan-help failed" + SLEEP_WAIT 1 + dnf remove -y libassuan-help + CHECK_RESULT $? 0 0 "remove libassuan-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan.sh b/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan.sh new file mode 100644 index 0000000000000000000000000000000000000000..83ea970820ed045139b0143e0582d42e90027cc2 --- /dev/null +++ b/testcases/cli-test/libassuan/oe_test_libassuan_install_and_remove_libassuan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libassuan +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libassuan | grep -v \.src | grep libassuan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libassuan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libassuan + CHECK_RESULT $? 0 0 "install libassuan failed" + SLEEP_WAIT 1 + dnf remove -y libassuan + CHECK_RESULT $? 0 0 "remove libassuan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-debuginfo.sh b/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4058d370589ba0f7a82fc41e94643566bff9c5c8 --- /dev/null +++ b/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libasyncns +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libasyncns-debuginfo | grep -v \.src | grep libasyncns-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libasyncns-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libasyncns-debuginfo + CHECK_RESULT $? 0 0 "install libasyncns-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libasyncns-debuginfo + CHECK_RESULT $? 0 0 "remove libasyncns-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-debugsource.sh b/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f58285d03e150c8adfbf2f9539fd57e95796d87 --- /dev/null +++ b/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libasyncns +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libasyncns-debugsource | grep -v \.src | grep libasyncns-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libasyncns-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libasyncns-debugsource + CHECK_RESULT $? 0 0 "install libasyncns-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libasyncns-debugsource + CHECK_RESULT $? 0 0 "remove libasyncns-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-devel.sh b/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b9ace95769d9a2a0d719fd5c1000cf0525fb986 --- /dev/null +++ b/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libasyncns +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libasyncns-devel | grep -v \.src | grep libasyncns-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libasyncns-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libasyncns-devel + CHECK_RESULT $? 0 0 "install libasyncns-devel failed" + SLEEP_WAIT 1 + dnf remove -y libasyncns-devel + CHECK_RESULT $? 0 0 "remove libasyncns-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-help.sh b/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0661f40ea6d4a942c36d06a3c9fd47ff9509686c --- /dev/null +++ b/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libasyncns +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libasyncns-help | grep -v \.src | grep libasyncns-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libasyncns-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libasyncns-help + CHECK_RESULT $? 0 0 "install libasyncns-help failed" + SLEEP_WAIT 1 + dnf remove -y libasyncns-help + CHECK_RESULT $? 0 0 "remove libasyncns-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns.sh b/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns.sh new file mode 100644 index 0000000000000000000000000000000000000000..aacb537f5fe361df861c3587f534ad1896501a37 --- /dev/null +++ b/testcases/cli-test/libasyncns/oe_test_libasyncns_install_and_remove_libasyncns.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libasyncns +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libasyncns | grep -v \.src | grep libasyncns + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libasyncns" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libasyncns + CHECK_RESULT $? 0 0 "install libasyncns failed" + SLEEP_WAIT 1 + dnf remove -y libasyncns + CHECK_RESULT $? 0 0 "remove libasyncns failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-debuginfo.sh b/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..02fcf15dd9c71e9989bfaa270648df99ca5f4fcc --- /dev/null +++ b/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libatasmart +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatasmart-debuginfo | grep -v \.src | grep libatasmart-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatasmart-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatasmart-debuginfo + CHECK_RESULT $? 0 0 "install libatasmart-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libatasmart-debuginfo + CHECK_RESULT $? 0 0 "remove libatasmart-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-debugsource.sh b/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..335af6fcb2f1591bcc74c4abb2718e9d1fb829e3 --- /dev/null +++ b/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libatasmart +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatasmart-debugsource | grep -v \.src | grep libatasmart-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatasmart-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatasmart-debugsource + CHECK_RESULT $? 0 0 "install libatasmart-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libatasmart-debugsource + CHECK_RESULT $? 0 0 "remove libatasmart-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-devel.sh b/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5028aa5e7b38e4bc397d45df1165a5f92569b28c --- /dev/null +++ b/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libatasmart +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatasmart-devel | grep -v \.src | grep libatasmart-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatasmart-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatasmart-devel + CHECK_RESULT $? 0 0 "install libatasmart-devel failed" + SLEEP_WAIT 1 + dnf remove -y libatasmart-devel + CHECK_RESULT $? 0 0 "remove libatasmart-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-help.sh b/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..643bf1c93bb2d967b0b8496681add01e9f98e9e5 --- /dev/null +++ b/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libatasmart +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatasmart-help | grep -v \.src | grep libatasmart-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatasmart-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatasmart-help + CHECK_RESULT $? 0 0 "install libatasmart-help failed" + SLEEP_WAIT 1 + dnf remove -y libatasmart-help + CHECK_RESULT $? 0 0 "remove libatasmart-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart.sh b/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart.sh new file mode 100644 index 0000000000000000000000000000000000000000..120c6b401a63d769b3ac4583af2d28370e260772 --- /dev/null +++ b/testcases/cli-test/libatasmart/oe_test_libatasmart_install_and_remove_libatasmart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libatasmart +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libatasmart | grep -v \.src | grep libatasmart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libatasmart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libatasmart + CHECK_RESULT $? 0 0 "install libatasmart failed" + SLEEP_WAIT 1 + dnf remove -y libatasmart + CHECK_RESULT $? 0 0 "remove libatasmart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-debuginfo.sh b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0239a102ba6787cdc5037633e7c93b8e0e9778bd --- /dev/null +++ b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libblockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libblockdev-debuginfo | grep -v \.src | grep libblockdev-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libblockdev-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libblockdev-debuginfo + CHECK_RESULT $? 0 0 "install libblockdev-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libblockdev-debuginfo + CHECK_RESULT $? 0 0 "remove libblockdev-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-debugsource.sh b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5cffc9fc2103a40a16d9417e4c35cf2fae7eed61 --- /dev/null +++ b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libblockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libblockdev-debugsource | grep -v \.src | grep libblockdev-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libblockdev-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libblockdev-debugsource + CHECK_RESULT $? 0 0 "install libblockdev-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libblockdev-debugsource + CHECK_RESULT $? 0 0 "remove libblockdev-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-devel.sh b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..614a4dccac66ea0690da2671fc9ca10755051591 --- /dev/null +++ b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libblockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libblockdev-devel | grep -v \.src | grep libblockdev-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libblockdev-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libblockdev-devel + CHECK_RESULT $? 0 0 "install libblockdev-devel failed" + SLEEP_WAIT 1 + dnf remove -y libblockdev-devel + CHECK_RESULT $? 0 0 "remove libblockdev-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-tools.sh b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..d14221d40c83e7d3ad690e4eaaf348a51869ff1c --- /dev/null +++ b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libblockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libblockdev-tools | grep -v \.src | grep libblockdev-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libblockdev-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libblockdev-tools + CHECK_RESULT $? 0 0 "install libblockdev-tools failed" + SLEEP_WAIT 1 + dnf remove -y libblockdev-tools + CHECK_RESULT $? 0 0 "remove libblockdev-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev.sh b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev.sh new file mode 100644 index 0000000000000000000000000000000000000000..3750a37003105cbf3a13159f6b86b3fd2920859c --- /dev/null +++ b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_libblockdev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libblockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libblockdev | grep -v \.src | grep libblockdev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libblockdev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libblockdev + CHECK_RESULT $? 0 0 "install libblockdev failed" + SLEEP_WAIT 1 + dnf remove -y libblockdev + CHECK_RESULT $? 0 0 "remove libblockdev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_python2-blockdev.sh b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_python2-blockdev.sh new file mode 100644 index 0000000000000000000000000000000000000000..765b49b420085c2a7a4ea489a714f0a864795193 --- /dev/null +++ b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_python2-blockdev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libblockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-blockdev | grep -v \.src | grep python2-blockdev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-blockdev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-blockdev + CHECK_RESULT $? 0 0 "install python2-blockdev failed" + SLEEP_WAIT 1 + dnf remove -y python2-blockdev + CHECK_RESULT $? 0 0 "remove python2-blockdev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_python3-blockdev.sh b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_python3-blockdev.sh new file mode 100644 index 0000000000000000000000000000000000000000..afea2893a96cf320d4a567ad246a5928ddd6acb8 --- /dev/null +++ b/testcases/cli-test/libblockdev/oe_test_libblockdev_install_and_remove_python3-blockdev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libblockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-blockdev | grep -v \.src | grep python3-blockdev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-blockdev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-blockdev + CHECK_RESULT $? 0 0 "install python3-blockdev failed" + SLEEP_WAIT 1 + dnf remove -y python3-blockdev + CHECK_RESULT $? 0 0 "remove python3-blockdev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-debuginfo.sh b/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7c1d992c9e7b6fff79718066b460b2880d59b7b --- /dev/null +++ b/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbpf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbpf-debuginfo | grep -v \.src | grep libbpf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbpf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbpf-debuginfo + CHECK_RESULT $? 0 0 "install libbpf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libbpf-debuginfo + CHECK_RESULT $? 0 0 "remove libbpf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-debugsource.sh b/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4d0bdbc9af94f2008953e9107480353ca0fd1ec --- /dev/null +++ b/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbpf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbpf-debugsource | grep -v \.src | grep libbpf-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbpf-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbpf-debugsource + CHECK_RESULT $? 0 0 "install libbpf-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libbpf-debugsource + CHECK_RESULT $? 0 0 "remove libbpf-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-devel.sh b/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..02c4437c3a6de6e7f9bfd3c84509e2cc50654467 --- /dev/null +++ b/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbpf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbpf-devel | grep -v \.src | grep libbpf-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbpf-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbpf-devel + CHECK_RESULT $? 0 0 "install libbpf-devel failed" + SLEEP_WAIT 1 + dnf remove -y libbpf-devel + CHECK_RESULT $? 0 0 "remove libbpf-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-static.sh b/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f0e31c03c5faecb1c182f78b6123b993af18b80 --- /dev/null +++ b/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbpf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbpf-static | grep -v \.src | grep libbpf-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbpf-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbpf-static + CHECK_RESULT $? 0 0 "install libbpf-static failed" + SLEEP_WAIT 1 + dnf remove -y libbpf-static + CHECK_RESULT $? 0 0 "remove libbpf-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf.sh b/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf.sh new file mode 100644 index 0000000000000000000000000000000000000000..0594f7725312c914ecf073b52104a7573b5b9f90 --- /dev/null +++ b/testcases/cli-test/libbpf/oe_test_libbpf_install_and_remove_libbpf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbpf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbpf | grep -v \.src | grep libbpf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbpf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbpf + CHECK_RESULT $? 0 0 "install libbpf failed" + SLEEP_WAIT 1 + dnf remove -y libbpf + CHECK_RESULT $? 0 0 "remove libbpf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-debuginfo.sh b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0da598b7d4401d50090845fb113545879a8efc31 --- /dev/null +++ b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbytesize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbytesize-debuginfo | grep -v \.src | grep libbytesize-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbytesize-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbytesize-debuginfo + CHECK_RESULT $? 0 0 "install libbytesize-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libbytesize-debuginfo + CHECK_RESULT $? 0 0 "remove libbytesize-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-debugsource.sh b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ada4ccafc2c0419c41b28b6b071040eee649f190 --- /dev/null +++ b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbytesize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbytesize-debugsource | grep -v \.src | grep libbytesize-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbytesize-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbytesize-debugsource + CHECK_RESULT $? 0 0 "install libbytesize-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libbytesize-debugsource + CHECK_RESULT $? 0 0 "remove libbytesize-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-devel.sh b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a292f716e0ccf77a153247bed51b8768bdadb33 --- /dev/null +++ b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbytesize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbytesize-devel | grep -v \.src | grep libbytesize-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbytesize-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbytesize-devel + CHECK_RESULT $? 0 0 "install libbytesize-devel failed" + SLEEP_WAIT 1 + dnf remove -y libbytesize-devel + CHECK_RESULT $? 0 0 "remove libbytesize-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-help.sh b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6952ff1520917f19800b51a23e9471bb62bc661 --- /dev/null +++ b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbytesize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbytesize-help | grep -v \.src | grep libbytesize-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbytesize-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbytesize-help + CHECK_RESULT $? 0 0 "install libbytesize-help failed" + SLEEP_WAIT 1 + dnf remove -y libbytesize-help + CHECK_RESULT $? 0 0 "remove libbytesize-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-tools.sh b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..175498aa73d6899535aa1598f3a37e9709ec6d8c --- /dev/null +++ b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbytesize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbytesize-tools | grep -v \.src | grep libbytesize-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbytesize-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbytesize-tools + CHECK_RESULT $? 0 0 "install libbytesize-tools failed" + SLEEP_WAIT 1 + dnf remove -y libbytesize-tools + CHECK_RESULT $? 0 0 "remove libbytesize-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize.sh b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize.sh new file mode 100644 index 0000000000000000000000000000000000000000..29c5bbeb57e710ab21f0f5ce0dd6246da2ed7d01 --- /dev/null +++ b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_libbytesize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbytesize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libbytesize | grep -v \.src | grep libbytesize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libbytesize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libbytesize + CHECK_RESULT $? 0 0 "install libbytesize failed" + SLEEP_WAIT 1 + dnf remove -y libbytesize + CHECK_RESULT $? 0 0 "remove libbytesize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_python2-bytesize.sh b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_python2-bytesize.sh new file mode 100644 index 0000000000000000000000000000000000000000..843c743e34750be5c0590a84f777382be61049fd --- /dev/null +++ b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_python2-bytesize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbytesize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-bytesize | grep -v \.src | grep python2-bytesize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-bytesize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-bytesize + CHECK_RESULT $? 0 0 "install python2-bytesize failed" + SLEEP_WAIT 1 + dnf remove -y python2-bytesize + CHECK_RESULT $? 0 0 "remove python2-bytesize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_python3-bytesize.sh b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_python3-bytesize.sh new file mode 100644 index 0000000000000000000000000000000000000000..127e8d270b23a830802cd100ce06f47b5f39533f --- /dev/null +++ b/testcases/cli-test/libbytesize/oe_test_libbytesize_install_and_remove_python3-bytesize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libbytesize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-bytesize | grep -v \.src | grep python3-bytesize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-bytesize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-bytesize + CHECK_RESULT $? 0 0 "install python3-bytesize failed" + SLEEP_WAIT 1 + dnf remove -y python3-bytesize + CHECK_RESULT $? 0 0 "remove python3-bytesize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-debuginfo.sh b/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb043191281c88848413a4ab7c8c5996d1c83b83 --- /dev/null +++ b/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcacard +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcacard-debuginfo | grep -v \.src | grep libcacard-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcacard-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcacard-debuginfo + CHECK_RESULT $? 0 0 "install libcacard-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libcacard-debuginfo + CHECK_RESULT $? 0 0 "remove libcacard-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-debugsource.sh b/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..16d20a1c0f83ed67f6492d4fb1037d639ba85e25 --- /dev/null +++ b/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcacard +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcacard-debugsource | grep -v \.src | grep libcacard-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcacard-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcacard-debugsource + CHECK_RESULT $? 0 0 "install libcacard-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libcacard-debugsource + CHECK_RESULT $? 0 0 "remove libcacard-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-devel.sh b/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a98383eb303aa4a7cb5c2c70286dc79e20c4b59c --- /dev/null +++ b/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcacard +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcacard-devel | grep -v \.src | grep libcacard-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcacard-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcacard-devel + CHECK_RESULT $? 0 0 "install libcacard-devel failed" + SLEEP_WAIT 1 + dnf remove -y libcacard-devel + CHECK_RESULT $? 0 0 "remove libcacard-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-help.sh b/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed2d1b605c7f06b91a45261154d0396f24d22328 --- /dev/null +++ b/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcacard +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcacard-help | grep -v \.src | grep libcacard-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcacard-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcacard-help + CHECK_RESULT $? 0 0 "install libcacard-help failed" + SLEEP_WAIT 1 + dnf remove -y libcacard-help + CHECK_RESULT $? 0 0 "remove libcacard-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard.sh b/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccfed3a0c035a4434ee67ec719d9de4d7dd512cd --- /dev/null +++ b/testcases/cli-test/libcacard/oe_test_libcacard_install_and_remove_libcacard.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcacard +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcacard | grep -v \.src | grep libcacard + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcacard" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcacard + CHECK_RESULT $? 0 0 "install libcacard failed" + SLEEP_WAIT 1 + dnf remove -y libcacard + CHECK_RESULT $? 0 0 "remove libcacard failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-debuginfo.sh b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..294c7b924cb9473957820b2c3b83438583147875 --- /dev/null +++ b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcanberra +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcanberra-debuginfo | grep -v \.src | grep libcanberra-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcanberra-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcanberra-debuginfo + CHECK_RESULT $? 0 0 "install libcanberra-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libcanberra-debuginfo + CHECK_RESULT $? 0 0 "remove libcanberra-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-debugsource.sh b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7fbee4477a45ab45caac6bbcf7c12c2150e6c512 --- /dev/null +++ b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcanberra +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcanberra-debugsource | grep -v \.src | grep libcanberra-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcanberra-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcanberra-debugsource + CHECK_RESULT $? 0 0 "install libcanberra-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libcanberra-debugsource + CHECK_RESULT $? 0 0 "remove libcanberra-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-devel.sh b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..20b072c50c22f4642b5ba0d3a3f3f55ca4525014 --- /dev/null +++ b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcanberra +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcanberra-devel | grep -v \.src | grep libcanberra-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcanberra-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcanberra-devel + CHECK_RESULT $? 0 0 "install libcanberra-devel failed" + SLEEP_WAIT 1 + dnf remove -y libcanberra-devel + CHECK_RESULT $? 0 0 "remove libcanberra-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-gtk2.sh b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-gtk2.sh new file mode 100644 index 0000000000000000000000000000000000000000..11d6e0d782954d19a12edff79d862645439fcd4f --- /dev/null +++ b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-gtk2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcanberra +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcanberra-gtk2 | grep -v \.src | grep libcanberra-gtk2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcanberra-gtk2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcanberra-gtk2 + CHECK_RESULT $? 0 0 "install libcanberra-gtk2 failed" + SLEEP_WAIT 1 + dnf remove -y libcanberra-gtk2 + CHECK_RESULT $? 0 0 "remove libcanberra-gtk2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-gtk3.sh b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-gtk3.sh new file mode 100644 index 0000000000000000000000000000000000000000..a642a3fba7d6d860b4372002c92fe2b448856ee7 --- /dev/null +++ b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-gtk3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcanberra +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcanberra-gtk3 | grep -v \.src | grep libcanberra-gtk3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcanberra-gtk3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcanberra-gtk3 + CHECK_RESULT $? 0 0 "install libcanberra-gtk3 failed" + SLEEP_WAIT 1 + dnf remove -y libcanberra-gtk3 + CHECK_RESULT $? 0 0 "remove libcanberra-gtk3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-help.sh b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a73217a05552cb5a594d4d90e1c4ee856f8b6c6b --- /dev/null +++ b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcanberra +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcanberra-help | grep -v \.src | grep libcanberra-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcanberra-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcanberra-help + CHECK_RESULT $? 0 0 "install libcanberra-help failed" + SLEEP_WAIT 1 + dnf remove -y libcanberra-help + CHECK_RESULT $? 0 0 "remove libcanberra-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra.sh b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra.sh new file mode 100644 index 0000000000000000000000000000000000000000..67275b5186db24c49401d1bee4e70cf566d15394 --- /dev/null +++ b/testcases/cli-test/libcanberra/oe_test_libcanberra_install_and_remove_libcanberra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcanberra +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcanberra | grep -v \.src | grep libcanberra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcanberra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcanberra + CHECK_RESULT $? 0 0 "install libcanberra failed" + SLEEP_WAIT 1 + dnf remove -y libcanberra + CHECK_RESULT $? 0 0 "remove libcanberra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-debuginfo.sh b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f44576c9ef2127e4adc2ce5ca52e5f2644a16cc --- /dev/null +++ b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap-ng-debuginfo | grep -v \.src | grep libcap-ng-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap-ng-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap-ng-debuginfo + CHECK_RESULT $? 0 0 "install libcap-ng-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libcap-ng-debuginfo + CHECK_RESULT $? 0 0 "remove libcap-ng-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-debugsource.sh b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..19c0ec5aaf4e8384ed5df7f04803b6298b0689a6 --- /dev/null +++ b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap-ng-debugsource | grep -v \.src | grep libcap-ng-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap-ng-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap-ng-debugsource + CHECK_RESULT $? 0 0 "install libcap-ng-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libcap-ng-debugsource + CHECK_RESULT $? 0 0 "remove libcap-ng-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-devel.sh b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..265d622fac60347db68f9175167614687e1ec77d --- /dev/null +++ b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap-ng-devel | grep -v \.src | grep libcap-ng-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap-ng-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap-ng-devel + CHECK_RESULT $? 0 0 "install libcap-ng-devel failed" + SLEEP_WAIT 1 + dnf remove -y libcap-ng-devel + CHECK_RESULT $? 0 0 "remove libcap-ng-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-help.sh b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2d6a8ab4f30b3e211953e48d5cf283a872c6b3e --- /dev/null +++ b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap-ng-help | grep -v \.src | grep libcap-ng-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap-ng-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap-ng-help + CHECK_RESULT $? 0 0 "install libcap-ng-help failed" + SLEEP_WAIT 1 + dnf remove -y libcap-ng-help + CHECK_RESULT $? 0 0 "remove libcap-ng-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-python3.sh b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-python3.sh new file mode 100644 index 0000000000000000000000000000000000000000..397fa9c11a307e0a1b8844bdb538b01d4b19de77 --- /dev/null +++ b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng-python3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap-ng-python3 | grep -v \.src | grep libcap-ng-python3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap-ng-python3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap-ng-python3 + CHECK_RESULT $? 0 0 "install libcap-ng-python3 failed" + SLEEP_WAIT 1 + dnf remove -y libcap-ng-python3 + CHECK_RESULT $? 0 0 "remove libcap-ng-python3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng.sh b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng.sh new file mode 100644 index 0000000000000000000000000000000000000000..00057f17ba2f756801843cf3a57399f3b5b34245 --- /dev/null +++ b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_libcap-ng.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap-ng | grep -v \.src | grep libcap-ng + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap-ng" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap-ng + CHECK_RESULT $? 0 0 "install libcap-ng failed" + SLEEP_WAIT 1 + dnf remove -y libcap-ng + CHECK_RESULT $? 0 0 "remove libcap-ng failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_python2-libcap-ng.sh b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_python2-libcap-ng.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d34cbe84d704732221424e29731caa3d48bffaf --- /dev/null +++ b/testcases/cli-test/libcap-ng/oe_test_libcap-ng_install_and_remove_python2-libcap-ng.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libcap-ng | grep -v \.src | grep python2-libcap-ng + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libcap-ng" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libcap-ng + CHECK_RESULT $? 0 0 "install python2-libcap-ng failed" + SLEEP_WAIT 1 + dnf remove -y python2-libcap-ng + CHECK_RESULT $? 0 0 "remove python2-libcap-ng failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-debuginfo.sh b/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9755f63c63f9f9d0a29192b1e1ed41ea14c2f39 --- /dev/null +++ b/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap-debuginfo | grep -v \.src | grep libcap-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap-debuginfo + CHECK_RESULT $? 0 0 "install libcap-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libcap-debuginfo + CHECK_RESULT $? 0 0 "remove libcap-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-debugsource.sh b/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4d80cc7c82255de51b1f5e2041693d1ded2e882 --- /dev/null +++ b/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap-debugsource | grep -v \.src | grep libcap-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap-debugsource + CHECK_RESULT $? 0 0 "install libcap-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libcap-debugsource + CHECK_RESULT $? 0 0 "remove libcap-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-devel.sh b/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a6105aa31102b675242da40b6ca7d0915d7e01d --- /dev/null +++ b/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap-devel | grep -v \.src | grep libcap-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap-devel + CHECK_RESULT $? 0 0 "install libcap-devel failed" + SLEEP_WAIT 1 + dnf remove -y libcap-devel + CHECK_RESULT $? 0 0 "remove libcap-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-help.sh b/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f72190988bf9c0fb6491906660050aa43d7e0fcf --- /dev/null +++ b/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap-help | grep -v \.src | grep libcap-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap-help + CHECK_RESULT $? 0 0 "install libcap-help failed" + SLEEP_WAIT 1 + dnf remove -y libcap-help + CHECK_RESULT $? 0 0 "remove libcap-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap.sh b/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap.sh new file mode 100644 index 0000000000000000000000000000000000000000..811cde8c55d622f5d1f3106eee3c72941a12e453 --- /dev/null +++ b/testcases/cli-test/libcap/oe_test_libcap_install_and_remove_libcap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcap | grep -v \.src | grep libcap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcap + CHECK_RESULT $? 0 0 "install libcap failed" + SLEEP_WAIT 1 + dnf remove -y libcap + CHECK_RESULT $? 0 0 "remove libcap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor-debuginfo.sh b/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a834fb20120e11e46b7af1896c08841b1939577 --- /dev/null +++ b/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcbor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcbor-debuginfo | grep -v \.src | grep libcbor-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcbor-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcbor-debuginfo + CHECK_RESULT $? 0 0 "install libcbor-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libcbor-debuginfo + CHECK_RESULT $? 0 0 "remove libcbor-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor-debugsource.sh b/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5769709687fe8dd5a8824e66ba305c5dde06b4dc --- /dev/null +++ b/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcbor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcbor-debugsource | grep -v \.src | grep libcbor-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcbor-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcbor-debugsource + CHECK_RESULT $? 0 0 "install libcbor-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libcbor-debugsource + CHECK_RESULT $? 0 0 "remove libcbor-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor-devel.sh b/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7eb89ecc8316fd1bdcf9d33b8ddd327f0a2417b9 --- /dev/null +++ b/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcbor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcbor-devel | grep -v \.src | grep libcbor-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcbor-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcbor-devel + CHECK_RESULT $? 0 0 "install libcbor-devel failed" + SLEEP_WAIT 1 + dnf remove -y libcbor-devel + CHECK_RESULT $? 0 0 "remove libcbor-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor.sh b/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor.sh new file mode 100644 index 0000000000000000000000000000000000000000..7bf0085249407e0cdf097e4ed650de3cd2387055 --- /dev/null +++ b/testcases/cli-test/libcbor/oe_test_libcbor_install_and_remove_libcbor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcbor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcbor | grep -v \.src | grep libcbor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcbor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcbor + CHECK_RESULT $? 0 0 "install libcbor failed" + SLEEP_WAIT 1 + dnf remove -y libcbor + CHECK_RESULT $? 0 0 "remove libcbor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-debuginfo.sh b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..54f9e86f121c83e00bb23327f0e934718fac232b --- /dev/null +++ b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcomps +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcomps-debuginfo | grep -v \.src | grep libcomps-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcomps-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcomps-debuginfo + CHECK_RESULT $? 0 0 "install libcomps-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libcomps-debuginfo + CHECK_RESULT $? 0 0 "remove libcomps-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-debugsource.sh b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a561288a3a8a922e3d5df5898209dc4ff4119998 --- /dev/null +++ b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcomps +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcomps-debugsource | grep -v \.src | grep libcomps-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcomps-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcomps-debugsource + CHECK_RESULT $? 0 0 "install libcomps-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libcomps-debugsource + CHECK_RESULT $? 0 0 "remove libcomps-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-devel.sh b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec1fcad72067f48be351fb43ca828353a11262cd --- /dev/null +++ b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcomps +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcomps-devel | grep -v \.src | grep libcomps-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcomps-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcomps-devel + CHECK_RESULT $? 0 0 "install libcomps-devel failed" + SLEEP_WAIT 1 + dnf remove -y libcomps-devel + CHECK_RESULT $? 0 0 "remove libcomps-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-help.sh b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cf762e87048ab5647512f79cc84bca4961ea9e2 --- /dev/null +++ b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcomps +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcomps-help | grep -v \.src | grep libcomps-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcomps-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcomps-help + CHECK_RESULT $? 0 0 "install libcomps-help failed" + SLEEP_WAIT 1 + dnf remove -y libcomps-help + CHECK_RESULT $? 0 0 "remove libcomps-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps.sh b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps.sh new file mode 100644 index 0000000000000000000000000000000000000000..ffce0740eee9debc98b216e91fdfd47a27ee37c4 --- /dev/null +++ b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_libcomps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcomps +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libcomps | grep -v \.src | grep libcomps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libcomps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libcomps + CHECK_RESULT $? 0 0 "install libcomps failed" + SLEEP_WAIT 1 + dnf remove -y libcomps + CHECK_RESULT $? 0 0 "remove libcomps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_python2-libcomps.sh b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_python2-libcomps.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c64aced2770155dbfa070e9446cdd5f7c19f036 --- /dev/null +++ b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_python2-libcomps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcomps +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libcomps | grep -v \.src | grep python2-libcomps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libcomps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libcomps + CHECK_RESULT $? 0 0 "install python2-libcomps failed" + SLEEP_WAIT 1 + dnf remove -y python2-libcomps + CHECK_RESULT $? 0 0 "remove python2-libcomps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_python3-libcomps.sh b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_python3-libcomps.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d2c74b3dfb3e86f3b571876934634026ce4b42f --- /dev/null +++ b/testcases/cli-test/libcomps/oe_test_libcomps_install_and_remove_python3-libcomps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libcomps +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libcomps | grep -v \.src | grep python3-libcomps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libcomps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libcomps + CHECK_RESULT $? 0 0 "install python3-libcomps failed" + SLEEP_WAIT 1 + dnf remove -y python3-libcomps + CHECK_RESULT $? 0 0 "remove python3-libcomps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig-debuginfo.sh b/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a019f689b880bd187764706aad982ac9d29fd8a1 --- /dev/null +++ b/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libconfig-debuginfo | grep -v \.src | grep libconfig-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libconfig-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libconfig-debuginfo + CHECK_RESULT $? 0 0 "install libconfig-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libconfig-debuginfo + CHECK_RESULT $? 0 0 "remove libconfig-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig-debugsource.sh b/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d43904d5285a1e23cebc39ab4e021b7ca395184 --- /dev/null +++ b/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libconfig-debugsource | grep -v \.src | grep libconfig-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libconfig-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libconfig-debugsource + CHECK_RESULT $? 0 0 "install libconfig-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libconfig-debugsource + CHECK_RESULT $? 0 0 "remove libconfig-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig-devel.sh b/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..aca800e836d17c485efe77e9837b6061ce11bfd2 --- /dev/null +++ b/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libconfig-devel | grep -v \.src | grep libconfig-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libconfig-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libconfig-devel + CHECK_RESULT $? 0 0 "install libconfig-devel failed" + SLEEP_WAIT 1 + dnf remove -y libconfig-devel + CHECK_RESULT $? 0 0 "remove libconfig-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig.sh b/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef479df8cb5693c4051ac494ebf50890e64f0b18 --- /dev/null +++ b/testcases/cli-test/libconfig/oe_test_libconfig_install_and_remove_libconfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libconfig | grep -v \.src | grep libconfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libconfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libconfig + CHECK_RESULT $? 0 0 "install libconfig failed" + SLEEP_WAIT 1 + dnf remove -y libconfig + CHECK_RESULT $? 0 0 "remove libconfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-debuginfo.sh b/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9aaab3dbb09feea506dc2e4ce7448434aefcd54d --- /dev/null +++ b/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdaemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdaemon-debuginfo | grep -v \.src | grep libdaemon-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdaemon-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdaemon-debuginfo + CHECK_RESULT $? 0 0 "install libdaemon-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libdaemon-debuginfo + CHECK_RESULT $? 0 0 "remove libdaemon-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-debugsource.sh b/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..96e805c43e2b5d3565d1738bfd26f2d310752015 --- /dev/null +++ b/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdaemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdaemon-debugsource | grep -v \.src | grep libdaemon-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdaemon-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdaemon-debugsource + CHECK_RESULT $? 0 0 "install libdaemon-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libdaemon-debugsource + CHECK_RESULT $? 0 0 "remove libdaemon-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-devel.sh b/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8754ae369f182048e2971d959b998e8b2a39952 --- /dev/null +++ b/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdaemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdaemon-devel | grep -v \.src | grep libdaemon-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdaemon-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdaemon-devel + CHECK_RESULT $? 0 0 "install libdaemon-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdaemon-devel + CHECK_RESULT $? 0 0 "remove libdaemon-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-help.sh b/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..59cb8b40f43fa6b14b21347c4e151eb0801cb0cc --- /dev/null +++ b/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdaemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdaemon-help | grep -v \.src | grep libdaemon-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdaemon-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdaemon-help + CHECK_RESULT $? 0 0 "install libdaemon-help failed" + SLEEP_WAIT 1 + dnf remove -y libdaemon-help + CHECK_RESULT $? 0 0 "remove libdaemon-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon.sh b/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon.sh new file mode 100644 index 0000000000000000000000000000000000000000..44914672e39db10995974bc51ec69b85b6aee7a2 --- /dev/null +++ b/testcases/cli-test/libdaemon/oe_test_libdaemon_install_and_remove_libdaemon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdaemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdaemon | grep -v \.src | grep libdaemon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdaemon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdaemon + CHECK_RESULT $? 0 0 "install libdaemon failed" + SLEEP_WAIT 1 + dnf remove -y libdaemon + CHECK_RESULT $? 0 0 "remove libdaemon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-debuginfo.sh b/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1002d8907adbd9c29455ee3937c8e5318dde8f21 --- /dev/null +++ b/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdatrie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdatrie-debuginfo | grep -v \.src | grep libdatrie-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdatrie-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdatrie-debuginfo + CHECK_RESULT $? 0 0 "install libdatrie-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libdatrie-debuginfo + CHECK_RESULT $? 0 0 "remove libdatrie-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-debugsource.sh b/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e662e83c5706e76d1ff364e98e94a6a2a1846349 --- /dev/null +++ b/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdatrie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdatrie-debugsource | grep -v \.src | grep libdatrie-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdatrie-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdatrie-debugsource + CHECK_RESULT $? 0 0 "install libdatrie-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libdatrie-debugsource + CHECK_RESULT $? 0 0 "remove libdatrie-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-devel.sh b/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb94f75f90a1fbc400231ed391577fb22296ce38 --- /dev/null +++ b/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdatrie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdatrie-devel | grep -v \.src | grep libdatrie-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdatrie-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdatrie-devel + CHECK_RESULT $? 0 0 "install libdatrie-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdatrie-devel + CHECK_RESULT $? 0 0 "remove libdatrie-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-help.sh b/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7879c9d82251990167af2f83344194beb31efef1 --- /dev/null +++ b/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdatrie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdatrie-help | grep -v \.src | grep libdatrie-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdatrie-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdatrie-help + CHECK_RESULT $? 0 0 "install libdatrie-help failed" + SLEEP_WAIT 1 + dnf remove -y libdatrie-help + CHECK_RESULT $? 0 0 "remove libdatrie-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie.sh b/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd792cdfb5745f7801f9f917e70a52ce63115607 --- /dev/null +++ b/testcases/cli-test/libdatrie/oe_test_libdatrie_install_and_remove_libdatrie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdatrie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdatrie | grep -v \.src | grep libdatrie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdatrie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdatrie + CHECK_RESULT $? 0 0 "install libdatrie failed" + SLEEP_WAIT 1 + dnf remove -y libdatrie + CHECK_RESULT $? 0 0 "remove libdatrie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-debuginfo.sh b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b10d1ee164c28dad9419d5f7e0eef7d9912cb736 --- /dev/null +++ b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbi-debuginfo | grep -v \.src | grep libdbi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbi-debuginfo + CHECK_RESULT $? 0 0 "install libdbi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libdbi-debuginfo + CHECK_RESULT $? 0 0 "remove libdbi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-debugsource.sh b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c831daf5c94b6193cb9663266a436d171e3de9bc --- /dev/null +++ b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbi-debugsource | grep -v \.src | grep libdbi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbi-debugsource + CHECK_RESULT $? 0 0 "install libdbi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libdbi-debugsource + CHECK_RESULT $? 0 0 "remove libdbi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-devel.sh b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe820a0e7cc3aba8af5d95cbd1eac49a2659b8e7 --- /dev/null +++ b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbi-devel | grep -v \.src | grep libdbi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbi-devel + CHECK_RESULT $? 0 0 "install libdbi-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdbi-devel + CHECK_RESULT $? 0 0 "remove libdbi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-doc.sh b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa821c68569fdb28fa1b83a2f2875c3a0aa55168 --- /dev/null +++ b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbi-doc | grep -v \.src | grep libdbi-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbi-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbi-doc + CHECK_RESULT $? 0 0 "install libdbi-doc failed" + SLEEP_WAIT 1 + dnf remove -y libdbi-doc + CHECK_RESULT $? 0 0 "remove libdbi-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-help.sh b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..058106ee6699338bcdf98f5b6efe5c27bf16a8e7 --- /dev/null +++ b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbi-help | grep -v \.src | grep libdbi-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbi-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbi-help + CHECK_RESULT $? 0 0 "install libdbi-help failed" + SLEEP_WAIT 1 + dnf remove -y libdbi-help + CHECK_RESULT $? 0 0 "remove libdbi-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi.sh b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi.sh new file mode 100644 index 0000000000000000000000000000000000000000..db1106ea3e445c96a6e24bc413cac8f8696730db --- /dev/null +++ b/testcases/cli-test/libdbi/oe_test_libdbi_install_and_remove_libdbi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbi | grep -v \.src | grep libdbi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbi + CHECK_RESULT $? 0 0 "install libdbi failed" + SLEEP_WAIT 1 + dnf remove -y libdbi + CHECK_RESULT $? 0 0 "remove libdbi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-debuginfo.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..38183010e2a5eede91c85175d6a1aa9d314614d7 --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu-debuginfo | grep -v \.src | grep libdbusmenu-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu-debuginfo + CHECK_RESULT $? 0 0 "install libdbusmenu-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu-debuginfo + CHECK_RESULT $? 0 0 "remove libdbusmenu-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-debugsource.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1174b8f1567ef71de12997929494b0dc24370874 --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu-debugsource | grep -v \.src | grep libdbusmenu-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu-debugsource + CHECK_RESULT $? 0 0 "install libdbusmenu-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu-debugsource + CHECK_RESULT $? 0 0 "remove libdbusmenu-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-devel.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cde7c37e3bdfe3c96a41596e2e535735df5eb91a --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu-devel | grep -v \.src | grep libdbusmenu-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu-devel + CHECK_RESULT $? 0 0 "install libdbusmenu-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu-devel + CHECK_RESULT $? 0 0 "remove libdbusmenu-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk2-devel.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..36af8de17f8dc8d53bff511d45300713f54c06bb --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu-gtk2-devel | grep -v \.src | grep libdbusmenu-gtk2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu-gtk2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu-gtk2-devel + CHECK_RESULT $? 0 0 "install libdbusmenu-gtk2-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu-gtk2-devel + CHECK_RESULT $? 0 0 "remove libdbusmenu-gtk2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk2.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk2.sh new file mode 100644 index 0000000000000000000000000000000000000000..a33f412b32c2ae70c29140c2bf4360d7cfb28c4a --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu-gtk2 | grep -v \.src | grep libdbusmenu-gtk2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu-gtk2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu-gtk2 + CHECK_RESULT $? 0 0 "install libdbusmenu-gtk2 failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu-gtk2 + CHECK_RESULT $? 0 0 "remove libdbusmenu-gtk2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk3-devel.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..177cdd4ac52f45932fc3a31d4717d76539640a04 --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu-gtk3-devel | grep -v \.src | grep libdbusmenu-gtk3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu-gtk3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu-gtk3-devel + CHECK_RESULT $? 0 0 "install libdbusmenu-gtk3-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu-gtk3-devel + CHECK_RESULT $? 0 0 "remove libdbusmenu-gtk3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk3.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk3.sh new file mode 100644 index 0000000000000000000000000000000000000000..c69e7a218e46ddcbee51ae939a3da9a4c04ed00a --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-gtk3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu-gtk3 | grep -v \.src | grep libdbusmenu-gtk3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu-gtk3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu-gtk3 + CHECK_RESULT $? 0 0 "install libdbusmenu-gtk3 failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu-gtk3 + CHECK_RESULT $? 0 0 "remove libdbusmenu-gtk3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-help.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f80019a0761cbd8a97f5e8d1b3de3892a71be725 --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu-help | grep -v \.src | grep libdbusmenu-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu-help + CHECK_RESULT $? 0 0 "install libdbusmenu-help failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu-help + CHECK_RESULT $? 0 0 "remove libdbusmenu-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-jsonloader-devel.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-jsonloader-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a76b3b5018507d369516920406a4f9d8deb8f023 --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-jsonloader-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu-jsonloader-devel | grep -v \.src | grep libdbusmenu-jsonloader-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu-jsonloader-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu-jsonloader-devel + CHECK_RESULT $? 0 0 "install libdbusmenu-jsonloader-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu-jsonloader-devel + CHECK_RESULT $? 0 0 "remove libdbusmenu-jsonloader-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-jsonloader.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-jsonloader.sh new file mode 100644 index 0000000000000000000000000000000000000000..18514942b5637f5efe50a137c13bc3c5e07f3341 --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu-jsonloader.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu-jsonloader | grep -v \.src | grep libdbusmenu-jsonloader + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu-jsonloader" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu-jsonloader + CHECK_RESULT $? 0 0 "install libdbusmenu-jsonloader failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu-jsonloader + CHECK_RESULT $? 0 0 "remove libdbusmenu-jsonloader failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu.sh b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu.sh new file mode 100644 index 0000000000000000000000000000000000000000..acfe558acea1a4f94a9481c343377bdb2d3b7cd0 --- /dev/null +++ b/testcases/cli-test/libdbusmenu/oe_test_libdbusmenu_install_and_remove_libdbusmenu.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdbusmenu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdbusmenu | grep -v \.src | grep libdbusmenu + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdbusmenu" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdbusmenu + CHECK_RESULT $? 0 0 "install libdbusmenu failed" + SLEEP_WAIT 1 + dnf remove -y libdbusmenu + CHECK_RESULT $? 0 0 "remove libdbusmenu failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-debuginfo.sh b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d344df951f50c1d09af852a7a8b85bf68d6a5a87 --- /dev/null +++ b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdmx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdmx-debuginfo | grep -v \.src | grep libdmx-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdmx-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdmx-debuginfo + CHECK_RESULT $? 0 0 "install libdmx-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libdmx-debuginfo + CHECK_RESULT $? 0 0 "remove libdmx-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-debugsource.sh b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..072216148b710b9b6ac03a9e30e8551af7f6c9c3 --- /dev/null +++ b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdmx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdmx-debugsource | grep -v \.src | grep libdmx-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdmx-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdmx-debugsource + CHECK_RESULT $? 0 0 "install libdmx-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libdmx-debugsource + CHECK_RESULT $? 0 0 "remove libdmx-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-devel.sh b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c4b4524b29c242244750c3a34426b823a9e05c6 --- /dev/null +++ b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdmx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdmx-devel | grep -v \.src | grep libdmx-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdmx-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdmx-devel + CHECK_RESULT $? 0 0 "install libdmx-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdmx-devel + CHECK_RESULT $? 0 0 "remove libdmx-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-doc.sh b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0d3a60cebbd7dc2178ed382f4daccd0e4d5d1a1 --- /dev/null +++ b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdmx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdmx-doc | grep -v \.src | grep libdmx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdmx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdmx-doc + CHECK_RESULT $? 0 0 "install libdmx-doc failed" + SLEEP_WAIT 1 + dnf remove -y libdmx-doc + CHECK_RESULT $? 0 0 "remove libdmx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-help.sh b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8dd491df3bdc45bd38845d30b6dc49491a42083 --- /dev/null +++ b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdmx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdmx-help | grep -v \.src | grep libdmx-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdmx-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdmx-help + CHECK_RESULT $? 0 0 "install libdmx-help failed" + SLEEP_WAIT 1 + dnf remove -y libdmx-help + CHECK_RESULT $? 0 0 "remove libdmx-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx.sh b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ee0d0e6b1ccd8064677a22cef05f595c16cc6f3 --- /dev/null +++ b/testcases/cli-test/libdmx/oe_test_libdmx_install_and_remove_libdmx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdmx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdmx | grep -v \.src | grep libdmx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdmx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdmx + CHECK_RESULT $? 0 0 "install libdmx failed" + SLEEP_WAIT 1 + dnf remove -y libdmx + CHECK_RESULT $? 0 0 "remove libdmx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf-debuginfo.sh b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8351504cc2e853fb8110f356f2ca352d7a46bff2 --- /dev/null +++ b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdnf-debuginfo | grep -v \.src | grep libdnf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdnf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdnf-debuginfo + CHECK_RESULT $? 0 0 "install libdnf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libdnf-debuginfo + CHECK_RESULT $? 0 0 "remove libdnf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf-debugsource.sh b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cf65376a0ea122451376b6295a9c365669f7c31 --- /dev/null +++ b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdnf-debugsource | grep -v \.src | grep libdnf-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdnf-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdnf-debugsource + CHECK_RESULT $? 0 0 "install libdnf-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libdnf-debugsource + CHECK_RESULT $? 0 0 "remove libdnf-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf-devel.sh b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..94e6abb7dfd12038f92b8afec3eaf0433a269057 --- /dev/null +++ b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdnf-devel | grep -v \.src | grep libdnf-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdnf-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdnf-devel + CHECK_RESULT $? 0 0 "install libdnf-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdnf-devel + CHECK_RESULT $? 0 0 "remove libdnf-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf.sh b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf.sh new file mode 100644 index 0000000000000000000000000000000000000000..57a661026511063c8fcc493c1be6ec7226a48dfa --- /dev/null +++ b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_libdnf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdnf | grep -v \.src | grep libdnf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdnf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdnf + CHECK_RESULT $? 0 0 "install libdnf failed" + SLEEP_WAIT 1 + dnf remove -y libdnf + CHECK_RESULT $? 0 0 "remove libdnf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python2-hawkey.sh b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python2-hawkey.sh new file mode 100644 index 0000000000000000000000000000000000000000..02dfe76310021f10dd5abc4b613911dfa7e536ed --- /dev/null +++ b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python2-hawkey.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-hawkey | grep -v \.src | grep python2-hawkey + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-hawkey" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-hawkey + CHECK_RESULT $? 0 0 "install python2-hawkey failed" + SLEEP_WAIT 1 + dnf remove -y python2-hawkey + CHECK_RESULT $? 0 0 "remove python2-hawkey failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python2-libdnf.sh b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python2-libdnf.sh new file mode 100644 index 0000000000000000000000000000000000000000..839888115cc1075f0bd94a126b3351aa7c11cf07 --- /dev/null +++ b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python2-libdnf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libdnf | grep -v \.src | grep python2-libdnf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libdnf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libdnf + CHECK_RESULT $? 0 0 "install python2-libdnf failed" + SLEEP_WAIT 1 + dnf remove -y python2-libdnf + CHECK_RESULT $? 0 0 "remove python2-libdnf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python3-hawkey.sh b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python3-hawkey.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbe4089cc08ca3e592e0d2eda7370cfa03957e92 --- /dev/null +++ b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python3-hawkey.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-hawkey | grep -v \.src | grep python3-hawkey + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-hawkey" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-hawkey + CHECK_RESULT $? 0 0 "install python3-hawkey failed" + SLEEP_WAIT 1 + dnf remove -y python3-hawkey + CHECK_RESULT $? 0 0 "remove python3-hawkey failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python3-libdnf.sh b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python3-libdnf.sh new file mode 100644 index 0000000000000000000000000000000000000000..a47e20f69a245af4a6ebb5c7e7132627a2c44346 --- /dev/null +++ b/testcases/cli-test/libdnf/oe_test_libdnf_install_and_remove_python3-libdnf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdnf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libdnf | grep -v \.src | grep python3-libdnf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libdnf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libdnf + CHECK_RESULT $? 0 0 "install python3-libdnf failed" + SLEEP_WAIT 1 + dnf remove -y python3-libdnf + CHECK_RESULT $? 0 0 "remove python3-libdnf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_drm-utils.sh b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_drm-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc8b5b682f190657d04c7a6991eadcf437145c2b --- /dev/null +++ b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_drm-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdrm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available drm-utils | grep -v \.src | grep drm-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm drm-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y drm-utils + CHECK_RESULT $? 0 0 "install drm-utils failed" + SLEEP_WAIT 1 + dnf remove -y drm-utils + CHECK_RESULT $? 0 0 "remove drm-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-debuginfo.sh b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f8316bb7abcd05319a2aea0d1a83bd9f2ee73b5 --- /dev/null +++ b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdrm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdrm-debuginfo | grep -v \.src | grep libdrm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdrm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdrm-debuginfo + CHECK_RESULT $? 0 0 "install libdrm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libdrm-debuginfo + CHECK_RESULT $? 0 0 "remove libdrm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-debugsource.sh b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..754bf3b5c4cd1646638e6b1ca731a790c18cae6a --- /dev/null +++ b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdrm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdrm-debugsource | grep -v \.src | grep libdrm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdrm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdrm-debugsource + CHECK_RESULT $? 0 0 "install libdrm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libdrm-debugsource + CHECK_RESULT $? 0 0 "remove libdrm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-devel.sh b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8aad409d07f31d9dfd8884d0ffa1e74e17013656 --- /dev/null +++ b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdrm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdrm-devel | grep -v \.src | grep libdrm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdrm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdrm-devel + CHECK_RESULT $? 0 0 "install libdrm-devel failed" + SLEEP_WAIT 1 + dnf remove -y libdrm-devel + CHECK_RESULT $? 0 0 "remove libdrm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-help.sh b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..15adbdb84db2b2a4ccdb9cee91fa195afdb83353 --- /dev/null +++ b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdrm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdrm-help | grep -v \.src | grep libdrm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdrm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdrm-help + CHECK_RESULT $? 0 0 "install libdrm-help failed" + SLEEP_WAIT 1 + dnf remove -y libdrm-help + CHECK_RESULT $? 0 0 "remove libdrm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm.sh b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f3dc1a09c70036873ff95077b2ba810d616a88c --- /dev/null +++ b/testcases/cli-test/libdrm/oe_test_libdrm_install_and_remove_libdrm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libdrm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libdrm | grep -v \.src | grep libdrm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libdrm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libdrm + CHECK_RESULT $? 0 0 "install libdrm failed" + SLEEP_WAIT 1 + dnf remove -y libdrm + CHECK_RESULT $? 0 0 "remove libdrm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-debuginfo.sh b/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..83e31a563e12cfa79ae345bb18d03f319136b895 --- /dev/null +++ b/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libedit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libedit-debuginfo | grep -v \.src | grep libedit-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libedit-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libedit-debuginfo + CHECK_RESULT $? 0 0 "install libedit-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libedit-debuginfo + CHECK_RESULT $? 0 0 "remove libedit-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-debugsource.sh b/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d242e85ed965ac9458e21bf49dd9d50654c3f64 --- /dev/null +++ b/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libedit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libedit-debugsource | grep -v \.src | grep libedit-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libedit-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libedit-debugsource + CHECK_RESULT $? 0 0 "install libedit-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libedit-debugsource + CHECK_RESULT $? 0 0 "remove libedit-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-devel.sh b/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6dac2d04e9142bab7384ae4613f4ea6c5950e7d9 --- /dev/null +++ b/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libedit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libedit-devel | grep -v \.src | grep libedit-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libedit-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libedit-devel + CHECK_RESULT $? 0 0 "install libedit-devel failed" + SLEEP_WAIT 1 + dnf remove -y libedit-devel + CHECK_RESULT $? 0 0 "remove libedit-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-help.sh b/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..95a5452a89aedf136a99802aacb6b180b65da9b9 --- /dev/null +++ b/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libedit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libedit-help | grep -v \.src | grep libedit-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libedit-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libedit-help + CHECK_RESULT $? 0 0 "install libedit-help failed" + SLEEP_WAIT 1 + dnf remove -y libedit-help + CHECK_RESULT $? 0 0 "remove libedit-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit.sh b/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a2344d8cd1a11a8dd9b02f192c8b5c73e530605 --- /dev/null +++ b/testcases/cli-test/libedit/oe_test_libedit_install_and_remove_libedit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libedit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libedit | grep -v \.src | grep libedit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libedit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libedit + CHECK_RESULT $? 0 0 "install libedit failed" + SLEEP_WAIT 1 + dnf remove -y libedit + CHECK_RESULT $? 0 0 "remove libedit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell-debuginfo.sh b/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e88e3343faed982026c97030bcf684be1ce66d8b --- /dev/null +++ b/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libell-debuginfo | grep -v \.src | grep libell-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libell-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libell-debuginfo + CHECK_RESULT $? 0 0 "install libell-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libell-debuginfo + CHECK_RESULT $? 0 0 "remove libell-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell-debugsource.sh b/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f398283fa2e419534bf82a030d9aaa077880abaf --- /dev/null +++ b/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libell-debugsource | grep -v \.src | grep libell-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libell-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libell-debugsource + CHECK_RESULT $? 0 0 "install libell-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libell-debugsource + CHECK_RESULT $? 0 0 "remove libell-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell-devel.sh b/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fe3f936ca02ad131c66a44d7fa91cea6c027035 --- /dev/null +++ b/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libell-devel | grep -v \.src | grep libell-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libell-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libell-devel + CHECK_RESULT $? 0 0 "install libell-devel failed" + SLEEP_WAIT 1 + dnf remove -y libell-devel + CHECK_RESULT $? 0 0 "remove libell-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell.sh b/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell.sh new file mode 100644 index 0000000000000000000000000000000000000000..696a9deead1e788bad4106b5a6efdc3e3fb7b962 --- /dev/null +++ b/testcases/cli-test/libell/oe_test_libell_install_and_remove_libell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libell +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libell | grep -v \.src | grep libell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libell + CHECK_RESULT $? 0 0 "install libell failed" + SLEEP_WAIT 1 + dnf remove -y libell + CHECK_RESULT $? 0 0 "remove libell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-debuginfo.sh b/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a4546b9f67662aa5e49c9c0dab7fc048f891df6 --- /dev/null +++ b/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libepoxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libepoxy-debuginfo | grep -v \.src | grep libepoxy-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libepoxy-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libepoxy-debuginfo + CHECK_RESULT $? 0 0 "install libepoxy-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libepoxy-debuginfo + CHECK_RESULT $? 0 0 "remove libepoxy-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-debugsource.sh b/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6034a869dab6167843d87fa00ede6072a9073901 --- /dev/null +++ b/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libepoxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libepoxy-debugsource | grep -v \.src | grep libepoxy-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libepoxy-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libepoxy-debugsource + CHECK_RESULT $? 0 0 "install libepoxy-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libepoxy-debugsource + CHECK_RESULT $? 0 0 "remove libepoxy-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-devel.sh b/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..151e295974d629efe6d3d70f720b9b9353955fc1 --- /dev/null +++ b/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libepoxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libepoxy-devel | grep -v \.src | grep libepoxy-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libepoxy-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libepoxy-devel + CHECK_RESULT $? 0 0 "install libepoxy-devel failed" + SLEEP_WAIT 1 + dnf remove -y libepoxy-devel + CHECK_RESULT $? 0 0 "remove libepoxy-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-help.sh b/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..29ef0d4b0de02f86d2a998e41f9e9cd65fd789c4 --- /dev/null +++ b/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libepoxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libepoxy-help | grep -v \.src | grep libepoxy-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libepoxy-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libepoxy-help + CHECK_RESULT $? 0 0 "install libepoxy-help failed" + SLEEP_WAIT 1 + dnf remove -y libepoxy-help + CHECK_RESULT $? 0 0 "remove libepoxy-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy.sh b/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf25651c033795ff3513555b610f2ad1a99d069d --- /dev/null +++ b/testcases/cli-test/libepoxy/oe_test_libepoxy_install_and_remove_libepoxy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libepoxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libepoxy | grep -v \.src | grep libepoxy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libepoxy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libepoxy + CHECK_RESULT $? 0 0 "install libepoxy failed" + SLEEP_WAIT 1 + dnf remove -y libepoxy + CHECK_RESULT $? 0 0 "remove libepoxy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr-debuginfo.sh b/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1655916bb71495c98124b2481613dd527dfb833c --- /dev/null +++ b/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libestr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libestr-debuginfo | grep -v \.src | grep libestr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libestr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libestr-debuginfo + CHECK_RESULT $? 0 0 "install libestr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libestr-debuginfo + CHECK_RESULT $? 0 0 "remove libestr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr-debugsource.sh b/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d107736de5ce1d8a5d69bad386bb6623669814a6 --- /dev/null +++ b/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libestr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libestr-debugsource | grep -v \.src | grep libestr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libestr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libestr-debugsource + CHECK_RESULT $? 0 0 "install libestr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libestr-debugsource + CHECK_RESULT $? 0 0 "remove libestr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr-devel.sh b/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b48d2101a5ff1fdd772ab3718649be2c2c175ec5 --- /dev/null +++ b/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libestr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libestr-devel | grep -v \.src | grep libestr-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libestr-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libestr-devel + CHECK_RESULT $? 0 0 "install libestr-devel failed" + SLEEP_WAIT 1 + dnf remove -y libestr-devel + CHECK_RESULT $? 0 0 "remove libestr-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr.sh b/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr.sh new file mode 100644 index 0000000000000000000000000000000000000000..54448002dfb85684eb7b16614ed0ca3c2288d7d8 --- /dev/null +++ b/testcases/cli-test/libestr/oe_test_libestr_install_and_remove_libestr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libestr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libestr | grep -v \.src | grep libestr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libestr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libestr + CHECK_RESULT $? 0 0 "install libestr failed" + SLEEP_WAIT 1 + dnf remove -y libestr + CHECK_RESULT $? 0 0 "remove libestr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-debuginfo.sh b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..27d0721e2b50a046c02c13ff25a841f9193a0ab2 --- /dev/null +++ b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libev-debuginfo | grep -v \.src | grep libev-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libev-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libev-debuginfo + CHECK_RESULT $? 0 0 "install libev-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libev-debuginfo + CHECK_RESULT $? 0 0 "remove libev-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-debugsource.sh b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ea0671d05eff66e7f80f46ea6e5bbd1a77e5892 --- /dev/null +++ b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libev-debugsource | grep -v \.src | grep libev-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libev-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libev-debugsource + CHECK_RESULT $? 0 0 "install libev-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libev-debugsource + CHECK_RESULT $? 0 0 "remove libev-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-devel.sh b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9aa46328db702c63a7e11a70631f7b3860a8927a --- /dev/null +++ b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libev-devel | grep -v \.src | grep libev-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libev-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libev-devel + CHECK_RESULT $? 0 0 "install libev-devel failed" + SLEEP_WAIT 1 + dnf remove -y libev-devel + CHECK_RESULT $? 0 0 "remove libev-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-help.sh b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea273a97ebf281fb85821768edde9acbd6678ed1 --- /dev/null +++ b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libev-help | grep -v \.src | grep libev-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libev-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libev-help + CHECK_RESULT $? 0 0 "install libev-help failed" + SLEEP_WAIT 1 + dnf remove -y libev-help + CHECK_RESULT $? 0 0 "remove libev-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-libevent-devel.sh b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-libevent-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac9dd4b0e7ed85e802dbe7a8cc2e59afadfad0f7 --- /dev/null +++ b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev-libevent-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libev-libevent-devel | grep -v \.src | grep libev-libevent-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libev-libevent-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libev-libevent-devel + CHECK_RESULT $? 0 0 "install libev-libevent-devel failed" + SLEEP_WAIT 1 + dnf remove -y libev-libevent-devel + CHECK_RESULT $? 0 0 "remove libev-libevent-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev.sh b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d56ae5eb1f0cef6dd243d0edd2fac80d5dda763 --- /dev/null +++ b/testcases/cli-test/libev/oe_test_libev_install_and_remove_libev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libev | grep -v \.src | grep libev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libev + CHECK_RESULT $? 0 0 "install libev failed" + SLEEP_WAIT 1 + dnf remove -y libev + CHECK_RESULT $? 0 0 "remove libev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-debuginfo.sh b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a64bec35c2ef62662b331e5a5cff26658fc9519 --- /dev/null +++ b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libevdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libevdev-debuginfo | grep -v \.src | grep libevdev-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libevdev-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libevdev-debuginfo + CHECK_RESULT $? 0 0 "install libevdev-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libevdev-debuginfo + CHECK_RESULT $? 0 0 "remove libevdev-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-debugsource.sh b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..079130aec5ce3577954d1aed79367e97a79a0db6 --- /dev/null +++ b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libevdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libevdev-debugsource | grep -v \.src | grep libevdev-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libevdev-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libevdev-debugsource + CHECK_RESULT $? 0 0 "install libevdev-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libevdev-debugsource + CHECK_RESULT $? 0 0 "remove libevdev-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-devel.sh b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..08f640e00d146e890d50a772a652af852f195ea8 --- /dev/null +++ b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libevdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libevdev-devel | grep -v \.src | grep libevdev-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libevdev-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libevdev-devel + CHECK_RESULT $? 0 0 "install libevdev-devel failed" + SLEEP_WAIT 1 + dnf remove -y libevdev-devel + CHECK_RESULT $? 0 0 "remove libevdev-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-help.sh b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7672b1bceffc6c5cbeb94cac36058abd232f5e5d --- /dev/null +++ b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libevdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libevdev-help | grep -v \.src | grep libevdev-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libevdev-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libevdev-help + CHECK_RESULT $? 0 0 "install libevdev-help failed" + SLEEP_WAIT 1 + dnf remove -y libevdev-help + CHECK_RESULT $? 0 0 "remove libevdev-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-utils.sh b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b3eb118bf5c6e0f17e98dfd8a8a5317fa11329d --- /dev/null +++ b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libevdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libevdev-utils | grep -v \.src | grep libevdev-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libevdev-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libevdev-utils + CHECK_RESULT $? 0 0 "install libevdev-utils failed" + SLEEP_WAIT 1 + dnf remove -y libevdev-utils + CHECK_RESULT $? 0 0 "remove libevdev-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev.sh b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d3f3440efea4494e19982f4688bdd9d5394d758 --- /dev/null +++ b/testcases/cli-test/libevdev/oe_test_libevdev_install_and_remove_libevdev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libevdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libevdev | grep -v \.src | grep libevdev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libevdev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libevdev + CHECK_RESULT $? 0 0 "install libevdev failed" + SLEEP_WAIT 1 + dnf remove -y libevdev + CHECK_RESULT $? 0 0 "remove libevdev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent-debuginfo.sh b/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bed92493bf9fb2c14bba45e6d2e2c85bdfdf58c --- /dev/null +++ b/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libevent-debuginfo | grep -v \.src | grep libevent-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libevent-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libevent-debuginfo + CHECK_RESULT $? 0 0 "install libevent-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libevent-debuginfo + CHECK_RESULT $? 0 0 "remove libevent-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent-debugsource.sh b/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3da4e5ddc0ec14bc5d9739b400cb4014780377bb --- /dev/null +++ b/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libevent-debugsource | grep -v \.src | grep libevent-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libevent-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libevent-debugsource + CHECK_RESULT $? 0 0 "install libevent-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libevent-debugsource + CHECK_RESULT $? 0 0 "remove libevent-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent-devel.sh b/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac7ac6fad884500bc59fa052ba1503fbbd0752f0 --- /dev/null +++ b/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libevent-devel | grep -v \.src | grep libevent-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libevent-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libevent-devel + CHECK_RESULT $? 0 0 "install libevent-devel failed" + SLEEP_WAIT 1 + dnf remove -y libevent-devel + CHECK_RESULT $? 0 0 "remove libevent-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent.sh b/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent.sh new file mode 100644 index 0000000000000000000000000000000000000000..55977f84e6a2bab02250e5f909dd8562caea9f97 --- /dev/null +++ b/testcases/cli-test/libevent/oe_test_libevent_install_and_remove_libevent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libevent | grep -v \.src | grep libevent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libevent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libevent + CHECK_RESULT $? 0 0 "install libevent failed" + SLEEP_WAIT 1 + dnf remove -y libevent + CHECK_RESULT $? 0 0 "remove libevent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-debuginfo.sh b/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6839ebce506ad845ec4dbd76f0677ae5b88f4d4 --- /dev/null +++ b/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libexif +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libexif-debuginfo | grep -v \.src | grep libexif-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libexif-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libexif-debuginfo + CHECK_RESULT $? 0 0 "install libexif-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libexif-debuginfo + CHECK_RESULT $? 0 0 "remove libexif-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-debugsource.sh b/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1be2bdd75708f83796a8c0335ea68ffa1f85624 --- /dev/null +++ b/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libexif +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libexif-debugsource | grep -v \.src | grep libexif-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libexif-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libexif-debugsource + CHECK_RESULT $? 0 0 "install libexif-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libexif-debugsource + CHECK_RESULT $? 0 0 "remove libexif-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-devel.sh b/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..244a8e4a1dadbe2dab0ff852a96ffd9db8cdade9 --- /dev/null +++ b/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libexif +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libexif-devel | grep -v \.src | grep libexif-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libexif-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libexif-devel + CHECK_RESULT $? 0 0 "install libexif-devel failed" + SLEEP_WAIT 1 + dnf remove -y libexif-devel + CHECK_RESULT $? 0 0 "remove libexif-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-help.sh b/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6da4f420d0be842c136bb56fd25d99ec48af5f39 --- /dev/null +++ b/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libexif +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libexif-help | grep -v \.src | grep libexif-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libexif-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libexif-help + CHECK_RESULT $? 0 0 "install libexif-help failed" + SLEEP_WAIT 1 + dnf remove -y libexif-help + CHECK_RESULT $? 0 0 "remove libexif-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif.sh b/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif.sh new file mode 100644 index 0000000000000000000000000000000000000000..0567c09f5df38d5463ba55e8d9d7eb2d11432158 --- /dev/null +++ b/testcases/cli-test/libexif/oe_test_libexif_install_and_remove_libexif.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libexif +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libexif | grep -v \.src | grep libexif + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libexif" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libexif + CHECK_RESULT $? 0 0 "install libexif failed" + SLEEP_WAIT 1 + dnf remove -y libexif + CHECK_RESULT $? 0 0 "remove libexif failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson-debuginfo.sh b/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..393218fb3c86629626bfd38ee94bd7bd50d8608e --- /dev/null +++ b/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libfastjson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libfastjson-debuginfo | grep -v \.src | grep libfastjson-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libfastjson-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libfastjson-debuginfo + CHECK_RESULT $? 0 0 "install libfastjson-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libfastjson-debuginfo + CHECK_RESULT $? 0 0 "remove libfastjson-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson-debugsource.sh b/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..12f2dd902dadd17429a26c7456bbd262f35c4761 --- /dev/null +++ b/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libfastjson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libfastjson-debugsource | grep -v \.src | grep libfastjson-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libfastjson-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libfastjson-debugsource + CHECK_RESULT $? 0 0 "install libfastjson-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libfastjson-debugsource + CHECK_RESULT $? 0 0 "remove libfastjson-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson-devel.sh b/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4876b83fc13750b0d615dde89d006300120f3d17 --- /dev/null +++ b/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libfastjson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libfastjson-devel | grep -v \.src | grep libfastjson-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libfastjson-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libfastjson-devel + CHECK_RESULT $? 0 0 "install libfastjson-devel failed" + SLEEP_WAIT 1 + dnf remove -y libfastjson-devel + CHECK_RESULT $? 0 0 "remove libfastjson-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson.sh b/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d53ba2c71752e441a96e2a31035f51cae152b10 --- /dev/null +++ b/testcases/cli-test/libfastjson/oe_test_libfastjson_install_and_remove_libfastjson.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libfastjson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libfastjson | grep -v \.src | grep libfastjson + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libfastjson" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libfastjson + CHECK_RESULT $? 0 0 "install libfastjson failed" + SLEEP_WAIT 1 + dnf remove -y libfastjson + CHECK_RESULT $? 0 0 "remove libfastjson failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-debuginfo.sh b/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..add7f58cbe5cd2d28127b9312088398473d6be06 --- /dev/null +++ b/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libffi-debuginfo | grep -v \.src | grep libffi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libffi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libffi-debuginfo + CHECK_RESULT $? 0 0 "install libffi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libffi-debuginfo + CHECK_RESULT $? 0 0 "remove libffi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-debugsource.sh b/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..58171d2d72f3c211ffbe6ecdb2658d195af2ced3 --- /dev/null +++ b/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libffi-debugsource | grep -v \.src | grep libffi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libffi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libffi-debugsource + CHECK_RESULT $? 0 0 "install libffi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libffi-debugsource + CHECK_RESULT $? 0 0 "remove libffi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-devel.sh b/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b80ad79eba887ad6829d7db3c205d1614f2c511b --- /dev/null +++ b/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libffi-devel | grep -v \.src | grep libffi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libffi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libffi-devel + CHECK_RESULT $? 0 0 "install libffi-devel failed" + SLEEP_WAIT 1 + dnf remove -y libffi-devel + CHECK_RESULT $? 0 0 "remove libffi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-help.sh b/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4d9755470795da4fb18d14476fd5dbb45776051 --- /dev/null +++ b/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libffi-help | grep -v \.src | grep libffi-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libffi-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libffi-help + CHECK_RESULT $? 0 0 "install libffi-help failed" + SLEEP_WAIT 1 + dnf remove -y libffi-help + CHECK_RESULT $? 0 0 "remove libffi-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi.sh b/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi.sh new file mode 100644 index 0000000000000000000000000000000000000000..18cc01a894b1acf3dd7f070c76d4ff4080fbd835 --- /dev/null +++ b/testcases/cli-test/libffi/oe_test_libffi_install_and_remove_libffi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libffi | grep -v \.src | grep libffi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libffi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libffi + CHECK_RESULT $? 0 0 "install libffi failed" + SLEEP_WAIT 1 + dnf remove -y libffi + CHECK_RESULT $? 0 0 "remove libffi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-debuginfo.sh b/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..15e83143bc5d9014b0a5eab13112c9b68f040e81 --- /dev/null +++ b/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libfontenc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libfontenc-debuginfo | grep -v \.src | grep libfontenc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libfontenc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libfontenc-debuginfo + CHECK_RESULT $? 0 0 "install libfontenc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libfontenc-debuginfo + CHECK_RESULT $? 0 0 "remove libfontenc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-debugsource.sh b/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e7b3a005086a8f315330ef703aa804f12c2c266 --- /dev/null +++ b/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libfontenc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libfontenc-debugsource | grep -v \.src | grep libfontenc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libfontenc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libfontenc-debugsource + CHECK_RESULT $? 0 0 "install libfontenc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libfontenc-debugsource + CHECK_RESULT $? 0 0 "remove libfontenc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-devel.sh b/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a087d639f1c9485ad1b51cbdcf2ad2eec97b48d8 --- /dev/null +++ b/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libfontenc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libfontenc-devel | grep -v \.src | grep libfontenc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libfontenc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libfontenc-devel + CHECK_RESULT $? 0 0 "install libfontenc-devel failed" + SLEEP_WAIT 1 + dnf remove -y libfontenc-devel + CHECK_RESULT $? 0 0 "remove libfontenc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-help.sh b/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e7d6e14747f152c43c8f2b2981fc3bc1778211c --- /dev/null +++ b/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libfontenc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libfontenc-help | grep -v \.src | grep libfontenc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libfontenc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libfontenc-help + CHECK_RESULT $? 0 0 "install libfontenc-help failed" + SLEEP_WAIT 1 + dnf remove -y libfontenc-help + CHECK_RESULT $? 0 0 "remove libfontenc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc.sh b/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3aa855ac30a2a11cb085f81a66a80f05b140a793 --- /dev/null +++ b/testcases/cli-test/libfontenc/oe_test_libfontenc_install_and_remove_libfontenc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libfontenc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libfontenc | grep -v \.src | grep libfontenc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libfontenc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libfontenc + CHECK_RESULT $? 0 0 "install libfontenc failed" + SLEEP_WAIT 1 + dnf remove -y libfontenc + CHECK_RESULT $? 0 0 "remove libfontenc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-debuginfo.sh b/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..139e27961f742252e0026a7fab745a9d2739ca59 --- /dev/null +++ b/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgcrypt-debuginfo | grep -v \.src | grep libgcrypt-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgcrypt-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgcrypt-debuginfo + CHECK_RESULT $? 0 0 "install libgcrypt-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libgcrypt-debuginfo + CHECK_RESULT $? 0 0 "remove libgcrypt-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-debugsource.sh b/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cdc29a7a9802d7b111dfa9050c18bed206f3100 --- /dev/null +++ b/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgcrypt-debugsource | grep -v \.src | grep libgcrypt-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgcrypt-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgcrypt-debugsource + CHECK_RESULT $? 0 0 "install libgcrypt-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libgcrypt-debugsource + CHECK_RESULT $? 0 0 "remove libgcrypt-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-devel.sh b/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cac99134d55f0b882ef570e20fd098ee94074a26 --- /dev/null +++ b/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgcrypt-devel | grep -v \.src | grep libgcrypt-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgcrypt-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgcrypt-devel + CHECK_RESULT $? 0 0 "install libgcrypt-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgcrypt-devel + CHECK_RESULT $? 0 0 "remove libgcrypt-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-help.sh b/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d5cc67f01777ac7419444a2344b6acd7262c446 --- /dev/null +++ b/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgcrypt-help | grep -v \.src | grep libgcrypt-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgcrypt-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgcrypt-help + CHECK_RESULT $? 0 0 "install libgcrypt-help failed" + SLEEP_WAIT 1 + dnf remove -y libgcrypt-help + CHECK_RESULT $? 0 0 "remove libgcrypt-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt.sh b/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt.sh new file mode 100644 index 0000000000000000000000000000000000000000..6662bb0ff1b2f9671676658c462548c8b4c2cf6f --- /dev/null +++ b/testcases/cli-test/libgcrypt/oe_test_libgcrypt_install_and_remove_libgcrypt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgcrypt | grep -v \.src | grep libgcrypt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgcrypt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgcrypt + CHECK_RESULT $? 0 0 "install libgcrypt failed" + SLEEP_WAIT 1 + dnf remove -y libgcrypt + CHECK_RESULT $? 0 0 "remove libgcrypt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-debuginfo.sh b/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..afedd04e0f1224b83e759c915fa3311d9654b792 --- /dev/null +++ b/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgit2-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgit2-glib-debuginfo | grep -v \.src | grep libgit2-glib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgit2-glib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgit2-glib-debuginfo + CHECK_RESULT $? 0 0 "install libgit2-glib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libgit2-glib-debuginfo + CHECK_RESULT $? 0 0 "remove libgit2-glib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-debugsource.sh b/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4b16e725bc7c0045eea3bc33973c0d20139ceba --- /dev/null +++ b/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgit2-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgit2-glib-debugsource | grep -v \.src | grep libgit2-glib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgit2-glib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgit2-glib-debugsource + CHECK_RESULT $? 0 0 "install libgit2-glib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libgit2-glib-debugsource + CHECK_RESULT $? 0 0 "remove libgit2-glib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-devel.sh b/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8537fe05b3b212e74ad4dfa07edab610d840d7e4 --- /dev/null +++ b/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgit2-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgit2-glib-devel | grep -v \.src | grep libgit2-glib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgit2-glib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgit2-glib-devel + CHECK_RESULT $? 0 0 "install libgit2-glib-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgit2-glib-devel + CHECK_RESULT $? 0 0 "remove libgit2-glib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-help.sh b/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..51648d6ed4ff9a50ed738128647371ea4e28f71d --- /dev/null +++ b/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgit2-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgit2-glib-help | grep -v \.src | grep libgit2-glib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgit2-glib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgit2-glib-help + CHECK_RESULT $? 0 0 "install libgit2-glib-help failed" + SLEEP_WAIT 1 + dnf remove -y libgit2-glib-help + CHECK_RESULT $? 0 0 "remove libgit2-glib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib.sh b/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a61642fa5bf98f4a0d560afb70e0bcf325b6ef5 --- /dev/null +++ b/testcases/cli-test/libgit2-glib/oe_test_libgit2-glib_install_and_remove_libgit2-glib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgit2-glib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgit2-glib | grep -v \.src | grep libgit2-glib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgit2-glib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgit2-glib + CHECK_RESULT $? 0 0 "install libgit2-glib failed" + SLEEP_WAIT 1 + dnf remove -y libgit2-glib + CHECK_RESULT $? 0 0 "remove libgit2-glib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-core-devel.sh b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-core-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..56b72b73a1903b4e95e35d02e0f68a4c3092f1b5 --- /dev/null +++ b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-core-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libglvnd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglvnd-core-devel | grep -v \.src | grep libglvnd-core-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglvnd-core-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglvnd-core-devel + CHECK_RESULT $? 0 0 "install libglvnd-core-devel failed" + SLEEP_WAIT 1 + dnf remove -y libglvnd-core-devel + CHECK_RESULT $? 0 0 "remove libglvnd-core-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-debuginfo.sh b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f604e17f9d19b10bf32e995da194ff2a050bc5cc --- /dev/null +++ b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libglvnd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglvnd-debuginfo | grep -v \.src | grep libglvnd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglvnd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglvnd-debuginfo + CHECK_RESULT $? 0 0 "install libglvnd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libglvnd-debuginfo + CHECK_RESULT $? 0 0 "remove libglvnd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-debugsource.sh b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d60a795c7079cac95d28135b0d66821f09d355d3 --- /dev/null +++ b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libglvnd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglvnd-debugsource | grep -v \.src | grep libglvnd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglvnd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglvnd-debugsource + CHECK_RESULT $? 0 0 "install libglvnd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libglvnd-debugsource + CHECK_RESULT $? 0 0 "remove libglvnd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-devel.sh b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8835d26c6c6764f17b51e2d09a3f12aab1ed4c13 --- /dev/null +++ b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libglvnd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglvnd-devel | grep -v \.src | grep libglvnd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglvnd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglvnd-devel + CHECK_RESULT $? 0 0 "install libglvnd-devel failed" + SLEEP_WAIT 1 + dnf remove -y libglvnd-devel + CHECK_RESULT $? 0 0 "remove libglvnd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-egl.sh b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-egl.sh new file mode 100644 index 0000000000000000000000000000000000000000..caebf1ee2bed87962d70aa582c702416159119be --- /dev/null +++ b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-egl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libglvnd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglvnd-egl | grep -v \.src | grep libglvnd-egl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglvnd-egl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglvnd-egl + CHECK_RESULT $? 0 0 "install libglvnd-egl failed" + SLEEP_WAIT 1 + dnf remove -y libglvnd-egl + CHECK_RESULT $? 0 0 "remove libglvnd-egl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-gles.sh b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-gles.sh new file mode 100644 index 0000000000000000000000000000000000000000..c205bc537d4cb37df56317b26365f521399a20e7 --- /dev/null +++ b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-gles.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libglvnd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglvnd-gles | grep -v \.src | grep libglvnd-gles + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglvnd-gles" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglvnd-gles + CHECK_RESULT $? 0 0 "install libglvnd-gles failed" + SLEEP_WAIT 1 + dnf remove -y libglvnd-gles + CHECK_RESULT $? 0 0 "remove libglvnd-gles failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-glx.sh b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-glx.sh new file mode 100644 index 0000000000000000000000000000000000000000..8255575f49ba70f641b785d61bec362d53962795 --- /dev/null +++ b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-glx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libglvnd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglvnd-glx | grep -v \.src | grep libglvnd-glx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglvnd-glx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglvnd-glx + CHECK_RESULT $? 0 0 "install libglvnd-glx failed" + SLEEP_WAIT 1 + dnf remove -y libglvnd-glx + CHECK_RESULT $? 0 0 "remove libglvnd-glx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-opengl.sh b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-opengl.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc72dd69f79c014ca2cdf566bcefef57097e7e3a --- /dev/null +++ b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd-opengl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libglvnd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglvnd-opengl | grep -v \.src | grep libglvnd-opengl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglvnd-opengl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglvnd-opengl + CHECK_RESULT $? 0 0 "install libglvnd-opengl failed" + SLEEP_WAIT 1 + dnf remove -y libglvnd-opengl + CHECK_RESULT $? 0 0 "remove libglvnd-opengl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd.sh b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd.sh new file mode 100644 index 0000000000000000000000000000000000000000..765f2a09d43b2b1b437d1d2eecc221f5046f864f --- /dev/null +++ b/testcases/cli-test/libglvnd/oe_test_libglvnd_install_and_remove_libglvnd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libglvnd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libglvnd | grep -v \.src | grep libglvnd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libglvnd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libglvnd + CHECK_RESULT $? 0 0 "install libglvnd failed" + SLEEP_WAIT 1 + dnf remove -y libglvnd + CHECK_RESULT $? 0 0 "remove libglvnd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd-debuginfo.sh b/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..615a1fcc963160bc3d248fc0bc03aafb1e20c48a --- /dev/null +++ b/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgnomekbd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgnomekbd-debuginfo | grep -v \.src | grep libgnomekbd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgnomekbd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgnomekbd-debuginfo + CHECK_RESULT $? 0 0 "install libgnomekbd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libgnomekbd-debuginfo + CHECK_RESULT $? 0 0 "remove libgnomekbd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd-debugsource.sh b/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d18ed18526eb61857f375b7690c7356cbf88b163 --- /dev/null +++ b/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgnomekbd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgnomekbd-debugsource | grep -v \.src | grep libgnomekbd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgnomekbd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgnomekbd-debugsource + CHECK_RESULT $? 0 0 "install libgnomekbd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libgnomekbd-debugsource + CHECK_RESULT $? 0 0 "remove libgnomekbd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd-devel.sh b/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..622d0e56df29e2726d93506ed2ed7dfafd7fda59 --- /dev/null +++ b/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgnomekbd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgnomekbd-devel | grep -v \.src | grep libgnomekbd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgnomekbd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgnomekbd-devel + CHECK_RESULT $? 0 0 "install libgnomekbd-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgnomekbd-devel + CHECK_RESULT $? 0 0 "remove libgnomekbd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd.sh b/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ccc7e44cb280a3381fd652adf0bedbfb4741213 --- /dev/null +++ b/testcases/cli-test/libgnomekbd/oe_test_libgnomekbd_install_and_remove_libgnomekbd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgnomekbd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgnomekbd | grep -v \.src | grep libgnomekbd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgnomekbd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgnomekbd + CHECK_RESULT $? 0 0 "install libgnomekbd failed" + SLEEP_WAIT 1 + dnf remove -y libgnomekbd + CHECK_RESULT $? 0 0 "remove libgnomekbd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-debuginfo.sh b/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0442d3fa0672b1135dfb12e92781f540a082df0e --- /dev/null +++ b/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgpg-error +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgpg-error-debuginfo | grep -v \.src | grep libgpg-error-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgpg-error-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgpg-error-debuginfo + CHECK_RESULT $? 0 0 "install libgpg-error-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libgpg-error-debuginfo + CHECK_RESULT $? 0 0 "remove libgpg-error-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-debugsource.sh b/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd8ac87c6a31c71d0199ffc80eee0cb76544becd --- /dev/null +++ b/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgpg-error +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgpg-error-debugsource | grep -v \.src | grep libgpg-error-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgpg-error-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgpg-error-debugsource + CHECK_RESULT $? 0 0 "install libgpg-error-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libgpg-error-debugsource + CHECK_RESULT $? 0 0 "remove libgpg-error-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-devel.sh b/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a76575a17bcc1b78594ec371f23c1c483fc14b9d --- /dev/null +++ b/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgpg-error +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgpg-error-devel | grep -v \.src | grep libgpg-error-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgpg-error-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgpg-error-devel + CHECK_RESULT $? 0 0 "install libgpg-error-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgpg-error-devel + CHECK_RESULT $? 0 0 "remove libgpg-error-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-help.sh b/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac0b75db5cdde24b0423a61c25a31685fd0f1117 --- /dev/null +++ b/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgpg-error +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgpg-error-help | grep -v \.src | grep libgpg-error-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgpg-error-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgpg-error-help + CHECK_RESULT $? 0 0 "install libgpg-error-help failed" + SLEEP_WAIT 1 + dnf remove -y libgpg-error-help + CHECK_RESULT $? 0 0 "remove libgpg-error-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error.sh b/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error.sh new file mode 100644 index 0000000000000000000000000000000000000000..baeabd29b53ca5711fbe533a6f71a5da1dab550b --- /dev/null +++ b/testcases/cli-test/libgpg-error/oe_test_libgpg-error_install_and_remove_libgpg-error.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgpg-error +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgpg-error | grep -v \.src | grep libgpg-error + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgpg-error" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgpg-error + CHECK_RESULT $? 0 0 "install libgpg-error failed" + SLEEP_WAIT 1 + dnf remove -y libgpg-error + CHECK_RESULT $? 0 0 "remove libgpg-error failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-debuginfo.sh b/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7fadfc5f9e550901aef2a750752158a320a8070b --- /dev/null +++ b/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgtop2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgtop2-debuginfo | grep -v \.src | grep libgtop2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgtop2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgtop2-debuginfo + CHECK_RESULT $? 0 0 "install libgtop2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libgtop2-debuginfo + CHECK_RESULT $? 0 0 "remove libgtop2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-debugsource.sh b/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0dd6c98c5fad92505cec80432f860873c1cc46ac --- /dev/null +++ b/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgtop2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgtop2-debugsource | grep -v \.src | grep libgtop2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgtop2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgtop2-debugsource + CHECK_RESULT $? 0 0 "install libgtop2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libgtop2-debugsource + CHECK_RESULT $? 0 0 "remove libgtop2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-devel.sh b/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8e0fb46597c6b67a38ba2d593a02f28a157b4e5 --- /dev/null +++ b/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgtop2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgtop2-devel | grep -v \.src | grep libgtop2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgtop2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgtop2-devel + CHECK_RESULT $? 0 0 "install libgtop2-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgtop2-devel + CHECK_RESULT $? 0 0 "remove libgtop2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-help.sh b/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6492d7384baf07842f6deef3824ed062be05bbc6 --- /dev/null +++ b/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgtop2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgtop2-help | grep -v \.src | grep libgtop2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgtop2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgtop2-help + CHECK_RESULT $? 0 0 "install libgtop2-help failed" + SLEEP_WAIT 1 + dnf remove -y libgtop2-help + CHECK_RESULT $? 0 0 "remove libgtop2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2.sh b/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2.sh new file mode 100644 index 0000000000000000000000000000000000000000..00cb918cd964e91af852dbff09cc0170982b729e --- /dev/null +++ b/testcases/cli-test/libgtop2/oe_test_libgtop2_install_and_remove_libgtop2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgtop2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgtop2 | grep -v \.src | grep libgtop2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgtop2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgtop2 + CHECK_RESULT $? 0 0 "install libgtop2 failed" + SLEEP_WAIT 1 + dnf remove -y libgtop2 + CHECK_RESULT $? 0 0 "remove libgtop2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-debuginfo.sh b/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac136124d395019815a5fb5c87d703de2f9fb422 --- /dev/null +++ b/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgudev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgudev-debuginfo | grep -v \.src | grep libgudev-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgudev-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgudev-debuginfo + CHECK_RESULT $? 0 0 "install libgudev-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libgudev-debuginfo + CHECK_RESULT $? 0 0 "remove libgudev-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-debugsource.sh b/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..234b0b019a8ed62df41a7e3de1ab725cc1567728 --- /dev/null +++ b/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgudev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgudev-debugsource | grep -v \.src | grep libgudev-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgudev-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgudev-debugsource + CHECK_RESULT $? 0 0 "install libgudev-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libgudev-debugsource + CHECK_RESULT $? 0 0 "remove libgudev-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-devel.sh b/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..94540d6d5ead160472ab434af73daa9fec60e4c2 --- /dev/null +++ b/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgudev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgudev-devel | grep -v \.src | grep libgudev-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgudev-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgudev-devel + CHECK_RESULT $? 0 0 "install libgudev-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgudev-devel + CHECK_RESULT $? 0 0 "remove libgudev-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-help.sh b/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7f482a8082f9788ca2b5b0114ac63156afb4638 --- /dev/null +++ b/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgudev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgudev-help | grep -v \.src | grep libgudev-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgudev-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgudev-help + CHECK_RESULT $? 0 0 "install libgudev-help failed" + SLEEP_WAIT 1 + dnf remove -y libgudev-help + CHECK_RESULT $? 0 0 "remove libgudev-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev.sh b/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbfb78019a4a3e973041a74aa0a47dbe97f3a668 --- /dev/null +++ b/testcases/cli-test/libgudev/oe_test_libgudev_install_and_remove_libgudev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgudev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgudev | grep -v \.src | grep libgudev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgudev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgudev + CHECK_RESULT $? 0 0 "install libgudev failed" + SLEEP_WAIT 1 + dnf remove -y libgudev + CHECK_RESULT $? 0 0 "remove libgudev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-debuginfo.sh b/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c199f541a0e454b1ee3e2436bea40d2579710ebd --- /dev/null +++ b/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgusb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgusb-debuginfo | grep -v \.src | grep libgusb-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgusb-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgusb-debuginfo + CHECK_RESULT $? 0 0 "install libgusb-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libgusb-debuginfo + CHECK_RESULT $? 0 0 "remove libgusb-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-debugsource.sh b/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb4f8749387686063ba8816aa0152e7bafc99e93 --- /dev/null +++ b/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgusb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgusb-debugsource | grep -v \.src | grep libgusb-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgusb-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgusb-debugsource + CHECK_RESULT $? 0 0 "install libgusb-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libgusb-debugsource + CHECK_RESULT $? 0 0 "remove libgusb-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-devel.sh b/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4fb2b6dc33c9e4c65a53799fb7264b31a6bb6bf7 --- /dev/null +++ b/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgusb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgusb-devel | grep -v \.src | grep libgusb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgusb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgusb-devel + CHECK_RESULT $? 0 0 "install libgusb-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgusb-devel + CHECK_RESULT $? 0 0 "remove libgusb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-help.sh b/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..840dfdd8984f59296e734f916edd777adb52d897 --- /dev/null +++ b/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgusb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgusb-help | grep -v \.src | grep libgusb-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgusb-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgusb-help + CHECK_RESULT $? 0 0 "install libgusb-help failed" + SLEEP_WAIT 1 + dnf remove -y libgusb-help + CHECK_RESULT $? 0 0 "remove libgusb-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb.sh b/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2506a4f8fc4c46b8c6bfc30a6b2e11128100a69 --- /dev/null +++ b/testcases/cli-test/libgusb/oe_test_libgusb_install_and_remove_libgusb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libgusb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgusb | grep -v \.src | grep libgusb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgusb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgusb + CHECK_RESULT $? 0 0 "install libgusb failed" + SLEEP_WAIT 1 + dnf remove -y libgusb + CHECK_RESULT $? 0 0 "remove libgusb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical-debuginfo.sh b/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..05e7a4c72edd1eff78a72120d309b62b9f4d0292 --- /dev/null +++ b/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libical +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libical-debuginfo | grep -v \.src | grep libical-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libical-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libical-debuginfo + CHECK_RESULT $? 0 0 "install libical-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libical-debuginfo + CHECK_RESULT $? 0 0 "remove libical-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical-debugsource.sh b/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..beab5b33c7dc53d7a712aa44b7b6d917d9a5b20f --- /dev/null +++ b/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libical +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libical-debugsource | grep -v \.src | grep libical-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libical-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libical-debugsource + CHECK_RESULT $? 0 0 "install libical-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libical-debugsource + CHECK_RESULT $? 0 0 "remove libical-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical-devel.sh b/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dccf106f61dc050172916a6761d082903d768a23 --- /dev/null +++ b/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libical +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libical-devel | grep -v \.src | grep libical-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libical-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libical-devel + CHECK_RESULT $? 0 0 "install libical-devel failed" + SLEEP_WAIT 1 + dnf remove -y libical-devel + CHECK_RESULT $? 0 0 "remove libical-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical.sh b/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d1871fc715dbae64608795fb23104d97a2429cc --- /dev/null +++ b/testcases/cli-test/libical/oe_test_libical_install_and_remove_libical.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libical +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libical | grep -v \.src | grep libical + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libical" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libical + CHECK_RESULT $? 0 0 "install libical failed" + SLEEP_WAIT 1 + dnf remove -y libical + CHECK_RESULT $? 0 0 "remove libical failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-debuginfo.sh b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2b8ae5b94462ea5c164044c5d17761f4fe00e9a --- /dev/null +++ b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn-debuginfo | grep -v \.src | grep libidn-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn-debuginfo + CHECK_RESULT $? 0 0 "install libidn-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libidn-debuginfo + CHECK_RESULT $? 0 0 "remove libidn-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-debugsource.sh b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..671576deb392a93153de82f06feedcf92d5156c4 --- /dev/null +++ b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn-debugsource | grep -v \.src | grep libidn-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn-debugsource + CHECK_RESULT $? 0 0 "install libidn-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libidn-debugsource + CHECK_RESULT $? 0 0 "remove libidn-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-devel.sh b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..34b355dce21ff1367bd97c2bcab1d4d33c92224f --- /dev/null +++ b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn-devel | grep -v \.src | grep libidn-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn-devel + CHECK_RESULT $? 0 0 "install libidn-devel failed" + SLEEP_WAIT 1 + dnf remove -y libidn-devel + CHECK_RESULT $? 0 0 "remove libidn-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-help.sh b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..91f0955856efec1e5ee78a2165e5dd208124b9d0 --- /dev/null +++ b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn-help | grep -v \.src | grep libidn-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn-help + CHECK_RESULT $? 0 0 "install libidn-help failed" + SLEEP_WAIT 1 + dnf remove -y libidn-help + CHECK_RESULT $? 0 0 "remove libidn-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-java.sh b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-java.sh new file mode 100644 index 0000000000000000000000000000000000000000..5facb853fd819171d74843b45f41f47c6d332966 --- /dev/null +++ b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-java.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn-java | grep -v \.src | grep libidn-java + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn-java" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn-java + CHECK_RESULT $? 0 0 "install libidn-java failed" + SLEEP_WAIT 1 + dnf remove -y libidn-java + CHECK_RESULT $? 0 0 "remove libidn-java failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-javadoc.sh b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-javadoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee64081298a6b464716c8bb5eb7016f88eebfd19 --- /dev/null +++ b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn-javadoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn-javadoc | grep -v \.src | grep libidn-javadoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn-javadoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn-javadoc + CHECK_RESULT $? 0 0 "install libidn-javadoc failed" + SLEEP_WAIT 1 + dnf remove -y libidn-javadoc + CHECK_RESULT $? 0 0 "remove libidn-javadoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn.sh b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ea69658f98f767bf68fb92648993ee523c757d7 --- /dev/null +++ b/testcases/cli-test/libidn/oe_test_libidn_install_and_remove_libidn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn | grep -v \.src | grep libidn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn + CHECK_RESULT $? 0 0 "install libidn failed" + SLEEP_WAIT 1 + dnf remove -y libidn + CHECK_RESULT $? 0 0 "remove libidn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-debuginfo.sh b/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb0a7cae854e6cff156fce8dbc6b7376a51f64d7 --- /dev/null +++ b/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn2-debuginfo | grep -v \.src | grep libidn2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn2-debuginfo + CHECK_RESULT $? 0 0 "install libidn2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libidn2-debuginfo + CHECK_RESULT $? 0 0 "remove libidn2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-debugsource.sh b/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..787a12e4d33a2df0a456b77da6019b94f816574d --- /dev/null +++ b/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn2-debugsource | grep -v \.src | grep libidn2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn2-debugsource + CHECK_RESULT $? 0 0 "install libidn2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libidn2-debugsource + CHECK_RESULT $? 0 0 "remove libidn2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-devel.sh b/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..36fa23e1913598268f033e51727d53961b38eeec --- /dev/null +++ b/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn2-devel | grep -v \.src | grep libidn2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn2-devel + CHECK_RESULT $? 0 0 "install libidn2-devel failed" + SLEEP_WAIT 1 + dnf remove -y libidn2-devel + CHECK_RESULT $? 0 0 "remove libidn2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-help.sh b/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0e0b7383e03060eb5ad8b04b1bb5b2b56e26cae --- /dev/null +++ b/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn2-help | grep -v \.src | grep libidn2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn2-help + CHECK_RESULT $? 0 0 "install libidn2-help failed" + SLEEP_WAIT 1 + dnf remove -y libidn2-help + CHECK_RESULT $? 0 0 "remove libidn2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2.sh b/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2.sh new file mode 100644 index 0000000000000000000000000000000000000000..f644a4bb0f241c2452fe470eeeada97045601c96 --- /dev/null +++ b/testcases/cli-test/libidn2/oe_test_libidn2_install_and_remove_libidn2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libidn2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libidn2 | grep -v \.src | grep libidn2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libidn2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libidn2 + CHECK_RESULT $? 0 0 "install libidn2 failed" + SLEEP_WAIT 1 + dnf remove -y libidn2 + CHECK_RESULT $? 0 0 "remove libidn2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-debuginfo.sh b/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ce1503ba2e2ae220d02e1288bfff511c93a7df9 --- /dev/null +++ b/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libijs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libijs-debuginfo | grep -v \.src | grep libijs-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libijs-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libijs-debuginfo + CHECK_RESULT $? 0 0 "install libijs-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libijs-debuginfo + CHECK_RESULT $? 0 0 "remove libijs-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-debugsource.sh b/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d884608e134ce3829f77f3a7179f9fd9993808a9 --- /dev/null +++ b/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libijs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libijs-debugsource | grep -v \.src | grep libijs-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libijs-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libijs-debugsource + CHECK_RESULT $? 0 0 "install libijs-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libijs-debugsource + CHECK_RESULT $? 0 0 "remove libijs-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-devel.sh b/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..72c5637648137bc65bb45cc971136ba17b549bc7 --- /dev/null +++ b/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libijs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libijs-devel | grep -v \.src | grep libijs-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libijs-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libijs-devel + CHECK_RESULT $? 0 0 "install libijs-devel failed" + SLEEP_WAIT 1 + dnf remove -y libijs-devel + CHECK_RESULT $? 0 0 "remove libijs-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-help.sh b/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0377254d988f00d15a24a99983ec84a44cc0140 --- /dev/null +++ b/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libijs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libijs-help | grep -v \.src | grep libijs-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libijs-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libijs-help + CHECK_RESULT $? 0 0 "install libijs-help failed" + SLEEP_WAIT 1 + dnf remove -y libijs-help + CHECK_RESULT $? 0 0 "remove libijs-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs.sh b/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbeff4a417434535e85ceac763413ec7788303b3 --- /dev/null +++ b/testcases/cli-test/libijs/oe_test_libijs_install_and_remove_libijs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libijs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libijs | grep -v \.src | grep libijs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libijs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libijs + CHECK_RESULT $? 0 0 "install libijs failed" + SLEEP_WAIT 1 + dnf remove -y libijs + CHECK_RESULT $? 0 0 "remove libijs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-debuginfo.sh b/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5313db9d6ee877da41db6b4d01ce4a6cb30ad20 --- /dev/null +++ b/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libimobiledevice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libimobiledevice-debuginfo | grep -v \.src | grep libimobiledevice-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libimobiledevice-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libimobiledevice-debuginfo + CHECK_RESULT $? 0 0 "install libimobiledevice-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libimobiledevice-debuginfo + CHECK_RESULT $? 0 0 "remove libimobiledevice-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-debugsource.sh b/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dceb94f14980c25cc583b4a209de7f3ddbee7e2 --- /dev/null +++ b/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libimobiledevice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libimobiledevice-debugsource | grep -v \.src | grep libimobiledevice-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libimobiledevice-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libimobiledevice-debugsource + CHECK_RESULT $? 0 0 "install libimobiledevice-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libimobiledevice-debugsource + CHECK_RESULT $? 0 0 "remove libimobiledevice-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-devel.sh b/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a4d711e4613723ca69d96bf1eae522097fdb4d9 --- /dev/null +++ b/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libimobiledevice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libimobiledevice-devel | grep -v \.src | grep libimobiledevice-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libimobiledevice-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libimobiledevice-devel + CHECK_RESULT $? 0 0 "install libimobiledevice-devel failed" + SLEEP_WAIT 1 + dnf remove -y libimobiledevice-devel + CHECK_RESULT $? 0 0 "remove libimobiledevice-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-help.sh b/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f178aa949f9840fa1a7e988691cf0bda5ca126a0 --- /dev/null +++ b/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libimobiledevice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libimobiledevice-help | grep -v \.src | grep libimobiledevice-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libimobiledevice-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libimobiledevice-help + CHECK_RESULT $? 0 0 "install libimobiledevice-help failed" + SLEEP_WAIT 1 + dnf remove -y libimobiledevice-help + CHECK_RESULT $? 0 0 "remove libimobiledevice-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice.sh b/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d1e04d4036db5ce51cef89d5f0ae52b5a766fcd --- /dev/null +++ b/testcases/cli-test/libimobiledevice/oe_test_libimobiledevice_install_and_remove_libimobiledevice.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libimobiledevice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libimobiledevice | grep -v \.src | grep libimobiledevice + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libimobiledevice" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libimobiledevice + CHECK_RESULT $? 0 0 "install libimobiledevice failed" + SLEEP_WAIT 1 + dnf remove -y libimobiledevice + CHECK_RESULT $? 0 0 "remove libimobiledevice failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-debuginfo.sh b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..281335377e2b2bdf4bbdb6badadf034118049f03 --- /dev/null +++ b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libindicator-debuginfo | grep -v \.src | grep libindicator-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libindicator-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libindicator-debuginfo + CHECK_RESULT $? 0 0 "install libindicator-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libindicator-debuginfo + CHECK_RESULT $? 0 0 "remove libindicator-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-debugsource.sh b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..323a48daef1c49f8dd4015cf6ab060ffa8d8ff39 --- /dev/null +++ b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libindicator-debugsource | grep -v \.src | grep libindicator-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libindicator-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libindicator-debugsource + CHECK_RESULT $? 0 0 "install libindicator-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libindicator-debugsource + CHECK_RESULT $? 0 0 "remove libindicator-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-devel.sh b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f33e9170a8599cb82f2d8b5622e5a937ee50da8 --- /dev/null +++ b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libindicator-devel | grep -v \.src | grep libindicator-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libindicator-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libindicator-devel + CHECK_RESULT $? 0 0 "install libindicator-devel failed" + SLEEP_WAIT 1 + dnf remove -y libindicator-devel + CHECK_RESULT $? 0 0 "remove libindicator-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-gtk3-devel.sh b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-gtk3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..df9a3f7f8d697c797a0a0fb0d8eab58b606ab1ad --- /dev/null +++ b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-gtk3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libindicator-gtk3-devel | grep -v \.src | grep libindicator-gtk3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libindicator-gtk3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libindicator-gtk3-devel + CHECK_RESULT $? 0 0 "install libindicator-gtk3-devel failed" + SLEEP_WAIT 1 + dnf remove -y libindicator-gtk3-devel + CHECK_RESULT $? 0 0 "remove libindicator-gtk3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-gtk3.sh b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-gtk3.sh new file mode 100644 index 0000000000000000000000000000000000000000..225f3a8c1cfa226ed44af497951b4316ebfa7a92 --- /dev/null +++ b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator-gtk3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libindicator-gtk3 | grep -v \.src | grep libindicator-gtk3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libindicator-gtk3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libindicator-gtk3 + CHECK_RESULT $? 0 0 "install libindicator-gtk3 failed" + SLEEP_WAIT 1 + dnf remove -y libindicator-gtk3 + CHECK_RESULT $? 0 0 "remove libindicator-gtk3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator.sh b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bde7ce5c58ce3c089c9cbd2cadb371ea55da3c9 --- /dev/null +++ b/testcases/cli-test/libindicator/oe_test_libindicator_install_and_remove_libindicator.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libindicator +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libindicator | grep -v \.src | grep libindicator + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libindicator" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libindicator + CHECK_RESULT $? 0 0 "install libindicator failed" + SLEEP_WAIT 1 + dnf remove -y libindicator + CHECK_RESULT $? 0 0 "remove libindicator failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-debuginfo.sh b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..02681c27be7be6cb41281a68dd08e3f9b26fcfdc --- /dev/null +++ b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libinput-debuginfo | grep -v \.src | grep libinput-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libinput-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libinput-debuginfo + CHECK_RESULT $? 0 0 "install libinput-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libinput-debuginfo + CHECK_RESULT $? 0 0 "remove libinput-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-debugsource.sh b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb47c7a54f2c12d4c15963229c7302f05b4f704d --- /dev/null +++ b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libinput-debugsource | grep -v \.src | grep libinput-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libinput-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libinput-debugsource + CHECK_RESULT $? 0 0 "install libinput-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libinput-debugsource + CHECK_RESULT $? 0 0 "remove libinput-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-devel.sh b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a81efb9d9e159e76005817ff284fa37996691cc8 --- /dev/null +++ b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libinput-devel | grep -v \.src | grep libinput-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libinput-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libinput-devel + CHECK_RESULT $? 0 0 "install libinput-devel failed" + SLEEP_WAIT 1 + dnf remove -y libinput-devel + CHECK_RESULT $? 0 0 "remove libinput-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-help.sh b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..093cd7147d016d02cc4adb7c716ad8df4e777ae5 --- /dev/null +++ b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libinput-help | grep -v \.src | grep libinput-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libinput-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libinput-help + CHECK_RESULT $? 0 0 "install libinput-help failed" + SLEEP_WAIT 1 + dnf remove -y libinput-help + CHECK_RESULT $? 0 0 "remove libinput-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-utils.sh b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..57c6ea5887cfaaf7b5aa42936bbfa1a5c2ff702c --- /dev/null +++ b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libinput-utils | grep -v \.src | grep libinput-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libinput-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libinput-utils + CHECK_RESULT $? 0 0 "install libinput-utils failed" + SLEEP_WAIT 1 + dnf remove -y libinput-utils + CHECK_RESULT $? 0 0 "remove libinput-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput.sh b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput.sh new file mode 100644 index 0000000000000000000000000000000000000000..62ba9f8443fa936aff3662addd7fa93f6aaeb9f9 --- /dev/null +++ b/testcases/cli-test/libinput/oe_test_libinput_install_and_remove_libinput.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libinput | grep -v \.src | grep libinput + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libinput" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libinput + CHECK_RESULT $? 0 0 "install libinput failed" + SLEEP_WAIT 1 + dnf remove -y libinput + CHECK_RESULT $? 0 0 "remove libinput failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt-debuginfo.sh b/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..510b1416befe4744f1b70c26a3b543180e3a7eae --- /dev/null +++ b/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libipt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libipt-debuginfo | grep -v \.src | grep libipt-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libipt-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libipt-debuginfo + CHECK_RESULT $? 0 0 "install libipt-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libipt-debuginfo + CHECK_RESULT $? 0 0 "remove libipt-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt-debugsource.sh b/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f98868015dcfe56708f3d6bddf97a53eff4fdb7 --- /dev/null +++ b/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libipt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libipt-debugsource | grep -v \.src | grep libipt-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libipt-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libipt-debugsource + CHECK_RESULT $? 0 0 "install libipt-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libipt-debugsource + CHECK_RESULT $? 0 0 "remove libipt-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt-devel.sh b/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ca01acc85d5253829ede63d49539ecbfa7a167f --- /dev/null +++ b/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libipt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libipt-devel | grep -v \.src | grep libipt-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libipt-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libipt-devel + CHECK_RESULT $? 0 0 "install libipt-devel failed" + SLEEP_WAIT 1 + dnf remove -y libipt-devel + CHECK_RESULT $? 0 0 "remove libipt-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt.sh b/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt.sh new file mode 100644 index 0000000000000000000000000000000000000000..b18f6d146f63774a0295d70325770c45b5e87531 --- /dev/null +++ b/testcases/cli-test/libipt/oe_test_libipt_install_and_remove_libipt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libipt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libipt | grep -v \.src | grep libipt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libipt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libipt + CHECK_RESULT $? 0 0 "install libipt failed" + SLEEP_WAIT 1 + dnf remove -y libipt + CHECK_RESULT $? 0 0 "remove libipt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata-debuginfo.sh b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8273906a5d6422dac44e095f6040996b438405cc --- /dev/null +++ b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libiptcdata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libiptcdata-debuginfo | grep -v \.src | grep libiptcdata-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libiptcdata-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libiptcdata-debuginfo + CHECK_RESULT $? 0 0 "install libiptcdata-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libiptcdata-debuginfo + CHECK_RESULT $? 0 0 "remove libiptcdata-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata-debugsource.sh b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..78b35fe764ea13c3eeab7a7fb27d98f45e15b30b --- /dev/null +++ b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libiptcdata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libiptcdata-debugsource | grep -v \.src | grep libiptcdata-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libiptcdata-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libiptcdata-debugsource + CHECK_RESULT $? 0 0 "install libiptcdata-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libiptcdata-debugsource + CHECK_RESULT $? 0 0 "remove libiptcdata-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata-devel.sh b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..52cdbfd2e1cb9549903b5c1cae2da53a22c3d6a6 --- /dev/null +++ b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libiptcdata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libiptcdata-devel | grep -v \.src | grep libiptcdata-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libiptcdata-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libiptcdata-devel + CHECK_RESULT $? 0 0 "install libiptcdata-devel failed" + SLEEP_WAIT 1 + dnf remove -y libiptcdata-devel + CHECK_RESULT $? 0 0 "remove libiptcdata-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata.sh b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata.sh new file mode 100644 index 0000000000000000000000000000000000000000..928181fe51149b9ed1a45074a76393fa32bf937d --- /dev/null +++ b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_libiptcdata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libiptcdata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libiptcdata | grep -v \.src | grep libiptcdata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libiptcdata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libiptcdata + CHECK_RESULT $? 0 0 "install libiptcdata failed" + SLEEP_WAIT 1 + dnf remove -y libiptcdata + CHECK_RESULT $? 0 0 "remove libiptcdata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_python2-libiptcdata.sh b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_python2-libiptcdata.sh new file mode 100644 index 0000000000000000000000000000000000000000..513bc124cff7eae6c74cf62c401aa9f5756feb79 --- /dev/null +++ b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_python2-libiptcdata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libiptcdata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libiptcdata | grep -v \.src | grep python2-libiptcdata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libiptcdata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libiptcdata + CHECK_RESULT $? 0 0 "install python2-libiptcdata failed" + SLEEP_WAIT 1 + dnf remove -y python2-libiptcdata + CHECK_RESULT $? 0 0 "remove python2-libiptcdata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_python3-libiptcdata.sh b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_python3-libiptcdata.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7362095940b3b5e16949989a079b341b8f7653c --- /dev/null +++ b/testcases/cli-test/libiptcdata/oe_test_libiptcdata_install_and_remove_python3-libiptcdata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libiptcdata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libiptcdata | grep -v \.src | grep python3-libiptcdata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libiptcdata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libiptcdata + CHECK_RESULT $? 0 0 "install python3-libiptcdata failed" + SLEEP_WAIT 1 + dnf remove -y python3-libiptcdata + CHECK_RESULT $? 0 0 "remove python3-libiptcdata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-debuginfo.sh b/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..84233df1bf29c8e2f9ecf5bbbc4ae8735477d1c3 --- /dev/null +++ b/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjcat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjcat-debuginfo | grep -v \.src | grep libjcat-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjcat-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjcat-debuginfo + CHECK_RESULT $? 0 0 "install libjcat-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libjcat-debuginfo + CHECK_RESULT $? 0 0 "remove libjcat-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-debugsource.sh b/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae01a20efe405c947707af144173d3caf36fa6dd --- /dev/null +++ b/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjcat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjcat-debugsource | grep -v \.src | grep libjcat-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjcat-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjcat-debugsource + CHECK_RESULT $? 0 0 "install libjcat-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libjcat-debugsource + CHECK_RESULT $? 0 0 "remove libjcat-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-devel.sh b/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b6c879b6f9d2ffd45d5630db00c7f97058db837 --- /dev/null +++ b/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjcat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjcat-devel | grep -v \.src | grep libjcat-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjcat-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjcat-devel + CHECK_RESULT $? 0 0 "install libjcat-devel failed" + SLEEP_WAIT 1 + dnf remove -y libjcat-devel + CHECK_RESULT $? 0 0 "remove libjcat-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-tests.sh b/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..4af694eb71628855376d1d71456ef750b2442c1e --- /dev/null +++ b/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjcat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjcat-tests | grep -v \.src | grep libjcat-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjcat-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjcat-tests + CHECK_RESULT $? 0 0 "install libjcat-tests failed" + SLEEP_WAIT 1 + dnf remove -y libjcat-tests + CHECK_RESULT $? 0 0 "remove libjcat-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat.sh b/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat.sh new file mode 100644 index 0000000000000000000000000000000000000000..7081229d1ac92ffa9f2780734457d47976224e4b --- /dev/null +++ b/testcases/cli-test/libjcat/oe_test_libjcat_install_and_remove_libjcat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjcat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjcat | grep -v \.src | grep libjcat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjcat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjcat + CHECK_RESULT $? 0 0 "install libjcat failed" + SLEEP_WAIT 1 + dnf remove -y libjcat + CHECK_RESULT $? 0 0 "remove libjcat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-debuginfo.sh b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1a05eef9d631f216a433b5c5fc3522f85c47c31 --- /dev/null +++ b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjpeg-turbo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjpeg-turbo-debuginfo | grep -v \.src | grep libjpeg-turbo-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjpeg-turbo-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjpeg-turbo-debuginfo + CHECK_RESULT $? 0 0 "install libjpeg-turbo-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libjpeg-turbo-debuginfo + CHECK_RESULT $? 0 0 "remove libjpeg-turbo-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-debugsource.sh b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1978a57130361163a39ec0d0f3af60c1a5e54400 --- /dev/null +++ b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjpeg-turbo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjpeg-turbo-debugsource | grep -v \.src | grep libjpeg-turbo-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjpeg-turbo-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjpeg-turbo-debugsource + CHECK_RESULT $? 0 0 "install libjpeg-turbo-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libjpeg-turbo-debugsource + CHECK_RESULT $? 0 0 "remove libjpeg-turbo-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-devel.sh b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e9296b9ea466897eec89a352c606e38a87a2106 --- /dev/null +++ b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjpeg-turbo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjpeg-turbo-devel | grep -v \.src | grep libjpeg-turbo-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjpeg-turbo-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjpeg-turbo-devel + CHECK_RESULT $? 0 0 "install libjpeg-turbo-devel failed" + SLEEP_WAIT 1 + dnf remove -y libjpeg-turbo-devel + CHECK_RESULT $? 0 0 "remove libjpeg-turbo-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-help.sh b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0aa92a8a49e4f3c222b32e59d1f4ba1ef0c4ed4 --- /dev/null +++ b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjpeg-turbo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjpeg-turbo-help | grep -v \.src | grep libjpeg-turbo-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjpeg-turbo-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjpeg-turbo-help + CHECK_RESULT $? 0 0 "install libjpeg-turbo-help failed" + SLEEP_WAIT 1 + dnf remove -y libjpeg-turbo-help + CHECK_RESULT $? 0 0 "remove libjpeg-turbo-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-utils.sh b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a73bc9e5f462cc8fc9542d1b1572ede0f142696 --- /dev/null +++ b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjpeg-turbo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjpeg-turbo-utils | grep -v \.src | grep libjpeg-turbo-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjpeg-turbo-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjpeg-turbo-utils + CHECK_RESULT $? 0 0 "install libjpeg-turbo-utils failed" + SLEEP_WAIT 1 + dnf remove -y libjpeg-turbo-utils + CHECK_RESULT $? 0 0 "remove libjpeg-turbo-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo.sh b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd8f1995fb058535513c3e87222eae9c790ac7a8 --- /dev/null +++ b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_libjpeg-turbo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjpeg-turbo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libjpeg-turbo | grep -v \.src | grep libjpeg-turbo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libjpeg-turbo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libjpeg-turbo + CHECK_RESULT $? 0 0 "install libjpeg-turbo failed" + SLEEP_WAIT 1 + dnf remove -y libjpeg-turbo + CHECK_RESULT $? 0 0 "remove libjpeg-turbo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_turbojpeg-devel.sh b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_turbojpeg-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..406fe947678d59007f37fd800094ff8c864dfc9d --- /dev/null +++ b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_turbojpeg-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjpeg-turbo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available turbojpeg-devel | grep -v \.src | grep turbojpeg-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm turbojpeg-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y turbojpeg-devel + CHECK_RESULT $? 0 0 "install turbojpeg-devel failed" + SLEEP_WAIT 1 + dnf remove -y turbojpeg-devel + CHECK_RESULT $? 0 0 "remove turbojpeg-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_turbojpeg.sh b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_turbojpeg.sh new file mode 100644 index 0000000000000000000000000000000000000000..cea0a0ce07e4d8b336d04fd8ece501436f3b1ff4 --- /dev/null +++ b/testcases/cli-test/libjpeg-turbo/oe_test_libjpeg-turbo_install_and_remove_turbojpeg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libjpeg-turbo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available turbojpeg | grep -v \.src | grep turbojpeg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm turbojpeg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y turbojpeg + CHECK_RESULT $? 0 0 "install turbojpeg failed" + SLEEP_WAIT 1 + dnf remove -y turbojpeg + CHECK_RESULT $? 0 0 "remove turbojpeg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-debuginfo.sh b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..daf8ce55d4efd520bedeb0368f412c58364c246e --- /dev/null +++ b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libkcapi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libkcapi-debuginfo | grep -v \.src | grep libkcapi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libkcapi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libkcapi-debuginfo + CHECK_RESULT $? 0 0 "install libkcapi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libkcapi-debuginfo + CHECK_RESULT $? 0 0 "remove libkcapi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-debugsource.sh b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1138dd8b5bc14051a5798ac065461669c7669e82 --- /dev/null +++ b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libkcapi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libkcapi-debugsource | grep -v \.src | grep libkcapi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libkcapi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libkcapi-debugsource + CHECK_RESULT $? 0 0 "install libkcapi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libkcapi-debugsource + CHECK_RESULT $? 0 0 "remove libkcapi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-devel.sh b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..508b0719a1072de57edc6cebdee694b5d93e3028 --- /dev/null +++ b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libkcapi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libkcapi-devel | grep -v \.src | grep libkcapi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libkcapi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libkcapi-devel + CHECK_RESULT $? 0 0 "install libkcapi-devel failed" + SLEEP_WAIT 1 + dnf remove -y libkcapi-devel + CHECK_RESULT $? 0 0 "remove libkcapi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-help.sh b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0851fba424a5ebccbea03484cd9e4016964cf40 --- /dev/null +++ b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libkcapi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libkcapi-help | grep -v \.src | grep libkcapi-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libkcapi-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libkcapi-help + CHECK_RESULT $? 0 0 "install libkcapi-help failed" + SLEEP_WAIT 1 + dnf remove -y libkcapi-help + CHECK_RESULT $? 0 0 "remove libkcapi-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-tests.sh b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3f30408563856d66027ee471e0488f7939526eb --- /dev/null +++ b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libkcapi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libkcapi-tests | grep -v \.src | grep libkcapi-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libkcapi-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libkcapi-tests + CHECK_RESULT $? 0 0 "install libkcapi-tests failed" + SLEEP_WAIT 1 + dnf remove -y libkcapi-tests + CHECK_RESULT $? 0 0 "remove libkcapi-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi.sh b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi.sh new file mode 100644 index 0000000000000000000000000000000000000000..065f6d0ec90c3ede68ff91ea754bc6c13c6f9767 --- /dev/null +++ b/testcases/cli-test/libkcapi/oe_test_libkcapi_install_and_remove_libkcapi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libkcapi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libkcapi | grep -v \.src | grep libkcapi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libkcapi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libkcapi + CHECK_RESULT $? 0 0 "install libkcapi failed" + SLEEP_WAIT 1 + dnf remove -y libkcapi + CHECK_RESULT $? 0 0 "remove libkcapi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-debuginfo.sh b/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3627299434bb5fec4ea95b25417164787e24f4aa --- /dev/null +++ b/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libksba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libksba-debuginfo | grep -v \.src | grep libksba-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libksba-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libksba-debuginfo + CHECK_RESULT $? 0 0 "install libksba-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libksba-debuginfo + CHECK_RESULT $? 0 0 "remove libksba-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-debugsource.sh b/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfc5472a6c5fcc0fa0c015ed12478390791a1c27 --- /dev/null +++ b/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libksba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libksba-debugsource | grep -v \.src | grep libksba-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libksba-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libksba-debugsource + CHECK_RESULT $? 0 0 "install libksba-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libksba-debugsource + CHECK_RESULT $? 0 0 "remove libksba-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-devel.sh b/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..42f4e0ef8f96ad58737e269fe788870a368ff1fa --- /dev/null +++ b/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libksba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libksba-devel | grep -v \.src | grep libksba-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libksba-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libksba-devel + CHECK_RESULT $? 0 0 "install libksba-devel failed" + SLEEP_WAIT 1 + dnf remove -y libksba-devel + CHECK_RESULT $? 0 0 "remove libksba-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-help.sh b/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..93cd8f32430e416cdfc5d2fc30a49c2e9b0e9bdc --- /dev/null +++ b/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libksba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libksba-help | grep -v \.src | grep libksba-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libksba-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libksba-help + CHECK_RESULT $? 0 0 "install libksba-help failed" + SLEEP_WAIT 1 + dnf remove -y libksba-help + CHECK_RESULT $? 0 0 "remove libksba-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba.sh b/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae6892ee979443d5fd5b14c184b9b0e98118120e --- /dev/null +++ b/testcases/cli-test/libksba/oe_test_libksba_install_and_remove_libksba.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libksba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libksba | grep -v \.src | grep libksba + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libksba" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libksba + CHECK_RESULT $? 0 0 "install libksba failed" + SLEEP_WAIT 1 + dnf remove -y libksba + CHECK_RESULT $? 0 0 "remove libksba failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-debuginfo.sh b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..33a7f2cf3f67e878de0c52ef3b67ffbe3f3688a4 --- /dev/null +++ b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libldb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libldb-debuginfo | grep -v \.src | grep libldb-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libldb-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libldb-debuginfo + CHECK_RESULT $? 0 0 "install libldb-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libldb-debuginfo + CHECK_RESULT $? 0 0 "remove libldb-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-debugsource.sh b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa01537c11289d168fd1b3920086e6d04d54e1bc --- /dev/null +++ b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libldb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libldb-debugsource | grep -v \.src | grep libldb-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libldb-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libldb-debugsource + CHECK_RESULT $? 0 0 "install libldb-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libldb-debugsource + CHECK_RESULT $? 0 0 "remove libldb-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-devel.sh b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..252e166e119d8c0bbdcd6b76ab9f2cf717e5ad31 --- /dev/null +++ b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libldb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libldb-devel | grep -v \.src | grep libldb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libldb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libldb-devel + CHECK_RESULT $? 0 0 "install libldb-devel failed" + SLEEP_WAIT 1 + dnf remove -y libldb-devel + CHECK_RESULT $? 0 0 "remove libldb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-help.sh b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab4919d76a5498595b653b902141446fa1612ffd --- /dev/null +++ b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libldb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libldb-help | grep -v \.src | grep libldb-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libldb-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libldb-help + CHECK_RESULT $? 0 0 "install libldb-help failed" + SLEEP_WAIT 1 + dnf remove -y libldb-help + CHECK_RESULT $? 0 0 "remove libldb-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb.sh b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ab188e44a0b20743061614f3084979f61e7eb18 --- /dev/null +++ b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_libldb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libldb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libldb | grep -v \.src | grep libldb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libldb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libldb + CHECK_RESULT $? 0 0 "install libldb failed" + SLEEP_WAIT 1 + dnf remove -y libldb + CHECK_RESULT $? 0 0 "remove libldb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python-ldb-devel-common.sh b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python-ldb-devel-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..6894eac3b00444a114548108054c8227c39caf28 --- /dev/null +++ b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python-ldb-devel-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libldb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-ldb-devel-common | grep -v \.src | grep python-ldb-devel-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-ldb-devel-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-ldb-devel-common + CHECK_RESULT $? 0 0 "install python-ldb-devel-common failed" + SLEEP_WAIT 1 + dnf remove -y python-ldb-devel-common + CHECK_RESULT $? 0 0 "remove python-ldb-devel-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python2-ldb-devel.sh b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python2-ldb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a311ae21f10b9ef82e1ecc657081a7e19f0126e --- /dev/null +++ b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python2-ldb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libldb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-ldb-devel | grep -v \.src | grep python2-ldb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-ldb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-ldb-devel + CHECK_RESULT $? 0 0 "install python2-ldb-devel failed" + SLEEP_WAIT 1 + dnf remove -y python2-ldb-devel + CHECK_RESULT $? 0 0 "remove python2-ldb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python2-ldb.sh b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python2-ldb.sh new file mode 100644 index 0000000000000000000000000000000000000000..35664ce8ccb3bc88ef0fb66deeb6457a9d5ab0f9 --- /dev/null +++ b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python2-ldb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libldb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-ldb | grep -v \.src | grep python2-ldb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-ldb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-ldb + CHECK_RESULT $? 0 0 "install python2-ldb failed" + SLEEP_WAIT 1 + dnf remove -y python2-ldb + CHECK_RESULT $? 0 0 "remove python2-ldb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python3-ldb-devel.sh b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python3-ldb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8486322ec98c282e828cbc4cb02ec2e5995f1291 --- /dev/null +++ b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python3-ldb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libldb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-ldb-devel | grep -v \.src | grep python3-ldb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-ldb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-ldb-devel + CHECK_RESULT $? 0 0 "install python3-ldb-devel failed" + SLEEP_WAIT 1 + dnf remove -y python3-ldb-devel + CHECK_RESULT $? 0 0 "remove python3-ldb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python3-ldb.sh b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python3-ldb.sh new file mode 100644 index 0000000000000000000000000000000000000000..6768d573f9da2b551a27ba60025504e834f65197 --- /dev/null +++ b/testcases/cli-test/libldb/oe_test_libldb_install_and_remove_python3-ldb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libldb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-ldb | grep -v \.src | grep python3-ldb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-ldb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-ldb + CHECK_RESULT $? 0 0 "install python3-ldb failed" + SLEEP_WAIT 1 + dnf remove -y python3-ldb + CHECK_RESULT $? 0 0 "remove python3-ldb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-debuginfo.sh b/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..be59bbf1d2934cdb054e9c16b640f758cce5ec58 --- /dev/null +++ b/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblockfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblockfile-debuginfo | grep -v \.src | grep liblockfile-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblockfile-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblockfile-debuginfo + CHECK_RESULT $? 0 0 "install liblockfile-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y liblockfile-debuginfo + CHECK_RESULT $? 0 0 "remove liblockfile-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-debugsource.sh b/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8bf81b60a14e9b925f6701a75241b11f9c1928b --- /dev/null +++ b/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblockfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblockfile-debugsource | grep -v \.src | grep liblockfile-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblockfile-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblockfile-debugsource + CHECK_RESULT $? 0 0 "install liblockfile-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y liblockfile-debugsource + CHECK_RESULT $? 0 0 "remove liblockfile-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-devel.sh b/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbcd058550e0bd932689e10b2e24ca3b01cbed10 --- /dev/null +++ b/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblockfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblockfile-devel | grep -v \.src | grep liblockfile-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblockfile-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblockfile-devel + CHECK_RESULT $? 0 0 "install liblockfile-devel failed" + SLEEP_WAIT 1 + dnf remove -y liblockfile-devel + CHECK_RESULT $? 0 0 "remove liblockfile-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-help.sh b/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fea3ec8faa057e06bb14f43ca3e04bc164a302b0 --- /dev/null +++ b/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblockfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblockfile-help | grep -v \.src | grep liblockfile-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblockfile-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblockfile-help + CHECK_RESULT $? 0 0 "install liblockfile-help failed" + SLEEP_WAIT 1 + dnf remove -y liblockfile-help + CHECK_RESULT $? 0 0 "remove liblockfile-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile.sh b/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile.sh new file mode 100644 index 0000000000000000000000000000000000000000..207178ccba796adc0218426750493bcc1b6efbc6 --- /dev/null +++ b/testcases/cli-test/liblockfile/oe_test_liblockfile_install_and_remove_liblockfile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblockfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblockfile | grep -v \.src | grep liblockfile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblockfile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblockfile + CHECK_RESULT $? 0 0 "install liblockfile failed" + SLEEP_WAIT 1 + dnf remove -y liblockfile + CHECK_RESULT $? 0 0 "remove liblockfile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-debuginfo.sh b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9195f0346f6c3743a46336f10704da8dfd4a987 --- /dev/null +++ b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblognorm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblognorm-debuginfo | grep -v \.src | grep liblognorm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblognorm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblognorm-debuginfo + CHECK_RESULT $? 0 0 "install liblognorm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y liblognorm-debuginfo + CHECK_RESULT $? 0 0 "remove liblognorm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-debugsource.sh b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc7c5acc0780c25616fbcc216461e2253f8f086c --- /dev/null +++ b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblognorm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblognorm-debugsource | grep -v \.src | grep liblognorm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblognorm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblognorm-debugsource + CHECK_RESULT $? 0 0 "install liblognorm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y liblognorm-debugsource + CHECK_RESULT $? 0 0 "remove liblognorm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-devel.sh b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..58a4e2625ba6bc6343733dde0f3f3be3db746856 --- /dev/null +++ b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblognorm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblognorm-devel | grep -v \.src | grep liblognorm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblognorm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblognorm-devel + CHECK_RESULT $? 0 0 "install liblognorm-devel failed" + SLEEP_WAIT 1 + dnf remove -y liblognorm-devel + CHECK_RESULT $? 0 0 "remove liblognorm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-help.sh b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7366ef2e905c8eab9eb8ad3d52a318e2f591ba4f --- /dev/null +++ b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblognorm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblognorm-help | grep -v \.src | grep liblognorm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblognorm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblognorm-help + CHECK_RESULT $? 0 0 "install liblognorm-help failed" + SLEEP_WAIT 1 + dnf remove -y liblognorm-help + CHECK_RESULT $? 0 0 "remove liblognorm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-utils.sh b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..5278bb90b808b5f023cea27fe41b4826815703a0 --- /dev/null +++ b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblognorm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblognorm-utils | grep -v \.src | grep liblognorm-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblognorm-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblognorm-utils + CHECK_RESULT $? 0 0 "install liblognorm-utils failed" + SLEEP_WAIT 1 + dnf remove -y liblognorm-utils + CHECK_RESULT $? 0 0 "remove liblognorm-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm.sh b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm.sh new file mode 100644 index 0000000000000000000000000000000000000000..d06d631bd27dd20167cb6188e8c67568dc9d91c6 --- /dev/null +++ b/testcases/cli-test/liblognorm/oe_test_liblognorm_install_and_remove_liblognorm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liblognorm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liblognorm | grep -v \.src | grep liblognorm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liblognorm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liblognorm + CHECK_RESULT $? 0 0 "install liblognorm failed" + SLEEP_WAIT 1 + dnf remove -y liblognorm + CHECK_RESULT $? 0 0 "remove liblognorm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-debuginfo.sh b/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a8a19c7bcd48fce11089ed9bb3a81333f476f4e --- /dev/null +++ b/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmaxminddb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmaxminddb-debuginfo | grep -v \.src | grep libmaxminddb-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmaxminddb-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmaxminddb-debuginfo + CHECK_RESULT $? 0 0 "install libmaxminddb-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libmaxminddb-debuginfo + CHECK_RESULT $? 0 0 "remove libmaxminddb-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-debugsource.sh b/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8902c0f1be0204877337d002cd74298861f0d780 --- /dev/null +++ b/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmaxminddb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmaxminddb-debugsource | grep -v \.src | grep libmaxminddb-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmaxminddb-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmaxminddb-debugsource + CHECK_RESULT $? 0 0 "install libmaxminddb-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libmaxminddb-debugsource + CHECK_RESULT $? 0 0 "remove libmaxminddb-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-devel.sh b/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..18cffd8484463cd68a3df4303e10290fd684d82d --- /dev/null +++ b/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmaxminddb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmaxminddb-devel | grep -v \.src | grep libmaxminddb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmaxminddb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmaxminddb-devel + CHECK_RESULT $? 0 0 "install libmaxminddb-devel failed" + SLEEP_WAIT 1 + dnf remove -y libmaxminddb-devel + CHECK_RESULT $? 0 0 "remove libmaxminddb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-help.sh b/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..06d05bc9c2ed12b36d3b263ab18dd5d0bb8efcdb --- /dev/null +++ b/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmaxminddb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmaxminddb-help | grep -v \.src | grep libmaxminddb-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmaxminddb-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmaxminddb-help + CHECK_RESULT $? 0 0 "install libmaxminddb-help failed" + SLEEP_WAIT 1 + dnf remove -y libmaxminddb-help + CHECK_RESULT $? 0 0 "remove libmaxminddb-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb.sh b/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb.sh new file mode 100644 index 0000000000000000000000000000000000000000..acee15e8f9eb4fc71b7a941119bec61f1144567a --- /dev/null +++ b/testcases/cli-test/libmaxminddb/oe_test_libmaxminddb_install_and_remove_libmaxminddb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmaxminddb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmaxminddb | grep -v \.src | grep libmaxminddb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmaxminddb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmaxminddb + CHECK_RESULT $? 0 0 "install libmaxminddb failed" + SLEEP_WAIT 1 + dnf remove -y libmaxminddb + CHECK_RESULT $? 0 0 "remove libmaxminddb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-debuginfo.sh b/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5c12957de87da7799e8cb7bab7730e75eac5c9a --- /dev/null +++ b/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmbim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmbim-debuginfo | grep -v \.src | grep libmbim-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmbim-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmbim-debuginfo + CHECK_RESULT $? 0 0 "install libmbim-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libmbim-debuginfo + CHECK_RESULT $? 0 0 "remove libmbim-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-debugsource.sh b/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..faee4efba76b6cfed5ca2221ab0420e05ae98624 --- /dev/null +++ b/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmbim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmbim-debugsource | grep -v \.src | grep libmbim-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmbim-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmbim-debugsource + CHECK_RESULT $? 0 0 "install libmbim-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libmbim-debugsource + CHECK_RESULT $? 0 0 "remove libmbim-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-devel.sh b/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6871b8c839891c0d1ca66be6b68e847c211fc7a --- /dev/null +++ b/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmbim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmbim-devel | grep -v \.src | grep libmbim-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmbim-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmbim-devel + CHECK_RESULT $? 0 0 "install libmbim-devel failed" + SLEEP_WAIT 1 + dnf remove -y libmbim-devel + CHECK_RESULT $? 0 0 "remove libmbim-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-help.sh b/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..50faea671a52d99c87e1a046d5f6d57e32b044d6 --- /dev/null +++ b/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmbim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmbim-help | grep -v \.src | grep libmbim-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmbim-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmbim-help + CHECK_RESULT $? 0 0 "install libmbim-help failed" + SLEEP_WAIT 1 + dnf remove -y libmbim-help + CHECK_RESULT $? 0 0 "remove libmbim-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim.sh b/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim.sh new file mode 100644 index 0000000000000000000000000000000000000000..c500402a5ab1582a775b8c726479f7330198d9f8 --- /dev/null +++ b/testcases/cli-test/libmbim/oe_test_libmbim_install_and_remove_libmbim.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmbim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmbim | grep -v \.src | grep libmbim + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmbim" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmbim + CHECK_RESULT $? 0 0 "install libmbim failed" + SLEEP_WAIT 1 + dnf remove -y libmbim + CHECK_RESULT $? 0 0 "remove libmbim failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-debuginfo.sh b/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d38bc8a5a84dc4589a6a1e532fe6a1475196178 --- /dev/null +++ b/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmetalink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmetalink-debuginfo | grep -v \.src | grep libmetalink-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmetalink-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmetalink-debuginfo + CHECK_RESULT $? 0 0 "install libmetalink-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libmetalink-debuginfo + CHECK_RESULT $? 0 0 "remove libmetalink-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-debugsource.sh b/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c107892b77a8c10fbb9c89b23e6d3ca5a1857115 --- /dev/null +++ b/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmetalink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmetalink-debugsource | grep -v \.src | grep libmetalink-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmetalink-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmetalink-debugsource + CHECK_RESULT $? 0 0 "install libmetalink-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libmetalink-debugsource + CHECK_RESULT $? 0 0 "remove libmetalink-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-devel.sh b/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2aa753b92d39239ad7d8577142636e398ea50626 --- /dev/null +++ b/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmetalink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmetalink-devel | grep -v \.src | grep libmetalink-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmetalink-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmetalink-devel + CHECK_RESULT $? 0 0 "install libmetalink-devel failed" + SLEEP_WAIT 1 + dnf remove -y libmetalink-devel + CHECK_RESULT $? 0 0 "remove libmetalink-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-help.sh b/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d537c0c7641bee462c14e33b670daf2b9da7f5b --- /dev/null +++ b/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmetalink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmetalink-help | grep -v \.src | grep libmetalink-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmetalink-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmetalink-help + CHECK_RESULT $? 0 0 "install libmetalink-help failed" + SLEEP_WAIT 1 + dnf remove -y libmetalink-help + CHECK_RESULT $? 0 0 "remove libmetalink-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink.sh b/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5b7729ef6cf31ecba7ca6d318dc7e1a06e87aba --- /dev/null +++ b/testcases/cli-test/libmetalink/oe_test_libmetalink_install_and_remove_libmetalink.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmetalink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmetalink | grep -v \.src | grep libmetalink + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmetalink" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmetalink + CHECK_RESULT $? 0 0 "install libmetalink failed" + SLEEP_WAIT 1 + dnf remove -y libmetalink + CHECK_RESULT $? 0 0 "remove libmetalink failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-debuginfo.sh b/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..21ec7d60b1ee5e2cfe952f0278e0e2a579446297 --- /dev/null +++ b/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmng-debuginfo | grep -v \.src | grep libmng-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmng-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmng-debuginfo + CHECK_RESULT $? 0 0 "install libmng-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libmng-debuginfo + CHECK_RESULT $? 0 0 "remove libmng-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-debugsource.sh b/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..50bf1a42859b781bdbf75bf01cac3fd40659ed49 --- /dev/null +++ b/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmng-debugsource | grep -v \.src | grep libmng-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmng-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmng-debugsource + CHECK_RESULT $? 0 0 "install libmng-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libmng-debugsource + CHECK_RESULT $? 0 0 "remove libmng-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-devel.sh b/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8167cc28fd5f8e9728486795cab14e68cc2cbfa --- /dev/null +++ b/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmng-devel | grep -v \.src | grep libmng-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmng-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmng-devel + CHECK_RESULT $? 0 0 "install libmng-devel failed" + SLEEP_WAIT 1 + dnf remove -y libmng-devel + CHECK_RESULT $? 0 0 "remove libmng-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-help.sh b/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d951dd268fc8f281b34755a648ffd4ce052e6c4d --- /dev/null +++ b/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmng-help | grep -v \.src | grep libmng-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmng-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmng-help + CHECK_RESULT $? 0 0 "install libmng-help failed" + SLEEP_WAIT 1 + dnf remove -y libmng-help + CHECK_RESULT $? 0 0 "remove libmng-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng.sh b/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng.sh new file mode 100644 index 0000000000000000000000000000000000000000..a66521e6c7ee313bf9367a567074a9b2cf580b2c --- /dev/null +++ b/testcases/cli-test/libmng/oe_test_libmng_install_and_remove_libmng.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmng | grep -v \.src | grep libmng + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmng" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmng + CHECK_RESULT $? 0 0 "install libmng failed" + SLEEP_WAIT 1 + dnf remove -y libmng + CHECK_RESULT $? 0 0 "remove libmng failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl-debuginfo.sh b/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..667208e423aa93d9cc60182e86a13a5995966c98 --- /dev/null +++ b/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmnl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmnl-debuginfo | grep -v \.src | grep libmnl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmnl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmnl-debuginfo + CHECK_RESULT $? 0 0 "install libmnl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libmnl-debuginfo + CHECK_RESULT $? 0 0 "remove libmnl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl-debugsource.sh b/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c91cf4ece00cd49261fd96a91c53a996682f7dda --- /dev/null +++ b/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmnl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmnl-debugsource | grep -v \.src | grep libmnl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmnl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmnl-debugsource + CHECK_RESULT $? 0 0 "install libmnl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libmnl-debugsource + CHECK_RESULT $? 0 0 "remove libmnl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl-devel.sh b/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..03602bff221fd22958429eff180b48497508e1bb --- /dev/null +++ b/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmnl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmnl-devel | grep -v \.src | grep libmnl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmnl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmnl-devel + CHECK_RESULT $? 0 0 "install libmnl-devel failed" + SLEEP_WAIT 1 + dnf remove -y libmnl-devel + CHECK_RESULT $? 0 0 "remove libmnl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl.sh b/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbbaa000bc676c8aff38ca0dee557e45403facf0 --- /dev/null +++ b/testcases/cli-test/libmnl/oe_test_libmnl_install_and_remove_libmnl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmnl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmnl | grep -v \.src | grep libmnl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmnl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmnl + CHECK_RESULT $? 0 0 "install libmnl failed" + SLEEP_WAIT 1 + dnf remove -y libmnl + CHECK_RESULT $? 0 0 "remove libmnl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-debuginfo.sh b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f1164d7d562f39cc1488060a7ea2328df6b4439 --- /dev/null +++ b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmodulemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmodulemd-debuginfo | grep -v \.src | grep libmodulemd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmodulemd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmodulemd-debuginfo + CHECK_RESULT $? 0 0 "install libmodulemd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libmodulemd-debuginfo + CHECK_RESULT $? 0 0 "remove libmodulemd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-debugsource.sh b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3143e6d1f42fd5c0d3caa2edd05ea91808cad4fd --- /dev/null +++ b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmodulemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmodulemd-debugsource | grep -v \.src | grep libmodulemd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmodulemd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmodulemd-debugsource + CHECK_RESULT $? 0 0 "install libmodulemd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libmodulemd-debugsource + CHECK_RESULT $? 0 0 "remove libmodulemd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-devel.sh b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f0b1ca2511e9890e89f9353b8eba7b2c2326aa2 --- /dev/null +++ b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmodulemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmodulemd-devel | grep -v \.src | grep libmodulemd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmodulemd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmodulemd-devel + CHECK_RESULT $? 0 0 "install libmodulemd-devel failed" + SLEEP_WAIT 1 + dnf remove -y libmodulemd-devel + CHECK_RESULT $? 0 0 "remove libmodulemd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-doc.sh b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e088cc05bab383659f068dc555361da8c281941 --- /dev/null +++ b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmodulemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmodulemd-doc | grep -v \.src | grep libmodulemd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmodulemd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmodulemd-doc + CHECK_RESULT $? 0 0 "install libmodulemd-doc failed" + SLEEP_WAIT 1 + dnf remove -y libmodulemd-doc + CHECK_RESULT $? 0 0 "remove libmodulemd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd.sh b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd.sh new file mode 100644 index 0000000000000000000000000000000000000000..f60f03afa5694b2c2e8d7b061c2c1429106651ac --- /dev/null +++ b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmodulemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmodulemd | grep -v \.src | grep libmodulemd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmodulemd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmodulemd + CHECK_RESULT $? 0 0 "install libmodulemd failed" + SLEEP_WAIT 1 + dnf remove -y libmodulemd + CHECK_RESULT $? 0 0 "remove libmodulemd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd1-devel.sh b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd1-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e80bd2e77d236a502478b074dc8bbc89454fefad --- /dev/null +++ b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd1-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmodulemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmodulemd1-devel | grep -v \.src | grep libmodulemd1-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmodulemd1-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmodulemd1-devel + CHECK_RESULT $? 0 0 "install libmodulemd1-devel failed" + SLEEP_WAIT 1 + dnf remove -y libmodulemd1-devel + CHECK_RESULT $? 0 0 "remove libmodulemd1-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd1.sh b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd1.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e821b42681fd86bbd8ba0c2e4aa84cedcd77bd9 --- /dev/null +++ b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_libmodulemd1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmodulemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmodulemd1 | grep -v \.src | grep libmodulemd1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmodulemd1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmodulemd1 + CHECK_RESULT $? 0 0 "install libmodulemd1 failed" + SLEEP_WAIT 1 + dnf remove -y libmodulemd1 + CHECK_RESULT $? 0 0 "remove libmodulemd1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_python%{python3_pkgversion}-libmodulemd.sh b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_python%{python3_pkgversion}-libmodulemd.sh new file mode 100644 index 0000000000000000000000000000000000000000..b98f639626c1dec42320213fadaf17098646eb5f --- /dev/null +++ b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_python%{python3_pkgversion}-libmodulemd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmodulemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python%{python3_pkgversion}-libmodulemd | grep -v \.src | grep python%{python3_pkgversion}-libmodulemd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python%{python3_pkgversion}-libmodulemd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python%{python3_pkgversion}-libmodulemd + CHECK_RESULT $? 0 0 "install python%{python3_pkgversion}-libmodulemd failed" + SLEEP_WAIT 1 + dnf remove -y python%{python3_pkgversion}-libmodulemd + CHECK_RESULT $? 0 0 "remove python%{python3_pkgversion}-libmodulemd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_python3-libmodulemd.sh b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_python3-libmodulemd.sh new file mode 100644 index 0000000000000000000000000000000000000000..a599bb42b3a871796721f5b82e0c803f7cca5571 --- /dev/null +++ b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_python3-libmodulemd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmodulemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libmodulemd | grep -v \.src | grep python3-libmodulemd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libmodulemd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libmodulemd + CHECK_RESULT $? 0 0 "install python3-libmodulemd failed" + SLEEP_WAIT 1 + dnf remove -y python3-libmodulemd + CHECK_RESULT $? 0 0 "remove python3-libmodulemd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_python3-libmodulemd1.sh b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_python3-libmodulemd1.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b4199142f74ddf7f99b920a238c9c4a79a307fd --- /dev/null +++ b/testcases/cli-test/libmodulemd/oe_test_libmodulemd_install_and_remove_python3-libmodulemd1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmodulemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libmodulemd1 | grep -v \.src | grep python3-libmodulemd1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libmodulemd1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libmodulemd1 + CHECK_RESULT $? 0 0 "install python3-libmodulemd1 failed" + SLEEP_WAIT 1 + dnf remove -y python3-libmodulemd1 + CHECK_RESULT $? 0 0 "remove python3-libmodulemd1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc-debuginfo.sh b/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..42c04731a9be2f4da3a99339f4d58cf7cb2ed32e --- /dev/null +++ b/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmpc-debuginfo | grep -v \.src | grep libmpc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmpc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmpc-debuginfo + CHECK_RESULT $? 0 0 "install libmpc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libmpc-debuginfo + CHECK_RESULT $? 0 0 "remove libmpc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc-debugsource.sh b/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a51cb28e223102f3a8c0102e21fc4a45f521ea6 --- /dev/null +++ b/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmpc-debugsource | grep -v \.src | grep libmpc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmpc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmpc-debugsource + CHECK_RESULT $? 0 0 "install libmpc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libmpc-debugsource + CHECK_RESULT $? 0 0 "remove libmpc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc-devel.sh b/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8694aa40854ff63a65e78bf913b8ec7f814b89e7 --- /dev/null +++ b/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmpc-devel | grep -v \.src | grep libmpc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmpc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmpc-devel + CHECK_RESULT $? 0 0 "install libmpc-devel failed" + SLEEP_WAIT 1 + dnf remove -y libmpc-devel + CHECK_RESULT $? 0 0 "remove libmpc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc.sh b/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4de188b342b97e97667167194d9dbcff2505c4f9 --- /dev/null +++ b/testcases/cli-test/libmpc/oe_test_libmpc_install_and_remove_libmpc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libmpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmpc | grep -v \.src | grep libmpc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmpc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmpc + CHECK_RESULT $? 0 0 "install libmpc failed" + SLEEP_WAIT 1 + dnf remove -y libmpc + CHECK_RESULT $? 0 0 "remove libmpc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-debuginfo.sh b/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebb0a325d09f5e57f1ac695c5b59cc903dca198e --- /dev/null +++ b/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libndp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libndp-debuginfo | grep -v \.src | grep libndp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libndp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libndp-debuginfo + CHECK_RESULT $? 0 0 "install libndp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libndp-debuginfo + CHECK_RESULT $? 0 0 "remove libndp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-debugsource.sh b/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..08dca069183c29bd753955af8c7da5b9339d98a7 --- /dev/null +++ b/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libndp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libndp-debugsource | grep -v \.src | grep libndp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libndp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libndp-debugsource + CHECK_RESULT $? 0 0 "install libndp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libndp-debugsource + CHECK_RESULT $? 0 0 "remove libndp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-devel.sh b/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..556fe3eccda21e730a6a3c32a36ec105e790f5a7 --- /dev/null +++ b/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libndp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libndp-devel | grep -v \.src | grep libndp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libndp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libndp-devel + CHECK_RESULT $? 0 0 "install libndp-devel failed" + SLEEP_WAIT 1 + dnf remove -y libndp-devel + CHECK_RESULT $? 0 0 "remove libndp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-help.sh b/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..95724cb8e7021d9d34f5ac8a46cb7c1d244823ea --- /dev/null +++ b/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libndp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libndp-help | grep -v \.src | grep libndp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libndp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libndp-help + CHECK_RESULT $? 0 0 "install libndp-help failed" + SLEEP_WAIT 1 + dnf remove -y libndp-help + CHECK_RESULT $? 0 0 "remove libndp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp.sh b/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ffbef4aba74414f53b0d219a29164981d1546c5 --- /dev/null +++ b/testcases/cli-test/libndp/oe_test_libndp_install_and_remove_libndp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libndp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libndp | grep -v \.src | grep libndp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libndp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libndp + CHECK_RESULT $? 0 0 "install libndp failed" + SLEEP_WAIT 1 + dnf remove -y libndp + CHECK_RESULT $? 0 0 "remove libndp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-debuginfo.sh b/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4d7133118e9af4e65d0220146a0debf290fc194 --- /dev/null +++ b/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnet-debuginfo | grep -v \.src | grep libnet-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnet-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnet-debuginfo + CHECK_RESULT $? 0 0 "install libnet-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libnet-debuginfo + CHECK_RESULT $? 0 0 "remove libnet-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-debugsource.sh b/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e12168e03c74907872908396c089377e3404999 --- /dev/null +++ b/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnet-debugsource | grep -v \.src | grep libnet-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnet-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnet-debugsource + CHECK_RESULT $? 0 0 "install libnet-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libnet-debugsource + CHECK_RESULT $? 0 0 "remove libnet-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-devel.sh b/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3579518dea28b42d4c292f35f99e554f42a7ecc --- /dev/null +++ b/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnet-devel | grep -v \.src | grep libnet-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnet-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnet-devel + CHECK_RESULT $? 0 0 "install libnet-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnet-devel + CHECK_RESULT $? 0 0 "remove libnet-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-help.sh b/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..235c3e721a8cf931087cbe97ed897952b9d5c8c0 --- /dev/null +++ b/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnet-help | grep -v \.src | grep libnet-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnet-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnet-help + CHECK_RESULT $? 0 0 "install libnet-help failed" + SLEEP_WAIT 1 + dnf remove -y libnet-help + CHECK_RESULT $? 0 0 "remove libnet-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet.sh b/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed6f7a8c0fe7a222d4bf532b582941a17928895e --- /dev/null +++ b/testcases/cli-test/libnet/oe_test_libnet_install_and_remove_libnet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnet | grep -v \.src | grep libnet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnet + CHECK_RESULT $? 0 0 "install libnet failed" + SLEEP_WAIT 1 + dnf remove -y libnet + CHECK_RESULT $? 0 0 "remove libnet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-debuginfo.sh b/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..81fca64881ce1c4f378251ef4feacc721c0272f9 --- /dev/null +++ b/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnetfilter_conntrack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnetfilter_conntrack-debuginfo | grep -v \.src | grep libnetfilter_conntrack-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnetfilter_conntrack-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnetfilter_conntrack-debuginfo + CHECK_RESULT $? 0 0 "install libnetfilter_conntrack-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libnetfilter_conntrack-debuginfo + CHECK_RESULT $? 0 0 "remove libnetfilter_conntrack-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-debugsource.sh b/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..51b01eb7d055bac7e0149afc0fe575723072db69 --- /dev/null +++ b/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnetfilter_conntrack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnetfilter_conntrack-debugsource | grep -v \.src | grep libnetfilter_conntrack-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnetfilter_conntrack-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnetfilter_conntrack-debugsource + CHECK_RESULT $? 0 0 "install libnetfilter_conntrack-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libnetfilter_conntrack-debugsource + CHECK_RESULT $? 0 0 "remove libnetfilter_conntrack-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-devel.sh b/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..31f8739f29263ad17892f96008fb20d02fda1c6f --- /dev/null +++ b/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnetfilter_conntrack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnetfilter_conntrack-devel | grep -v \.src | grep libnetfilter_conntrack-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnetfilter_conntrack-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnetfilter_conntrack-devel + CHECK_RESULT $? 0 0 "install libnetfilter_conntrack-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnetfilter_conntrack-devel + CHECK_RESULT $? 0 0 "remove libnetfilter_conntrack-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack.sh b/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack.sh new file mode 100644 index 0000000000000000000000000000000000000000..54a9857010e495bb5ddaab236134ef263acecdda --- /dev/null +++ b/testcases/cli-test/libnetfilter_conntrack/oe_test_libnetfilter_conntrack_install_and_remove_libnetfilter_conntrack.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnetfilter_conntrack +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnetfilter_conntrack | grep -v \.src | grep libnetfilter_conntrack + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnetfilter_conntrack" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnetfilter_conntrack + CHECK_RESULT $? 0 0 "install libnetfilter_conntrack failed" + SLEEP_WAIT 1 + dnf remove -y libnetfilter_conntrack + CHECK_RESULT $? 0 0 "remove libnetfilter_conntrack failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-debuginfo.sh b/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..af0daca71e5a0e405c3824306184ad0e5a9adcbb --- /dev/null +++ b/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnfnetlink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnfnetlink-debuginfo | grep -v \.src | grep libnfnetlink-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnfnetlink-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnfnetlink-debuginfo + CHECK_RESULT $? 0 0 "install libnfnetlink-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libnfnetlink-debuginfo + CHECK_RESULT $? 0 0 "remove libnfnetlink-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-debugsource.sh b/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fe59c540f93edd5272069b582e930cc47e60d01 --- /dev/null +++ b/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnfnetlink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnfnetlink-debugsource | grep -v \.src | grep libnfnetlink-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnfnetlink-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnfnetlink-debugsource + CHECK_RESULT $? 0 0 "install libnfnetlink-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libnfnetlink-debugsource + CHECK_RESULT $? 0 0 "remove libnfnetlink-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-devel.sh b/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6162d2db58833a6ad3c1021f1aaa77d864ec611 --- /dev/null +++ b/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnfnetlink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnfnetlink-devel | grep -v \.src | grep libnfnetlink-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnfnetlink-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnfnetlink-devel + CHECK_RESULT $? 0 0 "install libnfnetlink-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnfnetlink-devel + CHECK_RESULT $? 0 0 "remove libnfnetlink-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-help.sh b/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9de3b4f3c0c7c63bd048f7bab1a60a43528d88e1 --- /dev/null +++ b/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnfnetlink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnfnetlink-help | grep -v \.src | grep libnfnetlink-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnfnetlink-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnfnetlink-help + CHECK_RESULT $? 0 0 "install libnfnetlink-help failed" + SLEEP_WAIT 1 + dnf remove -y libnfnetlink-help + CHECK_RESULT $? 0 0 "remove libnfnetlink-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink.sh b/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink.sh new file mode 100644 index 0000000000000000000000000000000000000000..db2bb57dab72f316a13dde45db071aababd27819 --- /dev/null +++ b/testcases/cli-test/libnfnetlink/oe_test_libnfnetlink_install_and_remove_libnfnetlink.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnfnetlink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnfnetlink | grep -v \.src | grep libnfnetlink + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnfnetlink" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnfnetlink + CHECK_RESULT $? 0 0 "install libnfnetlink failed" + SLEEP_WAIT 1 + dnf remove -y libnfnetlink + CHECK_RESULT $? 0 0 "remove libnfnetlink failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl-debuginfo.sh b/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a2b4ed05c5cbb9ccbd76edfab7cabe622af3d20 --- /dev/null +++ b/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnftnl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnftnl-debuginfo | grep -v \.src | grep libnftnl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnftnl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnftnl-debuginfo + CHECK_RESULT $? 0 0 "install libnftnl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libnftnl-debuginfo + CHECK_RESULT $? 0 0 "remove libnftnl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl-debugsource.sh b/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d20dc0bfc57164c88aa1d938adabe0a55f82e5a2 --- /dev/null +++ b/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnftnl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnftnl-debugsource | grep -v \.src | grep libnftnl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnftnl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnftnl-debugsource + CHECK_RESULT $? 0 0 "install libnftnl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libnftnl-debugsource + CHECK_RESULT $? 0 0 "remove libnftnl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl-devel.sh b/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f2ce8a284b1a6b53d86e08b4d71242527cbe932 --- /dev/null +++ b/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnftnl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnftnl-devel | grep -v \.src | grep libnftnl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnftnl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnftnl-devel + CHECK_RESULT $? 0 0 "install libnftnl-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnftnl-devel + CHECK_RESULT $? 0 0 "remove libnftnl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl.sh b/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl.sh new file mode 100644 index 0000000000000000000000000000000000000000..4dadded883ed5046663709b9999571e2e1d6c183 --- /dev/null +++ b/testcases/cli-test/libnftnl/oe_test_libnftnl_install_and_remove_libnftnl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnftnl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnftnl | grep -v \.src | grep libnftnl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnftnl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnftnl + CHECK_RESULT $? 0 0 "install libnftnl failed" + SLEEP_WAIT 1 + dnf remove -y libnftnl + CHECK_RESULT $? 0 0 "remove libnftnl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-debuginfo.sh b/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b39459e0e89dbb5254d8a3fc162ce63111e97bce --- /dev/null +++ b/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnice-debuginfo | grep -v \.src | grep libnice-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnice-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnice-debuginfo + CHECK_RESULT $? 0 0 "install libnice-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libnice-debuginfo + CHECK_RESULT $? 0 0 "remove libnice-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-debugsource.sh b/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..589f76768e1b5b96e615643f0af7f9d4c040d599 --- /dev/null +++ b/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnice-debugsource | grep -v \.src | grep libnice-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnice-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnice-debugsource + CHECK_RESULT $? 0 0 "install libnice-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libnice-debugsource + CHECK_RESULT $? 0 0 "remove libnice-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-devel.sh b/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..19d534b645dccb41960ae609b3dd08f1b60fb56f --- /dev/null +++ b/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnice-devel | grep -v \.src | grep libnice-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnice-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnice-devel + CHECK_RESULT $? 0 0 "install libnice-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnice-devel + CHECK_RESULT $? 0 0 "remove libnice-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-gstreamer1.sh b/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-gstreamer1.sh new file mode 100644 index 0000000000000000000000000000000000000000..1477b737ce3d027b489c5bc6d6a490b795265b53 --- /dev/null +++ b/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice-gstreamer1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnice-gstreamer1 | grep -v \.src | grep libnice-gstreamer1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnice-gstreamer1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnice-gstreamer1 + CHECK_RESULT $? 0 0 "install libnice-gstreamer1 failed" + SLEEP_WAIT 1 + dnf remove -y libnice-gstreamer1 + CHECK_RESULT $? 0 0 "remove libnice-gstreamer1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice.sh b/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice.sh new file mode 100644 index 0000000000000000000000000000000000000000..9049115bfc9c3ad177d381617b7b83c3b589d431 --- /dev/null +++ b/testcases/cli-test/libnice/oe_test_libnice_install_and_remove_libnice.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnice | grep -v \.src | grep libnice + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnice" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnice + CHECK_RESULT $? 0 0 "install libnice failed" + SLEEP_WAIT 1 + dnf remove -y libnice + CHECK_RESULT $? 0 0 "remove libnice failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-debuginfo.sh b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c83e72745ccab61aa53612c338c6a1b3bc3a8237 --- /dev/null +++ b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnl3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnl3-debuginfo | grep -v \.src | grep libnl3-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnl3-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnl3-debuginfo + CHECK_RESULT $? 0 0 "install libnl3-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libnl3-debuginfo + CHECK_RESULT $? 0 0 "remove libnl3-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-debugsource.sh b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6207f5173eece45e4c4f8376fb0390231eaa12a --- /dev/null +++ b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnl3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnl3-debugsource | grep -v \.src | grep libnl3-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnl3-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnl3-debugsource + CHECK_RESULT $? 0 0 "install libnl3-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libnl3-debugsource + CHECK_RESULT $? 0 0 "remove libnl3-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-devel.sh b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..303ef4080d14a0aa4453d62e28b7e80b8a9712ed --- /dev/null +++ b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnl3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnl3-devel | grep -v \.src | grep libnl3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnl3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnl3-devel + CHECK_RESULT $? 0 0 "install libnl3-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnl3-devel + CHECK_RESULT $? 0 0 "remove libnl3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-help.sh b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..91a83767655bb6448634df070fa92ccbe4eb6695 --- /dev/null +++ b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnl3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnl3-help | grep -v \.src | grep libnl3-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnl3-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnl3-help + CHECK_RESULT $? 0 0 "install libnl3-help failed" + SLEEP_WAIT 1 + dnf remove -y libnl3-help + CHECK_RESULT $? 0 0 "remove libnl3-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3.sh b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1b04b0dda0eae5dacac7eb072690c885cdb1278 --- /dev/null +++ b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_libnl3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnl3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnl3 | grep -v \.src | grep libnl3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnl3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnl3 + CHECK_RESULT $? 0 0 "install libnl3 failed" + SLEEP_WAIT 1 + dnf remove -y libnl3 + CHECK_RESULT $? 0 0 "remove libnl3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_python2-libnl3.sh b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_python2-libnl3.sh new file mode 100644 index 0000000000000000000000000000000000000000..e18c23bf60e407454f358741da0806a192e1d740 --- /dev/null +++ b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_python2-libnl3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnl3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libnl3 | grep -v \.src | grep python2-libnl3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libnl3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libnl3 + CHECK_RESULT $? 0 0 "install python2-libnl3 failed" + SLEEP_WAIT 1 + dnf remove -y python2-libnl3 + CHECK_RESULT $? 0 0 "remove python2-libnl3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_python3-libnl3.sh b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_python3-libnl3.sh new file mode 100644 index 0000000000000000000000000000000000000000..980439f0c47714613e201f585f575f2d87b5c27a --- /dev/null +++ b/testcases/cli-test/libnl3/oe_test_libnl3_install_and_remove_python3-libnl3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnl3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libnl3 | grep -v \.src | grep python3-libnl3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libnl3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libnl3 + CHECK_RESULT $? 0 0 "install python3-libnl3 failed" + SLEEP_WAIT 1 + dnf remove -y python3-libnl3 + CHECK_RESULT $? 0 0 "remove python3-libnl3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma-debuginfo.sh b/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..22fe679827c743b70c9c1c5dc87d3a515e2ec5a4 --- /dev/null +++ b/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnma +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnma-debuginfo | grep -v \.src | grep libnma-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnma-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnma-debuginfo + CHECK_RESULT $? 0 0 "install libnma-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libnma-debuginfo + CHECK_RESULT $? 0 0 "remove libnma-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma-debugsource.sh b/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0612d085e8ea3549f0a627445a51cdaebcd1649 --- /dev/null +++ b/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnma +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnma-debugsource | grep -v \.src | grep libnma-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnma-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnma-debugsource + CHECK_RESULT $? 0 0 "install libnma-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libnma-debugsource + CHECK_RESULT $? 0 0 "remove libnma-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma-devel.sh b/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7d870ff7273f1f0e4ef5ddb4b5d8d85f5f8c8b8 --- /dev/null +++ b/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnma +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnma-devel | grep -v \.src | grep libnma-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnma-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnma-devel + CHECK_RESULT $? 0 0 "install libnma-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnma-devel + CHECK_RESULT $? 0 0 "remove libnma-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma.sh b/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd3556a9c41e501d437f24f45a981bf8bd061b38 --- /dev/null +++ b/testcases/cli-test/libnma/oe_test_libnma_install_and_remove_libnma.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnma +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnma | grep -v \.src | grep libnma + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnma" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnma + CHECK_RESULT $? 0 0 "install libnma failed" + SLEEP_WAIT 1 + dnf remove -y libnma + CHECK_RESULT $? 0 0 "remove libnma failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-debuginfo.sh b/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..61dfb09d228365661cb2b94f8301c6083afaba2a --- /dev/null +++ b/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnotify +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnotify-debuginfo | grep -v \.src | grep libnotify-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnotify-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnotify-debuginfo + CHECK_RESULT $? 0 0 "install libnotify-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libnotify-debuginfo + CHECK_RESULT $? 0 0 "remove libnotify-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-debugsource.sh b/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..65502684d1c563245dcc3d5013605b76e24e9c3c --- /dev/null +++ b/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnotify +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnotify-debugsource | grep -v \.src | grep libnotify-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnotify-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnotify-debugsource + CHECK_RESULT $? 0 0 "install libnotify-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libnotify-debugsource + CHECK_RESULT $? 0 0 "remove libnotify-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-devel.sh b/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..098cdf2496f0aa93c9ad3cf776b0a88055bb3dd5 --- /dev/null +++ b/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnotify +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnotify-devel | grep -v \.src | grep libnotify-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnotify-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnotify-devel + CHECK_RESULT $? 0 0 "install libnotify-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnotify-devel + CHECK_RESULT $? 0 0 "remove libnotify-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-help.sh b/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2de55b04ddfdc689ed0ad707d6e6b6c415f347c4 --- /dev/null +++ b/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnotify +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnotify-help | grep -v \.src | grep libnotify-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnotify-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnotify-help + CHECK_RESULT $? 0 0 "install libnotify-help failed" + SLEEP_WAIT 1 + dnf remove -y libnotify-help + CHECK_RESULT $? 0 0 "remove libnotify-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify.sh b/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify.sh new file mode 100644 index 0000000000000000000000000000000000000000..20868387d5a464c11bd52633e2e64275e49b3f55 --- /dev/null +++ b/testcases/cli-test/libnotify/oe_test_libnotify_install_and_remove_libnotify.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnotify +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnotify | grep -v \.src | grep libnotify + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnotify" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnotify + CHECK_RESULT $? 0 0 "install libnotify failed" + SLEEP_WAIT 1 + dnf remove -y libnotify + CHECK_RESULT $? 0 0 "remove libnotify failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2-debuginfo.sh b/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bd683a5049ca242713f6d581ad12bdb2e572ea7 --- /dev/null +++ b/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnsl2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnsl2-debuginfo | grep -v \.src | grep libnsl2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnsl2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnsl2-debuginfo + CHECK_RESULT $? 0 0 "install libnsl2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libnsl2-debuginfo + CHECK_RESULT $? 0 0 "remove libnsl2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2-debugsource.sh b/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a02d1296bc272bb3a6dc4e96d67d65234334902b --- /dev/null +++ b/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnsl2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnsl2-debugsource | grep -v \.src | grep libnsl2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnsl2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnsl2-debugsource + CHECK_RESULT $? 0 0 "install libnsl2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libnsl2-debugsource + CHECK_RESULT $? 0 0 "remove libnsl2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2-devel.sh b/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..044afee0b4cd3f36f7c9789258ee530f5b2d9909 --- /dev/null +++ b/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnsl2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnsl2-devel | grep -v \.src | grep libnsl2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnsl2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnsl2-devel + CHECK_RESULT $? 0 0 "install libnsl2-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnsl2-devel + CHECK_RESULT $? 0 0 "remove libnsl2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2.sh b/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e85b1776d68063338b9f3527ddfa20729bf43f0 --- /dev/null +++ b/testcases/cli-test/libnsl2/oe_test_libnsl2_install_and_remove_libnsl2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnsl2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnsl2 | grep -v \.src | grep libnsl2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnsl2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnsl2 + CHECK_RESULT $? 0 0 "install libnsl2 failed" + SLEEP_WAIT 1 + dnf remove -y libnsl2 + CHECK_RESULT $? 0 0 "remove libnsl2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-debuginfo.sh b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..81fd3743bc4b5ce9ce677fde2c711eec0068471e --- /dev/null +++ b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnvme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnvme-debuginfo | grep -v \.src | grep libnvme-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnvme-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnvme-debuginfo + CHECK_RESULT $? 0 0 "install libnvme-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libnvme-debuginfo + CHECK_RESULT $? 0 0 "remove libnvme-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-debugsource.sh b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d36823cef21d9cd8a9f457872c96572ba63668e --- /dev/null +++ b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnvme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnvme-debugsource | grep -v \.src | grep libnvme-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnvme-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnvme-debugsource + CHECK_RESULT $? 0 0 "install libnvme-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libnvme-debugsource + CHECK_RESULT $? 0 0 "remove libnvme-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-devel.sh b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3befce68183e3f27747bd3a2d182b389b736122c --- /dev/null +++ b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnvme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnvme-devel | grep -v \.src | grep libnvme-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnvme-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnvme-devel + CHECK_RESULT $? 0 0 "install libnvme-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnvme-devel + CHECK_RESULT $? 0 0 "remove libnvme-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-help.sh b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c73c9223afb901955e8fbd2d22ca09e2beb8f938 --- /dev/null +++ b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnvme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnvme-help | grep -v \.src | grep libnvme-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnvme-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnvme-help + CHECK_RESULT $? 0 0 "install libnvme-help failed" + SLEEP_WAIT 1 + dnf remove -y libnvme-help + CHECK_RESULT $? 0 0 "remove libnvme-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme.sh b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme.sh new file mode 100644 index 0000000000000000000000000000000000000000..5084b6846ca5cc3561ae4a8047da9102bc58892c --- /dev/null +++ b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_libnvme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnvme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnvme | grep -v \.src | grep libnvme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnvme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnvme + CHECK_RESULT $? 0 0 "install libnvme failed" + SLEEP_WAIT 1 + dnf remove -y libnvme + CHECK_RESULT $? 0 0 "remove libnvme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_python3-libnvme.sh b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_python3-libnvme.sh new file mode 100644 index 0000000000000000000000000000000000000000..797baa1aa10bfa9a6619fa51c3cc07ac4b464955 --- /dev/null +++ b/testcases/cli-test/libnvme/oe_test_libnvme_install_and_remove_python3-libnvme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libnvme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libnvme | grep -v \.src | grep python3-libnvme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libnvme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libnvme + CHECK_RESULT $? 0 0 "install python3-libnvme failed" + SLEEP_WAIT 1 + dnf remove -y python3-libnvme + CHECK_RESULT $? 0 0 "remove python3-libnvme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-debuginfo.sh b/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e823bb487306c33da6263b8debd2ccf5ada1a97e --- /dev/null +++ b/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libogg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libogg-debuginfo | grep -v \.src | grep libogg-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libogg-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libogg-debuginfo + CHECK_RESULT $? 0 0 "install libogg-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libogg-debuginfo + CHECK_RESULT $? 0 0 "remove libogg-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-debugsource.sh b/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..082bb177529e6dae2d21c0198cd571a0f10ceadf --- /dev/null +++ b/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libogg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libogg-debugsource | grep -v \.src | grep libogg-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libogg-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libogg-debugsource + CHECK_RESULT $? 0 0 "install libogg-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libogg-debugsource + CHECK_RESULT $? 0 0 "remove libogg-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-devel.sh b/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..17452e328181609469c0c7c1269c10b6f75ab465 --- /dev/null +++ b/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libogg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libogg-devel | grep -v \.src | grep libogg-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libogg-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libogg-devel + CHECK_RESULT $? 0 0 "install libogg-devel failed" + SLEEP_WAIT 1 + dnf remove -y libogg-devel + CHECK_RESULT $? 0 0 "remove libogg-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-help.sh b/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b661d14c4e02824c87c8b8ed6b2cb756561fde65 --- /dev/null +++ b/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libogg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libogg-help | grep -v \.src | grep libogg-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libogg-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libogg-help + CHECK_RESULT $? 0 0 "install libogg-help failed" + SLEEP_WAIT 1 + dnf remove -y libogg-help + CHECK_RESULT $? 0 0 "remove libogg-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg.sh b/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ce0c366f3bd49531182424944dd563950d4a830 --- /dev/null +++ b/testcases/cli-test/libogg/oe_test_libogg_install_and_remove_libogg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libogg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libogg | grep -v \.src | grep libogg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libogg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libogg + CHECK_RESULT $? 0 0 "install libogg failed" + SLEEP_WAIT 1 + dnf remove -y libogg + CHECK_RESULT $? 0 0 "remove libogg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf-debuginfo.sh b/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa6b648e2922b9c55dad4c69d5bfa8e66a2d0a55 --- /dev/null +++ b/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libotf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libotf-debuginfo | grep -v \.src | grep libotf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libotf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libotf-debuginfo + CHECK_RESULT $? 0 0 "install libotf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libotf-debuginfo + CHECK_RESULT $? 0 0 "remove libotf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf-debugsource.sh b/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8916caf6ce3ae4d97242aee4bcfaff9d5ebe36c6 --- /dev/null +++ b/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libotf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libotf-debugsource | grep -v \.src | grep libotf-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libotf-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libotf-debugsource + CHECK_RESULT $? 0 0 "install libotf-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libotf-debugsource + CHECK_RESULT $? 0 0 "remove libotf-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf-devel.sh b/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..add2c00036c058b7494b593b4ccb7e4681972b84 --- /dev/null +++ b/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libotf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libotf-devel | grep -v \.src | grep libotf-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libotf-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libotf-devel + CHECK_RESULT $? 0 0 "install libotf-devel failed" + SLEEP_WAIT 1 + dnf remove -y libotf-devel + CHECK_RESULT $? 0 0 "remove libotf-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf.sh b/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e393be152190f431f1f134ee1a7044465b5ff8c --- /dev/null +++ b/testcases/cli-test/libotf/oe_test_libotf_install_and_remove_libotf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libotf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libotf | grep -v \.src | grep libotf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libotf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libotf + CHECK_RESULT $? 0 0 "install libotf failed" + SLEEP_WAIT 1 + dnf remove -y libotf + CHECK_RESULT $? 0 0 "remove libotf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-debuginfo.sh b/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c42b8974d37160aa632cb79451344da04445f38e --- /dev/null +++ b/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpaper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpaper-debuginfo | grep -v \.src | grep libpaper-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpaper-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpaper-debuginfo + CHECK_RESULT $? 0 0 "install libpaper-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libpaper-debuginfo + CHECK_RESULT $? 0 0 "remove libpaper-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-debugsource.sh b/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc6ecf573a24cc1d30d461fe55b10fbd9d28ea29 --- /dev/null +++ b/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpaper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpaper-debugsource | grep -v \.src | grep libpaper-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpaper-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpaper-debugsource + CHECK_RESULT $? 0 0 "install libpaper-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libpaper-debugsource + CHECK_RESULT $? 0 0 "remove libpaper-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-devel.sh b/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed7ebe03bbd460625874b53bc05ee108a70b7384 --- /dev/null +++ b/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpaper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpaper-devel | grep -v \.src | grep libpaper-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpaper-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpaper-devel + CHECK_RESULT $? 0 0 "install libpaper-devel failed" + SLEEP_WAIT 1 + dnf remove -y libpaper-devel + CHECK_RESULT $? 0 0 "remove libpaper-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-help.sh b/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..284b8fcaf9d99ac3cc3f0f12553255a67cb36ac4 --- /dev/null +++ b/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpaper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpaper-help | grep -v \.src | grep libpaper-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpaper-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpaper-help + CHECK_RESULT $? 0 0 "install libpaper-help failed" + SLEEP_WAIT 1 + dnf remove -y libpaper-help + CHECK_RESULT $? 0 0 "remove libpaper-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper.sh b/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3f00f4f48ed05884e49472cb1e7da09453318ed --- /dev/null +++ b/testcases/cli-test/libpaper/oe_test_libpaper_install_and_remove_libpaper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpaper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpaper | grep -v \.src | grep libpaper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpaper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpaper + CHECK_RESULT $? 0 0 "install libpaper failed" + SLEEP_WAIT 1 + dnf remove -y libpaper + CHECK_RESULT $? 0 0 "remove libpaper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-debuginfo.sh b/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e1987f4d7269310c4e70bd3b6628f73fe05c6526 --- /dev/null +++ b/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpcap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpcap-debuginfo | grep -v \.src | grep libpcap-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpcap-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpcap-debuginfo + CHECK_RESULT $? 0 0 "install libpcap-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libpcap-debuginfo + CHECK_RESULT $? 0 0 "remove libpcap-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-debugsource.sh b/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..914a0dc6657e8d686fa4138982a4f9bbe9cbd3b6 --- /dev/null +++ b/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpcap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpcap-debugsource | grep -v \.src | grep libpcap-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpcap-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpcap-debugsource + CHECK_RESULT $? 0 0 "install libpcap-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libpcap-debugsource + CHECK_RESULT $? 0 0 "remove libpcap-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-devel.sh b/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..defb4a10bee5833003fb855a61fc5286e39af77e --- /dev/null +++ b/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpcap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpcap-devel | grep -v \.src | grep libpcap-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpcap-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpcap-devel + CHECK_RESULT $? 0 0 "install libpcap-devel failed" + SLEEP_WAIT 1 + dnf remove -y libpcap-devel + CHECK_RESULT $? 0 0 "remove libpcap-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-help.sh b/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cc6654edf1671d67d6c1e3c5bf0556774b23cdf --- /dev/null +++ b/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpcap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpcap-help | grep -v \.src | grep libpcap-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpcap-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpcap-help + CHECK_RESULT $? 0 0 "install libpcap-help failed" + SLEEP_WAIT 1 + dnf remove -y libpcap-help + CHECK_RESULT $? 0 0 "remove libpcap-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap.sh b/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec4669ba69fdd7561ae81177bb7f4b4d4c074798 --- /dev/null +++ b/testcases/cli-test/libpcap/oe_test_libpcap_install_and_remove_libpcap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpcap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpcap | grep -v \.src | grep libpcap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpcap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpcap + CHECK_RESULT $? 0 0 "install libpcap failed" + SLEEP_WAIT 1 + dnf remove -y libpcap + CHECK_RESULT $? 0 0 "remove libpcap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess-debuginfo.sh b/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e68b3e65a630c5f67b4ee92969fc078fba9c44a --- /dev/null +++ b/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpciaccess +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpciaccess-debuginfo | grep -v \.src | grep libpciaccess-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpciaccess-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpciaccess-debuginfo + CHECK_RESULT $? 0 0 "install libpciaccess-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libpciaccess-debuginfo + CHECK_RESULT $? 0 0 "remove libpciaccess-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess-debugsource.sh b/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..364a315cba53a9a21e2a0dbc8ba7cc84a5e09011 --- /dev/null +++ b/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpciaccess +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpciaccess-debugsource | grep -v \.src | grep libpciaccess-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpciaccess-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpciaccess-debugsource + CHECK_RESULT $? 0 0 "install libpciaccess-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libpciaccess-debugsource + CHECK_RESULT $? 0 0 "remove libpciaccess-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess-devel.sh b/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8201edb5f99b4f106db3a21272ceb7e62d41534b --- /dev/null +++ b/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpciaccess +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpciaccess-devel | grep -v \.src | grep libpciaccess-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpciaccess-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpciaccess-devel + CHECK_RESULT $? 0 0 "install libpciaccess-devel failed" + SLEEP_WAIT 1 + dnf remove -y libpciaccess-devel + CHECK_RESULT $? 0 0 "remove libpciaccess-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess.sh b/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf2f06406a5e6d92391d511848e2017146f6b934 --- /dev/null +++ b/testcases/cli-test/libpciaccess/oe_test_libpciaccess_install_and_remove_libpciaccess.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpciaccess +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpciaccess | grep -v \.src | grep libpciaccess + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpciaccess" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpciaccess + CHECK_RESULT $? 0 0 "install libpciaccess failed" + SLEEP_WAIT 1 + dnf remove -y libpciaccess + CHECK_RESULT $? 0 0 "remove libpciaccess failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-debuginfo.sh b/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..37b1e6e78b847a900b1f7506795d1b937821e7d6 --- /dev/null +++ b/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpipeline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpipeline-debuginfo | grep -v \.src | grep libpipeline-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpipeline-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpipeline-debuginfo + CHECK_RESULT $? 0 0 "install libpipeline-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libpipeline-debuginfo + CHECK_RESULT $? 0 0 "remove libpipeline-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-debugsource.sh b/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e59c48545df5c552a0c0f91a62aafcbc1c4e753 --- /dev/null +++ b/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpipeline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpipeline-debugsource | grep -v \.src | grep libpipeline-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpipeline-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpipeline-debugsource + CHECK_RESULT $? 0 0 "install libpipeline-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libpipeline-debugsource + CHECK_RESULT $? 0 0 "remove libpipeline-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-devel.sh b/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ffb5339016d781ec09dabe29a13e48d092aefd95 --- /dev/null +++ b/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpipeline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpipeline-devel | grep -v \.src | grep libpipeline-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpipeline-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpipeline-devel + CHECK_RESULT $? 0 0 "install libpipeline-devel failed" + SLEEP_WAIT 1 + dnf remove -y libpipeline-devel + CHECK_RESULT $? 0 0 "remove libpipeline-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-help.sh b/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab4f5c4a3b5df007db5ffca5780c9b61a8bc3389 --- /dev/null +++ b/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpipeline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpipeline-help | grep -v \.src | grep libpipeline-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpipeline-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpipeline-help + CHECK_RESULT $? 0 0 "install libpipeline-help failed" + SLEEP_WAIT 1 + dnf remove -y libpipeline-help + CHECK_RESULT $? 0 0 "remove libpipeline-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline.sh b/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline.sh new file mode 100644 index 0000000000000000000000000000000000000000..436fd23df76793eb6f31032bd2b4e2265bc620e7 --- /dev/null +++ b/testcases/cli-test/libpipeline/oe_test_libpipeline_install_and_remove_libpipeline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpipeline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpipeline | grep -v \.src | grep libpipeline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpipeline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpipeline + CHECK_RESULT $? 0 0 "install libpipeline failed" + SLEEP_WAIT 1 + dnf remove -y libpipeline + CHECK_RESULT $? 0 0 "remove libpipeline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist-debuginfo.sh b/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..99d458b517218fcc4fa63f953f9369fbaea0df13 --- /dev/null +++ b/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libplist +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libplist-debuginfo | grep -v \.src | grep libplist-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libplist-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libplist-debuginfo + CHECK_RESULT $? 0 0 "install libplist-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libplist-debuginfo + CHECK_RESULT $? 0 0 "remove libplist-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist-debugsource.sh b/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f97aeb288ec072727849b77235f31d2c11d9f32 --- /dev/null +++ b/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libplist +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libplist-debugsource | grep -v \.src | grep libplist-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libplist-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libplist-debugsource + CHECK_RESULT $? 0 0 "install libplist-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libplist-debugsource + CHECK_RESULT $? 0 0 "remove libplist-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist-devel.sh b/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1658e95b8051cce55cd0c21bd71aae72df01a30c --- /dev/null +++ b/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libplist +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libplist-devel | grep -v \.src | grep libplist-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libplist-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libplist-devel + CHECK_RESULT $? 0 0 "install libplist-devel failed" + SLEEP_WAIT 1 + dnf remove -y libplist-devel + CHECK_RESULT $? 0 0 "remove libplist-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist.sh b/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist.sh new file mode 100644 index 0000000000000000000000000000000000000000..194eae1f2b11e9699fe1609c89a6654dcc184d76 --- /dev/null +++ b/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_libplist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libplist +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libplist | grep -v \.src | grep libplist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libplist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libplist + CHECK_RESULT $? 0 0 "install libplist failed" + SLEEP_WAIT 1 + dnf remove -y libplist + CHECK_RESULT $? 0 0 "remove libplist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_python3-libplist.sh b/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_python3-libplist.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a91528c9f9b57c0ed02ebcd3cd5e8f510f4afc0 --- /dev/null +++ b/testcases/cli-test/libplist/oe_test_libplist_install_and_remove_python3-libplist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libplist +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libplist | grep -v \.src | grep python3-libplist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libplist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libplist + CHECK_RESULT $? 0 0 "install python3-libplist failed" + SLEEP_WAIT 1 + dnf remove -y python3-libplist + CHECK_RESULT $? 0 0 "remove python3-libplist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-debuginfo.sh b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..992e2ec62b9a0e97ab95e3ec80ba9c82bd11300e --- /dev/null +++ b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpng-debuginfo | grep -v \.src | grep libpng-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpng-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpng-debuginfo + CHECK_RESULT $? 0 0 "install libpng-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libpng-debuginfo + CHECK_RESULT $? 0 0 "remove libpng-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-debugsource.sh b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..329dd1945c321268ed0ef92dfb180d6471c1f0a5 --- /dev/null +++ b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpng-debugsource | grep -v \.src | grep libpng-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpng-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpng-debugsource + CHECK_RESULT $? 0 0 "install libpng-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libpng-debugsource + CHECK_RESULT $? 0 0 "remove libpng-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-devel.sh b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1042c6a042546f15ab02410b1040c882761fbade --- /dev/null +++ b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpng-devel | grep -v \.src | grep libpng-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpng-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpng-devel + CHECK_RESULT $? 0 0 "install libpng-devel failed" + SLEEP_WAIT 1 + dnf remove -y libpng-devel + CHECK_RESULT $? 0 0 "remove libpng-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-help.sh b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb2fac06d9544ee27d5ffca61dd2231b831beccc --- /dev/null +++ b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpng-help | grep -v \.src | grep libpng-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpng-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpng-help + CHECK_RESULT $? 0 0 "install libpng-help failed" + SLEEP_WAIT 1 + dnf remove -y libpng-help + CHECK_RESULT $? 0 0 "remove libpng-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-static.sh b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..1bd33160c8aa65c2606eda465cd3bab78aa5b557 --- /dev/null +++ b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpng-static | grep -v \.src | grep libpng-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpng-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpng-static + CHECK_RESULT $? 0 0 "install libpng-static failed" + SLEEP_WAIT 1 + dnf remove -y libpng-static + CHECK_RESULT $? 0 0 "remove libpng-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-tools.sh b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..874287a8e84f9989ca4374f45bab5128ffd48ca3 --- /dev/null +++ b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpng-tools | grep -v \.src | grep libpng-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpng-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpng-tools + CHECK_RESULT $? 0 0 "install libpng-tools failed" + SLEEP_WAIT 1 + dnf remove -y libpng-tools + CHECK_RESULT $? 0 0 "remove libpng-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng.sh b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng.sh new file mode 100644 index 0000000000000000000000000000000000000000..6eed8af45d49c56772c440872d95f016fb24cf52 --- /dev/null +++ b/testcases/cli-test/libpng/oe_test_libpng_install_and_remove_libpng.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpng | grep -v \.src | grep libpng + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpng" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpng + CHECK_RESULT $? 0 0 "install libpng failed" + SLEEP_WAIT 1 + dnf remove -y libpng + CHECK_RESULT $? 0 0 "remove libpng failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq-debuginfo.sh b/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5da152a3063a1c679d59fd00b13e394fa6823b7 --- /dev/null +++ b/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpq-debuginfo | grep -v \.src | grep libpq-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpq-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpq-debuginfo + CHECK_RESULT $? 0 0 "install libpq-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libpq-debuginfo + CHECK_RESULT $? 0 0 "remove libpq-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq-debugsource.sh b/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ce40c6035721be3d1564a415aa6fd37d202e5ee --- /dev/null +++ b/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpq-debugsource | grep -v \.src | grep libpq-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpq-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpq-debugsource + CHECK_RESULT $? 0 0 "install libpq-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libpq-debugsource + CHECK_RESULT $? 0 0 "remove libpq-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq-devel.sh b/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..eade96060a5f19f7e501b5e72a03db62cd872476 --- /dev/null +++ b/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpq-devel | grep -v \.src | grep libpq-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpq-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpq-devel + CHECK_RESULT $? 0 0 "install libpq-devel failed" + SLEEP_WAIT 1 + dnf remove -y libpq-devel + CHECK_RESULT $? 0 0 "remove libpq-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq.sh b/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq.sh new file mode 100644 index 0000000000000000000000000000000000000000..2be60f36045010aa564f21b40c675c83b3112a6e --- /dev/null +++ b/testcases/cli-test/libpq/oe_test_libpq_install_and_remove_libpq.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpq | grep -v \.src | grep libpq + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpq" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpq + CHECK_RESULT $? 0 0 "install libpq failed" + SLEEP_WAIT 1 + dnf remove -y libpq + CHECK_RESULT $? 0 0 "remove libpq failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-debuginfo.sh b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6f5917445d91c97339b451a2a2eb4eb595cdd09 --- /dev/null +++ b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libproxy-debuginfo | grep -v \.src | grep libproxy-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libproxy-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libproxy-debuginfo + CHECK_RESULT $? 0 0 "install libproxy-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libproxy-debuginfo + CHECK_RESULT $? 0 0 "remove libproxy-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-debugsource.sh b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b0a956e6fe78e0f1f776e4cfd75e463282aeab3 --- /dev/null +++ b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libproxy-debugsource | grep -v \.src | grep libproxy-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libproxy-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libproxy-debugsource + CHECK_RESULT $? 0 0 "install libproxy-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libproxy-debugsource + CHECK_RESULT $? 0 0 "remove libproxy-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-devel.sh b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0acbc6ac482acd5b9c3fa3a05c72538b521892e5 --- /dev/null +++ b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libproxy-devel | grep -v \.src | grep libproxy-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libproxy-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libproxy-devel + CHECK_RESULT $? 0 0 "install libproxy-devel failed" + SLEEP_WAIT 1 + dnf remove -y libproxy-devel + CHECK_RESULT $? 0 0 "remove libproxy-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-duktape.sh b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-duktape.sh new file mode 100644 index 0000000000000000000000000000000000000000..a57c527a8ca29ee5bfb496ddedbdee0476736fc1 --- /dev/null +++ b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-duktape.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libproxy-duktape | grep -v \.src | grep libproxy-duktape + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libproxy-duktape" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libproxy-duktape + CHECK_RESULT $? 0 0 "install libproxy-duktape failed" + SLEEP_WAIT 1 + dnf remove -y libproxy-duktape + CHECK_RESULT $? 0 0 "remove libproxy-duktape failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-help.sh b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fb7bf58ed2b2e4423079f9696351fd7479c9e1d --- /dev/null +++ b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libproxy-help | grep -v \.src | grep libproxy-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libproxy-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libproxy-help + CHECK_RESULT $? 0 0 "install libproxy-help failed" + SLEEP_WAIT 1 + dnf remove -y libproxy-help + CHECK_RESULT $? 0 0 "remove libproxy-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-webkitgtk4.sh b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-webkitgtk4.sh new file mode 100644 index 0000000000000000000000000000000000000000..999d1ee507530600bad64dee1d262cb0e02f5a3f --- /dev/null +++ b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy-webkitgtk4.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libproxy-webkitgtk4 | grep -v \.src | grep libproxy-webkitgtk4 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libproxy-webkitgtk4" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libproxy-webkitgtk4 + CHECK_RESULT $? 0 0 "install libproxy-webkitgtk4 failed" + SLEEP_WAIT 1 + dnf remove -y libproxy-webkitgtk4 + CHECK_RESULT $? 0 0 "remove libproxy-webkitgtk4 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy.sh b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy.sh new file mode 100644 index 0000000000000000000000000000000000000000..55fc4dfd6588184a1d9a901008555a4c471864ca --- /dev/null +++ b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_libproxy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libproxy | grep -v \.src | grep libproxy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libproxy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libproxy + CHECK_RESULT $? 0 0 "install libproxy failed" + SLEEP_WAIT 1 + dnf remove -y libproxy + CHECK_RESULT $? 0 0 "remove libproxy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_python2-libproxy.sh b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_python2-libproxy.sh new file mode 100644 index 0000000000000000000000000000000000000000..288eaa08a865812f2e7c0a7fe8a65feaa320263f --- /dev/null +++ b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_python2-libproxy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libproxy | grep -v \.src | grep python2-libproxy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libproxy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libproxy + CHECK_RESULT $? 0 0 "install python2-libproxy failed" + SLEEP_WAIT 1 + dnf remove -y python2-libproxy + CHECK_RESULT $? 0 0 "remove python2-libproxy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_python3-libproxy.sh b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_python3-libproxy.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a99a1f0c03867983986e67e79ddf3802f0028c2 --- /dev/null +++ b/testcases/cli-test/libproxy/oe_test_libproxy_install_and_remove_python3-libproxy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libproxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libproxy | grep -v \.src | grep python3-libproxy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libproxy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libproxy + CHECK_RESULT $? 0 0 "install python3-libproxy failed" + SLEEP_WAIT 1 + dnf remove -y python3-libproxy + CHECK_RESULT $? 0 0 "remove python3-libproxy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-debuginfo.sh b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d37bd8222170986fea32ec7830b16b5b69824e57 --- /dev/null +++ b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpsl-debuginfo | grep -v \.src | grep libpsl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpsl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpsl-debuginfo + CHECK_RESULT $? 0 0 "install libpsl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libpsl-debuginfo + CHECK_RESULT $? 0 0 "remove libpsl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-debugsource.sh b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bbdfff87cf38a8678045001a72922094639b648 --- /dev/null +++ b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpsl-debugsource | grep -v \.src | grep libpsl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpsl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpsl-debugsource + CHECK_RESULT $? 0 0 "install libpsl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libpsl-debugsource + CHECK_RESULT $? 0 0 "remove libpsl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-devel.sh b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8139af3a8a43d989a9c1c30a7ed801a51ee29444 --- /dev/null +++ b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpsl-devel | grep -v \.src | grep libpsl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpsl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpsl-devel + CHECK_RESULT $? 0 0 "install libpsl-devel failed" + SLEEP_WAIT 1 + dnf remove -y libpsl-devel + CHECK_RESULT $? 0 0 "remove libpsl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-doc.sh b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd36acdf28734eeee036389772c44db23b226c86 --- /dev/null +++ b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpsl-doc | grep -v \.src | grep libpsl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpsl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpsl-doc + CHECK_RESULT $? 0 0 "install libpsl-doc failed" + SLEEP_WAIT 1 + dnf remove -y libpsl-doc + CHECK_RESULT $? 0 0 "remove libpsl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-help.sh b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5c7650c9b855863e42674511602d1812fea72b0 --- /dev/null +++ b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpsl-help | grep -v \.src | grep libpsl-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpsl-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpsl-help + CHECK_RESULT $? 0 0 "install libpsl-help failed" + SLEEP_WAIT 1 + dnf remove -y libpsl-help + CHECK_RESULT $? 0 0 "remove libpsl-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl.sh b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl.sh new file mode 100644 index 0000000000000000000000000000000000000000..b23083543067f0bc2735a167691ce5488350fc91 --- /dev/null +++ b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_libpsl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpsl | grep -v \.src | grep libpsl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpsl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpsl + CHECK_RESULT $? 0 0 "install libpsl failed" + SLEEP_WAIT 1 + dnf remove -y libpsl + CHECK_RESULT $? 0 0 "remove libpsl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_psl-make-dafsa.sh b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_psl-make-dafsa.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1df358fcd83091fe6d906799a76a704d8cfbcde --- /dev/null +++ b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_psl-make-dafsa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available psl-make-dafsa | grep -v \.src | grep psl-make-dafsa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm psl-make-dafsa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y psl-make-dafsa + CHECK_RESULT $? 0 0 "install psl-make-dafsa failed" + SLEEP_WAIT 1 + dnf remove -y psl-make-dafsa + CHECK_RESULT $? 0 0 "remove psl-make-dafsa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_psl.sh b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_psl.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c8bf13bc673151aabd89b34087c57af1cc67627 --- /dev/null +++ b/testcases/cli-test/libpsl/oe_test_libpsl_install_and_remove_psl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpsl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available psl | grep -v \.src | grep psl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm psl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y psl + CHECK_RESULT $? 0 0 "install psl failed" + SLEEP_WAIT 1 + dnf remove -y psl + CHECK_RESULT $? 0 0 "remove psl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-debuginfo.sh b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f2f27ccf98e72efb8014b46c62c22d0c8cfa9bc --- /dev/null +++ b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpwquality +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpwquality-debuginfo | grep -v \.src | grep libpwquality-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpwquality-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpwquality-debuginfo + CHECK_RESULT $? 0 0 "install libpwquality-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libpwquality-debuginfo + CHECK_RESULT $? 0 0 "remove libpwquality-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-debugsource.sh b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0657302a3fe5791664e7b9c9d1d0d11f604cc10 --- /dev/null +++ b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpwquality +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpwquality-debugsource | grep -v \.src | grep libpwquality-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpwquality-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpwquality-debugsource + CHECK_RESULT $? 0 0 "install libpwquality-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libpwquality-debugsource + CHECK_RESULT $? 0 0 "remove libpwquality-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-devel.sh b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae7e5d1fce60598359137437daf06393a311c249 --- /dev/null +++ b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpwquality +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpwquality-devel | grep -v \.src | grep libpwquality-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpwquality-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpwquality-devel + CHECK_RESULT $? 0 0 "install libpwquality-devel failed" + SLEEP_WAIT 1 + dnf remove -y libpwquality-devel + CHECK_RESULT $? 0 0 "remove libpwquality-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-help.sh b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3294160717d52213ec2cba2124ff94795ddfc854 --- /dev/null +++ b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpwquality +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpwquality-help | grep -v \.src | grep libpwquality-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpwquality-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpwquality-help + CHECK_RESULT $? 0 0 "install libpwquality-help failed" + SLEEP_WAIT 1 + dnf remove -y libpwquality-help + CHECK_RESULT $? 0 0 "remove libpwquality-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality.sh b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality.sh new file mode 100644 index 0000000000000000000000000000000000000000..100c868f177881aa21948a7005f93f536c7574ca --- /dev/null +++ b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_libpwquality.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpwquality +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpwquality | grep -v \.src | grep libpwquality + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpwquality" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpwquality + CHECK_RESULT $? 0 0 "install libpwquality failed" + SLEEP_WAIT 1 + dnf remove -y libpwquality + CHECK_RESULT $? 0 0 "remove libpwquality failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_python2-pwquality.sh b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_python2-pwquality.sh new file mode 100644 index 0000000000000000000000000000000000000000..04ccef64ef757d0764dcee19c4c0143be8187b24 --- /dev/null +++ b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_python2-pwquality.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpwquality +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pwquality | grep -v \.src | grep python2-pwquality + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pwquality" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pwquality + CHECK_RESULT $? 0 0 "install python2-pwquality failed" + SLEEP_WAIT 1 + dnf remove -y python2-pwquality + CHECK_RESULT $? 0 0 "remove python2-pwquality failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_python3-pwquality.sh b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_python3-pwquality.sh new file mode 100644 index 0000000000000000000000000000000000000000..c91ef2efab674a197e65982b0807043edfe7eee7 --- /dev/null +++ b/testcases/cli-test/libpwquality/oe_test_libpwquality_install_and_remove_python3-pwquality.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libpwquality +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pwquality | grep -v \.src | grep python3-pwquality + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pwquality" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pwquality + CHECK_RESULT $? 0 0 "install python3-pwquality failed" + SLEEP_WAIT 1 + dnf remove -y python3-pwquality + CHECK_RESULT $? 0 0 "remove python3-pwquality failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-debuginfo.sh b/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..577f54a24d96fdc82ac17c1254a4d05bc75c29c6 --- /dev/null +++ b/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libqmi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libqmi-debuginfo | grep -v \.src | grep libqmi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libqmi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libqmi-debuginfo + CHECK_RESULT $? 0 0 "install libqmi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libqmi-debuginfo + CHECK_RESULT $? 0 0 "remove libqmi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-debugsource.sh b/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..27d989691c38d5cac210d6a3004cfd98242962c8 --- /dev/null +++ b/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libqmi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libqmi-debugsource | grep -v \.src | grep libqmi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libqmi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libqmi-debugsource + CHECK_RESULT $? 0 0 "install libqmi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libqmi-debugsource + CHECK_RESULT $? 0 0 "remove libqmi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-devel.sh b/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d2bb6e437a8100c5bd3b669418397b18bbad2aa --- /dev/null +++ b/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libqmi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libqmi-devel | grep -v \.src | grep libqmi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libqmi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libqmi-devel + CHECK_RESULT $? 0 0 "install libqmi-devel failed" + SLEEP_WAIT 1 + dnf remove -y libqmi-devel + CHECK_RESULT $? 0 0 "remove libqmi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-help.sh b/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..46e54fb9147b67c238fc728374b6c983d0e4d798 --- /dev/null +++ b/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libqmi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libqmi-help | grep -v \.src | grep libqmi-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libqmi-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libqmi-help + CHECK_RESULT $? 0 0 "install libqmi-help failed" + SLEEP_WAIT 1 + dnf remove -y libqmi-help + CHECK_RESULT $? 0 0 "remove libqmi-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi.sh b/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c33e786fb4805587540945becb32fd0ce2aa17c --- /dev/null +++ b/testcases/cli-test/libqmi/oe_test_libqmi_install_and_remove_libqmi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libqmi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libqmi | grep -v \.src | grep libqmi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libqmi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libqmi + CHECK_RESULT $? 0 0 "install libqmi failed" + SLEEP_WAIT 1 + dnf remove -y libqmi + CHECK_RESULT $? 0 0 "remove libqmi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-debuginfo.sh b/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..115b4a83bfd238dfe980252c8950e9586809c305 --- /dev/null +++ b/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librabbitmq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librabbitmq-debuginfo | grep -v \.src | grep librabbitmq-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librabbitmq-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librabbitmq-debuginfo + CHECK_RESULT $? 0 0 "install librabbitmq-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y librabbitmq-debuginfo + CHECK_RESULT $? 0 0 "remove librabbitmq-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-debugsource.sh b/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..32af65cd23374ab5c153be51d1a4a7496cbef561 --- /dev/null +++ b/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librabbitmq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librabbitmq-debugsource | grep -v \.src | grep librabbitmq-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librabbitmq-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librabbitmq-debugsource + CHECK_RESULT $? 0 0 "install librabbitmq-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y librabbitmq-debugsource + CHECK_RESULT $? 0 0 "remove librabbitmq-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-devel.sh b/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a96370f75718d9177603c193b72ed76896894bcb --- /dev/null +++ b/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librabbitmq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librabbitmq-devel | grep -v \.src | grep librabbitmq-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librabbitmq-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librabbitmq-devel + CHECK_RESULT $? 0 0 "install librabbitmq-devel failed" + SLEEP_WAIT 1 + dnf remove -y librabbitmq-devel + CHECK_RESULT $? 0 0 "remove librabbitmq-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-help.sh b/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3d40a4e2d699bb4d0f045ec67e7a87f77743f96 --- /dev/null +++ b/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librabbitmq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librabbitmq-help | grep -v \.src | grep librabbitmq-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librabbitmq-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librabbitmq-help + CHECK_RESULT $? 0 0 "install librabbitmq-help failed" + SLEEP_WAIT 1 + dnf remove -y librabbitmq-help + CHECK_RESULT $? 0 0 "remove librabbitmq-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq.sh b/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq.sh new file mode 100644 index 0000000000000000000000000000000000000000..5aa5d9aeb639caa8f0492b55e0cdae53b2257908 --- /dev/null +++ b/testcases/cli-test/librabbitmq/oe_test_librabbitmq_install_and_remove_librabbitmq.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librabbitmq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librabbitmq | grep -v \.src | grep librabbitmq + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librabbitmq" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librabbitmq + CHECK_RESULT $? 0 0 "install librabbitmq failed" + SLEEP_WAIT 1 + dnf remove -y librabbitmq + CHECK_RESULT $? 0 0 "remove librabbitmq failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka-debuginfo.sh b/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f67717adbaf10832865187851dd72e22549fd0ad --- /dev/null +++ b/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librdkafka +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librdkafka-debuginfo | grep -v \.src | grep librdkafka-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librdkafka-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librdkafka-debuginfo + CHECK_RESULT $? 0 0 "install librdkafka-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y librdkafka-debuginfo + CHECK_RESULT $? 0 0 "remove librdkafka-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka-debugsource.sh b/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e495b270278ac272c2f9ecdf6ba9383bf2649749 --- /dev/null +++ b/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librdkafka +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librdkafka-debugsource | grep -v \.src | grep librdkafka-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librdkafka-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librdkafka-debugsource + CHECK_RESULT $? 0 0 "install librdkafka-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y librdkafka-debugsource + CHECK_RESULT $? 0 0 "remove librdkafka-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka-devel.sh b/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab7e38c159a619747cdca3b7d08c72db45439f6a --- /dev/null +++ b/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librdkafka +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librdkafka-devel | grep -v \.src | grep librdkafka-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librdkafka-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librdkafka-devel + CHECK_RESULT $? 0 0 "install librdkafka-devel failed" + SLEEP_WAIT 1 + dnf remove -y librdkafka-devel + CHECK_RESULT $? 0 0 "remove librdkafka-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka.sh b/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka.sh new file mode 100644 index 0000000000000000000000000000000000000000..60ff183876db549294b1d2be8d58ff204699b698 --- /dev/null +++ b/testcases/cli-test/librdkafka/oe_test_librdkafka_install_and_remove_librdkafka.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librdkafka +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librdkafka | grep -v \.src | grep librdkafka + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librdkafka" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librdkafka + CHECK_RESULT $? 0 0 "install librdkafka failed" + SLEEP_WAIT 1 + dnf remove -y librdkafka + CHECK_RESULT $? 0 0 "remove librdkafka failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp-debuginfo.sh b/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8e469b4ac79af761e51d34c4c245045ff062164 --- /dev/null +++ b/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librelp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librelp-debuginfo | grep -v \.src | grep librelp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librelp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librelp-debuginfo + CHECK_RESULT $? 0 0 "install librelp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y librelp-debuginfo + CHECK_RESULT $? 0 0 "remove librelp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp-debugsource.sh b/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..288b7d98ea6f6036b76f645d5e1b5dbcf48a25d0 --- /dev/null +++ b/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librelp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librelp-debugsource | grep -v \.src | grep librelp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librelp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librelp-debugsource + CHECK_RESULT $? 0 0 "install librelp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y librelp-debugsource + CHECK_RESULT $? 0 0 "remove librelp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp-devel.sh b/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..81b3d6eddc3b0225d168e3ad3784da6054610cb3 --- /dev/null +++ b/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librelp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librelp-devel | grep -v \.src | grep librelp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librelp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librelp-devel + CHECK_RESULT $? 0 0 "install librelp-devel failed" + SLEEP_WAIT 1 + dnf remove -y librelp-devel + CHECK_RESULT $? 0 0 "remove librelp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp.sh b/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp.sh new file mode 100644 index 0000000000000000000000000000000000000000..6085fc407c1a53af514384b5495b42160e63b1aa --- /dev/null +++ b/testcases/cli-test/librelp/oe_test_librelp_install_and_remove_librelp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librelp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librelp | grep -v \.src | grep librelp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librelp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librelp + CHECK_RESULT $? 0 0 "install librelp failed" + SLEEP_WAIT 1 + dnf remove -y librelp + CHECK_RESULT $? 0 0 "remove librelp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo-debuginfo.sh b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c0ed18020382bc9c592500d6a92b7d9986de94e --- /dev/null +++ b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librepo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librepo-debuginfo | grep -v \.src | grep librepo-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librepo-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librepo-debuginfo + CHECK_RESULT $? 0 0 "install librepo-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y librepo-debuginfo + CHECK_RESULT $? 0 0 "remove librepo-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo-debugsource.sh b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b76d1176a4b755fa0de420b4570906c772d1d60 --- /dev/null +++ b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librepo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librepo-debugsource | grep -v \.src | grep librepo-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librepo-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librepo-debugsource + CHECK_RESULT $? 0 0 "install librepo-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y librepo-debugsource + CHECK_RESULT $? 0 0 "remove librepo-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo-devel.sh b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..24ede6038334baff394fbad61c21c11c69a9770c --- /dev/null +++ b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librepo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librepo-devel | grep -v \.src | grep librepo-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librepo-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librepo-devel + CHECK_RESULT $? 0 0 "install librepo-devel failed" + SLEEP_WAIT 1 + dnf remove -y librepo-devel + CHECK_RESULT $? 0 0 "remove librepo-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo.sh b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0897b9171dbf413efabebd488aaaae56cf344be3 --- /dev/null +++ b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_librepo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librepo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librepo | grep -v \.src | grep librepo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librepo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librepo + CHECK_RESULT $? 0 0 "install librepo failed" + SLEEP_WAIT 1 + dnf remove -y librepo + CHECK_RESULT $? 0 0 "remove librepo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_python2-librepo.sh b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_python2-librepo.sh new file mode 100644 index 0000000000000000000000000000000000000000..232dcfab61124a3a545fd05290e898a667fdc732 --- /dev/null +++ b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_python2-librepo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librepo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-librepo | grep -v \.src | grep python2-librepo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-librepo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-librepo + CHECK_RESULT $? 0 0 "install python2-librepo failed" + SLEEP_WAIT 1 + dnf remove -y python2-librepo + CHECK_RESULT $? 0 0 "remove python2-librepo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_python3-librepo.sh b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_python3-librepo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bf982d8c1017b8495eda25123704bf7c4d0844d --- /dev/null +++ b/testcases/cli-test/librepo/oe_test_librepo_install_and_remove_python3-librepo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librepo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-librepo | grep -v \.src | grep python3-librepo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-librepo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-librepo + CHECK_RESULT $? 0 0 "install python3-librepo failed" + SLEEP_WAIT 1 + dnf remove -y python3-librepo + CHECK_RESULT $? 0 0 "remove python3-librepo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-anaconda.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-anaconda.sh new file mode 100644 index 0000000000000000000000000000000000000000..242437fd8f63f6dc51b70bcf5de69ee21d972d1b --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-anaconda.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-anaconda | grep -v \.src | grep libreport-anaconda + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-anaconda" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-anaconda + CHECK_RESULT $? 0 0 "install libreport-anaconda failed" + SLEEP_WAIT 1 + dnf remove -y libreport-anaconda + CHECK_RESULT $? 0 0 "remove libreport-anaconda failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-cli.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-cli.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fa36bcaf069764c15abcb51e9b15b44613ae0fe --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-cli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-cli | grep -v \.src | grep libreport-cli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-cli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-cli + CHECK_RESULT $? 0 0 "install libreport-cli failed" + SLEEP_WAIT 1 + dnf remove -y libreport-cli + CHECK_RESULT $? 0 0 "remove libreport-cli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-compat.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-compat.sh new file mode 100644 index 0000000000000000000000000000000000000000..a46e1c4713eee9c43be64e6c2340b349ae1314bc --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-compat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-compat | grep -v \.src | grep libreport-compat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-compat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-compat + CHECK_RESULT $? 0 0 "install libreport-compat failed" + SLEEP_WAIT 1 + dnf remove -y libreport-compat + CHECK_RESULT $? 0 0 "remove libreport-compat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-debuginfo.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b417e9ad1e094ea21a622a02c6db33cfc2a7d7ad --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-debuginfo | grep -v \.src | grep libreport-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-debuginfo + CHECK_RESULT $? 0 0 "install libreport-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libreport-debuginfo + CHECK_RESULT $? 0 0 "remove libreport-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-debugsource.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c43449b8eab9047938a7744bd5023f9b561482d --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-debugsource | grep -v \.src | grep libreport-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-debugsource + CHECK_RESULT $? 0 0 "install libreport-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libreport-debugsource + CHECK_RESULT $? 0 0 "remove libreport-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-devel.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..198f7ad275d8d7c56bf0b91b0e1e76b90c420ee0 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-devel | grep -v \.src | grep libreport-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-devel + CHECK_RESULT $? 0 0 "install libreport-devel failed" + SLEEP_WAIT 1 + dnf remove -y libreport-devel + CHECK_RESULT $? 0 0 "remove libreport-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-filesystem.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d6876d2d214b5d97c8e58334eaf68ab5bde5321 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-filesystem | grep -v \.src | grep libreport-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-filesystem + CHECK_RESULT $? 0 0 "install libreport-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y libreport-filesystem + CHECK_RESULT $? 0 0 "remove libreport-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-gtk-devel.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-gtk-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a6be10c634ab6c6c7ca6719c79d54a3a41091c6 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-gtk-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-gtk-devel | grep -v \.src | grep libreport-gtk-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-gtk-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-gtk-devel + CHECK_RESULT $? 0 0 "install libreport-gtk-devel failed" + SLEEP_WAIT 1 + dnf remove -y libreport-gtk-devel + CHECK_RESULT $? 0 0 "remove libreport-gtk-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-gtk.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-gtk.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6be2835e0b79cd3a1cd80e4605bb78025e632a4 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-gtk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-gtk | grep -v \.src | grep libreport-gtk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-gtk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-gtk + CHECK_RESULT $? 0 0 "install libreport-gtk failed" + SLEEP_WAIT 1 + dnf remove -y libreport-gtk + CHECK_RESULT $? 0 0 "remove libreport-gtk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-help.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2e7886ab0620f9eaa8dd1189d279ee446269e19 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-help | grep -v \.src | grep libreport-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-help + CHECK_RESULT $? 0 0 "install libreport-help failed" + SLEEP_WAIT 1 + dnf remove -y libreport-help + CHECK_RESULT $? 0 0 "remove libreport-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-newt.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-newt.sh new file mode 100644 index 0000000000000000000000000000000000000000..d00600ac24cc203c213edc4e87bb883a7b9edf98 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-newt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-newt | grep -v \.src | grep libreport-newt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-newt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-newt + CHECK_RESULT $? 0 0 "install libreport-newt failed" + SLEEP_WAIT 1 + dnf remove -y libreport-newt + CHECK_RESULT $? 0 0 "remove libreport-newt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-kerneloops.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-kerneloops.sh new file mode 100644 index 0000000000000000000000000000000000000000..abd1d32fe4187dd7648ff11821eb5bfa8d457767 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-kerneloops.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-plugin-kerneloops | grep -v \.src | grep libreport-plugin-kerneloops + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-plugin-kerneloops" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-plugin-kerneloops + CHECK_RESULT $? 0 0 "install libreport-plugin-kerneloops failed" + SLEEP_WAIT 1 + dnf remove -y libreport-plugin-kerneloops + CHECK_RESULT $? 0 0 "remove libreport-plugin-kerneloops failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-logger.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-logger.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0c3bfad5ff1f2470470169cfc3abe10ed30ee12 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-logger.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-plugin-logger | grep -v \.src | grep libreport-plugin-logger + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-plugin-logger" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-plugin-logger + CHECK_RESULT $? 0 0 "install libreport-plugin-logger failed" + SLEEP_WAIT 1 + dnf remove -y libreport-plugin-logger + CHECK_RESULT $? 0 0 "remove libreport-plugin-logger failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-reportuploader.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-reportuploader.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ab48097305f343a73efd5d64d9a9c7ece08ae11 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-reportuploader.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-plugin-reportuploader | grep -v \.src | grep libreport-plugin-reportuploader + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-plugin-reportuploader" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-plugin-reportuploader + CHECK_RESULT $? 0 0 "install libreport-plugin-reportuploader failed" + SLEEP_WAIT 1 + dnf remove -y libreport-plugin-reportuploader + CHECK_RESULT $? 0 0 "remove libreport-plugin-reportuploader failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-systemd-journal.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-systemd-journal.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5e2f5d0bdcb76364ab0e87de21464d7333dd3e4 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-plugin-systemd-journal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-plugin-systemd-journal | grep -v \.src | grep libreport-plugin-systemd-journal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-plugin-systemd-journal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-plugin-systemd-journal + CHECK_RESULT $? 0 0 "install libreport-plugin-systemd-journal failed" + SLEEP_WAIT 1 + dnf remove -y libreport-plugin-systemd-journal + CHECK_RESULT $? 0 0 "remove libreport-plugin-systemd-journal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-rhel.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-rhel.sh new file mode 100644 index 0000000000000000000000000000000000000000..57d755d93ed3d579626b2e248da492ec72f73761 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-rhel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-rhel | grep -v \.src | grep libreport-rhel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-rhel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-rhel + CHECK_RESULT $? 0 0 "install libreport-rhel failed" + SLEEP_WAIT 1 + dnf remove -y libreport-rhel + CHECK_RESULT $? 0 0 "remove libreport-rhel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-web-devel.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-web-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..534f0cc08ae058c33909e48db31051787b27a622 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-web-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-web-devel | grep -v \.src | grep libreport-web-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-web-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-web-devel + CHECK_RESULT $? 0 0 "install libreport-web-devel failed" + SLEEP_WAIT 1 + dnf remove -y libreport-web-devel + CHECK_RESULT $? 0 0 "remove libreport-web-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-web.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-web.sh new file mode 100644 index 0000000000000000000000000000000000000000..c92af3636b663bf470352c2bdd8a1d1fd5b60d0e --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport-web.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport-web | grep -v \.src | grep libreport-web + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport-web" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport-web + CHECK_RESULT $? 0 0 "install libreport-web failed" + SLEEP_WAIT 1 + dnf remove -y libreport-web + CHECK_RESULT $? 0 0 "remove libreport-web failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport.sh new file mode 100644 index 0000000000000000000000000000000000000000..b311f2bc11fae3021e44149d7d41545b79864e9b --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_libreport.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libreport | grep -v \.src | grep libreport + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libreport" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libreport + CHECK_RESULT $? 0 0 "install libreport failed" + SLEEP_WAIT 1 + dnf remove -y libreport + CHECK_RESULT $? 0 0 "remove libreport failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_python2-libreport.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_python2-libreport.sh new file mode 100644 index 0000000000000000000000000000000000000000..2216fc9742dcfa91c94900c6fa45fed0c2fb463c --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_python2-libreport.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libreport | grep -v \.src | grep python2-libreport + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libreport" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libreport + CHECK_RESULT $? 0 0 "install python2-libreport failed" + SLEEP_WAIT 1 + dnf remove -y python2-libreport + CHECK_RESULT $? 0 0 "remove python2-libreport failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_python3-libreport.sh b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_python3-libreport.sh new file mode 100644 index 0000000000000000000000000000000000000000..6adb3f6c7285b95c9d99cf07e1a143f001c9c725 --- /dev/null +++ b/testcases/cli-test/libreport/oe_test_libreport_install_and_remove_python3-libreport.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libreport +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libreport | grep -v \.src | grep python3-libreport + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libreport" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libreport + CHECK_RESULT $? 0 0 "install python3-libreport failed" + SLEEP_WAIT 1 + dnf remove -y python3-libreport + CHECK_RESULT $? 0 0 "remove python3-libreport failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-debuginfo.sh b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd92db69df3ff42556d1d5468de4e07b7475e3e5 --- /dev/null +++ b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librsvg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librsvg2-debuginfo | grep -v \.src | grep librsvg2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librsvg2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librsvg2-debuginfo + CHECK_RESULT $? 0 0 "install librsvg2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y librsvg2-debuginfo + CHECK_RESULT $? 0 0 "remove librsvg2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-debugsource.sh b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e62ec376d4fb761e9a3c377e89308512d2696f73 --- /dev/null +++ b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librsvg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librsvg2-debugsource | grep -v \.src | grep librsvg2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librsvg2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librsvg2-debugsource + CHECK_RESULT $? 0 0 "install librsvg2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y librsvg2-debugsource + CHECK_RESULT $? 0 0 "remove librsvg2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-devel.sh b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ff554451a90835ee33bfa3deb26c3af015f6fc2 --- /dev/null +++ b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librsvg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librsvg2-devel | grep -v \.src | grep librsvg2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librsvg2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librsvg2-devel + CHECK_RESULT $? 0 0 "install librsvg2-devel failed" + SLEEP_WAIT 1 + dnf remove -y librsvg2-devel + CHECK_RESULT $? 0 0 "remove librsvg2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-help.sh b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4077e3868b409c00f913d479d15acbbfffb79c2d --- /dev/null +++ b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librsvg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librsvg2-help | grep -v \.src | grep librsvg2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librsvg2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librsvg2-help + CHECK_RESULT $? 0 0 "install librsvg2-help failed" + SLEEP_WAIT 1 + dnf remove -y librsvg2-help + CHECK_RESULT $? 0 0 "remove librsvg2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-tools.sh b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3a16cdd087c871627e93539142cb328bb8106ee --- /dev/null +++ b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librsvg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librsvg2-tools | grep -v \.src | grep librsvg2-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librsvg2-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librsvg2-tools + CHECK_RESULT $? 0 0 "install librsvg2-tools failed" + SLEEP_WAIT 1 + dnf remove -y librsvg2-tools + CHECK_RESULT $? 0 0 "remove librsvg2-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2.sh b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2.sh new file mode 100644 index 0000000000000000000000000000000000000000..7501bf07948f18a809d3723366376ba05ce745c3 --- /dev/null +++ b/testcases/cli-test/librsvg2/oe_test_librsvg2_install_and_remove_librsvg2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src librsvg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librsvg2 | grep -v \.src | grep librsvg2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librsvg2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librsvg2 + CHECK_RESULT $? 0 0 "install librsvg2 failed" + SLEEP_WAIT 1 + dnf remove -y librsvg2 + CHECK_RESULT $? 0 0 "remove librsvg2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass-debuginfo.sh b/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..410d9ee1babb68a7039f34a3add588574a18490c --- /dev/null +++ b/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsass +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsass-debuginfo | grep -v \.src | grep libsass-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsass-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsass-debuginfo + CHECK_RESULT $? 0 0 "install libsass-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libsass-debuginfo + CHECK_RESULT $? 0 0 "remove libsass-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass-debugsource.sh b/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..541b91cb1814d861fdff772ecd1d3960bca6ef5c --- /dev/null +++ b/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsass +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsass-debugsource | grep -v \.src | grep libsass-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsass-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsass-debugsource + CHECK_RESULT $? 0 0 "install libsass-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libsass-debugsource + CHECK_RESULT $? 0 0 "remove libsass-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass-devel.sh b/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa4d1fcf0a077cd6a93d82e01cf6cb7506f6deb7 --- /dev/null +++ b/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsass +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsass-devel | grep -v \.src | grep libsass-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsass-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsass-devel + CHECK_RESULT $? 0 0 "install libsass-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsass-devel + CHECK_RESULT $? 0 0 "remove libsass-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass.sh b/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f353c62a726ca4b40e2e0b8d07af9f7ddcb93b7 --- /dev/null +++ b/testcases/cli-test/libsass/oe_test_libsass_install_and_remove_libsass.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsass +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsass | grep -v \.src | grep libsass + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsass" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsass + CHECK_RESULT $? 0 0 "install libsass failed" + SLEEP_WAIT 1 + dnf remove -y libsass + CHECK_RESULT $? 0 0 "remove libsass failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-debuginfo.sh b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0f06de6c1ed579937f59740f4f4fd3915aca687 --- /dev/null +++ b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libseccomp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libseccomp-debuginfo | grep -v \.src | grep libseccomp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libseccomp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libseccomp-debuginfo + CHECK_RESULT $? 0 0 "install libseccomp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libseccomp-debuginfo + CHECK_RESULT $? 0 0 "remove libseccomp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-debugsource.sh b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4413eea1400e7c9dfc85d07f3d58677b8e9d71ca --- /dev/null +++ b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libseccomp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libseccomp-debugsource | grep -v \.src | grep libseccomp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libseccomp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libseccomp-debugsource + CHECK_RESULT $? 0 0 "install libseccomp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libseccomp-debugsource + CHECK_RESULT $? 0 0 "remove libseccomp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-devel.sh b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4cc0bd44b60ee5e86c39d627075c5729653056c --- /dev/null +++ b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libseccomp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libseccomp-devel | grep -v \.src | grep libseccomp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libseccomp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libseccomp-devel + CHECK_RESULT $? 0 0 "install libseccomp-devel failed" + SLEEP_WAIT 1 + dnf remove -y libseccomp-devel + CHECK_RESULT $? 0 0 "remove libseccomp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-doc.sh b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..06d105da4c1eb0511c85a70bb359bfe081e84349 --- /dev/null +++ b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libseccomp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libseccomp-doc | grep -v \.src | grep libseccomp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libseccomp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libseccomp-doc + CHECK_RESULT $? 0 0 "install libseccomp-doc failed" + SLEEP_WAIT 1 + dnf remove -y libseccomp-doc + CHECK_RESULT $? 0 0 "remove libseccomp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-help.sh b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..10623b53e47bb66c5ee7be65765662bf36bc7a72 --- /dev/null +++ b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libseccomp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libseccomp-help | grep -v \.src | grep libseccomp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libseccomp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libseccomp-help + CHECK_RESULT $? 0 0 "install libseccomp-help failed" + SLEEP_WAIT 1 + dnf remove -y libseccomp-help + CHECK_RESULT $? 0 0 "remove libseccomp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-static.sh b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..d06518eadb741831b6ac4e668c1307b17649af9d --- /dev/null +++ b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libseccomp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libseccomp-static | grep -v \.src | grep libseccomp-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libseccomp-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libseccomp-static + CHECK_RESULT $? 0 0 "install libseccomp-static failed" + SLEEP_WAIT 1 + dnf remove -y libseccomp-static + CHECK_RESULT $? 0 0 "remove libseccomp-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp.sh b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f13659b9b29c13213078d5bd46634fc7304dcd4 --- /dev/null +++ b/testcases/cli-test/libseccomp/oe_test_libseccomp_install_and_remove_libseccomp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libseccomp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libseccomp | grep -v \.src | grep libseccomp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libseccomp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libseccomp + CHECK_RESULT $? 0 0 "install libseccomp failed" + SLEEP_WAIT 1 + dnf remove -y libseccomp + CHECK_RESULT $? 0 0 "remove libseccomp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-debuginfo.sh b/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea9803ee53580960202f37d380defcd2f63e9267 --- /dev/null +++ b/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsecret +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsecret-debuginfo | grep -v \.src | grep libsecret-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsecret-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsecret-debuginfo + CHECK_RESULT $? 0 0 "install libsecret-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libsecret-debuginfo + CHECK_RESULT $? 0 0 "remove libsecret-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-debugsource.sh b/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4716189f34dc69cf848cf6521981375a41135231 --- /dev/null +++ b/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsecret +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsecret-debugsource | grep -v \.src | grep libsecret-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsecret-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsecret-debugsource + CHECK_RESULT $? 0 0 "install libsecret-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libsecret-debugsource + CHECK_RESULT $? 0 0 "remove libsecret-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-devel.sh b/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0feaa78997cc73753e689d32dcaa9708d828a264 --- /dev/null +++ b/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsecret +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsecret-devel | grep -v \.src | grep libsecret-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsecret-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsecret-devel + CHECK_RESULT $? 0 0 "install libsecret-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsecret-devel + CHECK_RESULT $? 0 0 "remove libsecret-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-help.sh b/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..062c7f764371aa91117e9df069ac8e91618216c5 --- /dev/null +++ b/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsecret +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsecret-help | grep -v \.src | grep libsecret-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsecret-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsecret-help + CHECK_RESULT $? 0 0 "install libsecret-help failed" + SLEEP_WAIT 1 + dnf remove -y libsecret-help + CHECK_RESULT $? 0 0 "remove libsecret-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret.sh b/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe423799fb5e8eec71394001026600019abaca17 --- /dev/null +++ b/testcases/cli-test/libsecret/oe_test_libsecret_install_and_remove_libsecret.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsecret +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsecret | grep -v \.src | grep libsecret + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsecret" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsecret + CHECK_RESULT $? 0 0 "install libsecret failed" + SLEEP_WAIT 1 + dnf remove -y libsecret + CHECK_RESULT $? 0 0 "remove libsecret failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-debuginfo.sh b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..eec76a686e00cffdb901ea6d0be9dea7288be1f5 --- /dev/null +++ b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libselinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libselinux-debuginfo | grep -v \.src | grep libselinux-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libselinux-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libselinux-debuginfo + CHECK_RESULT $? 0 0 "install libselinux-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libselinux-debuginfo + CHECK_RESULT $? 0 0 "remove libselinux-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-debugsource.sh b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b5be59e76df429c58a93de76f12c9362d158378 --- /dev/null +++ b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libselinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libselinux-debugsource | grep -v \.src | grep libselinux-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libselinux-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libselinux-debugsource + CHECK_RESULT $? 0 0 "install libselinux-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libselinux-debugsource + CHECK_RESULT $? 0 0 "remove libselinux-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-devel.sh b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc4045bbaf0970ff8ed39492dbf7cd4bec61cc30 --- /dev/null +++ b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libselinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libselinux-devel | grep -v \.src | grep libselinux-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libselinux-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libselinux-devel + CHECK_RESULT $? 0 0 "install libselinux-devel failed" + SLEEP_WAIT 1 + dnf remove -y libselinux-devel + CHECK_RESULT $? 0 0 "remove libselinux-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-help.sh b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f58cea6562e08c03b9c1d8a7bebb6488df647fc --- /dev/null +++ b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libselinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libselinux-help | grep -v \.src | grep libselinux-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libselinux-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libselinux-help + CHECK_RESULT $? 0 0 "install libselinux-help failed" + SLEEP_WAIT 1 + dnf remove -y libselinux-help + CHECK_RESULT $? 0 0 "remove libselinux-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-ruby.sh b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-ruby.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9d68a7f66eaaf4cb62f40d0d1d982b61d24f179 --- /dev/null +++ b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux-ruby.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libselinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libselinux-ruby | grep -v \.src | grep libselinux-ruby + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libselinux-ruby" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libselinux-ruby + CHECK_RESULT $? 0 0 "install libselinux-ruby failed" + SLEEP_WAIT 1 + dnf remove -y libselinux-ruby + CHECK_RESULT $? 0 0 "remove libselinux-ruby failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux.sh b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a081d2b04bcae57e654c601f40470a9d32acc90 --- /dev/null +++ b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_libselinux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libselinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libselinux | grep -v \.src | grep libselinux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libselinux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libselinux + CHECK_RESULT $? 0 0 "install libselinux failed" + SLEEP_WAIT 1 + dnf remove -y libselinux + CHECK_RESULT $? 0 0 "remove libselinux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_python2-libselinux.sh b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_python2-libselinux.sh new file mode 100644 index 0000000000000000000000000000000000000000..6061c269dbae870f5d600de739ecf94e456ff514 --- /dev/null +++ b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_python2-libselinux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libselinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libselinux | grep -v \.src | grep python2-libselinux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libselinux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libselinux + CHECK_RESULT $? 0 0 "install python2-libselinux failed" + SLEEP_WAIT 1 + dnf remove -y python2-libselinux + CHECK_RESULT $? 0 0 "remove python2-libselinux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_python3-libselinux.sh b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_python3-libselinux.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e3edcf6a467137cc04419a6d99a58113318f62c --- /dev/null +++ b/testcases/cli-test/libselinux/oe_test_libselinux_install_and_remove_python3-libselinux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libselinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libselinux | grep -v \.src | grep python3-libselinux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libselinux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libselinux + CHECK_RESULT $? 0 0 "install python3-libselinux failed" + SLEEP_WAIT 1 + dnf remove -y python3-libselinux + CHECK_RESULT $? 0 0 "remove python3-libselinux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-debuginfo.sh b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a29ca351130a630ef09d54406c4a4fa86a503d81 --- /dev/null +++ b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsemanage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsemanage-debuginfo | grep -v \.src | grep libsemanage-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsemanage-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsemanage-debuginfo + CHECK_RESULT $? 0 0 "install libsemanage-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libsemanage-debuginfo + CHECK_RESULT $? 0 0 "remove libsemanage-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-debugsource.sh b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5b732a66523f39caac98dfa516a72f4643b949d --- /dev/null +++ b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsemanage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsemanage-debugsource | grep -v \.src | grep libsemanage-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsemanage-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsemanage-debugsource + CHECK_RESULT $? 0 0 "install libsemanage-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libsemanage-debugsource + CHECK_RESULT $? 0 0 "remove libsemanage-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-devel.sh b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e1076a935933bde259a980f0cc15d0c1a04882f --- /dev/null +++ b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsemanage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsemanage-devel | grep -v \.src | grep libsemanage-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsemanage-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsemanage-devel + CHECK_RESULT $? 0 0 "install libsemanage-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsemanage-devel + CHECK_RESULT $? 0 0 "remove libsemanage-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-doc.sh b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6972e6c4f506bbc1eb541822d4b7b56f31c1cc6e --- /dev/null +++ b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsemanage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsemanage-doc | grep -v \.src | grep libsemanage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsemanage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsemanage-doc + CHECK_RESULT $? 0 0 "install libsemanage-doc failed" + SLEEP_WAIT 1 + dnf remove -y libsemanage-doc + CHECK_RESULT $? 0 0 "remove libsemanage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-help.sh b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a34d4d975ea6f878bcb292f11fa2c735ecde17bd --- /dev/null +++ b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsemanage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsemanage-help | grep -v \.src | grep libsemanage-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsemanage-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsemanage-help + CHECK_RESULT $? 0 0 "install libsemanage-help failed" + SLEEP_WAIT 1 + dnf remove -y libsemanage-help + CHECK_RESULT $? 0 0 "remove libsemanage-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-python.sh b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-python.sh new file mode 100644 index 0000000000000000000000000000000000000000..41808e5c33ec31c772bf13e427d8c43357fcc43b --- /dev/null +++ b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-python.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsemanage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsemanage-python | grep -v \.src | grep libsemanage-python + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsemanage-python" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsemanage-python + CHECK_RESULT $? 0 0 "install libsemanage-python failed" + SLEEP_WAIT 1 + dnf remove -y libsemanage-python + CHECK_RESULT $? 0 0 "remove libsemanage-python failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-static.sh b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..90d5d0a4d042130e18b138f4e0fbb7ea87a79290 --- /dev/null +++ b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsemanage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsemanage-static | grep -v \.src | grep libsemanage-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsemanage-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsemanage-static + CHECK_RESULT $? 0 0 "install libsemanage-static failed" + SLEEP_WAIT 1 + dnf remove -y libsemanage-static + CHECK_RESULT $? 0 0 "remove libsemanage-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage.sh b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage.sh new file mode 100644 index 0000000000000000000000000000000000000000..da98f4093e2aead96c75e648ef2460e6cb65cad7 --- /dev/null +++ b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_libsemanage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsemanage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsemanage | grep -v \.src | grep libsemanage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsemanage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsemanage + CHECK_RESULT $? 0 0 "install libsemanage failed" + SLEEP_WAIT 1 + dnf remove -y libsemanage + CHECK_RESULT $? 0 0 "remove libsemanage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_python2-libsemanage.sh b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_python2-libsemanage.sh new file mode 100644 index 0000000000000000000000000000000000000000..24c01b290c7a97b010d45a5df666a90cb6fe1cc7 --- /dev/null +++ b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_python2-libsemanage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsemanage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libsemanage | grep -v \.src | grep python2-libsemanage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libsemanage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libsemanage + CHECK_RESULT $? 0 0 "install python2-libsemanage failed" + SLEEP_WAIT 1 + dnf remove -y python2-libsemanage + CHECK_RESULT $? 0 0 "remove python2-libsemanage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_python3-libsemanage.sh b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_python3-libsemanage.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1001a3d0bd330642f29b68708feaebd974862e1 --- /dev/null +++ b/testcases/cli-test/libsemanage/oe_test_libsemanage_install_and_remove_python3-libsemanage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsemanage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libsemanage | grep -v \.src | grep python3-libsemanage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libsemanage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libsemanage + CHECK_RESULT $? 0 0 "install python3-libsemanage failed" + SLEEP_WAIT 1 + dnf remove -y python3-libsemanage + CHECK_RESULT $? 0 0 "remove python3-libsemanage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-debuginfo.sh b/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..eda86ef756ec0572b782dcc0f2dd6df9362f693e --- /dev/null +++ b/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsepol +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsepol-debuginfo | grep -v \.src | grep libsepol-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsepol-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsepol-debuginfo + CHECK_RESULT $? 0 0 "install libsepol-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libsepol-debuginfo + CHECK_RESULT $? 0 0 "remove libsepol-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-debugsource.sh b/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c21cc818924482d18d24bd9e02b5cd98d77196a --- /dev/null +++ b/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsepol +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsepol-debugsource | grep -v \.src | grep libsepol-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsepol-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsepol-debugsource + CHECK_RESULT $? 0 0 "install libsepol-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libsepol-debugsource + CHECK_RESULT $? 0 0 "remove libsepol-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-devel.sh b/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4a26f86353f5b49bec947e6ea2003027d8f7315 --- /dev/null +++ b/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsepol +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsepol-devel | grep -v \.src | grep libsepol-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsepol-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsepol-devel + CHECK_RESULT $? 0 0 "install libsepol-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsepol-devel + CHECK_RESULT $? 0 0 "remove libsepol-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-help.sh b/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d29f5132ac120d080379a3fdf9c65a2a87ff399a --- /dev/null +++ b/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsepol +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsepol-help | grep -v \.src | grep libsepol-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsepol-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsepol-help + CHECK_RESULT $? 0 0 "install libsepol-help failed" + SLEEP_WAIT 1 + dnf remove -y libsepol-help + CHECK_RESULT $? 0 0 "remove libsepol-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol.sh b/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a35a60bef8a42d4aaeddf69f02b0afadb55fba1 --- /dev/null +++ b/testcases/cli-test/libsepol/oe_test_libsepol_install_and_remove_libsepol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsepol +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsepol | grep -v \.src | grep libsepol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsepol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsepol + CHECK_RESULT $? 0 0 "install libsepol failed" + SLEEP_WAIT 1 + dnf remove -y libsepol + CHECK_RESULT $? 0 0 "remove libsepol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv-debuginfo.sh b/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecb69e866b897fe33d729f031b259766afb20886 --- /dev/null +++ b/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsigsegv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsigsegv-debuginfo | grep -v \.src | grep libsigsegv-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsigsegv-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsigsegv-debuginfo + CHECK_RESULT $? 0 0 "install libsigsegv-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libsigsegv-debuginfo + CHECK_RESULT $? 0 0 "remove libsigsegv-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv-debugsource.sh b/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ca07dd5cfe77e4665cd340dee0584623670cedb --- /dev/null +++ b/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsigsegv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsigsegv-debugsource | grep -v \.src | grep libsigsegv-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsigsegv-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsigsegv-debugsource + CHECK_RESULT $? 0 0 "install libsigsegv-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libsigsegv-debugsource + CHECK_RESULT $? 0 0 "remove libsigsegv-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv-devel.sh b/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a58730278a0f3ea0ec5f13f0a8e5f0d3538bde90 --- /dev/null +++ b/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsigsegv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsigsegv-devel | grep -v \.src | grep libsigsegv-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsigsegv-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsigsegv-devel + CHECK_RESULT $? 0 0 "install libsigsegv-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsigsegv-devel + CHECK_RESULT $? 0 0 "remove libsigsegv-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv.sh b/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv.sh new file mode 100644 index 0000000000000000000000000000000000000000..7eefaf94a67671aad942d5797c003e47dc5a2f80 --- /dev/null +++ b/testcases/cli-test/libsigsegv/oe_test_libsigsegv_install_and_remove_libsigsegv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsigsegv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsigsegv | grep -v \.src | grep libsigsegv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsigsegv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsigsegv + CHECK_RESULT $? 0 0 "install libsigsegv failed" + SLEEP_WAIT 1 + dnf remove -y libsigsegv + CHECK_RESULT $? 0 0 "remove libsigsegv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-debuginfo.sh b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..11b709ab90fe04225a54b0948dc957c5be658856 --- /dev/null +++ b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsmbios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsmbios-debuginfo | grep -v \.src | grep libsmbios-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsmbios-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsmbios-debuginfo + CHECK_RESULT $? 0 0 "install libsmbios-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libsmbios-debuginfo + CHECK_RESULT $? 0 0 "remove libsmbios-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-debugsource.sh b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..48d398581c309afc8f308decea9d32812193ef4d --- /dev/null +++ b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsmbios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsmbios-debugsource | grep -v \.src | grep libsmbios-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsmbios-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsmbios-debugsource + CHECK_RESULT $? 0 0 "install libsmbios-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libsmbios-debugsource + CHECK_RESULT $? 0 0 "remove libsmbios-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-devel.sh b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ea321e60c659850ead8823184f043f4ddb36086 --- /dev/null +++ b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsmbios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsmbios-devel | grep -v \.src | grep libsmbios-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsmbios-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsmbios-devel + CHECK_RESULT $? 0 0 "install libsmbios-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsmbios-devel + CHECK_RESULT $? 0 0 "remove libsmbios-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-help.sh b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fd793a61525215e40c796591af94f177c1c5b4a --- /dev/null +++ b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsmbios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsmbios-help | grep -v \.src | grep libsmbios-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsmbios-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsmbios-help + CHECK_RESULT $? 0 0 "install libsmbios-help failed" + SLEEP_WAIT 1 + dnf remove -y libsmbios-help + CHECK_RESULT $? 0 0 "remove libsmbios-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios.sh b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios.sh new file mode 100644 index 0000000000000000000000000000000000000000..21e4ddeee7610b74449b87a20060ad2473494893 --- /dev/null +++ b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_libsmbios.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsmbios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsmbios | grep -v \.src | grep libsmbios + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsmbios" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsmbios + CHECK_RESULT $? 0 0 "install libsmbios failed" + SLEEP_WAIT 1 + dnf remove -y libsmbios + CHECK_RESULT $? 0 0 "remove libsmbios failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_python3-smbios.sh b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_python3-smbios.sh new file mode 100644 index 0000000000000000000000000000000000000000..67b9037d97bdcd9700f08745eed229137f270b45 --- /dev/null +++ b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_python3-smbios.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsmbios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-smbios | grep -v \.src | grep python3-smbios + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-smbios" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-smbios + CHECK_RESULT $? 0 0 "install python3-smbios failed" + SLEEP_WAIT 1 + dnf remove -y python3-smbios + CHECK_RESULT $? 0 0 "remove python3-smbios failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_smbios-utils-bin.sh b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_smbios-utils-bin.sh new file mode 100644 index 0000000000000000000000000000000000000000..1973e856015df7cfa9320391d2c76ddd36b4b898 --- /dev/null +++ b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_smbios-utils-bin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsmbios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available smbios-utils-bin | grep -v \.src | grep smbios-utils-bin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm smbios-utils-bin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y smbios-utils-bin + CHECK_RESULT $? 0 0 "install smbios-utils-bin failed" + SLEEP_WAIT 1 + dnf remove -y smbios-utils-bin + CHECK_RESULT $? 0 0 "remove smbios-utils-bin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_smbios-utils-python.sh b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_smbios-utils-python.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ac4225646ef2cc0e962257fd721b5491e545f34 --- /dev/null +++ b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_smbios-utils-python.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsmbios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available smbios-utils-python | grep -v \.src | grep smbios-utils-python + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm smbios-utils-python" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y smbios-utils-python + CHECK_RESULT $? 0 0 "install smbios-utils-python failed" + SLEEP_WAIT 1 + dnf remove -y smbios-utils-python + CHECK_RESULT $? 0 0 "remove smbios-utils-python failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_smbios-utils.sh b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_smbios-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d5f4fe5f44a887469c61d6f6afb0146d16c95d5 --- /dev/null +++ b/testcases/cli-test/libsmbios/oe_test_libsmbios_install_and_remove_smbios-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsmbios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available smbios-utils | grep -v \.src | grep smbios-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm smbios-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y smbios-utils + CHECK_RESULT $? 0 0 "install smbios-utils failed" + SLEEP_WAIT 1 + dnf remove -y smbios-utils + CHECK_RESULT $? 0 0 "remove smbios-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-debuginfo.sh b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5784342cbd3d55ab3261eeaa5d126dcd6d47712 --- /dev/null +++ b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsndfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsndfile-debuginfo | grep -v \.src | grep libsndfile-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsndfile-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsndfile-debuginfo + CHECK_RESULT $? 0 0 "install libsndfile-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libsndfile-debuginfo + CHECK_RESULT $? 0 0 "remove libsndfile-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-debugsource.sh b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1843ab65abd965c6497fc52e600459fc67a37f96 --- /dev/null +++ b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsndfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsndfile-debugsource | grep -v \.src | grep libsndfile-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsndfile-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsndfile-debugsource + CHECK_RESULT $? 0 0 "install libsndfile-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libsndfile-debugsource + CHECK_RESULT $? 0 0 "remove libsndfile-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-devel.sh b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3836f5a45efaf274a7e379bc190bcf15988a2dcc --- /dev/null +++ b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsndfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsndfile-devel | grep -v \.src | grep libsndfile-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsndfile-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsndfile-devel + CHECK_RESULT $? 0 0 "install libsndfile-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsndfile-devel + CHECK_RESULT $? 0 0 "remove libsndfile-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-utils-help.sh b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6798eafd87e42d869e76e4ec3008fbff68426af --- /dev/null +++ b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsndfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsndfile-utils-help | grep -v \.src | grep libsndfile-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsndfile-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsndfile-utils-help + CHECK_RESULT $? 0 0 "install libsndfile-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y libsndfile-utils-help + CHECK_RESULT $? 0 0 "remove libsndfile-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-utils.sh b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..dae220b4f6c2281af9a8dd91c1b030cc5d254d38 --- /dev/null +++ b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsndfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsndfile-utils | grep -v \.src | grep libsndfile-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsndfile-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsndfile-utils + CHECK_RESULT $? 0 0 "install libsndfile-utils failed" + SLEEP_WAIT 1 + dnf remove -y libsndfile-utils + CHECK_RESULT $? 0 0 "remove libsndfile-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile.sh b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile.sh new file mode 100644 index 0000000000000000000000000000000000000000..34bc594e038530ce3daca7a8548c18d61293004d --- /dev/null +++ b/testcases/cli-test/libsndfile/oe_test_libsndfile_install_and_remove_libsndfile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsndfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsndfile | grep -v \.src | grep libsndfile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsndfile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsndfile + CHECK_RESULT $? 0 0 "install libsndfile failed" + SLEEP_WAIT 1 + dnf remove -y libsndfile + CHECK_RESULT $? 0 0 "remove libsndfile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-debuginfo.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..71390bd79e1115ffaaebdcc759949fc280694ac5 --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsolv-debuginfo | grep -v \.src | grep libsolv-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsolv-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsolv-debuginfo + CHECK_RESULT $? 0 0 "install libsolv-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libsolv-debuginfo + CHECK_RESULT $? 0 0 "remove libsolv-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-debugsource.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fd02990782a3344b2fd5f37f4ecdfdcfb72e906 --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsolv-debugsource | grep -v \.src | grep libsolv-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsolv-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsolv-debugsource + CHECK_RESULT $? 0 0 "install libsolv-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libsolv-debugsource + CHECK_RESULT $? 0 0 "remove libsolv-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-demo.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-demo.sh new file mode 100644 index 0000000000000000000000000000000000000000..71dd17dcece8733df1e6e446d2d5e8d73c79890e --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-demo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsolv-demo | grep -v \.src | grep libsolv-demo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsolv-demo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsolv-demo + CHECK_RESULT $? 0 0 "install libsolv-demo failed" + SLEEP_WAIT 1 + dnf remove -y libsolv-demo + CHECK_RESULT $? 0 0 "remove libsolv-demo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-devel.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..51fc5aa933575afbd6b32b4d0033b11ac69d1d01 --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsolv-devel | grep -v \.src | grep libsolv-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsolv-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsolv-devel + CHECK_RESULT $? 0 0 "install libsolv-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsolv-devel + CHECK_RESULT $? 0 0 "remove libsolv-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-help.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ca7ab060bd1f259e4fc4aab550a41ac2026ad8d --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsolv-help | grep -v \.src | grep libsolv-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsolv-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsolv-help + CHECK_RESULT $? 0 0 "install libsolv-help failed" + SLEEP_WAIT 1 + dnf remove -y libsolv-help + CHECK_RESULT $? 0 0 "remove libsolv-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-tools.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..44ddd245ed2e7fa55cbe0f681ed329cd5a0da085 --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsolv-tools | grep -v \.src | grep libsolv-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsolv-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsolv-tools + CHECK_RESULT $? 0 0 "install libsolv-tools failed" + SLEEP_WAIT 1 + dnf remove -y libsolv-tools + CHECK_RESULT $? 0 0 "remove libsolv-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv.sh new file mode 100644 index 0000000000000000000000000000000000000000..c014422ea2fcea7105411dc3c3e61166e0647e9a --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_libsolv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsolv | grep -v \.src | grep libsolv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsolv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsolv + CHECK_RESULT $? 0 0 "install libsolv failed" + SLEEP_WAIT 1 + dnf remove -y libsolv + CHECK_RESULT $? 0 0 "remove libsolv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_perl-solv.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_perl-solv.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbcbc457a3889941059f6899e7247f803d4cab97 --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_perl-solv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-solv | grep -v \.src | grep perl-solv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-solv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-solv + CHECK_RESULT $? 0 0 "install perl-solv failed" + SLEEP_WAIT 1 + dnf remove -y perl-solv + CHECK_RESULT $? 0 0 "remove perl-solv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_python2-solv.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_python2-solv.sh new file mode 100644 index 0000000000000000000000000000000000000000..e97b942203339b0437a8f1074879a1c42f67ae59 --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_python2-solv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-solv | grep -v \.src | grep python2-solv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-solv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-solv + CHECK_RESULT $? 0 0 "install python2-solv failed" + SLEEP_WAIT 1 + dnf remove -y python2-solv + CHECK_RESULT $? 0 0 "remove python2-solv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_python3-solv.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_python3-solv.sh new file mode 100644 index 0000000000000000000000000000000000000000..f438fc1cbc4db1de9562dbd709125f4b6add96bf --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_python3-solv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-solv | grep -v \.src | grep python3-solv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-solv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-solv + CHECK_RESULT $? 0 0 "install python3-solv failed" + SLEEP_WAIT 1 + dnf remove -y python3-solv + CHECK_RESULT $? 0 0 "remove python3-solv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_ruby-solv.sh b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_ruby-solv.sh new file mode 100644 index 0000000000000000000000000000000000000000..aff68bcda3ea94fb9a4b400db09f26d4969ea0ba --- /dev/null +++ b/testcases/cli-test/libsolv/oe_test_libsolv_install_and_remove_ruby-solv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsolv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ruby-solv | grep -v \.src | grep ruby-solv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ruby-solv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ruby-solv + CHECK_RESULT $? 0 0 "install ruby-solv failed" + SLEEP_WAIT 1 + dnf remove -y ruby-solv + CHECK_RESULT $? 0 0 "remove ruby-solv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-debuginfo.sh b/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bcf01d19a4b92854f4939aefa8768d9403476da --- /dev/null +++ b/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsoup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsoup-debuginfo | grep -v \.src | grep libsoup-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsoup-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsoup-debuginfo + CHECK_RESULT $? 0 0 "install libsoup-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libsoup-debuginfo + CHECK_RESULT $? 0 0 "remove libsoup-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-debugsource.sh b/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8e09bf26d886a4b54b960decfd4df3ad6c9f51b --- /dev/null +++ b/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsoup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsoup-debugsource | grep -v \.src | grep libsoup-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsoup-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsoup-debugsource + CHECK_RESULT $? 0 0 "install libsoup-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libsoup-debugsource + CHECK_RESULT $? 0 0 "remove libsoup-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-devel.sh b/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..341710b474f5298bce27ecd52139248ba18163c4 --- /dev/null +++ b/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsoup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsoup-devel | grep -v \.src | grep libsoup-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsoup-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsoup-devel + CHECK_RESULT $? 0 0 "install libsoup-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsoup-devel + CHECK_RESULT $? 0 0 "remove libsoup-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-help.sh b/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..491c1fd64ae39404d5b4c066eb7cfe63905e06ec --- /dev/null +++ b/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsoup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsoup-help | grep -v \.src | grep libsoup-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsoup-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsoup-help + CHECK_RESULT $? 0 0 "install libsoup-help failed" + SLEEP_WAIT 1 + dnf remove -y libsoup-help + CHECK_RESULT $? 0 0 "remove libsoup-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup.sh b/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup.sh new file mode 100644 index 0000000000000000000000000000000000000000..9817cb83198de416af142d246c5aa6e75bbc648f --- /dev/null +++ b/testcases/cli-test/libsoup/oe_test_libsoup_install_and_remove_libsoup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsoup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsoup | grep -v \.src | grep libsoup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsoup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsoup + CHECK_RESULT $? 0 0 "install libsoup failed" + SLEEP_WAIT 1 + dnf remove -y libsoup + CHECK_RESULT $? 0 0 "remove libsoup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-debuginfo.sh b/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7921767c10c11a9c40fa3d95861b4caf4c453dca --- /dev/null +++ b/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsoup3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsoup3-debuginfo | grep -v \.src | grep libsoup3-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsoup3-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsoup3-debuginfo + CHECK_RESULT $? 0 0 "install libsoup3-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libsoup3-debuginfo + CHECK_RESULT $? 0 0 "remove libsoup3-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-debugsource.sh b/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..549fa3636509588c0df237dac9555688765c9f25 --- /dev/null +++ b/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsoup3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsoup3-debugsource | grep -v \.src | grep libsoup3-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsoup3-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsoup3-debugsource + CHECK_RESULT $? 0 0 "install libsoup3-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libsoup3-debugsource + CHECK_RESULT $? 0 0 "remove libsoup3-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-devel.sh b/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..819fe57d383917229ffd2ea83586863151adec53 --- /dev/null +++ b/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsoup3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsoup3-devel | grep -v \.src | grep libsoup3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsoup3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsoup3-devel + CHECK_RESULT $? 0 0 "install libsoup3-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsoup3-devel + CHECK_RESULT $? 0 0 "remove libsoup3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-help.sh b/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc4a9e7fe9ba6b2cc35f12fb6c19628b883e0e57 --- /dev/null +++ b/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsoup3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsoup3-help | grep -v \.src | grep libsoup3-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsoup3-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsoup3-help + CHECK_RESULT $? 0 0 "install libsoup3-help failed" + SLEEP_WAIT 1 + dnf remove -y libsoup3-help + CHECK_RESULT $? 0 0 "remove libsoup3-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3.sh b/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3.sh new file mode 100644 index 0000000000000000000000000000000000000000..879e80b1ea7d04d0d93a9a379b9c1c1d5a346ea8 --- /dev/null +++ b/testcases/cli-test/libsoup3/oe_test_libsoup3_install_and_remove_libsoup3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libsoup3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsoup3 | grep -v \.src | grep libsoup3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsoup3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsoup3 + CHECK_RESULT $? 0 0 "install libsoup3 failed" + SLEEP_WAIT 1 + dnf remove -y libsoup3 + CHECK_RESULT $? 0 0 "remove libsoup3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro-debuginfo.sh b/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2534f7aca3ff5de3894685638b0b8368c643bcf5 --- /dev/null +++ b/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libspiro +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libspiro-debuginfo | grep -v \.src | grep libspiro-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libspiro-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libspiro-debuginfo + CHECK_RESULT $? 0 0 "install libspiro-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libspiro-debuginfo + CHECK_RESULT $? 0 0 "remove libspiro-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro-debugsource.sh b/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..40165e3cd8e986b7206cf6eafe4104658d85ce17 --- /dev/null +++ b/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libspiro +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libspiro-debugsource | grep -v \.src | grep libspiro-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libspiro-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libspiro-debugsource + CHECK_RESULT $? 0 0 "install libspiro-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libspiro-debugsource + CHECK_RESULT $? 0 0 "remove libspiro-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro-devel.sh b/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..203d255388f257da0ffca36184f1af8629fa09ae --- /dev/null +++ b/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libspiro +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libspiro-devel | grep -v \.src | grep libspiro-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libspiro-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libspiro-devel + CHECK_RESULT $? 0 0 "install libspiro-devel failed" + SLEEP_WAIT 1 + dnf remove -y libspiro-devel + CHECK_RESULT $? 0 0 "remove libspiro-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro.sh b/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro.sh new file mode 100644 index 0000000000000000000000000000000000000000..f902cc818732a113dff672d299f1e5153cbdacc7 --- /dev/null +++ b/testcases/cli-test/libspiro/oe_test_libspiro_install_and_remove_libspiro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libspiro +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libspiro | grep -v \.src | grep libspiro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libspiro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libspiro + CHECK_RESULT $? 0 0 "install libspiro failed" + SLEEP_WAIT 1 + dnf remove -y libspiro + CHECK_RESULT $? 0 0 "remove libspiro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-config.sh b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-config.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d10fae5419e0062f978dbbcf1c9d871e211fa49 --- /dev/null +++ b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-config.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh-config | grep -v \.src | grep libssh-config + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh-config" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh-config + CHECK_RESULT $? 0 0 "install libssh-config failed" + SLEEP_WAIT 1 + dnf remove -y libssh-config + CHECK_RESULT $? 0 0 "remove libssh-config failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-debuginfo.sh b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba6f3e734c6eac17acdb5ef26356eecbed9ab5e0 --- /dev/null +++ b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh-debuginfo | grep -v \.src | grep libssh-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh-debuginfo + CHECK_RESULT $? 0 0 "install libssh-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libssh-debuginfo + CHECK_RESULT $? 0 0 "remove libssh-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-debugsource.sh b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6abc7dccf0d6fa08372a40fb8567a80cc325e660 --- /dev/null +++ b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh-debugsource | grep -v \.src | grep libssh-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh-debugsource + CHECK_RESULT $? 0 0 "install libssh-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libssh-debugsource + CHECK_RESULT $? 0 0 "remove libssh-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-devel.sh b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ab540b2e04434d17eb2b17b8dae07d346f7c5b9 --- /dev/null +++ b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh-devel | grep -v \.src | grep libssh-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh-devel + CHECK_RESULT $? 0 0 "install libssh-devel failed" + SLEEP_WAIT 1 + dnf remove -y libssh-devel + CHECK_RESULT $? 0 0 "remove libssh-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-doc.sh b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..73c7b652c15ff4aa04d5ae1e1751af894bba8023 --- /dev/null +++ b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh-doc | grep -v \.src | grep libssh-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh-doc + CHECK_RESULT $? 0 0 "install libssh-doc failed" + SLEEP_WAIT 1 + dnf remove -y libssh-doc + CHECK_RESULT $? 0 0 "remove libssh-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-help.sh b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ab2f7c1d0ca83a808319a754004c36216b813fa --- /dev/null +++ b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh-help | grep -v \.src | grep libssh-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh-help + CHECK_RESULT $? 0 0 "install libssh-help failed" + SLEEP_WAIT 1 + dnf remove -y libssh-help + CHECK_RESULT $? 0 0 "remove libssh-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh.sh b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fbdf9ca388438f8ba13c53a2d80d70f795f8e1a --- /dev/null +++ b/testcases/cli-test/libssh/oe_test_libssh_install_and_remove_libssh.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh | grep -v \.src | grep libssh + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh + CHECK_RESULT $? 0 0 "install libssh failed" + SLEEP_WAIT 1 + dnf remove -y libssh + CHECK_RESULT $? 0 0 "remove libssh failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-debuginfo.sh b/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..05ddb5500a0c164c9084262e0dd8e29675bd18bb --- /dev/null +++ b/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh2-debuginfo | grep -v \.src | grep libssh2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh2-debuginfo + CHECK_RESULT $? 0 0 "install libssh2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libssh2-debuginfo + CHECK_RESULT $? 0 0 "remove libssh2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-debugsource.sh b/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..68dd9c9985d15c4c68f576143d814e99fdaee7b4 --- /dev/null +++ b/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh2-debugsource | grep -v \.src | grep libssh2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh2-debugsource + CHECK_RESULT $? 0 0 "install libssh2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libssh2-debugsource + CHECK_RESULT $? 0 0 "remove libssh2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-devel.sh b/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7f2d79670d707dcee3bdfe1702693954e6a2781 --- /dev/null +++ b/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh2-devel | grep -v \.src | grep libssh2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh2-devel + CHECK_RESULT $? 0 0 "install libssh2-devel failed" + SLEEP_WAIT 1 + dnf remove -y libssh2-devel + CHECK_RESULT $? 0 0 "remove libssh2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-help.sh b/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe4c85ae388d374186c35cad96b2310ab470772b --- /dev/null +++ b/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh2-help | grep -v \.src | grep libssh2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh2-help + CHECK_RESULT $? 0 0 "install libssh2-help failed" + SLEEP_WAIT 1 + dnf remove -y libssh2-help + CHECK_RESULT $? 0 0 "remove libssh2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2.sh b/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b1634e1de982b9dde3c9ca8d5e00cd26bafcd56 --- /dev/null +++ b/testcases/cli-test/libssh2/oe_test_libssh2_install_and_remove_libssh2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libssh2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libssh2 | grep -v \.src | grep libssh2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libssh2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libssh2 + CHECK_RESULT $? 0 0 "install libssh2 failed" + SLEEP_WAIT 1 + dnf remove -y libssh2 + CHECK_RESULT $? 0 0 "remove libssh2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer-debuginfo.sh b/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..761b9bbeb243863e4ab56983cfe34bec57d8b4b9 --- /dev/null +++ b/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstemmer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstemmer-debuginfo | grep -v \.src | grep libstemmer-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstemmer-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstemmer-debuginfo + CHECK_RESULT $? 0 0 "install libstemmer-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libstemmer-debuginfo + CHECK_RESULT $? 0 0 "remove libstemmer-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer-debugsource.sh b/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d19d0bf2db5d58e75854188a03f0d0c074e3424 --- /dev/null +++ b/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstemmer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstemmer-debugsource | grep -v \.src | grep libstemmer-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstemmer-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstemmer-debugsource + CHECK_RESULT $? 0 0 "install libstemmer-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libstemmer-debugsource + CHECK_RESULT $? 0 0 "remove libstemmer-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer-devel.sh b/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..745a452cf754d8646fad17f3d89ed142d18c61f6 --- /dev/null +++ b/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstemmer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstemmer-devel | grep -v \.src | grep libstemmer-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstemmer-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstemmer-devel + CHECK_RESULT $? 0 0 "install libstemmer-devel failed" + SLEEP_WAIT 1 + dnf remove -y libstemmer-devel + CHECK_RESULT $? 0 0 "remove libstemmer-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer.sh b/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer.sh new file mode 100644 index 0000000000000000000000000000000000000000..eff075326403a292977df07c2b8c340d03f34315 --- /dev/null +++ b/testcases/cli-test/libstemmer/oe_test_libstemmer_install_and_remove_libstemmer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstemmer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstemmer | grep -v \.src | grep libstemmer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstemmer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstemmer + CHECK_RESULT $? 0 0 "install libstemmer failed" + SLEEP_WAIT 1 + dnf remove -y libstemmer + CHECK_RESULT $? 0 0 "remove libstemmer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-debuginfo.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..26aab673d88d3d9c28a585eaabb1c26a947b042c --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstoragemgmt-debuginfo | grep -v \.src | grep libstoragemgmt-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstoragemgmt-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstoragemgmt-debuginfo + CHECK_RESULT $? 0 0 "install libstoragemgmt-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libstoragemgmt-debuginfo + CHECK_RESULT $? 0 0 "remove libstoragemgmt-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-debugsource.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bb832edd93b4c9ed88b278ea82cb786cde34956 --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstoragemgmt-debugsource | grep -v \.src | grep libstoragemgmt-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstoragemgmt-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstoragemgmt-debugsource + CHECK_RESULT $? 0 0 "install libstoragemgmt-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libstoragemgmt-debugsource + CHECK_RESULT $? 0 0 "remove libstoragemgmt-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-devel.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc88d4230b24397c13011d659316def33dc0f974 --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstoragemgmt-devel | grep -v \.src | grep libstoragemgmt-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstoragemgmt-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstoragemgmt-devel + CHECK_RESULT $? 0 0 "install libstoragemgmt-devel failed" + SLEEP_WAIT 1 + dnf remove -y libstoragemgmt-devel + CHECK_RESULT $? 0 0 "remove libstoragemgmt-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-help.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..62055df294fd776ff396187ba1f43261e6a17ab2 --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstoragemgmt-help | grep -v \.src | grep libstoragemgmt-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstoragemgmt-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstoragemgmt-help + CHECK_RESULT $? 0 0 "install libstoragemgmt-help failed" + SLEEP_WAIT 1 + dnf remove -y libstoragemgmt-help + CHECK_RESULT $? 0 0 "remove libstoragemgmt-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-netapp-plugin.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-netapp-plugin.sh new file mode 100644 index 0000000000000000000000000000000000000000..993930cc3caf80ba1e50c6326d6f36e7795d023e --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-netapp-plugin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstoragemgmt-netapp-plugin | grep -v \.src | grep libstoragemgmt-netapp-plugin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstoragemgmt-netapp-plugin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstoragemgmt-netapp-plugin + CHECK_RESULT $? 0 0 "install libstoragemgmt-netapp-plugin failed" + SLEEP_WAIT 1 + dnf remove -y libstoragemgmt-netapp-plugin + CHECK_RESULT $? 0 0 "remove libstoragemgmt-netapp-plugin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-nfs-plugin-clibs.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-nfs-plugin-clibs.sh new file mode 100644 index 0000000000000000000000000000000000000000..549824cfe0553ee094239cfb31229354b0cd1add --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-nfs-plugin-clibs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstoragemgmt-nfs-plugin-clibs | grep -v \.src | grep libstoragemgmt-nfs-plugin-clibs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstoragemgmt-nfs-plugin-clibs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstoragemgmt-nfs-plugin-clibs + CHECK_RESULT $? 0 0 "install libstoragemgmt-nfs-plugin-clibs failed" + SLEEP_WAIT 1 + dnf remove -y libstoragemgmt-nfs-plugin-clibs + CHECK_RESULT $? 0 0 "remove libstoragemgmt-nfs-plugin-clibs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-nfs-plugin.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-nfs-plugin.sh new file mode 100644 index 0000000000000000000000000000000000000000..610ec7c2a05444f3540825cbdba49fc351da1760 --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-nfs-plugin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstoragemgmt-nfs-plugin | grep -v \.src | grep libstoragemgmt-nfs-plugin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstoragemgmt-nfs-plugin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstoragemgmt-nfs-plugin + CHECK_RESULT $? 0 0 "install libstoragemgmt-nfs-plugin failed" + SLEEP_WAIT 1 + dnf remove -y libstoragemgmt-nfs-plugin + CHECK_RESULT $? 0 0 "remove libstoragemgmt-nfs-plugin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-smis-plugin.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-smis-plugin.sh new file mode 100644 index 0000000000000000000000000000000000000000..196ea4eab2270398939a0f12ab3f9aa5cee19cea --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-smis-plugin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstoragemgmt-smis-plugin | grep -v \.src | grep libstoragemgmt-smis-plugin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstoragemgmt-smis-plugin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstoragemgmt-smis-plugin + CHECK_RESULT $? 0 0 "install libstoragemgmt-smis-plugin failed" + SLEEP_WAIT 1 + dnf remove -y libstoragemgmt-smis-plugin + CHECK_RESULT $? 0 0 "remove libstoragemgmt-smis-plugin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-udev.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-udev.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9e0dd5d5838270c23189c32864539a7df51d006 --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt-udev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstoragemgmt-udev | grep -v \.src | grep libstoragemgmt-udev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstoragemgmt-udev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstoragemgmt-udev + CHECK_RESULT $? 0 0 "install libstoragemgmt-udev failed" + SLEEP_WAIT 1 + dnf remove -y libstoragemgmt-udev + CHECK_RESULT $? 0 0 "remove libstoragemgmt-udev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt.sh new file mode 100644 index 0000000000000000000000000000000000000000..a52ab6c1e2e7acca28b7f8b22fadaff9257cf14d --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_libstoragemgmt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libstoragemgmt | grep -v \.src | grep libstoragemgmt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libstoragemgmt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libstoragemgmt + CHECK_RESULT $? 0 0 "install libstoragemgmt failed" + SLEEP_WAIT 1 + dnf remove -y libstoragemgmt + CHECK_RESULT $? 0 0 "remove libstoragemgmt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python2-libstoragemgmt-clibs.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python2-libstoragemgmt-clibs.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4eec44c485d3211ae8de5d06cb4685973918b44 --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python2-libstoragemgmt-clibs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libstoragemgmt-clibs | grep -v \.src | grep python2-libstoragemgmt-clibs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libstoragemgmt-clibs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libstoragemgmt-clibs + CHECK_RESULT $? 0 0 "install python2-libstoragemgmt-clibs failed" + SLEEP_WAIT 1 + dnf remove -y python2-libstoragemgmt-clibs + CHECK_RESULT $? 0 0 "remove python2-libstoragemgmt-clibs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python2-libstoragemgmt.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python2-libstoragemgmt.sh new file mode 100644 index 0000000000000000000000000000000000000000..e713109345b2cdb6002108cd4da41231c5baee6a --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python2-libstoragemgmt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libstoragemgmt | grep -v \.src | grep python2-libstoragemgmt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libstoragemgmt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libstoragemgmt + CHECK_RESULT $? 0 0 "install python2-libstoragemgmt failed" + SLEEP_WAIT 1 + dnf remove -y python2-libstoragemgmt + CHECK_RESULT $? 0 0 "remove python2-libstoragemgmt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python3-libstoragemgmt-clibs.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python3-libstoragemgmt-clibs.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8da174f48e4e6db84634308be21df7ad7eb1308 --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python3-libstoragemgmt-clibs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libstoragemgmt-clibs | grep -v \.src | grep python3-libstoragemgmt-clibs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libstoragemgmt-clibs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libstoragemgmt-clibs + CHECK_RESULT $? 0 0 "install python3-libstoragemgmt-clibs failed" + SLEEP_WAIT 1 + dnf remove -y python3-libstoragemgmt-clibs + CHECK_RESULT $? 0 0 "remove python3-libstoragemgmt-clibs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python3-libstoragemgmt.sh b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python3-libstoragemgmt.sh new file mode 100644 index 0000000000000000000000000000000000000000..2096aa557c3074f3094c5a3a9a8363f73a8a775e --- /dev/null +++ b/testcases/cli-test/libstoragemgmt/oe_test_libstoragemgmt_install_and_remove_python3-libstoragemgmt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libstoragemgmt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libstoragemgmt | grep -v \.src | grep python3-libstoragemgmt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libstoragemgmt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libstoragemgmt + CHECK_RESULT $? 0 0 "install python3-libstoragemgmt failed" + SLEEP_WAIT 1 + dnf remove -y python3-libstoragemgmt + CHECK_RESULT $? 0 0 "remove python3-libstoragemgmt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-debuginfo.sh b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e11090d911d9a0fb97e8dd170df556d79206ab79 --- /dev/null +++ b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtalloc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtalloc-debuginfo | grep -v \.src | grep libtalloc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtalloc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtalloc-debuginfo + CHECK_RESULT $? 0 0 "install libtalloc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libtalloc-debuginfo + CHECK_RESULT $? 0 0 "remove libtalloc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-debugsource.sh b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..07ca3ed91918472ec473261703100bb87bf0fc51 --- /dev/null +++ b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtalloc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtalloc-debugsource | grep -v \.src | grep libtalloc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtalloc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtalloc-debugsource + CHECK_RESULT $? 0 0 "install libtalloc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libtalloc-debugsource + CHECK_RESULT $? 0 0 "remove libtalloc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-devel.sh b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..561968de2cbe8b753f14c65b002d5fdee29256fb --- /dev/null +++ b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtalloc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtalloc-devel | grep -v \.src | grep libtalloc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtalloc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtalloc-devel + CHECK_RESULT $? 0 0 "install libtalloc-devel failed" + SLEEP_WAIT 1 + dnf remove -y libtalloc-devel + CHECK_RESULT $? 0 0 "remove libtalloc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-help.sh b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac8e2550140ba6b9b77005b66799697d30e0cdf4 --- /dev/null +++ b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtalloc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtalloc-help | grep -v \.src | grep libtalloc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtalloc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtalloc-help + CHECK_RESULT $? 0 0 "install libtalloc-help failed" + SLEEP_WAIT 1 + dnf remove -y libtalloc-help + CHECK_RESULT $? 0 0 "remove libtalloc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc.sh b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c92372b069ee6e15a18c9e285aa8dbcf08a09653 --- /dev/null +++ b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_libtalloc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtalloc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtalloc | grep -v \.src | grep libtalloc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtalloc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtalloc + CHECK_RESULT $? 0 0 "install libtalloc failed" + SLEEP_WAIT 1 + dnf remove -y libtalloc + CHECK_RESULT $? 0 0 "remove libtalloc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python2-talloc-devel.sh b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python2-talloc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c45207d44ace1a171c120ccf976b58dd1a3ca6d --- /dev/null +++ b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python2-talloc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtalloc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-talloc-devel | grep -v \.src | grep python2-talloc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-talloc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-talloc-devel + CHECK_RESULT $? 0 0 "install python2-talloc-devel failed" + SLEEP_WAIT 1 + dnf remove -y python2-talloc-devel + CHECK_RESULT $? 0 0 "remove python2-talloc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python2-talloc.sh b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python2-talloc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a48df7d9b6111f324d879ff7313662126ab664c4 --- /dev/null +++ b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python2-talloc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtalloc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-talloc | grep -v \.src | grep python2-talloc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-talloc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-talloc + CHECK_RESULT $? 0 0 "install python2-talloc failed" + SLEEP_WAIT 1 + dnf remove -y python2-talloc + CHECK_RESULT $? 0 0 "remove python2-talloc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python3-talloc-devel.sh b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python3-talloc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..01cda489cd9299ae36a6804dd2cb6bd5a46820d9 --- /dev/null +++ b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python3-talloc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtalloc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-talloc-devel | grep -v \.src | grep python3-talloc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-talloc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-talloc-devel + CHECK_RESULT $? 0 0 "install python3-talloc-devel failed" + SLEEP_WAIT 1 + dnf remove -y python3-talloc-devel + CHECK_RESULT $? 0 0 "remove python3-talloc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python3-talloc.sh b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python3-talloc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf10fb05a400657af78269a5ea6c32a29f3aab8e --- /dev/null +++ b/testcases/cli-test/libtalloc/oe_test_libtalloc_install_and_remove_python3-talloc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtalloc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-talloc | grep -v \.src | grep python3-talloc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-talloc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-talloc + CHECK_RESULT $? 0 0 "install python3-talloc failed" + SLEEP_WAIT 1 + dnf remove -y python3-talloc + CHECK_RESULT $? 0 0 "remove python3-talloc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-debuginfo.sh b/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e0888acbcf23b51e8741bf2be0de502dfaf7c99 --- /dev/null +++ b/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtar-debuginfo | grep -v \.src | grep libtar-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtar-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtar-debuginfo + CHECK_RESULT $? 0 0 "install libtar-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libtar-debuginfo + CHECK_RESULT $? 0 0 "remove libtar-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-debugsource.sh b/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0ebf1065b32019d3b6f2b26c77367a7de8b1d6b --- /dev/null +++ b/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtar-debugsource | grep -v \.src | grep libtar-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtar-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtar-debugsource + CHECK_RESULT $? 0 0 "install libtar-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libtar-debugsource + CHECK_RESULT $? 0 0 "remove libtar-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-devel.sh b/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..64b1c55afeacc955d05e100f78b603de40a689fe --- /dev/null +++ b/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtar-devel | grep -v \.src | grep libtar-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtar-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtar-devel + CHECK_RESULT $? 0 0 "install libtar-devel failed" + SLEEP_WAIT 1 + dnf remove -y libtar-devel + CHECK_RESULT $? 0 0 "remove libtar-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-help.sh b/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1b4a703acb98adcf168f18cc4047bdd31ed369c --- /dev/null +++ b/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtar-help | grep -v \.src | grep libtar-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtar-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtar-help + CHECK_RESULT $? 0 0 "install libtar-help failed" + SLEEP_WAIT 1 + dnf remove -y libtar-help + CHECK_RESULT $? 0 0 "remove libtar-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar.sh b/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar.sh new file mode 100644 index 0000000000000000000000000000000000000000..c196dd4f6cecad5116b9de9201875a95bb981c3b --- /dev/null +++ b/testcases/cli-test/libtar/oe_test_libtar_install_and_remove_libtar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtar | grep -v \.src | grep libtar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtar + CHECK_RESULT $? 0 0 "install libtar failed" + SLEEP_WAIT 1 + dnf remove -y libtar + CHECK_RESULT $? 0 0 "remove libtar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-debuginfo.sh b/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..51c1ffe784f0d1e89732dbc5e5ba4bea54b62e35 --- /dev/null +++ b/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtasn1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtasn1-debuginfo | grep -v \.src | grep libtasn1-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtasn1-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtasn1-debuginfo + CHECK_RESULT $? 0 0 "install libtasn1-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libtasn1-debuginfo + CHECK_RESULT $? 0 0 "remove libtasn1-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-debugsource.sh b/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6747effb2aa06479c6ce8eaae57a324bff4e7fda --- /dev/null +++ b/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtasn1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtasn1-debugsource | grep -v \.src | grep libtasn1-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtasn1-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtasn1-debugsource + CHECK_RESULT $? 0 0 "install libtasn1-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libtasn1-debugsource + CHECK_RESULT $? 0 0 "remove libtasn1-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-devel.sh b/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..03cc3e8441f607c8f06a172755ea5bf4ae067b06 --- /dev/null +++ b/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtasn1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtasn1-devel | grep -v \.src | grep libtasn1-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtasn1-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtasn1-devel + CHECK_RESULT $? 0 0 "install libtasn1-devel failed" + SLEEP_WAIT 1 + dnf remove -y libtasn1-devel + CHECK_RESULT $? 0 0 "remove libtasn1-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-help.sh b/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5710e232d03116b0993e644f49911ab121775d1 --- /dev/null +++ b/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtasn1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtasn1-help | grep -v \.src | grep libtasn1-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtasn1-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtasn1-help + CHECK_RESULT $? 0 0 "install libtasn1-help failed" + SLEEP_WAIT 1 + dnf remove -y libtasn1-help + CHECK_RESULT $? 0 0 "remove libtasn1-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1.sh b/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1.sh new file mode 100644 index 0000000000000000000000000000000000000000..498ae5cf965a2c02aa0d7af17372bfef922fd5ed --- /dev/null +++ b/testcases/cli-test/libtasn1/oe_test_libtasn1_install_and_remove_libtasn1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtasn1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtasn1 | grep -v \.src | grep libtasn1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtasn1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtasn1 + CHECK_RESULT $? 0 0 "install libtasn1 failed" + SLEEP_WAIT 1 + dnf remove -y libtasn1 + CHECK_RESULT $? 0 0 "remove libtasn1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-debuginfo.sh b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb3df49de3cb24d5e96b0af2e4ca9b218f175e91 --- /dev/null +++ b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtdb-debuginfo | grep -v \.src | grep libtdb-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtdb-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtdb-debuginfo + CHECK_RESULT $? 0 0 "install libtdb-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libtdb-debuginfo + CHECK_RESULT $? 0 0 "remove libtdb-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-debugsource.sh b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..263b3cc643625b05b430d7043518ec913f85ce23 --- /dev/null +++ b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtdb-debugsource | grep -v \.src | grep libtdb-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtdb-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtdb-debugsource + CHECK_RESULT $? 0 0 "install libtdb-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libtdb-debugsource + CHECK_RESULT $? 0 0 "remove libtdb-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-devel.sh b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc67c74f1aef25511e9a9fd67ca0ae817dfb5419 --- /dev/null +++ b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtdb-devel | grep -v \.src | grep libtdb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtdb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtdb-devel + CHECK_RESULT $? 0 0 "install libtdb-devel failed" + SLEEP_WAIT 1 + dnf remove -y libtdb-devel + CHECK_RESULT $? 0 0 "remove libtdb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-help.sh b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..957cbd7a0233b160d4e464d05a902bd52729b24f --- /dev/null +++ b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtdb-help | grep -v \.src | grep libtdb-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtdb-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtdb-help + CHECK_RESULT $? 0 0 "install libtdb-help failed" + SLEEP_WAIT 1 + dnf remove -y libtdb-help + CHECK_RESULT $? 0 0 "remove libtdb-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb.sh b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..b947a284c35974cf496406f05befe9eac32ea963 --- /dev/null +++ b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_libtdb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtdb | grep -v \.src | grep libtdb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtdb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtdb + CHECK_RESULT $? 0 0 "install libtdb failed" + SLEEP_WAIT 1 + dnf remove -y libtdb + CHECK_RESULT $? 0 0 "remove libtdb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_python2-tdb.sh b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_python2-tdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e3fa8800ecc2c9b5adf151224482b96a3dd2e6b --- /dev/null +++ b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_python2-tdb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-tdb | grep -v \.src | grep python2-tdb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-tdb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-tdb + CHECK_RESULT $? 0 0 "install python2-tdb failed" + SLEEP_WAIT 1 + dnf remove -y python2-tdb + CHECK_RESULT $? 0 0 "remove python2-tdb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_python3-tdb.sh b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_python3-tdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..b405eae542e29a4ff3e28e335757211a3c42d9fe --- /dev/null +++ b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_python3-tdb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-tdb | grep -v \.src | grep python3-tdb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-tdb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-tdb + CHECK_RESULT $? 0 0 "install python3-tdb failed" + SLEEP_WAIT 1 + dnf remove -y python3-tdb + CHECK_RESULT $? 0 0 "remove python3-tdb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_tdb-tools.sh b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_tdb-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd288b9da0f84c39873f0fe48be6421b4584988f --- /dev/null +++ b/testcases/cli-test/libtdb/oe_test_libtdb_install_and_remove_tdb-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tdb-tools | grep -v \.src | grep tdb-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tdb-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tdb-tools + CHECK_RESULT $? 0 0 "install tdb-tools failed" + SLEEP_WAIT 1 + dnf remove -y tdb-tools + CHECK_RESULT $? 0 0 "remove tdb-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-debuginfo.sh b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7de58c5b0dbb3476051b18ab7c5393a9909e5c5 --- /dev/null +++ b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libteam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libteam-debuginfo | grep -v \.src | grep libteam-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libteam-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libteam-debuginfo + CHECK_RESULT $? 0 0 "install libteam-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libteam-debuginfo + CHECK_RESULT $? 0 0 "remove libteam-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-debugsource.sh b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf154829b3cdb11bb41efec615afe40807c2b098 --- /dev/null +++ b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libteam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libteam-debugsource | grep -v \.src | grep libteam-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libteam-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libteam-debugsource + CHECK_RESULT $? 0 0 "install libteam-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libteam-debugsource + CHECK_RESULT $? 0 0 "remove libteam-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-devel.sh b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6d05bb2af22d089b34b23d0611b52434f3229da --- /dev/null +++ b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libteam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libteam-devel | grep -v \.src | grep libteam-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libteam-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libteam-devel + CHECK_RESULT $? 0 0 "install libteam-devel failed" + SLEEP_WAIT 1 + dnf remove -y libteam-devel + CHECK_RESULT $? 0 0 "remove libteam-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-help.sh b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b563361538b0e461135658eaab5736f0fdb4cc6 --- /dev/null +++ b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libteam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libteam-help | grep -v \.src | grep libteam-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libteam-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libteam-help + CHECK_RESULT $? 0 0 "install libteam-help failed" + SLEEP_WAIT 1 + dnf remove -y libteam-help + CHECK_RESULT $? 0 0 "remove libteam-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam.sh b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fca78b4e45c5e483d7e10fc25f99746f5292add --- /dev/null +++ b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_libteam.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libteam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libteam | grep -v \.src | grep libteam + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libteam" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libteam + CHECK_RESULT $? 0 0 "install libteam failed" + SLEEP_WAIT 1 + dnf remove -y libteam + CHECK_RESULT $? 0 0 "remove libteam failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_network-scripts-teamd.sh b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_network-scripts-teamd.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4e1396c6746b34b6a615260348ad64916df730a --- /dev/null +++ b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_network-scripts-teamd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libteam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available network-scripts-teamd | grep -v \.src | grep network-scripts-teamd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm network-scripts-teamd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y network-scripts-teamd + CHECK_RESULT $? 0 0 "install network-scripts-teamd failed" + SLEEP_WAIT 1 + dnf remove -y network-scripts-teamd + CHECK_RESULT $? 0 0 "remove network-scripts-teamd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_python2-libteam.sh b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_python2-libteam.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e716dff259b94908b232f1daadae63f33d513ef --- /dev/null +++ b/testcases/cli-test/libteam/oe_test_libteam_install_and_remove_python2-libteam.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libteam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libteam | grep -v \.src | grep python2-libteam + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libteam" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libteam + CHECK_RESULT $? 0 0 "install python2-libteam failed" + SLEEP_WAIT 1 + dnf remove -y python2-libteam + CHECK_RESULT $? 0 0 "remove python2-libteam failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-debuginfo.sh b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a5d9a6fe53a605855ee4b82a775a742967d9a31 --- /dev/null +++ b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtevent-debuginfo | grep -v \.src | grep libtevent-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtevent-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtevent-debuginfo + CHECK_RESULT $? 0 0 "install libtevent-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libtevent-debuginfo + CHECK_RESULT $? 0 0 "remove libtevent-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-debugsource.sh b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7711323da6bd84fa593a30f4d0fe120eedfed63b --- /dev/null +++ b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtevent-debugsource | grep -v \.src | grep libtevent-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtevent-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtevent-debugsource + CHECK_RESULT $? 0 0 "install libtevent-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libtevent-debugsource + CHECK_RESULT $? 0 0 "remove libtevent-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-devel.sh b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..862ec221aa7aba4f682c1492a82d3f562ac03f86 --- /dev/null +++ b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtevent-devel | grep -v \.src | grep libtevent-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtevent-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtevent-devel + CHECK_RESULT $? 0 0 "install libtevent-devel failed" + SLEEP_WAIT 1 + dnf remove -y libtevent-devel + CHECK_RESULT $? 0 0 "remove libtevent-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-help.sh b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b798e014c15cc61cdd32b0a9cd43675d99d31ea3 --- /dev/null +++ b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtevent-help | grep -v \.src | grep libtevent-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtevent-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtevent-help + CHECK_RESULT $? 0 0 "install libtevent-help failed" + SLEEP_WAIT 1 + dnf remove -y libtevent-help + CHECK_RESULT $? 0 0 "remove libtevent-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent.sh b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d9fd262dcf6da5ae88501ca5cec740ee1ab3a0c --- /dev/null +++ b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_libtevent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtevent | grep -v \.src | grep libtevent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtevent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtevent + CHECK_RESULT $? 0 0 "install libtevent failed" + SLEEP_WAIT 1 + dnf remove -y libtevent + CHECK_RESULT $? 0 0 "remove libtevent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_python2-tevent.sh b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_python2-tevent.sh new file mode 100644 index 0000000000000000000000000000000000000000..df90521f4b37290dbffa98b8f7761044c9951d85 --- /dev/null +++ b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_python2-tevent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-tevent | grep -v \.src | grep python2-tevent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-tevent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-tevent + CHECK_RESULT $? 0 0 "install python2-tevent failed" + SLEEP_WAIT 1 + dnf remove -y python2-tevent + CHECK_RESULT $? 0 0 "remove python2-tevent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_python3-tevent.sh b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_python3-tevent.sh new file mode 100644 index 0000000000000000000000000000000000000000..b50c434764c175548bb8e52a513e32bf449cf202 --- /dev/null +++ b/testcases/cli-test/libtevent/oe_test_libtevent_install_and_remove_python3-tevent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-tevent | grep -v \.src | grep python3-tevent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-tevent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-tevent + CHECK_RESULT $? 0 0 "install python3-tevent failed" + SLEEP_WAIT 1 + dnf remove -y python3-tevent + CHECK_RESULT $? 0 0 "remove python3-tevent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-debuginfo.sh b/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1635fa8200f6ded43c7b82c0425ccafcad363491 --- /dev/null +++ b/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libthai +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libthai-debuginfo | grep -v \.src | grep libthai-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libthai-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libthai-debuginfo + CHECK_RESULT $? 0 0 "install libthai-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libthai-debuginfo + CHECK_RESULT $? 0 0 "remove libthai-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-debugsource.sh b/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..10cfaddf3544df3357da7f94adea2607e74eb632 --- /dev/null +++ b/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libthai +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libthai-debugsource | grep -v \.src | grep libthai-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libthai-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libthai-debugsource + CHECK_RESULT $? 0 0 "install libthai-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libthai-debugsource + CHECK_RESULT $? 0 0 "remove libthai-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-devel.sh b/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..df86191168390ed95ecbc67d48e2e9506bd33262 --- /dev/null +++ b/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libthai +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libthai-devel | grep -v \.src | grep libthai-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libthai-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libthai-devel + CHECK_RESULT $? 0 0 "install libthai-devel failed" + SLEEP_WAIT 1 + dnf remove -y libthai-devel + CHECK_RESULT $? 0 0 "remove libthai-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-static.sh b/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f327272141a6d71827306f5e03ecf19bc364bc5 --- /dev/null +++ b/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libthai +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libthai-static | grep -v \.src | grep libthai-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libthai-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libthai-static + CHECK_RESULT $? 0 0 "install libthai-static failed" + SLEEP_WAIT 1 + dnf remove -y libthai-static + CHECK_RESULT $? 0 0 "remove libthai-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai.sh b/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai.sh new file mode 100644 index 0000000000000000000000000000000000000000..590387fddabe27451139d5b3c200640b062e82a1 --- /dev/null +++ b/testcases/cli-test/libthai/oe_test_libthai_install_and_remove_libthai.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libthai +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libthai | grep -v \.src | grep libthai + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libthai" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libthai + CHECK_RESULT $? 0 0 "install libthai failed" + SLEEP_WAIT 1 + dnf remove -y libthai + CHECK_RESULT $? 0 0 "remove libthai failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-debuginfo.sh b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1608c76a3a04b4793bcf9a068f0aae5c68b0baaa --- /dev/null +++ b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtheora +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtheora-debuginfo | grep -v \.src | grep libtheora-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtheora-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtheora-debuginfo + CHECK_RESULT $? 0 0 "install libtheora-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libtheora-debuginfo + CHECK_RESULT $? 0 0 "remove libtheora-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-debugsource.sh b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6764f4f6514243cbb938c21ddbbac489f3f1bea3 --- /dev/null +++ b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtheora +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtheora-debugsource | grep -v \.src | grep libtheora-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtheora-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtheora-debugsource + CHECK_RESULT $? 0 0 "install libtheora-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libtheora-debugsource + CHECK_RESULT $? 0 0 "remove libtheora-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-devel.sh b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..98804947aa2afd3e4f1e27ec68f5e5635cd9e1a6 --- /dev/null +++ b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtheora +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtheora-devel | grep -v \.src | grep libtheora-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtheora-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtheora-devel + CHECK_RESULT $? 0 0 "install libtheora-devel failed" + SLEEP_WAIT 1 + dnf remove -y libtheora-devel + CHECK_RESULT $? 0 0 "remove libtheora-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-help.sh b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e268779436c0d1d153d519259f74f8497ad1f18 --- /dev/null +++ b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtheora +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtheora-help | grep -v \.src | grep libtheora-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtheora-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtheora-help + CHECK_RESULT $? 0 0 "install libtheora-help failed" + SLEEP_WAIT 1 + dnf remove -y libtheora-help + CHECK_RESULT $? 0 0 "remove libtheora-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora.sh b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef406e9d9ea1754aed1651ae28f4be4679815001 --- /dev/null +++ b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_libtheora.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtheora +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtheora | grep -v \.src | grep libtheora + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtheora" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtheora + CHECK_RESULT $? 0 0 "install libtheora failed" + SLEEP_WAIT 1 + dnf remove -y libtheora + CHECK_RESULT $? 0 0 "remove libtheora failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_theora-tools.sh b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_theora-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..eaa4a7538799836d830ab667bb31ed9f213c1eb3 --- /dev/null +++ b/testcases/cli-test/libtheora/oe_test_libtheora_install_and_remove_theora-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtheora +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available theora-tools | grep -v \.src | grep theora-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm theora-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y theora-tools + CHECK_RESULT $? 0 0 "install theora-tools failed" + SLEEP_WAIT 1 + dnf remove -y theora-tools + CHECK_RESULT $? 0 0 "remove theora-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-debuginfo.sh b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..14051212815010c72d2f07556bd54f8ca56ca31e --- /dev/null +++ b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtiff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtiff-debuginfo | grep -v \.src | grep libtiff-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtiff-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtiff-debuginfo + CHECK_RESULT $? 0 0 "install libtiff-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libtiff-debuginfo + CHECK_RESULT $? 0 0 "remove libtiff-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-debugsource.sh b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbac29ce98002944b122c7d7800658d85c665753 --- /dev/null +++ b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtiff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtiff-debugsource | grep -v \.src | grep libtiff-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtiff-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtiff-debugsource + CHECK_RESULT $? 0 0 "install libtiff-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libtiff-debugsource + CHECK_RESULT $? 0 0 "remove libtiff-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-devel.sh b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..490493253656b856e0e729462e84c617f79a8456 --- /dev/null +++ b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtiff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtiff-devel | grep -v \.src | grep libtiff-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtiff-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtiff-devel + CHECK_RESULT $? 0 0 "install libtiff-devel failed" + SLEEP_WAIT 1 + dnf remove -y libtiff-devel + CHECK_RESULT $? 0 0 "remove libtiff-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-help.sh b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..66b7c5629596eb4140f63ee9b082ded69bd8be84 --- /dev/null +++ b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtiff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtiff-help | grep -v \.src | grep libtiff-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtiff-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtiff-help + CHECK_RESULT $? 0 0 "install libtiff-help failed" + SLEEP_WAIT 1 + dnf remove -y libtiff-help + CHECK_RESULT $? 0 0 "remove libtiff-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-static.sh b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..6026666bf243471884b2a6a7674e41038fb4de1e --- /dev/null +++ b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtiff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtiff-static | grep -v \.src | grep libtiff-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtiff-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtiff-static + CHECK_RESULT $? 0 0 "install libtiff-static failed" + SLEEP_WAIT 1 + dnf remove -y libtiff-static + CHECK_RESULT $? 0 0 "remove libtiff-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-tools.sh b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..09db952df7a07e1a0b51486dcc867c2eee48e53e --- /dev/null +++ b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtiff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtiff-tools | grep -v \.src | grep libtiff-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtiff-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtiff-tools + CHECK_RESULT $? 0 0 "install libtiff-tools failed" + SLEEP_WAIT 1 + dnf remove -y libtiff-tools + CHECK_RESULT $? 0 0 "remove libtiff-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff.sh b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8233620dec6c99b7b0a8d9c3ab9391effa4b5c1 --- /dev/null +++ b/testcases/cli-test/libtiff/oe_test_libtiff_install_and_remove_libtiff.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtiff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtiff | grep -v \.src | grep libtiff + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtiff" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtiff + CHECK_RESULT $? 0 0 "install libtiff failed" + SLEEP_WAIT 1 + dnf remove -y libtiff + CHECK_RESULT $? 0 0 "remove libtiff failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-debuginfo.sh b/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe02694c48b63a176db63bb2ddae53f70c6c8747 --- /dev/null +++ b/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtirpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtirpc-debuginfo | grep -v \.src | grep libtirpc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtirpc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtirpc-debuginfo + CHECK_RESULT $? 0 0 "install libtirpc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libtirpc-debuginfo + CHECK_RESULT $? 0 0 "remove libtirpc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-debugsource.sh b/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf54d45ec1eb251fbb4340cc16cdc88cefb50e5c --- /dev/null +++ b/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtirpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtirpc-debugsource | grep -v \.src | grep libtirpc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtirpc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtirpc-debugsource + CHECK_RESULT $? 0 0 "install libtirpc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libtirpc-debugsource + CHECK_RESULT $? 0 0 "remove libtirpc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-devel.sh b/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d29664ddede989efad10c3c98fefc555378a547 --- /dev/null +++ b/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtirpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtirpc-devel | grep -v \.src | grep libtirpc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtirpc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtirpc-devel + CHECK_RESULT $? 0 0 "install libtirpc-devel failed" + SLEEP_WAIT 1 + dnf remove -y libtirpc-devel + CHECK_RESULT $? 0 0 "remove libtirpc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-help.sh b/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..355fa71d284cdbc152c83519aa12f05155b3b221 --- /dev/null +++ b/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtirpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtirpc-help | grep -v \.src | grep libtirpc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtirpc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtirpc-help + CHECK_RESULT $? 0 0 "install libtirpc-help failed" + SLEEP_WAIT 1 + dnf remove -y libtirpc-help + CHECK_RESULT $? 0 0 "remove libtirpc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc.sh b/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc.sh new file mode 100644 index 0000000000000000000000000000000000000000..241a848b7f2f64443c103416d90b99332c589f1f --- /dev/null +++ b/testcases/cli-test/libtirpc/oe_test_libtirpc_install_and_remove_libtirpc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtirpc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtirpc | grep -v \.src | grep libtirpc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtirpc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtirpc + CHECK_RESULT $? 0 0 "install libtirpc failed" + SLEEP_WAIT 1 + dnf remove -y libtirpc + CHECK_RESULT $? 0 0 "remove libtirpc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-debuginfo.sh b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8893ba45d8a7394e7bdc507c53227946c340a9cf --- /dev/null +++ b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtool-debuginfo | grep -v \.src | grep libtool-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtool-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtool-debuginfo + CHECK_RESULT $? 0 0 "install libtool-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libtool-debuginfo + CHECK_RESULT $? 0 0 "remove libtool-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-debugsource.sh b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1024c555527464e9cabc0ff581e9c5475251e853 --- /dev/null +++ b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtool-debugsource | grep -v \.src | grep libtool-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtool-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtool-debugsource + CHECK_RESULT $? 0 0 "install libtool-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libtool-debugsource + CHECK_RESULT $? 0 0 "remove libtool-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-devel.sh b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cd39d00ffe95e69bd5233f0bc5ebc9b4af06c38 --- /dev/null +++ b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtool-devel | grep -v \.src | grep libtool-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtool-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtool-devel + CHECK_RESULT $? 0 0 "install libtool-devel failed" + SLEEP_WAIT 1 + dnf remove -y libtool-devel + CHECK_RESULT $? 0 0 "remove libtool-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-help.sh b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e297c59343a4a99b5d719dbfcb3ca412a286fa7b --- /dev/null +++ b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtool-help | grep -v \.src | grep libtool-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtool-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtool-help + CHECK_RESULT $? 0 0 "install libtool-help failed" + SLEEP_WAIT 1 + dnf remove -y libtool-help + CHECK_RESULT $? 0 0 "remove libtool-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-ltdl.sh b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-ltdl.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1b312a636f2b9d88ef7b4d433d34f6270eb8f78 --- /dev/null +++ b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool-ltdl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtool-ltdl | grep -v \.src | grep libtool-ltdl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtool-ltdl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtool-ltdl + CHECK_RESULT $? 0 0 "install libtool-ltdl failed" + SLEEP_WAIT 1 + dnf remove -y libtool-ltdl + CHECK_RESULT $? 0 0 "remove libtool-ltdl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool.sh b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool.sh new file mode 100644 index 0000000000000000000000000000000000000000..77ff6fe8583f12ff8183b9bf3060a7529ca1f407 --- /dev/null +++ b/testcases/cli-test/libtool/oe_test_libtool_install_and_remove_libtool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtool | grep -v \.src | grep libtool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtool + CHECK_RESULT $? 0 0 "install libtool failed" + SLEEP_WAIT 1 + dnf remove -y libtool + CHECK_RESULT $? 0 0 "remove libtool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-debuginfo.sh b/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee3c1d59cf3578a9078bc5bc6084636b4c35c722 --- /dev/null +++ b/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuninameslist +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuninameslist-debuginfo | grep -v \.src | grep libuninameslist-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuninameslist-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuninameslist-debuginfo + CHECK_RESULT $? 0 0 "install libuninameslist-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libuninameslist-debuginfo + CHECK_RESULT $? 0 0 "remove libuninameslist-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-debugsource.sh b/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6e90459931be45a70ca92c771ff0e9fe0157829 --- /dev/null +++ b/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuninameslist +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuninameslist-debugsource | grep -v \.src | grep libuninameslist-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuninameslist-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuninameslist-debugsource + CHECK_RESULT $? 0 0 "install libuninameslist-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libuninameslist-debugsource + CHECK_RESULT $? 0 0 "remove libuninameslist-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-devel.sh b/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..95e4797087978a6b9a5aaf277ea88e9f5d2c4d66 --- /dev/null +++ b/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuninameslist +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuninameslist-devel | grep -v \.src | grep libuninameslist-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuninameslist-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuninameslist-devel + CHECK_RESULT $? 0 0 "install libuninameslist-devel failed" + SLEEP_WAIT 1 + dnf remove -y libuninameslist-devel + CHECK_RESULT $? 0 0 "remove libuninameslist-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-help.sh b/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2f7f0be0c168bc16935c204375e74ae0e1ef28f --- /dev/null +++ b/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuninameslist +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuninameslist-help | grep -v \.src | grep libuninameslist-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuninameslist-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuninameslist-help + CHECK_RESULT $? 0 0 "install libuninameslist-help failed" + SLEEP_WAIT 1 + dnf remove -y libuninameslist-help + CHECK_RESULT $? 0 0 "remove libuninameslist-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist.sh b/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c73944f798219e0eb07a65212b3104224dc40c0 --- /dev/null +++ b/testcases/cli-test/libuninameslist/oe_test_libuninameslist_install_and_remove_libuninameslist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuninameslist +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuninameslist | grep -v \.src | grep libuninameslist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuninameslist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuninameslist + CHECK_RESULT $? 0 0 "install libuninameslist failed" + SLEEP_WAIT 1 + dnf remove -y libuninameslist + CHECK_RESULT $? 0 0 "remove libuninameslist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-debuginfo.sh b/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..82aa767055955a83015fed1c29659c4fe44feb59 --- /dev/null +++ b/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libunistring +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libunistring-debuginfo | grep -v \.src | grep libunistring-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libunistring-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libunistring-debuginfo + CHECK_RESULT $? 0 0 "install libunistring-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libunistring-debuginfo + CHECK_RESULT $? 0 0 "remove libunistring-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-debugsource.sh b/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fe01a7006145631ac8bbdef61eea892b6823cfb --- /dev/null +++ b/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libunistring +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libunistring-debugsource | grep -v \.src | grep libunistring-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libunistring-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libunistring-debugsource + CHECK_RESULT $? 0 0 "install libunistring-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libunistring-debugsource + CHECK_RESULT $? 0 0 "remove libunistring-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-devel.sh b/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbad13c2bc456671e4815aa89feb802ce1aec8f0 --- /dev/null +++ b/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libunistring +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libunistring-devel | grep -v \.src | grep libunistring-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libunistring-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libunistring-devel + CHECK_RESULT $? 0 0 "install libunistring-devel failed" + SLEEP_WAIT 1 + dnf remove -y libunistring-devel + CHECK_RESULT $? 0 0 "remove libunistring-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-help.sh b/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1071a7d9d3a948b861d53a6bbac9756c497a76a3 --- /dev/null +++ b/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libunistring +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libunistring-help | grep -v \.src | grep libunistring-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libunistring-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libunistring-help + CHECK_RESULT $? 0 0 "install libunistring-help failed" + SLEEP_WAIT 1 + dnf remove -y libunistring-help + CHECK_RESULT $? 0 0 "remove libunistring-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring.sh b/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring.sh new file mode 100644 index 0000000000000000000000000000000000000000..a35eb7d02c1024a4cd6f9f11f8567d7336ff98c4 --- /dev/null +++ b/testcases/cli-test/libunistring/oe_test_libunistring_install_and_remove_libunistring.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libunistring +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libunistring | grep -v \.src | grep libunistring + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libunistring" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libunistring + CHECK_RESULT $? 0 0 "install libunistring failed" + SLEEP_WAIT 1 + dnf remove -y libunistring + CHECK_RESULT $? 0 0 "remove libunistring failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-debuginfo.sh b/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4b73c682706c4109e532816f79757be3e560de8 --- /dev/null +++ b/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libunwind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libunwind-debuginfo | grep -v \.src | grep libunwind-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libunwind-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libunwind-debuginfo + CHECK_RESULT $? 0 0 "install libunwind-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libunwind-debuginfo + CHECK_RESULT $? 0 0 "remove libunwind-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-debugsource.sh b/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..687edb10b46cbdc0e5e0541f7e4147ec9869e1cf --- /dev/null +++ b/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libunwind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libunwind-debugsource | grep -v \.src | grep libunwind-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libunwind-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libunwind-debugsource + CHECK_RESULT $? 0 0 "install libunwind-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libunwind-debugsource + CHECK_RESULT $? 0 0 "remove libunwind-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-devel.sh b/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb2eca82fa80a8d48a10e6f2c3d7d9be41310bcf --- /dev/null +++ b/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libunwind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libunwind-devel | grep -v \.src | grep libunwind-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libunwind-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libunwind-devel + CHECK_RESULT $? 0 0 "install libunwind-devel failed" + SLEEP_WAIT 1 + dnf remove -y libunwind-devel + CHECK_RESULT $? 0 0 "remove libunwind-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-help.sh b/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8bb914e40a84e228ba699315a0bde90c4208633 --- /dev/null +++ b/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libunwind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libunwind-help | grep -v \.src | grep libunwind-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libunwind-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libunwind-help + CHECK_RESULT $? 0 0 "install libunwind-help failed" + SLEEP_WAIT 1 + dnf remove -y libunwind-help + CHECK_RESULT $? 0 0 "remove libunwind-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind.sh b/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind.sh new file mode 100644 index 0000000000000000000000000000000000000000..93b92ce123df524280ad00f759545f20c44fcd5a --- /dev/null +++ b/testcases/cli-test/libunwind/oe_test_libunwind_install_and_remove_libunwind.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libunwind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libunwind | grep -v \.src | grep libunwind + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libunwind" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libunwind + CHECK_RESULT $? 0 0 "install libunwind failed" + SLEEP_WAIT 1 + dnf remove -y libunwind + CHECK_RESULT $? 0 0 "remove libunwind failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing-debuginfo.sh b/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..93c4cf933ec15e6c15590e5bf66c0c48958ae819 --- /dev/null +++ b/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liburing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liburing-debuginfo | grep -v \.src | grep liburing-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liburing-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liburing-debuginfo + CHECK_RESULT $? 0 0 "install liburing-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y liburing-debuginfo + CHECK_RESULT $? 0 0 "remove liburing-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing-debugsource.sh b/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..024cc6f153bcc8cc8dc5d1efb34866d71b369c49 --- /dev/null +++ b/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liburing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liburing-debugsource | grep -v \.src | grep liburing-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liburing-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liburing-debugsource + CHECK_RESULT $? 0 0 "install liburing-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y liburing-debugsource + CHECK_RESULT $? 0 0 "remove liburing-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing-devel.sh b/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b58572a5b2f8b4423a39129b28b3907b6927ef80 --- /dev/null +++ b/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liburing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liburing-devel | grep -v \.src | grep liburing-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liburing-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liburing-devel + CHECK_RESULT $? 0 0 "install liburing-devel failed" + SLEEP_WAIT 1 + dnf remove -y liburing-devel + CHECK_RESULT $? 0 0 "remove liburing-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing.sh b/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d519a8c3d83e2726d8c64e749b23b9d7049cf5d --- /dev/null +++ b/testcases/cli-test/liburing/oe_test_liburing_install_and_remove_liburing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src liburing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available liburing | grep -v \.src | grep liburing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm liburing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y liburing + CHECK_RESULT $? 0 0 "install liburing failed" + SLEEP_WAIT 1 + dnf remove -y liburing + CHECK_RESULT $? 0 0 "remove liburing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-debuginfo.sh b/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..01228e046947e1b58d9f6f6851ce39e7cc349b0c --- /dev/null +++ b/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusb-debuginfo | grep -v \.src | grep libusb-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusb-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusb-debuginfo + CHECK_RESULT $? 0 0 "install libusb-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libusb-debuginfo + CHECK_RESULT $? 0 0 "remove libusb-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-debugsource.sh b/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1c0c1133b79f4977ae0361a06b5ac617a6867fa --- /dev/null +++ b/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusb-debugsource | grep -v \.src | grep libusb-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusb-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusb-debugsource + CHECK_RESULT $? 0 0 "install libusb-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libusb-debugsource + CHECK_RESULT $? 0 0 "remove libusb-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-devel.sh b/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8c6162f1f490a21ace3b63175dc38fc750b31e1 --- /dev/null +++ b/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusb-devel | grep -v \.src | grep libusb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusb-devel + CHECK_RESULT $? 0 0 "install libusb-devel failed" + SLEEP_WAIT 1 + dnf remove -y libusb-devel + CHECK_RESULT $? 0 0 "remove libusb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-tests-examples.sh b/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-tests-examples.sh new file mode 100644 index 0000000000000000000000000000000000000000..59bc5d09a67539499964582e92029260ea50fbb8 --- /dev/null +++ b/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb-tests-examples.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusb-tests-examples | grep -v \.src | grep libusb-tests-examples + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusb-tests-examples" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusb-tests-examples + CHECK_RESULT $? 0 0 "install libusb-tests-examples failed" + SLEEP_WAIT 1 + dnf remove -y libusb-tests-examples + CHECK_RESULT $? 0 0 "remove libusb-tests-examples failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb.sh b/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e60623e2b8e957f9f96fc79bb843d97a32a5619 --- /dev/null +++ b/testcases/cli-test/libusb/oe_test_libusb_install_and_remove_libusb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusb | grep -v \.src | grep libusb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusb + CHECK_RESULT $? 0 0 "install libusb failed" + SLEEP_WAIT 1 + dnf remove -y libusb + CHECK_RESULT $? 0 0 "remove libusb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd-debuginfo.sh b/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..27f52a9400d50e42d48e163d3365a7e99e5a474a --- /dev/null +++ b/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusbmuxd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusbmuxd-debuginfo | grep -v \.src | grep libusbmuxd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusbmuxd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusbmuxd-debuginfo + CHECK_RESULT $? 0 0 "install libusbmuxd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libusbmuxd-debuginfo + CHECK_RESULT $? 0 0 "remove libusbmuxd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd-debugsource.sh b/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3f7f29f7eac33bdd652be596d148b8ebf0ede99 --- /dev/null +++ b/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusbmuxd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusbmuxd-debugsource | grep -v \.src | grep libusbmuxd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusbmuxd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusbmuxd-debugsource + CHECK_RESULT $? 0 0 "install libusbmuxd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libusbmuxd-debugsource + CHECK_RESULT $? 0 0 "remove libusbmuxd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd-devel.sh b/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..de77d0b3b7c858027c7cdeea0fda95665479b6b1 --- /dev/null +++ b/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusbmuxd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusbmuxd-devel | grep -v \.src | grep libusbmuxd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusbmuxd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusbmuxd-devel + CHECK_RESULT $? 0 0 "install libusbmuxd-devel failed" + SLEEP_WAIT 1 + dnf remove -y libusbmuxd-devel + CHECK_RESULT $? 0 0 "remove libusbmuxd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd.sh b/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2dc7104e13cc79b62a9a1654ba221007c250324 --- /dev/null +++ b/testcases/cli-test/libusbmuxd/oe_test_libusbmuxd_install_and_remove_libusbmuxd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusbmuxd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusbmuxd | grep -v \.src | grep libusbmuxd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusbmuxd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusbmuxd + CHECK_RESULT $? 0 0 "install libusbmuxd failed" + SLEEP_WAIT 1 + dnf remove -y libusbmuxd + CHECK_RESULT $? 0 0 "remove libusbmuxd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx-debuginfo.sh b/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec903ed57c38c97f60935546cb32e30226275e12 --- /dev/null +++ b/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusbx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusbx-debuginfo | grep -v \.src | grep libusbx-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusbx-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusbx-debuginfo + CHECK_RESULT $? 0 0 "install libusbx-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libusbx-debuginfo + CHECK_RESULT $? 0 0 "remove libusbx-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx-debugsource.sh b/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5adffdd1bebafbbc6a0253fdedc7d89e2a17912 --- /dev/null +++ b/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusbx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusbx-debugsource | grep -v \.src | grep libusbx-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusbx-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusbx-debugsource + CHECK_RESULT $? 0 0 "install libusbx-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libusbx-debugsource + CHECK_RESULT $? 0 0 "remove libusbx-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx-devel.sh b/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f0b56ce27362a163547e3a82d6b53e896164b35 --- /dev/null +++ b/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusbx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusbx-devel | grep -v \.src | grep libusbx-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusbx-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusbx-devel + CHECK_RESULT $? 0 0 "install libusbx-devel failed" + SLEEP_WAIT 1 + dnf remove -y libusbx-devel + CHECK_RESULT $? 0 0 "remove libusbx-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx.sh b/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx.sh new file mode 100644 index 0000000000000000000000000000000000000000..18c68f355ef7868b674562fd3b9e6b011f7a2a37 --- /dev/null +++ b/testcases/cli-test/libusbx/oe_test_libusbx_install_and_remove_libusbx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libusbx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libusbx | grep -v \.src | grep libusbx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libusbx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libusbx + CHECK_RESULT $? 0 0 "install libusbx failed" + SLEEP_WAIT 1 + dnf remove -y libusbx + CHECK_RESULT $? 0 0 "remove libusbx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-debuginfo.sh b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba7181b9535b3853ccddf9a746c6793047b12cf7 --- /dev/null +++ b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuser-debuginfo | grep -v \.src | grep libuser-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuser-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuser-debuginfo + CHECK_RESULT $? 0 0 "install libuser-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libuser-debuginfo + CHECK_RESULT $? 0 0 "remove libuser-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-debugsource.sh b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6f3057334d91cc27c55449943c3d49fa9f954c9 --- /dev/null +++ b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuser-debugsource | grep -v \.src | grep libuser-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuser-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuser-debugsource + CHECK_RESULT $? 0 0 "install libuser-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libuser-debugsource + CHECK_RESULT $? 0 0 "remove libuser-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-devel.sh b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d548fb9d8d44c8e973ddbb3f44cca700a53d236 --- /dev/null +++ b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuser-devel | grep -v \.src | grep libuser-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuser-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuser-devel + CHECK_RESULT $? 0 0 "install libuser-devel failed" + SLEEP_WAIT 1 + dnf remove -y libuser-devel + CHECK_RESULT $? 0 0 "remove libuser-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-help.sh b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..57a5e8d881f321635ee81835f86979ab622a18db --- /dev/null +++ b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuser-help | grep -v \.src | grep libuser-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuser-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuser-help + CHECK_RESULT $? 0 0 "install libuser-help failed" + SLEEP_WAIT 1 + dnf remove -y libuser-help + CHECK_RESULT $? 0 0 "remove libuser-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-python3.sh b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-python3.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5cf3bb0dcd977d99cea2ea6c0dcd07fe2bcb57f --- /dev/null +++ b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser-python3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuser-python3 | grep -v \.src | grep libuser-python3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuser-python3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuser-python3 + CHECK_RESULT $? 0 0 "install libuser-python3 failed" + SLEEP_WAIT 1 + dnf remove -y libuser-python3 + CHECK_RESULT $? 0 0 "remove libuser-python3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser.sh b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c94ee52e77c3cef5e4415b1de161e96f97a5415 --- /dev/null +++ b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_libuser.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuser | grep -v \.src | grep libuser + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuser" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuser + CHECK_RESULT $? 0 0 "install libuser failed" + SLEEP_WAIT 1 + dnf remove -y libuser + CHECK_RESULT $? 0 0 "remove libuser failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_python2-libuser.sh b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_python2-libuser.sh new file mode 100644 index 0000000000000000000000000000000000000000..40cd52d24dc6e4fdcb66351560b16f70f1c7209b --- /dev/null +++ b/testcases/cli-test/libuser/oe_test_libuser_install_and_remove_python2-libuser.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libuser | grep -v \.src | grep python2-libuser + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libuser" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libuser + CHECK_RESULT $? 0 0 "install python2-libuser failed" + SLEEP_WAIT 1 + dnf remove -y python2-libuser + CHECK_RESULT $? 0 0 "remove python2-libuser failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-debuginfo.sh b/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..faaaf6dc0a43df610035bac1a1d232a4e9b23f11 --- /dev/null +++ b/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libutempter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libutempter-debuginfo | grep -v \.src | grep libutempter-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libutempter-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libutempter-debuginfo + CHECK_RESULT $? 0 0 "install libutempter-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libutempter-debuginfo + CHECK_RESULT $? 0 0 "remove libutempter-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-debugsource.sh b/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..055f28084b41c6f21e7c24b6830c463849fdae0f --- /dev/null +++ b/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libutempter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libutempter-debugsource | grep -v \.src | grep libutempter-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libutempter-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libutempter-debugsource + CHECK_RESULT $? 0 0 "install libutempter-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libutempter-debugsource + CHECK_RESULT $? 0 0 "remove libutempter-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-devel.sh b/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..541f7b205b2774f5b10301d452ee4d423897586a --- /dev/null +++ b/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libutempter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libutempter-devel | grep -v \.src | grep libutempter-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libutempter-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libutempter-devel + CHECK_RESULT $? 0 0 "install libutempter-devel failed" + SLEEP_WAIT 1 + dnf remove -y libutempter-devel + CHECK_RESULT $? 0 0 "remove libutempter-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-help.sh b/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..99adf373416fa3f078e73b4c1a61600b0595aee6 --- /dev/null +++ b/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libutempter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libutempter-help | grep -v \.src | grep libutempter-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libutempter-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libutempter-help + CHECK_RESULT $? 0 0 "install libutempter-help failed" + SLEEP_WAIT 1 + dnf remove -y libutempter-help + CHECK_RESULT $? 0 0 "remove libutempter-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter.sh b/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter.sh new file mode 100644 index 0000000000000000000000000000000000000000..362d650bc6543db319ff99f771c62ed78871baa0 --- /dev/null +++ b/testcases/cli-test/libutempter/oe_test_libutempter_install_and_remove_libutempter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libutempter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libutempter | grep -v \.src | grep libutempter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libutempter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libutempter + CHECK_RESULT $? 0 0 "install libutempter failed" + SLEEP_WAIT 1 + dnf remove -y libutempter + CHECK_RESULT $? 0 0 "remove libutempter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-debuginfo.sh b/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..31a90f0075cd6b7a1b28833b8c8e7343650bbb17 --- /dev/null +++ b/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuv-debuginfo | grep -v \.src | grep libuv-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuv-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuv-debuginfo + CHECK_RESULT $? 0 0 "install libuv-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libuv-debuginfo + CHECK_RESULT $? 0 0 "remove libuv-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-debugsource.sh b/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a5fbda572b52035a90a87c8e31cca4185b89721 --- /dev/null +++ b/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuv-debugsource | grep -v \.src | grep libuv-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuv-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuv-debugsource + CHECK_RESULT $? 0 0 "install libuv-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libuv-debugsource + CHECK_RESULT $? 0 0 "remove libuv-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-devel.sh b/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..acc85fb1e9dfe669381505b0fd6d94e4b55aa583 --- /dev/null +++ b/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuv-devel | grep -v \.src | grep libuv-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuv-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuv-devel + CHECK_RESULT $? 0 0 "install libuv-devel failed" + SLEEP_WAIT 1 + dnf remove -y libuv-devel + CHECK_RESULT $? 0 0 "remove libuv-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-help.sh b/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc0ae60390d85e4619682e89cb6e3669a0d155d6 --- /dev/null +++ b/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuv-help | grep -v \.src | grep libuv-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuv-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuv-help + CHECK_RESULT $? 0 0 "install libuv-help failed" + SLEEP_WAIT 1 + dnf remove -y libuv-help + CHECK_RESULT $? 0 0 "remove libuv-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv.sh b/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv.sh new file mode 100644 index 0000000000000000000000000000000000000000..745f34e9c9129bee67cdc2ae3a35e2dca0c3c926 --- /dev/null +++ b/testcases/cli-test/libuv/oe_test_libuv_install_and_remove_libuv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libuv +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuv | grep -v \.src | grep libuv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuv + CHECK_RESULT $? 0 0 "install libuv failed" + SLEEP_WAIT 1 + dnf remove -y libuv + CHECK_RESULT $? 0 0 "remove libuv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau-debuginfo.sh b/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c63eab0fbb459e67802b50878a812a61adb28ef --- /dev/null +++ b/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvdpau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvdpau-debuginfo | grep -v \.src | grep libvdpau-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvdpau-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvdpau-debuginfo + CHECK_RESULT $? 0 0 "install libvdpau-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libvdpau-debuginfo + CHECK_RESULT $? 0 0 "remove libvdpau-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau-debugsource.sh b/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5069ca8236f9d73a7765a03d5b5da747827e0ec0 --- /dev/null +++ b/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvdpau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvdpau-debugsource | grep -v \.src | grep libvdpau-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvdpau-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvdpau-debugsource + CHECK_RESULT $? 0 0 "install libvdpau-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libvdpau-debugsource + CHECK_RESULT $? 0 0 "remove libvdpau-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau-devel.sh b/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..49566c91be5c82b223d4363fd4f025781e6ff96e --- /dev/null +++ b/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvdpau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvdpau-devel | grep -v \.src | grep libvdpau-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvdpau-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvdpau-devel + CHECK_RESULT $? 0 0 "install libvdpau-devel failed" + SLEEP_WAIT 1 + dnf remove -y libvdpau-devel + CHECK_RESULT $? 0 0 "remove libvdpau-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau.sh b/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau.sh new file mode 100644 index 0000000000000000000000000000000000000000..675e17423c13ab29af93737152ac2a5126485f78 --- /dev/null +++ b/testcases/cli-test/libvdpau/oe_test_libvdpau_install_and_remove_libvdpau.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvdpau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvdpau | grep -v \.src | grep libvdpau + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvdpau" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvdpau + CHECK_RESULT $? 0 0 "install libvdpau failed" + SLEEP_WAIT 1 + dnf remove -y libvdpau + CHECK_RESULT $? 0 0 "remove libvdpau failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto-debuginfo.sh b/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..494d2caeaa516a00dd5a2b0943fc47f23abf3d93 --- /dev/null +++ b/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libverto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libverto-debuginfo | grep -v \.src | grep libverto-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libverto-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libverto-debuginfo + CHECK_RESULT $? 0 0 "install libverto-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libverto-debuginfo + CHECK_RESULT $? 0 0 "remove libverto-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto-debugsource.sh b/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..18ff348c32b45c269c13c83da20db3b719b853fc --- /dev/null +++ b/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libverto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libverto-debugsource | grep -v \.src | grep libverto-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libverto-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libverto-debugsource + CHECK_RESULT $? 0 0 "install libverto-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libverto-debugsource + CHECK_RESULT $? 0 0 "remove libverto-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto-devel.sh b/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1091ebb62bec901998d0f4ad390f866c7a3a2349 --- /dev/null +++ b/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libverto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libverto-devel | grep -v \.src | grep libverto-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libverto-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libverto-devel + CHECK_RESULT $? 0 0 "install libverto-devel failed" + SLEEP_WAIT 1 + dnf remove -y libverto-devel + CHECK_RESULT $? 0 0 "remove libverto-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto.sh b/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto.sh new file mode 100644 index 0000000000000000000000000000000000000000..bdf4325f84a4fd5b4210f48f712102c0bc753ddd --- /dev/null +++ b/testcases/cli-test/libverto/oe_test_libverto_install_and_remove_libverto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libverto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libverto | grep -v \.src | grep libverto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libverto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libverto + CHECK_RESULT $? 0 0 "install libverto failed" + SLEEP_WAIT 1 + dnf remove -y libverto + CHECK_RESULT $? 0 0 "remove libverto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual-debuginfo.sh b/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d224d5b273515bc70230a9c25195ebb157d60c64 --- /dev/null +++ b/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvisual +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvisual-debuginfo | grep -v \.src | grep libvisual-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvisual-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvisual-debuginfo + CHECK_RESULT $? 0 0 "install libvisual-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libvisual-debuginfo + CHECK_RESULT $? 0 0 "remove libvisual-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual-debugsource.sh b/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ba3c4a4e69969c4be9b1644c21c9b2f4071acc0 --- /dev/null +++ b/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvisual +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvisual-debugsource | grep -v \.src | grep libvisual-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvisual-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvisual-debugsource + CHECK_RESULT $? 0 0 "install libvisual-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libvisual-debugsource + CHECK_RESULT $? 0 0 "remove libvisual-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual-devel.sh b/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f330d70a198f3fcd9f8cdfd6ab249cb34d5a692 --- /dev/null +++ b/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvisual +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvisual-devel | grep -v \.src | grep libvisual-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvisual-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvisual-devel + CHECK_RESULT $? 0 0 "install libvisual-devel failed" + SLEEP_WAIT 1 + dnf remove -y libvisual-devel + CHECK_RESULT $? 0 0 "remove libvisual-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual.sh b/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4806cf9b99750cd0f99b08480f32044a0de17e6 --- /dev/null +++ b/testcases/cli-test/libvisual/oe_test_libvisual_install_and_remove_libvisual.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvisual +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvisual | grep -v \.src | grep libvisual + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvisual" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvisual + CHECK_RESULT $? 0 0 "install libvisual failed" + SLEEP_WAIT 1 + dnf remove -y libvisual + CHECK_RESULT $? 0 0 "remove libvisual failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-debuginfo.sh b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..312a62667585d72ffe9c5b0ad85e1f80009629f2 --- /dev/null +++ b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvoikko +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvoikko-debuginfo | grep -v \.src | grep libvoikko-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvoikko-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvoikko-debuginfo + CHECK_RESULT $? 0 0 "install libvoikko-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libvoikko-debuginfo + CHECK_RESULT $? 0 0 "remove libvoikko-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-debugsource.sh b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e9a7b1285079bfdcefa762b7ddb63fbc5c8740d --- /dev/null +++ b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvoikko +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvoikko-debugsource | grep -v \.src | grep libvoikko-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvoikko-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvoikko-debugsource + CHECK_RESULT $? 0 0 "install libvoikko-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libvoikko-debugsource + CHECK_RESULT $? 0 0 "remove libvoikko-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-devel.sh b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d98e60f7885efdf88c1d5f96fdfe862aaf085a72 --- /dev/null +++ b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvoikko +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvoikko-devel | grep -v \.src | grep libvoikko-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvoikko-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvoikko-devel + CHECK_RESULT $? 0 0 "install libvoikko-devel failed" + SLEEP_WAIT 1 + dnf remove -y libvoikko-devel + CHECK_RESULT $? 0 0 "remove libvoikko-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-help.sh b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..567bcfd1abfb810708186383c4bff363007fefc2 --- /dev/null +++ b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvoikko +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvoikko-help | grep -v \.src | grep libvoikko-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvoikko-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvoikko-help + CHECK_RESULT $? 0 0 "install libvoikko-help failed" + SLEEP_WAIT 1 + dnf remove -y libvoikko-help + CHECK_RESULT $? 0 0 "remove libvoikko-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko.sh b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko.sh new file mode 100644 index 0000000000000000000000000000000000000000..f61923cdd33fb6774bde53fd90b89341683049b2 --- /dev/null +++ b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_libvoikko.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvoikko +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvoikko | grep -v \.src | grep libvoikko + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvoikko" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvoikko + CHECK_RESULT $? 0 0 "install libvoikko failed" + SLEEP_WAIT 1 + dnf remove -y libvoikko + CHECK_RESULT $? 0 0 "remove libvoikko failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_python3-libvoikko.sh b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_python3-libvoikko.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf2c6b7a6d8fc1a66d439850b3361f964a7d605e --- /dev/null +++ b/testcases/cli-test/libvoikko/oe_test_libvoikko_install_and_remove_python3-libvoikko.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvoikko +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libvoikko | grep -v \.src | grep python3-libvoikko + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libvoikko" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libvoikko + CHECK_RESULT $? 0 0 "install python3-libvoikko failed" + SLEEP_WAIT 1 + dnf remove -y python3-libvoikko + CHECK_RESULT $? 0 0 "remove python3-libvoikko failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-debuginfo.sh b/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..43d16bbb014120567b408f2799dbd6fd893123b5 --- /dev/null +++ b/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvorbis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvorbis-debuginfo | grep -v \.src | grep libvorbis-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvorbis-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvorbis-debuginfo + CHECK_RESULT $? 0 0 "install libvorbis-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libvorbis-debuginfo + CHECK_RESULT $? 0 0 "remove libvorbis-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-debugsource.sh b/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fc3881161eee24c0681c8ae6b7049b3898f3700 --- /dev/null +++ b/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvorbis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvorbis-debugsource | grep -v \.src | grep libvorbis-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvorbis-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvorbis-debugsource + CHECK_RESULT $? 0 0 "install libvorbis-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libvorbis-debugsource + CHECK_RESULT $? 0 0 "remove libvorbis-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-devel.sh b/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..02faa0dc2ad9b73dc97d3e786406b56007fb2a96 --- /dev/null +++ b/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvorbis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvorbis-devel | grep -v \.src | grep libvorbis-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvorbis-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvorbis-devel + CHECK_RESULT $? 0 0 "install libvorbis-devel failed" + SLEEP_WAIT 1 + dnf remove -y libvorbis-devel + CHECK_RESULT $? 0 0 "remove libvorbis-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-help.sh b/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f04dcf70ee6c8f15df8402e3ccf1a269e32d96c --- /dev/null +++ b/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvorbis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvorbis-help | grep -v \.src | grep libvorbis-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvorbis-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvorbis-help + CHECK_RESULT $? 0 0 "install libvorbis-help failed" + SLEEP_WAIT 1 + dnf remove -y libvorbis-help + CHECK_RESULT $? 0 0 "remove libvorbis-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis.sh b/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2d39aef7d61be2dbc762a0f698549b2fee6dd8a --- /dev/null +++ b/testcases/cli-test/libvorbis/oe_test_libvorbis_install_and_remove_libvorbis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libvorbis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libvorbis | grep -v \.src | grep libvorbis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libvorbis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libvorbis + CHECK_RESULT $? 0 0 "install libvorbis failed" + SLEEP_WAIT 1 + dnf remove -y libvorbis + CHECK_RESULT $? 0 0 "remove libvorbis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-data.sh b/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-data.sh new file mode 100644 index 0000000000000000000000000000000000000000..8020f37b18651fe606daf32703b60308b88cc1a0 --- /dev/null +++ b/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-data.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwacom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwacom-data | grep -v \.src | grep libwacom-data + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwacom-data" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwacom-data + CHECK_RESULT $? 0 0 "install libwacom-data failed" + SLEEP_WAIT 1 + dnf remove -y libwacom-data + CHECK_RESULT $? 0 0 "remove libwacom-data failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-debuginfo.sh b/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce4b6a84a0a655a95830e458a00e5c2fcc32f0b4 --- /dev/null +++ b/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwacom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwacom-debuginfo | grep -v \.src | grep libwacom-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwacom-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwacom-debuginfo + CHECK_RESULT $? 0 0 "install libwacom-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libwacom-debuginfo + CHECK_RESULT $? 0 0 "remove libwacom-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-debugsource.sh b/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..abc7547bd2eda74aeb0164a551225427e9a05d22 --- /dev/null +++ b/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwacom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwacom-debugsource | grep -v \.src | grep libwacom-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwacom-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwacom-debugsource + CHECK_RESULT $? 0 0 "install libwacom-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libwacom-debugsource + CHECK_RESULT $? 0 0 "remove libwacom-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-devel.sh b/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e081957696d70ae3229d40235dffee59a23248bf --- /dev/null +++ b/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwacom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwacom-devel | grep -v \.src | grep libwacom-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwacom-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwacom-devel + CHECK_RESULT $? 0 0 "install libwacom-devel failed" + SLEEP_WAIT 1 + dnf remove -y libwacom-devel + CHECK_RESULT $? 0 0 "remove libwacom-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom.sh b/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a1440f317185bbf70c6dd687f67a725f41efae8 --- /dev/null +++ b/testcases/cli-test/libwacom/oe_test_libwacom_install_and_remove_libwacom.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwacom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwacom | grep -v \.src | grep libwacom + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwacom" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwacom + CHECK_RESULT $? 0 0 "install libwacom failed" + SLEEP_WAIT 1 + dnf remove -y libwacom + CHECK_RESULT $? 0 0 "remove libwacom failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-debuginfo.sh b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c809816111474f18d38892c55b64b78523494560 --- /dev/null +++ b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwebp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwebp-debuginfo | grep -v \.src | grep libwebp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwebp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwebp-debuginfo + CHECK_RESULT $? 0 0 "install libwebp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libwebp-debuginfo + CHECK_RESULT $? 0 0 "remove libwebp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-debugsource.sh b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6db09c5c040fb06814bd1b7bb07d7b1daa23b22 --- /dev/null +++ b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwebp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwebp-debugsource | grep -v \.src | grep libwebp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwebp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwebp-debugsource + CHECK_RESULT $? 0 0 "install libwebp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libwebp-debugsource + CHECK_RESULT $? 0 0 "remove libwebp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-devel.sh b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec7994c40fc097c550d422138b5623e44f2ebfe3 --- /dev/null +++ b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwebp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwebp-devel | grep -v \.src | grep libwebp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwebp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwebp-devel + CHECK_RESULT $? 0 0 "install libwebp-devel failed" + SLEEP_WAIT 1 + dnf remove -y libwebp-devel + CHECK_RESULT $? 0 0 "remove libwebp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-help.sh b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b41964bafb3b60ff3f071f3f9c10efefc5b1c204 --- /dev/null +++ b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwebp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwebp-help | grep -v \.src | grep libwebp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwebp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwebp-help + CHECK_RESULT $? 0 0 "install libwebp-help failed" + SLEEP_WAIT 1 + dnf remove -y libwebp-help + CHECK_RESULT $? 0 0 "remove libwebp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-java.sh b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-java.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b28f27dd39e4888775e3b5b3d24bd0ac08570f9 --- /dev/null +++ b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-java.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwebp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwebp-java | grep -v \.src | grep libwebp-java + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwebp-java" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwebp-java + CHECK_RESULT $? 0 0 "install libwebp-java failed" + SLEEP_WAIT 1 + dnf remove -y libwebp-java + CHECK_RESULT $? 0 0 "remove libwebp-java failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-tools.sh b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..73a13757d2a68d7422781c3f8954ebf9d68cc1de --- /dev/null +++ b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwebp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwebp-tools | grep -v \.src | grep libwebp-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwebp-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwebp-tools + CHECK_RESULT $? 0 0 "install libwebp-tools failed" + SLEEP_WAIT 1 + dnf remove -y libwebp-tools + CHECK_RESULT $? 0 0 "remove libwebp-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp.sh b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c2630a6912fd07695e0c8053d9090761b38b2fa --- /dev/null +++ b/testcases/cli-test/libwebp/oe_test_libwebp_install_and_remove_libwebp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwebp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwebp | grep -v \.src | grep libwebp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwebp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwebp + CHECK_RESULT $? 0 0 "install libwebp failed" + SLEEP_WAIT 1 + dnf remove -y libwebp + CHECK_RESULT $? 0 0 "remove libwebp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf-debuginfo.sh b/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a882480f605c21751c86190d2d347dfbf3787c08 --- /dev/null +++ b/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwmf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwmf-debuginfo | grep -v \.src | grep libwmf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwmf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwmf-debuginfo + CHECK_RESULT $? 0 0 "install libwmf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libwmf-debuginfo + CHECK_RESULT $? 0 0 "remove libwmf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf-debugsource.sh b/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..da0b42a11b8d656235616a99f2c593850307c9a1 --- /dev/null +++ b/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwmf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwmf-debugsource | grep -v \.src | grep libwmf-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwmf-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwmf-debugsource + CHECK_RESULT $? 0 0 "install libwmf-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libwmf-debugsource + CHECK_RESULT $? 0 0 "remove libwmf-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf-devel.sh b/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4ca8dbc4dfd825cf31f44cb7f6c22b899df5745 --- /dev/null +++ b/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwmf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwmf-devel | grep -v \.src | grep libwmf-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwmf-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwmf-devel + CHECK_RESULT $? 0 0 "install libwmf-devel failed" + SLEEP_WAIT 1 + dnf remove -y libwmf-devel + CHECK_RESULT $? 0 0 "remove libwmf-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf.sh b/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf.sh new file mode 100644 index 0000000000000000000000000000000000000000..93a9f3d10db6068e2d43c6799a13ab85246698ff --- /dev/null +++ b/testcases/cli-test/libwmf/oe_test_libwmf_install_and_remove_libwmf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwmf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwmf | grep -v \.src | grep libwmf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwmf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwmf + CHECK_RESULT $? 0 0 "install libwmf failed" + SLEEP_WAIT 1 + dnf remove -y libwmf + CHECK_RESULT $? 0 0 "remove libwmf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwpe/oe_test_libwpe_install_and_remove_libwpe-devel.sh b/testcases/cli-test/libwpe/oe_test_libwpe_install_and_remove_libwpe-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ba892719ead8c2d0a99aa25f9984e00f8e53b70 --- /dev/null +++ b/testcases/cli-test/libwpe/oe_test_libwpe_install_and_remove_libwpe-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwpe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwpe-devel | grep -v \.src | grep libwpe-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwpe-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwpe-devel + CHECK_RESULT $? 0 0 "install libwpe-devel failed" + SLEEP_WAIT 1 + dnf remove -y libwpe-devel + CHECK_RESULT $? 0 0 "remove libwpe-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwpe/oe_test_libwpe_install_and_remove_libwpe-doc.sh b/testcases/cli-test/libwpe/oe_test_libwpe_install_and_remove_libwpe-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..874cb069d3a750cdce27006d96255bd797b80444 --- /dev/null +++ b/testcases/cli-test/libwpe/oe_test_libwpe_install_and_remove_libwpe-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwpe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwpe-doc | grep -v \.src | grep libwpe-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwpe-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwpe-doc + CHECK_RESULT $? 0 0 "install libwpe-doc failed" + SLEEP_WAIT 1 + dnf remove -y libwpe-doc + CHECK_RESULT $? 0 0 "remove libwpe-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libwpe/oe_test_libwpe_install_and_remove_libwpe.sh b/testcases/cli-test/libwpe/oe_test_libwpe_install_and_remove_libwpe.sh new file mode 100644 index 0000000000000000000000000000000000000000..44347247df75bd07a08817db18b0953e56c1037d --- /dev/null +++ b/testcases/cli-test/libwpe/oe_test_libwpe_install_and_remove_libwpe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libwpe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwpe | grep -v \.src | grep libwpe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwpe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwpe + CHECK_RESULT $? 0 0 "install libwpe failed" + SLEEP_WAIT 1 + dnf remove -y libwpe + CHECK_RESULT $? 0 0 "remove libwpe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-debuginfo.sh b/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..82701ee8dbf0f702f4b284be4f416e29880c986f --- /dev/null +++ b/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcb-debuginfo | grep -v \.src | grep libxcb-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcb-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcb-debuginfo + CHECK_RESULT $? 0 0 "install libxcb-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libxcb-debuginfo + CHECK_RESULT $? 0 0 "remove libxcb-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-debugsource.sh b/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..18a6a6d52b4d48fb0bc33f9866d3b48fb7289d5a --- /dev/null +++ b/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcb-debugsource | grep -v \.src | grep libxcb-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcb-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcb-debugsource + CHECK_RESULT $? 0 0 "install libxcb-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libxcb-debugsource + CHECK_RESULT $? 0 0 "remove libxcb-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-devel.sh b/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3330f030efbaf60f70390c08797635716ce1a5b4 --- /dev/null +++ b/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcb-devel | grep -v \.src | grep libxcb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcb-devel + CHECK_RESULT $? 0 0 "install libxcb-devel failed" + SLEEP_WAIT 1 + dnf remove -y libxcb-devel + CHECK_RESULT $? 0 0 "remove libxcb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-help.sh b/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9065b1ef008ae17bc7b28420d32b9ce7cf28619d --- /dev/null +++ b/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcb-help | grep -v \.src | grep libxcb-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcb-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcb-help + CHECK_RESULT $? 0 0 "install libxcb-help failed" + SLEEP_WAIT 1 + dnf remove -y libxcb-help + CHECK_RESULT $? 0 0 "remove libxcb-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb.sh b/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb.sh new file mode 100644 index 0000000000000000000000000000000000000000..369a25c41d337ce298d0c047e0572d9b364f63b4 --- /dev/null +++ b/testcases/cli-test/libxcb/oe_test_libxcb_install_and_remove_libxcb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcb | grep -v \.src | grep libxcb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcb + CHECK_RESULT $? 0 0 "install libxcb failed" + SLEEP_WAIT 1 + dnf remove -y libxcb + CHECK_RESULT $? 0 0 "remove libxcb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-compat.sh b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-compat.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6782b60e7cff49bf5ac6dbad4e8291ad3eff938 --- /dev/null +++ b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-compat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcrypt-compat | grep -v \.src | grep libxcrypt-compat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcrypt-compat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcrypt-compat + CHECK_RESULT $? 0 0 "install libxcrypt-compat failed" + SLEEP_WAIT 1 + dnf remove -y libxcrypt-compat + CHECK_RESULT $? 0 0 "remove libxcrypt-compat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-devel.sh b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d413e4007bca2484f242d1ff568d0736336c5f7 --- /dev/null +++ b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcrypt-devel | grep -v \.src | grep libxcrypt-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcrypt-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcrypt-devel + CHECK_RESULT $? 0 0 "install libxcrypt-devel failed" + SLEEP_WAIT 1 + dnf remove -y libxcrypt-devel + CHECK_RESULT $? 0 0 "remove libxcrypt-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-doc.sh b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7494c225f935422a05f22b77139a0bdc1717b2f --- /dev/null +++ b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcrypt-doc | grep -v \.src | grep libxcrypt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcrypt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcrypt-doc + CHECK_RESULT $? 0 0 "install libxcrypt-doc failed" + SLEEP_WAIT 1 + dnf remove -y libxcrypt-doc + CHECK_RESULT $? 0 0 "remove libxcrypt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-help.sh b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..963cc6aa8cecbb49cf38f48ec956f653cdb1b468 --- /dev/null +++ b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcrypt-help | grep -v \.src | grep libxcrypt-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcrypt-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcrypt-help + CHECK_RESULT $? 0 0 "install libxcrypt-help failed" + SLEEP_WAIT 1 + dnf remove -y libxcrypt-help + CHECK_RESULT $? 0 0 "remove libxcrypt-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-static.sh b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..fdb6b10dfda9e076451db85ebe4dc306e3173bd6 --- /dev/null +++ b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcrypt-static | grep -v \.src | grep libxcrypt-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcrypt-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcrypt-static + CHECK_RESULT $? 0 0 "install libxcrypt-static failed" + SLEEP_WAIT 1 + dnf remove -y libxcrypt-static + CHECK_RESULT $? 0 0 "remove libxcrypt-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt.sh b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf8dfdcfcf07e2bd46895063b794776d2b86a18b --- /dev/null +++ b/testcases/cli-test/libxcrypt/oe_test_libxcrypt_install_and_remove_libxcrypt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxcrypt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxcrypt | grep -v \.src | grep libxcrypt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxcrypt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxcrypt + CHECK_RESULT $? 0 0 "install libxcrypt failed" + SLEEP_WAIT 1 + dnf remove -y libxcrypt + CHECK_RESULT $? 0 0 "remove libxcrypt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-debuginfo.sh b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e5f5246c01ecb23a00f463ac6f6fdca56fe83c4 --- /dev/null +++ b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbcommon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbcommon-debuginfo | grep -v \.src | grep libxkbcommon-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbcommon-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbcommon-debuginfo + CHECK_RESULT $? 0 0 "install libxkbcommon-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libxkbcommon-debuginfo + CHECK_RESULT $? 0 0 "remove libxkbcommon-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-debugsource.sh b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ede57ca82c0d82e5f3fcaa25bbfb0450b6ec903 --- /dev/null +++ b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbcommon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbcommon-debugsource | grep -v \.src | grep libxkbcommon-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbcommon-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbcommon-debugsource + CHECK_RESULT $? 0 0 "install libxkbcommon-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libxkbcommon-debugsource + CHECK_RESULT $? 0 0 "remove libxkbcommon-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-devel.sh b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7237ccf7984a46d7a40172dec3977fe63a0c06ae --- /dev/null +++ b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbcommon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbcommon-devel | grep -v \.src | grep libxkbcommon-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbcommon-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbcommon-devel + CHECK_RESULT $? 0 0 "install libxkbcommon-devel failed" + SLEEP_WAIT 1 + dnf remove -y libxkbcommon-devel + CHECK_RESULT $? 0 0 "remove libxkbcommon-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-utils.sh b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..de544464780cd2094bd387b70efab681014a6187 --- /dev/null +++ b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbcommon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbcommon-utils | grep -v \.src | grep libxkbcommon-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbcommon-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbcommon-utils + CHECK_RESULT $? 0 0 "install libxkbcommon-utils failed" + SLEEP_WAIT 1 + dnf remove -y libxkbcommon-utils + CHECK_RESULT $? 0 0 "remove libxkbcommon-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-x11-devel.sh b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-x11-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..32733c12b166b1efa892f6afd19e5c125c8c016d --- /dev/null +++ b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-x11-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbcommon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbcommon-x11-devel | grep -v \.src | grep libxkbcommon-x11-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbcommon-x11-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbcommon-x11-devel + CHECK_RESULT $? 0 0 "install libxkbcommon-x11-devel failed" + SLEEP_WAIT 1 + dnf remove -y libxkbcommon-x11-devel + CHECK_RESULT $? 0 0 "remove libxkbcommon-x11-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-x11.sh b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-x11.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7aa8dacec02f08827cf0495f31b73dfa70e89be --- /dev/null +++ b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon-x11.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbcommon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbcommon-x11 | grep -v \.src | grep libxkbcommon-x11 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbcommon-x11" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbcommon-x11 + CHECK_RESULT $? 0 0 "install libxkbcommon-x11 failed" + SLEEP_WAIT 1 + dnf remove -y libxkbcommon-x11 + CHECK_RESULT $? 0 0 "remove libxkbcommon-x11 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon.sh b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e0f5ea03bbd89edecd116b441fbe4aa7276a68d --- /dev/null +++ b/testcases/cli-test/libxkbcommon/oe_test_libxkbcommon_install_and_remove_libxkbcommon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbcommon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbcommon | grep -v \.src | grep libxkbcommon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbcommon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbcommon + CHECK_RESULT $? 0 0 "install libxkbcommon failed" + SLEEP_WAIT 1 + dnf remove -y libxkbcommon + CHECK_RESULT $? 0 0 "remove libxkbcommon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile-debuginfo.sh b/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..eab0f4d404df0dff1e398104c1d7eea5fcf769e6 --- /dev/null +++ b/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbfile-debuginfo | grep -v \.src | grep libxkbfile-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbfile-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbfile-debuginfo + CHECK_RESULT $? 0 0 "install libxkbfile-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libxkbfile-debuginfo + CHECK_RESULT $? 0 0 "remove libxkbfile-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile-debugsource.sh b/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c0d5a718fba52bce8e31e8126f6583b502d7d8a --- /dev/null +++ b/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbfile-debugsource | grep -v \.src | grep libxkbfile-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbfile-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbfile-debugsource + CHECK_RESULT $? 0 0 "install libxkbfile-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libxkbfile-debugsource + CHECK_RESULT $? 0 0 "remove libxkbfile-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile-devel.sh b/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b48f27d15f7a15d72033a36b69fd74c656e3d5b0 --- /dev/null +++ b/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbfile-devel | grep -v \.src | grep libxkbfile-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbfile-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbfile-devel + CHECK_RESULT $? 0 0 "install libxkbfile-devel failed" + SLEEP_WAIT 1 + dnf remove -y libxkbfile-devel + CHECK_RESULT $? 0 0 "remove libxkbfile-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile.sh b/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cb7ffbaeffc5340e45a2783e85f3c50e4fe7bb1 --- /dev/null +++ b/testcases/cli-test/libxkbfile/oe_test_libxkbfile_install_and_remove_libxkbfile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxkbfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxkbfile | grep -v \.src | grep libxkbfile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxkbfile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxkbfile + CHECK_RESULT $? 0 0 "install libxkbfile failed" + SLEEP_WAIT 1 + dnf remove -y libxkbfile + CHECK_RESULT $? 0 0 "remove libxkbfile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-debuginfo.sh b/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..eac1e2673824580badee8465da02e69ad3d7b29f --- /dev/null +++ b/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxklavier +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxklavier-debuginfo | grep -v \.src | grep libxklavier-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxklavier-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxklavier-debuginfo + CHECK_RESULT $? 0 0 "install libxklavier-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libxklavier-debuginfo + CHECK_RESULT $? 0 0 "remove libxklavier-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-debugsource.sh b/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f7ccd74e988d4c3b256f7ec59ac049cc5921742 --- /dev/null +++ b/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxklavier +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxklavier-debugsource | grep -v \.src | grep libxklavier-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxklavier-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxklavier-debugsource + CHECK_RESULT $? 0 0 "install libxklavier-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libxklavier-debugsource + CHECK_RESULT $? 0 0 "remove libxklavier-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-devel.sh b/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..12c232cf119b75323180bf62396d6863f32cf959 --- /dev/null +++ b/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxklavier +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxklavier-devel | grep -v \.src | grep libxklavier-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxklavier-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxklavier-devel + CHECK_RESULT $? 0 0 "install libxklavier-devel failed" + SLEEP_WAIT 1 + dnf remove -y libxklavier-devel + CHECK_RESULT $? 0 0 "remove libxklavier-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-help.sh b/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f29a439149320b55d7bf15566d6482b1058ec5fd --- /dev/null +++ b/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxklavier +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxklavier-help | grep -v \.src | grep libxklavier-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxklavier-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxklavier-help + CHECK_RESULT $? 0 0 "install libxklavier-help failed" + SLEEP_WAIT 1 + dnf remove -y libxklavier-help + CHECK_RESULT $? 0 0 "remove libxklavier-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier.sh b/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0196932d9d1e7c2bb56c7521e74dcc826ecfeeb --- /dev/null +++ b/testcases/cli-test/libxklavier/oe_test_libxklavier_install_and_remove_libxklavier.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxklavier +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxklavier | grep -v \.src | grep libxklavier + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxklavier" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxklavier + CHECK_RESULT $? 0 0 "install libxklavier failed" + SLEEP_WAIT 1 + dnf remove -y libxklavier + CHECK_RESULT $? 0 0 "remove libxklavier failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-debuginfo.sh b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e2cdda798e58948fc2b33da9b97fe667216fe99 --- /dev/null +++ b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxml2-debuginfo | grep -v \.src | grep libxml2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxml2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxml2-debuginfo + CHECK_RESULT $? 0 0 "install libxml2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libxml2-debuginfo + CHECK_RESULT $? 0 0 "remove libxml2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-debugsource.sh b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c468307b64ab35f0eb4fdb57d814a3a63a7b035 --- /dev/null +++ b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxml2-debugsource | grep -v \.src | grep libxml2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxml2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxml2-debugsource + CHECK_RESULT $? 0 0 "install libxml2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libxml2-debugsource + CHECK_RESULT $? 0 0 "remove libxml2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-devel.sh b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..02ae4c57d070dc6b4cb44e266115d661cc4765e6 --- /dev/null +++ b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxml2-devel | grep -v \.src | grep libxml2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxml2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxml2-devel + CHECK_RESULT $? 0 0 "install libxml2-devel failed" + SLEEP_WAIT 1 + dnf remove -y libxml2-devel + CHECK_RESULT $? 0 0 "remove libxml2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-help.sh b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4003f0aafa9b1d2a94c009d726c32f7c9b2508e6 --- /dev/null +++ b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxml2-help | grep -v \.src | grep libxml2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxml2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxml2-help + CHECK_RESULT $? 0 0 "install libxml2-help failed" + SLEEP_WAIT 1 + dnf remove -y libxml2-help + CHECK_RESULT $? 0 0 "remove libxml2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2.sh b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2.sh new file mode 100644 index 0000000000000000000000000000000000000000..33a911b25f06087b00140dd045e76d65e3e071b0 --- /dev/null +++ b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_libxml2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxml2 | grep -v \.src | grep libxml2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxml2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxml2 + CHECK_RESULT $? 0 0 "install libxml2 failed" + SLEEP_WAIT 1 + dnf remove -y libxml2 + CHECK_RESULT $? 0 0 "remove libxml2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_python2-libxml2.sh b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_python2-libxml2.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff31ed1d56bf9a11c146e2a48edbc8fed0345a04 --- /dev/null +++ b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_python2-libxml2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libxml2 | grep -v \.src | grep python2-libxml2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libxml2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libxml2 + CHECK_RESULT $? 0 0 "install python2-libxml2 failed" + SLEEP_WAIT 1 + dnf remove -y python2-libxml2 + CHECK_RESULT $? 0 0 "remove python2-libxml2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_python3-libxml2.sh b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_python3-libxml2.sh new file mode 100644 index 0000000000000000000000000000000000000000..f30e1c63b55c84f68054e50222af220d35301b5e --- /dev/null +++ b/testcases/cli-test/libxml2/oe_test_libxml2_install_and_remove_python3-libxml2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libxml2 | grep -v \.src | grep python3-libxml2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libxml2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libxml2 + CHECK_RESULT $? 0 0 "install python3-libxml2 failed" + SLEEP_WAIT 1 + dnf remove -y python3-libxml2 + CHECK_RESULT $? 0 0 "remove python3-libxml2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb-debuginfo.sh b/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ef4944c14de87935f2d09e73866403a6ef58d4c --- /dev/null +++ b/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxmlb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxmlb-debuginfo | grep -v \.src | grep libxmlb-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxmlb-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxmlb-debuginfo + CHECK_RESULT $? 0 0 "install libxmlb-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libxmlb-debuginfo + CHECK_RESULT $? 0 0 "remove libxmlb-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb-debugsource.sh b/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e0861d59f5626756aadccbdd9d99cc5f20fb5a4 --- /dev/null +++ b/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxmlb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxmlb-debugsource | grep -v \.src | grep libxmlb-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxmlb-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxmlb-debugsource + CHECK_RESULT $? 0 0 "install libxmlb-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libxmlb-debugsource + CHECK_RESULT $? 0 0 "remove libxmlb-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb-devel.sh b/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..982304258bbc51a2ea91f2c4297161cc40f73187 --- /dev/null +++ b/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxmlb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxmlb-devel | grep -v \.src | grep libxmlb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxmlb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxmlb-devel + CHECK_RESULT $? 0 0 "install libxmlb-devel failed" + SLEEP_WAIT 1 + dnf remove -y libxmlb-devel + CHECK_RESULT $? 0 0 "remove libxmlb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb.sh b/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb.sh new file mode 100644 index 0000000000000000000000000000000000000000..624ab011fc9aecca9a01abc412890c61fd9e6ea9 --- /dev/null +++ b/testcases/cli-test/libxmlb/oe_test_libxmlb_install_and_remove_libxmlb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxmlb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxmlb | grep -v \.src | grep libxmlb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxmlb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxmlb + CHECK_RESULT $? 0 0 "install libxmlb failed" + SLEEP_WAIT 1 + dnf remove -y libxmlb + CHECK_RESULT $? 0 0 "remove libxmlb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-debuginfo.sh b/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a9798130e22b7cd3deb3caecaacb776f7dd1100 --- /dev/null +++ b/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxshmfence +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxshmfence-debuginfo | grep -v \.src | grep libxshmfence-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxshmfence-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxshmfence-debuginfo + CHECK_RESULT $? 0 0 "install libxshmfence-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libxshmfence-debuginfo + CHECK_RESULT $? 0 0 "remove libxshmfence-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-debugsource.sh b/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c97d28e7d619b35c8ddc0df017a799499bcd4166 --- /dev/null +++ b/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxshmfence +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxshmfence-debugsource | grep -v \.src | grep libxshmfence-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxshmfence-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxshmfence-debugsource + CHECK_RESULT $? 0 0 "install libxshmfence-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libxshmfence-debugsource + CHECK_RESULT $? 0 0 "remove libxshmfence-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-devel.sh b/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..767e8bd174cff14bda79488d7fc48c3eb3bc3e39 --- /dev/null +++ b/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxshmfence +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxshmfence-devel | grep -v \.src | grep libxshmfence-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxshmfence-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxshmfence-devel + CHECK_RESULT $? 0 0 "install libxshmfence-devel failed" + SLEEP_WAIT 1 + dnf remove -y libxshmfence-devel + CHECK_RESULT $? 0 0 "remove libxshmfence-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-help.sh b/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..51120cd3ea1533bb9f4d73e0747e4bf64a281974 --- /dev/null +++ b/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxshmfence +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxshmfence-help | grep -v \.src | grep libxshmfence-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxshmfence-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxshmfence-help + CHECK_RESULT $? 0 0 "install libxshmfence-help failed" + SLEEP_WAIT 1 + dnf remove -y libxshmfence-help + CHECK_RESULT $? 0 0 "remove libxshmfence-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence.sh b/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence.sh new file mode 100644 index 0000000000000000000000000000000000000000..9141e68811bac50b6c639f1be6e0bff0e46d005f --- /dev/null +++ b/testcases/cli-test/libxshmfence/oe_test_libxshmfence_install_and_remove_libxshmfence.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxshmfence +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxshmfence | grep -v \.src | grep libxshmfence + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxshmfence" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxshmfence + CHECK_RESULT $? 0 0 "install libxshmfence failed" + SLEEP_WAIT 1 + dnf remove -y libxshmfence + CHECK_RESULT $? 0 0 "remove libxshmfence failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-debuginfo.sh b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..56c1ef9a59afad8f563d651113a4c02e0c027fef --- /dev/null +++ b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxslt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxslt-debuginfo | grep -v \.src | grep libxslt-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxslt-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxslt-debuginfo + CHECK_RESULT $? 0 0 "install libxslt-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libxslt-debuginfo + CHECK_RESULT $? 0 0 "remove libxslt-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-debugsource.sh b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..74cfaf8b92788ee7452be00b52d76f15e48609bf --- /dev/null +++ b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxslt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxslt-debugsource | grep -v \.src | grep libxslt-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxslt-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxslt-debugsource + CHECK_RESULT $? 0 0 "install libxslt-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libxslt-debugsource + CHECK_RESULT $? 0 0 "remove libxslt-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-devel.sh b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b891aecf6f3339351b0db9a1351dcbe33a338839 --- /dev/null +++ b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxslt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxslt-devel | grep -v \.src | grep libxslt-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxslt-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxslt-devel + CHECK_RESULT $? 0 0 "install libxslt-devel failed" + SLEEP_WAIT 1 + dnf remove -y libxslt-devel + CHECK_RESULT $? 0 0 "remove libxslt-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-help.sh b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fa1bda1fa2de665e9f01f989614dd96355c67af --- /dev/null +++ b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxslt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxslt-help | grep -v \.src | grep libxslt-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxslt-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxslt-help + CHECK_RESULT $? 0 0 "install libxslt-help failed" + SLEEP_WAIT 1 + dnf remove -y libxslt-help + CHECK_RESULT $? 0 0 "remove libxslt-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt.sh b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt.sh new file mode 100644 index 0000000000000000000000000000000000000000..11f85add098ce01e6ad33210536fe1b714cbcc76 --- /dev/null +++ b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_libxslt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxslt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libxslt | grep -v \.src | grep libxslt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libxslt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libxslt + CHECK_RESULT $? 0 0 "install libxslt failed" + SLEEP_WAIT 1 + dnf remove -y libxslt + CHECK_RESULT $? 0 0 "remove libxslt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_python2-libxslt.sh b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_python2-libxslt.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8007e711a7f5a8b99303cc86ff346017cd55c34 --- /dev/null +++ b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_python2-libxslt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxslt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-libxslt | grep -v \.src | grep python2-libxslt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-libxslt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-libxslt + CHECK_RESULT $? 0 0 "install python2-libxslt failed" + SLEEP_WAIT 1 + dnf remove -y python2-libxslt + CHECK_RESULT $? 0 0 "remove python2-libxslt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_python3-libxslt.sh b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_python3-libxslt.sh new file mode 100644 index 0000000000000000000000000000000000000000..b727804558d0ac8eed4668f0b950bcd60cac3532 --- /dev/null +++ b/testcases/cli-test/libxslt/oe_test_libxslt_install_and_remove_python3-libxslt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libxslt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libxslt | grep -v \.src | grep python3-libxslt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libxslt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libxslt + CHECK_RESULT $? 0 0 "install python3-libxslt failed" + SLEEP_WAIT 1 + dnf remove -y python3-libxslt + CHECK_RESULT $? 0 0 "remove python3-libxslt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-debuginfo.sh b/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b14827fdb1f7e6e1883cdeb84670db913b146182 --- /dev/null +++ b/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libyaml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libyaml-debuginfo | grep -v \.src | grep libyaml-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libyaml-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libyaml-debuginfo + CHECK_RESULT $? 0 0 "install libyaml-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y libyaml-debuginfo + CHECK_RESULT $? 0 0 "remove libyaml-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-debugsource.sh b/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9032eacd2d7bdc903fc232827a74637ead91fe9a --- /dev/null +++ b/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libyaml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libyaml-debugsource | grep -v \.src | grep libyaml-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libyaml-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libyaml-debugsource + CHECK_RESULT $? 0 0 "install libyaml-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y libyaml-debugsource + CHECK_RESULT $? 0 0 "remove libyaml-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-devel.sh b/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a57d55b44eab17c0705476e03f9ed73b0335bea8 --- /dev/null +++ b/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libyaml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libyaml-devel | grep -v \.src | grep libyaml-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libyaml-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libyaml-devel + CHECK_RESULT $? 0 0 "install libyaml-devel failed" + SLEEP_WAIT 1 + dnf remove -y libyaml-devel + CHECK_RESULT $? 0 0 "remove libyaml-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-help.sh b/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bebf1b52565145143c7b3539717a26b5bad54e7 --- /dev/null +++ b/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libyaml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libyaml-help | grep -v \.src | grep libyaml-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libyaml-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libyaml-help + CHECK_RESULT $? 0 0 "install libyaml-help failed" + SLEEP_WAIT 1 + dnf remove -y libyaml-help + CHECK_RESULT $? 0 0 "remove libyaml-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml.sh b/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab5be6f19818143df3ebdbe5a9c29e813899fede --- /dev/null +++ b/testcases/cli-test/libyaml/oe_test_libyaml_install_and_remove_libyaml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src libyaml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libyaml | grep -v \.src | grep libyaml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libyaml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libyaml + CHECK_RESULT $? 0 0 "install libyaml failed" + SLEEP_WAIT 1 + dnf remove -y libyaml + CHECK_RESULT $? 0 0 "remove libyaml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-ath.sh b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-ath.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6c10c9d6ab9360a09787e157466114e3cfa6807 --- /dev/null +++ b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-ath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linux-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linux-firmware-ath | grep -v \.src | grep linux-firmware-ath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linux-firmware-ath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linux-firmware-ath + CHECK_RESULT $? 0 0 "install linux-firmware-ath failed" + SLEEP_WAIT 1 + dnf remove -y linux-firmware-ath + CHECK_RESULT $? 0 0 "remove linux-firmware-ath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-cypress.sh b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-cypress.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e01fe23f08d12dec9aca057a441df06740a5479 --- /dev/null +++ b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-cypress.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linux-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linux-firmware-cypress | grep -v \.src | grep linux-firmware-cypress + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linux-firmware-cypress" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linux-firmware-cypress + CHECK_RESULT $? 0 0 "install linux-firmware-cypress failed" + SLEEP_WAIT 1 + dnf remove -y linux-firmware-cypress + CHECK_RESULT $? 0 0 "remove linux-firmware-cypress failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-iwlwifi.sh b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-iwlwifi.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cabe2ab9ddd926031d5c28c1c86470f2512364c --- /dev/null +++ b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-iwlwifi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linux-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linux-firmware-iwlwifi | grep -v \.src | grep linux-firmware-iwlwifi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linux-firmware-iwlwifi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linux-firmware-iwlwifi + CHECK_RESULT $? 0 0 "install linux-firmware-iwlwifi failed" + SLEEP_WAIT 1 + dnf remove -y linux-firmware-iwlwifi + CHECK_RESULT $? 0 0 "remove linux-firmware-iwlwifi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-libertas.sh b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-libertas.sh new file mode 100644 index 0000000000000000000000000000000000000000..21e038913a245cad157247af348cf4c4dc6d9231 --- /dev/null +++ b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-libertas.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linux-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linux-firmware-libertas | grep -v \.src | grep linux-firmware-libertas + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linux-firmware-libertas" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linux-firmware-libertas + CHECK_RESULT $? 0 0 "install linux-firmware-libertas failed" + SLEEP_WAIT 1 + dnf remove -y linux-firmware-libertas + CHECK_RESULT $? 0 0 "remove linux-firmware-libertas failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-mediatek.sh b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-mediatek.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e33a4714fe55f2edaf0ca46d87423cb1bf7bcd5 --- /dev/null +++ b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-mediatek.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linux-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linux-firmware-mediatek | grep -v \.src | grep linux-firmware-mediatek + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linux-firmware-mediatek" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linux-firmware-mediatek + CHECK_RESULT $? 0 0 "install linux-firmware-mediatek failed" + SLEEP_WAIT 1 + dnf remove -y linux-firmware-mediatek + CHECK_RESULT $? 0 0 "remove linux-firmware-mediatek failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-mrvl.sh b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-mrvl.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ef789bcdea58fa1ef2d83b8ded0a3d86b992372 --- /dev/null +++ b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-mrvl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linux-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linux-firmware-mrvl | grep -v \.src | grep linux-firmware-mrvl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linux-firmware-mrvl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linux-firmware-mrvl + CHECK_RESULT $? 0 0 "install linux-firmware-mrvl failed" + SLEEP_WAIT 1 + dnf remove -y linux-firmware-mrvl + CHECK_RESULT $? 0 0 "remove linux-firmware-mrvl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-netronome.sh b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-netronome.sh new file mode 100644 index 0000000000000000000000000000000000000000..19d798543c227acd89c8c99ae6a28843cadb637e --- /dev/null +++ b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-netronome.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linux-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linux-firmware-netronome | grep -v \.src | grep linux-firmware-netronome + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linux-firmware-netronome" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linux-firmware-netronome + CHECK_RESULT $? 0 0 "install linux-firmware-netronome failed" + SLEEP_WAIT 1 + dnf remove -y linux-firmware-netronome + CHECK_RESULT $? 0 0 "remove linux-firmware-netronome failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-ti-connectivity.sh b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-ti-connectivity.sh new file mode 100644 index 0000000000000000000000000000000000000000..f513d57f7a6b9fccccbb34ccc418280894249a60 --- /dev/null +++ b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware-ti-connectivity.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linux-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linux-firmware-ti-connectivity | grep -v \.src | grep linux-firmware-ti-connectivity + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linux-firmware-ti-connectivity" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linux-firmware-ti-connectivity + CHECK_RESULT $? 0 0 "install linux-firmware-ti-connectivity failed" + SLEEP_WAIT 1 + dnf remove -y linux-firmware-ti-connectivity + CHECK_RESULT $? 0 0 "remove linux-firmware-ti-connectivity failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware.sh b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware.sh new file mode 100644 index 0000000000000000000000000000000000000000..04df9bfc083767f06e4fd4732a283f1a09fc1b58 --- /dev/null +++ b/testcases/cli-test/linux-firmware/oe_test_linux-firmware_install_and_remove_linux-firmware.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linux-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linux-firmware | grep -v \.src | grep linux-firmware + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linux-firmware" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linux-firmware + CHECK_RESULT $? 0 0 "install linux-firmware failed" + SLEEP_WAIT 1 + dnf remove -y linux-firmware + CHECK_RESULT $? 0 0 "remove linux-firmware failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-debuginfo.sh b/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d31c3079298d788842716416a4341ee0cb69350b --- /dev/null +++ b/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linuxdoc-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linuxdoc-tools-debuginfo | grep -v \.src | grep linuxdoc-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linuxdoc-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linuxdoc-tools-debuginfo + CHECK_RESULT $? 0 0 "install linuxdoc-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y linuxdoc-tools-debuginfo + CHECK_RESULT $? 0 0 "remove linuxdoc-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-debugsource.sh b/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc43a92be902ff3a7eb64c89f6ab5727da2b259c --- /dev/null +++ b/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linuxdoc-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linuxdoc-tools-debugsource | grep -v \.src | grep linuxdoc-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linuxdoc-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linuxdoc-tools-debugsource + CHECK_RESULT $? 0 0 "install linuxdoc-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y linuxdoc-tools-debugsource + CHECK_RESULT $? 0 0 "remove linuxdoc-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-help.sh b/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..36d27585ce84a71a578b847d9408a97e2d1bfdc5 --- /dev/null +++ b/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linuxdoc-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linuxdoc-tools-help | grep -v \.src | grep linuxdoc-tools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linuxdoc-tools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linuxdoc-tools-help + CHECK_RESULT $? 0 0 "install linuxdoc-tools-help failed" + SLEEP_WAIT 1 + dnf remove -y linuxdoc-tools-help + CHECK_RESULT $? 0 0 "remove linuxdoc-tools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools.sh b/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..02b844cfd137eaa1e2aa98d2c8b7a5351cd42e1b --- /dev/null +++ b/testcases/cli-test/linuxdoc-tools/oe_test_linuxdoc-tools_install_and_remove_linuxdoc-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src linuxdoc-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available linuxdoc-tools | grep -v \.src | grep linuxdoc-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm linuxdoc-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y linuxdoc-tools + CHECK_RESULT $? 0 0 "install linuxdoc-tools failed" + SLEEP_WAIT 1 + dnf remove -y linuxdoc-tools + CHECK_RESULT $? 0 0 "remove linuxdoc-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-debuginfo.sh b/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c962b11881c4952d9b3533b9ae7039298f039a5f --- /dev/null +++ b/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lksctp-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lksctp-tools-debuginfo | grep -v \.src | grep lksctp-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lksctp-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lksctp-tools-debuginfo + CHECK_RESULT $? 0 0 "install lksctp-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lksctp-tools-debuginfo + CHECK_RESULT $? 0 0 "remove lksctp-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-debugsource.sh b/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a077265f8d01e2b5ccb4584275c59a6e8ebd5dfd --- /dev/null +++ b/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lksctp-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lksctp-tools-debugsource | grep -v \.src | grep lksctp-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lksctp-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lksctp-tools-debugsource + CHECK_RESULT $? 0 0 "install lksctp-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lksctp-tools-debugsource + CHECK_RESULT $? 0 0 "remove lksctp-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-devel.sh b/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f223ab249d718d9ccf39aaeea121349b93068e99 --- /dev/null +++ b/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lksctp-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lksctp-tools-devel | grep -v \.src | grep lksctp-tools-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lksctp-tools-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lksctp-tools-devel + CHECK_RESULT $? 0 0 "install lksctp-tools-devel failed" + SLEEP_WAIT 1 + dnf remove -y lksctp-tools-devel + CHECK_RESULT $? 0 0 "remove lksctp-tools-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-help.sh b/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbe65df9918d707c7b4c58f13787dcb201550f25 --- /dev/null +++ b/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lksctp-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lksctp-tools-help | grep -v \.src | grep lksctp-tools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lksctp-tools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lksctp-tools-help + CHECK_RESULT $? 0 0 "install lksctp-tools-help failed" + SLEEP_WAIT 1 + dnf remove -y lksctp-tools-help + CHECK_RESULT $? 0 0 "remove lksctp-tools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools.sh b/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..1610476b043957288b3be9528738b93800903255 --- /dev/null +++ b/testcases/cli-test/lksctp-tools/oe_test_lksctp-tools_install_and_remove_lksctp-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lksctp-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lksctp-tools | grep -v \.src | grep lksctp-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lksctp-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lksctp-tools + CHECK_RESULT $? 0 0 "install lksctp-tools failed" + SLEEP_WAIT 1 + dnf remove -y lksctp-tools + CHECK_RESULT $? 0 0 "remove lksctp-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-debuginfo.sh b/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e33000d0a34542fd104964a6fed06c315d6dbfe --- /dev/null +++ b/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lldpad +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lldpad-debuginfo | grep -v \.src | grep lldpad-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lldpad-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lldpad-debuginfo + CHECK_RESULT $? 0 0 "install lldpad-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lldpad-debuginfo + CHECK_RESULT $? 0 0 "remove lldpad-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-debugsource.sh b/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b7e5bc69d6fcb59a121d54932adafa839693b34 --- /dev/null +++ b/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lldpad +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lldpad-debugsource | grep -v \.src | grep lldpad-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lldpad-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lldpad-debugsource + CHECK_RESULT $? 0 0 "install lldpad-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lldpad-debugsource + CHECK_RESULT $? 0 0 "remove lldpad-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-devel.sh b/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..45ad9728e37a3dec3d43a69765987c008f7f3180 --- /dev/null +++ b/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lldpad +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lldpad-devel | grep -v \.src | grep lldpad-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lldpad-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lldpad-devel + CHECK_RESULT $? 0 0 "install lldpad-devel failed" + SLEEP_WAIT 1 + dnf remove -y lldpad-devel + CHECK_RESULT $? 0 0 "remove lldpad-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-help.sh b/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9d2aad3efbc686cdef457f859b3f66e395328f6 --- /dev/null +++ b/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lldpad +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lldpad-help | grep -v \.src | grep lldpad-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lldpad-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lldpad-help + CHECK_RESULT $? 0 0 "install lldpad-help failed" + SLEEP_WAIT 1 + dnf remove -y lldpad-help + CHECK_RESULT $? 0 0 "remove lldpad-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad.sh b/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe88257ff4ff6d13740c9da659951eb2e1b2dbc0 --- /dev/null +++ b/testcases/cli-test/lldpad/oe_test_lldpad_install_and_remove_lldpad.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lldpad +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lldpad | grep -v \.src | grep lldpad + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lldpad" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lldpad + CHECK_RESULT $? 0 0 "install lldpad failed" + SLEEP_WAIT 1 + dnf remove -y lldpad + CHECK_RESULT $? 0 0 "remove lldpad failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-cmake-utils.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-cmake-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..871f063fd167ca4d8ac775de0508631c3a4cec6c --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-cmake-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm-cmake-utils | grep -v \.src | grep llvm-cmake-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm-cmake-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm-cmake-utils + CHECK_RESULT $? 0 0 "install llvm-cmake-utils failed" + SLEEP_WAIT 1 + dnf remove -y llvm-cmake-utils + CHECK_RESULT $? 0 0 "remove llvm-cmake-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-debuginfo.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b8a3ebe75b9f91f0e30bcec6b7d180595eb3fde --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm-debuginfo | grep -v \.src | grep llvm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm-debuginfo + CHECK_RESULT $? 0 0 "install llvm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y llvm-debuginfo + CHECK_RESULT $? 0 0 "remove llvm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-debugsource.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e80dee7d8c858526a0fd598b05318c5311f18ff --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm-debugsource | grep -v \.src | grep llvm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm-debugsource + CHECK_RESULT $? 0 0 "install llvm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y llvm-debugsource + CHECK_RESULT $? 0 0 "remove llvm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-devel.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..62078f678180d8533501f09e4198351cd158b1c6 --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm-devel | grep -v \.src | grep llvm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm-devel + CHECK_RESULT $? 0 0 "install llvm-devel failed" + SLEEP_WAIT 1 + dnf remove -y llvm-devel + CHECK_RESULT $? 0 0 "remove llvm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-doc.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e54d5d948c054dc4108bcc3e9d4fd76ef479ef98 --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm-doc | grep -v \.src | grep llvm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm-doc + CHECK_RESULT $? 0 0 "install llvm-doc failed" + SLEEP_WAIT 1 + dnf remove -y llvm-doc + CHECK_RESULT $? 0 0 "remove llvm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-googletest.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-googletest.sh new file mode 100644 index 0000000000000000000000000000000000000000..e594b9217af8cd316f774e337d5bda606bde0aac --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-googletest.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm-googletest | grep -v \.src | grep llvm-googletest + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm-googletest" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm-googletest + CHECK_RESULT $? 0 0 "install llvm-googletest failed" + SLEEP_WAIT 1 + dnf remove -y llvm-googletest + CHECK_RESULT $? 0 0 "remove llvm-googletest failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-help.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7a6ab4f26b39cef5cd970e47f08daac23adbbaa --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm-help | grep -v \.src | grep llvm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm-help + CHECK_RESULT $? 0 0 "install llvm-help failed" + SLEEP_WAIT 1 + dnf remove -y llvm-help + CHECK_RESULT $? 0 0 "remove llvm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-libs.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0852d764c343853a476bbd24ac8a78fdde052af --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm-libs | grep -v \.src | grep llvm-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm-libs + CHECK_RESULT $? 0 0 "install llvm-libs failed" + SLEEP_WAIT 1 + dnf remove -y llvm-libs + CHECK_RESULT $? 0 0 "remove llvm-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-static.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..642249f210f69e58dfc94c5e55f132f6e167d9d7 --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm-static | grep -v \.src | grep llvm-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm-static + CHECK_RESULT $? 0 0 "install llvm-static failed" + SLEEP_WAIT 1 + dnf remove -y llvm-static + CHECK_RESULT $? 0 0 "remove llvm-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-test.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-test.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f0d7a4ffb8b9b6eed28f6e53167a4882053dd82 --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm-test.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm-test | grep -v \.src | grep llvm-test + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm-test" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm-test + CHECK_RESULT $? 0 0 "install llvm-test failed" + SLEEP_WAIT 1 + dnf remove -y llvm-test + CHECK_RESULT $? 0 0 "remove llvm-test failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm.sh b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm.sh new file mode 100644 index 0000000000000000000000000000000000000000..1beda42dd857bfc3c51638f1a1429419a0175233 --- /dev/null +++ b/testcases/cli-test/llvm/oe_test_llvm_install_and_remove_llvm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src llvm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available llvm | grep -v \.src | grep llvm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm llvm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y llvm + CHECK_RESULT $? 0 0 "install llvm failed" + SLEEP_WAIT 1 + dnf remove -y llvm + CHECK_RESULT $? 0 0 "remove llvm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-debuginfo.sh b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..71d88abb2ff332ddd3f8f67fa26ec51de311f79e --- /dev/null +++ b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lm_sensors +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lm_sensors-debuginfo | grep -v \.src | grep lm_sensors-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lm_sensors-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lm_sensors-debuginfo + CHECK_RESULT $? 0 0 "install lm_sensors-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lm_sensors-debuginfo + CHECK_RESULT $? 0 0 "remove lm_sensors-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-debugsource.sh b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ea3c1f723fdedfd03094e1c36eaa6962da9b784 --- /dev/null +++ b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lm_sensors +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lm_sensors-debugsource | grep -v \.src | grep lm_sensors-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lm_sensors-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lm_sensors-debugsource + CHECK_RESULT $? 0 0 "install lm_sensors-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lm_sensors-debugsource + CHECK_RESULT $? 0 0 "remove lm_sensors-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-devel.sh b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..00901b5fa85f3b942d988660109a2c76a7815e62 --- /dev/null +++ b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lm_sensors +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lm_sensors-devel | grep -v \.src | grep lm_sensors-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lm_sensors-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lm_sensors-devel + CHECK_RESULT $? 0 0 "install lm_sensors-devel failed" + SLEEP_WAIT 1 + dnf remove -y lm_sensors-devel + CHECK_RESULT $? 0 0 "remove lm_sensors-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-help.sh b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5754ed28c3e7f125837a89d7506ca4ad455b0ac --- /dev/null +++ b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lm_sensors +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lm_sensors-help | grep -v \.src | grep lm_sensors-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lm_sensors-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lm_sensors-help + CHECK_RESULT $? 0 0 "install lm_sensors-help failed" + SLEEP_WAIT 1 + dnf remove -y lm_sensors-help + CHECK_RESULT $? 0 0 "remove lm_sensors-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-sensord.sh b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-sensord.sh new file mode 100644 index 0000000000000000000000000000000000000000..544bae30e11bd3eadba35d68ae0e2e95ae019de8 --- /dev/null +++ b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors-sensord.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lm_sensors +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lm_sensors-sensord | grep -v \.src | grep lm_sensors-sensord + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lm_sensors-sensord" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lm_sensors-sensord + CHECK_RESULT $? 0 0 "install lm_sensors-sensord failed" + SLEEP_WAIT 1 + dnf remove -y lm_sensors-sensord + CHECK_RESULT $? 0 0 "remove lm_sensors-sensord failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors.sh b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors.sh new file mode 100644 index 0000000000000000000000000000000000000000..0935264faed92ea8aaf041a8949860daa2375e0e --- /dev/null +++ b/testcases/cli-test/lm_sensors/oe_test_lm_sensors_install_and_remove_lm_sensors.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lm_sensors +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lm_sensors | grep -v \.src | grep lm_sensors + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lm_sensors" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lm_sensors + CHECK_RESULT $? 0 0 "install lm_sensors failed" + SLEEP_WAIT 1 + dnf remove -y lm_sensors + CHECK_RESULT $? 0 0 "remove lm_sensors failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-debuginfo.sh b/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bf20da8346a1f726ed2bbbe4cf0f98fab5c4acf --- /dev/null +++ b/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lmdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lmdb-debuginfo | grep -v \.src | grep lmdb-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lmdb-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lmdb-debuginfo + CHECK_RESULT $? 0 0 "install lmdb-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lmdb-debuginfo + CHECK_RESULT $? 0 0 "remove lmdb-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-debugsource.sh b/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..013660a13a3f549149c21590af911ad9c982fff2 --- /dev/null +++ b/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lmdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lmdb-debugsource | grep -v \.src | grep lmdb-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lmdb-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lmdb-debugsource + CHECK_RESULT $? 0 0 "install lmdb-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lmdb-debugsource + CHECK_RESULT $? 0 0 "remove lmdb-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-devel.sh b/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6b4c8024eddd9e56cc4f1d8a1d8c0d5758129e6 --- /dev/null +++ b/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lmdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lmdb-devel | grep -v \.src | grep lmdb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lmdb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lmdb-devel + CHECK_RESULT $? 0 0 "install lmdb-devel failed" + SLEEP_WAIT 1 + dnf remove -y lmdb-devel + CHECK_RESULT $? 0 0 "remove lmdb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-help.sh b/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..35cc9fadde01fcf0d62f2f90088a50c01ac9621f --- /dev/null +++ b/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lmdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lmdb-help | grep -v \.src | grep lmdb-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lmdb-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lmdb-help + CHECK_RESULT $? 0 0 "install lmdb-help failed" + SLEEP_WAIT 1 + dnf remove -y lmdb-help + CHECK_RESULT $? 0 0 "remove lmdb-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb.sh b/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9e4cd641094bec1a55023d61c1c93dfa07e0f2c --- /dev/null +++ b/testcases/cli-test/lmdb/oe_test_lmdb_install_and_remove_lmdb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lmdb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lmdb | grep -v \.src | grep lmdb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lmdb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lmdb + CHECK_RESULT $? 0 0 "install lmdb failed" + SLEEP_WAIT 1 + dnf remove -y lmdb + CHECK_RESULT $? 0 0 "remove lmdb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate-debuginfo.sh b/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..179413fc251f8c3e5fc8e6c221ef3de3e85f1924 --- /dev/null +++ b/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src logrotate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available logrotate-debuginfo | grep -v \.src | grep logrotate-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm logrotate-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y logrotate-debuginfo + CHECK_RESULT $? 0 0 "install logrotate-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y logrotate-debuginfo + CHECK_RESULT $? 0 0 "remove logrotate-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate-debugsource.sh b/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..432e12955e48c979a30b0d2e6951e6e215989fea --- /dev/null +++ b/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src logrotate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available logrotate-debugsource | grep -v \.src | grep logrotate-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm logrotate-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y logrotate-debugsource + CHECK_RESULT $? 0 0 "install logrotate-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y logrotate-debugsource + CHECK_RESULT $? 0 0 "remove logrotate-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate-help.sh b/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2f56305e8228283a15cc3ded0522f8b58eb27cc --- /dev/null +++ b/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src logrotate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available logrotate-help | grep -v \.src | grep logrotate-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm logrotate-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y logrotate-help + CHECK_RESULT $? 0 0 "install logrotate-help failed" + SLEEP_WAIT 1 + dnf remove -y logrotate-help + CHECK_RESULT $? 0 0 "remove logrotate-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate.sh b/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2846d01bf65bcba7b14731cf0ce360129f10d63 --- /dev/null +++ b/testcases/cli-test/logrotate/oe_test_logrotate_install_and_remove_logrotate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src logrotate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available logrotate | grep -v \.src | grep logrotate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm logrotate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y logrotate + CHECK_RESULT $? 0 0 "install logrotate failed" + SLEEP_WAIT 1 + dnf remove -y logrotate + CHECK_RESULT $? 0 0 "remove logrotate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_composer-cli.sh b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_composer-cli.sh new file mode 100644 index 0000000000000000000000000000000000000000..da3071985f40e2e00b9919df8a62dac281129bec --- /dev/null +++ b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_composer-cli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lorax +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available composer-cli | grep -v \.src | grep composer-cli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm composer-cli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y composer-cli + CHECK_RESULT $? 0 0 "install composer-cli failed" + SLEEP_WAIT 1 + dnf remove -y composer-cli + CHECK_RESULT $? 0 0 "remove composer-cli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-composer.sh b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-composer.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc651fa567918d40b2bbcaa9482782bab45456bc --- /dev/null +++ b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-composer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lorax +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lorax-composer | grep -v \.src | grep lorax-composer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lorax-composer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lorax-composer + CHECK_RESULT $? 0 0 "install lorax-composer failed" + SLEEP_WAIT 1 + dnf remove -y lorax-composer + CHECK_RESULT $? 0 0 "remove lorax-composer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-help.sh b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b19e4099a397aa78edd6b7f1aed5e222a103a52a --- /dev/null +++ b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lorax +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lorax-help | grep -v \.src | grep lorax-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lorax-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lorax-help + CHECK_RESULT $? 0 0 "install lorax-help failed" + SLEEP_WAIT 1 + dnf remove -y lorax-help + CHECK_RESULT $? 0 0 "remove lorax-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-lmc-novirt.sh b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-lmc-novirt.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9214b9f7447f2290a6927a1cabd16baaf975f1a --- /dev/null +++ b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-lmc-novirt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lorax +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lorax-lmc-novirt | grep -v \.src | grep lorax-lmc-novirt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lorax-lmc-novirt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lorax-lmc-novirt + CHECK_RESULT $? 0 0 "install lorax-lmc-novirt failed" + SLEEP_WAIT 1 + dnf remove -y lorax-lmc-novirt + CHECK_RESULT $? 0 0 "remove lorax-lmc-novirt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-lmc-virt.sh b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-lmc-virt.sh new file mode 100644 index 0000000000000000000000000000000000000000..79b2c06a4855a432b343e6d6bedf275ea836f2d0 --- /dev/null +++ b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax-lmc-virt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lorax +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lorax-lmc-virt | grep -v \.src | grep lorax-lmc-virt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lorax-lmc-virt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lorax-lmc-virt + CHECK_RESULT $? 0 0 "install lorax-lmc-virt failed" + SLEEP_WAIT 1 + dnf remove -y lorax-lmc-virt + CHECK_RESULT $? 0 0 "remove lorax-lmc-virt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax.sh b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax.sh new file mode 100644 index 0000000000000000000000000000000000000000..df7fc0545bba73f841215627f1d177a09531ff20 --- /dev/null +++ b/testcases/cli-test/lorax/oe_test_lorax_install_and_remove_lorax.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lorax +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lorax | grep -v \.src | grep lorax + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lorax" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lorax + CHECK_RESULT $? 0 0 "install lorax failed" + SLEEP_WAIT 1 + dnf remove -y lorax + CHECK_RESULT $? 0 0 "remove lorax failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw-debuginfo.sh b/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f24d03dc7df5570471162fa08e35b0abc36fadc7 --- /dev/null +++ b/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lshw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lshw-debuginfo | grep -v \.src | grep lshw-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lshw-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lshw-debuginfo + CHECK_RESULT $? 0 0 "install lshw-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lshw-debuginfo + CHECK_RESULT $? 0 0 "remove lshw-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw-debugsource.sh b/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ade5871f2f86a7aefe9ab82c3be3bfa4528eaf49 --- /dev/null +++ b/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lshw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lshw-debugsource | grep -v \.src | grep lshw-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lshw-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lshw-debugsource + CHECK_RESULT $? 0 0 "install lshw-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lshw-debugsource + CHECK_RESULT $? 0 0 "remove lshw-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw-help.sh b/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..550fc7f29567efe8268a15e2ed840357d43ac1d0 --- /dev/null +++ b/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lshw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lshw-help | grep -v \.src | grep lshw-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lshw-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lshw-help + CHECK_RESULT $? 0 0 "install lshw-help failed" + SLEEP_WAIT 1 + dnf remove -y lshw-help + CHECK_RESULT $? 0 0 "remove lshw-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw.sh b/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw.sh new file mode 100644 index 0000000000000000000000000000000000000000..d033909a6193a6c20ecd34132540c99299217e33 --- /dev/null +++ b/testcases/cli-test/lshw/oe_test_lshw_install_and_remove_lshw.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lshw +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lshw | grep -v \.src | grep lshw + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lshw" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lshw + CHECK_RESULT $? 0 0 "install lshw failed" + SLEEP_WAIT 1 + dnf remove -y lshw + CHECK_RESULT $? 0 0 "remove lshw failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof-debuginfo.sh b/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac8c983d88f433dd9da8be070fceb6a93b3c75e0 --- /dev/null +++ b/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lsof +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lsof-debuginfo | grep -v \.src | grep lsof-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lsof-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lsof-debuginfo + CHECK_RESULT $? 0 0 "install lsof-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lsof-debuginfo + CHECK_RESULT $? 0 0 "remove lsof-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof-debugsource.sh b/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e517bd41aa8265c5618403abf47457888227084 --- /dev/null +++ b/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lsof +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lsof-debugsource | grep -v \.src | grep lsof-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lsof-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lsof-debugsource + CHECK_RESULT $? 0 0 "install lsof-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lsof-debugsource + CHECK_RESULT $? 0 0 "remove lsof-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof-help.sh b/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6149afc99aca10262786acf38c3458a2cc9a63b3 --- /dev/null +++ b/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lsof +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lsof-help | grep -v \.src | grep lsof-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lsof-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lsof-help + CHECK_RESULT $? 0 0 "install lsof-help failed" + SLEEP_WAIT 1 + dnf remove -y lsof-help + CHECK_RESULT $? 0 0 "remove lsof-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof.sh b/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof.sh new file mode 100644 index 0000000000000000000000000000000000000000..61b1c240f75d57673bde13943721a672fc9853a5 --- /dev/null +++ b/testcases/cli-test/lsof/oe_test_lsof_install_and_remove_lsof.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lsof +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lsof | grep -v \.src | grep lsof + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lsof" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lsof + CHECK_RESULT $? 0 0 "install lsof failed" + SLEEP_WAIT 1 + dnf remove -y lsof + CHECK_RESULT $? 0 0 "remove lsof failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-debuginfo.sh b/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5589789bcdbc97286ac4acd3162ce2d712d9f49 --- /dev/null +++ b/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lsscsi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lsscsi-debuginfo | grep -v \.src | grep lsscsi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lsscsi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lsscsi-debuginfo + CHECK_RESULT $? 0 0 "install lsscsi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lsscsi-debuginfo + CHECK_RESULT $? 0 0 "remove lsscsi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-debugsource.sh b/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..476eaa1ff98fdcbdbde78e05846d32f132818b03 --- /dev/null +++ b/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lsscsi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lsscsi-debugsource | grep -v \.src | grep lsscsi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lsscsi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lsscsi-debugsource + CHECK_RESULT $? 0 0 "install lsscsi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lsscsi-debugsource + CHECK_RESULT $? 0 0 "remove lsscsi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-doc.sh b/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..935e7c86c159c845003575bc0aca55203f9e6879 --- /dev/null +++ b/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lsscsi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lsscsi-doc | grep -v \.src | grep lsscsi-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lsscsi-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lsscsi-doc + CHECK_RESULT $? 0 0 "install lsscsi-doc failed" + SLEEP_WAIT 1 + dnf remove -y lsscsi-doc + CHECK_RESULT $? 0 0 "remove lsscsi-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-help.sh b/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6ec31978464b2c3db030f222a71b9259551e4c6 --- /dev/null +++ b/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lsscsi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lsscsi-help | grep -v \.src | grep lsscsi-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lsscsi-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lsscsi-help + CHECK_RESULT $? 0 0 "install lsscsi-help failed" + SLEEP_WAIT 1 + dnf remove -y lsscsi-help + CHECK_RESULT $? 0 0 "remove lsscsi-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi.sh b/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi.sh new file mode 100644 index 0000000000000000000000000000000000000000..f731f7ea2a34ac6b0d91cc164080701aedfc1f35 --- /dev/null +++ b/testcases/cli-test/lsscsi/oe_test_lsscsi_install_and_remove_lsscsi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lsscsi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lsscsi | grep -v \.src | grep lsscsi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lsscsi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lsscsi + CHECK_RESULT $? 0 0 "install lsscsi failed" + SLEEP_WAIT 1 + dnf remove -y lsscsi + CHECK_RESULT $? 0 0 "remove lsscsi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-debuginfo.sh b/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e55b380aa48eb397a1affefa40d37b72e1ad486e --- /dev/null +++ b/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lua +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lua-debuginfo | grep -v \.src | grep lua-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lua-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lua-debuginfo + CHECK_RESULT $? 0 0 "install lua-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lua-debuginfo + CHECK_RESULT $? 0 0 "remove lua-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-debugsource.sh b/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8943576f03bffa024424e9166e64a969054cb734 --- /dev/null +++ b/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lua +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lua-debugsource | grep -v \.src | grep lua-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lua-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lua-debugsource + CHECK_RESULT $? 0 0 "install lua-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lua-debugsource + CHECK_RESULT $? 0 0 "remove lua-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-devel.sh b/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..af9f231d2aeca0c4a807a3ca4f4369bc004b2574 --- /dev/null +++ b/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lua +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lua-devel | grep -v \.src | grep lua-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lua-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lua-devel + CHECK_RESULT $? 0 0 "install lua-devel failed" + SLEEP_WAIT 1 + dnf remove -y lua-devel + CHECK_RESULT $? 0 0 "remove lua-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-help.sh b/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca157799d17b2fdd79f39f7633ef8ce13a374448 --- /dev/null +++ b/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lua +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lua-help | grep -v \.src | grep lua-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lua-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lua-help + CHECK_RESULT $? 0 0 "install lua-help failed" + SLEEP_WAIT 1 + dnf remove -y lua-help + CHECK_RESULT $? 0 0 "remove lua-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua.sh b/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f03db251054cc65c65a1017818d102a334e632b --- /dev/null +++ b/testcases/cli-test/lua/oe_test_lua_install_and_remove_lua.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lua +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lua | grep -v \.src | grep lua + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lua" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lua + CHECK_RESULT $? 0 0 "install lua failed" + SLEEP_WAIT 1 + dnf remove -y lua + CHECK_RESULT $? 0 0 "remove lua failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_cmirror.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_cmirror.sh new file mode 100644 index 0000000000000000000000000000000000000000..8141a410b6860e095f4a636ab4987102087ee1bd --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_cmirror.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cmirror | grep -v \.src | grep cmirror + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cmirror" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cmirror + CHECK_RESULT $? 0 0 "install cmirror failed" + SLEEP_WAIT 1 + dnf remove -y cmirror + CHECK_RESULT $? 0 0 "remove cmirror failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_device-mapper-event.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_device-mapper-event.sh new file mode 100644 index 0000000000000000000000000000000000000000..a28b150f911368c60a9e395d12f322b3d6d150cf --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_device-mapper-event.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available device-mapper-event | grep -v \.src | grep device-mapper-event + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm device-mapper-event" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y device-mapper-event + CHECK_RESULT $? 0 0 "install device-mapper-event failed" + SLEEP_WAIT 1 + dnf remove -y device-mapper-event + CHECK_RESULT $? 0 0 "remove device-mapper-event failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_device-mapper.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_device-mapper.sh new file mode 100644 index 0000000000000000000000000000000000000000..145e3017d87a1efa95d1058819065add09884382 --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_device-mapper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available device-mapper | grep -v \.src | grep device-mapper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm device-mapper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y device-mapper + CHECK_RESULT $? 0 0 "install device-mapper failed" + SLEEP_WAIT 1 + dnf remove -y device-mapper + CHECK_RESULT $? 0 0 "remove device-mapper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-cluster.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-cluster.sh new file mode 100644 index 0000000000000000000000000000000000000000..def2055b0dd0dce60fd6d4e82f9f8260aaf274c3 --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-cluster.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lvm2-cluster | grep -v \.src | grep lvm2-cluster + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lvm2-cluster" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lvm2-cluster + CHECK_RESULT $? 0 0 "install lvm2-cluster failed" + SLEEP_WAIT 1 + dnf remove -y lvm2-cluster + CHECK_RESULT $? 0 0 "remove lvm2-cluster failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-dbusd.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-dbusd.sh new file mode 100644 index 0000000000000000000000000000000000000000..69d8034cbb4a3b5ac4415a8b30dbe494ec8ce2d6 --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-dbusd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lvm2-dbusd | grep -v \.src | grep lvm2-dbusd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lvm2-dbusd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lvm2-dbusd + CHECK_RESULT $? 0 0 "install lvm2-dbusd failed" + SLEEP_WAIT 1 + dnf remove -y lvm2-dbusd + CHECK_RESULT $? 0 0 "remove lvm2-dbusd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-debuginfo.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3c11ac991dabed180ef7a4bb8ca4f3ac5519b5c --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lvm2-debuginfo | grep -v \.src | grep lvm2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lvm2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lvm2-debuginfo + CHECK_RESULT $? 0 0 "install lvm2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lvm2-debuginfo + CHECK_RESULT $? 0 0 "remove lvm2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-debugsource.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ce549a42ad5f53ed814becb63bd62201911fafb --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lvm2-debugsource | grep -v \.src | grep lvm2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lvm2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lvm2-debugsource + CHECK_RESULT $? 0 0 "install lvm2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lvm2-debugsource + CHECK_RESULT $? 0 0 "remove lvm2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-devel.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a300a08608593d72a6ea5b46e9063f6f22147cc9 --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lvm2-devel | grep -v \.src | grep lvm2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lvm2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lvm2-devel + CHECK_RESULT $? 0 0 "install lvm2-devel failed" + SLEEP_WAIT 1 + dnf remove -y lvm2-devel + CHECK_RESULT $? 0 0 "remove lvm2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-help.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6560710a6f6a8b09f12fa360d06a1ae1b910a05 --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lvm2-help | grep -v \.src | grep lvm2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lvm2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lvm2-help + CHECK_RESULT $? 0 0 "install lvm2-help failed" + SLEEP_WAIT 1 + dnf remove -y lvm2-help + CHECK_RESULT $? 0 0 "remove lvm2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-lockd.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-lockd.sh new file mode 100644 index 0000000000000000000000000000000000000000..50b28aa57925366579e5b412b755530459c0bf03 --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-lockd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lvm2-lockd | grep -v \.src | grep lvm2-lockd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lvm2-lockd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lvm2-lockd + CHECK_RESULT $? 0 0 "install lvm2-lockd failed" + SLEEP_WAIT 1 + dnf remove -y lvm2-lockd + CHECK_RESULT $? 0 0 "remove lvm2-lockd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-test.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-test.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3e05de4ed143e79f1df144f029c10104cd8e084 --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2-test.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lvm2-test | grep -v \.src | grep lvm2-test + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lvm2-test" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lvm2-test + CHECK_RESULT $? 0 0 "install lvm2-test failed" + SLEEP_WAIT 1 + dnf remove -y lvm2-test + CHECK_RESULT $? 0 0 "remove lvm2-test failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a3bcaf4ae9f72e9d7aa3bdb309b2ce03f03485c --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_lvm2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lvm2 | grep -v \.src | grep lvm2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lvm2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lvm2 + CHECK_RESULT $? 0 0 "install lvm2 failed" + SLEEP_WAIT 1 + dnf remove -y lvm2 + CHECK_RESULT $? 0 0 "remove lvm2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_python3-lvm-deprecated.sh b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_python3-lvm-deprecated.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d21429bd1210097f33afe89d3a25eb059332f3b --- /dev/null +++ b/testcases/cli-test/lvm2/oe_test_lvm2_install_and_remove_python3-lvm-deprecated.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lvm2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-lvm-deprecated | grep -v \.src | grep python3-lvm-deprecated + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-lvm-deprecated" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-lvm-deprecated + CHECK_RESULT $? 0 0 "install python3-lvm-deprecated failed" + SLEEP_WAIT 1 + dnf remove -y python3-lvm-deprecated + CHECK_RESULT $? 0 0 "remove python3-lvm-deprecated failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx-debuginfo.sh b/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..663124581967d34cc8fe8d21bfc7c347a53ad906 --- /dev/null +++ b/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lynx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lynx-debuginfo | grep -v \.src | grep lynx-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lynx-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lynx-debuginfo + CHECK_RESULT $? 0 0 "install lynx-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lynx-debuginfo + CHECK_RESULT $? 0 0 "remove lynx-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx-debugsource.sh b/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..30df99c2a84e24648025e27a916fedacd2a4ffe5 --- /dev/null +++ b/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lynx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lynx-debugsource | grep -v \.src | grep lynx-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lynx-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lynx-debugsource + CHECK_RESULT $? 0 0 "install lynx-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lynx-debugsource + CHECK_RESULT $? 0 0 "remove lynx-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx-help.sh b/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..19b2fa03e0c0d9e539cda5462a0494c392390710 --- /dev/null +++ b/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lynx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lynx-help | grep -v \.src | grep lynx-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lynx-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lynx-help + CHECK_RESULT $? 0 0 "install lynx-help failed" + SLEEP_WAIT 1 + dnf remove -y lynx-help + CHECK_RESULT $? 0 0 "remove lynx-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx.sh b/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx.sh new file mode 100644 index 0000000000000000000000000000000000000000..773b632822e4ef92e51969541642c8fc7aa07750 --- /dev/null +++ b/testcases/cli-test/lynx/oe_test_lynx_install_and_remove_lynx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lynx +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lynx | grep -v \.src | grep lynx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lynx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lynx + CHECK_RESULT $? 0 0 "install lynx failed" + SLEEP_WAIT 1 + dnf remove -y lynx + CHECK_RESULT $? 0 0 "remove lynx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-debuginfo.sh b/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..091c5abb0c8fc5c67ba420b5b6236a0a1e713eac --- /dev/null +++ b/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lz4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lz4-debuginfo | grep -v \.src | grep lz4-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lz4-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lz4-debuginfo + CHECK_RESULT $? 0 0 "install lz4-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lz4-debuginfo + CHECK_RESULT $? 0 0 "remove lz4-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-debugsource.sh b/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfeb01c744330b4964f5efb7bd77e2b052eaf2bd --- /dev/null +++ b/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lz4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lz4-debugsource | grep -v \.src | grep lz4-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lz4-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lz4-debugsource + CHECK_RESULT $? 0 0 "install lz4-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lz4-debugsource + CHECK_RESULT $? 0 0 "remove lz4-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-devel.sh b/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd596338595b5c5277c58a0a3b6e00be5d4ac270 --- /dev/null +++ b/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lz4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lz4-devel | grep -v \.src | grep lz4-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lz4-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lz4-devel + CHECK_RESULT $? 0 0 "install lz4-devel failed" + SLEEP_WAIT 1 + dnf remove -y lz4-devel + CHECK_RESULT $? 0 0 "remove lz4-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-help.sh b/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9191c8e897581f6f51af3cacd28ecabacf14621c --- /dev/null +++ b/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lz4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lz4-help | grep -v \.src | grep lz4-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lz4-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lz4-help + CHECK_RESULT $? 0 0 "install lz4-help failed" + SLEEP_WAIT 1 + dnf remove -y lz4-help + CHECK_RESULT $? 0 0 "remove lz4-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4.sh b/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0ae83a6ba809b909265eeb9e750cb2a143a41f0 --- /dev/null +++ b/testcases/cli-test/lz4/oe_test_lz4_install_and_remove_lz4.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lz4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lz4 | grep -v \.src | grep lz4 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lz4" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lz4 + CHECK_RESULT $? 0 0 "install lz4 failed" + SLEEP_WAIT 1 + dnf remove -y lz4 + CHECK_RESULT $? 0 0 "remove lz4 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-debuginfo.sh b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..16578cf3e54341a460618f054da7485dd880726c --- /dev/null +++ b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lzo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lzo-debuginfo | grep -v \.src | grep lzo-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lzo-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lzo-debuginfo + CHECK_RESULT $? 0 0 "install lzo-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y lzo-debuginfo + CHECK_RESULT $? 0 0 "remove lzo-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-debugsource.sh b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..78a4da3b246c09ea46f7abe6ddee06c3df6bd018 --- /dev/null +++ b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lzo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lzo-debugsource | grep -v \.src | grep lzo-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lzo-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lzo-debugsource + CHECK_RESULT $? 0 0 "install lzo-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y lzo-debugsource + CHECK_RESULT $? 0 0 "remove lzo-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-devel.sh b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..42b671ff0afedcb7df7f95ddc072eadbc7d2b6cb --- /dev/null +++ b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lzo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lzo-devel | grep -v \.src | grep lzo-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lzo-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lzo-devel + CHECK_RESULT $? 0 0 "install lzo-devel failed" + SLEEP_WAIT 1 + dnf remove -y lzo-devel + CHECK_RESULT $? 0 0 "remove lzo-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-doc.sh b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c82a836b6000ba67659ad21ee69d94675d3379c4 --- /dev/null +++ b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lzo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lzo-doc | grep -v \.src | grep lzo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lzo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lzo-doc + CHECK_RESULT $? 0 0 "install lzo-doc failed" + SLEEP_WAIT 1 + dnf remove -y lzo-doc + CHECK_RESULT $? 0 0 "remove lzo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-help.sh b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bdf9e11e2ff05fd3e681984623026ea610802ffe --- /dev/null +++ b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lzo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lzo-help | grep -v \.src | grep lzo-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lzo-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lzo-help + CHECK_RESULT $? 0 0 "install lzo-help failed" + SLEEP_WAIT 1 + dnf remove -y lzo-help + CHECK_RESULT $? 0 0 "remove lzo-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-minilzo.sh b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-minilzo.sh new file mode 100644 index 0000000000000000000000000000000000000000..de3051ba3cf104433a93b093e539fb746cd3612a --- /dev/null +++ b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo-minilzo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lzo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lzo-minilzo | grep -v \.src | grep lzo-minilzo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lzo-minilzo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lzo-minilzo + CHECK_RESULT $? 0 0 "install lzo-minilzo failed" + SLEEP_WAIT 1 + dnf remove -y lzo-minilzo + CHECK_RESULT $? 0 0 "remove lzo-minilzo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo.sh b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo.sh new file mode 100644 index 0000000000000000000000000000000000000000..23ac4456f1a240e24e776f179fcf9c588f28a0c9 --- /dev/null +++ b/testcases/cli-test/lzo/oe_test_lzo_install_and_remove_lzo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src lzo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available lzo | grep -v \.src | grep lzo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm lzo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y lzo + CHECK_RESULT $? 0 0 "install lzo failed" + SLEEP_WAIT 1 + dnf remove -y lzo + CHECK_RESULT $? 0 0 "remove lzo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m17n-db/oe_test_m17n-db_install_and_remove_m17n-db-devel.sh b/testcases/cli-test/m17n-db/oe_test_m17n-db_install_and_remove_m17n-db-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f112493491af810ba445d8731df3fa906643aa22 --- /dev/null +++ b/testcases/cli-test/m17n-db/oe_test_m17n-db_install_and_remove_m17n-db-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m17n-db +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m17n-db-devel | grep -v \.src | grep m17n-db-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m17n-db-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m17n-db-devel + CHECK_RESULT $? 0 0 "install m17n-db-devel failed" + SLEEP_WAIT 1 + dnf remove -y m17n-db-devel + CHECK_RESULT $? 0 0 "remove m17n-db-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m17n-db/oe_test_m17n-db_install_and_remove_m17n-db-extras.sh b/testcases/cli-test/m17n-db/oe_test_m17n-db_install_and_remove_m17n-db-extras.sh new file mode 100644 index 0000000000000000000000000000000000000000..7071fe03a65f599142047d1bbb13988cf195d98c --- /dev/null +++ b/testcases/cli-test/m17n-db/oe_test_m17n-db_install_and_remove_m17n-db-extras.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m17n-db +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m17n-db-extras | grep -v \.src | grep m17n-db-extras + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m17n-db-extras" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m17n-db-extras + CHECK_RESULT $? 0 0 "install m17n-db-extras failed" + SLEEP_WAIT 1 + dnf remove -y m17n-db-extras + CHECK_RESULT $? 0 0 "remove m17n-db-extras failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m17n-db/oe_test_m17n-db_install_and_remove_m17n-db.sh b/testcases/cli-test/m17n-db/oe_test_m17n-db_install_and_remove_m17n-db.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c37a70cdf7b4f53c0cd223961e24364334aef41 --- /dev/null +++ b/testcases/cli-test/m17n-db/oe_test_m17n-db_install_and_remove_m17n-db.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m17n-db +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m17n-db | grep -v \.src | grep m17n-db + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m17n-db" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m17n-db + CHECK_RESULT $? 0 0 "install m17n-db failed" + SLEEP_WAIT 1 + dnf remove -y m17n-db + CHECK_RESULT $? 0 0 "remove m17n-db failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-debuginfo.sh b/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e63d88c71a06c9c38f56b4ff33edddbacd655c2c --- /dev/null +++ b/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m17n-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m17n-lib-debuginfo | grep -v \.src | grep m17n-lib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m17n-lib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m17n-lib-debuginfo + CHECK_RESULT $? 0 0 "install m17n-lib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y m17n-lib-debuginfo + CHECK_RESULT $? 0 0 "remove m17n-lib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-debugsource.sh b/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e3be06ae86b4e98cde741bfb61ea3fe40da161c --- /dev/null +++ b/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m17n-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m17n-lib-debugsource | grep -v \.src | grep m17n-lib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m17n-lib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m17n-lib-debugsource + CHECK_RESULT $? 0 0 "install m17n-lib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y m17n-lib-debugsource + CHECK_RESULT $? 0 0 "remove m17n-lib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-devel.sh b/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..26b83348e80688b3c81891b01bcd51208a6693f8 --- /dev/null +++ b/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m17n-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m17n-lib-devel | grep -v \.src | grep m17n-lib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m17n-lib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m17n-lib-devel + CHECK_RESULT $? 0 0 "install m17n-lib-devel failed" + SLEEP_WAIT 1 + dnf remove -y m17n-lib-devel + CHECK_RESULT $? 0 0 "remove m17n-lib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-tools.sh b/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..1018bc25290ff9c51a54abb47e67be1584f396eb --- /dev/null +++ b/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m17n-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m17n-lib-tools | grep -v \.src | grep m17n-lib-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m17n-lib-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m17n-lib-tools + CHECK_RESULT $? 0 0 "install m17n-lib-tools failed" + SLEEP_WAIT 1 + dnf remove -y m17n-lib-tools + CHECK_RESULT $? 0 0 "remove m17n-lib-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib.sh b/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib.sh new file mode 100644 index 0000000000000000000000000000000000000000..00bb1a9b5863e4f419a527e1455342e0b6420fe7 --- /dev/null +++ b/testcases/cli-test/m17n-lib/oe_test_m17n-lib_install_and_remove_m17n-lib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m17n-lib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m17n-lib | grep -v \.src | grep m17n-lib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m17n-lib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m17n-lib + CHECK_RESULT $? 0 0 "install m17n-lib failed" + SLEEP_WAIT 1 + dnf remove -y m17n-lib + CHECK_RESULT $? 0 0 "remove m17n-lib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-debuginfo.sh b/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e11a3213b163916a3d92df42ba398d5dcae3c961 --- /dev/null +++ b/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m4-debuginfo | grep -v \.src | grep m4-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m4-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m4-debuginfo + CHECK_RESULT $? 0 0 "install m4-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y m4-debuginfo + CHECK_RESULT $? 0 0 "remove m4-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-debugsource.sh b/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac5fc5cc7cad71a68572911b792327b4bdf95631 --- /dev/null +++ b/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m4-debugsource | grep -v \.src | grep m4-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m4-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m4-debugsource + CHECK_RESULT $? 0 0 "install m4-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y m4-debugsource + CHECK_RESULT $? 0 0 "remove m4-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-doc.sh b/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6b5e826f2159ed9713f428d02f4c10b9c1b7673 --- /dev/null +++ b/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m4-doc | grep -v \.src | grep m4-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m4-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m4-doc + CHECK_RESULT $? 0 0 "install m4-doc failed" + SLEEP_WAIT 1 + dnf remove -y m4-doc + CHECK_RESULT $? 0 0 "remove m4-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-help.sh b/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6eb77574a9d55e89cadf742fcdad0d3c5a566ba3 --- /dev/null +++ b/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m4-help | grep -v \.src | grep m4-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m4-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m4-help + CHECK_RESULT $? 0 0 "install m4-help failed" + SLEEP_WAIT 1 + dnf remove -y m4-help + CHECK_RESULT $? 0 0 "remove m4-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4.sh b/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4.sh new file mode 100644 index 0000000000000000000000000000000000000000..20060f2a6fab1ca320f487f1cd9b93ef1178c379 --- /dev/null +++ b/testcases/cli-test/m4/oe_test_m4_install_and_remove_m4.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src m4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available m4 | grep -v \.src | grep m4 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm m4" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y m4 + CHECK_RESULT $? 0 0 "install m4 failed" + SLEEP_WAIT 1 + dnf remove -y m4 + CHECK_RESULT $? 0 0 "remove m4 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/make/oe_test_make_install_and_remove_make-debuginfo.sh b/testcases/cli-test/make/oe_test_make_install_and_remove_make-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a58914c37c4efd14a4e0bb82b4d705005e6210c7 --- /dev/null +++ b/testcases/cli-test/make/oe_test_make_install_and_remove_make-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src make +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available make-debuginfo | grep -v \.src | grep make-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm make-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y make-debuginfo + CHECK_RESULT $? 0 0 "install make-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y make-debuginfo + CHECK_RESULT $? 0 0 "remove make-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/make/oe_test_make_install_and_remove_make-debugsource.sh b/testcases/cli-test/make/oe_test_make_install_and_remove_make-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..29db49ecab3e709fffd8bf2ed0a3bbd9a9a4e578 --- /dev/null +++ b/testcases/cli-test/make/oe_test_make_install_and_remove_make-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src make +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available make-debugsource | grep -v \.src | grep make-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm make-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y make-debugsource + CHECK_RESULT $? 0 0 "install make-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y make-debugsource + CHECK_RESULT $? 0 0 "remove make-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/make/oe_test_make_install_and_remove_make-devel.sh b/testcases/cli-test/make/oe_test_make_install_and_remove_make-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7c920f981950ec71bdcf63e3420019b75e59bf5 --- /dev/null +++ b/testcases/cli-test/make/oe_test_make_install_and_remove_make-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src make +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available make-devel | grep -v \.src | grep make-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm make-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y make-devel + CHECK_RESULT $? 0 0 "install make-devel failed" + SLEEP_WAIT 1 + dnf remove -y make-devel + CHECK_RESULT $? 0 0 "remove make-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/make/oe_test_make_install_and_remove_make-help.sh b/testcases/cli-test/make/oe_test_make_install_and_remove_make-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..01126518fb967166273f2bdaf6f5ccef2dd64850 --- /dev/null +++ b/testcases/cli-test/make/oe_test_make_install_and_remove_make-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src make +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available make-help | grep -v \.src | grep make-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm make-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y make-help + CHECK_RESULT $? 0 0 "install make-help failed" + SLEEP_WAIT 1 + dnf remove -y make-help + CHECK_RESULT $? 0 0 "remove make-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/make/oe_test_make_install_and_remove_make.sh b/testcases/cli-test/make/oe_test_make_install_and_remove_make.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d7dd1a16a636a60e08cd8559dbdce570d146d3a --- /dev/null +++ b/testcases/cli-test/make/oe_test_make_install_and_remove_make.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src make +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available make | grep -v \.src | grep make + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm make" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y make + CHECK_RESULT $? 0 0 "install make failed" + SLEEP_WAIT 1 + dnf remove -y make + CHECK_RESULT $? 0 0 "remove make failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/man-db/oe_test_man-db_install_and_remove_man-db-debuginfo.sh b/testcases/cli-test/man-db/oe_test_man-db_install_and_remove_man-db-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4a98ec7155fb4b23b25c07a8be6d2c961cce393 --- /dev/null +++ b/testcases/cli-test/man-db/oe_test_man-db_install_and_remove_man-db-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src man-db +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available man-db-debuginfo | grep -v \.src | grep man-db-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm man-db-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y man-db-debuginfo + CHECK_RESULT $? 0 0 "install man-db-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y man-db-debuginfo + CHECK_RESULT $? 0 0 "remove man-db-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/man-db/oe_test_man-db_install_and_remove_man-db-debugsource.sh b/testcases/cli-test/man-db/oe_test_man-db_install_and_remove_man-db-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc710205293ba9a71c426b2b8d9e233fb388c23b --- /dev/null +++ b/testcases/cli-test/man-db/oe_test_man-db_install_and_remove_man-db-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src man-db +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available man-db-debugsource | grep -v \.src | grep man-db-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm man-db-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y man-db-debugsource + CHECK_RESULT $? 0 0 "install man-db-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y man-db-debugsource + CHECK_RESULT $? 0 0 "remove man-db-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/man-db/oe_test_man-db_install_and_remove_man-db.sh b/testcases/cli-test/man-db/oe_test_man-db_install_and_remove_man-db.sh new file mode 100644 index 0000000000000000000000000000000000000000..bae54f098e94c1d27a9cc59737dafefc1a349e05 --- /dev/null +++ b/testcases/cli-test/man-db/oe_test_man-db_install_and_remove_man-db.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src man-db +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available man-db | grep -v \.src | grep man-db + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm man-db" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y man-db + CHECK_RESULT $? 0 0 "install man-db failed" + SLEEP_WAIT 1 + dnf remove -y man-db + CHECK_RESULT $? 0 0 "remove man-db failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_libmandoc-devel.sh b/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_libmandoc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1b6be967797f849e7a36e0128adc9bb9d188590 --- /dev/null +++ b/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_libmandoc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mandoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmandoc-devel | grep -v \.src | grep libmandoc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmandoc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmandoc-devel + CHECK_RESULT $? 0 0 "install libmandoc-devel failed" + SLEEP_WAIT 1 + dnf remove -y libmandoc-devel + CHECK_RESULT $? 0 0 "remove libmandoc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_mandoc-debuginfo.sh b/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_mandoc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..94ee58d5c99710e622890d91980b27446acb4824 --- /dev/null +++ b/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_mandoc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mandoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mandoc-debuginfo | grep -v \.src | grep mandoc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mandoc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mandoc-debuginfo + CHECK_RESULT $? 0 0 "install mandoc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mandoc-debuginfo + CHECK_RESULT $? 0 0 "remove mandoc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_mandoc-debugsource.sh b/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_mandoc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..276ea56e7beb3651f756ea8847964d650f6cd189 --- /dev/null +++ b/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_mandoc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mandoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mandoc-debugsource | grep -v \.src | grep mandoc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mandoc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mandoc-debugsource + CHECK_RESULT $? 0 0 "install mandoc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mandoc-debugsource + CHECK_RESULT $? 0 0 "remove mandoc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_mandoc.sh b/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_mandoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c8dcf2ccea7408d5129f521b21be9f606d32605 --- /dev/null +++ b/testcases/cli-test/mandoc/oe_test_mandoc_install_and_remove_mandoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mandoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mandoc | grep -v \.src | grep mandoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mandoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mandoc + CHECK_RESULT $? 0 0 "install mandoc failed" + SLEEP_WAIT 1 + dnf remove -y mandoc + CHECK_RESULT $? 0 0 "remove mandoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-debuginfo.sh b/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a43519e3f7366b9b390f341cfddae8fc5721c11 --- /dev/null +++ b/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mariadb-connector-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mariadb-connector-c-debuginfo | grep -v \.src | grep mariadb-connector-c-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mariadb-connector-c-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mariadb-connector-c-debuginfo + CHECK_RESULT $? 0 0 "install mariadb-connector-c-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mariadb-connector-c-debuginfo + CHECK_RESULT $? 0 0 "remove mariadb-connector-c-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-debugsource.sh b/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebdb1acc6aa5692dad3ec5c45215723600df6fa1 --- /dev/null +++ b/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mariadb-connector-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mariadb-connector-c-debugsource | grep -v \.src | grep mariadb-connector-c-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mariadb-connector-c-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mariadb-connector-c-debugsource + CHECK_RESULT $? 0 0 "install mariadb-connector-c-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mariadb-connector-c-debugsource + CHECK_RESULT $? 0 0 "remove mariadb-connector-c-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-devel.sh b/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d42dd603c326cb41f6b3f481aa4583e86563a10a --- /dev/null +++ b/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mariadb-connector-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mariadb-connector-c-devel | grep -v \.src | grep mariadb-connector-c-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mariadb-connector-c-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mariadb-connector-c-devel + CHECK_RESULT $? 0 0 "install mariadb-connector-c-devel failed" + SLEEP_WAIT 1 + dnf remove -y mariadb-connector-c-devel + CHECK_RESULT $? 0 0 "remove mariadb-connector-c-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c.sh b/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c.sh new file mode 100644 index 0000000000000000000000000000000000000000..66c7e7d75595aac6f0c3f69107135c79a43ea675 --- /dev/null +++ b/testcases/cli-test/mariadb-connector-c/oe_test_mariadb-connector-c_install_and_remove_mariadb-connector-c.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mariadb-connector-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mariadb-connector-c | grep -v \.src | grep mariadb-connector-c + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mariadb-connector-c" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mariadb-connector-c + CHECK_RESULT $? 0 0 "install mariadb-connector-c failed" + SLEEP_WAIT 1 + dnf remove -y mariadb-connector-c + CHECK_RESULT $? 0 0 "remove mariadb-connector-c failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-api.sh b/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-api.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e24590e071481c748363f9dd4e46a5293ba94c1 --- /dev/null +++ b/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-api.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src maven-enforcer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available maven-enforcer-api | grep -v \.src | grep maven-enforcer-api + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm maven-enforcer-api" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y maven-enforcer-api + CHECK_RESULT $? 0 0 "install maven-enforcer-api failed" + SLEEP_WAIT 1 + dnf remove -y maven-enforcer-api + CHECK_RESULT $? 0 0 "remove maven-enforcer-api failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-help.sh b/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..647213e50989008019bc82805ca2fe78f4697245 --- /dev/null +++ b/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src maven-enforcer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available maven-enforcer-help | grep -v \.src | grep maven-enforcer-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm maven-enforcer-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y maven-enforcer-help + CHECK_RESULT $? 0 0 "install maven-enforcer-help failed" + SLEEP_WAIT 1 + dnf remove -y maven-enforcer-help + CHECK_RESULT $? 0 0 "remove maven-enforcer-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-plugin.sh b/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-plugin.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0ac070ba4c1b46326346307f300c4b0459525ad --- /dev/null +++ b/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-plugin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src maven-enforcer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available maven-enforcer-plugin | grep -v \.src | grep maven-enforcer-plugin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm maven-enforcer-plugin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y maven-enforcer-plugin + CHECK_RESULT $? 0 0 "install maven-enforcer-plugin failed" + SLEEP_WAIT 1 + dnf remove -y maven-enforcer-plugin + CHECK_RESULT $? 0 0 "remove maven-enforcer-plugin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-rules.sh b/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-rules.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e4a0f472a40ac2e0059cc90443ba551868f471e --- /dev/null +++ b/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer-rules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src maven-enforcer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available maven-enforcer-rules | grep -v \.src | grep maven-enforcer-rules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm maven-enforcer-rules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y maven-enforcer-rules + CHECK_RESULT $? 0 0 "install maven-enforcer-rules failed" + SLEEP_WAIT 1 + dnf remove -y maven-enforcer-rules + CHECK_RESULT $? 0 0 "remove maven-enforcer-rules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer.sh b/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer.sh new file mode 100644 index 0000000000000000000000000000000000000000..56091ce2950721f9e74292f0597ef5a5454a1d99 --- /dev/null +++ b/testcases/cli-test/maven-enforcer/oe_test_maven-enforcer_install_and_remove_maven-enforcer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src maven-enforcer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available maven-enforcer | grep -v \.src | grep maven-enforcer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm maven-enforcer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y maven-enforcer + CHECK_RESULT $? 0 0 "install maven-enforcer failed" + SLEEP_WAIT 1 + dnf remove -y maven-enforcer + CHECK_RESULT $? 0 0 "remove maven-enforcer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/maven-plugin-bundle/oe_test_maven-plugin-bundle_install_and_remove_maven-plugin-bundle-help.sh b/testcases/cli-test/maven-plugin-bundle/oe_test_maven-plugin-bundle_install_and_remove_maven-plugin-bundle-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..136d868aa4a419abb5dea2ce5786bc5ec3a5f327 --- /dev/null +++ b/testcases/cli-test/maven-plugin-bundle/oe_test_maven-plugin-bundle_install_and_remove_maven-plugin-bundle-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src maven-plugin-bundle +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available maven-plugin-bundle-help | grep -v \.src | grep maven-plugin-bundle-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm maven-plugin-bundle-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y maven-plugin-bundle-help + CHECK_RESULT $? 0 0 "install maven-plugin-bundle-help failed" + SLEEP_WAIT 1 + dnf remove -y maven-plugin-bundle-help + CHECK_RESULT $? 0 0 "remove maven-plugin-bundle-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/maven-plugin-bundle/oe_test_maven-plugin-bundle_install_and_remove_maven-plugin-bundle.sh b/testcases/cli-test/maven-plugin-bundle/oe_test_maven-plugin-bundle_install_and_remove_maven-plugin-bundle.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9947b0af44c7224c94192c7d4eb04630bb4ee16 --- /dev/null +++ b/testcases/cli-test/maven-plugin-bundle/oe_test_maven-plugin-bundle_install_and_remove_maven-plugin-bundle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src maven-plugin-bundle +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available maven-plugin-bundle | grep -v \.src | grep maven-plugin-bundle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm maven-plugin-bundle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y maven-plugin-bundle + CHECK_RESULT $? 0 0 "install maven-plugin-bundle failed" + SLEEP_WAIT 1 + dnf remove -y maven-plugin-bundle + CHECK_RESULT $? 0 0 "remove maven-plugin-bundle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/maven-source-plugin/oe_test_maven-source-plugin_install_and_remove_maven-source-plugin-help.sh b/testcases/cli-test/maven-source-plugin/oe_test_maven-source-plugin_install_and_remove_maven-source-plugin-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..69aa3188aa415e64429984a26d534c143c1662d0 --- /dev/null +++ b/testcases/cli-test/maven-source-plugin/oe_test_maven-source-plugin_install_and_remove_maven-source-plugin-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src maven-source-plugin +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available maven-source-plugin-help | grep -v \.src | grep maven-source-plugin-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm maven-source-plugin-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y maven-source-plugin-help + CHECK_RESULT $? 0 0 "install maven-source-plugin-help failed" + SLEEP_WAIT 1 + dnf remove -y maven-source-plugin-help + CHECK_RESULT $? 0 0 "remove maven-source-plugin-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/maven-source-plugin/oe_test_maven-source-plugin_install_and_remove_maven-source-plugin.sh b/testcases/cli-test/maven-source-plugin/oe_test_maven-source-plugin_install_and_remove_maven-source-plugin.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3adfc0bef3cf60a46c45c3be59ff4a1a5815cf7 --- /dev/null +++ b/testcases/cli-test/maven-source-plugin/oe_test_maven-source-plugin_install_and_remove_maven-source-plugin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src maven-source-plugin +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available maven-source-plugin | grep -v \.src | grep maven-source-plugin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm maven-source-plugin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y maven-source-plugin + CHECK_RESULT $? 0 0 "install maven-source-plugin failed" + SLEEP_WAIT 1 + dnf remove -y maven-source-plugin + CHECK_RESULT $? 0 0 "remove maven-source-plugin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-debuginfo.sh b/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..27bcb18c768cf2e26d25d8215cbcece405b574d9 --- /dev/null +++ b/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mcpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mcpp-debuginfo | grep -v \.src | grep mcpp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mcpp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mcpp-debuginfo + CHECK_RESULT $? 0 0 "install mcpp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mcpp-debuginfo + CHECK_RESULT $? 0 0 "remove mcpp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-debugsource.sh b/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf3f9d0553737181656748edca3a177b3201d57c --- /dev/null +++ b/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mcpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mcpp-debugsource | grep -v \.src | grep mcpp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mcpp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mcpp-debugsource + CHECK_RESULT $? 0 0 "install mcpp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mcpp-debugsource + CHECK_RESULT $? 0 0 "remove mcpp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-devel.sh b/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5402afc27b326127fcee6346666adf2a51ae8ab --- /dev/null +++ b/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mcpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mcpp-devel | grep -v \.src | grep mcpp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mcpp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mcpp-devel + CHECK_RESULT $? 0 0 "install mcpp-devel failed" + SLEEP_WAIT 1 + dnf remove -y mcpp-devel + CHECK_RESULT $? 0 0 "remove mcpp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-help.sh b/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f359947a4e0f10848a1e4db9a643a96f3341d09 --- /dev/null +++ b/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mcpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mcpp-help | grep -v \.src | grep mcpp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mcpp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mcpp-help + CHECK_RESULT $? 0 0 "install mcpp-help failed" + SLEEP_WAIT 1 + dnf remove -y mcpp-help + CHECK_RESULT $? 0 0 "remove mcpp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp.sh b/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8c3eba0705ad2d72ef24c00f5a4fc14dfdd7572 --- /dev/null +++ b/testcases/cli-test/mcpp/oe_test_mcpp_install_and_remove_mcpp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mcpp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mcpp | grep -v \.src | grep mcpp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mcpp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mcpp + CHECK_RESULT $? 0 0 "install mcpp failed" + SLEEP_WAIT 1 + dnf remove -y mcpp + CHECK_RESULT $? 0 0 "remove mcpp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm-debuginfo.sh b/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..67468d965c01ebfb69b9f63c7b70e0abebd84ea2 --- /dev/null +++ b/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mdadm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mdadm-debuginfo | grep -v \.src | grep mdadm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mdadm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mdadm-debuginfo + CHECK_RESULT $? 0 0 "install mdadm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mdadm-debuginfo + CHECK_RESULT $? 0 0 "remove mdadm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm-debugsource.sh b/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..448eca2abfedb44cc8002b2b188376c071a24158 --- /dev/null +++ b/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mdadm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mdadm-debugsource | grep -v \.src | grep mdadm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mdadm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mdadm-debugsource + CHECK_RESULT $? 0 0 "install mdadm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mdadm-debugsource + CHECK_RESULT $? 0 0 "remove mdadm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm-help.sh b/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9bcfcd802f0479cb77f966d7d78fa60e79185720 --- /dev/null +++ b/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mdadm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mdadm-help | grep -v \.src | grep mdadm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mdadm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mdadm-help + CHECK_RESULT $? 0 0 "install mdadm-help failed" + SLEEP_WAIT 1 + dnf remove -y mdadm-help + CHECK_RESULT $? 0 0 "remove mdadm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm.sh b/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm.sh new file mode 100644 index 0000000000000000000000000000000000000000..277c82734e4ed260769f22c2182bb7f9cf4fad07 --- /dev/null +++ b/testcases/cli-test/mdadm/oe_test_mdadm_install_and_remove_mdadm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mdadm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mdadm | grep -v \.src | grep mdadm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mdadm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mdadm + CHECK_RESULT $? 0 0 "install mdadm failed" + SLEEP_WAIT 1 + dnf remove -y mdadm + CHECK_RESULT $? 0 0 "remove mdadm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos-debuginfo.sh b/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..38d4c63b8359dcb64c97904a1a9f928a9d558583 --- /dev/null +++ b/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa-demos +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-demos-debuginfo | grep -v \.src | grep mesa-demos-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-demos-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-demos-debuginfo + CHECK_RESULT $? 0 0 "install mesa-demos-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mesa-demos-debuginfo + CHECK_RESULT $? 0 0 "remove mesa-demos-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos-debugsource.sh b/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a6b2f3e6ddc8006541c6fe20e58ec68ccf83840 --- /dev/null +++ b/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa-demos +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-demos-debugsource | grep -v \.src | grep mesa-demos-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-demos-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-demos-debugsource + CHECK_RESULT $? 0 0 "install mesa-demos-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mesa-demos-debugsource + CHECK_RESULT $? 0 0 "remove mesa-demos-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos-help.sh b/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..506e0b32a2eb14415b5a2e61494739e4c33e50e6 --- /dev/null +++ b/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa-demos +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-demos-help | grep -v \.src | grep mesa-demos-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-demos-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-demos-help + CHECK_RESULT $? 0 0 "install mesa-demos-help failed" + SLEEP_WAIT 1 + dnf remove -y mesa-demos-help + CHECK_RESULT $? 0 0 "remove mesa-demos-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos.sh b/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos.sh new file mode 100644 index 0000000000000000000000000000000000000000..b69385b8e07ce4e77e0a589ca3429d7f97782364 --- /dev/null +++ b/testcases/cli-test/mesa-demos/oe_test_mesa-demos_install_and_remove_mesa-demos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa-demos +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-demos | grep -v \.src | grep mesa-demos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-demos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-demos + CHECK_RESULT $? 0 0 "install mesa-demos failed" + SLEEP_WAIT 1 + dnf remove -y mesa-demos + CHECK_RESULT $? 0 0 "remove mesa-demos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-debuginfo.sh b/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7e93393826cf4d51b9fbec1a001582cddec8630 --- /dev/null +++ b/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa-libGLU +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libGLU-debuginfo | grep -v \.src | grep mesa-libGLU-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libGLU-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libGLU-debuginfo + CHECK_RESULT $? 0 0 "install mesa-libGLU-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libGLU-debuginfo + CHECK_RESULT $? 0 0 "remove mesa-libGLU-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-debugsource.sh b/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ddf97ec3a65a03a026866a137ba04ee33867614 --- /dev/null +++ b/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa-libGLU +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libGLU-debugsource | grep -v \.src | grep mesa-libGLU-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libGLU-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libGLU-debugsource + CHECK_RESULT $? 0 0 "install mesa-libGLU-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libGLU-debugsource + CHECK_RESULT $? 0 0 "remove mesa-libGLU-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-devel.sh b/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..105c049de77feedf65d424b3ee01be9d23ea52f3 --- /dev/null +++ b/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa-libGLU +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libGLU-devel | grep -v \.src | grep mesa-libGLU-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libGLU-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libGLU-devel + CHECK_RESULT $? 0 0 "install mesa-libGLU-devel failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libGLU-devel + CHECK_RESULT $? 0 0 "remove mesa-libGLU-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU.sh b/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU.sh new file mode 100644 index 0000000000000000000000000000000000000000..2831b73b66ce5b5a3ef09427d3679140da3e5546 --- /dev/null +++ b/testcases/cli-test/mesa-libGLU/oe_test_mesa-libGLU_install_and_remove_mesa-libGLU.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa-libGLU +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libGLU | grep -v \.src | grep mesa-libGLU + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libGLU" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libGLU + CHECK_RESULT $? 0 0 "install mesa-libGLU failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libGLU + CHECK_RESULT $? 0 0 "remove mesa-libGLU failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-debuginfo.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..84287cba8c2c4f1661e333d4a9b020813a432a9d --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-debuginfo | grep -v \.src | grep mesa-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-debuginfo + CHECK_RESULT $? 0 0 "install mesa-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mesa-debuginfo + CHECK_RESULT $? 0 0 "remove mesa-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-debugsource.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..42034de401a1228e83b8d40ae359efc0be3c4022 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-debugsource | grep -v \.src | grep mesa-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-debugsource + CHECK_RESULT $? 0 0 "install mesa-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mesa-debugsource + CHECK_RESULT $? 0 0 "remove mesa-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-dri-drivers.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-dri-drivers.sh new file mode 100644 index 0000000000000000000000000000000000000000..34f16cf5c926926f524b0ef17353c53809b70921 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-dri-drivers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-dri-drivers | grep -v \.src | grep mesa-dri-drivers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-dri-drivers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-dri-drivers + CHECK_RESULT $? 0 0 "install mesa-dri-drivers failed" + SLEEP_WAIT 1 + dnf remove -y mesa-dri-drivers + CHECK_RESULT $? 0 0 "remove mesa-dri-drivers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-filesystem.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..365209234fc6eba4721a22e129040ef5105b715a --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-filesystem | grep -v \.src | grep mesa-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-filesystem + CHECK_RESULT $? 0 0 "install mesa-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y mesa-filesystem + CHECK_RESULT $? 0 0 "remove mesa-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-khr-devel.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-khr-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a88cc10cfe1bf319f6e54fadde0e671b5f547df --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-khr-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-khr-devel | grep -v \.src | grep mesa-khr-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-khr-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-khr-devel + CHECK_RESULT $? 0 0 "install mesa-khr-devel failed" + SLEEP_WAIT 1 + dnf remove -y mesa-khr-devel + CHECK_RESULT $? 0 0 "remove mesa-khr-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libEGL-devel.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libEGL-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6dd4bd34ba67d211ee051d731307f842419be10f --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libEGL-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libEGL-devel | grep -v \.src | grep mesa-libEGL-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libEGL-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libEGL-devel + CHECK_RESULT $? 0 0 "install mesa-libEGL-devel failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libEGL-devel + CHECK_RESULT $? 0 0 "remove mesa-libEGL-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libEGL.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libEGL.sh new file mode 100644 index 0000000000000000000000000000000000000000..df6441c9125379a486b702a949307fefee9d80ac --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libEGL.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libEGL | grep -v \.src | grep mesa-libEGL + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libEGL" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libEGL + CHECK_RESULT $? 0 0 "install mesa-libEGL failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libEGL + CHECK_RESULT $? 0 0 "remove mesa-libEGL failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGL-devel.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGL-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd203e38f7d6b96fbe157f5ee514c63b14a45056 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGL-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libGL-devel | grep -v \.src | grep mesa-libGL-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libGL-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libGL-devel + CHECK_RESULT $? 0 0 "install mesa-libGL-devel failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libGL-devel + CHECK_RESULT $? 0 0 "remove mesa-libGL-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGL.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGL.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ad5f5c65288b9c9d09575f5ca489a067c29708e --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGL.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libGL | grep -v \.src | grep mesa-libGL + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libGL" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libGL + CHECK_RESULT $? 0 0 "install mesa-libGL failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libGL + CHECK_RESULT $? 0 0 "remove mesa-libGL failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGLES-devel.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGLES-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..76f597cd81283bbf44252e7068b998d4a9cd272c --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGLES-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libGLES-devel | grep -v \.src | grep mesa-libGLES-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libGLES-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libGLES-devel + CHECK_RESULT $? 0 0 "install mesa-libGLES-devel failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libGLES-devel + CHECK_RESULT $? 0 0 "remove mesa-libGLES-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGLES.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGLES.sh new file mode 100644 index 0000000000000000000000000000000000000000..d628763d7c74fa2d6a3e6f37188365a9359bb1b5 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libGLES.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libGLES | grep -v \.src | grep mesa-libGLES + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libGLES" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libGLES + CHECK_RESULT $? 0 0 "install mesa-libGLES failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libGLES + CHECK_RESULT $? 0 0 "remove mesa-libGLES failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libOSMesa-devel.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libOSMesa-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cc32928e24bb58cbad64f51c7dffff91dc74e2d --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libOSMesa-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libOSMesa-devel | grep -v \.src | grep mesa-libOSMesa-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libOSMesa-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libOSMesa-devel + CHECK_RESULT $? 0 0 "install mesa-libOSMesa-devel failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libOSMesa-devel + CHECK_RESULT $? 0 0 "remove mesa-libOSMesa-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libOSMesa.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libOSMesa.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3912371d8c11b83c53ec8c0b039dbc1950eb175 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libOSMesa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libOSMesa | grep -v \.src | grep mesa-libOSMesa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libOSMesa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libOSMesa + CHECK_RESULT $? 0 0 "install mesa-libOSMesa failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libOSMesa + CHECK_RESULT $? 0 0 "remove mesa-libOSMesa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libd3d-devel.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libd3d-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..846982cdc0e673e75fea155b76b677c9b3bb269f --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libd3d-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libd3d-devel | grep -v \.src | grep mesa-libd3d-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libd3d-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libd3d-devel + CHECK_RESULT $? 0 0 "install mesa-libd3d-devel failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libd3d-devel + CHECK_RESULT $? 0 0 "remove mesa-libd3d-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libd3d.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libd3d.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f36f7557d2ac8225e87e878c6891e87845f1e5e --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libd3d.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libd3d | grep -v \.src | grep mesa-libd3d + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libd3d" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libd3d + CHECK_RESULT $? 0 0 "install mesa-libd3d failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libd3d + CHECK_RESULT $? 0 0 "remove mesa-libd3d failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libgbm-devel.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libgbm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f46d6c20ebc05a2a71d0584c0514734fe3a3fbed --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libgbm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libgbm-devel | grep -v \.src | grep mesa-libgbm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libgbm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libgbm-devel + CHECK_RESULT $? 0 0 "install mesa-libgbm-devel failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libgbm-devel + CHECK_RESULT $? 0 0 "remove mesa-libgbm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libgbm.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libgbm.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba69cff4399ed09606083553d8418bba93e97e03 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libgbm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libgbm | grep -v \.src | grep mesa-libgbm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libgbm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libgbm + CHECK_RESULT $? 0 0 "install mesa-libgbm failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libgbm + CHECK_RESULT $? 0 0 "remove mesa-libgbm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libglapi.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libglapi.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d49b7aa9596380a662181407296674117999709 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libglapi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libglapi | grep -v \.src | grep mesa-libglapi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libglapi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libglapi + CHECK_RESULT $? 0 0 "install mesa-libglapi failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libglapi + CHECK_RESULT $? 0 0 "remove mesa-libglapi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libxatracker-devel.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libxatracker-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..10c3a4aa2aced57a7b37d2ba168eaff9369758d6 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libxatracker-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libxatracker-devel | grep -v \.src | grep mesa-libxatracker-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libxatracker-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libxatracker-devel + CHECK_RESULT $? 0 0 "install mesa-libxatracker-devel failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libxatracker-devel + CHECK_RESULT $? 0 0 "remove mesa-libxatracker-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libxatracker.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libxatracker.sh new file mode 100644 index 0000000000000000000000000000000000000000..eeb850c09a52077fc18f96e3991839d2a32734bf --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-libxatracker.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-libxatracker | grep -v \.src | grep mesa-libxatracker + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-libxatracker" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-libxatracker + CHECK_RESULT $? 0 0 "install mesa-libxatracker failed" + SLEEP_WAIT 1 + dnf remove -y mesa-libxatracker + CHECK_RESULT $? 0 0 "remove mesa-libxatracker failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-omx-drivers.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-omx-drivers.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6dae1b150890fc290fb627bab82b438297b62a5 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-omx-drivers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-omx-drivers | grep -v \.src | grep mesa-omx-drivers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-omx-drivers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-omx-drivers + CHECK_RESULT $? 0 0 "install mesa-omx-drivers failed" + SLEEP_WAIT 1 + dnf remove -y mesa-omx-drivers + CHECK_RESULT $? 0 0 "remove mesa-omx-drivers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-vdpau-drivers.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-vdpau-drivers.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9eed362d83a197e97e66970c83542784819c6e9 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-vdpau-drivers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-vdpau-drivers | grep -v \.src | grep mesa-vdpau-drivers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-vdpau-drivers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-vdpau-drivers + CHECK_RESULT $? 0 0 "install mesa-vdpau-drivers failed" + SLEEP_WAIT 1 + dnf remove -y mesa-vdpau-drivers + CHECK_RESULT $? 0 0 "remove mesa-vdpau-drivers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-vulkan-devel.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-vulkan-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2aeed81483095f5afc6175d06c4bed35b6b801b7 --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-vulkan-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-vulkan-devel | grep -v \.src | grep mesa-vulkan-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-vulkan-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-vulkan-devel + CHECK_RESULT $? 0 0 "install mesa-vulkan-devel failed" + SLEEP_WAIT 1 + dnf remove -y mesa-vulkan-devel + CHECK_RESULT $? 0 0 "remove mesa-vulkan-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-vulkan-drivers.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-vulkan-drivers.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e568073dd4e861d1c4ab99982d2853cca74591b --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa-vulkan-drivers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa-vulkan-drivers | grep -v \.src | grep mesa-vulkan-drivers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa-vulkan-drivers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa-vulkan-drivers + CHECK_RESULT $? 0 0 "install mesa-vulkan-drivers failed" + SLEEP_WAIT 1 + dnf remove -y mesa-vulkan-drivers + CHECK_RESULT $? 0 0 "remove mesa-vulkan-drivers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa.sh b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa.sh new file mode 100644 index 0000000000000000000000000000000000000000..abfab41013ff886cf7d648424d118b66803b91bb --- /dev/null +++ b/testcases/cli-test/mesa/oe_test_mesa_install_and_remove_mesa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mesa | grep -v \.src | grep mesa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mesa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mesa + CHECK_RESULT $? 0 0 "install mesa failed" + SLEEP_WAIT 1 + dnf remove -y mesa + CHECK_RESULT $? 0 0 "remove mesa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/meson/oe_test_meson_install_and_remove_meson-help.sh b/testcases/cli-test/meson/oe_test_meson_install_and_remove_meson-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e70a40836a07fef3a27e9b13d8dbb81e74d98a5 --- /dev/null +++ b/testcases/cli-test/meson/oe_test_meson_install_and_remove_meson-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src meson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available meson-help | grep -v \.src | grep meson-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm meson-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y meson-help + CHECK_RESULT $? 0 0 "install meson-help failed" + SLEEP_WAIT 1 + dnf remove -y meson-help + CHECK_RESULT $? 0 0 "remove meson-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/meson/oe_test_meson_install_and_remove_meson.sh b/testcases/cli-test/meson/oe_test_meson_install_and_remove_meson.sh new file mode 100644 index 0000000000000000000000000000000000000000..0997924e1e73e45a61ee8c86bce0914f71ef69c3 --- /dev/null +++ b/testcases/cli-test/meson/oe_test_meson_install_and_remove_meson.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src meson +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available meson | grep -v \.src | grep meson + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm meson" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y meson + CHECK_RESULT $? 0 0 "install meson failed" + SLEEP_WAIT 1 + dnf remove -y meson + CHECK_RESULT $? 0 0 "remove meson failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-debuginfo.sh b/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a390c417eb638b82857e7b2776a7f8d743cb0a06 --- /dev/null +++ b/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src metacity +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available metacity-debuginfo | grep -v \.src | grep metacity-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm metacity-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y metacity-debuginfo + CHECK_RESULT $? 0 0 "install metacity-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y metacity-debuginfo + CHECK_RESULT $? 0 0 "remove metacity-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-debugsource.sh b/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a8402f4d6b0a66bc80bd2b5b0f24d4dfbbb4f52 --- /dev/null +++ b/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src metacity +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available metacity-debugsource | grep -v \.src | grep metacity-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm metacity-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y metacity-debugsource + CHECK_RESULT $? 0 0 "install metacity-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y metacity-debugsource + CHECK_RESULT $? 0 0 "remove metacity-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-devel.sh b/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e9f5ee6222aaa069305d0254d0e8f3d61af1205 --- /dev/null +++ b/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src metacity +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available metacity-devel | grep -v \.src | grep metacity-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm metacity-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y metacity-devel + CHECK_RESULT $? 0 0 "install metacity-devel failed" + SLEEP_WAIT 1 + dnf remove -y metacity-devel + CHECK_RESULT $? 0 0 "remove metacity-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-help.sh b/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5966c18f641f4c2e03d549a249e45a1955100697 --- /dev/null +++ b/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src metacity +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available metacity-help | grep -v \.src | grep metacity-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm metacity-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y metacity-help + CHECK_RESULT $? 0 0 "install metacity-help failed" + SLEEP_WAIT 1 + dnf remove -y metacity-help + CHECK_RESULT $? 0 0 "remove metacity-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity.sh b/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c1fd2b8e035b8ba2a57070d668cf01105cae43e --- /dev/null +++ b/testcases/cli-test/metacity/oe_test_metacity_install_and_remove_metacity.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src metacity +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available metacity | grep -v \.src | grep metacity + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm metacity" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y metacity + CHECK_RESULT $? 0 0 "install metacity failed" + SLEEP_WAIT 1 + dnf remove -y metacity + CHECK_RESULT $? 0 0 "remove metacity failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mobile-broadband-provider-info/oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info-devel.sh b/testcases/cli-test/mobile-broadband-provider-info/oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..839a6717ffb9c87ee324637eaf5e0f778d080f60 --- /dev/null +++ b/testcases/cli-test/mobile-broadband-provider-info/oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mobile-broadband-provider-info +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mobile-broadband-provider-info-devel | grep -v \.src | grep mobile-broadband-provider-info-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mobile-broadband-provider-info-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mobile-broadband-provider-info-devel + CHECK_RESULT $? 0 0 "install mobile-broadband-provider-info-devel failed" + SLEEP_WAIT 1 + dnf remove -y mobile-broadband-provider-info-devel + CHECK_RESULT $? 0 0 "remove mobile-broadband-provider-info-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mobile-broadband-provider-info/oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info-help.sh b/testcases/cli-test/mobile-broadband-provider-info/oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b477bdee380df8fe3411087e2891dc755a6585fe --- /dev/null +++ b/testcases/cli-test/mobile-broadband-provider-info/oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mobile-broadband-provider-info +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mobile-broadband-provider-info-help | grep -v \.src | grep mobile-broadband-provider-info-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mobile-broadband-provider-info-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mobile-broadband-provider-info-help + CHECK_RESULT $? 0 0 "install mobile-broadband-provider-info-help failed" + SLEEP_WAIT 1 + dnf remove -y mobile-broadband-provider-info-help + CHECK_RESULT $? 0 0 "remove mobile-broadband-provider-info-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mobile-broadband-provider-info/oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info.sh b/testcases/cli-test/mobile-broadband-provider-info/oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb536df45cdd538d9f3c42418cb67ddaa73b997c --- /dev/null +++ b/testcases/cli-test/mobile-broadband-provider-info/oe_test_mobile-broadband-provider-info_install_and_remove_mobile-broadband-provider-info.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mobile-broadband-provider-info +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mobile-broadband-provider-info | grep -v \.src | grep mobile-broadband-provider-info + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mobile-broadband-provider-info" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mobile-broadband-provider-info + CHECK_RESULT $? 0 0 "install mobile-broadband-provider-info failed" + SLEEP_WAIT 1 + dnf remove -y mobile-broadband-provider-info + CHECK_RESULT $? 0 0 "remove mobile-broadband-provider-info failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil-debuginfo.sh b/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f1aca3afb38bc62e73fe5c6477e382c3d09aa9d --- /dev/null +++ b/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mokutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mokutil-debuginfo | grep -v \.src | grep mokutil-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mokutil-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mokutil-debuginfo + CHECK_RESULT $? 0 0 "install mokutil-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mokutil-debuginfo + CHECK_RESULT $? 0 0 "remove mokutil-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil-debugsource.sh b/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee63b3843cd9d7c45d04e9d056ccd326ba5039a3 --- /dev/null +++ b/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mokutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mokutil-debugsource | grep -v \.src | grep mokutil-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mokutil-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mokutil-debugsource + CHECK_RESULT $? 0 0 "install mokutil-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mokutil-debugsource + CHECK_RESULT $? 0 0 "remove mokutil-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil-help.sh b/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0de40986efcc071c3592c7fda21be9e39892a1b --- /dev/null +++ b/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mokutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mokutil-help | grep -v \.src | grep mokutil-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mokutil-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mokutil-help + CHECK_RESULT $? 0 0 "install mokutil-help failed" + SLEEP_WAIT 1 + dnf remove -y mokutil-help + CHECK_RESULT $? 0 0 "remove mokutil-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil.sh b/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d5ad98b8f13231b1f1d8496025129d56a6d1835 --- /dev/null +++ b/testcases/cli-test/mokutil/oe_test_mokutil_install_and_remove_mokutil.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mokutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mokutil | grep -v \.src | grep mokutil + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mokutil" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mokutil + CHECK_RESULT $? 0 0 "install mokutil failed" + SLEEP_WAIT 1 + dnf remove -y mokutil + CHECK_RESULT $? 0 0 "remove mokutil failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr-debuginfo.sh b/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac913bf800767fae4bbc915d9880db9c4d6b5fd9 --- /dev/null +++ b/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpfr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpfr-debuginfo | grep -v \.src | grep mpfr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpfr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpfr-debuginfo + CHECK_RESULT $? 0 0 "install mpfr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mpfr-debuginfo + CHECK_RESULT $? 0 0 "remove mpfr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr-debugsource.sh b/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a627e218d6877a2d1ff6fed81e48445f2f269095 --- /dev/null +++ b/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpfr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpfr-debugsource | grep -v \.src | grep mpfr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpfr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpfr-debugsource + CHECK_RESULT $? 0 0 "install mpfr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mpfr-debugsource + CHECK_RESULT $? 0 0 "remove mpfr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr-devel.sh b/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d39a0f70ca4b96e81251ad88182c140841bb6f7 --- /dev/null +++ b/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpfr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpfr-devel | grep -v \.src | grep mpfr-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpfr-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpfr-devel + CHECK_RESULT $? 0 0 "install mpfr-devel failed" + SLEEP_WAIT 1 + dnf remove -y mpfr-devel + CHECK_RESULT $? 0 0 "remove mpfr-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr.sh b/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr.sh new file mode 100644 index 0000000000000000000000000000000000000000..676a23df70a491bbb3de9f450439705bc29376e6 --- /dev/null +++ b/testcases/cli-test/mpfr/oe_test_mpfr_install_and_remove_mpfr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpfr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpfr | grep -v \.src | grep mpfr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpfr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpfr + CHECK_RESULT $? 0 0 "install mpfr failed" + SLEEP_WAIT 1 + dnf remove -y mpfr + CHECK_RESULT $? 0 0 "remove mpfr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-debuginfo.sh b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a631908f53344a220b3c3341c630abce819e9e73 --- /dev/null +++ b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpg123 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpg123-debuginfo | grep -v \.src | grep mpg123-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpg123-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpg123-debuginfo + CHECK_RESULT $? 0 0 "install mpg123-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mpg123-debuginfo + CHECK_RESULT $? 0 0 "remove mpg123-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-debugsource.sh b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cf7574f92ceee352bf649dfaa998291635643bd --- /dev/null +++ b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpg123 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpg123-debugsource | grep -v \.src | grep mpg123-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpg123-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpg123-debugsource + CHECK_RESULT $? 0 0 "install mpg123-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mpg123-debugsource + CHECK_RESULT $? 0 0 "remove mpg123-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-devel.sh b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4961778734af39f252895366b0b34124620110b9 --- /dev/null +++ b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpg123 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpg123-devel | grep -v \.src | grep mpg123-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpg123-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpg123-devel + CHECK_RESULT $? 0 0 "install mpg123-devel failed" + SLEEP_WAIT 1 + dnf remove -y mpg123-devel + CHECK_RESULT $? 0 0 "remove mpg123-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-help.sh b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3829942523bd1aad849a3f9838e36503cf00c6a5 --- /dev/null +++ b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpg123 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpg123-help | grep -v \.src | grep mpg123-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpg123-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpg123-help + CHECK_RESULT $? 0 0 "install mpg123-help failed" + SLEEP_WAIT 1 + dnf remove -y mpg123-help + CHECK_RESULT $? 0 0 "remove mpg123-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-libs.sh b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..abf09724da3e127f1b23dbc4152ca0201cd636b7 --- /dev/null +++ b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpg123 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpg123-libs | grep -v \.src | grep mpg123-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpg123-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpg123-libs + CHECK_RESULT $? 0 0 "install mpg123-libs failed" + SLEEP_WAIT 1 + dnf remove -y mpg123-libs + CHECK_RESULT $? 0 0 "remove mpg123-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-plugins-jack.sh b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-plugins-jack.sh new file mode 100644 index 0000000000000000000000000000000000000000..1601c0e34a7f84e32c646235810b74013992e674 --- /dev/null +++ b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-plugins-jack.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpg123 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpg123-plugins-jack | grep -v \.src | grep mpg123-plugins-jack + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpg123-plugins-jack" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpg123-plugins-jack + CHECK_RESULT $? 0 0 "install mpg123-plugins-jack failed" + SLEEP_WAIT 1 + dnf remove -y mpg123-plugins-jack + CHECK_RESULT $? 0 0 "remove mpg123-plugins-jack failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-plugins-portaudio.sh b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-plugins-portaudio.sh new file mode 100644 index 0000000000000000000000000000000000000000..c300d4408b8a071adee27bcffa1ebd655d7ebfcd --- /dev/null +++ b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-plugins-portaudio.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpg123 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpg123-plugins-portaudio | grep -v \.src | grep mpg123-plugins-portaudio + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpg123-plugins-portaudio" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpg123-plugins-portaudio + CHECK_RESULT $? 0 0 "install mpg123-plugins-portaudio failed" + SLEEP_WAIT 1 + dnf remove -y mpg123-plugins-portaudio + CHECK_RESULT $? 0 0 "remove mpg123-plugins-portaudio failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-plugins-pulseaudio.sh b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-plugins-pulseaudio.sh new file mode 100644 index 0000000000000000000000000000000000000000..f59fa82843c37e661d88151ae776477d1cc3a900 --- /dev/null +++ b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123-plugins-pulseaudio.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpg123 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpg123-plugins-pulseaudio | grep -v \.src | grep mpg123-plugins-pulseaudio + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpg123-plugins-pulseaudio" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpg123-plugins-pulseaudio + CHECK_RESULT $? 0 0 "install mpg123-plugins-pulseaudio failed" + SLEEP_WAIT 1 + dnf remove -y mpg123-plugins-pulseaudio + CHECK_RESULT $? 0 0 "remove mpg123-plugins-pulseaudio failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123.sh b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123.sh new file mode 100644 index 0000000000000000000000000000000000000000..6efe9bab8e19a5c794ee45bf43a69dcba2710eba --- /dev/null +++ b/testcases/cli-test/mpg123/oe_test_mpg123_install_and_remove_mpg123.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mpg123 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mpg123 | grep -v \.src | grep mpg123 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mpg123" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mpg123 + CHECK_RESULT $? 0 0 "install mpg123 failed" + SLEEP_WAIT 1 + dnf remove -y mpg123 + CHECK_RESULT $? 0 0 "remove mpg123 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev-debuginfo.sh b/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..edfe08ae5cb25479835f24350fce459f6abfc702 --- /dev/null +++ b/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtdev-debuginfo | grep -v \.src | grep mtdev-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtdev-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtdev-debuginfo + CHECK_RESULT $? 0 0 "install mtdev-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mtdev-debuginfo + CHECK_RESULT $? 0 0 "remove mtdev-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev-debugsource.sh b/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..77779f448ec659017569dd14e135147b338c7e1b --- /dev/null +++ b/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtdev-debugsource | grep -v \.src | grep mtdev-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtdev-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtdev-debugsource + CHECK_RESULT $? 0 0 "install mtdev-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mtdev-debugsource + CHECK_RESULT $? 0 0 "remove mtdev-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev-devel.sh b/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..24ad31e695f8301f506c0ddb826000ceded65e1f --- /dev/null +++ b/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtdev-devel | grep -v \.src | grep mtdev-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtdev-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtdev-devel + CHECK_RESULT $? 0 0 "install mtdev-devel failed" + SLEEP_WAIT 1 + dnf remove -y mtdev-devel + CHECK_RESULT $? 0 0 "remove mtdev-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev.sh b/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev.sh new file mode 100644 index 0000000000000000000000000000000000000000..47390e79c57e30869b8629e8257c011831e701ae --- /dev/null +++ b/testcases/cli-test/mtdev/oe_test_mtdev_install_and_remove_mtdev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtdev | grep -v \.src | grep mtdev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtdev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtdev + CHECK_RESULT $? 0 0 "install mtdev failed" + SLEEP_WAIT 1 + dnf remove -y mtdev + CHECK_RESULT $? 0 0 "remove mtdev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools-debuginfo.sh b/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f72925d5dfa8572d726227e089884e26d3be8e6 --- /dev/null +++ b/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtools-debuginfo | grep -v \.src | grep mtools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtools-debuginfo + CHECK_RESULT $? 0 0 "install mtools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mtools-debuginfo + CHECK_RESULT $? 0 0 "remove mtools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools-debugsource.sh b/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3104258007ee916bbd66a7c8e1afe910ab82e7c --- /dev/null +++ b/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtools-debugsource | grep -v \.src | grep mtools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtools-debugsource + CHECK_RESULT $? 0 0 "install mtools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mtools-debugsource + CHECK_RESULT $? 0 0 "remove mtools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools-help.sh b/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..52a22b5b2c3f5bd3723d901fcec99bf37716b437 --- /dev/null +++ b/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtools-help | grep -v \.src | grep mtools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtools-help + CHECK_RESULT $? 0 0 "install mtools-help failed" + SLEEP_WAIT 1 + dnf remove -y mtools-help + CHECK_RESULT $? 0 0 "remove mtools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools.sh b/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools.sh new file mode 100644 index 0000000000000000000000000000000000000000..519f69ffb8b0d1625dbfd733c664d533212fae81 --- /dev/null +++ b/testcases/cli-test/mtools/oe_test_mtools_install_and_remove_mtools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtools | grep -v \.src | grep mtools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtools + CHECK_RESULT $? 0 0 "install mtools failed" + SLEEP_WAIT 1 + dnf remove -y mtools + CHECK_RESULT $? 0 0 "remove mtools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-debuginfo.sh b/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fdd95feca4750609b531321e3afe56bf078fbb1a --- /dev/null +++ b/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtr-debuginfo | grep -v \.src | grep mtr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtr-debuginfo + CHECK_RESULT $? 0 0 "install mtr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y mtr-debuginfo + CHECK_RESULT $? 0 0 "remove mtr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-debugsource.sh b/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..49ffc380e410cd19d194ae8cb0c2232af38e5b9e --- /dev/null +++ b/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtr-debugsource | grep -v \.src | grep mtr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtr-debugsource + CHECK_RESULT $? 0 0 "install mtr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y mtr-debugsource + CHECK_RESULT $? 0 0 "remove mtr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-gtk.sh b/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-gtk.sh new file mode 100644 index 0000000000000000000000000000000000000000..5bba18449f2c7a64679cf458cc48c4fa08d6e5cd --- /dev/null +++ b/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-gtk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtr-gtk | grep -v \.src | grep mtr-gtk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtr-gtk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtr-gtk + CHECK_RESULT $? 0 0 "install mtr-gtk failed" + SLEEP_WAIT 1 + dnf remove -y mtr-gtk + CHECK_RESULT $? 0 0 "remove mtr-gtk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-help.sh b/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2109a52583b000d43f4cfc4cb57a9bd961761ca1 --- /dev/null +++ b/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtr-help | grep -v \.src | grep mtr-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtr-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtr-help + CHECK_RESULT $? 0 0 "install mtr-help failed" + SLEEP_WAIT 1 + dnf remove -y mtr-help + CHECK_RESULT $? 0 0 "remove mtr-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr.sh b/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a0dc44be328e44f538bba805ca34d9422aeb70f --- /dev/null +++ b/testcases/cli-test/mtr/oe_test_mtr_install_and_remove_mtr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src mtr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available mtr | grep -v \.src | grep mtr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm mtr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y mtr + CHECK_RESULT $? 0 0 "install mtr failed" + SLEEP_WAIT 1 + dnf remove -y mtr + CHECK_RESULT $? 0 0 "remove mtr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/multilib-rpm-config/oe_test_multilib-rpm-config_install_and_remove_multilib-rpm-config.sh b/testcases/cli-test/multilib-rpm-config/oe_test_multilib-rpm-config_install_and_remove_multilib-rpm-config.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8b1aaaac13a72ab4849495a91dbf5a164e8df2a --- /dev/null +++ b/testcases/cli-test/multilib-rpm-config/oe_test_multilib-rpm-config_install_and_remove_multilib-rpm-config.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src multilib-rpm-config +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available multilib-rpm-config | grep -v \.src | grep multilib-rpm-config + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm multilib-rpm-config" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y multilib-rpm-config + CHECK_RESULT $? 0 0 "install multilib-rpm-config failed" + SLEEP_WAIT 1 + dnf remove -y multilib-rpm-config + CHECK_RESULT $? 0 0 "remove multilib-rpm-config failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_kpartx.sh b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_kpartx.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cdc0bd635661c9b4d618f839a9527438e25e6c3 --- /dev/null +++ b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_kpartx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src multipath-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available kpartx | grep -v \.src | grep kpartx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm kpartx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y kpartx + CHECK_RESULT $? 0 0 "install kpartx failed" + SLEEP_WAIT 1 + dnf remove -y kpartx + CHECK_RESULT $? 0 0 "remove kpartx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-debuginfo.sh b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8616aaff2cb43ad02cca4fa822b525b29fc36ac7 --- /dev/null +++ b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src multipath-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available multipath-tools-debuginfo | grep -v \.src | grep multipath-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm multipath-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y multipath-tools-debuginfo + CHECK_RESULT $? 0 0 "install multipath-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y multipath-tools-debuginfo + CHECK_RESULT $? 0 0 "remove multipath-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-debugsource.sh b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..889d0ca3c66d30038fac925bb7198befaef1146e --- /dev/null +++ b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src multipath-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available multipath-tools-debugsource | grep -v \.src | grep multipath-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm multipath-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y multipath-tools-debugsource + CHECK_RESULT $? 0 0 "install multipath-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y multipath-tools-debugsource + CHECK_RESULT $? 0 0 "remove multipath-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-devel.sh b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b68d554b334a0bf54d4832d9ab216e2ed584273f --- /dev/null +++ b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src multipath-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available multipath-tools-devel | grep -v \.src | grep multipath-tools-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm multipath-tools-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y multipath-tools-devel + CHECK_RESULT $? 0 0 "install multipath-tools-devel failed" + SLEEP_WAIT 1 + dnf remove -y multipath-tools-devel + CHECK_RESULT $? 0 0 "remove multipath-tools-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-help.sh b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f98086c2e69bd3dacd958353bdf2eeafad21c18 --- /dev/null +++ b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src multipath-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available multipath-tools-help | grep -v \.src | grep multipath-tools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm multipath-tools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y multipath-tools-help + CHECK_RESULT $? 0 0 "install multipath-tools-help failed" + SLEEP_WAIT 1 + dnf remove -y multipath-tools-help + CHECK_RESULT $? 0 0 "remove multipath-tools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools.sh b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..4da68f91a8abd5a34191e47440e035dc1e702ce4 --- /dev/null +++ b/testcases/cli-test/multipath-tools/oe_test_multipath-tools_install_and_remove_multipath-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src multipath-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available multipath-tools | grep -v \.src | grep multipath-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm multipath-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y multipath-tools + CHECK_RESULT $? 0 0 "install multipath-tools failed" + SLEEP_WAIT 1 + dnf remove -y multipath-tools + CHECK_RESULT $? 0 0 "remove multipath-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-debuginfo.sh b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..32bb9727fe6b88cff1fbc0b00516cee684bdb7b5 --- /dev/null +++ b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src musl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available musl-debuginfo | grep -v \.src | grep musl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm musl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y musl-debuginfo + CHECK_RESULT $? 0 0 "install musl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y musl-debuginfo + CHECK_RESULT $? 0 0 "remove musl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-debugsource.sh b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..11bd85bba1edbd3b958b8c2e8f0225394fb00c2f --- /dev/null +++ b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src musl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available musl-debugsource | grep -v \.src | grep musl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm musl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y musl-debugsource + CHECK_RESULT $? 0 0 "install musl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y musl-debugsource + CHECK_RESULT $? 0 0 "remove musl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-devel.sh b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..128f855ca63a4d3dd1d0a5a41028cc5d49a79c1f --- /dev/null +++ b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src musl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available musl-devel | grep -v \.src | grep musl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm musl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y musl-devel + CHECK_RESULT $? 0 0 "install musl-devel failed" + SLEEP_WAIT 1 + dnf remove -y musl-devel + CHECK_RESULT $? 0 0 "remove musl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-gcc.sh b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-gcc.sh new file mode 100644 index 0000000000000000000000000000000000000000..48c2711c6b86e37b5cbfef12eac96f610dc6e12a --- /dev/null +++ b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-gcc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src musl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available musl-gcc | grep -v \.src | grep musl-gcc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm musl-gcc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y musl-gcc + CHECK_RESULT $? 0 0 "install musl-gcc failed" + SLEEP_WAIT 1 + dnf remove -y musl-gcc + CHECK_RESULT $? 0 0 "remove musl-gcc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-libc-static.sh b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-libc-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..a51f201176d1962448c4191d05bedd765212b81e --- /dev/null +++ b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-libc-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src musl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available musl-libc-static | grep -v \.src | grep musl-libc-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm musl-libc-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y musl-libc-static + CHECK_RESULT $? 0 0 "install musl-libc-static failed" + SLEEP_WAIT 1 + dnf remove -y musl-libc-static + CHECK_RESULT $? 0 0 "remove musl-libc-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-libc.sh b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-libc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1775027f1b1530fbb05b4885673484c2d8eb5f20 --- /dev/null +++ b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl-libc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src musl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available musl-libc | grep -v \.src | grep musl-libc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm musl-libc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y musl-libc + CHECK_RESULT $? 0 0 "install musl-libc failed" + SLEEP_WAIT 1 + dnf remove -y musl-libc + CHECK_RESULT $? 0 0 "remove musl-libc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl.sh b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl.sh new file mode 100644 index 0000000000000000000000000000000000000000..a859265e61108f77fe2e0fddef62fb2067360033 --- /dev/null +++ b/testcases/cli-test/musl/oe_test_musl_install_and_remove_musl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src musl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available musl | grep -v \.src | grep musl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm musl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y musl + CHECK_RESULT $? 0 0 "install musl failed" + SLEEP_WAIT 1 + dnf remove -y musl + CHECK_RESULT $? 0 0 "remove musl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm-debuginfo.sh b/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc9d59e5af9527b7d2d8b427da7925d4a5596e27 --- /dev/null +++ b/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nasm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nasm-debuginfo | grep -v \.src | grep nasm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nasm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nasm-debuginfo + CHECK_RESULT $? 0 0 "install nasm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y nasm-debuginfo + CHECK_RESULT $? 0 0 "remove nasm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm-debugsource.sh b/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b878a8900674552902184166056ea0714ba85fd --- /dev/null +++ b/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nasm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nasm-debugsource | grep -v \.src | grep nasm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nasm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nasm-debugsource + CHECK_RESULT $? 0 0 "install nasm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y nasm-debugsource + CHECK_RESULT $? 0 0 "remove nasm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm-help.sh b/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..decddb2eb6b3eeb3089acd88f61cae0fd4afc020 --- /dev/null +++ b/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nasm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nasm-help | grep -v \.src | grep nasm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nasm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nasm-help + CHECK_RESULT $? 0 0 "install nasm-help failed" + SLEEP_WAIT 1 + dnf remove -y nasm-help + CHECK_RESULT $? 0 0 "remove nasm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm.sh b/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm.sh new file mode 100644 index 0000000000000000000000000000000000000000..5daec4f756e7dba50222e63c35f1b826945677c0 --- /dev/null +++ b/testcases/cli-test/nasm/oe_test_nasm_install_and_remove_nasm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nasm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nasm | grep -v \.src | grep nasm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nasm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nasm + CHECK_RESULT $? 0 0 "install nasm failed" + SLEEP_WAIT 1 + dnf remove -y nasm + CHECK_RESULT $? 0 0 "remove nasm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-base.sh b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ef2cd6f5774fec274ef34fbe092a3ea2f1a4273 --- /dev/null +++ b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ncurses +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ncurses-base | grep -v \.src | grep ncurses-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ncurses-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ncurses-base + CHECK_RESULT $? 0 0 "install ncurses-base failed" + SLEEP_WAIT 1 + dnf remove -y ncurses-base + CHECK_RESULT $? 0 0 "remove ncurses-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-compat-libs.sh b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-compat-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..76986a41517f2b5deece0b1a3d486dd322fab147 --- /dev/null +++ b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-compat-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ncurses +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ncurses-compat-libs | grep -v \.src | grep ncurses-compat-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ncurses-compat-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ncurses-compat-libs + CHECK_RESULT $? 0 0 "install ncurses-compat-libs failed" + SLEEP_WAIT 1 + dnf remove -y ncurses-compat-libs + CHECK_RESULT $? 0 0 "remove ncurses-compat-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-debuginfo.sh b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..24c8470c35f70a9aff39dffcdf56e9b0075a2f40 --- /dev/null +++ b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ncurses +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ncurses-debuginfo | grep -v \.src | grep ncurses-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ncurses-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ncurses-debuginfo + CHECK_RESULT $? 0 0 "install ncurses-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ncurses-debuginfo + CHECK_RESULT $? 0 0 "remove ncurses-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-debugsource.sh b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ceeab9b8a7552f9265e835dc3ca605155a9822d2 --- /dev/null +++ b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ncurses +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ncurses-debugsource | grep -v \.src | grep ncurses-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ncurses-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ncurses-debugsource + CHECK_RESULT $? 0 0 "install ncurses-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ncurses-debugsource + CHECK_RESULT $? 0 0 "remove ncurses-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-devel.sh b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bed545078e241543aee7139146beb5ff414555e --- /dev/null +++ b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ncurses +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ncurses-devel | grep -v \.src | grep ncurses-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ncurses-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ncurses-devel + CHECK_RESULT $? 0 0 "install ncurses-devel failed" + SLEEP_WAIT 1 + dnf remove -y ncurses-devel + CHECK_RESULT $? 0 0 "remove ncurses-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-help.sh b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2751bc7406046f14f1553ac0bd15088bf2569001 --- /dev/null +++ b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ncurses +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ncurses-help | grep -v \.src | grep ncurses-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ncurses-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ncurses-help + CHECK_RESULT $? 0 0 "install ncurses-help failed" + SLEEP_WAIT 1 + dnf remove -y ncurses-help + CHECK_RESULT $? 0 0 "remove ncurses-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-libs.sh b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..311b53c349d6931737927bf9fa50b2ac8456f9c2 --- /dev/null +++ b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ncurses +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ncurses-libs | grep -v \.src | grep ncurses-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ncurses-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ncurses-libs + CHECK_RESULT $? 0 0 "install ncurses-libs failed" + SLEEP_WAIT 1 + dnf remove -y ncurses-libs + CHECK_RESULT $? 0 0 "remove ncurses-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-relocation.sh b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-relocation.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3c9aa91de2f401e085be851745a4f7c29c33bd5 --- /dev/null +++ b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-relocation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ncurses +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ncurses-relocation | grep -v \.src | grep ncurses-relocation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ncurses-relocation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ncurses-relocation + CHECK_RESULT $? 0 0 "install ncurses-relocation failed" + SLEEP_WAIT 1 + dnf remove -y ncurses-relocation + CHECK_RESULT $? 0 0 "remove ncurses-relocation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-static.sh b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..583c5f7c7864b6d69870faac8a0211faee11c72c --- /dev/null +++ b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ncurses +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ncurses-static | grep -v \.src | grep ncurses-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ncurses-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ncurses-static + CHECK_RESULT $? 0 0 "install ncurses-static failed" + SLEEP_WAIT 1 + dnf remove -y ncurses-static + CHECK_RESULT $? 0 0 "remove ncurses-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses.sh b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses.sh new file mode 100644 index 0000000000000000000000000000000000000000..10c3439b1195081ff3f8207b3a30efb7a81660d8 --- /dev/null +++ b/testcases/cli-test/ncurses/oe_test_ncurses_install_and_remove_ncurses.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ncurses +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ncurses | grep -v \.src | grep ncurses + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ncurses" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ncurses + CHECK_RESULT $? 0 0 "install ncurses failed" + SLEEP_WAIT 1 + dnf remove -y ncurses + CHECK_RESULT $? 0 0 "remove ncurses failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_cxl-cli.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_cxl-cli.sh new file mode 100644 index 0000000000000000000000000000000000000000..1557ee191186cc97691a775f2ad30e0431d9d861 --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_cxl-cli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cxl-cli | grep -v \.src | grep cxl-cli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cxl-cli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cxl-cli + CHECK_RESULT $? 0 0 "install cxl-cli failed" + SLEEP_WAIT 1 + dnf remove -y cxl-cli + CHECK_RESULT $? 0 0 "remove cxl-cli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_cxl-devel.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_cxl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b4447b3c41959928f88395016ad67f99c11e2ad --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_cxl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cxl-devel | grep -v \.src | grep cxl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cxl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cxl-devel + CHECK_RESULT $? 0 0 "install cxl-devel failed" + SLEEP_WAIT 1 + dnf remove -y cxl-devel + CHECK_RESULT $? 0 0 "remove cxl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_cxl-libs.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_cxl-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..3423f724cdd9ff9b51fcd7a1dda47b2ed81eec93 --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_cxl-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cxl-libs | grep -v \.src | grep cxl-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cxl-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cxl-libs + CHECK_RESULT $? 0 0 "install cxl-libs failed" + SLEEP_WAIT 1 + dnf remove -y cxl-libs + CHECK_RESULT $? 0 0 "remove cxl-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_daxctl-devel.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_daxctl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c38b9ee745d37385b355903a8d969059d29007a --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_daxctl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available daxctl-devel | grep -v \.src | grep daxctl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm daxctl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y daxctl-devel + CHECK_RESULT $? 0 0 "install daxctl-devel failed" + SLEEP_WAIT 1 + dnf remove -y daxctl-devel + CHECK_RESULT $? 0 0 "remove daxctl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_daxctl-libs.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_daxctl-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..7170b1325c3fc1ba8d7884ae7298cc2df26dd254 --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_daxctl-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available daxctl-libs | grep -v \.src | grep daxctl-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm daxctl-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y daxctl-libs + CHECK_RESULT $? 0 0 "install daxctl-libs failed" + SLEEP_WAIT 1 + dnf remove -y daxctl-libs + CHECK_RESULT $? 0 0 "remove daxctl-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_daxctl.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_daxctl.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3e0b08d715d38f7d509e504252994e6428805a2 --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_daxctl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available daxctl | grep -v \.src | grep daxctl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm daxctl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y daxctl + CHECK_RESULT $? 0 0 "install daxctl failed" + SLEEP_WAIT 1 + dnf remove -y daxctl + CHECK_RESULT $? 0 0 "remove daxctl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-debuginfo.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a283b162fc14cca9bb7f054bfad63b8f0c0daf7f --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ndctl-debuginfo | grep -v \.src | grep ndctl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ndctl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ndctl-debuginfo + CHECK_RESULT $? 0 0 "install ndctl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ndctl-debuginfo + CHECK_RESULT $? 0 0 "remove ndctl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-debugsource.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4d589744176be2522ca6c7d30dc6a9b5c0a5f39 --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ndctl-debugsource | grep -v \.src | grep ndctl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ndctl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ndctl-debugsource + CHECK_RESULT $? 0 0 "install ndctl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ndctl-debugsource + CHECK_RESULT $? 0 0 "remove ndctl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-devel.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..052f494b3616c9cd79fee5dd0e0ad3b5fb9f01f2 --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ndctl-devel | grep -v \.src | grep ndctl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ndctl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ndctl-devel + CHECK_RESULT $? 0 0 "install ndctl-devel failed" + SLEEP_WAIT 1 + dnf remove -y ndctl-devel + CHECK_RESULT $? 0 0 "remove ndctl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-libs.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..220d0e9e1cd7f195c58193781dce0ab358494e02 --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ndctl-libs | grep -v \.src | grep ndctl-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ndctl-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ndctl-libs + CHECK_RESULT $? 0 0 "install ndctl-libs failed" + SLEEP_WAIT 1 + dnf remove -y ndctl-libs + CHECK_RESULT $? 0 0 "remove ndctl-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl.sh b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbd34e060f582084f431ee2eafd10617b13f1a99 --- /dev/null +++ b/testcases/cli-test/ndctl/oe_test_ndctl_install_and_remove_ndctl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ndctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ndctl | grep -v \.src | grep ndctl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ndctl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ndctl + CHECK_RESULT $? 0 0 "install ndctl failed" + SLEEP_WAIT 1 + dnf remove -y ndctl + CHECK_RESULT $? 0 0 "remove ndctl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-debuginfo.sh b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b71cbf6ee65bf0c162b4dded5e09f2dfaeb0127 --- /dev/null +++ b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-snmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-snmp-debuginfo | grep -v \.src | grep net-snmp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-snmp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-snmp-debuginfo + CHECK_RESULT $? 0 0 "install net-snmp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y net-snmp-debuginfo + CHECK_RESULT $? 0 0 "remove net-snmp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-debugsource.sh b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..aacfa86189066a700edcaf0476fc1d2e319c8f90 --- /dev/null +++ b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-snmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-snmp-debugsource | grep -v \.src | grep net-snmp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-snmp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-snmp-debugsource + CHECK_RESULT $? 0 0 "install net-snmp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y net-snmp-debugsource + CHECK_RESULT $? 0 0 "remove net-snmp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-devel.sh b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0512545e690b2ab70d6cb4566de541315ba3b59 --- /dev/null +++ b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-snmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-snmp-devel | grep -v \.src | grep net-snmp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-snmp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-snmp-devel + CHECK_RESULT $? 0 0 "install net-snmp-devel failed" + SLEEP_WAIT 1 + dnf remove -y net-snmp-devel + CHECK_RESULT $? 0 0 "remove net-snmp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-gui.sh b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-gui.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5d93e80e3cfd966e23cafee6eb35fe73e4d183e --- /dev/null +++ b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-gui.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-snmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-snmp-gui | grep -v \.src | grep net-snmp-gui + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-snmp-gui" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-snmp-gui + CHECK_RESULT $? 0 0 "install net-snmp-gui failed" + SLEEP_WAIT 1 + dnf remove -y net-snmp-gui + CHECK_RESULT $? 0 0 "remove net-snmp-gui failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-help.sh b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..864fd51ffe001e43673f1a0397b81d26b671fba2 --- /dev/null +++ b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-snmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-snmp-help | grep -v \.src | grep net-snmp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-snmp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-snmp-help + CHECK_RESULT $? 0 0 "install net-snmp-help failed" + SLEEP_WAIT 1 + dnf remove -y net-snmp-help + CHECK_RESULT $? 0 0 "remove net-snmp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-libs.sh b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..37c7ab81d1c3fa175939d28ce7d3e584264fbd48 --- /dev/null +++ b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-snmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-snmp-libs | grep -v \.src | grep net-snmp-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-snmp-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-snmp-libs + CHECK_RESULT $? 0 0 "install net-snmp-libs failed" + SLEEP_WAIT 1 + dnf remove -y net-snmp-libs + CHECK_RESULT $? 0 0 "remove net-snmp-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-perl.sh b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-perl.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b44043ee454eeb177936ffc45d85accc4f2b36b --- /dev/null +++ b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp-perl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-snmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-snmp-perl | grep -v \.src | grep net-snmp-perl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-snmp-perl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-snmp-perl + CHECK_RESULT $? 0 0 "install net-snmp-perl failed" + SLEEP_WAIT 1 + dnf remove -y net-snmp-perl + CHECK_RESULT $? 0 0 "remove net-snmp-perl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp.sh b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e4beeb43734a37f51e48dee38230174a27394b2 --- /dev/null +++ b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_net-snmp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-snmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-snmp | grep -v \.src | grep net-snmp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-snmp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-snmp + CHECK_RESULT $? 0 0 "install net-snmp failed" + SLEEP_WAIT 1 + dnf remove -y net-snmp + CHECK_RESULT $? 0 0 "remove net-snmp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_python3-net-snmp.sh b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_python3-net-snmp.sh new file mode 100644 index 0000000000000000000000000000000000000000..38ead7d33ef260894f5b03a4642d98673dc4a64f --- /dev/null +++ b/testcases/cli-test/net-snmp/oe_test_net-snmp_install_and_remove_python3-net-snmp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-snmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-net-snmp | grep -v \.src | grep python3-net-snmp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-net-snmp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-net-snmp + CHECK_RESULT $? 0 0 "install python3-net-snmp failed" + SLEEP_WAIT 1 + dnf remove -y python3-net-snmp + CHECK_RESULT $? 0 0 "remove python3-net-snmp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools-debuginfo.sh b/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d804b79fd1a39de899fdd57a09c7fe77a24f44f --- /dev/null +++ b/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-tools-debuginfo | grep -v \.src | grep net-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-tools-debuginfo + CHECK_RESULT $? 0 0 "install net-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y net-tools-debuginfo + CHECK_RESULT $? 0 0 "remove net-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools-debugsource.sh b/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4532803bd78fc7615732222be17caf8d087bfaad --- /dev/null +++ b/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-tools-debugsource | grep -v \.src | grep net-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-tools-debugsource + CHECK_RESULT $? 0 0 "install net-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y net-tools-debugsource + CHECK_RESULT $? 0 0 "remove net-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools-help.sh b/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b851bb8beb704eab80add66cb59a9d3648c1404 --- /dev/null +++ b/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-tools-help | grep -v \.src | grep net-tools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-tools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-tools-help + CHECK_RESULT $? 0 0 "install net-tools-help failed" + SLEEP_WAIT 1 + dnf remove -y net-tools-help + CHECK_RESULT $? 0 0 "remove net-tools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools.sh b/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4ce509589016ac6889893ca8cef53f12df42685 --- /dev/null +++ b/testcases/cli-test/net-tools/oe_test_net-tools_install_and_remove_net-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src net-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available net-tools | grep -v \.src | grep net-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm net-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y net-tools + CHECK_RESULT $? 0 0 "install net-tools failed" + SLEEP_WAIT 1 + dnf remove -y net-tools + CHECK_RESULT $? 0 0 "remove net-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-debuginfo.sh b/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1feab01d19d0bda771f64ee7e4517f7e451940c3 --- /dev/null +++ b/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nettle +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nettle-debuginfo | grep -v \.src | grep nettle-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nettle-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nettle-debuginfo + CHECK_RESULT $? 0 0 "install nettle-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y nettle-debuginfo + CHECK_RESULT $? 0 0 "remove nettle-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-debugsource.sh b/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9a20e3860bb44f599ab5769d86578f015a53d89 --- /dev/null +++ b/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nettle +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nettle-debugsource | grep -v \.src | grep nettle-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nettle-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nettle-debugsource + CHECK_RESULT $? 0 0 "install nettle-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y nettle-debugsource + CHECK_RESULT $? 0 0 "remove nettle-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-devel.sh b/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d82cd4dd1a8e4a3effd94cb38e413484e811c32 --- /dev/null +++ b/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nettle +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nettle-devel | grep -v \.src | grep nettle-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nettle-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nettle-devel + CHECK_RESULT $? 0 0 "install nettle-devel failed" + SLEEP_WAIT 1 + dnf remove -y nettle-devel + CHECK_RESULT $? 0 0 "remove nettle-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-help.sh b/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..57d3149e2333d54c0a8ab280a82d093adee8d401 --- /dev/null +++ b/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nettle +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nettle-help | grep -v \.src | grep nettle-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nettle-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nettle-help + CHECK_RESULT $? 0 0 "install nettle-help failed" + SLEEP_WAIT 1 + dnf remove -y nettle-help + CHECK_RESULT $? 0 0 "remove nettle-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle.sh b/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle.sh new file mode 100644 index 0000000000000000000000000000000000000000..13302bd1ba8873386ec80687f7de162b39a32ff7 --- /dev/null +++ b/testcases/cli-test/nettle/oe_test_nettle_install_and_remove_nettle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nettle +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nettle | grep -v \.src | grep nettle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nettle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nettle + CHECK_RESULT $? 0 0 "install nettle failed" + SLEEP_WAIT 1 + dnf remove -y nettle + CHECK_RESULT $? 0 0 "remove nettle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnm-gtk-devel.sh b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnm-gtk-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7db0037ac3e651739b77dfc2406f337b91bf21af --- /dev/null +++ b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnm-gtk-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src network-manager-applet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnm-gtk-devel | grep -v \.src | grep libnm-gtk-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnm-gtk-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnm-gtk-devel + CHECK_RESULT $? 0 0 "install libnm-gtk-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnm-gtk-devel + CHECK_RESULT $? 0 0 "remove libnm-gtk-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnm-gtk.sh b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnm-gtk.sh new file mode 100644 index 0000000000000000000000000000000000000000..f867be2c8fc3eaa1114d55edcbc5056fdb3f8e00 --- /dev/null +++ b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnm-gtk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src network-manager-applet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnm-gtk | grep -v \.src | grep libnm-gtk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnm-gtk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnm-gtk + CHECK_RESULT $? 0 0 "install libnm-gtk failed" + SLEEP_WAIT 1 + dnf remove -y libnm-gtk + CHECK_RESULT $? 0 0 "remove libnm-gtk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnma-devel.sh b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnma-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccb2a97c46cde88eba75ac7d2a1d928d3dfa0d53 --- /dev/null +++ b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnma-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src network-manager-applet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnma-devel | grep -v \.src | grep libnma-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnma-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnma-devel + CHECK_RESULT $? 0 0 "install libnma-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnma-devel + CHECK_RESULT $? 0 0 "remove libnma-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnma.sh b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnma.sh new file mode 100644 index 0000000000000000000000000000000000000000..6cd952c1a96fcf16b8b80d906f45449c502c1922 --- /dev/null +++ b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_libnma.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src network-manager-applet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnma | grep -v \.src | grep libnma + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnma" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnma + CHECK_RESULT $? 0 0 "install libnma failed" + SLEEP_WAIT 1 + dnf remove -y libnma + CHECK_RESULT $? 0 0 "remove libnma failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet-debuginfo.sh b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e8bd377a629507ccb49e405da6bdf43664b64cd --- /dev/null +++ b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src network-manager-applet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available network-manager-applet-debuginfo | grep -v \.src | grep network-manager-applet-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm network-manager-applet-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y network-manager-applet-debuginfo + CHECK_RESULT $? 0 0 "install network-manager-applet-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y network-manager-applet-debuginfo + CHECK_RESULT $? 0 0 "remove network-manager-applet-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet-debugsource.sh b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..699d524a9daecce43fa79a406b5f58a4b5c94a61 --- /dev/null +++ b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src network-manager-applet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available network-manager-applet-debugsource | grep -v \.src | grep network-manager-applet-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm network-manager-applet-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y network-manager-applet-debugsource + CHECK_RESULT $? 0 0 "install network-manager-applet-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y network-manager-applet-debugsource + CHECK_RESULT $? 0 0 "remove network-manager-applet-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet-help.sh b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..daab1bcaedd9d891e832de3cebecf0773a82da34 --- /dev/null +++ b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src network-manager-applet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available network-manager-applet-help | grep -v \.src | grep network-manager-applet-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm network-manager-applet-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y network-manager-applet-help + CHECK_RESULT $? 0 0 "install network-manager-applet-help failed" + SLEEP_WAIT 1 + dnf remove -y network-manager-applet-help + CHECK_RESULT $? 0 0 "remove network-manager-applet-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet.sh b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bf46ad904439ac2c73bf1dd6ea08104d27ac046 --- /dev/null +++ b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_network-manager-applet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src network-manager-applet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available network-manager-applet | grep -v \.src | grep network-manager-applet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm network-manager-applet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y network-manager-applet + CHECK_RESULT $? 0 0 "install network-manager-applet failed" + SLEEP_WAIT 1 + dnf remove -y network-manager-applet + CHECK_RESULT $? 0 0 "remove network-manager-applet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_nm-connection-editor-desktop.sh b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_nm-connection-editor-desktop.sh new file mode 100644 index 0000000000000000000000000000000000000000..84d1f46e29e1c51b0e4d57bc1e299a7e17bd5636 --- /dev/null +++ b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_nm-connection-editor-desktop.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src network-manager-applet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nm-connection-editor-desktop | grep -v \.src | grep nm-connection-editor-desktop + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nm-connection-editor-desktop" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nm-connection-editor-desktop + CHECK_RESULT $? 0 0 "install nm-connection-editor-desktop failed" + SLEEP_WAIT 1 + dnf remove -y nm-connection-editor-desktop + CHECK_RESULT $? 0 0 "remove nm-connection-editor-desktop failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_nm-connection-editor.sh b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_nm-connection-editor.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0c51f274a2dea1ca09252f8bda60e57e6e01a62 --- /dev/null +++ b/testcases/cli-test/network-manager-applet/oe_test_network-manager-applet_install_and_remove_nm-connection-editor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src network-manager-applet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nm-connection-editor | grep -v \.src | grep nm-connection-editor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nm-connection-editor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nm-connection-editor + CHECK_RESULT $? 0 0 "install nm-connection-editor failed" + SLEEP_WAIT 1 + dnf remove -y nm-connection-editor + CHECK_RESULT $? 0 0 "remove nm-connection-editor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-debuginfo.sh b/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba891879df33163acdbfeedce8091f0d9a2ace99 --- /dev/null +++ b/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src newt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available newt-debuginfo | grep -v \.src | grep newt-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm newt-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y newt-debuginfo + CHECK_RESULT $? 0 0 "install newt-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y newt-debuginfo + CHECK_RESULT $? 0 0 "remove newt-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-debugsource.sh b/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e1263ae5db31667bc7595cea93d28a26c0a277e6 --- /dev/null +++ b/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src newt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available newt-debugsource | grep -v \.src | grep newt-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm newt-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y newt-debugsource + CHECK_RESULT $? 0 0 "install newt-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y newt-debugsource + CHECK_RESULT $? 0 0 "remove newt-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-devel.sh b/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..97b86ea2288d5af0a92051ace3457bb1923890c8 --- /dev/null +++ b/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src newt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available newt-devel | grep -v \.src | grep newt-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm newt-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y newt-devel + CHECK_RESULT $? 0 0 "install newt-devel failed" + SLEEP_WAIT 1 + dnf remove -y newt-devel + CHECK_RESULT $? 0 0 "remove newt-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-help.sh b/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf172cba6f2075de4393d686261d4af1c6f31c84 --- /dev/null +++ b/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src newt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available newt-help | grep -v \.src | grep newt-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm newt-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y newt-help + CHECK_RESULT $? 0 0 "install newt-help failed" + SLEEP_WAIT 1 + dnf remove -y newt-help + CHECK_RESULT $? 0 0 "remove newt-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt.sh b/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt.sh new file mode 100644 index 0000000000000000000000000000000000000000..d028025424bd0ea1f5f1afdd487ef3e50f334880 --- /dev/null +++ b/testcases/cli-test/newt/oe_test_newt_install_and_remove_newt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src newt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available newt | grep -v \.src | grep newt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm newt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y newt + CHECK_RESULT $? 0 0 "install newt failed" + SLEEP_WAIT 1 + dnf remove -y newt + CHECK_RESULT $? 0 0 "remove newt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/newt/oe_test_newt_install_and_remove_python2-newt.sh b/testcases/cli-test/newt/oe_test_newt_install_and_remove_python2-newt.sh new file mode 100644 index 0000000000000000000000000000000000000000..fba706367d207410ba36a72fac20d16c2b0b511c --- /dev/null +++ b/testcases/cli-test/newt/oe_test_newt_install_and_remove_python2-newt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src newt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-newt | grep -v \.src | grep python2-newt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-newt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-newt + CHECK_RESULT $? 0 0 "install python2-newt failed" + SLEEP_WAIT 1 + dnf remove -y python2-newt + CHECK_RESULT $? 0 0 "remove python2-newt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/newt/oe_test_newt_install_and_remove_python3-newt.sh b/testcases/cli-test/newt/oe_test_newt_install_and_remove_python3-newt.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f1cc5655f6d6aeb4e46fc4f94dda70f59ea4cbd --- /dev/null +++ b/testcases/cli-test/newt/oe_test_newt_install_and_remove_python3-newt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src newt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-newt | grep -v \.src | grep python3-newt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-newt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-newt + CHECK_RESULT $? 0 0 "install python3-newt failed" + SLEEP_WAIT 1 + dnf remove -y python3-newt + CHECK_RESULT $? 0 0 "remove python3-newt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_libnfsidmap.sh b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_libnfsidmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed2e329773e6aa5841df77642de16bde373f42cf --- /dev/null +++ b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_libnfsidmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nfs-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnfsidmap | grep -v \.src | grep libnfsidmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnfsidmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnfsidmap + CHECK_RESULT $? 0 0 "install libnfsidmap failed" + SLEEP_WAIT 1 + dnf remove -y libnfsidmap + CHECK_RESULT $? 0 0 "remove libnfsidmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-debuginfo.sh b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4138149628308ada8035a115434b0590959cab4 --- /dev/null +++ b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nfs-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nfs-utils-debuginfo | grep -v \.src | grep nfs-utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nfs-utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nfs-utils-debuginfo + CHECK_RESULT $? 0 0 "install nfs-utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y nfs-utils-debuginfo + CHECK_RESULT $? 0 0 "remove nfs-utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-debugsource.sh b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7086b8f3af281844c80342997f8cc8dd96daf3dc --- /dev/null +++ b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nfs-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nfs-utils-debugsource | grep -v \.src | grep nfs-utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nfs-utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nfs-utils-debugsource + CHECK_RESULT $? 0 0 "install nfs-utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y nfs-utils-debugsource + CHECK_RESULT $? 0 0 "remove nfs-utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-devel.sh b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..91b92f1c6d18ae8294328e78483d1df1ee3cf7ae --- /dev/null +++ b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nfs-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nfs-utils-devel | grep -v \.src | grep nfs-utils-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nfs-utils-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nfs-utils-devel + CHECK_RESULT $? 0 0 "install nfs-utils-devel failed" + SLEEP_WAIT 1 + dnf remove -y nfs-utils-devel + CHECK_RESULT $? 0 0 "remove nfs-utils-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-help.sh b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b496e1e913a11c15206b27961f7ee9de50e2eecc --- /dev/null +++ b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nfs-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nfs-utils-help | grep -v \.src | grep nfs-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nfs-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nfs-utils-help + CHECK_RESULT $? 0 0 "install nfs-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y nfs-utils-help + CHECK_RESULT $? 0 0 "remove nfs-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-min.sh b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-min.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f8e37a2c869f21c13564a09088bf4b196562678 --- /dev/null +++ b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils-min.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nfs-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nfs-utils-min | grep -v \.src | grep nfs-utils-min + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nfs-utils-min" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nfs-utils-min + CHECK_RESULT $? 0 0 "install nfs-utils-min failed" + SLEEP_WAIT 1 + dnf remove -y nfs-utils-min + CHECK_RESULT $? 0 0 "remove nfs-utils-min failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils.sh b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..43d97e94d98bb32e81fe568f828d1bd397009f95 --- /dev/null +++ b/testcases/cli-test/nfs-utils/oe_test_nfs-utils_install_and_remove_nfs-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nfs-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nfs-utils | grep -v \.src | grep nfs-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nfs-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nfs-utils + CHECK_RESULT $? 0 0 "install nfs-utils failed" + SLEEP_WAIT 1 + dnf remove -y nfs-utils + CHECK_RESULT $? 0 0 "remove nfs-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_libnghttp2-devel.sh b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_libnghttp2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7098217eec54dd1e36b75215f4fd5240406dbe8a --- /dev/null +++ b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_libnghttp2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nghttp2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnghttp2-devel | grep -v \.src | grep libnghttp2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnghttp2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnghttp2-devel + CHECK_RESULT $? 0 0 "install libnghttp2-devel failed" + SLEEP_WAIT 1 + dnf remove -y libnghttp2-devel + CHECK_RESULT $? 0 0 "remove libnghttp2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_libnghttp2.sh b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_libnghttp2.sh new file mode 100644 index 0000000000000000000000000000000000000000..c22eaeca322a153b8bc4511cbb2f27c608567120 --- /dev/null +++ b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_libnghttp2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nghttp2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libnghttp2 | grep -v \.src | grep libnghttp2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libnghttp2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libnghttp2 + CHECK_RESULT $? 0 0 "install libnghttp2 failed" + SLEEP_WAIT 1 + dnf remove -y libnghttp2 + CHECK_RESULT $? 0 0 "remove libnghttp2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2-debuginfo.sh b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c8ff4cc10a15e0b9a03600d6b0437b7479c8e75 --- /dev/null +++ b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nghttp2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nghttp2-debuginfo | grep -v \.src | grep nghttp2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nghttp2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nghttp2-debuginfo + CHECK_RESULT $? 0 0 "install nghttp2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y nghttp2-debuginfo + CHECK_RESULT $? 0 0 "remove nghttp2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2-debugsource.sh b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c7f5f1f2774b984bd0d5305749adea3767e27e5 --- /dev/null +++ b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nghttp2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nghttp2-debugsource | grep -v \.src | grep nghttp2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nghttp2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nghttp2-debugsource + CHECK_RESULT $? 0 0 "install nghttp2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y nghttp2-debugsource + CHECK_RESULT $? 0 0 "remove nghttp2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2-help.sh b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..52e8802ad77218ff49a4f15b96b13272a8786d0b --- /dev/null +++ b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nghttp2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nghttp2-help | grep -v \.src | grep nghttp2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nghttp2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nghttp2-help + CHECK_RESULT $? 0 0 "install nghttp2-help failed" + SLEEP_WAIT 1 + dnf remove -y nghttp2-help + CHECK_RESULT $? 0 0 "remove nghttp2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2.sh b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a3453e16e20353d322a67d49fb48173902e8604 --- /dev/null +++ b/testcases/cli-test/nghttp2/oe_test_nghttp2_install_and_remove_nghttp2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nghttp2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nghttp2 | grep -v \.src | grep nghttp2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nghttp2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nghttp2 + CHECK_RESULT $? 0 0 "install nghttp2 failed" + SLEEP_WAIT 1 + dnf remove -y nghttp2 + CHECK_RESULT $? 0 0 "remove nghttp2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ninja-build/oe_test_ninja-build_install_and_remove_ninja-build-debuginfo.sh b/testcases/cli-test/ninja-build/oe_test_ninja-build_install_and_remove_ninja-build-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..89e4e2c325dce9224bc063f342b4de1b130e36eb --- /dev/null +++ b/testcases/cli-test/ninja-build/oe_test_ninja-build_install_and_remove_ninja-build-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ninja-build +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ninja-build-debuginfo | grep -v \.src | grep ninja-build-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ninja-build-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ninja-build-debuginfo + CHECK_RESULT $? 0 0 "install ninja-build-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ninja-build-debuginfo + CHECK_RESULT $? 0 0 "remove ninja-build-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ninja-build/oe_test_ninja-build_install_and_remove_ninja-build-debugsource.sh b/testcases/cli-test/ninja-build/oe_test_ninja-build_install_and_remove_ninja-build-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..383b13923be1659597595bd9e3cc1865946c746d --- /dev/null +++ b/testcases/cli-test/ninja-build/oe_test_ninja-build_install_and_remove_ninja-build-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ninja-build +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ninja-build-debugsource | grep -v \.src | grep ninja-build-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ninja-build-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ninja-build-debugsource + CHECK_RESULT $? 0 0 "install ninja-build-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ninja-build-debugsource + CHECK_RESULT $? 0 0 "remove ninja-build-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ninja-build/oe_test_ninja-build_install_and_remove_ninja-build.sh b/testcases/cli-test/ninja-build/oe_test_ninja-build_install_and_remove_ninja-build.sh new file mode 100644 index 0000000000000000000000000000000000000000..90dee50fda878b7ae01dd8da5853c3d43b03d4a8 --- /dev/null +++ b/testcases/cli-test/ninja-build/oe_test_ninja-build_install_and_remove_ninja-build.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ninja-build +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ninja-build | grep -v \.src | grep ninja-build + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ninja-build" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ninja-build + CHECK_RESULT $? 0 0 "install ninja-build failed" + SLEEP_WAIT 1 + dnf remove -y ninja-build + CHECK_RESULT $? 0 0 "remove ninja-build failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap-debuginfo.sh b/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4f8290b6b2949e3883db6f384790d543b640c58 --- /dev/null +++ b/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nmap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nmap-debuginfo | grep -v \.src | grep nmap-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nmap-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nmap-debuginfo + CHECK_RESULT $? 0 0 "install nmap-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y nmap-debuginfo + CHECK_RESULT $? 0 0 "remove nmap-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap-debugsource.sh b/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9129dcb05ff3cd95667b8cf0464e358e53b2fbf --- /dev/null +++ b/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nmap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nmap-debugsource | grep -v \.src | grep nmap-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nmap-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nmap-debugsource + CHECK_RESULT $? 0 0 "install nmap-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y nmap-debugsource + CHECK_RESULT $? 0 0 "remove nmap-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap-help.sh b/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a7070d8600f3575725c3462dca976a63242970d --- /dev/null +++ b/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nmap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nmap-help | grep -v \.src | grep nmap-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nmap-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nmap-help + CHECK_RESULT $? 0 0 "install nmap-help failed" + SLEEP_WAIT 1 + dnf remove -y nmap-help + CHECK_RESULT $? 0 0 "remove nmap-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap.sh b/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..453539ee986b04a780774bee0eb1a48ecab0188a --- /dev/null +++ b/testcases/cli-test/nmap/oe_test_nmap_install_and_remove_nmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nmap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nmap | grep -v \.src | grep nmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nmap + CHECK_RESULT $? 0 0 "install nmap failed" + SLEEP_WAIT 1 + dnf remove -y nmap + CHECK_RESULT $? 0 0 "remove nmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon-debuginfo.sh b/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6a0d0de5d0c9e0d01becab73b7d90c940c5ad71 --- /dev/null +++ b/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src notification-daemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available notification-daemon-debuginfo | grep -v \.src | grep notification-daemon-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm notification-daemon-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y notification-daemon-debuginfo + CHECK_RESULT $? 0 0 "install notification-daemon-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y notification-daemon-debuginfo + CHECK_RESULT $? 0 0 "remove notification-daemon-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon-debugsource.sh b/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a754fea542ce81dddbf77062b421611b7f5a2ca2 --- /dev/null +++ b/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src notification-daemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available notification-daemon-debugsource | grep -v \.src | grep notification-daemon-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm notification-daemon-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y notification-daemon-debugsource + CHECK_RESULT $? 0 0 "install notification-daemon-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y notification-daemon-debugsource + CHECK_RESULT $? 0 0 "remove notification-daemon-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon-help.sh b/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6238578a02d541c6e7613cbc6a90bd128998837 --- /dev/null +++ b/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src notification-daemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available notification-daemon-help | grep -v \.src | grep notification-daemon-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm notification-daemon-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y notification-daemon-help + CHECK_RESULT $? 0 0 "install notification-daemon-help failed" + SLEEP_WAIT 1 + dnf remove -y notification-daemon-help + CHECK_RESULT $? 0 0 "remove notification-daemon-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon.sh b/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a2b99da371e0d0234aef04d61d84cf9352d5b13 --- /dev/null +++ b/testcases/cli-test/notification-daemon/oe_test_notification-daemon_install_and_remove_notification-daemon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src notification-daemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available notification-daemon | grep -v \.src | grep notification-daemon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm notification-daemon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y notification-daemon + CHECK_RESULT $? 0 0 "install notification-daemon failed" + SLEEP_WAIT 1 + dnf remove -y notification-daemon + CHECK_RESULT $? 0 0 "remove notification-daemon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth-debuginfo.sh b/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d5dbd5de4f6073e5380e9bc7b098315c1833f4e --- /dev/null +++ b/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src npth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available npth-debuginfo | grep -v \.src | grep npth-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm npth-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y npth-debuginfo + CHECK_RESULT $? 0 0 "install npth-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y npth-debuginfo + CHECK_RESULT $? 0 0 "remove npth-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth-debugsource.sh b/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c92bcfefb6058b88670a0e6e76e16831323e4ca --- /dev/null +++ b/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src npth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available npth-debugsource | grep -v \.src | grep npth-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm npth-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y npth-debugsource + CHECK_RESULT $? 0 0 "install npth-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y npth-debugsource + CHECK_RESULT $? 0 0 "remove npth-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth-devel.sh b/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a95c13573b5f486013fa9e7d7667a6cd68daaf37 --- /dev/null +++ b/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src npth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available npth-devel | grep -v \.src | grep npth-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm npth-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y npth-devel + CHECK_RESULT $? 0 0 "install npth-devel failed" + SLEEP_WAIT 1 + dnf remove -y npth-devel + CHECK_RESULT $? 0 0 "remove npth-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth.sh b/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth.sh new file mode 100644 index 0000000000000000000000000000000000000000..45e1b1e36c8817ca07278b93d273d7211b2fe29b --- /dev/null +++ b/testcases/cli-test/npth/oe_test_npth_install_and_remove_npth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src npth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available npth | grep -v \.src | grep npth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm npth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y npth + CHECK_RESULT $? 0 0 "install npth failed" + SLEEP_WAIT 1 + dnf remove -y npth + CHECK_RESULT $? 0 0 "remove npth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr-debuginfo.sh b/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..83dad6e21e9d11315e598180370fee172c257a6b --- /dev/null +++ b/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nspr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nspr-debuginfo | grep -v \.src | grep nspr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nspr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nspr-debuginfo + CHECK_RESULT $? 0 0 "install nspr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y nspr-debuginfo + CHECK_RESULT $? 0 0 "remove nspr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr-debugsource.sh b/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..24aa2a4daafd70b93c6d7c30ea0d2ded7b552ec2 --- /dev/null +++ b/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nspr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nspr-debugsource | grep -v \.src | grep nspr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nspr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nspr-debugsource + CHECK_RESULT $? 0 0 "install nspr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y nspr-debugsource + CHECK_RESULT $? 0 0 "remove nspr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr-devel.sh b/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..93dff15d79abf4783529376a0f53e85b48f619e7 --- /dev/null +++ b/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nspr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nspr-devel | grep -v \.src | grep nspr-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nspr-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nspr-devel + CHECK_RESULT $? 0 0 "install nspr-devel failed" + SLEEP_WAIT 1 + dnf remove -y nspr-devel + CHECK_RESULT $? 0 0 "remove nspr-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr.sh b/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cc58266fa0a0fa374a16834722e1bf61ab8b9ca --- /dev/null +++ b/testcases/cli-test/nspr/oe_test_nspr_install_and_remove_nspr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nspr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nspr | grep -v \.src | grep nspr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nspr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nspr + CHECK_RESULT $? 0 0 "install nspr failed" + SLEEP_WAIT 1 + dnf remove -y nspr + CHECK_RESULT $? 0 0 "remove nspr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-debuginfo.sh b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6689d660ea94dffd7c09d38da9ee3dc10c5f45a1 --- /dev/null +++ b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss-debuginfo | grep -v \.src | grep nss-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss-debuginfo + CHECK_RESULT $? 0 0 "install nss-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y nss-debuginfo + CHECK_RESULT $? 0 0 "remove nss-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-debugsource.sh b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf68a3baafde343f83a0dd7069460dc3f0c38c69 --- /dev/null +++ b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss-debugsource | grep -v \.src | grep nss-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss-debugsource + CHECK_RESULT $? 0 0 "install nss-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y nss-debugsource + CHECK_RESULT $? 0 0 "remove nss-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-devel.sh b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..930bcee5729369f816b0d06f4c84b8a8144a67e8 --- /dev/null +++ b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss-devel | grep -v \.src | grep nss-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss-devel + CHECK_RESULT $? 0 0 "install nss-devel failed" + SLEEP_WAIT 1 + dnf remove -y nss-devel + CHECK_RESULT $? 0 0 "remove nss-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-help.sh b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9531394a8bc5df7bf42fdd00651abd6a799dbf70 --- /dev/null +++ b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss-help | grep -v \.src | grep nss-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss-help + CHECK_RESULT $? 0 0 "install nss-help failed" + SLEEP_WAIT 1 + dnf remove -y nss-help + CHECK_RESULT $? 0 0 "remove nss-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-softokn-devel.sh b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-softokn-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0a5799f8e90ddcbe370bb51e262d480ccb2cb99 --- /dev/null +++ b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-softokn-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss-softokn-devel | grep -v \.src | grep nss-softokn-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss-softokn-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss-softokn-devel + CHECK_RESULT $? 0 0 "install nss-softokn-devel failed" + SLEEP_WAIT 1 + dnf remove -y nss-softokn-devel + CHECK_RESULT $? 0 0 "remove nss-softokn-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-softokn.sh b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-softokn.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3fb70187611f963244261c34577f88ee82a9a03 --- /dev/null +++ b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-softokn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss-softokn | grep -v \.src | grep nss-softokn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss-softokn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss-softokn + CHECK_RESULT $? 0 0 "install nss-softokn failed" + SLEEP_WAIT 1 + dnf remove -y nss-softokn + CHECK_RESULT $? 0 0 "remove nss-softokn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-util-devel.sh b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-util-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3368663f559bfdff448136c345915cdc0ae5b18 --- /dev/null +++ b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-util-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss-util-devel | grep -v \.src | grep nss-util-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss-util-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss-util-devel + CHECK_RESULT $? 0 0 "install nss-util-devel failed" + SLEEP_WAIT 1 + dnf remove -y nss-util-devel + CHECK_RESULT $? 0 0 "remove nss-util-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-util.sh b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-util.sh new file mode 100644 index 0000000000000000000000000000000000000000..aff4b0b2ab7f9049128307614395104ac5edbd33 --- /dev/null +++ b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss-util.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss-util | grep -v \.src | grep nss-util + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss-util" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss-util + CHECK_RESULT $? 0 0 "install nss-util failed" + SLEEP_WAIT 1 + dnf remove -y nss-util + CHECK_RESULT $? 0 0 "remove nss-util failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss.sh b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss.sh new file mode 100644 index 0000000000000000000000000000000000000000..27dee862448944852671088b77aa07f41e5fdf61 --- /dev/null +++ b/testcases/cli-test/nss/oe_test_nss_install_and_remove_nss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss | grep -v \.src | grep nss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss + CHECK_RESULT $? 0 0 "install nss failed" + SLEEP_WAIT 1 + dnf remove -y nss + CHECK_RESULT $? 0 0 "remove nss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper-debuginfo.sh b/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..441d167f403bfc4db67c434851cd1500a2b74b4a --- /dev/null +++ b/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss_wrapper-debuginfo | grep -v \.src | grep nss_wrapper-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss_wrapper-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss_wrapper-debuginfo + CHECK_RESULT $? 0 0 "install nss_wrapper-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y nss_wrapper-debuginfo + CHECK_RESULT $? 0 0 "remove nss_wrapper-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper-debugsource.sh b/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..05a01796385f9ec095e5722bb504f78bc93d9bb3 --- /dev/null +++ b/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss_wrapper-debugsource | grep -v \.src | grep nss_wrapper-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss_wrapper-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss_wrapper-debugsource + CHECK_RESULT $? 0 0 "install nss_wrapper-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y nss_wrapper-debugsource + CHECK_RESULT $? 0 0 "remove nss_wrapper-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper-help.sh b/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..91d73dfc9c3117381ade8f148145c6294f81dfbb --- /dev/null +++ b/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss_wrapper-help | grep -v \.src | grep nss_wrapper-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss_wrapper-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss_wrapper-help + CHECK_RESULT $? 0 0 "install nss_wrapper-help failed" + SLEEP_WAIT 1 + dnf remove -y nss_wrapper-help + CHECK_RESULT $? 0 0 "remove nss_wrapper-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper.sh b/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f2e0838de394cbca9be437b53b8dfb8a8e94ece --- /dev/null +++ b/testcases/cli-test/nss_wrapper/oe_test_nss_wrapper_install_and_remove_nss_wrapper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src nss_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available nss_wrapper | grep -v \.src | grep nss_wrapper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm nss_wrapper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y nss_wrapper + CHECK_RESULT $? 0 0 "install nss_wrapper failed" + SLEEP_WAIT 1 + dnf remove -y nss_wrapper + CHECK_RESULT $? 0 0 "remove nss_wrapper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-debuginfo.sh b/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ef88e5a8d1b848bcf6f5833da125866bf2eadf4 --- /dev/null +++ b/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numactl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available numactl-debuginfo | grep -v \.src | grep numactl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm numactl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y numactl-debuginfo + CHECK_RESULT $? 0 0 "install numactl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y numactl-debuginfo + CHECK_RESULT $? 0 0 "remove numactl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-debugsource.sh b/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d351b9012c6c6364e05328e8a23cf307eaf1581c --- /dev/null +++ b/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numactl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available numactl-debugsource | grep -v \.src | grep numactl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm numactl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y numactl-debugsource + CHECK_RESULT $? 0 0 "install numactl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y numactl-debugsource + CHECK_RESULT $? 0 0 "remove numactl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-devel.sh b/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..77e0e21e367a686d545e787951f07a421aaa9af1 --- /dev/null +++ b/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numactl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available numactl-devel | grep -v \.src | grep numactl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm numactl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y numactl-devel + CHECK_RESULT $? 0 0 "install numactl-devel failed" + SLEEP_WAIT 1 + dnf remove -y numactl-devel + CHECK_RESULT $? 0 0 "remove numactl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-libs.sh b/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..46e9004c4e4ca55e1602f641ee71c6873b5319a8 --- /dev/null +++ b/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numactl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available numactl-libs | grep -v \.src | grep numactl-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm numactl-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y numactl-libs + CHECK_RESULT $? 0 0 "install numactl-libs failed" + SLEEP_WAIT 1 + dnf remove -y numactl-libs + CHECK_RESULT $? 0 0 "remove numactl-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl.sh b/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl.sh new file mode 100644 index 0000000000000000000000000000000000000000..76050cfa2dfebc7a9a1a37ff08f494639685302f --- /dev/null +++ b/testcases/cli-test/numactl/oe_test_numactl_install_and_remove_numactl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numactl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available numactl | grep -v \.src | grep numactl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm numactl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y numactl + CHECK_RESULT $? 0 0 "install numactl failed" + SLEEP_WAIT 1 + dnf remove -y numactl + CHECK_RESULT $? 0 0 "remove numactl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_numpy-debuginfo.sh b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_numpy-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fca40f2d1aaa7e50345fc3b284d239e10141ced3 --- /dev/null +++ b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_numpy-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numpy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available numpy-debuginfo | grep -v \.src | grep numpy-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm numpy-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y numpy-debuginfo + CHECK_RESULT $? 0 0 "install numpy-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y numpy-debuginfo + CHECK_RESULT $? 0 0 "remove numpy-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_numpy-debugsource.sh b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_numpy-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ffaee3b804bd95616089d06f87d91d663027766 --- /dev/null +++ b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_numpy-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numpy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available numpy-debugsource | grep -v \.src | grep numpy-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm numpy-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y numpy-debugsource + CHECK_RESULT $? 0 0 "install numpy-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y numpy-debugsource + CHECK_RESULT $? 0 0 "remove numpy-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_numpy.sh b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_numpy.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c8451d7c053ae8eb5243059582c1456a51adf6a --- /dev/null +++ b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_numpy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numpy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available numpy | grep -v \.src | grep numpy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm numpy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y numpy + CHECK_RESULT $? 0 0 "install numpy failed" + SLEEP_WAIT 1 + dnf remove -y numpy + CHECK_RESULT $? 0 0 "remove numpy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python2-numpy-f2py.sh b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python2-numpy-f2py.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0a194af1924924c7a325c864dc68868572e20c5 --- /dev/null +++ b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python2-numpy-f2py.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numpy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-numpy-f2py | grep -v \.src | grep python2-numpy-f2py + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-numpy-f2py" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-numpy-f2py + CHECK_RESULT $? 0 0 "install python2-numpy-f2py failed" + SLEEP_WAIT 1 + dnf remove -y python2-numpy-f2py + CHECK_RESULT $? 0 0 "remove python2-numpy-f2py failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python2-numpy.sh b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python2-numpy.sh new file mode 100644 index 0000000000000000000000000000000000000000..d24ba584582e932e2e4191a54060c2d37c94fad1 --- /dev/null +++ b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python2-numpy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numpy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-numpy | grep -v \.src | grep python2-numpy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-numpy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-numpy + CHECK_RESULT $? 0 0 "install python2-numpy failed" + SLEEP_WAIT 1 + dnf remove -y python2-numpy + CHECK_RESULT $? 0 0 "remove python2-numpy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python3-numpy-f2py.sh b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python3-numpy-f2py.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd005ac67076bbc665bd56016ce7d960df0caa9e --- /dev/null +++ b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python3-numpy-f2py.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numpy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-numpy-f2py | grep -v \.src | grep python3-numpy-f2py + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-numpy-f2py" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-numpy-f2py + CHECK_RESULT $? 0 0 "install python3-numpy-f2py failed" + SLEEP_WAIT 1 + dnf remove -y python3-numpy-f2py + CHECK_RESULT $? 0 0 "remove python3-numpy-f2py failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python3-numpy.sh b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python3-numpy.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcc49c26177c7978a5677e8a2be7f89843d5a3df --- /dev/null +++ b/testcases/cli-test/numpy/oe_test_numpy_install_and_remove_python3-numpy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src numpy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-numpy | grep -v \.src | grep python3-numpy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-numpy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-numpy + CHECK_RESULT $? 0 0 "install python3-numpy failed" + SLEEP_WAIT 1 + dnf remove -y python3-numpy + CHECK_RESULT $? 0 0 "remove python3-numpy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-debuginfo.sh b/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9f488104a96504aa03e77075c6a59c0d0c0d838 --- /dev/null +++ b/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ocaml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ocaml-debuginfo | grep -v \.src | grep ocaml-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ocaml-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ocaml-debuginfo + CHECK_RESULT $? 0 0 "install ocaml-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ocaml-debuginfo + CHECK_RESULT $? 0 0 "remove ocaml-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-debugsource.sh b/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfca0487f9610fe027b83deb3fbb5cbcc4a841de --- /dev/null +++ b/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ocaml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ocaml-debugsource | grep -v \.src | grep ocaml-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ocaml-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ocaml-debugsource + CHECK_RESULT $? 0 0 "install ocaml-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ocaml-debugsource + CHECK_RESULT $? 0 0 "remove ocaml-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-devel.sh b/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..306480a6ad3a387bf1ca0243aaac812fc8d5a517 --- /dev/null +++ b/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ocaml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ocaml-devel | grep -v \.src | grep ocaml-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ocaml-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ocaml-devel + CHECK_RESULT $? 0 0 "install ocaml-devel failed" + SLEEP_WAIT 1 + dnf remove -y ocaml-devel + CHECK_RESULT $? 0 0 "remove ocaml-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-help.sh b/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfe2c80570467e9d844c33874d94dc4d292d9160 --- /dev/null +++ b/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ocaml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ocaml-help | grep -v \.src | grep ocaml-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ocaml-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ocaml-help + CHECK_RESULT $? 0 0 "install ocaml-help failed" + SLEEP_WAIT 1 + dnf remove -y ocaml-help + CHECK_RESULT $? 0 0 "remove ocaml-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml.sh b/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e2b689b6aa764938fe44ebdd93004d17776082a --- /dev/null +++ b/testcases/cli-test/ocaml/oe_test_ocaml_install_and_remove_ocaml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ocaml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ocaml | grep -v \.src | grep ocaml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ocaml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ocaml + CHECK_RESULT $? 0 0 "install ocaml failed" + SLEEP_WAIT 1 + dnf remove -y ocaml + CHECK_RESULT $? 0 0 "remove ocaml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-debuginfo.sh b/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..82269e1422d0870322965d2a1f4d19bc2f4b8746 --- /dev/null +++ b/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src open-iscsi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available open-iscsi-debuginfo | grep -v \.src | grep open-iscsi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm open-iscsi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y open-iscsi-debuginfo + CHECK_RESULT $? 0 0 "install open-iscsi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y open-iscsi-debuginfo + CHECK_RESULT $? 0 0 "remove open-iscsi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-debugsource.sh b/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9875b5c35ec27e902a60a8b7c7c1aea767274c2 --- /dev/null +++ b/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src open-iscsi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available open-iscsi-debugsource | grep -v \.src | grep open-iscsi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm open-iscsi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y open-iscsi-debugsource + CHECK_RESULT $? 0 0 "install open-iscsi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y open-iscsi-debugsource + CHECK_RESULT $? 0 0 "remove open-iscsi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-devel.sh b/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d74de289a062f5f7119ff5daf199747c5a8b71e --- /dev/null +++ b/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src open-iscsi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available open-iscsi-devel | grep -v \.src | grep open-iscsi-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm open-iscsi-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y open-iscsi-devel + CHECK_RESULT $? 0 0 "install open-iscsi-devel failed" + SLEEP_WAIT 1 + dnf remove -y open-iscsi-devel + CHECK_RESULT $? 0 0 "remove open-iscsi-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-help.sh b/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..05b2197f760fa66269eaecbc0d6ec8f858804693 --- /dev/null +++ b/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src open-iscsi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available open-iscsi-help | grep -v \.src | grep open-iscsi-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm open-iscsi-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y open-iscsi-help + CHECK_RESULT $? 0 0 "install open-iscsi-help failed" + SLEEP_WAIT 1 + dnf remove -y open-iscsi-help + CHECK_RESULT $? 0 0 "remove open-iscsi-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi.sh b/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi.sh new file mode 100644 index 0000000000000000000000000000000000000000..c42c364f209278ca563e2192fd510393af091edf --- /dev/null +++ b/testcases/cli-test/open-iscsi/oe_test_open-iscsi_install_and_remove_open-iscsi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src open-iscsi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available open-iscsi | grep -v \.src | grep open-iscsi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm open-iscsi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y open-iscsi + CHECK_RESULT $? 0 0 "install open-iscsi failed" + SLEEP_WAIT 1 + dnf remove -y open-iscsi + CHECK_RESULT $? 0 0 "remove open-iscsi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/open-sans-fonts/oe_test_open-sans-fonts_install_and_remove_open-sans-fonts.sh b/testcases/cli-test/open-sans-fonts/oe_test_open-sans-fonts_install_and_remove_open-sans-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..60fad28c30050671988c54baff78b40e605b9210 --- /dev/null +++ b/testcases/cli-test/open-sans-fonts/oe_test_open-sans-fonts_install_and_remove_open-sans-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src open-sans-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available open-sans-fonts | grep -v \.src | grep open-sans-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm open-sans-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y open-sans-fonts + CHECK_RESULT $? 0 0 "install open-sans-fonts failed" + SLEEP_WAIT 1 + dnf remove -y open-sans-fonts + CHECK_RESULT $? 0 0 "remove open-sans-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas-debuginfo.sh b/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..dee874ffa3ca16150b3360306b23d2382ac19d32 --- /dev/null +++ b/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openblas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openblas-debuginfo | grep -v \.src | grep openblas-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openblas-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openblas-debuginfo + CHECK_RESULT $? 0 0 "install openblas-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y openblas-debuginfo + CHECK_RESULT $? 0 0 "remove openblas-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas-debugsource.sh b/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e013afefaf50e193d8efb932de2e56ef71903873 --- /dev/null +++ b/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openblas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openblas-debugsource | grep -v \.src | grep openblas-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openblas-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openblas-debugsource + CHECK_RESULT $? 0 0 "install openblas-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y openblas-debugsource + CHECK_RESULT $? 0 0 "remove openblas-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas-devel.sh b/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4b1f06fc5c467b27aabf1145f013050b82e3bf7 --- /dev/null +++ b/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openblas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openblas-devel | grep -v \.src | grep openblas-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openblas-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openblas-devel + CHECK_RESULT $? 0 0 "install openblas-devel failed" + SLEEP_WAIT 1 + dnf remove -y openblas-devel + CHECK_RESULT $? 0 0 "remove openblas-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas.sh b/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas.sh new file mode 100644 index 0000000000000000000000000000000000000000..7de02c35555de8618bcaea62201ba0b9d8516fbf --- /dev/null +++ b/testcases/cli-test/openblas/oe_test_openblas_install_and_remove_openblas.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openblas +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openblas | grep -v \.src | grep openblas + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openblas" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openblas + CHECK_RESULT $? 0 0 "install openblas failed" + SLEEP_WAIT 1 + dnf remove -y openblas + CHECK_RESULT $? 0 0 "remove openblas failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade-debuginfo.sh b/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..dde8fd2bb57874637b624a4119959eac64f35c34 --- /dev/null +++ b/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openjade +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openjade-debuginfo | grep -v \.src | grep openjade-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openjade-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openjade-debuginfo + CHECK_RESULT $? 0 0 "install openjade-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y openjade-debuginfo + CHECK_RESULT $? 0 0 "remove openjade-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade-debugsource.sh b/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5da7f9b31b28c0c1008d0a14c8b2e92331907f05 --- /dev/null +++ b/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openjade +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openjade-debugsource | grep -v \.src | grep openjade-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openjade-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openjade-debugsource + CHECK_RESULT $? 0 0 "install openjade-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y openjade-debugsource + CHECK_RESULT $? 0 0 "remove openjade-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade-help.sh b/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..99ce4d34b550c3e49fd161cd2e617a7f333d718c --- /dev/null +++ b/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openjade +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openjade-help | grep -v \.src | grep openjade-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openjade-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openjade-help + CHECK_RESULT $? 0 0 "install openjade-help failed" + SLEEP_WAIT 1 + dnf remove -y openjade-help + CHECK_RESULT $? 0 0 "remove openjade-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade.sh b/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade.sh new file mode 100644 index 0000000000000000000000000000000000000000..66bf54ff9498508b83185fd119068056d4defb23 --- /dev/null +++ b/testcases/cli-test/openjade/oe_test_openjade_install_and_remove_openjade.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openjade +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openjade | grep -v \.src | grep openjade + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openjade" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openjade + CHECK_RESULT $? 0 0 "install openjade failed" + SLEEP_WAIT 1 + dnf remove -y openjade + CHECK_RESULT $? 0 0 "remove openjade failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-debuginfo.sh b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ec476da6977de85d32260bca7ad713320e8bd3b --- /dev/null +++ b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openjpeg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openjpeg2-debuginfo | grep -v \.src | grep openjpeg2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openjpeg2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openjpeg2-debuginfo + CHECK_RESULT $? 0 0 "install openjpeg2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y openjpeg2-debuginfo + CHECK_RESULT $? 0 0 "remove openjpeg2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-debugsource.sh b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..91015e1a35ed8ddd1d54e901219465be44c1f84a --- /dev/null +++ b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openjpeg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openjpeg2-debugsource | grep -v \.src | grep openjpeg2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openjpeg2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openjpeg2-debugsource + CHECK_RESULT $? 0 0 "install openjpeg2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y openjpeg2-debugsource + CHECK_RESULT $? 0 0 "remove openjpeg2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-devel.sh b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4cf7fbe66d31424812dac8b15d9c5157f31dc92 --- /dev/null +++ b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openjpeg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openjpeg2-devel | grep -v \.src | grep openjpeg2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openjpeg2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openjpeg2-devel + CHECK_RESULT $? 0 0 "install openjpeg2-devel failed" + SLEEP_WAIT 1 + dnf remove -y openjpeg2-devel + CHECK_RESULT $? 0 0 "remove openjpeg2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-help.sh b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..36f247e1fd9e0d31942e1e8a8c8f2711399e3454 --- /dev/null +++ b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openjpeg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openjpeg2-help | grep -v \.src | grep openjpeg2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openjpeg2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openjpeg2-help + CHECK_RESULT $? 0 0 "install openjpeg2-help failed" + SLEEP_WAIT 1 + dnf remove -y openjpeg2-help + CHECK_RESULT $? 0 0 "remove openjpeg2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-tools.sh b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..0711f44914e4e931f1fc755f444f87d71f0d3ea3 --- /dev/null +++ b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openjpeg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openjpeg2-tools | grep -v \.src | grep openjpeg2-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openjpeg2-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openjpeg2-tools + CHECK_RESULT $? 0 0 "install openjpeg2-tools failed" + SLEEP_WAIT 1 + dnf remove -y openjpeg2-tools + CHECK_RESULT $? 0 0 "remove openjpeg2-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2.sh b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1ba63929843c86bc82c77a45b6b37ca67ffec1c --- /dev/null +++ b/testcases/cli-test/openjpeg2/oe_test_openjpeg2_install_and_remove_openjpeg2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openjpeg2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openjpeg2 | grep -v \.src | grep openjpeg2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openjpeg2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openjpeg2 + CHECK_RESULT $? 0 0 "install openjpeg2 failed" + SLEEP_WAIT 1 + dnf remove -y openjpeg2 + CHECK_RESULT $? 0 0 "remove openjpeg2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-clients.sh b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-clients.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1ce5952f27243fe4db6ec364ba6302d8021a13d --- /dev/null +++ b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-clients.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openldap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openldap-clients | grep -v \.src | grep openldap-clients + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openldap-clients" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openldap-clients + CHECK_RESULT $? 0 0 "install openldap-clients failed" + SLEEP_WAIT 1 + dnf remove -y openldap-clients + CHECK_RESULT $? 0 0 "remove openldap-clients failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-debuginfo.sh b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6487ce8a2cc492bb980cff9e02a1b04a54800a47 --- /dev/null +++ b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openldap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openldap-debuginfo | grep -v \.src | grep openldap-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openldap-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openldap-debuginfo + CHECK_RESULT $? 0 0 "install openldap-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y openldap-debuginfo + CHECK_RESULT $? 0 0 "remove openldap-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-debugsource.sh b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0853505a4f3960e30c225c462b5718edbf3dc4d0 --- /dev/null +++ b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openldap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openldap-debugsource | grep -v \.src | grep openldap-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openldap-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openldap-debugsource + CHECK_RESULT $? 0 0 "install openldap-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y openldap-debugsource + CHECK_RESULT $? 0 0 "remove openldap-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-devel.sh b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbc0dfb97a8225878cd0d416e16930828fe42285 --- /dev/null +++ b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openldap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openldap-devel | grep -v \.src | grep openldap-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openldap-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openldap-devel + CHECK_RESULT $? 0 0 "install openldap-devel failed" + SLEEP_WAIT 1 + dnf remove -y openldap-devel + CHECK_RESULT $? 0 0 "remove openldap-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-help.sh b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d7c524c1d9414b641f9759195945f5c67d3af4f --- /dev/null +++ b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openldap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openldap-help | grep -v \.src | grep openldap-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openldap-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openldap-help + CHECK_RESULT $? 0 0 "install openldap-help failed" + SLEEP_WAIT 1 + dnf remove -y openldap-help + CHECK_RESULT $? 0 0 "remove openldap-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-servers.sh b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-servers.sh new file mode 100644 index 0000000000000000000000000000000000000000..dab18594a4919aef22018bc28c033433ce4feec6 --- /dev/null +++ b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap-servers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openldap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openldap-servers | grep -v \.src | grep openldap-servers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openldap-servers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openldap-servers + CHECK_RESULT $? 0 0 "install openldap-servers failed" + SLEEP_WAIT 1 + dnf remove -y openldap-servers + CHECK_RESULT $? 0 0 "remove openldap-servers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap.sh b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap.sh new file mode 100644 index 0000000000000000000000000000000000000000..a732c939460fe0823742d354361da0eb99165849 --- /dev/null +++ b/testcases/cli-test/openldap/oe_test_openldap_install_and_remove_openldap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openldap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openldap | grep -v \.src | grep openldap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openldap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openldap + CHECK_RESULT $? 0 0 "install openldap failed" + SLEEP_WAIT 1 + dnf remove -y openldap + CHECK_RESULT $? 0 0 "remove openldap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc-debuginfo.sh b/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c7ab34e12dd32dca3aad440c397aec07ac25ef2 --- /dev/null +++ b/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opensc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opensc-debuginfo | grep -v \.src | grep opensc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opensc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opensc-debuginfo + CHECK_RESULT $? 0 0 "install opensc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y opensc-debuginfo + CHECK_RESULT $? 0 0 "remove opensc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc-debugsource.sh b/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa92fe14579a664e85b7dd8cc2aab198be10dad1 --- /dev/null +++ b/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opensc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opensc-debugsource | grep -v \.src | grep opensc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opensc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opensc-debugsource + CHECK_RESULT $? 0 0 "install opensc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y opensc-debugsource + CHECK_RESULT $? 0 0 "remove opensc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc-help.sh b/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..96ed0656d690a416fd465c39606431290de49a5d --- /dev/null +++ b/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opensc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opensc-help | grep -v \.src | grep opensc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opensc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opensc-help + CHECK_RESULT $? 0 0 "install opensc-help failed" + SLEEP_WAIT 1 + dnf remove -y opensc-help + CHECK_RESULT $? 0 0 "remove opensc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc.sh b/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc.sh new file mode 100644 index 0000000000000000000000000000000000000000..92618cf4728ff9bf3190a837abf2e6a2e954e80d --- /dev/null +++ b/testcases/cli-test/opensc/oe_test_opensc_install_and_remove_opensc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opensc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opensc | grep -v \.src | grep opensc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opensc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opensc + CHECK_RESULT $? 0 0 "install opensc failed" + SLEEP_WAIT 1 + dnf remove -y opensc + CHECK_RESULT $? 0 0 "remove opensc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp-debuginfo.sh b/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4804cb54fa90719414230568e7a081cc81fc44e4 --- /dev/null +++ b/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opensp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opensp-debuginfo | grep -v \.src | grep opensp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opensp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opensp-debuginfo + CHECK_RESULT $? 0 0 "install opensp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y opensp-debuginfo + CHECK_RESULT $? 0 0 "remove opensp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp-debugsource.sh b/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..613574ef29f7c1d585b456f129b0dd763936f550 --- /dev/null +++ b/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opensp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opensp-debugsource | grep -v \.src | grep opensp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opensp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opensp-debugsource + CHECK_RESULT $? 0 0 "install opensp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y opensp-debugsource + CHECK_RESULT $? 0 0 "remove opensp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp-devel.sh b/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dead950146641740cb150b49b0ff933d3aa41fb9 --- /dev/null +++ b/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opensp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opensp-devel | grep -v \.src | grep opensp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opensp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opensp-devel + CHECK_RESULT $? 0 0 "install opensp-devel failed" + SLEEP_WAIT 1 + dnf remove -y opensp-devel + CHECK_RESULT $? 0 0 "remove opensp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp.sh b/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4be30e45b997d6bbd4078fc6e8b50220ecfb24b --- /dev/null +++ b/testcases/cli-test/opensp/oe_test_opensp_install_and_remove_opensp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opensp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opensp | grep -v \.src | grep opensp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opensp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opensp + CHECK_RESULT $? 0 0 "install opensp failed" + SLEEP_WAIT 1 + dnf remove -y opensp + CHECK_RESULT $? 0 0 "remove opensp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-askpass.sh b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-askpass.sh new file mode 100644 index 0000000000000000000000000000000000000000..c23d6849df0c6b91e2a371a18027c24dd1fb7188 --- /dev/null +++ b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-askpass.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssh-askpass | grep -v \.src | grep openssh-askpass + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssh-askpass" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssh-askpass + CHECK_RESULT $? 0 0 "install openssh-askpass failed" + SLEEP_WAIT 1 + dnf remove -y openssh-askpass + CHECK_RESULT $? 0 0 "remove openssh-askpass failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-clients.sh b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-clients.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e5624ac5be5ed6fa398b452165530717a237c21 --- /dev/null +++ b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-clients.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssh-clients | grep -v \.src | grep openssh-clients + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssh-clients" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssh-clients + CHECK_RESULT $? 0 0 "install openssh-clients failed" + SLEEP_WAIT 1 + dnf remove -y openssh-clients + CHECK_RESULT $? 0 0 "remove openssh-clients failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-debuginfo.sh b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0567f4fc02638caaf3a8734d7f11d77a1db96254 --- /dev/null +++ b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssh-debuginfo | grep -v \.src | grep openssh-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssh-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssh-debuginfo + CHECK_RESULT $? 0 0 "install openssh-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y openssh-debuginfo + CHECK_RESULT $? 0 0 "remove openssh-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-debugsource.sh b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c0d0a2826f5f8719123840553c2224548a881a6 --- /dev/null +++ b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssh-debugsource | grep -v \.src | grep openssh-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssh-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssh-debugsource + CHECK_RESULT $? 0 0 "install openssh-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y openssh-debugsource + CHECK_RESULT $? 0 0 "remove openssh-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-help.sh b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3092011adba3ca043be791d9d7979f37ac9b72d8 --- /dev/null +++ b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssh-help | grep -v \.src | grep openssh-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssh-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssh-help + CHECK_RESULT $? 0 0 "install openssh-help failed" + SLEEP_WAIT 1 + dnf remove -y openssh-help + CHECK_RESULT $? 0 0 "remove openssh-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-keycat.sh b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-keycat.sh new file mode 100644 index 0000000000000000000000000000000000000000..db84ce7e4044416dda4505332187a56a73dcf291 --- /dev/null +++ b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-keycat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssh-keycat | grep -v \.src | grep openssh-keycat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssh-keycat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssh-keycat + CHECK_RESULT $? 0 0 "install openssh-keycat failed" + SLEEP_WAIT 1 + dnf remove -y openssh-keycat + CHECK_RESULT $? 0 0 "remove openssh-keycat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-server.sh b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-server.sh new file mode 100644 index 0000000000000000000000000000000000000000..d960af7a05af09259e90ce89eaeef0edc6421383 --- /dev/null +++ b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh-server.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssh-server | grep -v \.src | grep openssh-server + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssh-server" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssh-server + CHECK_RESULT $? 0 0 "install openssh-server failed" + SLEEP_WAIT 1 + dnf remove -y openssh-server + CHECK_RESULT $? 0 0 "remove openssh-server failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh.sh b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh.sh new file mode 100644 index 0000000000000000000000000000000000000000..73b9f3e3062c4f8e7a3174a84c2acde5ef44d9b0 --- /dev/null +++ b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_openssh.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssh | grep -v \.src | grep openssh + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssh" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssh + CHECK_RESULT $? 0 0 "install openssh failed" + SLEEP_WAIT 1 + dnf remove -y openssh + CHECK_RESULT $? 0 0 "remove openssh failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_pam_ssh_agent_auth.sh b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_pam_ssh_agent_auth.sh new file mode 100644 index 0000000000000000000000000000000000000000..149a9a31be141a15a965ed3dc1e1e4358df539d2 --- /dev/null +++ b/testcases/cli-test/openssh/oe_test_openssh_install_and_remove_pam_ssh_agent_auth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pam_ssh_agent_auth | grep -v \.src | grep pam_ssh_agent_auth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pam_ssh_agent_auth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pam_ssh_agent_auth + CHECK_RESULT $? 0 0 "install pam_ssh_agent_auth failed" + SLEEP_WAIT 1 + dnf remove -y pam_ssh_agent_auth + CHECK_RESULT $? 0 0 "remove pam_ssh_agent_auth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-debuginfo.sh b/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc64a38329888390803be2ac58bac34a325188fb --- /dev/null +++ b/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl-pkcs11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-pkcs11-debuginfo | grep -v \.src | grep openssl-pkcs11-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-pkcs11-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-pkcs11-debuginfo + CHECK_RESULT $? 0 0 "install openssl-pkcs11-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y openssl-pkcs11-debuginfo + CHECK_RESULT $? 0 0 "remove openssl-pkcs11-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-debugsource.sh b/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2229eed8757261e12012150e74067dd63705454 --- /dev/null +++ b/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl-pkcs11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-pkcs11-debugsource | grep -v \.src | grep openssl-pkcs11-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-pkcs11-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-pkcs11-debugsource + CHECK_RESULT $? 0 0 "install openssl-pkcs11-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y openssl-pkcs11-debugsource + CHECK_RESULT $? 0 0 "remove openssl-pkcs11-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-devel.sh b/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f85224777cbc8ab3ee30970baa312551afe0ba7 --- /dev/null +++ b/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl-pkcs11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-pkcs11-devel | grep -v \.src | grep openssl-pkcs11-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-pkcs11-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-pkcs11-devel + CHECK_RESULT $? 0 0 "install openssl-pkcs11-devel failed" + SLEEP_WAIT 1 + dnf remove -y openssl-pkcs11-devel + CHECK_RESULT $? 0 0 "remove openssl-pkcs11-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11.sh b/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d9ef20abb5fec697e9e391f20a28c5f3018e9c9 --- /dev/null +++ b/testcases/cli-test/openssl-pkcs11/oe_test_openssl-pkcs11_install_and_remove_openssl-pkcs11.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl-pkcs11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-pkcs11 | grep -v \.src | grep openssl-pkcs11 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-pkcs11" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-pkcs11 + CHECK_RESULT $? 0 0 "install openssl-pkcs11 failed" + SLEEP_WAIT 1 + dnf remove -y openssl-pkcs11 + CHECK_RESULT $? 0 0 "remove openssl-pkcs11 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-debuginfo.sh b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4118212cd77ee5b423e10ee1dfe40eca84e4bcfb --- /dev/null +++ b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-debuginfo | grep -v \.src | grep openssl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-debuginfo + CHECK_RESULT $? 0 0 "install openssl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y openssl-debuginfo + CHECK_RESULT $? 0 0 "remove openssl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-debugsource.sh b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..37056e5b120becb6269d902fa73f81fae1e80138 --- /dev/null +++ b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-debugsource | grep -v \.src | grep openssl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-debugsource + CHECK_RESULT $? 0 0 "install openssl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y openssl-debugsource + CHECK_RESULT $? 0 0 "remove openssl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-devel.sh b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8efebcd22b38548bc5efe833df5920f45e5bc759 --- /dev/null +++ b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-devel | grep -v \.src | grep openssl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-devel + CHECK_RESULT $? 0 0 "install openssl-devel failed" + SLEEP_WAIT 1 + dnf remove -y openssl-devel + CHECK_RESULT $? 0 0 "remove openssl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-help.sh b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..390095c550216a8eb05bc2490201902bbf99e9c1 --- /dev/null +++ b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-help | grep -v \.src | grep openssl-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-help + CHECK_RESULT $? 0 0 "install openssl-help failed" + SLEEP_WAIT 1 + dnf remove -y openssl-help + CHECK_RESULT $? 0 0 "remove openssl-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-libs.sh b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..86e63e55862172fd3694e0e47f430ba1f091e7a2 --- /dev/null +++ b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-libs | grep -v \.src | grep openssl-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-libs + CHECK_RESULT $? 0 0 "install openssl-libs failed" + SLEEP_WAIT 1 + dnf remove -y openssl-libs + CHECK_RESULT $? 0 0 "remove openssl-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-perl.sh b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-perl.sh new file mode 100644 index 0000000000000000000000000000000000000000..5773162cb98e1bb68c440a775b373ee59f9f88c2 --- /dev/null +++ b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-perl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-perl | grep -v \.src | grep openssl-perl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-perl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-perl + CHECK_RESULT $? 0 0 "install openssl-perl failed" + SLEEP_WAIT 1 + dnf remove -y openssl-perl + CHECK_RESULT $? 0 0 "remove openssl-perl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-relocation.sh b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-relocation.sh new file mode 100644 index 0000000000000000000000000000000000000000..94eaf722be91dac859f40bd841e23da3b5ca213b --- /dev/null +++ b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl-relocation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl-relocation | grep -v \.src | grep openssl-relocation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl-relocation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl-relocation + CHECK_RESULT $? 0 0 "install openssl-relocation failed" + SLEEP_WAIT 1 + dnf remove -y openssl-relocation + CHECK_RESULT $? 0 0 "remove openssl-relocation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl.sh b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebddf89d52a401f3725ee6f239d7e96c9c56030e --- /dev/null +++ b/testcases/cli-test/openssl/oe_test_openssl_install_and_remove_openssl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src openssl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available openssl | grep -v \.src | grep openssl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm openssl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y openssl + CHECK_RESULT $? 0 0 "install openssl failed" + SLEEP_WAIT 1 + dnf remove -y openssl + CHECK_RESULT $? 0 0 "remove openssl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-debuginfo.sh b/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..04e05d126bb87b13e1f1a0862b8605338c8acaee --- /dev/null +++ b/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opus-debuginfo | grep -v \.src | grep opus-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opus-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opus-debuginfo + CHECK_RESULT $? 0 0 "install opus-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y opus-debuginfo + CHECK_RESULT $? 0 0 "remove opus-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-debugsource.sh b/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3b68f6657f8eadcc1d11dc29405214ec1b09608 --- /dev/null +++ b/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opus-debugsource | grep -v \.src | grep opus-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opus-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opus-debugsource + CHECK_RESULT $? 0 0 "install opus-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y opus-debugsource + CHECK_RESULT $? 0 0 "remove opus-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-devel.sh b/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3a4a12c4191e90aa5e8d8cbaccda1a62751efb4 --- /dev/null +++ b/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opus-devel | grep -v \.src | grep opus-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opus-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opus-devel + CHECK_RESULT $? 0 0 "install opus-devel failed" + SLEEP_WAIT 1 + dnf remove -y opus-devel + CHECK_RESULT $? 0 0 "remove opus-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-help.sh b/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..857491a05f24e56d5cb266e96dba4c1df9c59c45 --- /dev/null +++ b/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opus-help | grep -v \.src | grep opus-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opus-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opus-help + CHECK_RESULT $? 0 0 "install opus-help failed" + SLEEP_WAIT 1 + dnf remove -y opus-help + CHECK_RESULT $? 0 0 "remove opus-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus.sh b/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus.sh new file mode 100644 index 0000000000000000000000000000000000000000..07f3187d59e782f5e218eee8ee5a882786965e8b --- /dev/null +++ b/testcases/cli-test/opus/oe_test_opus_install_and_remove_opus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src opus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available opus | grep -v \.src | grep opus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm opus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y opus + CHECK_RESULT $? 0 0 "install opus failed" + SLEEP_WAIT 1 + dnf remove -y opus + CHECK_RESULT $? 0 0 "remove opus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-compiler.sh b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-compiler.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cd120614981eb98a681f5ff44216ac37b653f99 --- /dev/null +++ b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-compiler.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src orc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available orc-compiler | grep -v \.src | grep orc-compiler + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm orc-compiler" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y orc-compiler + CHECK_RESULT $? 0 0 "install orc-compiler failed" + SLEEP_WAIT 1 + dnf remove -y orc-compiler + CHECK_RESULT $? 0 0 "remove orc-compiler failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-debuginfo.sh b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b482e476eaba698e09b09c1dbd7bb00530691594 --- /dev/null +++ b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src orc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available orc-debuginfo | grep -v \.src | grep orc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm orc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y orc-debuginfo + CHECK_RESULT $? 0 0 "install orc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y orc-debuginfo + CHECK_RESULT $? 0 0 "remove orc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-debugsource.sh b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2b84094d8cc4855fdf7a8417518038725f55870 --- /dev/null +++ b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src orc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available orc-debugsource | grep -v \.src | grep orc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm orc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y orc-debugsource + CHECK_RESULT $? 0 0 "install orc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y orc-debugsource + CHECK_RESULT $? 0 0 "remove orc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-devel.sh b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..98bb53c5f88bc7034ec802efcf1a05a277979b93 --- /dev/null +++ b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src orc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available orc-devel | grep -v \.src | grep orc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm orc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y orc-devel + CHECK_RESULT $? 0 0 "install orc-devel failed" + SLEEP_WAIT 1 + dnf remove -y orc-devel + CHECK_RESULT $? 0 0 "remove orc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-help.sh b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..00c2e31274c692566a4369909dafec2092ef8095 --- /dev/null +++ b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src orc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available orc-help | grep -v \.src | grep orc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm orc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y orc-help + CHECK_RESULT $? 0 0 "install orc-help failed" + SLEEP_WAIT 1 + dnf remove -y orc-help + CHECK_RESULT $? 0 0 "remove orc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc.sh b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc.sh new file mode 100644 index 0000000000000000000000000000000000000000..64cf7ba8e7b227f061f6560c3c4df75b9205146a --- /dev/null +++ b/testcases/cli-test/orc/oe_test_orc_install_and_remove_orc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src orc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available orc | grep -v \.src | grep orc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm orc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y orc + CHECK_RESULT $? 0 0 "install orc failed" + SLEEP_WAIT 1 + dnf remove -y orc + CHECK_RESULT $? 0 0 "remove orc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/os-prober/oe_test_os-prober_install_and_remove_os-prober-debuginfo.sh b/testcases/cli-test/os-prober/oe_test_os-prober_install_and_remove_os-prober-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..94014522bc2ed642668658599b3ecf11a1e81e0f --- /dev/null +++ b/testcases/cli-test/os-prober/oe_test_os-prober_install_and_remove_os-prober-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src os-prober +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available os-prober-debuginfo | grep -v \.src | grep os-prober-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm os-prober-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y os-prober-debuginfo + CHECK_RESULT $? 0 0 "install os-prober-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y os-prober-debuginfo + CHECK_RESULT $? 0 0 "remove os-prober-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/os-prober/oe_test_os-prober_install_and_remove_os-prober-debugsource.sh b/testcases/cli-test/os-prober/oe_test_os-prober_install_and_remove_os-prober-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfbeadbd7c8d804bbd0f8b7baad87c4978260310 --- /dev/null +++ b/testcases/cli-test/os-prober/oe_test_os-prober_install_and_remove_os-prober-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src os-prober +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available os-prober-debugsource | grep -v \.src | grep os-prober-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm os-prober-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y os-prober-debugsource + CHECK_RESULT $? 0 0 "install os-prober-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y os-prober-debugsource + CHECK_RESULT $? 0 0 "remove os-prober-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/os-prober/oe_test_os-prober_install_and_remove_os-prober.sh b/testcases/cli-test/os-prober/oe_test_os-prober_install_and_remove_os-prober.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca5752d89e5b85effc566278e5107f07a4c91ba2 --- /dev/null +++ b/testcases/cli-test/os-prober/oe_test_os-prober_install_and_remove_os-prober.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src os-prober +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available os-prober | grep -v \.src | grep os-prober + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm os-prober" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y os-prober + CHECK_RESULT $? 0 0 "install os-prober failed" + SLEEP_WAIT 1 + dnf remove -y os-prober + CHECK_RESULT $? 0 0 "remove os-prober failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-debuginfo.sh b/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2553096fa156014af42a9c5b371c81db0ec32d27 --- /dev/null +++ b/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ostree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ostree-debuginfo | grep -v \.src | grep ostree-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ostree-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ostree-debuginfo + CHECK_RESULT $? 0 0 "install ostree-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ostree-debuginfo + CHECK_RESULT $? 0 0 "remove ostree-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-debugsource.sh b/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb6fedd0daddf0f99e27f4a1c76d50e93e3a95e4 --- /dev/null +++ b/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ostree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ostree-debugsource | grep -v \.src | grep ostree-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ostree-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ostree-debugsource + CHECK_RESULT $? 0 0 "install ostree-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ostree-debugsource + CHECK_RESULT $? 0 0 "remove ostree-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-devel.sh b/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6698399df96931855deef031336bfdaf658a58e6 --- /dev/null +++ b/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ostree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ostree-devel | grep -v \.src | grep ostree-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ostree-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ostree-devel + CHECK_RESULT $? 0 0 "install ostree-devel failed" + SLEEP_WAIT 1 + dnf remove -y ostree-devel + CHECK_RESULT $? 0 0 "remove ostree-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-help.sh b/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf49e605b3eba007e7554c0ab7fd64e3ff7bcab2 --- /dev/null +++ b/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ostree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ostree-help | grep -v \.src | grep ostree-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ostree-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ostree-help + CHECK_RESULT $? 0 0 "install ostree-help failed" + SLEEP_WAIT 1 + dnf remove -y ostree-help + CHECK_RESULT $? 0 0 "remove ostree-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree.sh b/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc25048a7fed09a0ba04394c783ede06f8f877ad --- /dev/null +++ b/testcases/cli-test/ostree/oe_test_ostree_install_and_remove_ostree.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ostree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ostree | grep -v \.src | grep ostree + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ostree" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ostree + CHECK_RESULT $? 0 0 "install ostree failed" + SLEEP_WAIT 1 + dnf remove -y ostree + CHECK_RESULT $? 0 0 "remove ostree failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-debuginfo.sh b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa23f4987765ad017df234ccd5c772066cf7d567 --- /dev/null +++ b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src p11-kit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available p11-kit-debuginfo | grep -v \.src | grep p11-kit-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm p11-kit-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y p11-kit-debuginfo + CHECK_RESULT $? 0 0 "install p11-kit-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y p11-kit-debuginfo + CHECK_RESULT $? 0 0 "remove p11-kit-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-debugsource.sh b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..46e5266a42ef38d9bc79549b2c509e25fb3977ce --- /dev/null +++ b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src p11-kit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available p11-kit-debugsource | grep -v \.src | grep p11-kit-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm p11-kit-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y p11-kit-debugsource + CHECK_RESULT $? 0 0 "install p11-kit-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y p11-kit-debugsource + CHECK_RESULT $? 0 0 "remove p11-kit-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-devel.sh b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..813b870e77b594b6c80ac787b388aa7df680c976 --- /dev/null +++ b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src p11-kit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available p11-kit-devel | grep -v \.src | grep p11-kit-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm p11-kit-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y p11-kit-devel + CHECK_RESULT $? 0 0 "install p11-kit-devel failed" + SLEEP_WAIT 1 + dnf remove -y p11-kit-devel + CHECK_RESULT $? 0 0 "remove p11-kit-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-help.sh b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d87b406fdf0f26ac87ee9c848870132692c0e53f --- /dev/null +++ b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src p11-kit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available p11-kit-help | grep -v \.src | grep p11-kit-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm p11-kit-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y p11-kit-help + CHECK_RESULT $? 0 0 "install p11-kit-help failed" + SLEEP_WAIT 1 + dnf remove -y p11-kit-help + CHECK_RESULT $? 0 0 "remove p11-kit-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-server.sh b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-server.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2e2a64c8fa40a0b7dce5013f65b72ee4b6e60f9 --- /dev/null +++ b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-server.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src p11-kit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available p11-kit-server | grep -v \.src | grep p11-kit-server + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm p11-kit-server" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y p11-kit-server + CHECK_RESULT $? 0 0 "install p11-kit-server failed" + SLEEP_WAIT 1 + dnf remove -y p11-kit-server + CHECK_RESULT $? 0 0 "remove p11-kit-server failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-trust.sh b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-trust.sh new file mode 100644 index 0000000000000000000000000000000000000000..61563013077b36dfa4879603dbd4697d675923c9 --- /dev/null +++ b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit-trust.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src p11-kit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available p11-kit-trust | grep -v \.src | grep p11-kit-trust + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm p11-kit-trust" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y p11-kit-trust + CHECK_RESULT $? 0 0 "install p11-kit-trust failed" + SLEEP_WAIT 1 + dnf remove -y p11-kit-trust + CHECK_RESULT $? 0 0 "remove p11-kit-trust failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit.sh b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e81fe7d42034f31440c81f69658c1cfe346b526 --- /dev/null +++ b/testcases/cli-test/p11-kit/oe_test_p11-kit_install_and_remove_p11-kit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src p11-kit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available p11-kit | grep -v \.src | grep p11-kit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm p11-kit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y p11-kit + CHECK_RESULT $? 0 0 "install p11-kit failed" + SLEEP_WAIT 1 + dnf remove -y p11-kit + CHECK_RESULT $? 0 0 "remove p11-kit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-debuginfo.sh b/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..55555b3811c4d85f42a8787824a842cee3b1c10d --- /dev/null +++ b/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pam-debuginfo | grep -v \.src | grep pam-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pam-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pam-debuginfo + CHECK_RESULT $? 0 0 "install pam-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pam-debuginfo + CHECK_RESULT $? 0 0 "remove pam-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-debugsource.sh b/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2e3da2e962e94550d0685d39f5b201606430514 --- /dev/null +++ b/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pam-debugsource | grep -v \.src | grep pam-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pam-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pam-debugsource + CHECK_RESULT $? 0 0 "install pam-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pam-debugsource + CHECK_RESULT $? 0 0 "remove pam-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-devel.sh b/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..221d4021ca117053607aad5ed27f6862ad65c75b --- /dev/null +++ b/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pam-devel | grep -v \.src | grep pam-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pam-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pam-devel + CHECK_RESULT $? 0 0 "install pam-devel failed" + SLEEP_WAIT 1 + dnf remove -y pam-devel + CHECK_RESULT $? 0 0 "remove pam-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-help.sh b/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..45f48d7b02a0917d1fd8580d180ccaad0b7e76c1 --- /dev/null +++ b/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pam-help | grep -v \.src | grep pam-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pam-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pam-help + CHECK_RESULT $? 0 0 "install pam-help failed" + SLEEP_WAIT 1 + dnf remove -y pam-help + CHECK_RESULT $? 0 0 "remove pam-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam.sh b/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam.sh new file mode 100644 index 0000000000000000000000000000000000000000..c17bc36b91dd3517c5a803ea34b691465f479dcb --- /dev/null +++ b/testcases/cli-test/pam/oe_test_pam_install_and_remove_pam.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pam +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pam | grep -v \.src | grep pam + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pam" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pam + CHECK_RESULT $? 0 0 "install pam failed" + SLEEP_WAIT 1 + dnf remove -y pam + CHECK_RESULT $? 0 0 "remove pam failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-debuginfo.sh b/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..001773722da572106ffb9ffbd85524b4c746d2bc --- /dev/null +++ b/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pango +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pango-debuginfo | grep -v \.src | grep pango-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pango-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pango-debuginfo + CHECK_RESULT $? 0 0 "install pango-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pango-debuginfo + CHECK_RESULT $? 0 0 "remove pango-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-debugsource.sh b/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3739d401c101de857c133c2f2a87cf7c052dbb5d --- /dev/null +++ b/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pango +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pango-debugsource | grep -v \.src | grep pango-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pango-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pango-debugsource + CHECK_RESULT $? 0 0 "install pango-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pango-debugsource + CHECK_RESULT $? 0 0 "remove pango-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-devel.sh b/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7fd2da15bcd72b449e02f5409d53d2141f7d7e96 --- /dev/null +++ b/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pango +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pango-devel | grep -v \.src | grep pango-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pango-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pango-devel + CHECK_RESULT $? 0 0 "install pango-devel failed" + SLEEP_WAIT 1 + dnf remove -y pango-devel + CHECK_RESULT $? 0 0 "remove pango-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-help.sh b/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0783da0de517ed383a365b274d8ba224fc76088e --- /dev/null +++ b/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pango +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pango-help | grep -v \.src | grep pango-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pango-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pango-help + CHECK_RESULT $? 0 0 "install pango-help failed" + SLEEP_WAIT 1 + dnf remove -y pango-help + CHECK_RESULT $? 0 0 "remove pango-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango.sh b/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fe281127179f8ecbac2cb13835edca09b3d593a --- /dev/null +++ b/testcases/cli-test/pango/oe_test_pango_install_and_remove_pango.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pango +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pango | grep -v \.src | grep pango + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pango" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pango + CHECK_RESULT $? 0 0 "install pango failed" + SLEEP_WAIT 1 + dnf remove -y pango + CHECK_RESULT $? 0 0 "remove pango failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted-debuginfo.sh b/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..70c455be22e9e127b4a335303368d99860e64122 --- /dev/null +++ b/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src parted +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available parted-debuginfo | grep -v \.src | grep parted-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm parted-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y parted-debuginfo + CHECK_RESULT $? 0 0 "install parted-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y parted-debuginfo + CHECK_RESULT $? 0 0 "remove parted-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted-debugsource.sh b/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..28d629d6e6f618475d4b16698303f0ef5e746f21 --- /dev/null +++ b/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src parted +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available parted-debugsource | grep -v \.src | grep parted-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm parted-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y parted-debugsource + CHECK_RESULT $? 0 0 "install parted-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y parted-debugsource + CHECK_RESULT $? 0 0 "remove parted-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted-devel.sh b/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c0d64c03da4ec890b32b71631f410bd89406b58 --- /dev/null +++ b/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src parted +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available parted-devel | grep -v \.src | grep parted-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm parted-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y parted-devel + CHECK_RESULT $? 0 0 "install parted-devel failed" + SLEEP_WAIT 1 + dnf remove -y parted-devel + CHECK_RESULT $? 0 0 "remove parted-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted.sh b/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb46d6635ac53fcae0da9b59cffe3993f247c023 --- /dev/null +++ b/testcases/cli-test/parted/oe_test_parted_install_and_remove_parted.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src parted +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available parted | grep -v \.src | grep parted + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm parted" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y parted + CHECK_RESULT $? 0 0 "install parted failed" + SLEEP_WAIT 1 + dnf remove -y parted + CHECK_RESULT $? 0 0 "remove parted failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd-debuginfo.sh b/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee98784cfa98dbad7a126b8e82ace040ffe3f94f --- /dev/null +++ b/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src passwd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available passwd-debuginfo | grep -v \.src | grep passwd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm passwd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y passwd-debuginfo + CHECK_RESULT $? 0 0 "install passwd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y passwd-debuginfo + CHECK_RESULT $? 0 0 "remove passwd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd-debugsource.sh b/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..07b065ef61e41da5e3272af03c2962301bd57de2 --- /dev/null +++ b/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src passwd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available passwd-debugsource | grep -v \.src | grep passwd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm passwd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y passwd-debugsource + CHECK_RESULT $? 0 0 "install passwd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y passwd-debugsource + CHECK_RESULT $? 0 0 "remove passwd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd-help.sh b/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..03fbfdd676588bf44b448ef531516c642abef634 --- /dev/null +++ b/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src passwd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available passwd-help | grep -v \.src | grep passwd-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm passwd-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y passwd-help + CHECK_RESULT $? 0 0 "install passwd-help failed" + SLEEP_WAIT 1 + dnf remove -y passwd-help + CHECK_RESULT $? 0 0 "remove passwd-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd.sh b/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd.sh new file mode 100644 index 0000000000000000000000000000000000000000..49e7e2c592162b9bb8dc23273955bef7518c618f --- /dev/null +++ b/testcases/cli-test/passwd/oe_test_passwd_install_and_remove_passwd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src passwd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available passwd | grep -v \.src | grep passwd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm passwd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y passwd + CHECK_RESULT $? 0 0 "install passwd failed" + SLEEP_WAIT 1 + dnf remove -y passwd + CHECK_RESULT $? 0 0 "remove passwd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch-debuginfo.sh b/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae55fa41748bdcb7d5bdeac0a3b7d60239e1206c --- /dev/null +++ b/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src patch +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available patch-debuginfo | grep -v \.src | grep patch-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm patch-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y patch-debuginfo + CHECK_RESULT $? 0 0 "install patch-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y patch-debuginfo + CHECK_RESULT $? 0 0 "remove patch-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch-debugsource.sh b/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a057a6e9ec3ced57b5c5e3a5e4dd7b49030635d --- /dev/null +++ b/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src patch +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available patch-debugsource | grep -v \.src | grep patch-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm patch-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y patch-debugsource + CHECK_RESULT $? 0 0 "install patch-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y patch-debugsource + CHECK_RESULT $? 0 0 "remove patch-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch-help.sh b/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a351ee469de16a20b770c51155b6e33213b8c77f --- /dev/null +++ b/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src patch +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available patch-help | grep -v \.src | grep patch-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm patch-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y patch-help + CHECK_RESULT $? 0 0 "install patch-help failed" + SLEEP_WAIT 1 + dnf remove -y patch-help + CHECK_RESULT $? 0 0 "remove patch-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch.sh b/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch.sh new file mode 100644 index 0000000000000000000000000000000000000000..28a5ec32bc2c046274f4d7282f255a41e19c62a0 --- /dev/null +++ b/testcases/cli-test/patch/oe_test_patch_install_and_remove_patch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src patch +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available patch | grep -v \.src | grep patch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm patch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y patch + CHECK_RESULT $? 0 0 "install patch failed" + SLEEP_WAIT 1 + dnf remove -y patch + CHECK_RESULT $? 0 0 "remove patch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils-debuginfo.sh b/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f6e78820a8a6cd122824bab7cc67dfead07b65a --- /dev/null +++ b/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src patchutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available patchutils-debuginfo | grep -v \.src | grep patchutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm patchutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y patchutils-debuginfo + CHECK_RESULT $? 0 0 "install patchutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y patchutils-debuginfo + CHECK_RESULT $? 0 0 "remove patchutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils-debugsource.sh b/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f851b720df55765bcc8fd0cb0171aca47c908234 --- /dev/null +++ b/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src patchutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available patchutils-debugsource | grep -v \.src | grep patchutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm patchutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y patchutils-debugsource + CHECK_RESULT $? 0 0 "install patchutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y patchutils-debugsource + CHECK_RESULT $? 0 0 "remove patchutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils-help.sh b/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..04f518fa3d507f4a2df2d07ab2a850b328e3e1bb --- /dev/null +++ b/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src patchutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available patchutils-help | grep -v \.src | grep patchutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm patchutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y patchutils-help + CHECK_RESULT $? 0 0 "install patchutils-help failed" + SLEEP_WAIT 1 + dnf remove -y patchutils-help + CHECK_RESULT $? 0 0 "remove patchutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils.sh b/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..1531f6fa104777c9e36e0eb44b15b8e5364e6bdc --- /dev/null +++ b/testcases/cli-test/patchutils/oe_test_patchutils_install_and_remove_patchutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src patchutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available patchutils | grep -v \.src | grep patchutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm patchutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y patchutils + CHECK_RESULT $? 0 0 "install patchutils failed" + SLEEP_WAIT 1 + dnf remove -y patchutils + CHECK_RESULT $? 0 0 "remove patchutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-debuginfo.sh b/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b7869ccf01df6eb0d71901b0010cbfcaa6fb98e --- /dev/null +++ b/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pciutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pciutils-debuginfo | grep -v \.src | grep pciutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pciutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pciutils-debuginfo + CHECK_RESULT $? 0 0 "install pciutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pciutils-debuginfo + CHECK_RESULT $? 0 0 "remove pciutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-debugsource.sh b/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce6aa5d6f96fdfa76de8920fe82169b415e2fe96 --- /dev/null +++ b/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pciutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pciutils-debugsource | grep -v \.src | grep pciutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pciutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pciutils-debugsource + CHECK_RESULT $? 0 0 "install pciutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pciutils-debugsource + CHECK_RESULT $? 0 0 "remove pciutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-devel.sh b/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d255a622ea5ed7c24bd78e461f5b8e063b74706 --- /dev/null +++ b/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pciutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pciutils-devel | grep -v \.src | grep pciutils-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pciutils-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pciutils-devel + CHECK_RESULT $? 0 0 "install pciutils-devel failed" + SLEEP_WAIT 1 + dnf remove -y pciutils-devel + CHECK_RESULT $? 0 0 "remove pciutils-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-help.sh b/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b898ff3a2ebe2983b3d11c04dff43c5c2ea6e6ce --- /dev/null +++ b/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pciutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pciutils-help | grep -v \.src | grep pciutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pciutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pciutils-help + CHECK_RESULT $? 0 0 "install pciutils-help failed" + SLEEP_WAIT 1 + dnf remove -y pciutils-help + CHECK_RESULT $? 0 0 "remove pciutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils.sh b/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..21c02753f936e5c14df78df7d6f44832629d508d --- /dev/null +++ b/testcases/cli-test/pciutils/oe_test_pciutils_install_and_remove_pciutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pciutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pciutils | grep -v \.src | grep pciutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pciutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pciutils + CHECK_RESULT $? 0 0 "install pciutils failed" + SLEEP_WAIT 1 + dnf remove -y pciutils + CHECK_RESULT $? 0 0 "remove pciutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-debuginfo.sh b/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5523cc9703736b19e04b30d32ca620a998066211 --- /dev/null +++ b/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcre +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcre-debuginfo | grep -v \.src | grep pcre-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcre-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcre-debuginfo + CHECK_RESULT $? 0 0 "install pcre-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pcre-debuginfo + CHECK_RESULT $? 0 0 "remove pcre-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-debugsource.sh b/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b21c6115daa9de2358d95bbc45cf4377f1492d7d --- /dev/null +++ b/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcre +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcre-debugsource | grep -v \.src | grep pcre-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcre-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcre-debugsource + CHECK_RESULT $? 0 0 "install pcre-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pcre-debugsource + CHECK_RESULT $? 0 0 "remove pcre-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-devel.sh b/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a09a9b16c25282dea8685080c19c3203fe391f3b --- /dev/null +++ b/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcre +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcre-devel | grep -v \.src | grep pcre-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcre-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcre-devel + CHECK_RESULT $? 0 0 "install pcre-devel failed" + SLEEP_WAIT 1 + dnf remove -y pcre-devel + CHECK_RESULT $? 0 0 "remove pcre-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-help.sh b/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb6f23af274ec3a007dc80494937f8d126189fb2 --- /dev/null +++ b/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcre +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcre-help | grep -v \.src | grep pcre-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcre-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcre-help + CHECK_RESULT $? 0 0 "install pcre-help failed" + SLEEP_WAIT 1 + dnf remove -y pcre-help + CHECK_RESULT $? 0 0 "remove pcre-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre.sh b/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre.sh new file mode 100644 index 0000000000000000000000000000000000000000..90c524662339d5803e1478df638d215bb7ef5b6d --- /dev/null +++ b/testcases/cli-test/pcre/oe_test_pcre_install_and_remove_pcre.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcre +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcre | grep -v \.src | grep pcre + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcre" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcre + CHECK_RESULT $? 0 0 "install pcre failed" + SLEEP_WAIT 1 + dnf remove -y pcre + CHECK_RESULT $? 0 0 "remove pcre failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-debuginfo.sh b/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc441f53f3552fe0758b62151193095a4b75e449 --- /dev/null +++ b/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcre2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcre2-debuginfo | grep -v \.src | grep pcre2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcre2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcre2-debuginfo + CHECK_RESULT $? 0 0 "install pcre2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pcre2-debuginfo + CHECK_RESULT $? 0 0 "remove pcre2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-debugsource.sh b/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..568d7755c98b66e55bdfdd84c7ee2136296a0bf8 --- /dev/null +++ b/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcre2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcre2-debugsource | grep -v \.src | grep pcre2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcre2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcre2-debugsource + CHECK_RESULT $? 0 0 "install pcre2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pcre2-debugsource + CHECK_RESULT $? 0 0 "remove pcre2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-devel.sh b/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..78a468a1dcfc873fee370d98a51dc7b3fd6b143a --- /dev/null +++ b/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcre2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcre2-devel | grep -v \.src | grep pcre2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcre2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcre2-devel + CHECK_RESULT $? 0 0 "install pcre2-devel failed" + SLEEP_WAIT 1 + dnf remove -y pcre2-devel + CHECK_RESULT $? 0 0 "remove pcre2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-help.sh b/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..76b688e48a248b85bc55bc08e8ab73b8114f5311 --- /dev/null +++ b/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcre2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcre2-help | grep -v \.src | grep pcre2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcre2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcre2-help + CHECK_RESULT $? 0 0 "install pcre2-help failed" + SLEEP_WAIT 1 + dnf remove -y pcre2-help + CHECK_RESULT $? 0 0 "remove pcre2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2.sh b/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2.sh new file mode 100644 index 0000000000000000000000000000000000000000..e334ab87a92d1cb694b39d703a186b226e0a0349 --- /dev/null +++ b/testcases/cli-test/pcre2/oe_test_pcre2_install_and_remove_pcre2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcre2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcre2 | grep -v \.src | grep pcre2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcre2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcre2 + CHECK_RESULT $? 0 0 "install pcre2 failed" + SLEEP_WAIT 1 + dnf remove -y pcre2 + CHECK_RESULT $? 0 0 "remove pcre2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-debuginfo.sh b/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0020abca44bf0f234aa72d6675bb76046d8dd514 --- /dev/null +++ b/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcsc-lite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcsc-lite-debuginfo | grep -v \.src | grep pcsc-lite-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcsc-lite-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcsc-lite-debuginfo + CHECK_RESULT $? 0 0 "install pcsc-lite-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pcsc-lite-debuginfo + CHECK_RESULT $? 0 0 "remove pcsc-lite-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-debugsource.sh b/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8dc3c80b9640a363ffc2211c9ff5e03cd2b96a3 --- /dev/null +++ b/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcsc-lite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcsc-lite-debugsource | grep -v \.src | grep pcsc-lite-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcsc-lite-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcsc-lite-debugsource + CHECK_RESULT $? 0 0 "install pcsc-lite-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pcsc-lite-debugsource + CHECK_RESULT $? 0 0 "remove pcsc-lite-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-devel.sh b/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e8a5d94f1fe752e9fdfcc4aa8cdbdb133865e80 --- /dev/null +++ b/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcsc-lite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcsc-lite-devel | grep -v \.src | grep pcsc-lite-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcsc-lite-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcsc-lite-devel + CHECK_RESULT $? 0 0 "install pcsc-lite-devel failed" + SLEEP_WAIT 1 + dnf remove -y pcsc-lite-devel + CHECK_RESULT $? 0 0 "remove pcsc-lite-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-help.sh b/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b12d715d9c1db338ee26e8f94f3c1a7e45ebc0f9 --- /dev/null +++ b/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcsc-lite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcsc-lite-help | grep -v \.src | grep pcsc-lite-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcsc-lite-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcsc-lite-help + CHECK_RESULT $? 0 0 "install pcsc-lite-help failed" + SLEEP_WAIT 1 + dnf remove -y pcsc-lite-help + CHECK_RESULT $? 0 0 "remove pcsc-lite-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite.sh b/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite.sh new file mode 100644 index 0000000000000000000000000000000000000000..3dfd34afd30c09b6c6baa8f2d850a3b38d3c5dfd --- /dev/null +++ b/testcases/cli-test/pcsc-lite/oe_test_pcsc-lite_install_and_remove_pcsc-lite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pcsc-lite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pcsc-lite | grep -v \.src | grep pcsc-lite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pcsc-lite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pcsc-lite + CHECK_RESULT $? 0 0 "install pcsc-lite failed" + SLEEP_WAIT 1 + dnf remove -y pcsc-lite + CHECK_RESULT $? 0 0 "remove pcsc-lite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Algorithm-Diff/oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff-doc.sh b/testcases/cli-test/perl-Algorithm-Diff/oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e9183c9667c79d5a78fe068b72de7d2a4ef3fa5 --- /dev/null +++ b/testcases/cli-test/perl-Algorithm-Diff/oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Algorithm-Diff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Algorithm-Diff-doc | grep -v \.src | grep perl-Algorithm-Diff-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Algorithm-Diff-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Algorithm-Diff-doc + CHECK_RESULT $? 0 0 "install perl-Algorithm-Diff-doc failed" + SLEEP_WAIT 1 + dnf remove -y perl-Algorithm-Diff-doc + CHECK_RESULT $? 0 0 "remove perl-Algorithm-Diff-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Algorithm-Diff/oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff-help.sh b/testcases/cli-test/perl-Algorithm-Diff/oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..10261d716def03f8ce4c92b66ec36d3532a46380 --- /dev/null +++ b/testcases/cli-test/perl-Algorithm-Diff/oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Algorithm-Diff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Algorithm-Diff-help | grep -v \.src | grep perl-Algorithm-Diff-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Algorithm-Diff-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Algorithm-Diff-help + CHECK_RESULT $? 0 0 "install perl-Algorithm-Diff-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Algorithm-Diff-help + CHECK_RESULT $? 0 0 "remove perl-Algorithm-Diff-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Algorithm-Diff/oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff.sh b/testcases/cli-test/perl-Algorithm-Diff/oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff.sh new file mode 100644 index 0000000000000000000000000000000000000000..2342855cccbcd37ce64e9a89103440d6a44e40b7 --- /dev/null +++ b/testcases/cli-test/perl-Algorithm-Diff/oe_test_perl-Algorithm-Diff_install_and_remove_perl-Algorithm-Diff.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Algorithm-Diff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Algorithm-Diff | grep -v \.src | grep perl-Algorithm-Diff + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Algorithm-Diff" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Algorithm-Diff + CHECK_RESULT $? 0 0 "install perl-Algorithm-Diff failed" + SLEEP_WAIT 1 + dnf remove -y perl-Algorithm-Diff + CHECK_RESULT $? 0 0 "remove perl-Algorithm-Diff failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Archive-Tar/oe_test_perl-Archive-Tar_install_and_remove_perl-Archive-Tar-help.sh b/testcases/cli-test/perl-Archive-Tar/oe_test_perl-Archive-Tar_install_and_remove_perl-Archive-Tar-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb3dc046e6412ce0d33b1a53670e3997550b56be --- /dev/null +++ b/testcases/cli-test/perl-Archive-Tar/oe_test_perl-Archive-Tar_install_and_remove_perl-Archive-Tar-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Archive-Tar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Archive-Tar-help | grep -v \.src | grep perl-Archive-Tar-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Archive-Tar-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Archive-Tar-help + CHECK_RESULT $? 0 0 "install perl-Archive-Tar-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Archive-Tar-help + CHECK_RESULT $? 0 0 "remove perl-Archive-Tar-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Archive-Tar/oe_test_perl-Archive-Tar_install_and_remove_perl-Archive-Tar.sh b/testcases/cli-test/perl-Archive-Tar/oe_test_perl-Archive-Tar_install_and_remove_perl-Archive-Tar.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b95e237f4c6f5d97153bc3aed328faa9547fe65 --- /dev/null +++ b/testcases/cli-test/perl-Archive-Tar/oe_test_perl-Archive-Tar_install_and_remove_perl-Archive-Tar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Archive-Tar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Archive-Tar | grep -v \.src | grep perl-Archive-Tar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Archive-Tar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Archive-Tar + CHECK_RESULT $? 0 0 "install perl-Archive-Tar failed" + SLEEP_WAIT 1 + dnf remove -y perl-Archive-Tar + CHECK_RESULT $? 0 0 "remove perl-Archive-Tar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-B-Debug/oe_test_perl-B-Debug_install_and_remove_perl-B-Debug-help.sh b/testcases/cli-test/perl-B-Debug/oe_test_perl-B-Debug_install_and_remove_perl-B-Debug-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab48ddbda758ae5ceadcf7339ceef81c86529b76 --- /dev/null +++ b/testcases/cli-test/perl-B-Debug/oe_test_perl-B-Debug_install_and_remove_perl-B-Debug-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-B-Debug +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-B-Debug-help | grep -v \.src | grep perl-B-Debug-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-B-Debug-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-B-Debug-help + CHECK_RESULT $? 0 0 "install perl-B-Debug-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-B-Debug-help + CHECK_RESULT $? 0 0 "remove perl-B-Debug-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-B-Debug/oe_test_perl-B-Debug_install_and_remove_perl-B-Debug.sh b/testcases/cli-test/perl-B-Debug/oe_test_perl-B-Debug_install_and_remove_perl-B-Debug.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc80988e8ea7083c7f377eb353c0d11fc6eecb74 --- /dev/null +++ b/testcases/cli-test/perl-B-Debug/oe_test_perl-B-Debug_install_and_remove_perl-B-Debug.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-B-Debug +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-B-Debug | grep -v \.src | grep perl-B-Debug + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-B-Debug" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-B-Debug + CHECK_RESULT $? 0 0 "install perl-B-Debug failed" + SLEEP_WAIT 1 + dnf remove -y perl-B-Debug + CHECK_RESULT $? 0 0 "remove perl-B-Debug failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-CPAN-Meta-Requirements/oe_test_perl-CPAN-Meta-Requirements_install_and_remove_perl-CPAN-Meta-Requirements-help.sh b/testcases/cli-test/perl-CPAN-Meta-Requirements/oe_test_perl-CPAN-Meta-Requirements_install_and_remove_perl-CPAN-Meta-Requirements-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3dced7d071255eab75ef96144aa2e78f8662e8f2 --- /dev/null +++ b/testcases/cli-test/perl-CPAN-Meta-Requirements/oe_test_perl-CPAN-Meta-Requirements_install_and_remove_perl-CPAN-Meta-Requirements-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-CPAN-Meta-Requirements +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-CPAN-Meta-Requirements-help | grep -v \.src | grep perl-CPAN-Meta-Requirements-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-CPAN-Meta-Requirements-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-CPAN-Meta-Requirements-help + CHECK_RESULT $? 0 0 "install perl-CPAN-Meta-Requirements-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-CPAN-Meta-Requirements-help + CHECK_RESULT $? 0 0 "remove perl-CPAN-Meta-Requirements-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-CPAN-Meta-Requirements/oe_test_perl-CPAN-Meta-Requirements_install_and_remove_perl-CPAN-Meta-Requirements.sh b/testcases/cli-test/perl-CPAN-Meta-Requirements/oe_test_perl-CPAN-Meta-Requirements_install_and_remove_perl-CPAN-Meta-Requirements.sh new file mode 100644 index 0000000000000000000000000000000000000000..11ebb0faabfded83eaa3c2387f1dcf8693fed1c6 --- /dev/null +++ b/testcases/cli-test/perl-CPAN-Meta-Requirements/oe_test_perl-CPAN-Meta-Requirements_install_and_remove_perl-CPAN-Meta-Requirements.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-CPAN-Meta-Requirements +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-CPAN-Meta-Requirements | grep -v \.src | grep perl-CPAN-Meta-Requirements + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-CPAN-Meta-Requirements" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-CPAN-Meta-Requirements + CHECK_RESULT $? 0 0 "install perl-CPAN-Meta-Requirements failed" + SLEEP_WAIT 1 + dnf remove -y perl-CPAN-Meta-Requirements + CHECK_RESULT $? 0 0 "remove perl-CPAN-Meta-Requirements failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-CPAN-Meta-YAML/oe_test_perl-CPAN-Meta-YAML_install_and_remove_perl-CPAN-Meta-YAML-help.sh b/testcases/cli-test/perl-CPAN-Meta-YAML/oe_test_perl-CPAN-Meta-YAML_install_and_remove_perl-CPAN-Meta-YAML-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a6d778e540603bc9201b1b8c7a8460d08d56135 --- /dev/null +++ b/testcases/cli-test/perl-CPAN-Meta-YAML/oe_test_perl-CPAN-Meta-YAML_install_and_remove_perl-CPAN-Meta-YAML-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-CPAN-Meta-YAML +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-CPAN-Meta-YAML-help | grep -v \.src | grep perl-CPAN-Meta-YAML-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-CPAN-Meta-YAML-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-CPAN-Meta-YAML-help + CHECK_RESULT $? 0 0 "install perl-CPAN-Meta-YAML-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-CPAN-Meta-YAML-help + CHECK_RESULT $? 0 0 "remove perl-CPAN-Meta-YAML-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-CPAN-Meta-YAML/oe_test_perl-CPAN-Meta-YAML_install_and_remove_perl-CPAN-Meta-YAML.sh b/testcases/cli-test/perl-CPAN-Meta-YAML/oe_test_perl-CPAN-Meta-YAML_install_and_remove_perl-CPAN-Meta-YAML.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3eb6903b1b8deafc59c62dde6156d8addaca5c2 --- /dev/null +++ b/testcases/cli-test/perl-CPAN-Meta-YAML/oe_test_perl-CPAN-Meta-YAML_install_and_remove_perl-CPAN-Meta-YAML.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-CPAN-Meta-YAML +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-CPAN-Meta-YAML | grep -v \.src | grep perl-CPAN-Meta-YAML + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-CPAN-Meta-YAML" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-CPAN-Meta-YAML + CHECK_RESULT $? 0 0 "install perl-CPAN-Meta-YAML failed" + SLEEP_WAIT 1 + dnf remove -y perl-CPAN-Meta-YAML + CHECK_RESULT $? 0 0 "remove perl-CPAN-Meta-YAML failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-CPAN-Meta/oe_test_perl-CPAN-Meta_install_and_remove_perl-CPAN-Meta-help.sh b/testcases/cli-test/perl-CPAN-Meta/oe_test_perl-CPAN-Meta_install_and_remove_perl-CPAN-Meta-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ea30aa09e11761d28611617145b45a28632be3b --- /dev/null +++ b/testcases/cli-test/perl-CPAN-Meta/oe_test_perl-CPAN-Meta_install_and_remove_perl-CPAN-Meta-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-CPAN-Meta +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-CPAN-Meta-help | grep -v \.src | grep perl-CPAN-Meta-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-CPAN-Meta-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-CPAN-Meta-help + CHECK_RESULT $? 0 0 "install perl-CPAN-Meta-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-CPAN-Meta-help + CHECK_RESULT $? 0 0 "remove perl-CPAN-Meta-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-CPAN-Meta/oe_test_perl-CPAN-Meta_install_and_remove_perl-CPAN-Meta.sh b/testcases/cli-test/perl-CPAN-Meta/oe_test_perl-CPAN-Meta_install_and_remove_perl-CPAN-Meta.sh new file mode 100644 index 0000000000000000000000000000000000000000..28a027e4e2ba952f99a7b1795afe42f280b05e96 --- /dev/null +++ b/testcases/cli-test/perl-CPAN-Meta/oe_test_perl-CPAN-Meta_install_and_remove_perl-CPAN-Meta.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-CPAN-Meta +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-CPAN-Meta | grep -v \.src | grep perl-CPAN-Meta + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-CPAN-Meta" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-CPAN-Meta + CHECK_RESULT $? 0 0 "install perl-CPAN-Meta failed" + SLEEP_WAIT 1 + dnf remove -y perl-CPAN-Meta + CHECK_RESULT $? 0 0 "remove perl-CPAN-Meta failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Carp/oe_test_perl-Carp_install_and_remove_perl-Carp-help.sh b/testcases/cli-test/perl-Carp/oe_test_perl-Carp_install_and_remove_perl-Carp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..74613093abbcfe86800548123f60bf3b1d4ad4e0 --- /dev/null +++ b/testcases/cli-test/perl-Carp/oe_test_perl-Carp_install_and_remove_perl-Carp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Carp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Carp-help | grep -v \.src | grep perl-Carp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Carp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Carp-help + CHECK_RESULT $? 0 0 "install perl-Carp-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Carp-help + CHECK_RESULT $? 0 0 "remove perl-Carp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Carp/oe_test_perl-Carp_install_and_remove_perl-Carp.sh b/testcases/cli-test/perl-Carp/oe_test_perl-Carp_install_and_remove_perl-Carp.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9c344040db490600acc8b641ddcb63ca80c1612 --- /dev/null +++ b/testcases/cli-test/perl-Carp/oe_test_perl-Carp_install_and_remove_perl-Carp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Carp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Carp | grep -v \.src | grep perl-Carp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Carp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Carp + CHECK_RESULT $? 0 0 "install perl-Carp failed" + SLEEP_WAIT 1 + dnf remove -y perl-Carp + CHECK_RESULT $? 0 0 "remove perl-Carp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-debuginfo.sh b/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..87e615b42ed9481279b2bc11e8703e22b1b4a914 --- /dev/null +++ b/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Compress-Raw-Bzip2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Compress-Raw-Bzip2-debuginfo | grep -v \.src | grep perl-Compress-Raw-Bzip2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Compress-Raw-Bzip2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Compress-Raw-Bzip2-debuginfo + CHECK_RESULT $? 0 0 "install perl-Compress-Raw-Bzip2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Compress-Raw-Bzip2-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Compress-Raw-Bzip2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-debugsource.sh b/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9cd335c70a0971b965b057f6f043e7ecf83f922 --- /dev/null +++ b/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Compress-Raw-Bzip2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Compress-Raw-Bzip2-debugsource | grep -v \.src | grep perl-Compress-Raw-Bzip2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Compress-Raw-Bzip2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Compress-Raw-Bzip2-debugsource + CHECK_RESULT $? 0 0 "install perl-Compress-Raw-Bzip2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Compress-Raw-Bzip2-debugsource + CHECK_RESULT $? 0 0 "remove perl-Compress-Raw-Bzip2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-help.sh b/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8e4623551f99ebca08e467a2667a7098291217b --- /dev/null +++ b/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Compress-Raw-Bzip2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Compress-Raw-Bzip2-help | grep -v \.src | grep perl-Compress-Raw-Bzip2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Compress-Raw-Bzip2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Compress-Raw-Bzip2-help + CHECK_RESULT $? 0 0 "install perl-Compress-Raw-Bzip2-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Compress-Raw-Bzip2-help + CHECK_RESULT $? 0 0 "remove perl-Compress-Raw-Bzip2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2.sh b/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2.sh new file mode 100644 index 0000000000000000000000000000000000000000..484ba6ba8688314235ee240c2f41c3e0e737539c --- /dev/null +++ b/testcases/cli-test/perl-Compress-Raw-Bzip2/oe_test_perl-Compress-Raw-Bzip2_install_and_remove_perl-Compress-Raw-Bzip2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Compress-Raw-Bzip2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Compress-Raw-Bzip2 | grep -v \.src | grep perl-Compress-Raw-Bzip2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Compress-Raw-Bzip2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Compress-Raw-Bzip2 + CHECK_RESULT $? 0 0 "install perl-Compress-Raw-Bzip2 failed" + SLEEP_WAIT 1 + dnf remove -y perl-Compress-Raw-Bzip2 + CHECK_RESULT $? 0 0 "remove perl-Compress-Raw-Bzip2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-debuginfo.sh b/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf135aff6dd570d81038dda7ae1353218462bde2 --- /dev/null +++ b/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Compress-Raw-Zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Compress-Raw-Zlib-debuginfo | grep -v \.src | grep perl-Compress-Raw-Zlib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Compress-Raw-Zlib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Compress-Raw-Zlib-debuginfo + CHECK_RESULT $? 0 0 "install perl-Compress-Raw-Zlib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Compress-Raw-Zlib-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Compress-Raw-Zlib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-debugsource.sh b/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebaf8af971097bd6ffb4da65eaaf3df698945488 --- /dev/null +++ b/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Compress-Raw-Zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Compress-Raw-Zlib-debugsource | grep -v \.src | grep perl-Compress-Raw-Zlib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Compress-Raw-Zlib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Compress-Raw-Zlib-debugsource + CHECK_RESULT $? 0 0 "install perl-Compress-Raw-Zlib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Compress-Raw-Zlib-debugsource + CHECK_RESULT $? 0 0 "remove perl-Compress-Raw-Zlib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-help.sh b/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1bb7a3a018870a428710d51d2642b8751abe4e24 --- /dev/null +++ b/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Compress-Raw-Zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Compress-Raw-Zlib-help | grep -v \.src | grep perl-Compress-Raw-Zlib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Compress-Raw-Zlib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Compress-Raw-Zlib-help + CHECK_RESULT $? 0 0 "install perl-Compress-Raw-Zlib-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Compress-Raw-Zlib-help + CHECK_RESULT $? 0 0 "remove perl-Compress-Raw-Zlib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib.sh b/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib.sh new file mode 100644 index 0000000000000000000000000000000000000000..90fad9f486e280e10385362dcdadf57f6a84786f --- /dev/null +++ b/testcases/cli-test/perl-Compress-Raw-Zlib/oe_test_perl-Compress-Raw-Zlib_install_and_remove_perl-Compress-Raw-Zlib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Compress-Raw-Zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Compress-Raw-Zlib | grep -v \.src | grep perl-Compress-Raw-Zlib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Compress-Raw-Zlib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Compress-Raw-Zlib + CHECK_RESULT $? 0 0 "install perl-Compress-Raw-Zlib failed" + SLEEP_WAIT 1 + dnf remove -y perl-Compress-Raw-Zlib + CHECK_RESULT $? 0 0 "remove perl-Compress-Raw-Zlib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Config-Perl-V/oe_test_perl-Config-Perl-V_install_and_remove_perl-Config-Perl-V-help.sh b/testcases/cli-test/perl-Config-Perl-V/oe_test_perl-Config-Perl-V_install_and_remove_perl-Config-Perl-V-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..15786a296677b27424f17cfac478cdda4983a60f --- /dev/null +++ b/testcases/cli-test/perl-Config-Perl-V/oe_test_perl-Config-Perl-V_install_and_remove_perl-Config-Perl-V-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Config-Perl-V +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Config-Perl-V-help | grep -v \.src | grep perl-Config-Perl-V-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Config-Perl-V-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Config-Perl-V-help + CHECK_RESULT $? 0 0 "install perl-Config-Perl-V-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Config-Perl-V-help + CHECK_RESULT $? 0 0 "remove perl-Config-Perl-V-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Config-Perl-V/oe_test_perl-Config-Perl-V_install_and_remove_perl-Config-Perl-V.sh b/testcases/cli-test/perl-Config-Perl-V/oe_test_perl-Config-Perl-V_install_and_remove_perl-Config-Perl-V.sh new file mode 100644 index 0000000000000000000000000000000000000000..87567b0d3220411ec4fc4cb9347058dafe0a27d8 --- /dev/null +++ b/testcases/cli-test/perl-Config-Perl-V/oe_test_perl-Config-Perl-V_install_and_remove_perl-Config-Perl-V.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Config-Perl-V +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Config-Perl-V | grep -v \.src | grep perl-Config-Perl-V + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Config-Perl-V" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Config-Perl-V + CHECK_RESULT $? 0 0 "install perl-Config-Perl-V failed" + SLEEP_WAIT 1 + dnf remove -y perl-Config-Perl-V + CHECK_RESULT $? 0 0 "remove perl-Config-Perl-V failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-debuginfo.sh b/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..001ae666de9e3e54d71073d6033b0e735312edaa --- /dev/null +++ b/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Data-Dumper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Data-Dumper-debuginfo | grep -v \.src | grep perl-Data-Dumper-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Data-Dumper-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Data-Dumper-debuginfo + CHECK_RESULT $? 0 0 "install perl-Data-Dumper-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Data-Dumper-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Data-Dumper-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-debugsource.sh b/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e45bc3bd2546506137f3838b0437b0381129e23 --- /dev/null +++ b/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Data-Dumper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Data-Dumper-debugsource | grep -v \.src | grep perl-Data-Dumper-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Data-Dumper-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Data-Dumper-debugsource + CHECK_RESULT $? 0 0 "install perl-Data-Dumper-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Data-Dumper-debugsource + CHECK_RESULT $? 0 0 "remove perl-Data-Dumper-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-help.sh b/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d0abc24f43cb8e5cf9fc7fb9963e968b237acc1 --- /dev/null +++ b/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Data-Dumper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Data-Dumper-help | grep -v \.src | grep perl-Data-Dumper-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Data-Dumper-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Data-Dumper-help + CHECK_RESULT $? 0 0 "install perl-Data-Dumper-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Data-Dumper-help + CHECK_RESULT $? 0 0 "remove perl-Data-Dumper-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper.sh b/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcf3bc69553faae1b7bdb11008da4897d8f3aa14 --- /dev/null +++ b/testcases/cli-test/perl-Data-Dumper/oe_test_perl-Data-Dumper_install_and_remove_perl-Data-Dumper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Data-Dumper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Data-Dumper | grep -v \.src | grep perl-Data-Dumper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Data-Dumper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Data-Dumper + CHECK_RESULT $? 0 0 "install perl-Data-Dumper failed" + SLEEP_WAIT 1 + dnf remove -y perl-Data-Dumper + CHECK_RESULT $? 0 0 "remove perl-Data-Dumper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-debuginfo.sh b/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3637914a43271e08031f6e76bcf0a404e99553f7 --- /dev/null +++ b/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Devel-PPPort +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Devel-PPPort-debuginfo | grep -v \.src | grep perl-Devel-PPPort-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Devel-PPPort-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Devel-PPPort-debuginfo + CHECK_RESULT $? 0 0 "install perl-Devel-PPPort-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Devel-PPPort-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Devel-PPPort-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-debugsource.sh b/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e685bdd63f57988c1dd1a7d6dcad739b66b0e287 --- /dev/null +++ b/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Devel-PPPort +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Devel-PPPort-debugsource | grep -v \.src | grep perl-Devel-PPPort-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Devel-PPPort-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Devel-PPPort-debugsource + CHECK_RESULT $? 0 0 "install perl-Devel-PPPort-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Devel-PPPort-debugsource + CHECK_RESULT $? 0 0 "remove perl-Devel-PPPort-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-help.sh b/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7481eb71db2e712753768c00c4452a58daddf1c6 --- /dev/null +++ b/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Devel-PPPort +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Devel-PPPort-help | grep -v \.src | grep perl-Devel-PPPort-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Devel-PPPort-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Devel-PPPort-help + CHECK_RESULT $? 0 0 "install perl-Devel-PPPort-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Devel-PPPort-help + CHECK_RESULT $? 0 0 "remove perl-Devel-PPPort-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort.sh b/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort.sh new file mode 100644 index 0000000000000000000000000000000000000000..aba55c0ffd9356b647f70d5a4f4a8fac1edb2995 --- /dev/null +++ b/testcases/cli-test/perl-Devel-PPPort/oe_test_perl-Devel-PPPort_install_and_remove_perl-Devel-PPPort.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Devel-PPPort +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Devel-PPPort | grep -v \.src | grep perl-Devel-PPPort + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Devel-PPPort" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Devel-PPPort + CHECK_RESULT $? 0 0 "install perl-Devel-PPPort failed" + SLEEP_WAIT 1 + dnf remove -y perl-Devel-PPPort + CHECK_RESULT $? 0 0 "remove perl-Devel-PPPort failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-debuginfo.sh b/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..41f6b4d9586085bb1ffa519b5fd51ebde59cad7a --- /dev/null +++ b/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Digest-MD5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Digest-MD5-debuginfo | grep -v \.src | grep perl-Digest-MD5-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Digest-MD5-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Digest-MD5-debuginfo + CHECK_RESULT $? 0 0 "install perl-Digest-MD5-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Digest-MD5-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Digest-MD5-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-debugsource.sh b/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e807b10a811b64ab2a1da5093aca9b57b6d490d1 --- /dev/null +++ b/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Digest-MD5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Digest-MD5-debugsource | grep -v \.src | grep perl-Digest-MD5-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Digest-MD5-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Digest-MD5-debugsource + CHECK_RESULT $? 0 0 "install perl-Digest-MD5-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Digest-MD5-debugsource + CHECK_RESULT $? 0 0 "remove perl-Digest-MD5-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-help.sh b/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..51b8beb4926f1f9e9388289b64d5118bd945117d --- /dev/null +++ b/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Digest-MD5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Digest-MD5-help | grep -v \.src | grep perl-Digest-MD5-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Digest-MD5-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Digest-MD5-help + CHECK_RESULT $? 0 0 "install perl-Digest-MD5-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Digest-MD5-help + CHECK_RESULT $? 0 0 "remove perl-Digest-MD5-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5.sh b/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5.sh new file mode 100644 index 0000000000000000000000000000000000000000..c36e9f350f9084f9afee8ab192349274efec30e0 --- /dev/null +++ b/testcases/cli-test/perl-Digest-MD5/oe_test_perl-Digest-MD5_install_and_remove_perl-Digest-MD5.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Digest-MD5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Digest-MD5 | grep -v \.src | grep perl-Digest-MD5 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Digest-MD5" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Digest-MD5 + CHECK_RESULT $? 0 0 "install perl-Digest-MD5 failed" + SLEEP_WAIT 1 + dnf remove -y perl-Digest-MD5 + CHECK_RESULT $? 0 0 "remove perl-Digest-MD5 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-debuginfo.sh b/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..68e32c601f62e3e9b9e9b2b2547ee8f454c43d31 --- /dev/null +++ b/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Digest-SHA +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Digest-SHA-debuginfo | grep -v \.src | grep perl-Digest-SHA-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Digest-SHA-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Digest-SHA-debuginfo + CHECK_RESULT $? 0 0 "install perl-Digest-SHA-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Digest-SHA-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Digest-SHA-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-debugsource.sh b/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2b52eaf4b6a1bc5a1e51db1fe9b147186c70b2e --- /dev/null +++ b/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Digest-SHA +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Digest-SHA-debugsource | grep -v \.src | grep perl-Digest-SHA-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Digest-SHA-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Digest-SHA-debugsource + CHECK_RESULT $? 0 0 "install perl-Digest-SHA-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Digest-SHA-debugsource + CHECK_RESULT $? 0 0 "remove perl-Digest-SHA-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-help.sh b/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..12edc188e1dde13cb2e393acd6b6c682b88e2cd6 --- /dev/null +++ b/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Digest-SHA +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Digest-SHA-help | grep -v \.src | grep perl-Digest-SHA-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Digest-SHA-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Digest-SHA-help + CHECK_RESULT $? 0 0 "install perl-Digest-SHA-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Digest-SHA-help + CHECK_RESULT $? 0 0 "remove perl-Digest-SHA-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA.sh b/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA.sh new file mode 100644 index 0000000000000000000000000000000000000000..bab164f393a7fbee8a24761a447858dd3637daa0 --- /dev/null +++ b/testcases/cli-test/perl-Digest-SHA/oe_test_perl-Digest-SHA_install_and_remove_perl-Digest-SHA.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Digest-SHA +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Digest-SHA | grep -v \.src | grep perl-Digest-SHA + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Digest-SHA" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Digest-SHA + CHECK_RESULT $? 0 0 "install perl-Digest-SHA failed" + SLEEP_WAIT 1 + dnf remove -y perl-Digest-SHA + CHECK_RESULT $? 0 0 "remove perl-Digest-SHA failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Digest/oe_test_perl-Digest_install_and_remove_perl-Digest-help.sh b/testcases/cli-test/perl-Digest/oe_test_perl-Digest_install_and_remove_perl-Digest-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ba504569b99f94e6e41b01517140447ba037829 --- /dev/null +++ b/testcases/cli-test/perl-Digest/oe_test_perl-Digest_install_and_remove_perl-Digest-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Digest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Digest-help | grep -v \.src | grep perl-Digest-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Digest-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Digest-help + CHECK_RESULT $? 0 0 "install perl-Digest-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Digest-help + CHECK_RESULT $? 0 0 "remove perl-Digest-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Digest/oe_test_perl-Digest_install_and_remove_perl-Digest.sh b/testcases/cli-test/perl-Digest/oe_test_perl-Digest_install_and_remove_perl-Digest.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8b65346786abe67b9c9503c95d79e3bf7882c7d --- /dev/null +++ b/testcases/cli-test/perl-Digest/oe_test_perl-Digest_install_and_remove_perl-Digest.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Digest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Digest | grep -v \.src | grep perl-Digest + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Digest" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Digest + CHECK_RESULT $? 0 0 "install perl-Digest failed" + SLEEP_WAIT 1 + dnf remove -y perl-Digest + CHECK_RESULT $? 0 0 "remove perl-Digest failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-debuginfo.sh b/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba697cfb634a62a8caac4e56c5d6a742e0f59bb6 --- /dev/null +++ b/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Encode +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Encode-debuginfo | grep -v \.src | grep perl-Encode-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Encode-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Encode-debuginfo + CHECK_RESULT $? 0 0 "install perl-Encode-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Encode-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Encode-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-debugsource.sh b/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a928bcbab82c838f22acce7fb6ba8298b4ea099 --- /dev/null +++ b/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Encode +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Encode-debugsource | grep -v \.src | grep perl-Encode-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Encode-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Encode-debugsource + CHECK_RESULT $? 0 0 "install perl-Encode-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Encode-debugsource + CHECK_RESULT $? 0 0 "remove perl-Encode-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-devel.sh b/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8684951fb8981591b23d98683c3cbe15d9c370b5 --- /dev/null +++ b/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Encode +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Encode-devel | grep -v \.src | grep perl-Encode-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Encode-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Encode-devel + CHECK_RESULT $? 0 0 "install perl-Encode-devel failed" + SLEEP_WAIT 1 + dnf remove -y perl-Encode-devel + CHECK_RESULT $? 0 0 "remove perl-Encode-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-help.sh b/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..48ee63ecbec817a3a45def1e3458c4e6e06bc9c5 --- /dev/null +++ b/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Encode +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Encode-help | grep -v \.src | grep perl-Encode-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Encode-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Encode-help + CHECK_RESULT $? 0 0 "install perl-Encode-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Encode-help + CHECK_RESULT $? 0 0 "remove perl-Encode-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode.sh b/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode.sh new file mode 100644 index 0000000000000000000000000000000000000000..f83bf737ffe9811483b3b7788253f55d777fc2a4 --- /dev/null +++ b/testcases/cli-test/perl-Encode/oe_test_perl-Encode_install_and_remove_perl-Encode.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Encode +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Encode | grep -v \.src | grep perl-Encode + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Encode" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Encode + CHECK_RESULT $? 0 0 "install perl-Encode failed" + SLEEP_WAIT 1 + dnf remove -y perl-Encode + CHECK_RESULT $? 0 0 "remove perl-Encode failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Env/oe_test_perl-Env_install_and_remove_perl-Env-help.sh b/testcases/cli-test/perl-Env/oe_test_perl-Env_install_and_remove_perl-Env-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a272972f9d4243179d9c76082e5db9057efd41ab --- /dev/null +++ b/testcases/cli-test/perl-Env/oe_test_perl-Env_install_and_remove_perl-Env-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Env +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Env-help | grep -v \.src | grep perl-Env-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Env-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Env-help + CHECK_RESULT $? 0 0 "install perl-Env-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Env-help + CHECK_RESULT $? 0 0 "remove perl-Env-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Env/oe_test_perl-Env_install_and_remove_perl-Env.sh b/testcases/cli-test/perl-Env/oe_test_perl-Env_install_and_remove_perl-Env.sh new file mode 100644 index 0000000000000000000000000000000000000000..62294f29e7c14bed210e5dbdc3424d673fa0786b --- /dev/null +++ b/testcases/cli-test/perl-Env/oe_test_perl-Env_install_and_remove_perl-Env.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Env +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Env | grep -v \.src | grep perl-Env + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Env" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Env + CHECK_RESULT $? 0 0 "install perl-Env failed" + SLEEP_WAIT 1 + dnf remove -y perl-Env + CHECK_RESULT $? 0 0 "remove perl-Env failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Error/oe_test_perl-Error_install_and_remove_perl-Error-help.sh b/testcases/cli-test/perl-Error/oe_test_perl-Error_install_and_remove_perl-Error-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..76e52d1a4359ead374002d14eeaece44601d01a8 --- /dev/null +++ b/testcases/cli-test/perl-Error/oe_test_perl-Error_install_and_remove_perl-Error-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Error +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Error-help | grep -v \.src | grep perl-Error-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Error-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Error-help + CHECK_RESULT $? 0 0 "install perl-Error-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Error-help + CHECK_RESULT $? 0 0 "remove perl-Error-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Error/oe_test_perl-Error_install_and_remove_perl-Error.sh b/testcases/cli-test/perl-Error/oe_test_perl-Error_install_and_remove_perl-Error.sh new file mode 100644 index 0000000000000000000000000000000000000000..450da8735913863a8569c307b34a211f12154bb8 --- /dev/null +++ b/testcases/cli-test/perl-Error/oe_test_perl-Error_install_and_remove_perl-Error.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Error +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Error | grep -v \.src | grep perl-Error + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Error" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Error + CHECK_RESULT $? 0 0 "install perl-Error failed" + SLEEP_WAIT 1 + dnf remove -y perl-Error + CHECK_RESULT $? 0 0 "remove perl-Error failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Exporter/oe_test_perl-Exporter_install_and_remove_perl-Exporter-help.sh b/testcases/cli-test/perl-Exporter/oe_test_perl-Exporter_install_and_remove_perl-Exporter-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4778cf0159cd6506f07e7ee03b406675e463ad8c --- /dev/null +++ b/testcases/cli-test/perl-Exporter/oe_test_perl-Exporter_install_and_remove_perl-Exporter-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Exporter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Exporter-help | grep -v \.src | grep perl-Exporter-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Exporter-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Exporter-help + CHECK_RESULT $? 0 0 "install perl-Exporter-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Exporter-help + CHECK_RESULT $? 0 0 "remove perl-Exporter-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Exporter/oe_test_perl-Exporter_install_and_remove_perl-Exporter.sh b/testcases/cli-test/perl-Exporter/oe_test_perl-Exporter_install_and_remove_perl-Exporter.sh new file mode 100644 index 0000000000000000000000000000000000000000..964a6f240afed72d215ee49681fcd8a199f9364c --- /dev/null +++ b/testcases/cli-test/perl-Exporter/oe_test_perl-Exporter_install_and_remove_perl-Exporter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Exporter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Exporter | grep -v \.src | grep perl-Exporter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Exporter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Exporter + CHECK_RESULT $? 0 0 "install perl-Exporter failed" + SLEEP_WAIT 1 + dnf remove -y perl-Exporter + CHECK_RESULT $? 0 0 "remove perl-Exporter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-ExtUtils-Install/oe_test_perl-ExtUtils-Install_install_and_remove_perl-ExtUtils-Install-help.sh b/testcases/cli-test/perl-ExtUtils-Install/oe_test_perl-ExtUtils-Install_install_and_remove_perl-ExtUtils-Install-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..44e7f563e7729d7434e28baa6ef6737046783b3d --- /dev/null +++ b/testcases/cli-test/perl-ExtUtils-Install/oe_test_perl-ExtUtils-Install_install_and_remove_perl-ExtUtils-Install-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-ExtUtils-Install +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-ExtUtils-Install-help | grep -v \.src | grep perl-ExtUtils-Install-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-ExtUtils-Install-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-ExtUtils-Install-help + CHECK_RESULT $? 0 0 "install perl-ExtUtils-Install-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-ExtUtils-Install-help + CHECK_RESULT $? 0 0 "remove perl-ExtUtils-Install-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-ExtUtils-Install/oe_test_perl-ExtUtils-Install_install_and_remove_perl-ExtUtils-Install.sh b/testcases/cli-test/perl-ExtUtils-Install/oe_test_perl-ExtUtils-Install_install_and_remove_perl-ExtUtils-Install.sh new file mode 100644 index 0000000000000000000000000000000000000000..724bb42d3efb88069ef9160f997763a134e615df --- /dev/null +++ b/testcases/cli-test/perl-ExtUtils-Install/oe_test_perl-ExtUtils-Install_install_and_remove_perl-ExtUtils-Install.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-ExtUtils-Install +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-ExtUtils-Install | grep -v \.src | grep perl-ExtUtils-Install + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-ExtUtils-Install" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-ExtUtils-Install + CHECK_RESULT $? 0 0 "install perl-ExtUtils-Install failed" + SLEEP_WAIT 1 + dnf remove -y perl-ExtUtils-Install + CHECK_RESULT $? 0 0 "remove perl-ExtUtils-Install failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-ExtUtils-MakeMaker/oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-Command.sh b/testcases/cli-test/perl-ExtUtils-MakeMaker/oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-Command.sh new file mode 100644 index 0000000000000000000000000000000000000000..2886a3928091d00442d83af2948d95295dbd9122 --- /dev/null +++ b/testcases/cli-test/perl-ExtUtils-MakeMaker/oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-Command.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-ExtUtils-MakeMaker +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-ExtUtils-Command | grep -v \.src | grep perl-ExtUtils-Command + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-ExtUtils-Command" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-ExtUtils-Command + CHECK_RESULT $? 0 0 "install perl-ExtUtils-Command failed" + SLEEP_WAIT 1 + dnf remove -y perl-ExtUtils-Command + CHECK_RESULT $? 0 0 "remove perl-ExtUtils-Command failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-ExtUtils-MakeMaker/oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-MakeMaker-help.sh b/testcases/cli-test/perl-ExtUtils-MakeMaker/oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-MakeMaker-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a1bbcdef900e4303cea7a10c4bcc1eee949630a8 --- /dev/null +++ b/testcases/cli-test/perl-ExtUtils-MakeMaker/oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-MakeMaker-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-ExtUtils-MakeMaker +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-ExtUtils-MakeMaker-help | grep -v \.src | grep perl-ExtUtils-MakeMaker-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-ExtUtils-MakeMaker-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-ExtUtils-MakeMaker-help + CHECK_RESULT $? 0 0 "install perl-ExtUtils-MakeMaker-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-ExtUtils-MakeMaker-help + CHECK_RESULT $? 0 0 "remove perl-ExtUtils-MakeMaker-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-ExtUtils-MakeMaker/oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-MakeMaker.sh b/testcases/cli-test/perl-ExtUtils-MakeMaker/oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-MakeMaker.sh new file mode 100644 index 0000000000000000000000000000000000000000..b691de91cdbba8a873c9a7ac20abd0969cdcdf3f --- /dev/null +++ b/testcases/cli-test/perl-ExtUtils-MakeMaker/oe_test_perl-ExtUtils-MakeMaker_install_and_remove_perl-ExtUtils-MakeMaker.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-ExtUtils-MakeMaker +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-ExtUtils-MakeMaker | grep -v \.src | grep perl-ExtUtils-MakeMaker + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-ExtUtils-MakeMaker" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-ExtUtils-MakeMaker + CHECK_RESULT $? 0 0 "install perl-ExtUtils-MakeMaker failed" + SLEEP_WAIT 1 + dnf remove -y perl-ExtUtils-MakeMaker + CHECK_RESULT $? 0 0 "remove perl-ExtUtils-MakeMaker failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-ExtUtils-Manifest/oe_test_perl-ExtUtils-Manifest_install_and_remove_perl-ExtUtils-Manifest-help.sh b/testcases/cli-test/perl-ExtUtils-Manifest/oe_test_perl-ExtUtils-Manifest_install_and_remove_perl-ExtUtils-Manifest-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a639b8b76ebd5976b9b74de62117a50f2ff9cf68 --- /dev/null +++ b/testcases/cli-test/perl-ExtUtils-Manifest/oe_test_perl-ExtUtils-Manifest_install_and_remove_perl-ExtUtils-Manifest-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-ExtUtils-Manifest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-ExtUtils-Manifest-help | grep -v \.src | grep perl-ExtUtils-Manifest-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-ExtUtils-Manifest-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-ExtUtils-Manifest-help + CHECK_RESULT $? 0 0 "install perl-ExtUtils-Manifest-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-ExtUtils-Manifest-help + CHECK_RESULT $? 0 0 "remove perl-ExtUtils-Manifest-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-ExtUtils-Manifest/oe_test_perl-ExtUtils-Manifest_install_and_remove_perl-ExtUtils-Manifest.sh b/testcases/cli-test/perl-ExtUtils-Manifest/oe_test_perl-ExtUtils-Manifest_install_and_remove_perl-ExtUtils-Manifest.sh new file mode 100644 index 0000000000000000000000000000000000000000..3297a4931576244b77d469cbe109ffb6a8f5a338 --- /dev/null +++ b/testcases/cli-test/perl-ExtUtils-Manifest/oe_test_perl-ExtUtils-Manifest_install_and_remove_perl-ExtUtils-Manifest.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-ExtUtils-Manifest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-ExtUtils-Manifest | grep -v \.src | grep perl-ExtUtils-Manifest + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-ExtUtils-Manifest" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-ExtUtils-Manifest + CHECK_RESULT $? 0 0 "install perl-ExtUtils-Manifest failed" + SLEEP_WAIT 1 + dnf remove -y perl-ExtUtils-Manifest + CHECK_RESULT $? 0 0 "remove perl-ExtUtils-Manifest failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-ExtUtils-ParseXS/oe_test_perl-ExtUtils-ParseXS_install_and_remove_perl-ExtUtils-ParseXS-help.sh b/testcases/cli-test/perl-ExtUtils-ParseXS/oe_test_perl-ExtUtils-ParseXS_install_and_remove_perl-ExtUtils-ParseXS-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b768b515a0a65b6acf679b7500fa7b03d1c2c17e --- /dev/null +++ b/testcases/cli-test/perl-ExtUtils-ParseXS/oe_test_perl-ExtUtils-ParseXS_install_and_remove_perl-ExtUtils-ParseXS-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-ExtUtils-ParseXS +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-ExtUtils-ParseXS-help | grep -v \.src | grep perl-ExtUtils-ParseXS-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-ExtUtils-ParseXS-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-ExtUtils-ParseXS-help + CHECK_RESULT $? 0 0 "install perl-ExtUtils-ParseXS-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-ExtUtils-ParseXS-help + CHECK_RESULT $? 0 0 "remove perl-ExtUtils-ParseXS-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-ExtUtils-ParseXS/oe_test_perl-ExtUtils-ParseXS_install_and_remove_perl-ExtUtils-ParseXS.sh b/testcases/cli-test/perl-ExtUtils-ParseXS/oe_test_perl-ExtUtils-ParseXS_install_and_remove_perl-ExtUtils-ParseXS.sh new file mode 100644 index 0000000000000000000000000000000000000000..5df82be801563043d8dc4f9da2e3eb74351c80b3 --- /dev/null +++ b/testcases/cli-test/perl-ExtUtils-ParseXS/oe_test_perl-ExtUtils-ParseXS_install_and_remove_perl-ExtUtils-ParseXS.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-ExtUtils-ParseXS +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-ExtUtils-ParseXS | grep -v \.src | grep perl-ExtUtils-ParseXS + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-ExtUtils-ParseXS" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-ExtUtils-ParseXS + CHECK_RESULT $? 0 0 "install perl-ExtUtils-ParseXS failed" + SLEEP_WAIT 1 + dnf remove -y perl-ExtUtils-ParseXS + CHECK_RESULT $? 0 0 "remove perl-ExtUtils-ParseXS failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-File-Copy-Recursive/oe_test_perl-File-Copy-Recursive_install_and_remove_perl-File-Copy-Recursive-help.sh b/testcases/cli-test/perl-File-Copy-Recursive/oe_test_perl-File-Copy-Recursive_install_and_remove_perl-File-Copy-Recursive-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c65e038044e226a6582b7cce5cb1e56fe68b4c19 --- /dev/null +++ b/testcases/cli-test/perl-File-Copy-Recursive/oe_test_perl-File-Copy-Recursive_install_and_remove_perl-File-Copy-Recursive-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-File-Copy-Recursive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-File-Copy-Recursive-help | grep -v \.src | grep perl-File-Copy-Recursive-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-File-Copy-Recursive-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-File-Copy-Recursive-help + CHECK_RESULT $? 0 0 "install perl-File-Copy-Recursive-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-File-Copy-Recursive-help + CHECK_RESULT $? 0 0 "remove perl-File-Copy-Recursive-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-File-Copy-Recursive/oe_test_perl-File-Copy-Recursive_install_and_remove_perl-File-Copy-Recursive.sh b/testcases/cli-test/perl-File-Copy-Recursive/oe_test_perl-File-Copy-Recursive_install_and_remove_perl-File-Copy-Recursive.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e75cdef7cf62cf80288f73cf9ce20d9456b0d05 --- /dev/null +++ b/testcases/cli-test/perl-File-Copy-Recursive/oe_test_perl-File-Copy-Recursive_install_and_remove_perl-File-Copy-Recursive.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-File-Copy-Recursive +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-File-Copy-Recursive | grep -v \.src | grep perl-File-Copy-Recursive + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-File-Copy-Recursive" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-File-Copy-Recursive + CHECK_RESULT $? 0 0 "install perl-File-Copy-Recursive failed" + SLEEP_WAIT 1 + dnf remove -y perl-File-Copy-Recursive + CHECK_RESULT $? 0 0 "remove perl-File-Copy-Recursive failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-File-Fetch/oe_test_perl-File-Fetch_install_and_remove_perl-File-Fetch-help.sh b/testcases/cli-test/perl-File-Fetch/oe_test_perl-File-Fetch_install_and_remove_perl-File-Fetch-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..64c9fb9fa4c0f5bcac6cccd9ff499a660da3caba --- /dev/null +++ b/testcases/cli-test/perl-File-Fetch/oe_test_perl-File-Fetch_install_and_remove_perl-File-Fetch-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-File-Fetch +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-File-Fetch-help | grep -v \.src | grep perl-File-Fetch-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-File-Fetch-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-File-Fetch-help + CHECK_RESULT $? 0 0 "install perl-File-Fetch-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-File-Fetch-help + CHECK_RESULT $? 0 0 "remove perl-File-Fetch-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-File-Fetch/oe_test_perl-File-Fetch_install_and_remove_perl-File-Fetch.sh b/testcases/cli-test/perl-File-Fetch/oe_test_perl-File-Fetch_install_and_remove_perl-File-Fetch.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8d8da17d9ad946df2467bdaf8be4caa35ce3c59 --- /dev/null +++ b/testcases/cli-test/perl-File-Fetch/oe_test_perl-File-Fetch_install_and_remove_perl-File-Fetch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-File-Fetch +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-File-Fetch | grep -v \.src | grep perl-File-Fetch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-File-Fetch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-File-Fetch + CHECK_RESULT $? 0 0 "install perl-File-Fetch failed" + SLEEP_WAIT 1 + dnf remove -y perl-File-Fetch + CHECK_RESULT $? 0 0 "remove perl-File-Fetch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-File-Path/oe_test_perl-File-Path_install_and_remove_perl-File-Path-help.sh b/testcases/cli-test/perl-File-Path/oe_test_perl-File-Path_install_and_remove_perl-File-Path-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..57f2f622c4887a30191df4ed6de3346f270d86a2 --- /dev/null +++ b/testcases/cli-test/perl-File-Path/oe_test_perl-File-Path_install_and_remove_perl-File-Path-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-File-Path +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-File-Path-help | grep -v \.src | grep perl-File-Path-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-File-Path-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-File-Path-help + CHECK_RESULT $? 0 0 "install perl-File-Path-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-File-Path-help + CHECK_RESULT $? 0 0 "remove perl-File-Path-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-File-Path/oe_test_perl-File-Path_install_and_remove_perl-File-Path.sh b/testcases/cli-test/perl-File-Path/oe_test_perl-File-Path_install_and_remove_perl-File-Path.sh new file mode 100644 index 0000000000000000000000000000000000000000..9829ee529fe1326d91f3a1c734d990cfbcdb84dc --- /dev/null +++ b/testcases/cli-test/perl-File-Path/oe_test_perl-File-Path_install_and_remove_perl-File-Path.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-File-Path +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-File-Path | grep -v \.src | grep perl-File-Path + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-File-Path" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-File-Path + CHECK_RESULT $? 0 0 "install perl-File-Path failed" + SLEEP_WAIT 1 + dnf remove -y perl-File-Path + CHECK_RESULT $? 0 0 "remove perl-File-Path failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-File-Temp/oe_test_perl-File-Temp_install_and_remove_perl-File-Temp-help.sh b/testcases/cli-test/perl-File-Temp/oe_test_perl-File-Temp_install_and_remove_perl-File-Temp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0117e7eef9fea87f838e2400605f09bf94040281 --- /dev/null +++ b/testcases/cli-test/perl-File-Temp/oe_test_perl-File-Temp_install_and_remove_perl-File-Temp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-File-Temp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-File-Temp-help | grep -v \.src | grep perl-File-Temp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-File-Temp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-File-Temp-help + CHECK_RESULT $? 0 0 "install perl-File-Temp-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-File-Temp-help + CHECK_RESULT $? 0 0 "remove perl-File-Temp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-File-Temp/oe_test_perl-File-Temp_install_and_remove_perl-File-Temp.sh b/testcases/cli-test/perl-File-Temp/oe_test_perl-File-Temp_install_and_remove_perl-File-Temp.sh new file mode 100644 index 0000000000000000000000000000000000000000..e195ef9123b4642ecf17012f14e6d6958b8659bf --- /dev/null +++ b/testcases/cli-test/perl-File-Temp/oe_test_perl-File-Temp_install_and_remove_perl-File-Temp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-File-Temp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-File-Temp | grep -v \.src | grep perl-File-Temp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-File-Temp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-File-Temp + CHECK_RESULT $? 0 0 "install perl-File-Temp failed" + SLEEP_WAIT 1 + dnf remove -y perl-File-Temp + CHECK_RESULT $? 0 0 "remove perl-File-Temp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Filter-Simple/oe_test_perl-Filter-Simple_install_and_remove_perl-Filter-Simple-help.sh b/testcases/cli-test/perl-Filter-Simple/oe_test_perl-Filter-Simple_install_and_remove_perl-Filter-Simple-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f369f4924fbae1c898f6a582e4e61741c008706 --- /dev/null +++ b/testcases/cli-test/perl-Filter-Simple/oe_test_perl-Filter-Simple_install_and_remove_perl-Filter-Simple-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Filter-Simple +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Filter-Simple-help | grep -v \.src | grep perl-Filter-Simple-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Filter-Simple-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Filter-Simple-help + CHECK_RESULT $? 0 0 "install perl-Filter-Simple-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Filter-Simple-help + CHECK_RESULT $? 0 0 "remove perl-Filter-Simple-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Filter-Simple/oe_test_perl-Filter-Simple_install_and_remove_perl-Filter-Simple.sh b/testcases/cli-test/perl-Filter-Simple/oe_test_perl-Filter-Simple_install_and_remove_perl-Filter-Simple.sh new file mode 100644 index 0000000000000000000000000000000000000000..840afed788e53bbd5006ba0656c2529254b1403e --- /dev/null +++ b/testcases/cli-test/perl-Filter-Simple/oe_test_perl-Filter-Simple_install_and_remove_perl-Filter-Simple.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Filter-Simple +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Filter-Simple | grep -v \.src | grep perl-Filter-Simple + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Filter-Simple" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Filter-Simple + CHECK_RESULT $? 0 0 "install perl-Filter-Simple failed" + SLEEP_WAIT 1 + dnf remove -y perl-Filter-Simple + CHECK_RESULT $? 0 0 "remove perl-Filter-Simple failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter-debuginfo.sh b/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d34e69a10e0705cc848a6c9226486ba5272f1ce2 --- /dev/null +++ b/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Filter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Filter-debuginfo | grep -v \.src | grep perl-Filter-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Filter-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Filter-debuginfo + CHECK_RESULT $? 0 0 "install perl-Filter-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Filter-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Filter-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter-debugsource.sh b/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3748617f8049f6e31f9abdc7c9b989be55d2e8d5 --- /dev/null +++ b/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Filter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Filter-debugsource | grep -v \.src | grep perl-Filter-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Filter-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Filter-debugsource + CHECK_RESULT $? 0 0 "install perl-Filter-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Filter-debugsource + CHECK_RESULT $? 0 0 "remove perl-Filter-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter-help.sh b/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6fd8f30c92810a9bef9d0618f9448c421bf4b03 --- /dev/null +++ b/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Filter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Filter-help | grep -v \.src | grep perl-Filter-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Filter-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Filter-help + CHECK_RESULT $? 0 0 "install perl-Filter-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Filter-help + CHECK_RESULT $? 0 0 "remove perl-Filter-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter.sh b/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter.sh new file mode 100644 index 0000000000000000000000000000000000000000..32ab3d6708ad0859d632a537c7165be41ed9ea02 --- /dev/null +++ b/testcases/cli-test/perl-Filter/oe_test_perl-Filter_install_and_remove_perl-Filter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Filter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Filter | grep -v \.src | grep perl-Filter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Filter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Filter + CHECK_RESULT $? 0 0 "install perl-Filter failed" + SLEEP_WAIT 1 + dnf remove -y perl-Filter + CHECK_RESULT $? 0 0 "remove perl-Filter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Getopt-Long/oe_test_perl-Getopt-Long_install_and_remove_perl-Getopt-Long-help.sh b/testcases/cli-test/perl-Getopt-Long/oe_test_perl-Getopt-Long_install_and_remove_perl-Getopt-Long-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f01d734506147f4e9c2345ad76124bd73e8f20a --- /dev/null +++ b/testcases/cli-test/perl-Getopt-Long/oe_test_perl-Getopt-Long_install_and_remove_perl-Getopt-Long-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Getopt-Long +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Getopt-Long-help | grep -v \.src | grep perl-Getopt-Long-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Getopt-Long-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Getopt-Long-help + CHECK_RESULT $? 0 0 "install perl-Getopt-Long-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Getopt-Long-help + CHECK_RESULT $? 0 0 "remove perl-Getopt-Long-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Getopt-Long/oe_test_perl-Getopt-Long_install_and_remove_perl-Getopt-Long.sh b/testcases/cli-test/perl-Getopt-Long/oe_test_perl-Getopt-Long_install_and_remove_perl-Getopt-Long.sh new file mode 100644 index 0000000000000000000000000000000000000000..538f2846aba618ace301986a9c063fff1082fc08 --- /dev/null +++ b/testcases/cli-test/perl-Getopt-Long/oe_test_perl-Getopt-Long_install_and_remove_perl-Getopt-Long.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Getopt-Long +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Getopt-Long | grep -v \.src | grep perl-Getopt-Long + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Getopt-Long" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Getopt-Long + CHECK_RESULT $? 0 0 "install perl-Getopt-Long failed" + SLEEP_WAIT 1 + dnf remove -y perl-Getopt-Long + CHECK_RESULT $? 0 0 "remove perl-Getopt-Long failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-doc.sh b/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a73d11e4252f426d17b7b393c1d478c1110ef320 --- /dev/null +++ b/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-HTTP-Daemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-HTTP-Daemon-doc | grep -v \.src | grep perl-HTTP-Daemon-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-HTTP-Daemon-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-HTTP-Daemon-doc + CHECK_RESULT $? 0 0 "install perl-HTTP-Daemon-doc failed" + SLEEP_WAIT 1 + dnf remove -y perl-HTTP-Daemon-doc + CHECK_RESULT $? 0 0 "remove perl-HTTP-Daemon-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-help.sh b/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdd32dfe590ceaafe15bce084304e17c3364f595 --- /dev/null +++ b/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-HTTP-Daemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-HTTP-Daemon-help | grep -v \.src | grep perl-HTTP-Daemon-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-HTTP-Daemon-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-HTTP-Daemon-help + CHECK_RESULT $? 0 0 "install perl-HTTP-Daemon-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-HTTP-Daemon-help + CHECK_RESULT $? 0 0 "remove perl-HTTP-Daemon-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-tests.sh b/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..96b90153607bb6844ae13a96e9f8e3c946648edf --- /dev/null +++ b/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-HTTP-Daemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-HTTP-Daemon-tests | grep -v \.src | grep perl-HTTP-Daemon-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-HTTP-Daemon-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-HTTP-Daemon-tests + CHECK_RESULT $? 0 0 "install perl-HTTP-Daemon-tests failed" + SLEEP_WAIT 1 + dnf remove -y perl-HTTP-Daemon-tests + CHECK_RESULT $? 0 0 "remove perl-HTTP-Daemon-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon.sh b/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e5d9f99b73b82afb3d982cbcf0cb21eab070264 --- /dev/null +++ b/testcases/cli-test/perl-HTTP-Daemon/oe_test_perl-HTTP-Daemon_install_and_remove_perl-HTTP-Daemon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-HTTP-Daemon +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-HTTP-Daemon | grep -v \.src | grep perl-HTTP-Daemon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-HTTP-Daemon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-HTTP-Daemon + CHECK_RESULT $? 0 0 "install perl-HTTP-Daemon failed" + SLEEP_WAIT 1 + dnf remove -y perl-HTTP-Daemon + CHECK_RESULT $? 0 0 "remove perl-HTTP-Daemon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-HTTP-Tiny/oe_test_perl-HTTP-Tiny_install_and_remove_perl-HTTP-Tiny-help.sh b/testcases/cli-test/perl-HTTP-Tiny/oe_test_perl-HTTP-Tiny_install_and_remove_perl-HTTP-Tiny-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..81fe38ad6184356749436bd0f9f5dec5d9e3955d --- /dev/null +++ b/testcases/cli-test/perl-HTTP-Tiny/oe_test_perl-HTTP-Tiny_install_and_remove_perl-HTTP-Tiny-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-HTTP-Tiny +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-HTTP-Tiny-help | grep -v \.src | grep perl-HTTP-Tiny-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-HTTP-Tiny-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-HTTP-Tiny-help + CHECK_RESULT $? 0 0 "install perl-HTTP-Tiny-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-HTTP-Tiny-help + CHECK_RESULT $? 0 0 "remove perl-HTTP-Tiny-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-HTTP-Tiny/oe_test_perl-HTTP-Tiny_install_and_remove_perl-HTTP-Tiny.sh b/testcases/cli-test/perl-HTTP-Tiny/oe_test_perl-HTTP-Tiny_install_and_remove_perl-HTTP-Tiny.sh new file mode 100644 index 0000000000000000000000000000000000000000..98d580868b5044ecbd005d4c7bd24bf00df109f3 --- /dev/null +++ b/testcases/cli-test/perl-HTTP-Tiny/oe_test_perl-HTTP-Tiny_install_and_remove_perl-HTTP-Tiny.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-HTTP-Tiny +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-HTTP-Tiny | grep -v \.src | grep perl-HTTP-Tiny + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-HTTP-Tiny" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-HTTP-Tiny + CHECK_RESULT $? 0 0 "install perl-HTTP-Tiny failed" + SLEEP_WAIT 1 + dnf remove -y perl-HTTP-Tiny + CHECK_RESULT $? 0 0 "remove perl-HTTP-Tiny failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IO-Compress/oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress-doc.sh b/testcases/cli-test/perl-IO-Compress/oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..df8b391ab05f42796bb7f442edd1ebf2ec7e24ee --- /dev/null +++ b/testcases/cli-test/perl-IO-Compress/oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IO-Compress +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IO-Compress-doc | grep -v \.src | grep perl-IO-Compress-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IO-Compress-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IO-Compress-doc + CHECK_RESULT $? 0 0 "install perl-IO-Compress-doc failed" + SLEEP_WAIT 1 + dnf remove -y perl-IO-Compress-doc + CHECK_RESULT $? 0 0 "remove perl-IO-Compress-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IO-Compress/oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress-help.sh b/testcases/cli-test/perl-IO-Compress/oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec35d96cbd94c74df60fd725c2dc29b4d098a625 --- /dev/null +++ b/testcases/cli-test/perl-IO-Compress/oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IO-Compress +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IO-Compress-help | grep -v \.src | grep perl-IO-Compress-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IO-Compress-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IO-Compress-help + CHECK_RESULT $? 0 0 "install perl-IO-Compress-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-IO-Compress-help + CHECK_RESULT $? 0 0 "remove perl-IO-Compress-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IO-Compress/oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress.sh b/testcases/cli-test/perl-IO-Compress/oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress.sh new file mode 100644 index 0000000000000000000000000000000000000000..425aae05de9d2bac48875adcd8afea200a431d4b --- /dev/null +++ b/testcases/cli-test/perl-IO-Compress/oe_test_perl-IO-Compress_install_and_remove_perl-IO-Compress.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IO-Compress +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IO-Compress | grep -v \.src | grep perl-IO-Compress + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IO-Compress" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IO-Compress + CHECK_RESULT $? 0 0 "install perl-IO-Compress failed" + SLEEP_WAIT 1 + dnf remove -y perl-IO-Compress + CHECK_RESULT $? 0 0 "remove perl-IO-Compress failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IO-Socket-IP/oe_test_perl-IO-Socket-IP_install_and_remove_perl-IO-Socket-IP-help.sh b/testcases/cli-test/perl-IO-Socket-IP/oe_test_perl-IO-Socket-IP_install_and_remove_perl-IO-Socket-IP-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..eac948c570bb3824b4d15ed861bd827c092ec6a3 --- /dev/null +++ b/testcases/cli-test/perl-IO-Socket-IP/oe_test_perl-IO-Socket-IP_install_and_remove_perl-IO-Socket-IP-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IO-Socket-IP +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IO-Socket-IP-help | grep -v \.src | grep perl-IO-Socket-IP-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IO-Socket-IP-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IO-Socket-IP-help + CHECK_RESULT $? 0 0 "install perl-IO-Socket-IP-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-IO-Socket-IP-help + CHECK_RESULT $? 0 0 "remove perl-IO-Socket-IP-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IO-Socket-IP/oe_test_perl-IO-Socket-IP_install_and_remove_perl-IO-Socket-IP.sh b/testcases/cli-test/perl-IO-Socket-IP/oe_test_perl-IO-Socket-IP_install_and_remove_perl-IO-Socket-IP.sh new file mode 100644 index 0000000000000000000000000000000000000000..d49602daa9d2db1165ad7a6fb02a537622d7a5de --- /dev/null +++ b/testcases/cli-test/perl-IO-Socket-IP/oe_test_perl-IO-Socket-IP_install_and_remove_perl-IO-Socket-IP.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IO-Socket-IP +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IO-Socket-IP | grep -v \.src | grep perl-IO-Socket-IP + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IO-Socket-IP" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IO-Socket-IP + CHECK_RESULT $? 0 0 "install perl-IO-Socket-IP failed" + SLEEP_WAIT 1 + dnf remove -y perl-IO-Socket-IP + CHECK_RESULT $? 0 0 "remove perl-IO-Socket-IP failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IPC-Cmd/oe_test_perl-IPC-Cmd_install_and_remove_perl-IPC-Cmd-help.sh b/testcases/cli-test/perl-IPC-Cmd/oe_test_perl-IPC-Cmd_install_and_remove_perl-IPC-Cmd-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a23e6d8f866cf8063a1b23b4632d3a5d1cb83933 --- /dev/null +++ b/testcases/cli-test/perl-IPC-Cmd/oe_test_perl-IPC-Cmd_install_and_remove_perl-IPC-Cmd-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IPC-Cmd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IPC-Cmd-help | grep -v \.src | grep perl-IPC-Cmd-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IPC-Cmd-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IPC-Cmd-help + CHECK_RESULT $? 0 0 "install perl-IPC-Cmd-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-IPC-Cmd-help + CHECK_RESULT $? 0 0 "remove perl-IPC-Cmd-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IPC-Cmd/oe_test_perl-IPC-Cmd_install_and_remove_perl-IPC-Cmd.sh b/testcases/cli-test/perl-IPC-Cmd/oe_test_perl-IPC-Cmd_install_and_remove_perl-IPC-Cmd.sh new file mode 100644 index 0000000000000000000000000000000000000000..783647c80a8beee49077cdc906987beeea201b70 --- /dev/null +++ b/testcases/cli-test/perl-IPC-Cmd/oe_test_perl-IPC-Cmd_install_and_remove_perl-IPC-Cmd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IPC-Cmd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IPC-Cmd | grep -v \.src | grep perl-IPC-Cmd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IPC-Cmd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IPC-Cmd + CHECK_RESULT $? 0 0 "install perl-IPC-Cmd failed" + SLEEP_WAIT 1 + dnf remove -y perl-IPC-Cmd + CHECK_RESULT $? 0 0 "remove perl-IPC-Cmd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-debuginfo.sh b/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b70087833be263d2db581e980cc0f0df5bdc85b0 --- /dev/null +++ b/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IPC-SysV +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IPC-SysV-debuginfo | grep -v \.src | grep perl-IPC-SysV-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IPC-SysV-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IPC-SysV-debuginfo + CHECK_RESULT $? 0 0 "install perl-IPC-SysV-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-IPC-SysV-debuginfo + CHECK_RESULT $? 0 0 "remove perl-IPC-SysV-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-debugsource.sh b/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..40266119acb55780f27ca15a8f48e8257d019ebb --- /dev/null +++ b/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IPC-SysV +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IPC-SysV-debugsource | grep -v \.src | grep perl-IPC-SysV-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IPC-SysV-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IPC-SysV-debugsource + CHECK_RESULT $? 0 0 "install perl-IPC-SysV-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-IPC-SysV-debugsource + CHECK_RESULT $? 0 0 "remove perl-IPC-SysV-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-help.sh b/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..884d686b46efc8d9d62ec4cf5e1bd42c48669eb4 --- /dev/null +++ b/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IPC-SysV +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IPC-SysV-help | grep -v \.src | grep perl-IPC-SysV-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IPC-SysV-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IPC-SysV-help + CHECK_RESULT $? 0 0 "install perl-IPC-SysV-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-IPC-SysV-help + CHECK_RESULT $? 0 0 "remove perl-IPC-SysV-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV.sh b/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV.sh new file mode 100644 index 0000000000000000000000000000000000000000..d484d89e29de443bb3fcd199e2a81960b9e37054 --- /dev/null +++ b/testcases/cli-test/perl-IPC-SysV/oe_test_perl-IPC-SysV_install_and_remove_perl-IPC-SysV.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IPC-SysV +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IPC-SysV | grep -v \.src | grep perl-IPC-SysV + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IPC-SysV" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IPC-SysV + CHECK_RESULT $? 0 0 "install perl-IPC-SysV failed" + SLEEP_WAIT 1 + dnf remove -y perl-IPC-SysV + CHECK_RESULT $? 0 0 "remove perl-IPC-SysV failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IPC-System-Simple/oe_test_perl-IPC-System-Simple_install_and_remove_perl-IPC-System-Simple-help.sh b/testcases/cli-test/perl-IPC-System-Simple/oe_test_perl-IPC-System-Simple_install_and_remove_perl-IPC-System-Simple-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6645e44f2713eaad38bc31ac0ea001d74b56844 --- /dev/null +++ b/testcases/cli-test/perl-IPC-System-Simple/oe_test_perl-IPC-System-Simple_install_and_remove_perl-IPC-System-Simple-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IPC-System-Simple +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IPC-System-Simple-help | grep -v \.src | grep perl-IPC-System-Simple-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IPC-System-Simple-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IPC-System-Simple-help + CHECK_RESULT $? 0 0 "install perl-IPC-System-Simple-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-IPC-System-Simple-help + CHECK_RESULT $? 0 0 "remove perl-IPC-System-Simple-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-IPC-System-Simple/oe_test_perl-IPC-System-Simple_install_and_remove_perl-IPC-System-Simple.sh b/testcases/cli-test/perl-IPC-System-Simple/oe_test_perl-IPC-System-Simple_install_and_remove_perl-IPC-System-Simple.sh new file mode 100644 index 0000000000000000000000000000000000000000..43d396a04ef04f82c1f41d04425161fa660d30f3 --- /dev/null +++ b/testcases/cli-test/perl-IPC-System-Simple/oe_test_perl-IPC-System-Simple_install_and_remove_perl-IPC-System-Simple.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-IPC-System-Simple +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-IPC-System-Simple | grep -v \.src | grep perl-IPC-System-Simple + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-IPC-System-Simple" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-IPC-System-Simple + CHECK_RESULT $? 0 0 "install perl-IPC-System-Simple failed" + SLEEP_WAIT 1 + dnf remove -y perl-IPC-System-Simple + CHECK_RESULT $? 0 0 "remove perl-IPC-System-Simple failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-JSON-PP/oe_test_perl-JSON-PP_install_and_remove_perl-JSON-PP-help.sh b/testcases/cli-test/perl-JSON-PP/oe_test_perl-JSON-PP_install_and_remove_perl-JSON-PP-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..13581aa055d9f8bd6fd9dfe38ca301841250b57d --- /dev/null +++ b/testcases/cli-test/perl-JSON-PP/oe_test_perl-JSON-PP_install_and_remove_perl-JSON-PP-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-JSON-PP +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-JSON-PP-help | grep -v \.src | grep perl-JSON-PP-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-JSON-PP-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-JSON-PP-help + CHECK_RESULT $? 0 0 "install perl-JSON-PP-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-JSON-PP-help + CHECK_RESULT $? 0 0 "remove perl-JSON-PP-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-JSON-PP/oe_test_perl-JSON-PP_install_and_remove_perl-JSON-PP.sh b/testcases/cli-test/perl-JSON-PP/oe_test_perl-JSON-PP_install_and_remove_perl-JSON-PP.sh new file mode 100644 index 0000000000000000000000000000000000000000..d00019faeaf050faaafc111de7c30be53bc26e56 --- /dev/null +++ b/testcases/cli-test/perl-JSON-PP/oe_test_perl-JSON-PP_install_and_remove_perl-JSON-PP.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-JSON-PP +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-JSON-PP | grep -v \.src | grep perl-JSON-PP + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-JSON-PP" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-JSON-PP + CHECK_RESULT $? 0 0 "install perl-JSON-PP failed" + SLEEP_WAIT 1 + dnf remove -y perl-JSON-PP + CHECK_RESULT $? 0 0 "remove perl-JSON-PP failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Locale-Codes/oe_test_perl-Locale-Codes_install_and_remove_perl-Locale-Codes-help.sh b/testcases/cli-test/perl-Locale-Codes/oe_test_perl-Locale-Codes_install_and_remove_perl-Locale-Codes-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb5dbcfd5eeb80036fc2032a6f309059b09caf84 --- /dev/null +++ b/testcases/cli-test/perl-Locale-Codes/oe_test_perl-Locale-Codes_install_and_remove_perl-Locale-Codes-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Locale-Codes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Locale-Codes-help | grep -v \.src | grep perl-Locale-Codes-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Locale-Codes-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Locale-Codes-help + CHECK_RESULT $? 0 0 "install perl-Locale-Codes-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Locale-Codes-help + CHECK_RESULT $? 0 0 "remove perl-Locale-Codes-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Locale-Codes/oe_test_perl-Locale-Codes_install_and_remove_perl-Locale-Codes.sh b/testcases/cli-test/perl-Locale-Codes/oe_test_perl-Locale-Codes_install_and_remove_perl-Locale-Codes.sh new file mode 100644 index 0000000000000000000000000000000000000000..d95202c6fa6354a96c8449eef6a6ac91cd3cee60 --- /dev/null +++ b/testcases/cli-test/perl-Locale-Codes/oe_test_perl-Locale-Codes_install_and_remove_perl-Locale-Codes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Locale-Codes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Locale-Codes | grep -v \.src | grep perl-Locale-Codes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Locale-Codes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Locale-Codes + CHECK_RESULT $? 0 0 "install perl-Locale-Codes failed" + SLEEP_WAIT 1 + dnf remove -y perl-Locale-Codes + CHECK_RESULT $? 0 0 "remove perl-Locale-Codes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Locale-Maketext/oe_test_perl-Locale-Maketext_install_and_remove_perl-Locale-Maketext-help.sh b/testcases/cli-test/perl-Locale-Maketext/oe_test_perl-Locale-Maketext_install_and_remove_perl-Locale-Maketext-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..de72e1e341ee6c8556b817ba32349610ca6c1999 --- /dev/null +++ b/testcases/cli-test/perl-Locale-Maketext/oe_test_perl-Locale-Maketext_install_and_remove_perl-Locale-Maketext-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Locale-Maketext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Locale-Maketext-help | grep -v \.src | grep perl-Locale-Maketext-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Locale-Maketext-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Locale-Maketext-help + CHECK_RESULT $? 0 0 "install perl-Locale-Maketext-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Locale-Maketext-help + CHECK_RESULT $? 0 0 "remove perl-Locale-Maketext-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Locale-Maketext/oe_test_perl-Locale-Maketext_install_and_remove_perl-Locale-Maketext.sh b/testcases/cli-test/perl-Locale-Maketext/oe_test_perl-Locale-Maketext_install_and_remove_perl-Locale-Maketext.sh new file mode 100644 index 0000000000000000000000000000000000000000..9474701291ca7bc8bd380fc35782ed26f014b0be --- /dev/null +++ b/testcases/cli-test/perl-Locale-Maketext/oe_test_perl-Locale-Maketext_install_and_remove_perl-Locale-Maketext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Locale-Maketext +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Locale-Maketext | grep -v \.src | grep perl-Locale-Maketext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Locale-Maketext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Locale-Maketext + CHECK_RESULT $? 0 0 "install perl-Locale-Maketext failed" + SLEEP_WAIT 1 + dnf remove -y perl-Locale-Maketext + CHECK_RESULT $? 0 0 "remove perl-Locale-Maketext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-debuginfo.sh b/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e27a93f89e8ac000e24d15445b94f62f78b4fd42 --- /dev/null +++ b/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-MIME-Base64 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-MIME-Base64-debuginfo | grep -v \.src | grep perl-MIME-Base64-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-MIME-Base64-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-MIME-Base64-debuginfo + CHECK_RESULT $? 0 0 "install perl-MIME-Base64-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-MIME-Base64-debuginfo + CHECK_RESULT $? 0 0 "remove perl-MIME-Base64-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-debugsource.sh b/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca51409314331fa18b79b02082194fabfe2b9327 --- /dev/null +++ b/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-MIME-Base64 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-MIME-Base64-debugsource | grep -v \.src | grep perl-MIME-Base64-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-MIME-Base64-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-MIME-Base64-debugsource + CHECK_RESULT $? 0 0 "install perl-MIME-Base64-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-MIME-Base64-debugsource + CHECK_RESULT $? 0 0 "remove perl-MIME-Base64-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-help.sh b/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fed866c7b2fc073341cd11fda2580e7f65adf7b4 --- /dev/null +++ b/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-MIME-Base64 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-MIME-Base64-help | grep -v \.src | grep perl-MIME-Base64-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-MIME-Base64-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-MIME-Base64-help + CHECK_RESULT $? 0 0 "install perl-MIME-Base64-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-MIME-Base64-help + CHECK_RESULT $? 0 0 "remove perl-MIME-Base64-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64.sh b/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f9335a1618468974d65ed931b8b52ccae7f9617 --- /dev/null +++ b/testcases/cli-test/perl-MIME-Base64/oe_test_perl-MIME-Base64_install_and_remove_perl-MIME-Base64.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-MIME-Base64 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-MIME-Base64 | grep -v \.src | grep perl-MIME-Base64 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-MIME-Base64" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-MIME-Base64 + CHECK_RESULT $? 0 0 "install perl-MIME-Base64 failed" + SLEEP_WAIT 1 + dnf remove -y perl-MIME-Base64 + CHECK_RESULT $? 0 0 "remove perl-MIME-Base64 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-MailTools/oe_test_perl-MailTools_install_and_remove_perl-MailTools-help.sh b/testcases/cli-test/perl-MailTools/oe_test_perl-MailTools_install_and_remove_perl-MailTools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a780d74e40a0256ca5051a586d6a9ee4e2112f81 --- /dev/null +++ b/testcases/cli-test/perl-MailTools/oe_test_perl-MailTools_install_and_remove_perl-MailTools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-MailTools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-MailTools-help | grep -v \.src | grep perl-MailTools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-MailTools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-MailTools-help + CHECK_RESULT $? 0 0 "install perl-MailTools-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-MailTools-help + CHECK_RESULT $? 0 0 "remove perl-MailTools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-MailTools/oe_test_perl-MailTools_install_and_remove_perl-MailTools.sh b/testcases/cli-test/perl-MailTools/oe_test_perl-MailTools_install_and_remove_perl-MailTools.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a8a83266928e7bc820325921858b6d97ad90441 --- /dev/null +++ b/testcases/cli-test/perl-MailTools/oe_test_perl-MailTools_install_and_remove_perl-MailTools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-MailTools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-MailTools | grep -v \.src | grep perl-MailTools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-MailTools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-MailTools + CHECK_RESULT $? 0 0 "install perl-MailTools failed" + SLEEP_WAIT 1 + dnf remove -y perl-MailTools + CHECK_RESULT $? 0 0 "remove perl-MailTools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-debuginfo.sh b/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfd0958553e1b5336e500bff02fa45848f6c07ad --- /dev/null +++ b/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Math-BigInt-FastCalc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Math-BigInt-FastCalc-debuginfo | grep -v \.src | grep perl-Math-BigInt-FastCalc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Math-BigInt-FastCalc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Math-BigInt-FastCalc-debuginfo + CHECK_RESULT $? 0 0 "install perl-Math-BigInt-FastCalc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Math-BigInt-FastCalc-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Math-BigInt-FastCalc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-debugsource.sh b/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..140935bcf97eae5b51ed2d61126d7aec39e7828c --- /dev/null +++ b/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Math-BigInt-FastCalc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Math-BigInt-FastCalc-debugsource | grep -v \.src | grep perl-Math-BigInt-FastCalc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Math-BigInt-FastCalc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Math-BigInt-FastCalc-debugsource + CHECK_RESULT $? 0 0 "install perl-Math-BigInt-FastCalc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Math-BigInt-FastCalc-debugsource + CHECK_RESULT $? 0 0 "remove perl-Math-BigInt-FastCalc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-help.sh b/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..399a39355821834b79668e0fa3f81e9f8c802ef6 --- /dev/null +++ b/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Math-BigInt-FastCalc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Math-BigInt-FastCalc-help | grep -v \.src | grep perl-Math-BigInt-FastCalc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Math-BigInt-FastCalc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Math-BigInt-FastCalc-help + CHECK_RESULT $? 0 0 "install perl-Math-BigInt-FastCalc-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Math-BigInt-FastCalc-help + CHECK_RESULT $? 0 0 "remove perl-Math-BigInt-FastCalc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-tests.sh b/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c3b7839ce4cb32cc444591a0428160e3c6ff409 --- /dev/null +++ b/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Math-BigInt-FastCalc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Math-BigInt-FastCalc-tests | grep -v \.src | grep perl-Math-BigInt-FastCalc-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Math-BigInt-FastCalc-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Math-BigInt-FastCalc-tests + CHECK_RESULT $? 0 0 "install perl-Math-BigInt-FastCalc-tests failed" + SLEEP_WAIT 1 + dnf remove -y perl-Math-BigInt-FastCalc-tests + CHECK_RESULT $? 0 0 "remove perl-Math-BigInt-FastCalc-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc.sh b/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8276479e4107d71265520b44c768d9a157fcebe0 --- /dev/null +++ b/testcases/cli-test/perl-Math-BigInt-FastCalc/oe_test_perl-Math-BigInt-FastCalc_install_and_remove_perl-Math-BigInt-FastCalc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Math-BigInt-FastCalc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Math-BigInt-FastCalc | grep -v \.src | grep perl-Math-BigInt-FastCalc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Math-BigInt-FastCalc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Math-BigInt-FastCalc + CHECK_RESULT $? 0 0 "install perl-Math-BigInt-FastCalc failed" + SLEEP_WAIT 1 + dnf remove -y perl-Math-BigInt-FastCalc + CHECK_RESULT $? 0 0 "remove perl-Math-BigInt-FastCalc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Math-BigInt/oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt-help.sh b/testcases/cli-test/perl-Math-BigInt/oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e74ffaed5d7013136ca19d1fd8032917eaf91740 --- /dev/null +++ b/testcases/cli-test/perl-Math-BigInt/oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Math-BigInt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Math-BigInt-help | grep -v \.src | grep perl-Math-BigInt-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Math-BigInt-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Math-BigInt-help + CHECK_RESULT $? 0 0 "install perl-Math-BigInt-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Math-BigInt-help + CHECK_RESULT $? 0 0 "remove perl-Math-BigInt-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Math-BigInt/oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt-tests.sh b/testcases/cli-test/perl-Math-BigInt/oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f13e6383952a6a9bc058fc02315be9bb180cce6 --- /dev/null +++ b/testcases/cli-test/perl-Math-BigInt/oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Math-BigInt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Math-BigInt-tests | grep -v \.src | grep perl-Math-BigInt-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Math-BigInt-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Math-BigInt-tests + CHECK_RESULT $? 0 0 "install perl-Math-BigInt-tests failed" + SLEEP_WAIT 1 + dnf remove -y perl-Math-BigInt-tests + CHECK_RESULT $? 0 0 "remove perl-Math-BigInt-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Math-BigInt/oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt.sh b/testcases/cli-test/perl-Math-BigInt/oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5b2d8151260acc9fcd63620040d05b5b7bd3670 --- /dev/null +++ b/testcases/cli-test/perl-Math-BigInt/oe_test_perl-Math-BigInt_install_and_remove_perl-Math-BigInt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Math-BigInt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Math-BigInt | grep -v \.src | grep perl-Math-BigInt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Math-BigInt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Math-BigInt + CHECK_RESULT $? 0 0 "install perl-Math-BigInt failed" + SLEEP_WAIT 1 + dnf remove -y perl-Math-BigInt + CHECK_RESULT $? 0 0 "remove perl-Math-BigInt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Module-CoreList/oe_test_perl-Module-CoreList_install_and_remove_perl-Module-CoreList-help.sh b/testcases/cli-test/perl-Module-CoreList/oe_test_perl-Module-CoreList_install_and_remove_perl-Module-CoreList-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b08cc9ecb92175f4b6ffc3a1e3fe317e8008a3aa --- /dev/null +++ b/testcases/cli-test/perl-Module-CoreList/oe_test_perl-Module-CoreList_install_and_remove_perl-Module-CoreList-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Module-CoreList +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Module-CoreList-help | grep -v \.src | grep perl-Module-CoreList-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Module-CoreList-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Module-CoreList-help + CHECK_RESULT $? 0 0 "install perl-Module-CoreList-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Module-CoreList-help + CHECK_RESULT $? 0 0 "remove perl-Module-CoreList-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Module-CoreList/oe_test_perl-Module-CoreList_install_and_remove_perl-Module-CoreList.sh b/testcases/cli-test/perl-Module-CoreList/oe_test_perl-Module-CoreList_install_and_remove_perl-Module-CoreList.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a0961cf5361e2086178c6d0ec78caf7f2dd2624 --- /dev/null +++ b/testcases/cli-test/perl-Module-CoreList/oe_test_perl-Module-CoreList_install_and_remove_perl-Module-CoreList.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Module-CoreList +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Module-CoreList | grep -v \.src | grep perl-Module-CoreList + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Module-CoreList" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Module-CoreList + CHECK_RESULT $? 0 0 "install perl-Module-CoreList failed" + SLEEP_WAIT 1 + dnf remove -y perl-Module-CoreList + CHECK_RESULT $? 0 0 "remove perl-Module-CoreList failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Module-Load-Conditional/oe_test_perl-Module-Load-Conditional_install_and_remove_perl-Module-Load-Conditional-help.sh b/testcases/cli-test/perl-Module-Load-Conditional/oe_test_perl-Module-Load-Conditional_install_and_remove_perl-Module-Load-Conditional-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9917b08831b8d9df94a58bc648cabfd04e90a32 --- /dev/null +++ b/testcases/cli-test/perl-Module-Load-Conditional/oe_test_perl-Module-Load-Conditional_install_and_remove_perl-Module-Load-Conditional-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Module-Load-Conditional +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Module-Load-Conditional-help | grep -v \.src | grep perl-Module-Load-Conditional-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Module-Load-Conditional-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Module-Load-Conditional-help + CHECK_RESULT $? 0 0 "install perl-Module-Load-Conditional-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Module-Load-Conditional-help + CHECK_RESULT $? 0 0 "remove perl-Module-Load-Conditional-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Module-Load-Conditional/oe_test_perl-Module-Load-Conditional_install_and_remove_perl-Module-Load-Conditional.sh b/testcases/cli-test/perl-Module-Load-Conditional/oe_test_perl-Module-Load-Conditional_install_and_remove_perl-Module-Load-Conditional.sh new file mode 100644 index 0000000000000000000000000000000000000000..71675de546882d5740706f60f6b17d6f983dbb95 --- /dev/null +++ b/testcases/cli-test/perl-Module-Load-Conditional/oe_test_perl-Module-Load-Conditional_install_and_remove_perl-Module-Load-Conditional.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Module-Load-Conditional +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Module-Load-Conditional | grep -v \.src | grep perl-Module-Load-Conditional + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Module-Load-Conditional" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Module-Load-Conditional + CHECK_RESULT $? 0 0 "install perl-Module-Load-Conditional failed" + SLEEP_WAIT 1 + dnf remove -y perl-Module-Load-Conditional + CHECK_RESULT $? 0 0 "remove perl-Module-Load-Conditional failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Module-Load/oe_test_perl-Module-Load_install_and_remove_perl-Module-Load-help.sh b/testcases/cli-test/perl-Module-Load/oe_test_perl-Module-Load_install_and_remove_perl-Module-Load-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..113ac6cd60bc75049c00193b986f7c409066fc13 --- /dev/null +++ b/testcases/cli-test/perl-Module-Load/oe_test_perl-Module-Load_install_and_remove_perl-Module-Load-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Module-Load +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Module-Load-help | grep -v \.src | grep perl-Module-Load-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Module-Load-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Module-Load-help + CHECK_RESULT $? 0 0 "install perl-Module-Load-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Module-Load-help + CHECK_RESULT $? 0 0 "remove perl-Module-Load-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Module-Load/oe_test_perl-Module-Load_install_and_remove_perl-Module-Load.sh b/testcases/cli-test/perl-Module-Load/oe_test_perl-Module-Load_install_and_remove_perl-Module-Load.sh new file mode 100644 index 0000000000000000000000000000000000000000..9def61db058d6451b25366a7477a01a08008ce64 --- /dev/null +++ b/testcases/cli-test/perl-Module-Load/oe_test_perl-Module-Load_install_and_remove_perl-Module-Load.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Module-Load +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Module-Load | grep -v \.src | grep perl-Module-Load + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Module-Load" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Module-Load + CHECK_RESULT $? 0 0 "install perl-Module-Load failed" + SLEEP_WAIT 1 + dnf remove -y perl-Module-Load + CHECK_RESULT $? 0 0 "remove perl-Module-Load failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Module-Metadata/oe_test_perl-Module-Metadata_install_and_remove_perl-Module-Metadata-help.sh b/testcases/cli-test/perl-Module-Metadata/oe_test_perl-Module-Metadata_install_and_remove_perl-Module-Metadata-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..606d80f39b7477debc24486f7e8631a1ad757e9d --- /dev/null +++ b/testcases/cli-test/perl-Module-Metadata/oe_test_perl-Module-Metadata_install_and_remove_perl-Module-Metadata-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Module-Metadata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Module-Metadata-help | grep -v \.src | grep perl-Module-Metadata-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Module-Metadata-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Module-Metadata-help + CHECK_RESULT $? 0 0 "install perl-Module-Metadata-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Module-Metadata-help + CHECK_RESULT $? 0 0 "remove perl-Module-Metadata-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Module-Metadata/oe_test_perl-Module-Metadata_install_and_remove_perl-Module-Metadata.sh b/testcases/cli-test/perl-Module-Metadata/oe_test_perl-Module-Metadata_install_and_remove_perl-Module-Metadata.sh new file mode 100644 index 0000000000000000000000000000000000000000..47699523ac74fb65907139edd2287145b6755de3 --- /dev/null +++ b/testcases/cli-test/perl-Module-Metadata/oe_test_perl-Module-Metadata_install_and_remove_perl-Module-Metadata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Module-Metadata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Module-Metadata | grep -v \.src | grep perl-Module-Metadata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Module-Metadata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Module-Metadata + CHECK_RESULT $? 0 0 "install perl-Module-Metadata failed" + SLEEP_WAIT 1 + dnf remove -y perl-Module-Metadata + CHECK_RESULT $? 0 0 "remove perl-Module-Metadata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Params-Check/oe_test_perl-Params-Check_install_and_remove_perl-Params-Check-help.sh b/testcases/cli-test/perl-Params-Check/oe_test_perl-Params-Check_install_and_remove_perl-Params-Check-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0e85e6e8c9b5b0da1533cb72e1fc49ef121f93d --- /dev/null +++ b/testcases/cli-test/perl-Params-Check/oe_test_perl-Params-Check_install_and_remove_perl-Params-Check-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Params-Check +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Params-Check-help | grep -v \.src | grep perl-Params-Check-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Params-Check-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Params-Check-help + CHECK_RESULT $? 0 0 "install perl-Params-Check-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Params-Check-help + CHECK_RESULT $? 0 0 "remove perl-Params-Check-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Params-Check/oe_test_perl-Params-Check_install_and_remove_perl-Params-Check.sh b/testcases/cli-test/perl-Params-Check/oe_test_perl-Params-Check_install_and_remove_perl-Params-Check.sh new file mode 100644 index 0000000000000000000000000000000000000000..60c60264b4942fe9760745bc74a1ff537319b401 --- /dev/null +++ b/testcases/cli-test/perl-Params-Check/oe_test_perl-Params-Check_install_and_remove_perl-Params-Check.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Params-Check +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Params-Check | grep -v \.src | grep perl-Params-Check + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Params-Check" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Params-Check + CHECK_RESULT $? 0 0 "install perl-Params-Check failed" + SLEEP_WAIT 1 + dnf remove -y perl-Params-Check + CHECK_RESULT $? 0 0 "remove perl-Params-Check failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools-debuginfo.sh b/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0916fef1e32b804f2cde65e66d69d8647d73158 --- /dev/null +++ b/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-PathTools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-PathTools-debuginfo | grep -v \.src | grep perl-PathTools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-PathTools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-PathTools-debuginfo + CHECK_RESULT $? 0 0 "install perl-PathTools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-PathTools-debuginfo + CHECK_RESULT $? 0 0 "remove perl-PathTools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools-debugsource.sh b/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..132e460374e3557ab2ced12b10738c5f0f5b6fc7 --- /dev/null +++ b/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-PathTools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-PathTools-debugsource | grep -v \.src | grep perl-PathTools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-PathTools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-PathTools-debugsource + CHECK_RESULT $? 0 0 "install perl-PathTools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-PathTools-debugsource + CHECK_RESULT $? 0 0 "remove perl-PathTools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools-help.sh b/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ce8d52a7241533aae7d17f1be3328213c163b1c --- /dev/null +++ b/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-PathTools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-PathTools-help | grep -v \.src | grep perl-PathTools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-PathTools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-PathTools-help + CHECK_RESULT $? 0 0 "install perl-PathTools-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-PathTools-help + CHECK_RESULT $? 0 0 "remove perl-PathTools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools.sh b/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3bb638c748e1327e04e5e62c671dfc588963fb3 --- /dev/null +++ b/testcases/cli-test/perl-PathTools/oe_test_perl-PathTools_install_and_remove_perl-PathTools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-PathTools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-PathTools | grep -v \.src | grep perl-PathTools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-PathTools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-PathTools + CHECK_RESULT $? 0 0 "install perl-PathTools failed" + SLEEP_WAIT 1 + dnf remove -y perl-PathTools + CHECK_RESULT $? 0 0 "remove perl-PathTools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Perl-OSType/oe_test_perl-Perl-OSType_install_and_remove_perl-Perl-OSType-help.sh b/testcases/cli-test/perl-Perl-OSType/oe_test_perl-Perl-OSType_install_and_remove_perl-Perl-OSType-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..585e9d10c5f46e98b168336b480108d8cb365adb --- /dev/null +++ b/testcases/cli-test/perl-Perl-OSType/oe_test_perl-Perl-OSType_install_and_remove_perl-Perl-OSType-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Perl-OSType +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Perl-OSType-help | grep -v \.src | grep perl-Perl-OSType-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Perl-OSType-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Perl-OSType-help + CHECK_RESULT $? 0 0 "install perl-Perl-OSType-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Perl-OSType-help + CHECK_RESULT $? 0 0 "remove perl-Perl-OSType-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Perl-OSType/oe_test_perl-Perl-OSType_install_and_remove_perl-Perl-OSType.sh b/testcases/cli-test/perl-Perl-OSType/oe_test_perl-Perl-OSType_install_and_remove_perl-Perl-OSType.sh new file mode 100644 index 0000000000000000000000000000000000000000..84e56dc4a53dfe681863aac51ab863d859778561 --- /dev/null +++ b/testcases/cli-test/perl-Perl-OSType/oe_test_perl-Perl-OSType_install_and_remove_perl-Perl-OSType.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Perl-OSType +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Perl-OSType | grep -v \.src | grep perl-Perl-OSType + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Perl-OSType" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Perl-OSType + CHECK_RESULT $? 0 0 "install perl-Perl-OSType failed" + SLEEP_WAIT 1 + dnf remove -y perl-Perl-OSType + CHECK_RESULT $? 0 0 "remove perl-Perl-OSType failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-PerlIO-via-QuotedPrint/oe_test_perl-PerlIO-via-QuotedPrint_install_and_remove_perl-PerlIO-via-QuotedPrint-help.sh b/testcases/cli-test/perl-PerlIO-via-QuotedPrint/oe_test_perl-PerlIO-via-QuotedPrint_install_and_remove_perl-PerlIO-via-QuotedPrint-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..60b2b56b73d120823b0561fc525dec6ce19daf06 --- /dev/null +++ b/testcases/cli-test/perl-PerlIO-via-QuotedPrint/oe_test_perl-PerlIO-via-QuotedPrint_install_and_remove_perl-PerlIO-via-QuotedPrint-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-PerlIO-via-QuotedPrint +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-PerlIO-via-QuotedPrint-help | grep -v \.src | grep perl-PerlIO-via-QuotedPrint-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-PerlIO-via-QuotedPrint-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-PerlIO-via-QuotedPrint-help + CHECK_RESULT $? 0 0 "install perl-PerlIO-via-QuotedPrint-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-PerlIO-via-QuotedPrint-help + CHECK_RESULT $? 0 0 "remove perl-PerlIO-via-QuotedPrint-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-PerlIO-via-QuotedPrint/oe_test_perl-PerlIO-via-QuotedPrint_install_and_remove_perl-PerlIO-via-QuotedPrint.sh b/testcases/cli-test/perl-PerlIO-via-QuotedPrint/oe_test_perl-PerlIO-via-QuotedPrint_install_and_remove_perl-PerlIO-via-QuotedPrint.sh new file mode 100644 index 0000000000000000000000000000000000000000..64c8ae04bcc466d8fdc05355b9af055bdba7f193 --- /dev/null +++ b/testcases/cli-test/perl-PerlIO-via-QuotedPrint/oe_test_perl-PerlIO-via-QuotedPrint_install_and_remove_perl-PerlIO-via-QuotedPrint.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-PerlIO-via-QuotedPrint +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-PerlIO-via-QuotedPrint | grep -v \.src | grep perl-PerlIO-via-QuotedPrint + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-PerlIO-via-QuotedPrint" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-PerlIO-via-QuotedPrint + CHECK_RESULT $? 0 0 "install perl-PerlIO-via-QuotedPrint failed" + SLEEP_WAIT 1 + dnf remove -y perl-PerlIO-via-QuotedPrint + CHECK_RESULT $? 0 0 "remove perl-PerlIO-via-QuotedPrint failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Checker/oe_test_perl-Pod-Checker_install_and_remove_perl-Pod-Checker-help.sh b/testcases/cli-test/perl-Pod-Checker/oe_test_perl-Pod-Checker_install_and_remove_perl-Pod-Checker-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..577a66e15ee561e52f179f30dd512059a39a2acb --- /dev/null +++ b/testcases/cli-test/perl-Pod-Checker/oe_test_perl-Pod-Checker_install_and_remove_perl-Pod-Checker-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Checker +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Checker-help | grep -v \.src | grep perl-Pod-Checker-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Checker-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Checker-help + CHECK_RESULT $? 0 0 "install perl-Pod-Checker-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Checker-help + CHECK_RESULT $? 0 0 "remove perl-Pod-Checker-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Checker/oe_test_perl-Pod-Checker_install_and_remove_perl-Pod-Checker.sh b/testcases/cli-test/perl-Pod-Checker/oe_test_perl-Pod-Checker_install_and_remove_perl-Pod-Checker.sh new file mode 100644 index 0000000000000000000000000000000000000000..62b72fe9e725539dda1fd44d0e170b1dcd8ba00a --- /dev/null +++ b/testcases/cli-test/perl-Pod-Checker/oe_test_perl-Pod-Checker_install_and_remove_perl-Pod-Checker.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Checker +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Checker | grep -v \.src | grep perl-Pod-Checker + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Checker" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Checker + CHECK_RESULT $? 0 0 "install perl-Pod-Checker failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Checker + CHECK_RESULT $? 0 0 "remove perl-Pod-Checker failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Escapes/oe_test_perl-Pod-Escapes_install_and_remove_perl-Pod-Escapes-help.sh b/testcases/cli-test/perl-Pod-Escapes/oe_test_perl-Pod-Escapes_install_and_remove_perl-Pod-Escapes-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bedd161d18167d4fe351ec6e27b03e7ad20be2a --- /dev/null +++ b/testcases/cli-test/perl-Pod-Escapes/oe_test_perl-Pod-Escapes_install_and_remove_perl-Pod-Escapes-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Escapes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Escapes-help | grep -v \.src | grep perl-Pod-Escapes-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Escapes-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Escapes-help + CHECK_RESULT $? 0 0 "install perl-Pod-Escapes-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Escapes-help + CHECK_RESULT $? 0 0 "remove perl-Pod-Escapes-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Escapes/oe_test_perl-Pod-Escapes_install_and_remove_perl-Pod-Escapes.sh b/testcases/cli-test/perl-Pod-Escapes/oe_test_perl-Pod-Escapes_install_and_remove_perl-Pod-Escapes.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fb54133f5f9ef382bf456fbb17dc3994eaa9cb6 --- /dev/null +++ b/testcases/cli-test/perl-Pod-Escapes/oe_test_perl-Pod-Escapes_install_and_remove_perl-Pod-Escapes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Escapes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Escapes | grep -v \.src | grep perl-Pod-Escapes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Escapes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Escapes + CHECK_RESULT $? 0 0 "install perl-Pod-Escapes failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Escapes + CHECK_RESULT $? 0 0 "remove perl-Pod-Escapes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Parser/oe_test_perl-Pod-Parser_install_and_remove_perl-Pod-Parser-help.sh b/testcases/cli-test/perl-Pod-Parser/oe_test_perl-Pod-Parser_install_and_remove_perl-Pod-Parser-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e4de3cf5680ee083a5c2e240289b3182f0fdf0d --- /dev/null +++ b/testcases/cli-test/perl-Pod-Parser/oe_test_perl-Pod-Parser_install_and_remove_perl-Pod-Parser-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Parser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Parser-help | grep -v \.src | grep perl-Pod-Parser-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Parser-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Parser-help + CHECK_RESULT $? 0 0 "install perl-Pod-Parser-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Parser-help + CHECK_RESULT $? 0 0 "remove perl-Pod-Parser-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Parser/oe_test_perl-Pod-Parser_install_and_remove_perl-Pod-Parser.sh b/testcases/cli-test/perl-Pod-Parser/oe_test_perl-Pod-Parser_install_and_remove_perl-Pod-Parser.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d50ede8f1612ccb26c252ca1d467b64cd1ab500 --- /dev/null +++ b/testcases/cli-test/perl-Pod-Parser/oe_test_perl-Pod-Parser_install_and_remove_perl-Pod-Parser.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Parser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Parser | grep -v \.src | grep perl-Pod-Parser + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Parser" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Parser + CHECK_RESULT $? 0 0 "install perl-Pod-Parser failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Parser + CHECK_RESULT $? 0 0 "remove perl-Pod-Parser failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Perldoc/oe_test_perl-Pod-Perldoc_install_and_remove_perl-Pod-Perldoc-help.sh b/testcases/cli-test/perl-Pod-Perldoc/oe_test_perl-Pod-Perldoc_install_and_remove_perl-Pod-Perldoc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a7b4020e223568d1c6486b4c2a4fedde42f2234 --- /dev/null +++ b/testcases/cli-test/perl-Pod-Perldoc/oe_test_perl-Pod-Perldoc_install_and_remove_perl-Pod-Perldoc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Perldoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Perldoc-help | grep -v \.src | grep perl-Pod-Perldoc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Perldoc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Perldoc-help + CHECK_RESULT $? 0 0 "install perl-Pod-Perldoc-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Perldoc-help + CHECK_RESULT $? 0 0 "remove perl-Pod-Perldoc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Perldoc/oe_test_perl-Pod-Perldoc_install_and_remove_perl-Pod-Perldoc.sh b/testcases/cli-test/perl-Pod-Perldoc/oe_test_perl-Pod-Perldoc_install_and_remove_perl-Pod-Perldoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1afbbc0a13f1d6de818bdeb43c29f0f1780c437e --- /dev/null +++ b/testcases/cli-test/perl-Pod-Perldoc/oe_test_perl-Pod-Perldoc_install_and_remove_perl-Pod-Perldoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Perldoc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Perldoc | grep -v \.src | grep perl-Pod-Perldoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Perldoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Perldoc + CHECK_RESULT $? 0 0 "install perl-Pod-Perldoc failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Perldoc + CHECK_RESULT $? 0 0 "remove perl-Pod-Perldoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Simple/oe_test_perl-Pod-Simple_install_and_remove_perl-Pod-Simple-help.sh b/testcases/cli-test/perl-Pod-Simple/oe_test_perl-Pod-Simple_install_and_remove_perl-Pod-Simple-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..16a4d050c66d154d7d3ff41ea7b8776b9e92c4fd --- /dev/null +++ b/testcases/cli-test/perl-Pod-Simple/oe_test_perl-Pod-Simple_install_and_remove_perl-Pod-Simple-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Simple +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Simple-help | grep -v \.src | grep perl-Pod-Simple-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Simple-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Simple-help + CHECK_RESULT $? 0 0 "install perl-Pod-Simple-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Simple-help + CHECK_RESULT $? 0 0 "remove perl-Pod-Simple-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Simple/oe_test_perl-Pod-Simple_install_and_remove_perl-Pod-Simple.sh b/testcases/cli-test/perl-Pod-Simple/oe_test_perl-Pod-Simple_install_and_remove_perl-Pod-Simple.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfe5099ffdfc27d468984570d5bfcfded6f77bea --- /dev/null +++ b/testcases/cli-test/perl-Pod-Simple/oe_test_perl-Pod-Simple_install_and_remove_perl-Pod-Simple.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Simple +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Simple | grep -v \.src | grep perl-Pod-Simple + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Simple" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Simple + CHECK_RESULT $? 0 0 "install perl-Pod-Simple failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Simple + CHECK_RESULT $? 0 0 "remove perl-Pod-Simple failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Usage/oe_test_perl-Pod-Usage_install_and_remove_perl-Pod-Usage-help.sh b/testcases/cli-test/perl-Pod-Usage/oe_test_perl-Pod-Usage_install_and_remove_perl-Pod-Usage-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9717a7af186d14d7bfee0e67cd24a6385abb9c83 --- /dev/null +++ b/testcases/cli-test/perl-Pod-Usage/oe_test_perl-Pod-Usage_install_and_remove_perl-Pod-Usage-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Usage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Usage-help | grep -v \.src | grep perl-Pod-Usage-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Usage-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Usage-help + CHECK_RESULT $? 0 0 "install perl-Pod-Usage-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Usage-help + CHECK_RESULT $? 0 0 "remove perl-Pod-Usage-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Pod-Usage/oe_test_perl-Pod-Usage_install_and_remove_perl-Pod-Usage.sh b/testcases/cli-test/perl-Pod-Usage/oe_test_perl-Pod-Usage_install_and_remove_perl-Pod-Usage.sh new file mode 100644 index 0000000000000000000000000000000000000000..f267a5fe1a14a1710a57cdf33ec00ffeb3ee5702 --- /dev/null +++ b/testcases/cli-test/perl-Pod-Usage/oe_test_perl-Pod-Usage_install_and_remove_perl-Pod-Usage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Pod-Usage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Pod-Usage | grep -v \.src | grep perl-Pod-Usage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Pod-Usage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Pod-Usage + CHECK_RESULT $? 0 0 "install perl-Pod-Usage failed" + SLEEP_WAIT 1 + dnf remove -y perl-Pod-Usage + CHECK_RESULT $? 0 0 "remove perl-Pod-Usage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-SGMLSpm/oe_test_perl-SGMLSpm_install_and_remove_perl-SGMLSpm-help.sh b/testcases/cli-test/perl-SGMLSpm/oe_test_perl-SGMLSpm_install_and_remove_perl-SGMLSpm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..61941ff6f7393d53b90e563550346f74cd79541c --- /dev/null +++ b/testcases/cli-test/perl-SGMLSpm/oe_test_perl-SGMLSpm_install_and_remove_perl-SGMLSpm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-SGMLSpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-SGMLSpm-help | grep -v \.src | grep perl-SGMLSpm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-SGMLSpm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-SGMLSpm-help + CHECK_RESULT $? 0 0 "install perl-SGMLSpm-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-SGMLSpm-help + CHECK_RESULT $? 0 0 "remove perl-SGMLSpm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-SGMLSpm/oe_test_perl-SGMLSpm_install_and_remove_perl-SGMLSpm.sh b/testcases/cli-test/perl-SGMLSpm/oe_test_perl-SGMLSpm_install_and_remove_perl-SGMLSpm.sh new file mode 100644 index 0000000000000000000000000000000000000000..1be9e8c80b0b43f6c136fc74185776be047a4150 --- /dev/null +++ b/testcases/cli-test/perl-SGMLSpm/oe_test_perl-SGMLSpm_install_and_remove_perl-SGMLSpm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-SGMLSpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-SGMLSpm | grep -v \.src | grep perl-SGMLSpm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-SGMLSpm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-SGMLSpm + CHECK_RESULT $? 0 0 "install perl-SGMLSpm failed" + SLEEP_WAIT 1 + dnf remove -y perl-SGMLSpm + CHECK_RESULT $? 0 0 "remove perl-SGMLSpm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-debuginfo.sh b/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfe10bc131cc42878ded7dce343d5a1d0fb00194 --- /dev/null +++ b/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Scalar-List-Utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Scalar-List-Utils-debuginfo | grep -v \.src | grep perl-Scalar-List-Utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Scalar-List-Utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Scalar-List-Utils-debuginfo + CHECK_RESULT $? 0 0 "install perl-Scalar-List-Utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Scalar-List-Utils-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Scalar-List-Utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-debugsource.sh b/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..13cd06ff7642062fa48af9390b4983ab1ef2d044 --- /dev/null +++ b/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Scalar-List-Utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Scalar-List-Utils-debugsource | grep -v \.src | grep perl-Scalar-List-Utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Scalar-List-Utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Scalar-List-Utils-debugsource + CHECK_RESULT $? 0 0 "install perl-Scalar-List-Utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Scalar-List-Utils-debugsource + CHECK_RESULT $? 0 0 "remove perl-Scalar-List-Utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-help.sh b/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d89dafba43caa6285c67e245f32d6f1c99099d4 --- /dev/null +++ b/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Scalar-List-Utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Scalar-List-Utils-help | grep -v \.src | grep perl-Scalar-List-Utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Scalar-List-Utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Scalar-List-Utils-help + CHECK_RESULT $? 0 0 "install perl-Scalar-List-Utils-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Scalar-List-Utils-help + CHECK_RESULT $? 0 0 "remove perl-Scalar-List-Utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils.sh b/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f5ff5e7a363478474cce1751ccfa897e91a3f90 --- /dev/null +++ b/testcases/cli-test/perl-Scalar-List-Utils/oe_test_perl-Scalar-List-Utils_install_and_remove_perl-Scalar-List-Utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Scalar-List-Utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Scalar-List-Utils | grep -v \.src | grep perl-Scalar-List-Utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Scalar-List-Utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Scalar-List-Utils + CHECK_RESULT $? 0 0 "install perl-Scalar-List-Utils failed" + SLEEP_WAIT 1 + dnf remove -y perl-Scalar-List-Utils + CHECK_RESULT $? 0 0 "remove perl-Scalar-List-Utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket-debuginfo.sh b/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ed1f233d93694f138e43c89be5ac9cb63e90579 --- /dev/null +++ b/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Socket +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Socket-debuginfo | grep -v \.src | grep perl-Socket-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Socket-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Socket-debuginfo + CHECK_RESULT $? 0 0 "install perl-Socket-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Socket-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Socket-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket-debugsource.sh b/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3f67ea82f03a34b9f3c4821f33c810f0ad2f81b --- /dev/null +++ b/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Socket +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Socket-debugsource | grep -v \.src | grep perl-Socket-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Socket-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Socket-debugsource + CHECK_RESULT $? 0 0 "install perl-Socket-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Socket-debugsource + CHECK_RESULT $? 0 0 "remove perl-Socket-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket-help.sh b/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..23acc4091c704bcb92247dd6b8a11808ef779e31 --- /dev/null +++ b/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Socket +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Socket-help | grep -v \.src | grep perl-Socket-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Socket-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Socket-help + CHECK_RESULT $? 0 0 "install perl-Socket-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Socket-help + CHECK_RESULT $? 0 0 "remove perl-Socket-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket.sh b/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket.sh new file mode 100644 index 0000000000000000000000000000000000000000..12b2ff1877471da1c432360c193c66a57957b4e8 --- /dev/null +++ b/testcases/cli-test/perl-Socket/oe_test_perl-Socket_install_and_remove_perl-Socket.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Socket +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Socket | grep -v \.src | grep perl-Socket + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Socket" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Socket + CHECK_RESULT $? 0 0 "install perl-Socket failed" + SLEEP_WAIT 1 + dnf remove -y perl-Socket + CHECK_RESULT $? 0 0 "remove perl-Socket failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable-debuginfo.sh b/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e01d92f056f102946495e9d8639157dfd51294aa --- /dev/null +++ b/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Storable +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Storable-debuginfo | grep -v \.src | grep perl-Storable-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Storable-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Storable-debuginfo + CHECK_RESULT $? 0 0 "install perl-Storable-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Storable-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Storable-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable-debugsource.sh b/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..469a8f823f540cf63fce861829dbeed2df6ef9cf --- /dev/null +++ b/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Storable +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Storable-debugsource | grep -v \.src | grep perl-Storable-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Storable-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Storable-debugsource + CHECK_RESULT $? 0 0 "install perl-Storable-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Storable-debugsource + CHECK_RESULT $? 0 0 "remove perl-Storable-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable-help.sh b/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a693c329720118c99b6af45ec46674e0a39eca77 --- /dev/null +++ b/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Storable +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Storable-help | grep -v \.src | grep perl-Storable-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Storable-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Storable-help + CHECK_RESULT $? 0 0 "install perl-Storable-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Storable-help + CHECK_RESULT $? 0 0 "remove perl-Storable-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable.sh b/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable.sh new file mode 100644 index 0000000000000000000000000000000000000000..36f156b966cea5e18b437a1fcd42513954695368 --- /dev/null +++ b/testcases/cli-test/perl-Storable/oe_test_perl-Storable_install_and_remove_perl-Storable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Storable +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Storable | grep -v \.src | grep perl-Storable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Storable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Storable + CHECK_RESULT $? 0 0 "install perl-Storable failed" + SLEEP_WAIT 1 + dnf remove -y perl-Storable + CHECK_RESULT $? 0 0 "remove perl-Storable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Switch/oe_test_perl-Switch_install_and_remove_perl-Switch-help.sh b/testcases/cli-test/perl-Switch/oe_test_perl-Switch_install_and_remove_perl-Switch-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6be33f7c2e92fe2600faee20684207f6c0d7e754 --- /dev/null +++ b/testcases/cli-test/perl-Switch/oe_test_perl-Switch_install_and_remove_perl-Switch-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Switch +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Switch-help | grep -v \.src | grep perl-Switch-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Switch-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Switch-help + CHECK_RESULT $? 0 0 "install perl-Switch-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Switch-help + CHECK_RESULT $? 0 0 "remove perl-Switch-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Switch/oe_test_perl-Switch_install_and_remove_perl-Switch.sh b/testcases/cli-test/perl-Switch/oe_test_perl-Switch_install_and_remove_perl-Switch.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea830b4e69baf2a858f932f11e4199f9f450ced0 --- /dev/null +++ b/testcases/cli-test/perl-Switch/oe_test_perl-Switch_install_and_remove_perl-Switch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Switch +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Switch | grep -v \.src | grep perl-Switch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Switch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Switch + CHECK_RESULT $? 0 0 "install perl-Switch failed" + SLEEP_WAIT 1 + dnf remove -y perl-Switch + CHECK_RESULT $? 0 0 "remove perl-Switch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-debuginfo.sh b/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a57ece262f0bd1ec35bab6d42b5c37d1cec2374 --- /dev/null +++ b/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Sys-Syslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Sys-Syslog-debuginfo | grep -v \.src | grep perl-Sys-Syslog-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Sys-Syslog-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Sys-Syslog-debuginfo + CHECK_RESULT $? 0 0 "install perl-Sys-Syslog-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Sys-Syslog-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Sys-Syslog-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-debugsource.sh b/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ebd9cdb4602d3ea8f08a73efbad9b7c3f88c354 --- /dev/null +++ b/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Sys-Syslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Sys-Syslog-debugsource | grep -v \.src | grep perl-Sys-Syslog-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Sys-Syslog-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Sys-Syslog-debugsource + CHECK_RESULT $? 0 0 "install perl-Sys-Syslog-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Sys-Syslog-debugsource + CHECK_RESULT $? 0 0 "remove perl-Sys-Syslog-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-help.sh b/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..456a23350c3cb8ff147d8ee92c784d53a6aa0806 --- /dev/null +++ b/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Sys-Syslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Sys-Syslog-help | grep -v \.src | grep perl-Sys-Syslog-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Sys-Syslog-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Sys-Syslog-help + CHECK_RESULT $? 0 0 "install perl-Sys-Syslog-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Sys-Syslog-help + CHECK_RESULT $? 0 0 "remove perl-Sys-Syslog-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog.sh b/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog.sh new file mode 100644 index 0000000000000000000000000000000000000000..a865627ccd12c4c488bcbc9f9c678c4a4f8a1369 --- /dev/null +++ b/testcases/cli-test/perl-Sys-Syslog/oe_test_perl-Sys-Syslog_install_and_remove_perl-Sys-Syslog.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Sys-Syslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Sys-Syslog | grep -v \.src | grep perl-Sys-Syslog + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Sys-Syslog" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Sys-Syslog + CHECK_RESULT $? 0 0 "install perl-Sys-Syslog failed" + SLEEP_WAIT 1 + dnf remove -y perl-Sys-Syslog + CHECK_RESULT $? 0 0 "remove perl-Sys-Syslog failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Term-ANSIColor/oe_test_perl-Term-ANSIColor_install_and_remove_perl-Term-ANSIColor-help.sh b/testcases/cli-test/perl-Term-ANSIColor/oe_test_perl-Term-ANSIColor_install_and_remove_perl-Term-ANSIColor-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ba5467eab610d318b523b5c3c1db7d88aff60c0 --- /dev/null +++ b/testcases/cli-test/perl-Term-ANSIColor/oe_test_perl-Term-ANSIColor_install_and_remove_perl-Term-ANSIColor-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Term-ANSIColor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Term-ANSIColor-help | grep -v \.src | grep perl-Term-ANSIColor-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Term-ANSIColor-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Term-ANSIColor-help + CHECK_RESULT $? 0 0 "install perl-Term-ANSIColor-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Term-ANSIColor-help + CHECK_RESULT $? 0 0 "remove perl-Term-ANSIColor-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Term-ANSIColor/oe_test_perl-Term-ANSIColor_install_and_remove_perl-Term-ANSIColor.sh b/testcases/cli-test/perl-Term-ANSIColor/oe_test_perl-Term-ANSIColor_install_and_remove_perl-Term-ANSIColor.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc89b7f293145b4bed55b2fd7eca00c42c50741b --- /dev/null +++ b/testcases/cli-test/perl-Term-ANSIColor/oe_test_perl-Term-ANSIColor_install_and_remove_perl-Term-ANSIColor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Term-ANSIColor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Term-ANSIColor | grep -v \.src | grep perl-Term-ANSIColor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Term-ANSIColor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Term-ANSIColor + CHECK_RESULT $? 0 0 "install perl-Term-ANSIColor failed" + SLEEP_WAIT 1 + dnf remove -y perl-Term-ANSIColor + CHECK_RESULT $? 0 0 "remove perl-Term-ANSIColor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Term-Cap/oe_test_perl-Term-Cap_install_and_remove_perl-Term-Cap-help.sh b/testcases/cli-test/perl-Term-Cap/oe_test_perl-Term-Cap_install_and_remove_perl-Term-Cap-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac5caa7ac7ba55395a4fd73a3ec860859161a35f --- /dev/null +++ b/testcases/cli-test/perl-Term-Cap/oe_test_perl-Term-Cap_install_and_remove_perl-Term-Cap-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Term-Cap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Term-Cap-help | grep -v \.src | grep perl-Term-Cap-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Term-Cap-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Term-Cap-help + CHECK_RESULT $? 0 0 "install perl-Term-Cap-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Term-Cap-help + CHECK_RESULT $? 0 0 "remove perl-Term-Cap-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Term-Cap/oe_test_perl-Term-Cap_install_and_remove_perl-Term-Cap.sh b/testcases/cli-test/perl-Term-Cap/oe_test_perl-Term-Cap_install_and_remove_perl-Term-Cap.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c5f3916486b3dbe321cfeb2de2bd115b9bebecf --- /dev/null +++ b/testcases/cli-test/perl-Term-Cap/oe_test_perl-Term-Cap_install_and_remove_perl-Term-Cap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Term-Cap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Term-Cap | grep -v \.src | grep perl-Term-Cap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Term-Cap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Term-Cap + CHECK_RESULT $? 0 0 "install perl-Term-Cap failed" + SLEEP_WAIT 1 + dnf remove -y perl-Term-Cap + CHECK_RESULT $? 0 0 "remove perl-Term-Cap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Test-Harness/oe_test_perl-Test-Harness_install_and_remove_perl-Test-Harness-help.sh b/testcases/cli-test/perl-Test-Harness/oe_test_perl-Test-Harness_install_and_remove_perl-Test-Harness-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8f795aea4ab9151bc6b9172a82a182f308d41f7 --- /dev/null +++ b/testcases/cli-test/perl-Test-Harness/oe_test_perl-Test-Harness_install_and_remove_perl-Test-Harness-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Test-Harness +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Test-Harness-help | grep -v \.src | grep perl-Test-Harness-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Test-Harness-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Test-Harness-help + CHECK_RESULT $? 0 0 "install perl-Test-Harness-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Test-Harness-help + CHECK_RESULT $? 0 0 "remove perl-Test-Harness-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Test-Harness/oe_test_perl-Test-Harness_install_and_remove_perl-Test-Harness.sh b/testcases/cli-test/perl-Test-Harness/oe_test_perl-Test-Harness_install_and_remove_perl-Test-Harness.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1badce3df2de971b8fb6c5e395d03a364fe105b --- /dev/null +++ b/testcases/cli-test/perl-Test-Harness/oe_test_perl-Test-Harness_install_and_remove_perl-Test-Harness.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Test-Harness +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Test-Harness | grep -v \.src | grep perl-Test-Harness + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Test-Harness" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Test-Harness + CHECK_RESULT $? 0 0 "install perl-Test-Harness failed" + SLEEP_WAIT 1 + dnf remove -y perl-Test-Harness + CHECK_RESULT $? 0 0 "remove perl-Test-Harness failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Test-Simple/oe_test_perl-Test-Simple_install_and_remove_perl-Test-Simple-help.sh b/testcases/cli-test/perl-Test-Simple/oe_test_perl-Test-Simple_install_and_remove_perl-Test-Simple-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e89ba16f735042eea9a142a68738b9b9acbdc6b2 --- /dev/null +++ b/testcases/cli-test/perl-Test-Simple/oe_test_perl-Test-Simple_install_and_remove_perl-Test-Simple-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Test-Simple +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Test-Simple-help | grep -v \.src | grep perl-Test-Simple-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Test-Simple-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Test-Simple-help + CHECK_RESULT $? 0 0 "install perl-Test-Simple-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Test-Simple-help + CHECK_RESULT $? 0 0 "remove perl-Test-Simple-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Test-Simple/oe_test_perl-Test-Simple_install_and_remove_perl-Test-Simple.sh b/testcases/cli-test/perl-Test-Simple/oe_test_perl-Test-Simple_install_and_remove_perl-Test-Simple.sh new file mode 100644 index 0000000000000000000000000000000000000000..52f48ad43c9be845e5424cb81cfbac5a00ec1d5f --- /dev/null +++ b/testcases/cli-test/perl-Test-Simple/oe_test_perl-Test-Simple_install_and_remove_perl-Test-Simple.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Test-Simple +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Test-Simple | grep -v \.src | grep perl-Test-Simple + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Test-Simple" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Test-Simple + CHECK_RESULT $? 0 0 "install perl-Test-Simple failed" + SLEEP_WAIT 1 + dnf remove -y perl-Test-Simple + CHECK_RESULT $? 0 0 "remove perl-Test-Simple failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Text-Balanced/oe_test_perl-Text-Balanced_install_and_remove_perl-Text-Balanced-help.sh b/testcases/cli-test/perl-Text-Balanced/oe_test_perl-Text-Balanced_install_and_remove_perl-Text-Balanced-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a274e23db6e477b60b1ddfc81bfc1dd2cf9e957 --- /dev/null +++ b/testcases/cli-test/perl-Text-Balanced/oe_test_perl-Text-Balanced_install_and_remove_perl-Text-Balanced-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Text-Balanced +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Text-Balanced-help | grep -v \.src | grep perl-Text-Balanced-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Text-Balanced-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Text-Balanced-help + CHECK_RESULT $? 0 0 "install perl-Text-Balanced-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Text-Balanced-help + CHECK_RESULT $? 0 0 "remove perl-Text-Balanced-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Text-Balanced/oe_test_perl-Text-Balanced_install_and_remove_perl-Text-Balanced.sh b/testcases/cli-test/perl-Text-Balanced/oe_test_perl-Text-Balanced_install_and_remove_perl-Text-Balanced.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6be643b620688c67653ecd3b950eb71f24f3601 --- /dev/null +++ b/testcases/cli-test/perl-Text-Balanced/oe_test_perl-Text-Balanced_install_and_remove_perl-Text-Balanced.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Text-Balanced +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Text-Balanced | grep -v \.src | grep perl-Text-Balanced + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Text-Balanced" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Text-Balanced + CHECK_RESULT $? 0 0 "install perl-Text-Balanced failed" + SLEEP_WAIT 1 + dnf remove -y perl-Text-Balanced + CHECK_RESULT $? 0 0 "remove perl-Text-Balanced failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Text-Diff/oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff-doc.sh b/testcases/cli-test/perl-Text-Diff/oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..155a80ddec113b5f83b965c2c6f4d29912f2f9dd --- /dev/null +++ b/testcases/cli-test/perl-Text-Diff/oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Text-Diff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Text-Diff-doc | grep -v \.src | grep perl-Text-Diff-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Text-Diff-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Text-Diff-doc + CHECK_RESULT $? 0 0 "install perl-Text-Diff-doc failed" + SLEEP_WAIT 1 + dnf remove -y perl-Text-Diff-doc + CHECK_RESULT $? 0 0 "remove perl-Text-Diff-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Text-Diff/oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff-help.sh b/testcases/cli-test/perl-Text-Diff/oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9b453e2c1650c0b5e3ac5ef219fd75ea592769b --- /dev/null +++ b/testcases/cli-test/perl-Text-Diff/oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Text-Diff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Text-Diff-help | grep -v \.src | grep perl-Text-Diff-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Text-Diff-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Text-Diff-help + CHECK_RESULT $? 0 0 "install perl-Text-Diff-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Text-Diff-help + CHECK_RESULT $? 0 0 "remove perl-Text-Diff-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Text-Diff/oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff.sh b/testcases/cli-test/perl-Text-Diff/oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4d8107cf44ae406de05da69885f29adf7e3e8fa --- /dev/null +++ b/testcases/cli-test/perl-Text-Diff/oe_test_perl-Text-Diff_install_and_remove_perl-Text-Diff.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Text-Diff +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Text-Diff | grep -v \.src | grep perl-Text-Diff + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Text-Diff" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Text-Diff + CHECK_RESULT $? 0 0 "install perl-Text-Diff failed" + SLEEP_WAIT 1 + dnf remove -y perl-Text-Diff + CHECK_RESULT $? 0 0 "remove perl-Text-Diff failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Text-ParseWords/oe_test_perl-Text-ParseWords_install_and_remove_perl-Text-ParseWords-help.sh b/testcases/cli-test/perl-Text-ParseWords/oe_test_perl-Text-ParseWords_install_and_remove_perl-Text-ParseWords-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..98ab9782a8d47dd362bc030d6cf3c432679f61df --- /dev/null +++ b/testcases/cli-test/perl-Text-ParseWords/oe_test_perl-Text-ParseWords_install_and_remove_perl-Text-ParseWords-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Text-ParseWords +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Text-ParseWords-help | grep -v \.src | grep perl-Text-ParseWords-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Text-ParseWords-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Text-ParseWords-help + CHECK_RESULT $? 0 0 "install perl-Text-ParseWords-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Text-ParseWords-help + CHECK_RESULT $? 0 0 "remove perl-Text-ParseWords-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Text-ParseWords/oe_test_perl-Text-ParseWords_install_and_remove_perl-Text-ParseWords.sh b/testcases/cli-test/perl-Text-ParseWords/oe_test_perl-Text-ParseWords_install_and_remove_perl-Text-ParseWords.sh new file mode 100644 index 0000000000000000000000000000000000000000..357279410ed7a0bdedf3ce80d527b05d3d1e4807 --- /dev/null +++ b/testcases/cli-test/perl-Text-ParseWords/oe_test_perl-Text-ParseWords_install_and_remove_perl-Text-ParseWords.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Text-ParseWords +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Text-ParseWords | grep -v \.src | grep perl-Text-ParseWords + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Text-ParseWords" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Text-ParseWords + CHECK_RESULT $? 0 0 "install perl-Text-ParseWords failed" + SLEEP_WAIT 1 + dnf remove -y perl-Text-ParseWords + CHECK_RESULT $? 0 0 "remove perl-Text-ParseWords failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Thread-Queue/oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue-doc.sh b/testcases/cli-test/perl-Thread-Queue/oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d267cd5334521733d957c8ef30af43eaee6954f8 --- /dev/null +++ b/testcases/cli-test/perl-Thread-Queue/oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Thread-Queue +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Thread-Queue-doc | grep -v \.src | grep perl-Thread-Queue-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Thread-Queue-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Thread-Queue-doc + CHECK_RESULT $? 0 0 "install perl-Thread-Queue-doc failed" + SLEEP_WAIT 1 + dnf remove -y perl-Thread-Queue-doc + CHECK_RESULT $? 0 0 "remove perl-Thread-Queue-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Thread-Queue/oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue-help.sh b/testcases/cli-test/perl-Thread-Queue/oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dc3db97aa1340461cb3e4068b1fd8036519bfe0 --- /dev/null +++ b/testcases/cli-test/perl-Thread-Queue/oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Thread-Queue +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Thread-Queue-help | grep -v \.src | grep perl-Thread-Queue-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Thread-Queue-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Thread-Queue-help + CHECK_RESULT $? 0 0 "install perl-Thread-Queue-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Thread-Queue-help + CHECK_RESULT $? 0 0 "remove perl-Thread-Queue-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Thread-Queue/oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue.sh b/testcases/cli-test/perl-Thread-Queue/oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue.sh new file mode 100644 index 0000000000000000000000000000000000000000..e849255c25e9b7d21bdc7137f25a8e3810c616be --- /dev/null +++ b/testcases/cli-test/perl-Thread-Queue/oe_test_perl-Thread-Queue_install_and_remove_perl-Thread-Queue.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Thread-Queue +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Thread-Queue | grep -v \.src | grep perl-Thread-Queue + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Thread-Queue" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Thread-Queue + CHECK_RESULT $? 0 0 "install perl-Thread-Queue failed" + SLEEP_WAIT 1 + dnf remove -y perl-Thread-Queue + CHECK_RESULT $? 0 0 "remove perl-Thread-Queue failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-debuginfo.sh b/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..177e39d1662106e4cd927dba5908eedc60834a90 --- /dev/null +++ b/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Time-HiRes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Time-HiRes-debuginfo | grep -v \.src | grep perl-Time-HiRes-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Time-HiRes-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Time-HiRes-debuginfo + CHECK_RESULT $? 0 0 "install perl-Time-HiRes-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Time-HiRes-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Time-HiRes-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-debugsource.sh b/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e374db94b25eed0a66186014ba204782cec010ad --- /dev/null +++ b/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Time-HiRes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Time-HiRes-debugsource | grep -v \.src | grep perl-Time-HiRes-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Time-HiRes-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Time-HiRes-debugsource + CHECK_RESULT $? 0 0 "install perl-Time-HiRes-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Time-HiRes-debugsource + CHECK_RESULT $? 0 0 "remove perl-Time-HiRes-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-help.sh b/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d478bbcafe8f18841ad58729a5e8a0d2b61b9119 --- /dev/null +++ b/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Time-HiRes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Time-HiRes-help | grep -v \.src | grep perl-Time-HiRes-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Time-HiRes-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Time-HiRes-help + CHECK_RESULT $? 0 0 "install perl-Time-HiRes-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Time-HiRes-help + CHECK_RESULT $? 0 0 "remove perl-Time-HiRes-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes.sh b/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes.sh new file mode 100644 index 0000000000000000000000000000000000000000..824bbc9653f4ea40d1a51632d50f1ec79ff99331 --- /dev/null +++ b/testcases/cli-test/perl-Time-HiRes/oe_test_perl-Time-HiRes_install_and_remove_perl-Time-HiRes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Time-HiRes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Time-HiRes | grep -v \.src | grep perl-Time-HiRes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Time-HiRes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Time-HiRes + CHECK_RESULT $? 0 0 "install perl-Time-HiRes failed" + SLEEP_WAIT 1 + dnf remove -y perl-Time-HiRes + CHECK_RESULT $? 0 0 "remove perl-Time-HiRes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Time-Local/oe_test_perl-Time-Local_install_and_remove_perl-Time-Local-help.sh b/testcases/cli-test/perl-Time-Local/oe_test_perl-Time-Local_install_and_remove_perl-Time-Local-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..66b6f5dc48dc66d24bb4bd485449c2162d3a109e --- /dev/null +++ b/testcases/cli-test/perl-Time-Local/oe_test_perl-Time-Local_install_and_remove_perl-Time-Local-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Time-Local +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Time-Local-help | grep -v \.src | grep perl-Time-Local-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Time-Local-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Time-Local-help + CHECK_RESULT $? 0 0 "install perl-Time-Local-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Time-Local-help + CHECK_RESULT $? 0 0 "remove perl-Time-Local-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Time-Local/oe_test_perl-Time-Local_install_and_remove_perl-Time-Local.sh b/testcases/cli-test/perl-Time-Local/oe_test_perl-Time-Local_install_and_remove_perl-Time-Local.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbeeb47c1c05fa3abf7a5713683602d9ea9be8c5 --- /dev/null +++ b/testcases/cli-test/perl-Time-Local/oe_test_perl-Time-Local_install_and_remove_perl-Time-Local.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Time-Local +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Time-Local | grep -v \.src | grep perl-Time-Local + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Time-Local" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Time-Local + CHECK_RESULT $? 0 0 "install perl-Time-Local failed" + SLEEP_WAIT 1 + dnf remove -y perl-Time-Local + CHECK_RESULT $? 0 0 "remove perl-Time-Local failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-debuginfo.sh b/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3894a64f0e63cc2d134629cbd28cb96f372192c --- /dev/null +++ b/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Unicode-Collate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Unicode-Collate-debuginfo | grep -v \.src | grep perl-Unicode-Collate-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Unicode-Collate-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Unicode-Collate-debuginfo + CHECK_RESULT $? 0 0 "install perl-Unicode-Collate-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Unicode-Collate-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Unicode-Collate-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-debugsource.sh b/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b6cc776b8c2aa8d22717855e4f7e7948cb40175 --- /dev/null +++ b/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Unicode-Collate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Unicode-Collate-debugsource | grep -v \.src | grep perl-Unicode-Collate-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Unicode-Collate-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Unicode-Collate-debugsource + CHECK_RESULT $? 0 0 "install perl-Unicode-Collate-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Unicode-Collate-debugsource + CHECK_RESULT $? 0 0 "remove perl-Unicode-Collate-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-help.sh b/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9cad2cca0ebe87d9f49d482a5c15ba27c58035f --- /dev/null +++ b/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Unicode-Collate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Unicode-Collate-help | grep -v \.src | grep perl-Unicode-Collate-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Unicode-Collate-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Unicode-Collate-help + CHECK_RESULT $? 0 0 "install perl-Unicode-Collate-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Unicode-Collate-help + CHECK_RESULT $? 0 0 "remove perl-Unicode-Collate-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate.sh b/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ef834f29e45d8b165f9ba91ec4ccb405e9b066a --- /dev/null +++ b/testcases/cli-test/perl-Unicode-Collate/oe_test_perl-Unicode-Collate_install_and_remove_perl-Unicode-Collate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Unicode-Collate +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Unicode-Collate | grep -v \.src | grep perl-Unicode-Collate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Unicode-Collate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Unicode-Collate + CHECK_RESULT $? 0 0 "install perl-Unicode-Collate failed" + SLEEP_WAIT 1 + dnf remove -y perl-Unicode-Collate + CHECK_RESULT $? 0 0 "remove perl-Unicode-Collate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-debuginfo.sh b/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd807b93d1b5869bf110105b0aa74fc30145da55 --- /dev/null +++ b/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Unicode-Normalize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Unicode-Normalize-debuginfo | grep -v \.src | grep perl-Unicode-Normalize-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Unicode-Normalize-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Unicode-Normalize-debuginfo + CHECK_RESULT $? 0 0 "install perl-Unicode-Normalize-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-Unicode-Normalize-debuginfo + CHECK_RESULT $? 0 0 "remove perl-Unicode-Normalize-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-debugsource.sh b/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e372c71dcc4d08cf9ec62efaa05b49997843c73 --- /dev/null +++ b/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Unicode-Normalize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Unicode-Normalize-debugsource | grep -v \.src | grep perl-Unicode-Normalize-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Unicode-Normalize-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Unicode-Normalize-debugsource + CHECK_RESULT $? 0 0 "install perl-Unicode-Normalize-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-Unicode-Normalize-debugsource + CHECK_RESULT $? 0 0 "remove perl-Unicode-Normalize-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-help.sh b/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..61e40075894058579588e6d56436f355ecd67e96 --- /dev/null +++ b/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Unicode-Normalize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Unicode-Normalize-help | grep -v \.src | grep perl-Unicode-Normalize-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Unicode-Normalize-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Unicode-Normalize-help + CHECK_RESULT $? 0 0 "install perl-Unicode-Normalize-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-Unicode-Normalize-help + CHECK_RESULT $? 0 0 "remove perl-Unicode-Normalize-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize.sh b/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize.sh new file mode 100644 index 0000000000000000000000000000000000000000..aba6e8aee1b5f537eb6b01e820c663342a1d825a --- /dev/null +++ b/testcases/cli-test/perl-Unicode-Normalize/oe_test_perl-Unicode-Normalize_install_and_remove_perl-Unicode-Normalize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-Unicode-Normalize +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-Unicode-Normalize | grep -v \.src | grep perl-Unicode-Normalize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-Unicode-Normalize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-Unicode-Normalize + CHECK_RESULT $? 0 0 "install perl-Unicode-Normalize failed" + SLEEP_WAIT 1 + dnf remove -y perl-Unicode-Normalize + CHECK_RESULT $? 0 0 "remove perl-Unicode-Normalize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-debuginfo.sh b/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5d88dea391ecfdf24033c49812e86d15bbabe57 --- /dev/null +++ b/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-XML-Parser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-XML-Parser-debuginfo | grep -v \.src | grep perl-XML-Parser-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-XML-Parser-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-XML-Parser-debuginfo + CHECK_RESULT $? 0 0 "install perl-XML-Parser-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-XML-Parser-debuginfo + CHECK_RESULT $? 0 0 "remove perl-XML-Parser-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-debugsource.sh b/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c576a30a172b30405e3bface447553c7be062ed4 --- /dev/null +++ b/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-XML-Parser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-XML-Parser-debugsource | grep -v \.src | grep perl-XML-Parser-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-XML-Parser-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-XML-Parser-debugsource + CHECK_RESULT $? 0 0 "install perl-XML-Parser-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-XML-Parser-debugsource + CHECK_RESULT $? 0 0 "remove perl-XML-Parser-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-doc.sh b/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae8704bb354cb7f8e74573e4eb3699c571ab1273 --- /dev/null +++ b/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-XML-Parser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-XML-Parser-doc | grep -v \.src | grep perl-XML-Parser-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-XML-Parser-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-XML-Parser-doc + CHECK_RESULT $? 0 0 "install perl-XML-Parser-doc failed" + SLEEP_WAIT 1 + dnf remove -y perl-XML-Parser-doc + CHECK_RESULT $? 0 0 "remove perl-XML-Parser-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-help.sh b/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f07daeb9bea91c64c2c9b8b64f6ed97ac3471c7f --- /dev/null +++ b/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-XML-Parser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-XML-Parser-help | grep -v \.src | grep perl-XML-Parser-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-XML-Parser-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-XML-Parser-help + CHECK_RESULT $? 0 0 "install perl-XML-Parser-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-XML-Parser-help + CHECK_RESULT $? 0 0 "remove perl-XML-Parser-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser.sh b/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser.sh new file mode 100644 index 0000000000000000000000000000000000000000..da424b1e76bfa9955c961ddc0d140c800d031a12 --- /dev/null +++ b/testcases/cli-test/perl-XML-Parser/oe_test_perl-XML-Parser_install_and_remove_perl-XML-Parser.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-XML-Parser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-XML-Parser | grep -v \.src | grep perl-XML-Parser + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-XML-Parser" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-XML-Parser + CHECK_RESULT $? 0 0 "install perl-XML-Parser failed" + SLEEP_WAIT 1 + dnf remove -y perl-XML-Parser + CHECK_RESULT $? 0 0 "remove perl-XML-Parser failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-autodie/oe_test_perl-autodie_install_and_remove_perl-autodie-help.sh b/testcases/cli-test/perl-autodie/oe_test_perl-autodie_install_and_remove_perl-autodie-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f100dfc73f64e89e8523c29d2522ecf329b6f09f --- /dev/null +++ b/testcases/cli-test/perl-autodie/oe_test_perl-autodie_install_and_remove_perl-autodie-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-autodie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-autodie-help | grep -v \.src | grep perl-autodie-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-autodie-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-autodie-help + CHECK_RESULT $? 0 0 "install perl-autodie-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-autodie-help + CHECK_RESULT $? 0 0 "remove perl-autodie-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-autodie/oe_test_perl-autodie_install_and_remove_perl-autodie.sh b/testcases/cli-test/perl-autodie/oe_test_perl-autodie_install_and_remove_perl-autodie.sh new file mode 100644 index 0000000000000000000000000000000000000000..3201daca419e9fc8062a6bb43a1dbcb4ff38a37d --- /dev/null +++ b/testcases/cli-test/perl-autodie/oe_test_perl-autodie_install_and_remove_perl-autodie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-autodie +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-autodie | grep -v \.src | grep perl-autodie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-autodie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-autodie + CHECK_RESULT $? 0 0 "install perl-autodie failed" + SLEEP_WAIT 1 + dnf remove -y perl-autodie + CHECK_RESULT $? 0 0 "remove perl-autodie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-bignum/oe_test_perl-bignum_install_and_remove_perl-bignum-help.sh b/testcases/cli-test/perl-bignum/oe_test_perl-bignum_install_and_remove_perl-bignum-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..51e6e7a104ea8eea64c083bc3c2aa93d1eb74912 --- /dev/null +++ b/testcases/cli-test/perl-bignum/oe_test_perl-bignum_install_and_remove_perl-bignum-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-bignum +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-bignum-help | grep -v \.src | grep perl-bignum-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-bignum-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-bignum-help + CHECK_RESULT $? 0 0 "install perl-bignum-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-bignum-help + CHECK_RESULT $? 0 0 "remove perl-bignum-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-bignum/oe_test_perl-bignum_install_and_remove_perl-bignum.sh b/testcases/cli-test/perl-bignum/oe_test_perl-bignum_install_and_remove_perl-bignum.sh new file mode 100644 index 0000000000000000000000000000000000000000..3517c8f03a2b0160b63b8a19f03924707fe2f829 --- /dev/null +++ b/testcases/cli-test/perl-bignum/oe_test_perl-bignum_install_and_remove_perl-bignum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-bignum +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-bignum | grep -v \.src | grep perl-bignum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-bignum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-bignum + CHECK_RESULT $? 0 0 "install perl-bignum failed" + SLEEP_WAIT 1 + dnf remove -y perl-bignum + CHECK_RESULT $? 0 0 "remove perl-bignum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-constant/oe_test_perl-constant_install_and_remove_perl-constant-help.sh b/testcases/cli-test/perl-constant/oe_test_perl-constant_install_and_remove_perl-constant-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..661bc2bac063a07bb25d8e5ca231932b317ba366 --- /dev/null +++ b/testcases/cli-test/perl-constant/oe_test_perl-constant_install_and_remove_perl-constant-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-constant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-constant-help | grep -v \.src | grep perl-constant-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-constant-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-constant-help + CHECK_RESULT $? 0 0 "install perl-constant-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-constant-help + CHECK_RESULT $? 0 0 "remove perl-constant-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-constant/oe_test_perl-constant_install_and_remove_perl-constant.sh b/testcases/cli-test/perl-constant/oe_test_perl-constant_install_and_remove_perl-constant.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3cd293fa8238daa8e95010295a7e2d76c56e43c --- /dev/null +++ b/testcases/cli-test/perl-constant/oe_test_perl-constant_install_and_remove_perl-constant.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-constant +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-constant | grep -v \.src | grep perl-constant + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-constant" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-constant + CHECK_RESULT $? 0 0 "install perl-constant failed" + SLEEP_WAIT 1 + dnf remove -y perl-constant + CHECK_RESULT $? 0 0 "remove perl-constant failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-experimental/oe_test_perl-experimental_install_and_remove_perl-experimental-help.sh b/testcases/cli-test/perl-experimental/oe_test_perl-experimental_install_and_remove_perl-experimental-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c2e6a7673d1b69449d8a46b4054e646cb8d93b3 --- /dev/null +++ b/testcases/cli-test/perl-experimental/oe_test_perl-experimental_install_and_remove_perl-experimental-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-experimental +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-experimental-help | grep -v \.src | grep perl-experimental-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-experimental-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-experimental-help + CHECK_RESULT $? 0 0 "install perl-experimental-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-experimental-help + CHECK_RESULT $? 0 0 "remove perl-experimental-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-experimental/oe_test_perl-experimental_install_and_remove_perl-experimental.sh b/testcases/cli-test/perl-experimental/oe_test_perl-experimental_install_and_remove_perl-experimental.sh new file mode 100644 index 0000000000000000000000000000000000000000..afcfc6525338a63345f4189a74087cbebc1895f7 --- /dev/null +++ b/testcases/cli-test/perl-experimental/oe_test_perl-experimental_install_and_remove_perl-experimental.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-experimental +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-experimental | grep -v \.src | grep perl-experimental + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-experimental" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-experimental + CHECK_RESULT $? 0 0 "install perl-experimental failed" + SLEEP_WAIT 1 + dnf remove -y perl-experimental + CHECK_RESULT $? 0 0 "remove perl-experimental failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-generators/oe_test_perl-generators_install_and_remove_perl-generators.sh b/testcases/cli-test/perl-generators/oe_test_perl-generators_install_and_remove_perl-generators.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa19e20569c48c17f3866f53ff26699fbbc064ff --- /dev/null +++ b/testcases/cli-test/perl-generators/oe_test_perl-generators_install_and_remove_perl-generators.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-generators +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-generators | grep -v \.src | grep perl-generators + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-generators" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-generators + CHECK_RESULT $? 0 0 "install perl-generators failed" + SLEEP_WAIT 1 + dnf remove -y perl-generators + CHECK_RESULT $? 0 0 "remove perl-generators failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-libnet/oe_test_perl-libnet_install_and_remove_perl-libnet-help.sh b/testcases/cli-test/perl-libnet/oe_test_perl-libnet_install_and_remove_perl-libnet-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..67996a0e03087bd8b52ed35083363bf19be8efde --- /dev/null +++ b/testcases/cli-test/perl-libnet/oe_test_perl-libnet_install_and_remove_perl-libnet-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-libnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-libnet-help | grep -v \.src | grep perl-libnet-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-libnet-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-libnet-help + CHECK_RESULT $? 0 0 "install perl-libnet-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-libnet-help + CHECK_RESULT $? 0 0 "remove perl-libnet-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-libnet/oe_test_perl-libnet_install_and_remove_perl-libnet.sh b/testcases/cli-test/perl-libnet/oe_test_perl-libnet_install_and_remove_perl-libnet.sh new file mode 100644 index 0000000000000000000000000000000000000000..61bc5318cfbf917cf1122a83a287f94efea0cb77 --- /dev/null +++ b/testcases/cli-test/perl-libnet/oe_test_perl-libnet_install_and_remove_perl-libnet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-libnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-libnet | grep -v \.src | grep perl-libnet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-libnet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-libnet + CHECK_RESULT $? 0 0 "install perl-libnet failed" + SLEEP_WAIT 1 + dnf remove -y perl-libnet + CHECK_RESULT $? 0 0 "remove perl-libnet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-parent/oe_test_perl-parent_install_and_remove_perl-parent-help.sh b/testcases/cli-test/perl-parent/oe_test_perl-parent_install_and_remove_perl-parent-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..85e418b2df748ede81d96c9b568167485e558e8c --- /dev/null +++ b/testcases/cli-test/perl-parent/oe_test_perl-parent_install_and_remove_perl-parent-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-parent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-parent-help | grep -v \.src | grep perl-parent-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-parent-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-parent-help + CHECK_RESULT $? 0 0 "install perl-parent-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-parent-help + CHECK_RESULT $? 0 0 "remove perl-parent-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-parent/oe_test_perl-parent_install_and_remove_perl-parent.sh b/testcases/cli-test/perl-parent/oe_test_perl-parent_install_and_remove_perl-parent.sh new file mode 100644 index 0000000000000000000000000000000000000000..f965c947d8fcd612fed926fdb107581c8c680d0c --- /dev/null +++ b/testcases/cli-test/perl-parent/oe_test_perl-parent_install_and_remove_perl-parent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-parent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-parent | grep -v \.src | grep perl-parent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-parent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-parent + CHECK_RESULT $? 0 0 "install perl-parent failed" + SLEEP_WAIT 1 + dnf remove -y perl-parent + CHECK_RESULT $? 0 0 "remove perl-parent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-perlfaq/oe_test_perl-perlfaq_install_and_remove_perl-perlfaq-help.sh b/testcases/cli-test/perl-perlfaq/oe_test_perl-perlfaq_install_and_remove_perl-perlfaq-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f2776f53fbf53c9ee523c40e4522cd54e9efb3d --- /dev/null +++ b/testcases/cli-test/perl-perlfaq/oe_test_perl-perlfaq_install_and_remove_perl-perlfaq-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-perlfaq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-perlfaq-help | grep -v \.src | grep perl-perlfaq-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-perlfaq-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-perlfaq-help + CHECK_RESULT $? 0 0 "install perl-perlfaq-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-perlfaq-help + CHECK_RESULT $? 0 0 "remove perl-perlfaq-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-perlfaq/oe_test_perl-perlfaq_install_and_remove_perl-perlfaq.sh b/testcases/cli-test/perl-perlfaq/oe_test_perl-perlfaq_install_and_remove_perl-perlfaq.sh new file mode 100644 index 0000000000000000000000000000000000000000..492d75b31d4015a960555237376b52f809753561 --- /dev/null +++ b/testcases/cli-test/perl-perlfaq/oe_test_perl-perlfaq_install_and_remove_perl-perlfaq.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-perlfaq +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-perlfaq | grep -v \.src | grep perl-perlfaq + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-perlfaq" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-perlfaq + CHECK_RESULT $? 0 0 "install perl-perlfaq failed" + SLEEP_WAIT 1 + dnf remove -y perl-perlfaq + CHECK_RESULT $? 0 0 "remove perl-perlfaq failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-podlators/oe_test_perl-podlators_install_and_remove_perl-podlators-help.sh b/testcases/cli-test/perl-podlators/oe_test_perl-podlators_install_and_remove_perl-podlators-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..658071a9abb84349ce35891ff6eddb3ece6db42d --- /dev/null +++ b/testcases/cli-test/perl-podlators/oe_test_perl-podlators_install_and_remove_perl-podlators-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-podlators +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-podlators-help | grep -v \.src | grep perl-podlators-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-podlators-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-podlators-help + CHECK_RESULT $? 0 0 "install perl-podlators-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-podlators-help + CHECK_RESULT $? 0 0 "remove perl-podlators-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-podlators/oe_test_perl-podlators_install_and_remove_perl-podlators.sh b/testcases/cli-test/perl-podlators/oe_test_perl-podlators_install_and_remove_perl-podlators.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9a04d48a3752b02fef8f30d2899fa94a2a0c05b --- /dev/null +++ b/testcases/cli-test/perl-podlators/oe_test_perl-podlators_install_and_remove_perl-podlators.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-podlators +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-podlators | grep -v \.src | grep perl-podlators + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-podlators" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-podlators + CHECK_RESULT $? 0 0 "install perl-podlators failed" + SLEEP_WAIT 1 + dnf remove -y perl-podlators + CHECK_RESULT $? 0 0 "remove perl-podlators failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-debuginfo.sh b/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2cdd1c07b094817431f07528f0b57643a5e8cc2 --- /dev/null +++ b/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-threads-shared +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-threads-shared-debuginfo | grep -v \.src | grep perl-threads-shared-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-threads-shared-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-threads-shared-debuginfo + CHECK_RESULT $? 0 0 "install perl-threads-shared-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-threads-shared-debuginfo + CHECK_RESULT $? 0 0 "remove perl-threads-shared-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-debugsource.sh b/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c07a427dcf1d39722ebf745fe7e8b8ca53877fd9 --- /dev/null +++ b/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-threads-shared +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-threads-shared-debugsource | grep -v \.src | grep perl-threads-shared-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-threads-shared-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-threads-shared-debugsource + CHECK_RESULT $? 0 0 "install perl-threads-shared-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-threads-shared-debugsource + CHECK_RESULT $? 0 0 "remove perl-threads-shared-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-help.sh b/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..04c6c7961a48015609e52cbc5498f5b6ed603f18 --- /dev/null +++ b/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-threads-shared +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-threads-shared-help | grep -v \.src | grep perl-threads-shared-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-threads-shared-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-threads-shared-help + CHECK_RESULT $? 0 0 "install perl-threads-shared-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-threads-shared-help + CHECK_RESULT $? 0 0 "remove perl-threads-shared-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared.sh b/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared.sh new file mode 100644 index 0000000000000000000000000000000000000000..83435d555f750322fb6987516c04c140d112c38f --- /dev/null +++ b/testcases/cli-test/perl-threads-shared/oe_test_perl-threads-shared_install_and_remove_perl-threads-shared.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-threads-shared +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-threads-shared | grep -v \.src | grep perl-threads-shared + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-threads-shared" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-threads-shared + CHECK_RESULT $? 0 0 "install perl-threads-shared failed" + SLEEP_WAIT 1 + dnf remove -y perl-threads-shared + CHECK_RESULT $? 0 0 "remove perl-threads-shared failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads-debuginfo.sh b/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..122bb1519d960a76461a6060cc28672b5732194e --- /dev/null +++ b/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-threads +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-threads-debuginfo | grep -v \.src | grep perl-threads-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-threads-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-threads-debuginfo + CHECK_RESULT $? 0 0 "install perl-threads-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-threads-debuginfo + CHECK_RESULT $? 0 0 "remove perl-threads-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads-debugsource.sh b/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb9c571a0c00e870345279ca818fb69c714ee54a --- /dev/null +++ b/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-threads +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-threads-debugsource | grep -v \.src | grep perl-threads-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-threads-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-threads-debugsource + CHECK_RESULT $? 0 0 "install perl-threads-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-threads-debugsource + CHECK_RESULT $? 0 0 "remove perl-threads-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads-help.sh b/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..12cab3f1f10631a37ab61030005539dd13cd35a6 --- /dev/null +++ b/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-threads +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-threads-help | grep -v \.src | grep perl-threads-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-threads-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-threads-help + CHECK_RESULT $? 0 0 "install perl-threads-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-threads-help + CHECK_RESULT $? 0 0 "remove perl-threads-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads.sh b/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads.sh new file mode 100644 index 0000000000000000000000000000000000000000..20f93f35518700a3227470aa5c140cd75fd32d59 --- /dev/null +++ b/testcases/cli-test/perl-threads/oe_test_perl-threads_install_and_remove_perl-threads.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-threads +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-threads | grep -v \.src | grep perl-threads + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-threads" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-threads + CHECK_RESULT $? 0 0 "install perl-threads failed" + SLEEP_WAIT 1 + dnf remove -y perl-threads + CHECK_RESULT $? 0 0 "remove perl-threads failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version-debuginfo.sh b/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..06add86c3b26911e26c56335a0b8c2f0df2e8969 --- /dev/null +++ b/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-version +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-version-debuginfo | grep -v \.src | grep perl-version-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-version-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-version-debuginfo + CHECK_RESULT $? 0 0 "install perl-version-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-version-debuginfo + CHECK_RESULT $? 0 0 "remove perl-version-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version-debugsource.sh b/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6179c3d20585422b2ced0e2f8068e2795e199f5 --- /dev/null +++ b/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-version +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-version-debugsource | grep -v \.src | grep perl-version-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-version-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-version-debugsource + CHECK_RESULT $? 0 0 "install perl-version-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-version-debugsource + CHECK_RESULT $? 0 0 "remove perl-version-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version-help.sh b/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4e563e2efc19acdf9cab04f7ebad4bdd54359f8 --- /dev/null +++ b/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-version +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-version-help | grep -v \.src | grep perl-version-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-version-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-version-help + CHECK_RESULT $? 0 0 "install perl-version-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-version-help + CHECK_RESULT $? 0 0 "remove perl-version-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version.sh b/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version.sh new file mode 100644 index 0000000000000000000000000000000000000000..05384df78c5aef5220f4153adf454ccfa0673e06 --- /dev/null +++ b/testcases/cli-test/perl-version/oe_test_perl-version_install_and_remove_perl-version.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl-version +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-version | grep -v \.src | grep perl-version + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-version" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-version + CHECK_RESULT $? 0 0 "install perl-version failed" + SLEEP_WAIT 1 + dnf remove -y perl-version + CHECK_RESULT $? 0 0 "remove perl-version failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-debuginfo.sh b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3b49de8fb806ae89f1885ee959971a2de22bc65 --- /dev/null +++ b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-debuginfo | grep -v \.src | grep perl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-debuginfo + CHECK_RESULT $? 0 0 "install perl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y perl-debuginfo + CHECK_RESULT $? 0 0 "remove perl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-debugsource.sh b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c820fe6b733c4bb784be4172ef29b42829fc3449 --- /dev/null +++ b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-debugsource | grep -v \.src | grep perl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-debugsource + CHECK_RESULT $? 0 0 "install perl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y perl-debugsource + CHECK_RESULT $? 0 0 "remove perl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-devel.sh b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..69a365781caf72cb2eb21628605acf2c5687fb21 --- /dev/null +++ b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-devel | grep -v \.src | grep perl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-devel + CHECK_RESULT $? 0 0 "install perl-devel failed" + SLEEP_WAIT 1 + dnf remove -y perl-devel + CHECK_RESULT $? 0 0 "remove perl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-help.sh b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2900be41be5bf8bd7948149c81f10be61aefccf2 --- /dev/null +++ b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-help | grep -v \.src | grep perl-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-help + CHECK_RESULT $? 0 0 "install perl-help failed" + SLEEP_WAIT 1 + dnf remove -y perl-help + CHECK_RESULT $? 0 0 "remove perl-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-libs.sh b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..e67080aec22792a5fa2f08ebffcc1dce10fdfe3c --- /dev/null +++ b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl-libs | grep -v \.src | grep perl-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl-libs + CHECK_RESULT $? 0 0 "install perl-libs failed" + SLEEP_WAIT 1 + dnf remove -y perl-libs + CHECK_RESULT $? 0 0 "remove perl-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl.sh b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl.sh new file mode 100644 index 0000000000000000000000000000000000000000..63e3870339c1f21798bd84b5d8c8755f0d392c58 --- /dev/null +++ b/testcases/cli-test/perl/oe_test_perl_install_and_remove_perl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src perl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available perl | grep -v \.src | grep perl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm perl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y perl + CHECK_RESULT $? 0 0 "install perl failed" + SLEEP_WAIT 1 + dnf remove -y perl + CHECK_RESULT $? 0 0 "remove perl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign-debuginfo.sh b/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d59e9fc02b3e2919e752a36d8bd083c231dc174c --- /dev/null +++ b/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pesign +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pesign-debuginfo | grep -v \.src | grep pesign-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pesign-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pesign-debuginfo + CHECK_RESULT $? 0 0 "install pesign-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pesign-debuginfo + CHECK_RESULT $? 0 0 "remove pesign-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign-debugsource.sh b/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..839a55175cff060fba2f039b564d0228740cf29e --- /dev/null +++ b/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pesign +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pesign-debugsource | grep -v \.src | grep pesign-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pesign-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pesign-debugsource + CHECK_RESULT $? 0 0 "install pesign-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pesign-debugsource + CHECK_RESULT $? 0 0 "remove pesign-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign-help.sh b/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3925198e9f7b653893b5f77de625582e0450f0b --- /dev/null +++ b/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pesign +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pesign-help | grep -v \.src | grep pesign-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pesign-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pesign-help + CHECK_RESULT $? 0 0 "install pesign-help failed" + SLEEP_WAIT 1 + dnf remove -y pesign-help + CHECK_RESULT $? 0 0 "remove pesign-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign.sh b/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign.sh new file mode 100644 index 0000000000000000000000000000000000000000..1dc522b8c4912ec7d8a913d3647993a1615cd87c --- /dev/null +++ b/testcases/cli-test/pesign/oe_test_pesign_install_and_remove_pesign.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pesign +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pesign | grep -v \.src | grep pesign + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pesign" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pesign + CHECK_RESULT $? 0 0 "install pesign failed" + SLEEP_WAIT 1 + dnf remove -y pesign + CHECK_RESULT $? 0 0 "remove pesign failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz-debuginfo.sh b/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac5e34b7f08ac4d16f298a8b72bab1c47772f882 --- /dev/null +++ b/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pigz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pigz-debuginfo | grep -v \.src | grep pigz-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pigz-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pigz-debuginfo + CHECK_RESULT $? 0 0 "install pigz-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pigz-debuginfo + CHECK_RESULT $? 0 0 "remove pigz-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz-debugsource.sh b/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6bc8d5b4608ebacacbc8a84eb13ea8a3995f088 --- /dev/null +++ b/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pigz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pigz-debugsource | grep -v \.src | grep pigz-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pigz-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pigz-debugsource + CHECK_RESULT $? 0 0 "install pigz-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pigz-debugsource + CHECK_RESULT $? 0 0 "remove pigz-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz-help.sh b/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f435f4d17c03f001632dff973fbae7c31b86b685 --- /dev/null +++ b/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pigz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pigz-help | grep -v \.src | grep pigz-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pigz-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pigz-help + CHECK_RESULT $? 0 0 "install pigz-help failed" + SLEEP_WAIT 1 + dnf remove -y pigz-help + CHECK_RESULT $? 0 0 "remove pigz-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz.sh b/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a818011281d79cefff3fa10d79dcbaf85861350 --- /dev/null +++ b/testcases/cli-test/pigz/oe_test_pigz_install_and_remove_pigz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pigz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pigz | grep -v \.src | grep pigz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pigz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pigz + CHECK_RESULT $? 0 0 "install pigz failed" + SLEEP_WAIT 1 + dnf remove -y pigz + CHECK_RESULT $? 0 0 "remove pigz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman-debuginfo.sh b/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..646d409f28584926ecf2a6d30b3e7c1139d8af21 --- /dev/null +++ b/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pixman +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pixman-debuginfo | grep -v \.src | grep pixman-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pixman-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pixman-debuginfo + CHECK_RESULT $? 0 0 "install pixman-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pixman-debuginfo + CHECK_RESULT $? 0 0 "remove pixman-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman-debugsource.sh b/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..77e8ab75e841473034ca3f7b947cab398acc550a --- /dev/null +++ b/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pixman +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pixman-debugsource | grep -v \.src | grep pixman-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pixman-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pixman-debugsource + CHECK_RESULT $? 0 0 "install pixman-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pixman-debugsource + CHECK_RESULT $? 0 0 "remove pixman-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman-devel.sh b/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e240aaaf12fffff34e5ac672f0f32ce45db567cc --- /dev/null +++ b/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pixman +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pixman-devel | grep -v \.src | grep pixman-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pixman-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pixman-devel + CHECK_RESULT $? 0 0 "install pixman-devel failed" + SLEEP_WAIT 1 + dnf remove -y pixman-devel + CHECK_RESULT $? 0 0 "remove pixman-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman.sh b/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman.sh new file mode 100644 index 0000000000000000000000000000000000000000..d04b6e557be74ec603a7f83fbe8bfa096efd8e91 --- /dev/null +++ b/testcases/cli-test/pixman/oe_test_pixman_install_and_remove_pixman.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pixman +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pixman | grep -v \.src | grep pixman + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pixman" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pixman + CHECK_RESULT $? 0 0 "install pixman failed" + SLEEP_WAIT 1 + dnf remove -y pixman + CHECK_RESULT $? 0 0 "remove pixman failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_bomtool.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_bomtool.sh new file mode 100644 index 0000000000000000000000000000000000000000..0afbb911dd509b83ea65c893e1089163e0e5346a --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_bomtool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available bomtool | grep -v \.src | grep bomtool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm bomtool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y bomtool + CHECK_RESULT $? 0 0 "install bomtool failed" + SLEEP_WAIT 1 + dnf remove -y bomtool + CHECK_RESULT $? 0 0 "remove bomtool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_libpkgconf-devel.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_libpkgconf-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4bea365f2cfe31329991847e4f0fd25028fc9b8 --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_libpkgconf-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpkgconf-devel | grep -v \.src | grep libpkgconf-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpkgconf-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpkgconf-devel + CHECK_RESULT $? 0 0 "install libpkgconf-devel failed" + SLEEP_WAIT 1 + dnf remove -y libpkgconf-devel + CHECK_RESULT $? 0 0 "remove libpkgconf-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_libpkgconf.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_libpkgconf.sh new file mode 100644 index 0000000000000000000000000000000000000000..d513d871d50ac40fb3f98121e23b7d03e3109dda --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_libpkgconf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libpkgconf | grep -v \.src | grep libpkgconf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libpkgconf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libpkgconf + CHECK_RESULT $? 0 0 "install libpkgconf failed" + SLEEP_WAIT 1 + dnf remove -y libpkgconf + CHECK_RESULT $? 0 0 "remove libpkgconf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-bomtool.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-bomtool.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6b6938665413e74caa0f0b7d87fe4d86f5333ab --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-bomtool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pkgconf-bomtool | grep -v \.src | grep pkgconf-bomtool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pkgconf-bomtool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pkgconf-bomtool + CHECK_RESULT $? 0 0 "install pkgconf-bomtool failed" + SLEEP_WAIT 1 + dnf remove -y pkgconf-bomtool + CHECK_RESULT $? 0 0 "remove pkgconf-bomtool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-debuginfo.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e5b024512c8fe9407b741d9cbebeb3ee12d1e1c --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pkgconf-debuginfo | grep -v \.src | grep pkgconf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pkgconf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pkgconf-debuginfo + CHECK_RESULT $? 0 0 "install pkgconf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pkgconf-debuginfo + CHECK_RESULT $? 0 0 "remove pkgconf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-debugsource.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc6358e8f32511df7191435ef551aa889bef9711 --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pkgconf-debugsource | grep -v \.src | grep pkgconf-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pkgconf-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pkgconf-debugsource + CHECK_RESULT $? 0 0 "install pkgconf-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pkgconf-debugsource + CHECK_RESULT $? 0 0 "remove pkgconf-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-devel.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8aa7ccb468177745ac340676bc7453efcc34069d --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pkgconf-devel | grep -v \.src | grep pkgconf-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pkgconf-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pkgconf-devel + CHECK_RESULT $? 0 0 "install pkgconf-devel failed" + SLEEP_WAIT 1 + dnf remove -y pkgconf-devel + CHECK_RESULT $? 0 0 "remove pkgconf-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-doc.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f72ce694575cfebd710ac91d99494b3bce283a72 --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pkgconf-doc | grep -v \.src | grep pkgconf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pkgconf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pkgconf-doc + CHECK_RESULT $? 0 0 "install pkgconf-doc failed" + SLEEP_WAIT 1 + dnf remove -y pkgconf-doc + CHECK_RESULT $? 0 0 "remove pkgconf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-help.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0b7d31f2035ec36f3e91229b4711a2b63226f36 --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pkgconf-help | grep -v \.src | grep pkgconf-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pkgconf-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pkgconf-help + CHECK_RESULT $? 0 0 "install pkgconf-help failed" + SLEEP_WAIT 1 + dnf remove -y pkgconf-help + CHECK_RESULT $? 0 0 "remove pkgconf-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-m4.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-m4.sh new file mode 100644 index 0000000000000000000000000000000000000000..e45c31fda732e08bf7aa6bca9bb4ba064981c5b0 --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-m4.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pkgconf-m4 | grep -v \.src | grep pkgconf-m4 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pkgconf-m4" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pkgconf-m4 + CHECK_RESULT $? 0 0 "install pkgconf-m4 failed" + SLEEP_WAIT 1 + dnf remove -y pkgconf-m4 + CHECK_RESULT $? 0 0 "remove pkgconf-m4 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-pkg-config.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-pkg-config.sh new file mode 100644 index 0000000000000000000000000000000000000000..91cf46948aa94279c9dcad99a8b451a9d1d036bc --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf-pkg-config.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pkgconf-pkg-config | grep -v \.src | grep pkgconf-pkg-config + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pkgconf-pkg-config" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pkgconf-pkg-config + CHECK_RESULT $? 0 0 "install pkgconf-pkg-config failed" + SLEEP_WAIT 1 + dnf remove -y pkgconf-pkg-config + CHECK_RESULT $? 0 0 "remove pkgconf-pkg-config failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf.sh b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf.sh new file mode 100644 index 0000000000000000000000000000000000000000..01b0e4eb2865299ef16eca50c3335c5fc740b821 --- /dev/null +++ b/testcases/cli-test/pkgconf/oe_test_pkgconf_install_and_remove_pkgconf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pkgconf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pkgconf | grep -v \.src | grep pkgconf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pkgconf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pkgconf + CHECK_RESULT $? 0 0 "install pkgconf failed" + SLEEP_WAIT 1 + dnf remove -y pkgconf + CHECK_RESULT $? 0 0 "remove pkgconf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-debuginfo.sh b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5163ff8b08b21d2e949d0cca966e98d87d1c12f6 --- /dev/null +++ b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src plymouth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available plymouth-debuginfo | grep -v \.src | grep plymouth-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm plymouth-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y plymouth-debuginfo + CHECK_RESULT $? 0 0 "install plymouth-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y plymouth-debuginfo + CHECK_RESULT $? 0 0 "remove plymouth-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-debugsource.sh b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1c0ec4949782560af2285158480136403efa828 --- /dev/null +++ b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src plymouth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available plymouth-debugsource | grep -v \.src | grep plymouth-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm plymouth-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y plymouth-debugsource + CHECK_RESULT $? 0 0 "install plymouth-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y plymouth-debugsource + CHECK_RESULT $? 0 0 "remove plymouth-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-devel.sh b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..967670370f678baf0bd55b4b9334f5dcddb44276 --- /dev/null +++ b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src plymouth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available plymouth-devel | grep -v \.src | grep plymouth-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm plymouth-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y plymouth-devel + CHECK_RESULT $? 0 0 "install plymouth-devel failed" + SLEEP_WAIT 1 + dnf remove -y plymouth-devel + CHECK_RESULT $? 0 0 "remove plymouth-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-help.sh b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..728c5b6d209027525b7249915ea4dcfe8c5720d7 --- /dev/null +++ b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src plymouth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available plymouth-help | grep -v \.src | grep plymouth-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm plymouth-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y plymouth-help + CHECK_RESULT $? 0 0 "install plymouth-help failed" + SLEEP_WAIT 1 + dnf remove -y plymouth-help + CHECK_RESULT $? 0 0 "remove plymouth-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-fade-in.sh b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-fade-in.sh new file mode 100644 index 0000000000000000000000000000000000000000..7fb6400f50567ae428e8a1b866da58bbd6ec0961 --- /dev/null +++ b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-fade-in.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src plymouth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available plymouth-theme-fade-in | grep -v \.src | grep plymouth-theme-fade-in + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm plymouth-theme-fade-in" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y plymouth-theme-fade-in + CHECK_RESULT $? 0 0 "install plymouth-theme-fade-in failed" + SLEEP_WAIT 1 + dnf remove -y plymouth-theme-fade-in + CHECK_RESULT $? 0 0 "remove plymouth-theme-fade-in failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-glow.sh b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-glow.sh new file mode 100644 index 0000000000000000000000000000000000000000..e463445e9fb5e27a2cb7cf899dbf624aec23df08 --- /dev/null +++ b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-glow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src plymouth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available plymouth-theme-glow | grep -v \.src | grep plymouth-theme-glow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm plymouth-theme-glow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y plymouth-theme-glow + CHECK_RESULT $? 0 0 "install plymouth-theme-glow failed" + SLEEP_WAIT 1 + dnf remove -y plymouth-theme-glow + CHECK_RESULT $? 0 0 "remove plymouth-theme-glow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-solar.sh b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-solar.sh new file mode 100644 index 0000000000000000000000000000000000000000..047e70e61db246050174746ec6315be6a2147764 --- /dev/null +++ b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-solar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src plymouth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available plymouth-theme-solar | grep -v \.src | grep plymouth-theme-solar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm plymouth-theme-solar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y plymouth-theme-solar + CHECK_RESULT $? 0 0 "install plymouth-theme-solar failed" + SLEEP_WAIT 1 + dnf remove -y plymouth-theme-solar + CHECK_RESULT $? 0 0 "remove plymouth-theme-solar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-spinfinity.sh b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-spinfinity.sh new file mode 100644 index 0000000000000000000000000000000000000000..e81ba74d28bc4dc3a9b5597cb87947a31b3deb26 --- /dev/null +++ b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-spinfinity.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src plymouth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available plymouth-theme-spinfinity | grep -v \.src | grep plymouth-theme-spinfinity + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm plymouth-theme-spinfinity" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y plymouth-theme-spinfinity + CHECK_RESULT $? 0 0 "install plymouth-theme-spinfinity failed" + SLEEP_WAIT 1 + dnf remove -y plymouth-theme-spinfinity + CHECK_RESULT $? 0 0 "remove plymouth-theme-spinfinity failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-spinner.sh b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-spinner.sh new file mode 100644 index 0000000000000000000000000000000000000000..5265346ce4c0690ed5d19fd9768ad3c2b6575909 --- /dev/null +++ b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth-theme-spinner.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src plymouth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available plymouth-theme-spinner | grep -v \.src | grep plymouth-theme-spinner + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm plymouth-theme-spinner" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y plymouth-theme-spinner + CHECK_RESULT $? 0 0 "install plymouth-theme-spinner failed" + SLEEP_WAIT 1 + dnf remove -y plymouth-theme-spinner + CHECK_RESULT $? 0 0 "remove plymouth-theme-spinner failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth.sh b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth.sh new file mode 100644 index 0000000000000000000000000000000000000000..da83e60b13236615aa8e6fcfbbd421f8c9bf33c5 --- /dev/null +++ b/testcases/cli-test/plymouth/oe_test_plymouth_install_and_remove_plymouth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src plymouth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available plymouth | grep -v \.src | grep plymouth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm plymouth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y plymouth + CHECK_RESULT $? 0 0 "install plymouth failed" + SLEEP_WAIT 1 + dnf remove -y plymouth + CHECK_RESULT $? 0 0 "remove plymouth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/po4a/oe_test_po4a_install_and_remove_po4a-help.sh b/testcases/cli-test/po4a/oe_test_po4a_install_and_remove_po4a-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0be3c5f22c13d19c85549b45675baf3ef2aa9dd3 --- /dev/null +++ b/testcases/cli-test/po4a/oe_test_po4a_install_and_remove_po4a-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src po4a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available po4a-help | grep -v \.src | grep po4a-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm po4a-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y po4a-help + CHECK_RESULT $? 0 0 "install po4a-help failed" + SLEEP_WAIT 1 + dnf remove -y po4a-help + CHECK_RESULT $? 0 0 "remove po4a-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/po4a/oe_test_po4a_install_and_remove_po4a.sh b/testcases/cli-test/po4a/oe_test_po4a_install_and_remove_po4a.sh new file mode 100644 index 0000000000000000000000000000000000000000..6265aa2c4b219b607833b7b503721d41821a8788 --- /dev/null +++ b/testcases/cli-test/po4a/oe_test_po4a_install_and_remove_po4a.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src po4a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available po4a | grep -v \.src | grep po4a + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm po4a" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y po4a + CHECK_RESULT $? 0 0 "install po4a failed" + SLEEP_WAIT 1 + dnf remove -y po4a + CHECK_RESULT $? 0 0 "remove po4a failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-dbus.sh b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-dbus.sh new file mode 100644 index 0000000000000000000000000000000000000000..aaf1ed6a58439bb6511569335998a48aae1ae1a5 --- /dev/null +++ b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-dbus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src policycoreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available policycoreutils-dbus | grep -v \.src | grep policycoreutils-dbus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm policycoreutils-dbus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y policycoreutils-dbus + CHECK_RESULT $? 0 0 "install policycoreutils-dbus failed" + SLEEP_WAIT 1 + dnf remove -y policycoreutils-dbus + CHECK_RESULT $? 0 0 "remove policycoreutils-dbus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-debuginfo.sh b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9731cd1261f0aa8f354669a3d60225bf3fa7dd8b --- /dev/null +++ b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src policycoreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available policycoreutils-debuginfo | grep -v \.src | grep policycoreutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm policycoreutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y policycoreutils-debuginfo + CHECK_RESULT $? 0 0 "install policycoreutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y policycoreutils-debuginfo + CHECK_RESULT $? 0 0 "remove policycoreutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-debugsource.sh b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..950cc7c4beea2fcf28d71e0184b20287652b88c5 --- /dev/null +++ b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src policycoreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available policycoreutils-debugsource | grep -v \.src | grep policycoreutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm policycoreutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y policycoreutils-debugsource + CHECK_RESULT $? 0 0 "install policycoreutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y policycoreutils-debugsource + CHECK_RESULT $? 0 0 "remove policycoreutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-devel.sh b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..da5d1d346f6329e57a2465b9f8e6cca70b2b85d1 --- /dev/null +++ b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src policycoreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available policycoreutils-devel | grep -v \.src | grep policycoreutils-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm policycoreutils-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y policycoreutils-devel + CHECK_RESULT $? 0 0 "install policycoreutils-devel failed" + SLEEP_WAIT 1 + dnf remove -y policycoreutils-devel + CHECK_RESULT $? 0 0 "remove policycoreutils-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-help.sh b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..662b715fe05b29db35d8cb352367112a27155895 --- /dev/null +++ b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src policycoreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available policycoreutils-help | grep -v \.src | grep policycoreutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm policycoreutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y policycoreutils-help + CHECK_RESULT $? 0 0 "install policycoreutils-help failed" + SLEEP_WAIT 1 + dnf remove -y policycoreutils-help + CHECK_RESULT $? 0 0 "remove policycoreutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-python-utils.sh b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-python-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..49694f8c711c56057912149ca9e88cfaeff6e684 --- /dev/null +++ b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-python-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src policycoreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available policycoreutils-python-utils | grep -v \.src | grep policycoreutils-python-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm policycoreutils-python-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y policycoreutils-python-utils + CHECK_RESULT $? 0 0 "install policycoreutils-python-utils failed" + SLEEP_WAIT 1 + dnf remove -y policycoreutils-python-utils + CHECK_RESULT $? 0 0 "remove policycoreutils-python-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-sandbox.sh b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-sandbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..008d3a35fca486c56872ff209b245d905e59b329 --- /dev/null +++ b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils-sandbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src policycoreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available policycoreutils-sandbox | grep -v \.src | grep policycoreutils-sandbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm policycoreutils-sandbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y policycoreutils-sandbox + CHECK_RESULT $? 0 0 "install policycoreutils-sandbox failed" + SLEEP_WAIT 1 + dnf remove -y policycoreutils-sandbox + CHECK_RESULT $? 0 0 "remove policycoreutils-sandbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils.sh b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3f49cb88891c3dc8e2da3ca2cf09456a2e36ad8 --- /dev/null +++ b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_policycoreutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src policycoreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available policycoreutils | grep -v \.src | grep policycoreutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm policycoreutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y policycoreutils + CHECK_RESULT $? 0 0 "install policycoreutils failed" + SLEEP_WAIT 1 + dnf remove -y policycoreutils + CHECK_RESULT $? 0 0 "remove policycoreutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_python2-policycoreutils.sh b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_python2-policycoreutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..842a0e44cd04be5c09f95a98d31fa8d1f7f06578 --- /dev/null +++ b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_python2-policycoreutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src policycoreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-policycoreutils | grep -v \.src | grep python2-policycoreutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-policycoreutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-policycoreutils + CHECK_RESULT $? 0 0 "install python2-policycoreutils failed" + SLEEP_WAIT 1 + dnf remove -y python2-policycoreutils + CHECK_RESULT $? 0 0 "remove python2-policycoreutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_python3-policycoreutils.sh b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_python3-policycoreutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..5644b61c6744d3fdc3bb2c903109cf22f75049f4 --- /dev/null +++ b/testcases/cli-test/policycoreutils/oe_test_policycoreutils_install_and_remove_python3-policycoreutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src policycoreutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-policycoreutils | grep -v \.src | grep python3-policycoreutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-policycoreutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-policycoreutils + CHECK_RESULT $? 0 0 "install python3-policycoreutils failed" + SLEEP_WAIT 1 + dnf remove -y python3-policycoreutils + CHECK_RESULT $? 0 0 "remove python3-policycoreutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-debuginfo.sh b/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6fe7df978ab36aca3521cb2065733f07d3af365 --- /dev/null +++ b/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src polkit-pkla-compat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available polkit-pkla-compat-debuginfo | grep -v \.src | grep polkit-pkla-compat-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm polkit-pkla-compat-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y polkit-pkla-compat-debuginfo + CHECK_RESULT $? 0 0 "install polkit-pkla-compat-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y polkit-pkla-compat-debuginfo + CHECK_RESULT $? 0 0 "remove polkit-pkla-compat-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-debugsource.sh b/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf042f9d89551a4fe827d57e5b7ee219411b4aef --- /dev/null +++ b/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src polkit-pkla-compat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available polkit-pkla-compat-debugsource | grep -v \.src | grep polkit-pkla-compat-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm polkit-pkla-compat-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y polkit-pkla-compat-debugsource + CHECK_RESULT $? 0 0 "install polkit-pkla-compat-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y polkit-pkla-compat-debugsource + CHECK_RESULT $? 0 0 "remove polkit-pkla-compat-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-help.sh b/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fdd37fcd4697e4ce0e051bbdf8fb44ace25d08fb --- /dev/null +++ b/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src polkit-pkla-compat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available polkit-pkla-compat-help | grep -v \.src | grep polkit-pkla-compat-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm polkit-pkla-compat-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y polkit-pkla-compat-help + CHECK_RESULT $? 0 0 "install polkit-pkla-compat-help failed" + SLEEP_WAIT 1 + dnf remove -y polkit-pkla-compat-help + CHECK_RESULT $? 0 0 "remove polkit-pkla-compat-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat.sh b/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat.sh new file mode 100644 index 0000000000000000000000000000000000000000..17ea22a2edff16bd56e8941110e81fa7507b4d28 --- /dev/null +++ b/testcases/cli-test/polkit-pkla-compat/oe_test_polkit-pkla-compat_install_and_remove_polkit-pkla-compat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src polkit-pkla-compat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available polkit-pkla-compat | grep -v \.src | grep polkit-pkla-compat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm polkit-pkla-compat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y polkit-pkla-compat + CHECK_RESULT $? 0 0 "install polkit-pkla-compat failed" + SLEEP_WAIT 1 + dnf remove -y polkit-pkla-compat + CHECK_RESULT $? 0 0 "remove polkit-pkla-compat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-debuginfo.sh b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..aab435416a7e3f89378f70508f2ce1927a2c63b5 --- /dev/null +++ b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src polkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available polkit-debuginfo | grep -v \.src | grep polkit-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm polkit-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y polkit-debuginfo + CHECK_RESULT $? 0 0 "install polkit-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y polkit-debuginfo + CHECK_RESULT $? 0 0 "remove polkit-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-debugsource.sh b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..642e0bb311c7a4a600837637a5971016bb690123 --- /dev/null +++ b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src polkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available polkit-debugsource | grep -v \.src | grep polkit-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm polkit-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y polkit-debugsource + CHECK_RESULT $? 0 0 "install polkit-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y polkit-debugsource + CHECK_RESULT $? 0 0 "remove polkit-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-devel.sh b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..64815b342486c2ad7f8fdb5890032e5c795b3e96 --- /dev/null +++ b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src polkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available polkit-devel | grep -v \.src | grep polkit-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm polkit-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y polkit-devel + CHECK_RESULT $? 0 0 "install polkit-devel failed" + SLEEP_WAIT 1 + dnf remove -y polkit-devel + CHECK_RESULT $? 0 0 "remove polkit-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-help.sh b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3d9aa0645995ea81742984f4738d6add0a8eb9f --- /dev/null +++ b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src polkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available polkit-help | grep -v \.src | grep polkit-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm polkit-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y polkit-help + CHECK_RESULT $? 0 0 "install polkit-help failed" + SLEEP_WAIT 1 + dnf remove -y polkit-help + CHECK_RESULT $? 0 0 "remove polkit-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-libs.sh b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e59bc685dd65869a1e04ab655b33d12766ebcfe --- /dev/null +++ b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src polkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available polkit-libs | grep -v \.src | grep polkit-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm polkit-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y polkit-libs + CHECK_RESULT $? 0 0 "install polkit-libs failed" + SLEEP_WAIT 1 + dnf remove -y polkit-libs + CHECK_RESULT $? 0 0 "remove polkit-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit.sh b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b09bbfb78d94cba3fdb13b50197a8ca27e62060 --- /dev/null +++ b/testcases/cli-test/polkit/oe_test_polkit_install_and_remove_polkit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src polkit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available polkit | grep -v \.src | grep polkit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm polkit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y polkit + CHECK_RESULT $? 0 0 "install polkit failed" + SLEEP_WAIT 1 + dnf remove -y polkit + CHECK_RESULT $? 0 0 "remove polkit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-debuginfo.sh b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b1c75634dd4f208e56a2e92b47e9a877ac2bad5 --- /dev/null +++ b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src popt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available popt-debuginfo | grep -v \.src | grep popt-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm popt-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y popt-debuginfo + CHECK_RESULT $? 0 0 "install popt-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y popt-debuginfo + CHECK_RESULT $? 0 0 "remove popt-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-debugsource.sh b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..677142ca356dc817264163bffbaa12524a191474 --- /dev/null +++ b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src popt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available popt-debugsource | grep -v \.src | grep popt-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm popt-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y popt-debugsource + CHECK_RESULT $? 0 0 "install popt-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y popt-debugsource + CHECK_RESULT $? 0 0 "remove popt-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-devel.sh b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c2740d9d5ad2cdc2f901db6e8917bd904965144 --- /dev/null +++ b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src popt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available popt-devel | grep -v \.src | grep popt-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm popt-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y popt-devel + CHECK_RESULT $? 0 0 "install popt-devel failed" + SLEEP_WAIT 1 + dnf remove -y popt-devel + CHECK_RESULT $? 0 0 "remove popt-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-doc.sh b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..46bdedd914dd6017d87277b599eec02264c93f0f --- /dev/null +++ b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src popt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available popt-doc | grep -v \.src | grep popt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm popt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y popt-doc + CHECK_RESULT $? 0 0 "install popt-doc failed" + SLEEP_WAIT 1 + dnf remove -y popt-doc + CHECK_RESULT $? 0 0 "remove popt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-help.sh b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..723a0537495ff2a96779756fe33a53ea283994f7 --- /dev/null +++ b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src popt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available popt-help | grep -v \.src | grep popt-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm popt-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y popt-help + CHECK_RESULT $? 0 0 "install popt-help failed" + SLEEP_WAIT 1 + dnf remove -y popt-help + CHECK_RESULT $? 0 0 "remove popt-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-static.sh b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..b62e543568aee998ee837da95f49bad4ab03474b --- /dev/null +++ b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src popt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available popt-static | grep -v \.src | grep popt-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm popt-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y popt-static + CHECK_RESULT $? 0 0 "install popt-static failed" + SLEEP_WAIT 1 + dnf remove -y popt-static + CHECK_RESULT $? 0 0 "remove popt-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt.sh b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt.sh new file mode 100644 index 0000000000000000000000000000000000000000..c63133046604eb01c3752320fe6cf3f1668dae97 --- /dev/null +++ b/testcases/cli-test/popt/oe_test_popt_install_and_remove_popt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src popt +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available popt | grep -v \.src | grep popt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm popt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y popt + CHECK_RESULT $? 0 0 "install popt failed" + SLEEP_WAIT 1 + dnf remove -y popt + CHECK_RESULT $? 0 0 "remove popt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-debuginfo.sh b/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f0ad4841ceb98593cda5fa9f02777f97a110978 --- /dev/null +++ b/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ppp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ppp-debuginfo | grep -v \.src | grep ppp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ppp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ppp-debuginfo + CHECK_RESULT $? 0 0 "install ppp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ppp-debuginfo + CHECK_RESULT $? 0 0 "remove ppp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-debugsource.sh b/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..820247353d0606a7497b4fbc48037e659a4bcdd1 --- /dev/null +++ b/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ppp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ppp-debugsource | grep -v \.src | grep ppp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ppp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ppp-debugsource + CHECK_RESULT $? 0 0 "install ppp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ppp-debugsource + CHECK_RESULT $? 0 0 "remove ppp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-devel.sh b/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..035f20655ed04d6b514ccd39827caaf91d17d444 --- /dev/null +++ b/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ppp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ppp-devel | grep -v \.src | grep ppp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ppp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ppp-devel + CHECK_RESULT $? 0 0 "install ppp-devel failed" + SLEEP_WAIT 1 + dnf remove -y ppp-devel + CHECK_RESULT $? 0 0 "remove ppp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-help.sh b/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9bdf021e068a09f1c3aca36396fe36d718fe86a6 --- /dev/null +++ b/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ppp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ppp-help | grep -v \.src | grep ppp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ppp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ppp-help + CHECK_RESULT $? 0 0 "install ppp-help failed" + SLEEP_WAIT 1 + dnf remove -y ppp-help + CHECK_RESULT $? 0 0 "remove ppp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp.sh b/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp.sh new file mode 100644 index 0000000000000000000000000000000000000000..48eeb668ac62648513bbd4e460cd80f655499fd7 --- /dev/null +++ b/testcases/cli-test/ppp/oe_test_ppp_install_and_remove_ppp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ppp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ppp | grep -v \.src | grep ppp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ppp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ppp + CHECK_RESULT $? 0 0 "install ppp failed" + SLEEP_WAIT 1 + dnf remove -y ppp + CHECK_RESULT $? 0 0 "remove ppp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools-debuginfo.sh b/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..962d848b72b44598a9230e18072d632745335d12 --- /dev/null +++ b/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pps-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pps-tools-debuginfo | grep -v \.src | grep pps-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pps-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pps-tools-debuginfo + CHECK_RESULT $? 0 0 "install pps-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pps-tools-debuginfo + CHECK_RESULT $? 0 0 "remove pps-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools-debugsource.sh b/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8ef6361324d521e11192b539b1c439307509a42 --- /dev/null +++ b/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pps-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pps-tools-debugsource | grep -v \.src | grep pps-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pps-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pps-tools-debugsource + CHECK_RESULT $? 0 0 "install pps-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pps-tools-debugsource + CHECK_RESULT $? 0 0 "remove pps-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools-devel.sh b/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..47580a0e289a5ad860a048771a0a5da89e2dc126 --- /dev/null +++ b/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pps-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pps-tools-devel | grep -v \.src | grep pps-tools-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pps-tools-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pps-tools-devel + CHECK_RESULT $? 0 0 "install pps-tools-devel failed" + SLEEP_WAIT 1 + dnf remove -y pps-tools-devel + CHECK_RESULT $? 0 0 "remove pps-tools-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools.sh b/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..121db4d7175100e591229f9604447660e0d6afec --- /dev/null +++ b/testcases/cli-test/pps-tools/oe_test_pps-tools_install_and_remove_pps-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pps-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pps-tools | grep -v \.src | grep pps-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pps-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pps-tools + CHECK_RESULT $? 0 0 "install pps-tools failed" + SLEEP_WAIT 1 + dnf remove -y pps-tools + CHECK_RESULT $? 0 0 "remove pps-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-debuginfo.sh b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7482394de08e5dc44960c2c587f5ebc197eecde7 --- /dev/null +++ b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src procps-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available procps-ng-debuginfo | grep -v \.src | grep procps-ng-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm procps-ng-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y procps-ng-debuginfo + CHECK_RESULT $? 0 0 "install procps-ng-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y procps-ng-debuginfo + CHECK_RESULT $? 0 0 "remove procps-ng-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-debugsource.sh b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..af565dd91e498b411caa5bb486e45f68d8d4034a --- /dev/null +++ b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src procps-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available procps-ng-debugsource | grep -v \.src | grep procps-ng-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm procps-ng-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y procps-ng-debugsource + CHECK_RESULT $? 0 0 "install procps-ng-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y procps-ng-debugsource + CHECK_RESULT $? 0 0 "remove procps-ng-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-devel.sh b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd253fc8e2ad523f2967fac1ee98dfb8067cc6d8 --- /dev/null +++ b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src procps-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available procps-ng-devel | grep -v \.src | grep procps-ng-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm procps-ng-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y procps-ng-devel + CHECK_RESULT $? 0 0 "install procps-ng-devel failed" + SLEEP_WAIT 1 + dnf remove -y procps-ng-devel + CHECK_RESULT $? 0 0 "remove procps-ng-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-help.sh b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d6e7afd2852fd74d5de1033d9282e4ae82995d6 --- /dev/null +++ b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src procps-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available procps-ng-help | grep -v \.src | grep procps-ng-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm procps-ng-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y procps-ng-help + CHECK_RESULT $? 0 0 "install procps-ng-help failed" + SLEEP_WAIT 1 + dnf remove -y procps-ng-help + CHECK_RESULT $? 0 0 "remove procps-ng-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-i18n.sh b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-i18n.sh new file mode 100644 index 0000000000000000000000000000000000000000..58f92b11fdad1841d2950ac56cc4a034ebad2d34 --- /dev/null +++ b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng-i18n.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src procps-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available procps-ng-i18n | grep -v \.src | grep procps-ng-i18n + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm procps-ng-i18n" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y procps-ng-i18n + CHECK_RESULT $? 0 0 "install procps-ng-i18n failed" + SLEEP_WAIT 1 + dnf remove -y procps-ng-i18n + CHECK_RESULT $? 0 0 "remove procps-ng-i18n failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng.sh b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng.sh new file mode 100644 index 0000000000000000000000000000000000000000..a41fe6be8e5bebcb0a243d7dd185bc2d6c306725 --- /dev/null +++ b/testcases/cli-test/procps-ng/oe_test_procps-ng_install_and_remove_procps-ng.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src procps-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available procps-ng | grep -v \.src | grep procps-ng + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm procps-ng" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y procps-ng + CHECK_RESULT $? 0 0 "install procps-ng failed" + SLEEP_WAIT 1 + dnf remove -y procps-ng + CHECK_RESULT $? 0 0 "remove procps-ng failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c-debuginfo.sh b/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f5aba235896adec10d9ee4e586271e490b5ae3b --- /dev/null +++ b/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-c-debuginfo | grep -v \.src | grep protobuf-c-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-c-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-c-debuginfo + CHECK_RESULT $? 0 0 "install protobuf-c-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-c-debuginfo + CHECK_RESULT $? 0 0 "remove protobuf-c-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c-debugsource.sh b/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..78c7bf5e10c2b7ea81332b689a2057dda9cddb5a --- /dev/null +++ b/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-c-debugsource | grep -v \.src | grep protobuf-c-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-c-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-c-debugsource + CHECK_RESULT $? 0 0 "install protobuf-c-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-c-debugsource + CHECK_RESULT $? 0 0 "remove protobuf-c-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c-devel.sh b/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd6a69beacfaf76fe2e0ff92411be23ebcdc6b23 --- /dev/null +++ b/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-c-devel | grep -v \.src | grep protobuf-c-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-c-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-c-devel + CHECK_RESULT $? 0 0 "install protobuf-c-devel failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-c-devel + CHECK_RESULT $? 0 0 "remove protobuf-c-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c.sh b/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6c872ee045894d9d389126e7fd92f9c4c8169c9 --- /dev/null +++ b/testcases/cli-test/protobuf-c/oe_test_protobuf-c_install_and_remove_protobuf-c.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-c | grep -v \.src | grep protobuf-c + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-c" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-c + CHECK_RESULT $? 0 0 "install protobuf-c failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-c + CHECK_RESULT $? 0 0 "remove protobuf-c failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-bom.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-bom.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8151d7a138889375f71bcca637b27716e26bed8 --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-bom.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-bom | grep -v \.src | grep protobuf-bom + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-bom" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-bom + CHECK_RESULT $? 0 0 "install protobuf-bom failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-bom + CHECK_RESULT $? 0 0 "remove protobuf-bom failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-compiler.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-compiler.sh new file mode 100644 index 0000000000000000000000000000000000000000..c74d45366e6cd65200e6f5df73a4b2cd38176105 --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-compiler.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-compiler | grep -v \.src | grep protobuf-compiler + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-compiler" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-compiler + CHECK_RESULT $? 0 0 "install protobuf-compiler failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-compiler + CHECK_RESULT $? 0 0 "remove protobuf-compiler failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-debuginfo.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a630a2382040f0a1d93f551bf25a4c98df3eaf5 --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-debuginfo | grep -v \.src | grep protobuf-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-debuginfo + CHECK_RESULT $? 0 0 "install protobuf-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-debuginfo + CHECK_RESULT $? 0 0 "remove protobuf-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-debugsource.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b05c93fc9132fe99f9d487eee54e54d0066d9c8 --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-debugsource | grep -v \.src | grep protobuf-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-debugsource + CHECK_RESULT $? 0 0 "install protobuf-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-debugsource + CHECK_RESULT $? 0 0 "remove protobuf-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-devel.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..00dd89081a7243a13d384133747b4d9f658894fe --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-devel | grep -v \.src | grep protobuf-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-devel + CHECK_RESULT $? 0 0 "install protobuf-devel failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-devel + CHECK_RESULT $? 0 0 "remove protobuf-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-java-util.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-java-util.sh new file mode 100644 index 0000000000000000000000000000000000000000..3639dd0354e623a6aa685c0f57cfb965cf4ac1cf --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-java-util.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-java-util | grep -v \.src | grep protobuf-java-util + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-java-util" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-java-util + CHECK_RESULT $? 0 0 "install protobuf-java-util failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-java-util + CHECK_RESULT $? 0 0 "remove protobuf-java-util failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-java.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-java.sh new file mode 100644 index 0000000000000000000000000000000000000000..442f20eb07586694498685c599c16e73a0c529b4 --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-java.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-java | grep -v \.src | grep protobuf-java + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-java" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-java + CHECK_RESULT $? 0 0 "install protobuf-java failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-java + CHECK_RESULT $? 0 0 "remove protobuf-java failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-javadoc.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-javadoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1843dacefc2bb6e1c9e63219b05b61320eceb764 --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-javadoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-javadoc | grep -v \.src | grep protobuf-javadoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-javadoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-javadoc + CHECK_RESULT $? 0 0 "install protobuf-javadoc failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-javadoc + CHECK_RESULT $? 0 0 "remove protobuf-javadoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-javalite.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-javalite.sh new file mode 100644 index 0000000000000000000000000000000000000000..d58edee69cc08511c3210e41ee7032eb82da986a --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-javalite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-javalite | grep -v \.src | grep protobuf-javalite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-javalite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-javalite + CHECK_RESULT $? 0 0 "install protobuf-javalite failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-javalite + CHECK_RESULT $? 0 0 "remove protobuf-javalite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-lite-devel.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-lite-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5a17331b16fa2e556cab7dc21b026d7ecb0b252 --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-lite-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-lite-devel | grep -v \.src | grep protobuf-lite-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-lite-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-lite-devel + CHECK_RESULT $? 0 0 "install protobuf-lite-devel failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-lite-devel + CHECK_RESULT $? 0 0 "remove protobuf-lite-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-lite.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-lite.sh new file mode 100644 index 0000000000000000000000000000000000000000..15c19d71e02dfcca7eac7d441127af8345cbceb7 --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-lite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-lite | grep -v \.src | grep protobuf-lite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-lite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-lite + CHECK_RESULT $? 0 0 "install protobuf-lite failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-lite + CHECK_RESULT $? 0 0 "remove protobuf-lite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-parent.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-parent.sh new file mode 100644 index 0000000000000000000000000000000000000000..44e880ce5ef2d6f4b8eebbae8dd651c8b038e712 --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf-parent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf-parent | grep -v \.src | grep protobuf-parent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf-parent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf-parent + CHECK_RESULT $? 0 0 "install protobuf-parent failed" + SLEEP_WAIT 1 + dnf remove -y protobuf-parent + CHECK_RESULT $? 0 0 "remove protobuf-parent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf.sh new file mode 100644 index 0000000000000000000000000000000000000000..9862af076da28e71c85b8e235d86aaa5edb339dd --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_protobuf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available protobuf | grep -v \.src | grep protobuf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm protobuf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y protobuf + CHECK_RESULT $? 0 0 "install protobuf failed" + SLEEP_WAIT 1 + dnf remove -y protobuf + CHECK_RESULT $? 0 0 "remove protobuf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_python%{python3_pkgversion}-protobuf.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_python%{python3_pkgversion}-protobuf.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f9ba29e641ddb348a39453e4a6f208a868d2b94 --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_python%{python3_pkgversion}-protobuf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python%{python3_pkgversion}-protobuf | grep -v \.src | grep python%{python3_pkgversion}-protobuf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python%{python3_pkgversion}-protobuf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python%{python3_pkgversion}-protobuf + CHECK_RESULT $? 0 0 "install python%{python3_pkgversion}-protobuf failed" + SLEEP_WAIT 1 + dnf remove -y python%{python3_pkgversion}-protobuf + CHECK_RESULT $? 0 0 "remove python%{python3_pkgversion}-protobuf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_python2-protobuf.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_python2-protobuf.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2665dfcbddbd3d70be596e876ec9262c2963d8e --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_python2-protobuf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-protobuf | grep -v \.src | grep python2-protobuf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-protobuf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-protobuf + CHECK_RESULT $? 0 0 "install python2-protobuf failed" + SLEEP_WAIT 1 + dnf remove -y python2-protobuf + CHECK_RESULT $? 0 0 "remove python2-protobuf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_python3-protobuf.sh b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_python3-protobuf.sh new file mode 100644 index 0000000000000000000000000000000000000000..162c831a2488402ca33679a0e03498e5852bee0b --- /dev/null +++ b/testcases/cli-test/protobuf/oe_test_protobuf_install_and_remove_python3-protobuf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src protobuf +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-protobuf | grep -v \.src | grep python3-protobuf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-protobuf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-protobuf + CHECK_RESULT $? 0 0 "install python3-protobuf failed" + SLEEP_WAIT 1 + dnf remove -y python3-protobuf + CHECK_RESULT $? 0 0 "remove python3-protobuf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/psmisc/oe_test_psmisc_install_and_remove_psmisc-debuginfo.sh b/testcases/cli-test/psmisc/oe_test_psmisc_install_and_remove_psmisc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4284aa035aae56103d15ed118d329edb6ae8637d --- /dev/null +++ b/testcases/cli-test/psmisc/oe_test_psmisc_install_and_remove_psmisc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src psmisc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available psmisc-debuginfo | grep -v \.src | grep psmisc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm psmisc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y psmisc-debuginfo + CHECK_RESULT $? 0 0 "install psmisc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y psmisc-debuginfo + CHECK_RESULT $? 0 0 "remove psmisc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/psmisc/oe_test_psmisc_install_and_remove_psmisc-debugsource.sh b/testcases/cli-test/psmisc/oe_test_psmisc_install_and_remove_psmisc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..70fea261b51f2cf7605359d74af064fa7065b1d0 --- /dev/null +++ b/testcases/cli-test/psmisc/oe_test_psmisc_install_and_remove_psmisc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src psmisc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available psmisc-debugsource | grep -v \.src | grep psmisc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm psmisc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y psmisc-debugsource + CHECK_RESULT $? 0 0 "install psmisc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y psmisc-debugsource + CHECK_RESULT $? 0 0 "remove psmisc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/psmisc/oe_test_psmisc_install_and_remove_psmisc.sh b/testcases/cli-test/psmisc/oe_test_psmisc_install_and_remove_psmisc.sh new file mode 100644 index 0000000000000000000000000000000000000000..edb3d5d7f908cf63ef3d44d26a18d3b2b73a9ee5 --- /dev/null +++ b/testcases/cli-test/psmisc/oe_test_psmisc_install_and_remove_psmisc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src psmisc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available psmisc | grep -v \.src | grep psmisc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm psmisc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y psmisc + CHECK_RESULT $? 0 0 "install psmisc failed" + SLEEP_WAIT 1 + dnf remove -y psmisc + CHECK_RESULT $? 0 0 "remove psmisc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils-debuginfo.sh b/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..72629e5a88e1609116b4085d44553a4134da2dae --- /dev/null +++ b/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src psutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available psutils-debuginfo | grep -v \.src | grep psutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm psutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y psutils-debuginfo + CHECK_RESULT $? 0 0 "install psutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y psutils-debuginfo + CHECK_RESULT $? 0 0 "remove psutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils-debugsource.sh b/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..719a2b6b657e1dad06803a32effd1fab81356760 --- /dev/null +++ b/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src psutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available psutils-debugsource | grep -v \.src | grep psutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm psutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y psutils-debugsource + CHECK_RESULT $? 0 0 "install psutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y psutils-debugsource + CHECK_RESULT $? 0 0 "remove psutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils-help.sh b/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf6a1927ff9d666b7eee53949b6dda95247e83e9 --- /dev/null +++ b/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src psutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available psutils-help | grep -v \.src | grep psutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm psutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y psutils-help + CHECK_RESULT $? 0 0 "install psutils-help failed" + SLEEP_WAIT 1 + dnf remove -y psutils-help + CHECK_RESULT $? 0 0 "remove psutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils.sh b/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f61199646defe3690f0e2cef4d71bdc7c9ae0be --- /dev/null +++ b/testcases/cli-test/psutils/oe_test_psutils_install_and_remove_psutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src psutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available psutils | grep -v \.src | grep psutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm psutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y psutils + CHECK_RESULT $? 0 0 "install psutils failed" + SLEEP_WAIT 1 + dnf remove -y psutils + CHECK_RESULT $? 0 0 "remove psutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/publicsuffix-list/oe_test_publicsuffix-list_install_and_remove_publicsuffix-list.sh b/testcases/cli-test/publicsuffix-list/oe_test_publicsuffix-list_install_and_remove_publicsuffix-list.sh new file mode 100644 index 0000000000000000000000000000000000000000..5bad4761247c2e65e39c5c5393e39ed14d5e3a73 --- /dev/null +++ b/testcases/cli-test/publicsuffix-list/oe_test_publicsuffix-list_install_and_remove_publicsuffix-list.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src publicsuffix-list +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available publicsuffix-list | grep -v \.src | grep publicsuffix-list + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm publicsuffix-list" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y publicsuffix-list + CHECK_RESULT $? 0 0 "install publicsuffix-list failed" + SLEEP_WAIT 1 + dnf remove -y publicsuffix-list + CHECK_RESULT $? 0 0 "remove publicsuffix-list failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-debuginfo.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd25107ccd98fdb2f9796e4a2f6b2210d00d061b --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio-debuginfo | grep -v \.src | grep pulseaudio-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio-debuginfo + CHECK_RESULT $? 0 0 "install pulseaudio-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio-debuginfo + CHECK_RESULT $? 0 0 "remove pulseaudio-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-debugsource.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..370246d0654a6799cc29191ece05ff7c21d56f36 --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio-debugsource | grep -v \.src | grep pulseaudio-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio-debugsource + CHECK_RESULT $? 0 0 "install pulseaudio-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio-debugsource + CHECK_RESULT $? 0 0 "remove pulseaudio-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-devel.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..623ec1236383cd02bb2d99af334cefd842eb4be1 --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio-devel | grep -v \.src | grep pulseaudio-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio-devel + CHECK_RESULT $? 0 0 "install pulseaudio-devel failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio-devel + CHECK_RESULT $? 0 0 "remove pulseaudio-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-gdm-hooks.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-gdm-hooks.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9f9cb470524106175b60e28c9bb528ec008e0d4 --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-gdm-hooks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio-gdm-hooks | grep -v \.src | grep pulseaudio-gdm-hooks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio-gdm-hooks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio-gdm-hooks + CHECK_RESULT $? 0 0 "install pulseaudio-gdm-hooks failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio-gdm-hooks + CHECK_RESULT $? 0 0 "remove pulseaudio-gdm-hooks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-help.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e829208d0b61649999218b3f0b32f64fed9d0272 --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio-help | grep -v \.src | grep pulseaudio-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio-help + CHECK_RESULT $? 0 0 "install pulseaudio-help failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio-help + CHECK_RESULT $? 0 0 "remove pulseaudio-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-libs-devel.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-libs-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5ab7baef17de686f442fdf3ba6a4533b92ed3c6 --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-libs-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio-libs-devel | grep -v \.src | grep pulseaudio-libs-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio-libs-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio-libs-devel + CHECK_RESULT $? 0 0 "install pulseaudio-libs-devel failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio-libs-devel + CHECK_RESULT $? 0 0 "remove pulseaudio-libs-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-libs-glib2.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-libs-glib2.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ce06a6abce142e54e411f0b0d35fd864806222d --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-libs-glib2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio-libs-glib2 | grep -v \.src | grep pulseaudio-libs-glib2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio-libs-glib2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio-libs-glib2 + CHECK_RESULT $? 0 0 "install pulseaudio-libs-glib2 failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio-libs-glib2 + CHECK_RESULT $? 0 0 "remove pulseaudio-libs-glib2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-libs.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..36a3a00378b3318b9f1db228e21b2cbed6266e9b --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio-libs | grep -v \.src | grep pulseaudio-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio-libs + CHECK_RESULT $? 0 0 "install pulseaudio-libs failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio-libs + CHECK_RESULT $? 0 0 "remove pulseaudio-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-module-bluetooth.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-module-bluetooth.sh new file mode 100644 index 0000000000000000000000000000000000000000..083e8b2b2831f0c77c4d9c77f9f905691286067c --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-module-bluetooth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio-module-bluetooth | grep -v \.src | grep pulseaudio-module-bluetooth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio-module-bluetooth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio-module-bluetooth + CHECK_RESULT $? 0 0 "install pulseaudio-module-bluetooth failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio-module-bluetooth + CHECK_RESULT $? 0 0 "remove pulseaudio-module-bluetooth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-qpaeq.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-qpaeq.sh new file mode 100644 index 0000000000000000000000000000000000000000..005807c163b8d27c348a6b57bcbf3b77363dc9cc --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio-qpaeq.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio-qpaeq | grep -v \.src | grep pulseaudio-qpaeq + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio-qpaeq" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio-qpaeq + CHECK_RESULT $? 0 0 "install pulseaudio-qpaeq failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio-qpaeq + CHECK_RESULT $? 0 0 "remove pulseaudio-qpaeq failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio.sh b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b779c70933c9113e1783251282f0c87a69c211e --- /dev/null +++ b/testcases/cli-test/pulseaudio/oe_test_pulseaudio_install_and_remove_pulseaudio.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pulseaudio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pulseaudio | grep -v \.src | grep pulseaudio + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pulseaudio" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pulseaudio + CHECK_RESULT $? 0 0 "install pulseaudio failed" + SLEEP_WAIT 1 + dnf remove -y pulseaudio + CHECK_RESULT $? 0 0 "remove pulseaudio failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyatspi/oe_test_pyatspi_install_and_remove_pyatspi.sh b/testcases/cli-test/pyatspi/oe_test_pyatspi_install_and_remove_pyatspi.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f0e2e372e8323dc2278b30b690d1cf82eb6ba42 --- /dev/null +++ b/testcases/cli-test/pyatspi/oe_test_pyatspi_install_and_remove_pyatspi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyatspi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pyatspi | grep -v \.src | grep pyatspi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pyatspi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pyatspi + CHECK_RESULT $? 0 0 "install pyatspi failed" + SLEEP_WAIT 1 + dnf remove -y pyatspi + CHECK_RESULT $? 0 0 "remove pyatspi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyatspi/oe_test_pyatspi_install_and_remove_python2-pyatspi.sh b/testcases/cli-test/pyatspi/oe_test_pyatspi_install_and_remove_python2-pyatspi.sh new file mode 100644 index 0000000000000000000000000000000000000000..54d37c3bfc0de3f89d670c0c18b59bcbe81acf71 --- /dev/null +++ b/testcases/cli-test/pyatspi/oe_test_pyatspi_install_and_remove_python2-pyatspi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyatspi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pyatspi | grep -v \.src | grep python2-pyatspi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pyatspi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pyatspi + CHECK_RESULT $? 0 0 "install python2-pyatspi failed" + SLEEP_WAIT 1 + dnf remove -y python2-pyatspi + CHECK_RESULT $? 0 0 "remove python2-pyatspi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyatspi/oe_test_pyatspi_install_and_remove_python3-pyatspi.sh b/testcases/cli-test/pyatspi/oe_test_pyatspi_install_and_remove_python3-pyatspi.sh new file mode 100644 index 0000000000000000000000000000000000000000..43c03e9e6694aba0bb546d8f3fc73282dfa36703 --- /dev/null +++ b/testcases/cli-test/pyatspi/oe_test_pyatspi_install_and_remove_python3-pyatspi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyatspi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pyatspi | grep -v \.src | grep python3-pyatspi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pyatspi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pyatspi + CHECK_RESULT $? 0 0 "install python3-pyatspi failed" + SLEEP_WAIT 1 + dnf remove -y python3-pyatspi + CHECK_RESULT $? 0 0 "remove python3-pyatspi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_pycairo-debuginfo.sh b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_pycairo-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..051fbd1f6ae267899fb09b26fa7e915044005dea --- /dev/null +++ b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_pycairo-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pycairo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pycairo-debuginfo | grep -v \.src | grep pycairo-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pycairo-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pycairo-debuginfo + CHECK_RESULT $? 0 0 "install pycairo-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pycairo-debuginfo + CHECK_RESULT $? 0 0 "remove pycairo-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_pycairo-debugsource.sh b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_pycairo-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..dabb91217a19ad3a080806550806ca78b21acc04 --- /dev/null +++ b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_pycairo-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pycairo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pycairo-debugsource | grep -v \.src | grep pycairo-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pycairo-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pycairo-debugsource + CHECK_RESULT $? 0 0 "install pycairo-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pycairo-debugsource + CHECK_RESULT $? 0 0 "remove pycairo-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_pycairo.sh b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_pycairo.sh new file mode 100644 index 0000000000000000000000000000000000000000..057eef6ca871a51c5ef23b5a798986a71aa774f0 --- /dev/null +++ b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_pycairo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pycairo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pycairo | grep -v \.src | grep pycairo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pycairo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pycairo + CHECK_RESULT $? 0 0 "install pycairo failed" + SLEEP_WAIT 1 + dnf remove -y pycairo + CHECK_RESULT $? 0 0 "remove pycairo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python2-cairo-devel.sh b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python2-cairo-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed8f35884f529e545fd4b5ce4a23598e97ca89fe --- /dev/null +++ b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python2-cairo-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pycairo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-cairo-devel | grep -v \.src | grep python2-cairo-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-cairo-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-cairo-devel + CHECK_RESULT $? 0 0 "install python2-cairo-devel failed" + SLEEP_WAIT 1 + dnf remove -y python2-cairo-devel + CHECK_RESULT $? 0 0 "remove python2-cairo-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python2-cairo.sh b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python2-cairo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f97fb07719eabf39e9366872bf6a199f0d450106 --- /dev/null +++ b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python2-cairo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pycairo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-cairo | grep -v \.src | grep python2-cairo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-cairo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-cairo + CHECK_RESULT $? 0 0 "install python2-cairo failed" + SLEEP_WAIT 1 + dnf remove -y python2-cairo + CHECK_RESULT $? 0 0 "remove python2-cairo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python3-cairo-devel.sh b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python3-cairo-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5cfde649fec4431ba502f5306c9680363bb276ec --- /dev/null +++ b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python3-cairo-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pycairo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-cairo-devel | grep -v \.src | grep python3-cairo-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-cairo-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-cairo-devel + CHECK_RESULT $? 0 0 "install python3-cairo-devel failed" + SLEEP_WAIT 1 + dnf remove -y python3-cairo-devel + CHECK_RESULT $? 0 0 "remove python3-cairo-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python3-cairo.sh b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python3-cairo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2aa31e72ceb72d36eeec4419c982bdbe42e4699 --- /dev/null +++ b/testcases/cli-test/pycairo/oe_test_pycairo_install_and_remove_python3-cairo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pycairo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-cairo | grep -v \.src | grep python3-cairo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-cairo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-cairo + CHECK_RESULT $? 0 0 "install python3-cairo failed" + SLEEP_WAIT 1 + dnf remove -y python3-cairo + CHECK_RESULT $? 0 0 "remove python3-cairo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-base.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..dff234e64c8d0a82c5eba39bae6b3f9608aa2935 --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pygobject3-base | grep -v \.src | grep pygobject3-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pygobject3-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pygobject3-base + CHECK_RESULT $? 0 0 "install pygobject3-base failed" + SLEEP_WAIT 1 + dnf remove -y pygobject3-base + CHECK_RESULT $? 0 0 "remove pygobject3-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-debuginfo.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3cbed5f0bc50ccc21704f971d67279616341186f --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pygobject3-debuginfo | grep -v \.src | grep pygobject3-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pygobject3-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pygobject3-debuginfo + CHECK_RESULT $? 0 0 "install pygobject3-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pygobject3-debuginfo + CHECK_RESULT $? 0 0 "remove pygobject3-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-debugsource.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4d8b9bbadab366c8f4cb0655cfd08b80068bde9 --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pygobject3-debugsource | grep -v \.src | grep pygobject3-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pygobject3-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pygobject3-debugsource + CHECK_RESULT $? 0 0 "install pygobject3-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pygobject3-debugsource + CHECK_RESULT $? 0 0 "remove pygobject3-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-devel.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ed0573e3ef24408562ff7d82458a3639af4292f --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pygobject3-devel | grep -v \.src | grep pygobject3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pygobject3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pygobject3-devel + CHECK_RESULT $? 0 0 "install pygobject3-devel failed" + SLEEP_WAIT 1 + dnf remove -y pygobject3-devel + CHECK_RESULT $? 0 0 "remove pygobject3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-doc.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a6183a53fd6afea405028b8cd4c2a23613dd589 --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pygobject3-doc | grep -v \.src | grep pygobject3-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pygobject3-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pygobject3-doc + CHECK_RESULT $? 0 0 "install pygobject3-doc failed" + SLEEP_WAIT 1 + dnf remove -y pygobject3-doc + CHECK_RESULT $? 0 0 "remove pygobject3-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a302a0539e729752fa0af0c41ffab5a7736d2f0 --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_pygobject3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pygobject3 | grep -v \.src | grep pygobject3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pygobject3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pygobject3 + CHECK_RESULT $? 0 0 "install pygobject3 failed" + SLEEP_WAIT 1 + dnf remove -y pygobject3 + CHECK_RESULT $? 0 0 "remove pygobject3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python-gobject-base.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python-gobject-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..70a2a405bed6860a814384e7c9dbe690053fd51e --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python-gobject-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-gobject-base | grep -v \.src | grep python-gobject-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-gobject-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-gobject-base + CHECK_RESULT $? 0 0 "install python-gobject-base failed" + SLEEP_WAIT 1 + dnf remove -y python-gobject-base + CHECK_RESULT $? 0 0 "remove python-gobject-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python-gobject.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python-gobject.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e1563e6feaf3ce19704227e3ce0c6198eef35eb --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python-gobject.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-gobject | grep -v \.src | grep python-gobject + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-gobject" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-gobject + CHECK_RESULT $? 0 0 "install python-gobject failed" + SLEEP_WAIT 1 + dnf remove -y python-gobject + CHECK_RESULT $? 0 0 "remove python-gobject failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python2-gobject-base.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python2-gobject-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..4208f3fe4dffeb81a82edcc5b101e8750f449f54 --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python2-gobject-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-gobject-base | grep -v \.src | grep python2-gobject-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-gobject-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-gobject-base + CHECK_RESULT $? 0 0 "install python2-gobject-base failed" + SLEEP_WAIT 1 + dnf remove -y python2-gobject-base + CHECK_RESULT $? 0 0 "remove python2-gobject-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python2-gobject.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python2-gobject.sh new file mode 100644 index 0000000000000000000000000000000000000000..13ad0a4ab6f2ca058dcd64cbe261ba3c243c203b --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python2-gobject.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-gobject | grep -v \.src | grep python2-gobject + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-gobject" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-gobject + CHECK_RESULT $? 0 0 "install python2-gobject failed" + SLEEP_WAIT 1 + dnf remove -y python2-gobject + CHECK_RESULT $? 0 0 "remove python2-gobject failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject-base-noarch.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject-base-noarch.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa6bf0a103530f6513c24a26580fc28803594049 --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject-base-noarch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-gobject-base-noarch | grep -v \.src | grep python3-gobject-base-noarch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-gobject-base-noarch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-gobject-base-noarch + CHECK_RESULT $? 0 0 "install python3-gobject-base-noarch failed" + SLEEP_WAIT 1 + dnf remove -y python3-gobject-base-noarch + CHECK_RESULT $? 0 0 "remove python3-gobject-base-noarch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject-base.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c26610667a4efa1f243912a4c7561f28bc05928 --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-gobject-base | grep -v \.src | grep python3-gobject-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-gobject-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-gobject-base + CHECK_RESULT $? 0 0 "install python3-gobject-base failed" + SLEEP_WAIT 1 + dnf remove -y python3-gobject-base + CHECK_RESULT $? 0 0 "remove python3-gobject-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject-devel.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ebd4ed683421aa5ac61a5101ccfca596ccc6636 --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-gobject-devel | grep -v \.src | grep python3-gobject-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-gobject-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-gobject-devel + CHECK_RESULT $? 0 0 "install python3-gobject-devel failed" + SLEEP_WAIT 1 + dnf remove -y python3-gobject-devel + CHECK_RESULT $? 0 0 "remove python3-gobject-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject.sh b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject.sh new file mode 100644 index 0000000000000000000000000000000000000000..29523712b1f80954e01fcaa7750fe20150e6611e --- /dev/null +++ b/testcases/cli-test/pygobject3/oe_test_pygobject3_install_and_remove_python3-gobject.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pygobject3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-gobject | grep -v \.src | grep python3-gobject + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-gobject" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-gobject + CHECK_RESULT $? 0 0 "install python3-gobject failed" + SLEEP_WAIT 1 + dnf remove -y python3-gobject + CHECK_RESULT $? 0 0 "remove python3-gobject failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_pykickstart-help.sh b/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_pykickstart-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fbae127ee3c087f74e98f3d9305da58f340fa9f --- /dev/null +++ b/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_pykickstart-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pykickstart +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pykickstart-help | grep -v \.src | grep pykickstart-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pykickstart-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pykickstart-help + CHECK_RESULT $? 0 0 "install pykickstart-help failed" + SLEEP_WAIT 1 + dnf remove -y pykickstart-help + CHECK_RESULT $? 0 0 "remove pykickstart-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_pykickstart.sh b/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_pykickstart.sh new file mode 100644 index 0000000000000000000000000000000000000000..973ceb52642cb10d0dba3eb2b071ab019ac3f390 --- /dev/null +++ b/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_pykickstart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pykickstart +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pykickstart | grep -v \.src | grep pykickstart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pykickstart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pykickstart + CHECK_RESULT $? 0 0 "install pykickstart failed" + SLEEP_WAIT 1 + dnf remove -y pykickstart + CHECK_RESULT $? 0 0 "remove pykickstart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_python-kickstart-help.sh b/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_python-kickstart-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdc2d5ba6a4802f37c46ed374d629d1fea750c05 --- /dev/null +++ b/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_python-kickstart-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pykickstart +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-kickstart-help | grep -v \.src | grep python-kickstart-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-kickstart-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-kickstart-help + CHECK_RESULT $? 0 0 "install python-kickstart-help failed" + SLEEP_WAIT 1 + dnf remove -y python-kickstart-help + CHECK_RESULT $? 0 0 "remove python-kickstart-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_python2-kickstart.sh b/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_python2-kickstart.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e692c995c0793ee7a378072ec5552535d162079 --- /dev/null +++ b/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_python2-kickstart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pykickstart +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-kickstart | grep -v \.src | grep python2-kickstart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-kickstart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-kickstart + CHECK_RESULT $? 0 0 "install python2-kickstart failed" + SLEEP_WAIT 1 + dnf remove -y python2-kickstart + CHECK_RESULT $? 0 0 "remove python2-kickstart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_python3-kickstart.sh b/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_python3-kickstart.sh new file mode 100644 index 0000000000000000000000000000000000000000..52705f5c1027d227108010298d2ea4eeac810270 --- /dev/null +++ b/testcases/cli-test/pykickstart/oe_test_pykickstart_install_and_remove_python3-kickstart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pykickstart +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-kickstart | grep -v \.src | grep python3-kickstart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-kickstart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-kickstart + CHECK_RESULT $? 0 0 "install python3-kickstart failed" + SLEEP_WAIT 1 + dnf remove -y python3-kickstart + CHECK_RESULT $? 0 0 "remove python3-kickstart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_pyparsing-help.sh b/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_pyparsing-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4f9a845ced7ecf146389f024b333fa5c074e716 --- /dev/null +++ b/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_pyparsing-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyparsing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pyparsing-help | grep -v \.src | grep pyparsing-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pyparsing-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pyparsing-help + CHECK_RESULT $? 0 0 "install pyparsing-help failed" + SLEEP_WAIT 1 + dnf remove -y pyparsing-help + CHECK_RESULT $? 0 0 "remove pyparsing-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_pyparsing.sh b/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_pyparsing.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b364ecb21d3f88723a9130ae32dfaa4a4033f7f --- /dev/null +++ b/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_pyparsing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyparsing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pyparsing | grep -v \.src | grep pyparsing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pyparsing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pyparsing + CHECK_RESULT $? 0 0 "install pyparsing failed" + SLEEP_WAIT 1 + dnf remove -y pyparsing + CHECK_RESULT $? 0 0 "remove pyparsing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_python2-pyparsing.sh b/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_python2-pyparsing.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bfc218b8cf5674b9aa5521bbd7167d0ab06d4ee --- /dev/null +++ b/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_python2-pyparsing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyparsing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pyparsing | grep -v \.src | grep python2-pyparsing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pyparsing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pyparsing + CHECK_RESULT $? 0 0 "install python2-pyparsing failed" + SLEEP_WAIT 1 + dnf remove -y python2-pyparsing + CHECK_RESULT $? 0 0 "remove python2-pyparsing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_python3-pyparsing.sh b/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_python3-pyparsing.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebcc690c5b9758ce332417b2713e23f7e900de8f --- /dev/null +++ b/testcases/cli-test/pyparsing/oe_test_pyparsing_install_and_remove_python3-pyparsing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyparsing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pyparsing | grep -v \.src | grep python3-pyparsing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pyparsing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pyparsing + CHECK_RESULT $? 0 0 "install python3-pyparsing failed" + SLEEP_WAIT 1 + dnf remove -y python3-pyparsing + CHECK_RESULT $? 0 0 "remove python3-pyparsing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_pyparted-debuginfo.sh b/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_pyparted-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..311e2303c448ba01c3c31ab5a90444636f1b2d2a --- /dev/null +++ b/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_pyparted-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyparted +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pyparted-debuginfo | grep -v \.src | grep pyparted-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pyparted-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pyparted-debuginfo + CHECK_RESULT $? 0 0 "install pyparted-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pyparted-debuginfo + CHECK_RESULT $? 0 0 "remove pyparted-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_pyparted-debugsource.sh b/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_pyparted-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c88a5b4d194cc8874f77b0d9bff065643429a54 --- /dev/null +++ b/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_pyparted-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyparted +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pyparted-debugsource | grep -v \.src | grep pyparted-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pyparted-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pyparted-debugsource + CHECK_RESULT $? 0 0 "install pyparted-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pyparted-debugsource + CHECK_RESULT $? 0 0 "remove pyparted-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_pyparted.sh b/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_pyparted.sh new file mode 100644 index 0000000000000000000000000000000000000000..1588fb16471508d599fb264d40d4a635edc81dd6 --- /dev/null +++ b/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_pyparted.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyparted +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pyparted | grep -v \.src | grep pyparted + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pyparted" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pyparted + CHECK_RESULT $? 0 0 "install pyparted failed" + SLEEP_WAIT 1 + dnf remove -y pyparted + CHECK_RESULT $? 0 0 "remove pyparted failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_python2-pyparted.sh b/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_python2-pyparted.sh new file mode 100644 index 0000000000000000000000000000000000000000..220b28422373b2d4257b67ca05a936c24e0eef6f --- /dev/null +++ b/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_python2-pyparted.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyparted +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pyparted | grep -v \.src | grep python2-pyparted + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pyparted" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pyparted + CHECK_RESULT $? 0 0 "install python2-pyparted failed" + SLEEP_WAIT 1 + dnf remove -y python2-pyparted + CHECK_RESULT $? 0 0 "remove python2-pyparted failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_python3-pyparted.sh b/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_python3-pyparted.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c8fa474a6e96be6ba8b4f05d026c527bd596718 --- /dev/null +++ b/testcases/cli-test/pyparted/oe_test_pyparted_install_and_remove_python3-pyparted.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyparted +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pyparted | grep -v \.src | grep python3-pyparted + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pyparted" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pyparted + CHECK_RESULT $? 0 0 "install python3-pyparted failed" + SLEEP_WAIT 1 + dnf remove -y python3-pyparted + CHECK_RESULT $? 0 0 "remove python3-pyparted failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-anytree/oe_test_python-anytree_install_and_remove_python-anytree.sh b/testcases/cli-test/python-anytree/oe_test_python-anytree_install_and_remove_python-anytree.sh new file mode 100644 index 0000000000000000000000000000000000000000..57abba398002885fe1c80e6dab52d00fc94c3510 --- /dev/null +++ b/testcases/cli-test/python-anytree/oe_test_python-anytree_install_and_remove_python-anytree.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-anytree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-anytree | grep -v \.src | grep python-anytree + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-anytree" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-anytree + CHECK_RESULT $? 0 0 "install python-anytree failed" + SLEEP_WAIT 1 + dnf remove -y python-anytree + CHECK_RESULT $? 0 0 "remove python-anytree failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-anytree/oe_test_python-anytree_install_and_remove_python3-anytree.sh b/testcases/cli-test/python-anytree/oe_test_python-anytree_install_and_remove_python3-anytree.sh new file mode 100644 index 0000000000000000000000000000000000000000..d687da0f83a68e29688c24bc50398e81edf1c386 --- /dev/null +++ b/testcases/cli-test/python-anytree/oe_test_python-anytree_install_and_remove_python3-anytree.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-anytree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-anytree | grep -v \.src | grep python3-anytree + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-anytree" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-anytree + CHECK_RESULT $? 0 0 "install python3-anytree failed" + SLEEP_WAIT 1 + dnf remove -y python3-anytree + CHECK_RESULT $? 0 0 "remove python3-anytree failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python%{python3_pkgversion}-asn1crypto.sh b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python%{python3_pkgversion}-asn1crypto.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab1d03fc7e4aabf2e21eb418c1bf4140dbb2498e --- /dev/null +++ b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python%{python3_pkgversion}-asn1crypto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-asn1crypto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python%{python3_pkgversion}-asn1crypto | grep -v \.src | grep python%{python3_pkgversion}-asn1crypto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python%{python3_pkgversion}-asn1crypto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python%{python3_pkgversion}-asn1crypto + CHECK_RESULT $? 0 0 "install python%{python3_pkgversion}-asn1crypto failed" + SLEEP_WAIT 1 + dnf remove -y python%{python3_pkgversion}-asn1crypto + CHECK_RESULT $? 0 0 "remove python%{python3_pkgversion}-asn1crypto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python-asn1crypto-help.sh b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python-asn1crypto-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..02a7ef4fe1615ac98cfab4beb72f706b50b3bb76 --- /dev/null +++ b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python-asn1crypto-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-asn1crypto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-asn1crypto-help | grep -v \.src | grep python-asn1crypto-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-asn1crypto-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-asn1crypto-help + CHECK_RESULT $? 0 0 "install python-asn1crypto-help failed" + SLEEP_WAIT 1 + dnf remove -y python-asn1crypto-help + CHECK_RESULT $? 0 0 "remove python-asn1crypto-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python-asn1crypto.sh b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python-asn1crypto.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f2855aa999da2a3aa086109311bedcaa19bde13 --- /dev/null +++ b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python-asn1crypto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-asn1crypto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-asn1crypto | grep -v \.src | grep python-asn1crypto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-asn1crypto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-asn1crypto + CHECK_RESULT $? 0 0 "install python-asn1crypto failed" + SLEEP_WAIT 1 + dnf remove -y python-asn1crypto + CHECK_RESULT $? 0 0 "remove python-asn1crypto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python2-asn1crypto.sh b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python2-asn1crypto.sh new file mode 100644 index 0000000000000000000000000000000000000000..50809ec28d835bed95a06aeebc695185e1ba7c7d --- /dev/null +++ b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python2-asn1crypto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-asn1crypto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-asn1crypto | grep -v \.src | grep python2-asn1crypto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-asn1crypto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-asn1crypto + CHECK_RESULT $? 0 0 "install python2-asn1crypto failed" + SLEEP_WAIT 1 + dnf remove -y python2-asn1crypto + CHECK_RESULT $? 0 0 "remove python2-asn1crypto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python3-asn1crypto-doc.sh b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python3-asn1crypto-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..78c777f38c3d0af171dec2ce9c4f29fe42d85b13 --- /dev/null +++ b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python3-asn1crypto-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-asn1crypto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-asn1crypto-doc | grep -v \.src | grep python3-asn1crypto-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-asn1crypto-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-asn1crypto-doc + CHECK_RESULT $? 0 0 "install python3-asn1crypto-doc failed" + SLEEP_WAIT 1 + dnf remove -y python3-asn1crypto-doc + CHECK_RESULT $? 0 0 "remove python3-asn1crypto-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python3-asn1crypto.sh b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python3-asn1crypto.sh new file mode 100644 index 0000000000000000000000000000000000000000..b69ac322769d9597d60de23bd0d3cfaa073ab06c --- /dev/null +++ b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python3-asn1crypto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-asn1crypto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-asn1crypto | grep -v \.src | grep python3-asn1crypto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-asn1crypto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-asn1crypto + CHECK_RESULT $? 0 0 "install python3-asn1crypto failed" + SLEEP_WAIT 1 + dnf remove -y python3-asn1crypto + CHECK_RESULT $? 0 0 "remove python3-asn1crypto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python38-asn1crypto.sh b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python38-asn1crypto.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4995ceb467a84e664ef3396ab91cb5a36619f50 --- /dev/null +++ b/testcases/cli-test/python-asn1crypto/oe_test_python-asn1crypto_install_and_remove_python38-asn1crypto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-asn1crypto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python38-asn1crypto | grep -v \.src | grep python38-asn1crypto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python38-asn1crypto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python38-asn1crypto + CHECK_RESULT $? 0 0 "install python38-asn1crypto failed" + SLEEP_WAIT 1 + dnf remove -y python38-asn1crypto + CHECK_RESULT $? 0 0 "remove python38-asn1crypto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_blivet-data.sh b/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_blivet-data.sh new file mode 100644 index 0000000000000000000000000000000000000000..6da16543fd4c075cf56e2dc03bec300f25aa032c --- /dev/null +++ b/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_blivet-data.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-blivet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available blivet-data | grep -v \.src | grep blivet-data + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm blivet-data" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y blivet-data + CHECK_RESULT $? 0 0 "install blivet-data failed" + SLEEP_WAIT 1 + dnf remove -y blivet-data + CHECK_RESULT $? 0 0 "remove blivet-data failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python-blivet-help.sh b/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python-blivet-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d901faffbd0bb2595aac114a529b61a0dff63c7 --- /dev/null +++ b/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python-blivet-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-blivet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-blivet-help | grep -v \.src | grep python-blivet-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-blivet-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-blivet-help + CHECK_RESULT $? 0 0 "install python-blivet-help failed" + SLEEP_WAIT 1 + dnf remove -y python-blivet-help + CHECK_RESULT $? 0 0 "remove python-blivet-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python-blivet.sh b/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python-blivet.sh new file mode 100644 index 0000000000000000000000000000000000000000..8276efb0b15709dbbc9e760f816a4f925c0be485 --- /dev/null +++ b/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python-blivet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-blivet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-blivet | grep -v \.src | grep python-blivet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-blivet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-blivet + CHECK_RESULT $? 0 0 "install python-blivet failed" + SLEEP_WAIT 1 + dnf remove -y python-blivet + CHECK_RESULT $? 0 0 "remove python-blivet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python2-blivet.sh b/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python2-blivet.sh new file mode 100644 index 0000000000000000000000000000000000000000..53215a822a2a00e358c6dcf2da20dd3d2ed8d60c --- /dev/null +++ b/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python2-blivet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-blivet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-blivet | grep -v \.src | grep python2-blivet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-blivet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-blivet + CHECK_RESULT $? 0 0 "install python2-blivet failed" + SLEEP_WAIT 1 + dnf remove -y python2-blivet + CHECK_RESULT $? 0 0 "remove python2-blivet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python3-blivet.sh b/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python3-blivet.sh new file mode 100644 index 0000000000000000000000000000000000000000..19998d8e6a04fe846377cb3c5161d5eb6bcc5909 --- /dev/null +++ b/testcases/cli-test/python-blivet/oe_test_python-blivet_install_and_remove_python3-blivet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-blivet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-blivet | grep -v \.src | grep python3-blivet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-blivet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-blivet + CHECK_RESULT $? 0 0 "install python3-blivet failed" + SLEEP_WAIT 1 + dnf remove -y python3-blivet + CHECK_RESULT $? 0 0 "remove python3-blivet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python-breathe-help.sh b/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python-breathe-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..873ba04b5c4981ce45aded83563743999845986d --- /dev/null +++ b/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python-breathe-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-breathe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-breathe-help | grep -v \.src | grep python-breathe-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-breathe-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-breathe-help + CHECK_RESULT $? 0 0 "install python-breathe-help failed" + SLEEP_WAIT 1 + dnf remove -y python-breathe-help + CHECK_RESULT $? 0 0 "remove python-breathe-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python-breathe.sh b/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python-breathe.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e3e9a0eaabc3341f29c1439213131bb786366b2 --- /dev/null +++ b/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python-breathe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-breathe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-breathe | grep -v \.src | grep python-breathe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-breathe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-breathe + CHECK_RESULT $? 0 0 "install python-breathe failed" + SLEEP_WAIT 1 + dnf remove -y python-breathe + CHECK_RESULT $? 0 0 "remove python-breathe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python2-breathe.sh b/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python2-breathe.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a4c2f6d6ce4c297cc46d447979798d36b18261a --- /dev/null +++ b/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python2-breathe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-breathe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-breathe | grep -v \.src | grep python2-breathe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-breathe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-breathe + CHECK_RESULT $? 0 0 "install python2-breathe failed" + SLEEP_WAIT 1 + dnf remove -y python2-breathe + CHECK_RESULT $? 0 0 "remove python2-breathe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python3-breathe.sh b/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python3-breathe.sh new file mode 100644 index 0000000000000000000000000000000000000000..291ac0c9505b00f96da827f9454305c644a3117e --- /dev/null +++ b/testcases/cli-test/python-breathe/oe_test_python-breathe_install_and_remove_python3-breathe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-breathe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-breathe | grep -v \.src | grep python3-breathe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-breathe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-breathe + CHECK_RESULT $? 0 0 "install python3-breathe failed" + SLEEP_WAIT 1 + dnf remove -y python3-breathe + CHECK_RESULT $? 0 0 "remove python3-breathe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi-debuginfo.sh b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..694904885981978d99134a745d023b8d98f0afc7 --- /dev/null +++ b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cffi-debuginfo | grep -v \.src | grep python-cffi-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cffi-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cffi-debuginfo + CHECK_RESULT $? 0 0 "install python-cffi-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python-cffi-debuginfo + CHECK_RESULT $? 0 0 "remove python-cffi-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi-debugsource.sh b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8883676cf24cd7988ed29b0d763646e5b0187a7c --- /dev/null +++ b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cffi-debugsource | grep -v \.src | grep python-cffi-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cffi-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cffi-debugsource + CHECK_RESULT $? 0 0 "install python-cffi-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y python-cffi-debugsource + CHECK_RESULT $? 0 0 "remove python-cffi-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi-help.sh b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..dce2177565acb8aae416fa3cb466d13265e8d3d8 --- /dev/null +++ b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cffi-help | grep -v \.src | grep python-cffi-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cffi-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cffi-help + CHECK_RESULT $? 0 0 "install python-cffi-help failed" + SLEEP_WAIT 1 + dnf remove -y python-cffi-help + CHECK_RESULT $? 0 0 "remove python-cffi-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi.sh b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi.sh new file mode 100644 index 0000000000000000000000000000000000000000..4571de528a91829d492a2efc89e092649cce3de8 --- /dev/null +++ b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python-cffi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cffi | grep -v \.src | grep python-cffi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cffi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cffi + CHECK_RESULT $? 0 0 "install python-cffi failed" + SLEEP_WAIT 1 + dnf remove -y python-cffi + CHECK_RESULT $? 0 0 "remove python-cffi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python2-cffi.sh b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python2-cffi.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bc0e660bf44c9d741860aa1637e90c0daae73d1 --- /dev/null +++ b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python2-cffi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-cffi | grep -v \.src | grep python2-cffi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-cffi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-cffi + CHECK_RESULT $? 0 0 "install python2-cffi failed" + SLEEP_WAIT 1 + dnf remove -y python2-cffi + CHECK_RESULT $? 0 0 "remove python2-cffi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python3-cffi.sh b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python3-cffi.sh new file mode 100644 index 0000000000000000000000000000000000000000..a42ebf04016e735edcd688da8183c5386e270d32 --- /dev/null +++ b/testcases/cli-test/python-cffi/oe_test_python-cffi_install_and_remove_python3-cffi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cffi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-cffi | grep -v \.src | grep python3-cffi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-cffi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-cffi + CHECK_RESULT $? 0 0 "install python3-cffi failed" + SLEEP_WAIT 1 + dnf remove -y python3-cffi + CHECK_RESULT $? 0 0 "remove python3-cffi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python-chardet-help.sh b/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python-chardet-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbca5ab97bfcc3ab8d33db1ed0415ec119d342c8 --- /dev/null +++ b/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python-chardet-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-chardet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-chardet-help | grep -v \.src | grep python-chardet-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-chardet-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-chardet-help + CHECK_RESULT $? 0 0 "install python-chardet-help failed" + SLEEP_WAIT 1 + dnf remove -y python-chardet-help + CHECK_RESULT $? 0 0 "remove python-chardet-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python-chardet.sh b/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python-chardet.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a7f577207723bd474760f24d4ae5051eb0f1ee0 --- /dev/null +++ b/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python-chardet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-chardet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-chardet | grep -v \.src | grep python-chardet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-chardet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-chardet + CHECK_RESULT $? 0 0 "install python-chardet failed" + SLEEP_WAIT 1 + dnf remove -y python-chardet + CHECK_RESULT $? 0 0 "remove python-chardet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python2-chardet.sh b/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python2-chardet.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c38edc5f0ef41234ced27f72b4a102ca5e3cfe8 --- /dev/null +++ b/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python2-chardet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-chardet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-chardet | grep -v \.src | grep python2-chardet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-chardet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-chardet + CHECK_RESULT $? 0 0 "install python2-chardet failed" + SLEEP_WAIT 1 + dnf remove -y python2-chardet + CHECK_RESULT $? 0 0 "remove python2-chardet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python3-chardet.sh b/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python3-chardet.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec29f0dc0f93bbfbb12f762d5b665bb62710a2e8 --- /dev/null +++ b/testcases/cli-test/python-chardet/oe_test_python-chardet_install_and_remove_python3-chardet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-chardet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-chardet | grep -v \.src | grep python3-chardet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-chardet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-chardet + CHECK_RESULT $? 0 0 "install python3-chardet failed" + SLEEP_WAIT 1 + dnf remove -y python3-chardet + CHECK_RESULT $? 0 0 "remove python3-chardet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-charset-normalizer/oe_test_python-charset-normalizer_install_and_remove_python-charset-normalizer.sh b/testcases/cli-test/python-charset-normalizer/oe_test_python-charset-normalizer_install_and_remove_python-charset-normalizer.sh new file mode 100644 index 0000000000000000000000000000000000000000..dae36fc6e6e0acf3be4721ed421588fd761376ca --- /dev/null +++ b/testcases/cli-test/python-charset-normalizer/oe_test_python-charset-normalizer_install_and_remove_python-charset-normalizer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-charset-normalizer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-charset-normalizer | grep -v \.src | grep python-charset-normalizer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-charset-normalizer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-charset-normalizer + CHECK_RESULT $? 0 0 "install python-charset-normalizer failed" + SLEEP_WAIT 1 + dnf remove -y python-charset-normalizer + CHECK_RESULT $? 0 0 "remove python-charset-normalizer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-charset-normalizer/oe_test_python-charset-normalizer_install_and_remove_python3-charset-normalizer.sh b/testcases/cli-test/python-charset-normalizer/oe_test_python-charset-normalizer_install_and_remove_python3-charset-normalizer.sh new file mode 100644 index 0000000000000000000000000000000000000000..39fdf0929da4c4ddd49aaad841365c28cf52521b --- /dev/null +++ b/testcases/cli-test/python-charset-normalizer/oe_test_python-charset-normalizer_install_and_remove_python3-charset-normalizer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-charset-normalizer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-charset-normalizer | grep -v \.src | grep python3-charset-normalizer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-charset-normalizer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-charset-normalizer + CHECK_RESULT $? 0 0 "install python3-charset-normalizer failed" + SLEEP_WAIT 1 + dnf remove -y python3-charset-normalizer + CHECK_RESULT $? 0 0 "remove python3-charset-normalizer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python-click-help.sh b/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python-click-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..faa9b5e2aa174b6a67006d8d947efea1d92070ce --- /dev/null +++ b/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python-click-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-click +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-click-help | grep -v \.src | grep python-click-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-click-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-click-help + CHECK_RESULT $? 0 0 "install python-click-help failed" + SLEEP_WAIT 1 + dnf remove -y python-click-help + CHECK_RESULT $? 0 0 "remove python-click-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python-click.sh b/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python-click.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d717f7b146f978c75646fe06aff3ccdf4b9aa46 --- /dev/null +++ b/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python-click.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-click +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-click | grep -v \.src | grep python-click + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-click" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-click + CHECK_RESULT $? 0 0 "install python-click failed" + SLEEP_WAIT 1 + dnf remove -y python-click + CHECK_RESULT $? 0 0 "remove python-click failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python2-click.sh b/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python2-click.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4468793b171fed24401a63be984186c3e37d9e6 --- /dev/null +++ b/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python2-click.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-click +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-click | grep -v \.src | grep python2-click + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-click" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-click + CHECK_RESULT $? 0 0 "install python2-click failed" + SLEEP_WAIT 1 + dnf remove -y python2-click + CHECK_RESULT $? 0 0 "remove python2-click failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python3-click.sh b/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python3-click.sh new file mode 100644 index 0000000000000000000000000000000000000000..416e68cb21a392c3fea125e8265d1efe8aec678a --- /dev/null +++ b/testcases/cli-test/python-click/oe_test_python-click_install_and_remove_python3-click.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-click +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-click | grep -v \.src | grep python3-click + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-click" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-click + CHECK_RESULT $? 0 0 "install python3-click failed" + SLEEP_WAIT 1 + dnf remove -y python3-click + CHECK_RESULT $? 0 0 "remove python3-click failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python-colorama-help.sh b/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python-colorama-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..abf8db4bcccfbd863da6b0ca7a06b366b0365263 --- /dev/null +++ b/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python-colorama-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-colorama +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-colorama-help | grep -v \.src | grep python-colorama-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-colorama-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-colorama-help + CHECK_RESULT $? 0 0 "install python-colorama-help failed" + SLEEP_WAIT 1 + dnf remove -y python-colorama-help + CHECK_RESULT $? 0 0 "remove python-colorama-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python-colorama.sh b/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python-colorama.sh new file mode 100644 index 0000000000000000000000000000000000000000..50bced10490a3ff9b5d832f05efc7769679bd27e --- /dev/null +++ b/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python-colorama.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-colorama +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-colorama | grep -v \.src | grep python-colorama + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-colorama" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-colorama + CHECK_RESULT $? 0 0 "install python-colorama failed" + SLEEP_WAIT 1 + dnf remove -y python-colorama + CHECK_RESULT $? 0 0 "remove python-colorama failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python2-colorama.sh b/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python2-colorama.sh new file mode 100644 index 0000000000000000000000000000000000000000..982d0864c5ae9aa90439a855b9564e3467cd3097 --- /dev/null +++ b/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python2-colorama.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-colorama +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-colorama | grep -v \.src | grep python2-colorama + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-colorama" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-colorama + CHECK_RESULT $? 0 0 "install python2-colorama failed" + SLEEP_WAIT 1 + dnf remove -y python2-colorama + CHECK_RESULT $? 0 0 "remove python2-colorama failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python3-colorama.sh b/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python3-colorama.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8a33d83ebb2637d00db8a8ac220d575af984c6b --- /dev/null +++ b/testcases/cli-test/python-colorama/oe_test_python-colorama_install_and_remove_python3-colorama.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-colorama +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-colorama | grep -v \.src | grep python3-colorama + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-colorama" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-colorama + CHECK_RESULT $? 0 0 "install python3-colorama failed" + SLEEP_WAIT 1 + dnf remove -y python3-colorama + CHECK_RESULT $? 0 0 "remove python3-colorama failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cov-core/oe_test_python-cov-core_install_and_remove_python-cov-core-help.sh b/testcases/cli-test/python-cov-core/oe_test_python-cov-core_install_and_remove_python-cov-core-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed46e2703d81b00c82e45a76e9f89170bbdfb135 --- /dev/null +++ b/testcases/cli-test/python-cov-core/oe_test_python-cov-core_install_and_remove_python-cov-core-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cov-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cov-core-help | grep -v \.src | grep python-cov-core-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cov-core-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cov-core-help + CHECK_RESULT $? 0 0 "install python-cov-core-help failed" + SLEEP_WAIT 1 + dnf remove -y python-cov-core-help + CHECK_RESULT $? 0 0 "remove python-cov-core-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cov-core/oe_test_python-cov-core_install_and_remove_python-cov-core.sh b/testcases/cli-test/python-cov-core/oe_test_python-cov-core_install_and_remove_python-cov-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b7782a3b96755afe073a961a4c0656eaa258fa1 --- /dev/null +++ b/testcases/cli-test/python-cov-core/oe_test_python-cov-core_install_and_remove_python-cov-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cov-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cov-core | grep -v \.src | grep python-cov-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cov-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cov-core + CHECK_RESULT $? 0 0 "install python-cov-core failed" + SLEEP_WAIT 1 + dnf remove -y python-cov-core + CHECK_RESULT $? 0 0 "remove python-cov-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cov-core/oe_test_python-cov-core_install_and_remove_python3-cov-core.sh b/testcases/cli-test/python-cov-core/oe_test_python-cov-core_install_and_remove_python3-cov-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1cab67fc2abd9643622b2183862b5e9d581a9a1 --- /dev/null +++ b/testcases/cli-test/python-cov-core/oe_test_python-cov-core_install_and_remove_python3-cov-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cov-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-cov-core | grep -v \.src | grep python3-cov-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-cov-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-cov-core + CHECK_RESULT $? 0 0 "install python3-cov-core failed" + SLEEP_WAIT 1 + dnf remove -y python3-cov-core + CHECK_RESULT $? 0 0 "remove python3-cov-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python-coverage-debuginfo.sh b/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python-coverage-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..73ca3a442c4425158d454434f91002ff766d9696 --- /dev/null +++ b/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python-coverage-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-coverage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-coverage-debuginfo | grep -v \.src | grep python-coverage-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-coverage-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-coverage-debuginfo + CHECK_RESULT $? 0 0 "install python-coverage-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python-coverage-debuginfo + CHECK_RESULT $? 0 0 "remove python-coverage-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python-coverage-debugsource.sh b/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python-coverage-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f27f81ba7d3327d1313d04595b374e669429e7bf --- /dev/null +++ b/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python-coverage-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-coverage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-coverage-debugsource | grep -v \.src | grep python-coverage-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-coverage-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-coverage-debugsource + CHECK_RESULT $? 0 0 "install python-coverage-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y python-coverage-debugsource + CHECK_RESULT $? 0 0 "remove python-coverage-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python-coverage.sh b/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python-coverage.sh new file mode 100644 index 0000000000000000000000000000000000000000..934b30f89db0295747582a75d84033d8b5e48400 --- /dev/null +++ b/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python-coverage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-coverage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-coverage | grep -v \.src | grep python-coverage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-coverage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-coverage + CHECK_RESULT $? 0 0 "install python-coverage failed" + SLEEP_WAIT 1 + dnf remove -y python-coverage + CHECK_RESULT $? 0 0 "remove python-coverage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python2-coverage.sh b/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python2-coverage.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea8b2c3dd793f2abf7ba6171790a9990a3b231c2 --- /dev/null +++ b/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python2-coverage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-coverage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-coverage | grep -v \.src | grep python2-coverage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-coverage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-coverage + CHECK_RESULT $? 0 0 "install python2-coverage failed" + SLEEP_WAIT 1 + dnf remove -y python2-coverage + CHECK_RESULT $? 0 0 "remove python2-coverage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python3-coverage.sh b/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python3-coverage.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd595da8bed17e7533feb04e49b23bd83f0d05de --- /dev/null +++ b/testcases/cli-test/python-coverage/oe_test_python-coverage_install_and_remove_python3-coverage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-coverage +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-coverage | grep -v \.src | grep python3-coverage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-coverage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-coverage + CHECK_RESULT $? 0 0 "install python3-coverage failed" + SLEEP_WAIT 1 + dnf remove -y python3-coverage + CHECK_RESULT $? 0 0 "remove python3-coverage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cryptography-vectors/oe_test_python-cryptography-vectors_install_and_remove_python-cryptography-vectors.sh b/testcases/cli-test/python-cryptography-vectors/oe_test_python-cryptography-vectors_install_and_remove_python-cryptography-vectors.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5fd757c108347a3109da54c3fed6840385d0c9f --- /dev/null +++ b/testcases/cli-test/python-cryptography-vectors/oe_test_python-cryptography-vectors_install_and_remove_python-cryptography-vectors.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cryptography-vectors +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cryptography-vectors | grep -v \.src | grep python-cryptography-vectors + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cryptography-vectors" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cryptography-vectors + CHECK_RESULT $? 0 0 "install python-cryptography-vectors failed" + SLEEP_WAIT 1 + dnf remove -y python-cryptography-vectors + CHECK_RESULT $? 0 0 "remove python-cryptography-vectors failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cryptography-vectors/oe_test_python-cryptography-vectors_install_and_remove_python2-cryptography-vectors.sh b/testcases/cli-test/python-cryptography-vectors/oe_test_python-cryptography-vectors_install_and_remove_python2-cryptography-vectors.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8afed8ffb80a9b277124d94643f656b08875744 --- /dev/null +++ b/testcases/cli-test/python-cryptography-vectors/oe_test_python-cryptography-vectors_install_and_remove_python2-cryptography-vectors.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cryptography-vectors +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-cryptography-vectors | grep -v \.src | grep python2-cryptography-vectors + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-cryptography-vectors" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-cryptography-vectors + CHECK_RESULT $? 0 0 "install python2-cryptography-vectors failed" + SLEEP_WAIT 1 + dnf remove -y python2-cryptography-vectors + CHECK_RESULT $? 0 0 "remove python2-cryptography-vectors failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cryptography-vectors/oe_test_python-cryptography-vectors_install_and_remove_python3-cryptography-vectors.sh b/testcases/cli-test/python-cryptography-vectors/oe_test_python-cryptography-vectors_install_and_remove_python3-cryptography-vectors.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6297f27eed6f7bbead182d56ecdbea40afb3479 --- /dev/null +++ b/testcases/cli-test/python-cryptography-vectors/oe_test_python-cryptography-vectors_install_and_remove_python3-cryptography-vectors.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cryptography-vectors +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-cryptography-vectors | grep -v \.src | grep python3-cryptography-vectors + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-cryptography-vectors" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-cryptography-vectors + CHECK_RESULT $? 0 0 "install python3-cryptography-vectors failed" + SLEEP_WAIT 1 + dnf remove -y python3-cryptography-vectors + CHECK_RESULT $? 0 0 "remove python3-cryptography-vectors failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python%{python3_pkgversion}-cryptography.sh b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python%{python3_pkgversion}-cryptography.sh new file mode 100644 index 0000000000000000000000000000000000000000..cca4364d29804c1c9dd3efc8dc2f42a0996374e5 --- /dev/null +++ b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python%{python3_pkgversion}-cryptography.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cryptography +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python%{python3_pkgversion}-cryptography | grep -v \.src | grep python%{python3_pkgversion}-cryptography + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python%{python3_pkgversion}-cryptography" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python%{python3_pkgversion}-cryptography + CHECK_RESULT $? 0 0 "install python%{python3_pkgversion}-cryptography failed" + SLEEP_WAIT 1 + dnf remove -y python%{python3_pkgversion}-cryptography + CHECK_RESULT $? 0 0 "remove python%{python3_pkgversion}-cryptography failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography-debuginfo.sh b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0da94c786d59d63425132df3343c57d2498ab3fd --- /dev/null +++ b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cryptography +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cryptography-debuginfo | grep -v \.src | grep python-cryptography-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cryptography-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cryptography-debuginfo + CHECK_RESULT $? 0 0 "install python-cryptography-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python-cryptography-debuginfo + CHECK_RESULT $? 0 0 "remove python-cryptography-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography-debugsource.sh b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..29c79e0d27aeb2bb4dd96ddc6e8691234388397a --- /dev/null +++ b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cryptography +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cryptography-debugsource | grep -v \.src | grep python-cryptography-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cryptography-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cryptography-debugsource + CHECK_RESULT $? 0 0 "install python-cryptography-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y python-cryptography-debugsource + CHECK_RESULT $? 0 0 "remove python-cryptography-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography-help.sh b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f67a10af237548d38f030c11afa11809e0965caf --- /dev/null +++ b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cryptography +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cryptography-help | grep -v \.src | grep python-cryptography-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cryptography-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cryptography-help + CHECK_RESULT $? 0 0 "install python-cryptography-help failed" + SLEEP_WAIT 1 + dnf remove -y python-cryptography-help + CHECK_RESULT $? 0 0 "remove python-cryptography-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography.sh b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2485707be56f8dfd89ebad35c7dcd726d2a4a1b --- /dev/null +++ b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python-cryptography.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cryptography +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cryptography | grep -v \.src | grep python-cryptography + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cryptography" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cryptography + CHECK_RESULT $? 0 0 "install python-cryptography failed" + SLEEP_WAIT 1 + dnf remove -y python-cryptography + CHECK_RESULT $? 0 0 "remove python-cryptography failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python2-cryptography.sh b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python2-cryptography.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf97dd9ac0fee77446688bd0a84f67e0ae274042 --- /dev/null +++ b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python2-cryptography.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cryptography +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-cryptography | grep -v \.src | grep python2-cryptography + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-cryptography" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-cryptography + CHECK_RESULT $? 0 0 "install python2-cryptography failed" + SLEEP_WAIT 1 + dnf remove -y python2-cryptography + CHECK_RESULT $? 0 0 "remove python2-cryptography failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python3-cryptography.sh b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python3-cryptography.sh new file mode 100644 index 0000000000000000000000000000000000000000..21b16d088f60282b32125319f91fd047914f4c4f --- /dev/null +++ b/testcases/cli-test/python-cryptography/oe_test_python-cryptography_install_and_remove_python3-cryptography.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cryptography +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-cryptography | grep -v \.src | grep python3-cryptography + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-cryptography" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-cryptography + CHECK_RESULT $? 0 0 "install python3-cryptography failed" + SLEEP_WAIT 1 + dnf remove -y python3-cryptography + CHECK_RESULT $? 0 0 "remove python3-cryptography failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups-debuginfo.sh b/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..84388120b602b280f973b9af873682ca6f5e7d46 --- /dev/null +++ b/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cups-debuginfo | grep -v \.src | grep python-cups-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cups-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cups-debuginfo + CHECK_RESULT $? 0 0 "install python-cups-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python-cups-debuginfo + CHECK_RESULT $? 0 0 "remove python-cups-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups-debugsource.sh b/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a739c8f6829143f6c2e477f5b927a811bb9c8788 --- /dev/null +++ b/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cups-debugsource | grep -v \.src | grep python-cups-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cups-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cups-debugsource + CHECK_RESULT $? 0 0 "install python-cups-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y python-cups-debugsource + CHECK_RESULT $? 0 0 "remove python-cups-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups-help.sh b/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9039d0765e06ca993be8969a9440c21670d335ee --- /dev/null +++ b/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cups-help | grep -v \.src | grep python-cups-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cups-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cups-help + CHECK_RESULT $? 0 0 "install python-cups-help failed" + SLEEP_WAIT 1 + dnf remove -y python-cups-help + CHECK_RESULT $? 0 0 "remove python-cups-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups.sh b/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups.sh new file mode 100644 index 0000000000000000000000000000000000000000..2623596f2da7ce4d21964406dcf93a02876c0439 --- /dev/null +++ b/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python-cups.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-cups | grep -v \.src | grep python-cups + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-cups" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-cups + CHECK_RESULT $? 0 0 "install python-cups failed" + SLEEP_WAIT 1 + dnf remove -y python-cups + CHECK_RESULT $? 0 0 "remove python-cups failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python3-cups.sh b/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python3-cups.sh new file mode 100644 index 0000000000000000000000000000000000000000..1dd23b0f111066d89499a20c6595734b6ea0d29e --- /dev/null +++ b/testcases/cli-test/python-cups/oe_test_python-cups_install_and_remove_python3-cups.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-cups +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-cups | grep -v \.src | grep python3-cups + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-cups" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-cups + CHECK_RESULT $? 0 0 "install python3-cups failed" + SLEEP_WAIT 1 + dnf remove -y python3-cups + CHECK_RESULT $? 0 0 "remove python3-cups failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-dasbus/oe_test_python-dasbus_install_and_remove_python-dasbus.sh b/testcases/cli-test/python-dasbus/oe_test_python-dasbus_install_and_remove_python-dasbus.sh new file mode 100644 index 0000000000000000000000000000000000000000..c956400e854911c175152dae2a000df54b45988a --- /dev/null +++ b/testcases/cli-test/python-dasbus/oe_test_python-dasbus_install_and_remove_python-dasbus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-dasbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-dasbus | grep -v \.src | grep python-dasbus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-dasbus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-dasbus + CHECK_RESULT $? 0 0 "install python-dasbus failed" + SLEEP_WAIT 1 + dnf remove -y python-dasbus + CHECK_RESULT $? 0 0 "remove python-dasbus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-dasbus/oe_test_python-dasbus_install_and_remove_python3-dasbus.sh b/testcases/cli-test/python-dasbus/oe_test_python-dasbus_install_and_remove_python3-dasbus.sh new file mode 100644 index 0000000000000000000000000000000000000000..39f38434ed45a1fc1f9db54d7750112443be2708 --- /dev/null +++ b/testcases/cli-test/python-dasbus/oe_test_python-dasbus_install_and_remove_python3-dasbus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-dasbus +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dasbus | grep -v \.src | grep python3-dasbus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dasbus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dasbus + CHECK_RESULT $? 0 0 "install python3-dasbus failed" + SLEEP_WAIT 1 + dnf remove -y python3-dasbus + CHECK_RESULT $? 0 0 "remove python3-dasbus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python-dateutil-help.sh b/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python-dateutil-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a794da72db9d294fefe940a82383d321186f763d --- /dev/null +++ b/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python-dateutil-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-dateutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-dateutil-help | grep -v \.src | grep python-dateutil-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-dateutil-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-dateutil-help + CHECK_RESULT $? 0 0 "install python-dateutil-help failed" + SLEEP_WAIT 1 + dnf remove -y python-dateutil-help + CHECK_RESULT $? 0 0 "remove python-dateutil-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python-dateutil.sh b/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python-dateutil.sh new file mode 100644 index 0000000000000000000000000000000000000000..e49b0a70a9579ad3f768b778285efd07ced293aa --- /dev/null +++ b/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python-dateutil.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-dateutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-dateutil | grep -v \.src | grep python-dateutil + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-dateutil" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-dateutil + CHECK_RESULT $? 0 0 "install python-dateutil failed" + SLEEP_WAIT 1 + dnf remove -y python-dateutil + CHECK_RESULT $? 0 0 "remove python-dateutil failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python2-dateutil.sh b/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python2-dateutil.sh new file mode 100644 index 0000000000000000000000000000000000000000..761d49397fdf4ebc9c6447b3da6aa7819bf84f63 --- /dev/null +++ b/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python2-dateutil.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-dateutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-dateutil | grep -v \.src | grep python2-dateutil + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-dateutil" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-dateutil + CHECK_RESULT $? 0 0 "install python2-dateutil failed" + SLEEP_WAIT 1 + dnf remove -y python2-dateutil + CHECK_RESULT $? 0 0 "remove python2-dateutil failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python3-dateutil.sh b/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python3-dateutil.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f9fd62434dba3e27dccc9230aebdf8e82505240 --- /dev/null +++ b/testcases/cli-test/python-dateutil/oe_test_python-dateutil_install_and_remove_python3-dateutil.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-dateutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dateutil | grep -v \.src | grep python3-dateutil + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dateutil" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dateutil + CHECK_RESULT $? 0 0 "install python3-dateutil failed" + SLEEP_WAIT 1 + dnf remove -y python3-dateutil + CHECK_RESULT $? 0 0 "remove python3-dateutil failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python-dns-help.sh b/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python-dns-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4ad976bc646235221f715397dc76e41f5c41d09 --- /dev/null +++ b/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python-dns-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-dns +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-dns-help | grep -v \.src | grep python-dns-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-dns-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-dns-help + CHECK_RESULT $? 0 0 "install python-dns-help failed" + SLEEP_WAIT 1 + dnf remove -y python-dns-help + CHECK_RESULT $? 0 0 "remove python-dns-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python-dns.sh b/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python-dns.sh new file mode 100644 index 0000000000000000000000000000000000000000..06edecc3f7ca14813366fcb9a1954fa0c2a84319 --- /dev/null +++ b/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python-dns.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-dns +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-dns | grep -v \.src | grep python-dns + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-dns" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-dns + CHECK_RESULT $? 0 0 "install python-dns failed" + SLEEP_WAIT 1 + dnf remove -y python-dns + CHECK_RESULT $? 0 0 "remove python-dns failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python2-dns.sh b/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python2-dns.sh new file mode 100644 index 0000000000000000000000000000000000000000..352c778e7173ef0ef2ee5c76cf72e0ce2a78a609 --- /dev/null +++ b/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python2-dns.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-dns +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-dns | grep -v \.src | grep python2-dns + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-dns" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-dns + CHECK_RESULT $? 0 0 "install python2-dns failed" + SLEEP_WAIT 1 + dnf remove -y python2-dns + CHECK_RESULT $? 0 0 "remove python2-dns failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python3-dns.sh b/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python3-dns.sh new file mode 100644 index 0000000000000000000000000000000000000000..39111e752f027854955607bea8ede338cb44ad2a --- /dev/null +++ b/testcases/cli-test/python-dns/oe_test_python-dns_install_and_remove_python3-dns.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-dns +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-dns | grep -v \.src | grep python3-dns + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-dns" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-dns + CHECK_RESULT $? 0 0 "install python3-dns failed" + SLEEP_WAIT 1 + dnf remove -y python3-dns + CHECK_RESULT $? 0 0 "remove python3-dns failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python-docutils-help.sh b/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python-docutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..de95fce7773f22b44c418562fdcc9ce75d03abcc --- /dev/null +++ b/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python-docutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-docutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-docutils-help | grep -v \.src | grep python-docutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-docutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-docutils-help + CHECK_RESULT $? 0 0 "install python-docutils-help failed" + SLEEP_WAIT 1 + dnf remove -y python-docutils-help + CHECK_RESULT $? 0 0 "remove python-docutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python-docutils.sh b/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python-docutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1cf61d093c1d2cd5ccca4eeb0df449059d397e6 --- /dev/null +++ b/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python-docutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-docutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-docutils | grep -v \.src | grep python-docutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-docutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-docutils + CHECK_RESULT $? 0 0 "install python-docutils failed" + SLEEP_WAIT 1 + dnf remove -y python-docutils + CHECK_RESULT $? 0 0 "remove python-docutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python2-docutils.sh b/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python2-docutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..14dbe38660836bb0a470fff3044f0e3dae8cedf6 --- /dev/null +++ b/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python2-docutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-docutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-docutils | grep -v \.src | grep python2-docutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-docutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-docutils + CHECK_RESULT $? 0 0 "install python2-docutils failed" + SLEEP_WAIT 1 + dnf remove -y python2-docutils + CHECK_RESULT $? 0 0 "remove python2-docutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python3-docutils.sh b/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python3-docutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..17bf40dd9d43e6642f7573daf47e2cc9c35052e1 --- /dev/null +++ b/testcases/cli-test/python-docutils/oe_test_python-docutils_install_and_remove_python3-docutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-docutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-docutils | grep -v \.src | grep python3-docutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-docutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-docutils + CHECK_RESULT $? 0 0 "install python3-docutils failed" + SLEEP_WAIT 1 + dnf remove -y python3-docutils + CHECK_RESULT $? 0 0 "remove python3-docutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-extras/oe_test_python-extras_install_and_remove_python-extras.sh b/testcases/cli-test/python-extras/oe_test_python-extras_install_and_remove_python-extras.sh new file mode 100644 index 0000000000000000000000000000000000000000..dad4addfad0010abf88c10ceb03656f9b35cb5f9 --- /dev/null +++ b/testcases/cli-test/python-extras/oe_test_python-extras_install_and_remove_python-extras.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-extras +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-extras | grep -v \.src | grep python-extras + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-extras" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-extras + CHECK_RESULT $? 0 0 "install python-extras failed" + SLEEP_WAIT 1 + dnf remove -y python-extras + CHECK_RESULT $? 0 0 "remove python-extras failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-extras/oe_test_python-extras_install_and_remove_python2-extras.sh b/testcases/cli-test/python-extras/oe_test_python-extras_install_and_remove_python2-extras.sh new file mode 100644 index 0000000000000000000000000000000000000000..cef4c5fcc646a7d262c6b2ed9ac1c4f5861a943b --- /dev/null +++ b/testcases/cli-test/python-extras/oe_test_python-extras_install_and_remove_python2-extras.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-extras +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-extras | grep -v \.src | grep python2-extras + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-extras" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-extras + CHECK_RESULT $? 0 0 "install python2-extras failed" + SLEEP_WAIT 1 + dnf remove -y python2-extras + CHECK_RESULT $? 0 0 "remove python2-extras failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-extras/oe_test_python-extras_install_and_remove_python3-extras.sh b/testcases/cli-test/python-extras/oe_test_python-extras_install_and_remove_python3-extras.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cb153b5fee4800fd299034a16f9376110ae7671 --- /dev/null +++ b/testcases/cli-test/python-extras/oe_test_python-extras_install_and_remove_python3-extras.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-extras +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-extras | grep -v \.src | grep python3-extras + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-extras" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-extras + CHECK_RESULT $? 0 0 "install python3-extras failed" + SLEEP_WAIT 1 + dnf remove -y python3-extras + CHECK_RESULT $? 0 0 "remove python3-extras failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-fixtures/oe_test_python-fixtures_install_and_remove_python-fixtures.sh b/testcases/cli-test/python-fixtures/oe_test_python-fixtures_install_and_remove_python-fixtures.sh new file mode 100644 index 0000000000000000000000000000000000000000..75ccbcd546a0c6af7a8fd229bbe72c627d97998b --- /dev/null +++ b/testcases/cli-test/python-fixtures/oe_test_python-fixtures_install_and_remove_python-fixtures.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-fixtures +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-fixtures | grep -v \.src | grep python-fixtures + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-fixtures" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-fixtures + CHECK_RESULT $? 0 0 "install python-fixtures failed" + SLEEP_WAIT 1 + dnf remove -y python-fixtures + CHECK_RESULT $? 0 0 "remove python-fixtures failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-fixtures/oe_test_python-fixtures_install_and_remove_python2-fixtures.sh b/testcases/cli-test/python-fixtures/oe_test_python-fixtures_install_and_remove_python2-fixtures.sh new file mode 100644 index 0000000000000000000000000000000000000000..78646ab33f170536f8a177676d0648ce8638a68d --- /dev/null +++ b/testcases/cli-test/python-fixtures/oe_test_python-fixtures_install_and_remove_python2-fixtures.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-fixtures +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-fixtures | grep -v \.src | grep python2-fixtures + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-fixtures" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-fixtures + CHECK_RESULT $? 0 0 "install python2-fixtures failed" + SLEEP_WAIT 1 + dnf remove -y python2-fixtures + CHECK_RESULT $? 0 0 "remove python2-fixtures failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-fixtures/oe_test_python-fixtures_install_and_remove_python3-fixtures.sh b/testcases/cli-test/python-fixtures/oe_test_python-fixtures_install_and_remove_python3-fixtures.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fa6ad5916f8508008e00a8ca2de71b5f88d77db --- /dev/null +++ b/testcases/cli-test/python-fixtures/oe_test_python-fixtures_install_and_remove_python3-fixtures.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-fixtures +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-fixtures | grep -v \.src | grep python3-fixtures + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-fixtures" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-fixtures + CHECK_RESULT $? 0 0 "install python3-fixtures failed" + SLEEP_WAIT 1 + dnf remove -y python3-fixtures + CHECK_RESULT $? 0 0 "remove python3-fixtures failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-flask/oe_test_python-flask_install_and_remove_python-flask.sh b/testcases/cli-test/python-flask/oe_test_python-flask_install_and_remove_python-flask.sh new file mode 100644 index 0000000000000000000000000000000000000000..241a73ecffc26c139dfdbc88894e9fd8cbdeca1d --- /dev/null +++ b/testcases/cli-test/python-flask/oe_test_python-flask_install_and_remove_python-flask.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-flask +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-flask | grep -v \.src | grep python-flask + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-flask" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-flask + CHECK_RESULT $? 0 0 "install python-flask failed" + SLEEP_WAIT 1 + dnf remove -y python-flask + CHECK_RESULT $? 0 0 "remove python-flask failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-flask/oe_test_python-flask_install_and_remove_python2-flask.sh b/testcases/cli-test/python-flask/oe_test_python-flask_install_and_remove_python2-flask.sh new file mode 100644 index 0000000000000000000000000000000000000000..04fb58ef283bd2f290f78684eb53ceb5af6a14a2 --- /dev/null +++ b/testcases/cli-test/python-flask/oe_test_python-flask_install_and_remove_python2-flask.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-flask +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-flask | grep -v \.src | grep python2-flask + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-flask" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-flask + CHECK_RESULT $? 0 0 "install python2-flask failed" + SLEEP_WAIT 1 + dnf remove -y python2-flask + CHECK_RESULT $? 0 0 "remove python2-flask failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-flask/oe_test_python-flask_install_and_remove_python3-flask.sh b/testcases/cli-test/python-flask/oe_test_python-flask_install_and_remove_python3-flask.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4bc88a6c2b6be1d67f8f6a26ee11cc7aca4c671 --- /dev/null +++ b/testcases/cli-test/python-flask/oe_test_python-flask_install_and_remove_python3-flask.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-flask +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-flask | grep -v \.src | grep python3-flask + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-flask" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-flask + CHECK_RESULT $? 0 0 "install python3-flask failed" + SLEEP_WAIT 1 + dnf remove -y python3-flask + CHECK_RESULT $? 0 0 "remove python3-flask failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python-freezegun-help.sh b/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python-freezegun-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e79368e6cfdf274cc19ef3966061fcbdd7e96c55 --- /dev/null +++ b/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python-freezegun-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-freezegun +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-freezegun-help | grep -v \.src | grep python-freezegun-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-freezegun-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-freezegun-help + CHECK_RESULT $? 0 0 "install python-freezegun-help failed" + SLEEP_WAIT 1 + dnf remove -y python-freezegun-help + CHECK_RESULT $? 0 0 "remove python-freezegun-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python-freezegun.sh b/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python-freezegun.sh new file mode 100644 index 0000000000000000000000000000000000000000..60c7e9be27143351787ea4f6e083a9ab7b2cd64f --- /dev/null +++ b/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python-freezegun.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-freezegun +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-freezegun | grep -v \.src | grep python-freezegun + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-freezegun" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-freezegun + CHECK_RESULT $? 0 0 "install python-freezegun failed" + SLEEP_WAIT 1 + dnf remove -y python-freezegun + CHECK_RESULT $? 0 0 "remove python-freezegun failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python2-freezegun.sh b/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python2-freezegun.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab015660162e0076ce1b599fd91a3beb3a632a76 --- /dev/null +++ b/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python2-freezegun.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-freezegun +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-freezegun | grep -v \.src | grep python2-freezegun + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-freezegun" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-freezegun + CHECK_RESULT $? 0 0 "install python2-freezegun failed" + SLEEP_WAIT 1 + dnf remove -y python2-freezegun + CHECK_RESULT $? 0 0 "remove python2-freezegun failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python3-freezegun.sh b/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python3-freezegun.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc69cc1592bd0ebe40836e3226c4779a2c9d4a37 --- /dev/null +++ b/testcases/cli-test/python-freezegun/oe_test_python-freezegun_install_and_remove_python3-freezegun.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-freezegun +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-freezegun | grep -v \.src | grep python3-freezegun + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-freezegun" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-freezegun + CHECK_RESULT $? 0 0 "install python3-freezegun failed" + SLEEP_WAIT 1 + dnf remove -y python3-freezegun + CHECK_RESULT $? 0 0 "remove python3-freezegun failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent-debuginfo.sh b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..886a2a21870a1a2d762f51a3f03fdde29f14317b --- /dev/null +++ b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-gevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-gevent-debuginfo | grep -v \.src | grep python-gevent-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-gevent-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-gevent-debuginfo + CHECK_RESULT $? 0 0 "install python-gevent-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python-gevent-debuginfo + CHECK_RESULT $? 0 0 "remove python-gevent-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent-debugsource.sh b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d082f3648e1c8192ea44cc69bba72386a358cc94 --- /dev/null +++ b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-gevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-gevent-debugsource | grep -v \.src | grep python-gevent-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-gevent-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-gevent-debugsource + CHECK_RESULT $? 0 0 "install python-gevent-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y python-gevent-debugsource + CHECK_RESULT $? 0 0 "remove python-gevent-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent-help.sh b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e455c0d0c7db18991a685b2aa87168baf231906 --- /dev/null +++ b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-gevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-gevent-help | grep -v \.src | grep python-gevent-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-gevent-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-gevent-help + CHECK_RESULT $? 0 0 "install python-gevent-help failed" + SLEEP_WAIT 1 + dnf remove -y python-gevent-help + CHECK_RESULT $? 0 0 "remove python-gevent-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent.sh b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent.sh new file mode 100644 index 0000000000000000000000000000000000000000..253fba0b2c729e67d2194a9c024ea9922c7b8b15 --- /dev/null +++ b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python-gevent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-gevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-gevent | grep -v \.src | grep python-gevent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-gevent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-gevent + CHECK_RESULT $? 0 0 "install python-gevent failed" + SLEEP_WAIT 1 + dnf remove -y python-gevent + CHECK_RESULT $? 0 0 "remove python-gevent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python2-gevent.sh b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python2-gevent.sh new file mode 100644 index 0000000000000000000000000000000000000000..779aa167e15ea091405d03743e26b2e02cde662b --- /dev/null +++ b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python2-gevent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-gevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-gevent | grep -v \.src | grep python2-gevent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-gevent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-gevent + CHECK_RESULT $? 0 0 "install python2-gevent failed" + SLEEP_WAIT 1 + dnf remove -y python2-gevent + CHECK_RESULT $? 0 0 "remove python2-gevent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python3-gevent.sh b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python3-gevent.sh new file mode 100644 index 0000000000000000000000000000000000000000..19e36885f696b58c42a3b9117b7bd46ce781ffed --- /dev/null +++ b/testcases/cli-test/python-gevent/oe_test_python-gevent_install_and_remove_python3-gevent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-gevent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-gevent | grep -v \.src | grep python3-gevent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-gevent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-gevent + CHECK_RESULT $? 0 0 "install python3-gevent failed" + SLEEP_WAIT 1 + dnf remove -y python3-gevent + CHECK_RESULT $? 0 0 "remove python3-gevent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python-greenlet-debuginfo.sh b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python-greenlet-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..729aac1d3e3a8965cfbc3b7c351aee7e8e5acca1 --- /dev/null +++ b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python-greenlet-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-greenlet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-greenlet-debuginfo | grep -v \.src | grep python-greenlet-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-greenlet-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-greenlet-debuginfo + CHECK_RESULT $? 0 0 "install python-greenlet-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python-greenlet-debuginfo + CHECK_RESULT $? 0 0 "remove python-greenlet-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python-greenlet-debugsource.sh b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python-greenlet-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f024dfd4d8c64f933b6bd094cf2dca05eb96cfe3 --- /dev/null +++ b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python-greenlet-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-greenlet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-greenlet-debugsource | grep -v \.src | grep python-greenlet-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-greenlet-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-greenlet-debugsource + CHECK_RESULT $? 0 0 "install python-greenlet-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y python-greenlet-debugsource + CHECK_RESULT $? 0 0 "remove python-greenlet-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python-greenlet.sh b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python-greenlet.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee7bf8f28c8c0311f030ec86de4c6fc263fd6a01 --- /dev/null +++ b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python-greenlet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-greenlet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-greenlet | grep -v \.src | grep python-greenlet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-greenlet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-greenlet + CHECK_RESULT $? 0 0 "install python-greenlet failed" + SLEEP_WAIT 1 + dnf remove -y python-greenlet + CHECK_RESULT $? 0 0 "remove python-greenlet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python2-greenlet-devel.sh b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python2-greenlet-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e1c16be4b3e3602f43a0cd90cd9db3d9ad5fde7 --- /dev/null +++ b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python2-greenlet-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-greenlet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-greenlet-devel | grep -v \.src | grep python2-greenlet-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-greenlet-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-greenlet-devel + CHECK_RESULT $? 0 0 "install python2-greenlet-devel failed" + SLEEP_WAIT 1 + dnf remove -y python2-greenlet-devel + CHECK_RESULT $? 0 0 "remove python2-greenlet-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python2-greenlet.sh b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python2-greenlet.sh new file mode 100644 index 0000000000000000000000000000000000000000..daa0815da6a53a46756963d17add721073e1c402 --- /dev/null +++ b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python2-greenlet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-greenlet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-greenlet | grep -v \.src | grep python2-greenlet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-greenlet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-greenlet + CHECK_RESULT $? 0 0 "install python2-greenlet failed" + SLEEP_WAIT 1 + dnf remove -y python2-greenlet + CHECK_RESULT $? 0 0 "remove python2-greenlet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python3-greenlet-devel.sh b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python3-greenlet-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..55b4d1aa7c13f0b2cc90502e44e7191bca32d29b --- /dev/null +++ b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python3-greenlet-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-greenlet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-greenlet-devel | grep -v \.src | grep python3-greenlet-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-greenlet-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-greenlet-devel + CHECK_RESULT $? 0 0 "install python3-greenlet-devel failed" + SLEEP_WAIT 1 + dnf remove -y python3-greenlet-devel + CHECK_RESULT $? 0 0 "remove python3-greenlet-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python3-greenlet.sh b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python3-greenlet.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e52d089081212ca05bd764cae894b6d4c5f5626 --- /dev/null +++ b/testcases/cli-test/python-greenlet/oe_test_python-greenlet_install_and_remove_python3-greenlet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-greenlet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-greenlet | grep -v \.src | grep python3-greenlet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-greenlet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-greenlet + CHECK_RESULT $? 0 0 "install python3-greenlet failed" + SLEEP_WAIT 1 + dnf remove -y python3-greenlet + CHECK_RESULT $? 0 0 "remove python3-greenlet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python-hypothesis-help.sh b/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python-hypothesis-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bb7f02cfba95ad5368b704746dc4856efa8a581 --- /dev/null +++ b/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python-hypothesis-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-hypothesis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-hypothesis-help | grep -v \.src | grep python-hypothesis-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-hypothesis-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-hypothesis-help + CHECK_RESULT $? 0 0 "install python-hypothesis-help failed" + SLEEP_WAIT 1 + dnf remove -y python-hypothesis-help + CHECK_RESULT $? 0 0 "remove python-hypothesis-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python-hypothesis.sh b/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python-hypothesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..da018e51e322f36d1cd185612e0ba0e95dc11dcc --- /dev/null +++ b/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python-hypothesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-hypothesis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-hypothesis | grep -v \.src | grep python-hypothesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-hypothesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-hypothesis + CHECK_RESULT $? 0 0 "install python-hypothesis failed" + SLEEP_WAIT 1 + dnf remove -y python-hypothesis + CHECK_RESULT $? 0 0 "remove python-hypothesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python2-hypothesis.sh b/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python2-hypothesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea0475798806d5b8ab2e78501ce556b986c95dbf --- /dev/null +++ b/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python2-hypothesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-hypothesis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-hypothesis | grep -v \.src | grep python2-hypothesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-hypothesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-hypothesis + CHECK_RESULT $? 0 0 "install python2-hypothesis failed" + SLEEP_WAIT 1 + dnf remove -y python2-hypothesis + CHECK_RESULT $? 0 0 "remove python2-hypothesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python3-hypothesis.sh b/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python3-hypothesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd3b8a399eb78fb0eeb17a59a6f9fb1ee3185a7c --- /dev/null +++ b/testcases/cli-test/python-hypothesis/oe_test_python-hypothesis_install_and_remove_python3-hypothesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-hypothesis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-hypothesis | grep -v \.src | grep python3-hypothesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-hypothesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-hypothesis + CHECK_RESULT $? 0 0 "install python3-hypothesis failed" + SLEEP_WAIT 1 + dnf remove -y python3-hypothesis + CHECK_RESULT $? 0 0 "remove python3-hypothesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python-idna-help.sh b/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python-idna-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..91fc55b556c480940fa5ad0427feeb16e49f926b --- /dev/null +++ b/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python-idna-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-idna +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-idna-help | grep -v \.src | grep python-idna-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-idna-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-idna-help + CHECK_RESULT $? 0 0 "install python-idna-help failed" + SLEEP_WAIT 1 + dnf remove -y python-idna-help + CHECK_RESULT $? 0 0 "remove python-idna-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python-idna.sh b/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python-idna.sh new file mode 100644 index 0000000000000000000000000000000000000000..3cf2ddabde8b9b9f9941a85d6c6e88d488182c8a --- /dev/null +++ b/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python-idna.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-idna +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-idna | grep -v \.src | grep python-idna + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-idna" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-idna + CHECK_RESULT $? 0 0 "install python-idna failed" + SLEEP_WAIT 1 + dnf remove -y python-idna + CHECK_RESULT $? 0 0 "remove python-idna failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python2-idna.sh b/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python2-idna.sh new file mode 100644 index 0000000000000000000000000000000000000000..c38993b357be1823202b83dbc9215a582d1234e2 --- /dev/null +++ b/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python2-idna.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-idna +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-idna | grep -v \.src | grep python2-idna + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-idna" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-idna + CHECK_RESULT $? 0 0 "install python2-idna failed" + SLEEP_WAIT 1 + dnf remove -y python2-idna + CHECK_RESULT $? 0 0 "remove python2-idna failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python3-idna.sh b/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python3-idna.sh new file mode 100644 index 0000000000000000000000000000000000000000..d30df5c631b8fc89aae9ed2ee91e851e93fd19c4 --- /dev/null +++ b/testcases/cli-test/python-idna/oe_test_python-idna_install_and_remove_python3-idna.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-idna +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-idna | grep -v \.src | grep python3-idna + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-idna" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-idna + CHECK_RESULT $? 0 0 "install python3-idna failed" + SLEEP_WAIT 1 + dnf remove -y python3-idna + CHECK_RESULT $? 0 0 "remove python3-idna failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python-importlib-metadata-help.sh b/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python-importlib-metadata-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d82ea77ac579608a347f882a063cf4ec7adee288 --- /dev/null +++ b/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python-importlib-metadata-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-importlib-metadata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-importlib-metadata-help | grep -v \.src | grep python-importlib-metadata-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-importlib-metadata-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-importlib-metadata-help + CHECK_RESULT $? 0 0 "install python-importlib-metadata-help failed" + SLEEP_WAIT 1 + dnf remove -y python-importlib-metadata-help + CHECK_RESULT $? 0 0 "remove python-importlib-metadata-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python-importlib-metadata.sh b/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python-importlib-metadata.sh new file mode 100644 index 0000000000000000000000000000000000000000..21fbea89e58be3d95957614b9c065822be1e36dd --- /dev/null +++ b/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python-importlib-metadata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-importlib-metadata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-importlib-metadata | grep -v \.src | grep python-importlib-metadata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-importlib-metadata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-importlib-metadata + CHECK_RESULT $? 0 0 "install python-importlib-metadata failed" + SLEEP_WAIT 1 + dnf remove -y python-importlib-metadata + CHECK_RESULT $? 0 0 "remove python-importlib-metadata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python3-importlib-metadata.sh b/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python3-importlib-metadata.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6fdd708594b23a4967ca5ba116d5fc341189a0e --- /dev/null +++ b/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python3-importlib-metadata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-importlib-metadata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-importlib-metadata | grep -v \.src | grep python3-importlib-metadata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-importlib-metadata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-importlib-metadata + CHECK_RESULT $? 0 0 "install python3-importlib-metadata failed" + SLEEP_WAIT 1 + dnf remove -y python3-importlib-metadata + CHECK_RESULT $? 0 0 "remove python3-importlib-metadata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python3-importlib_metadata.sh b/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python3-importlib_metadata.sh new file mode 100644 index 0000000000000000000000000000000000000000..55f1af5eeb330d947773b64d8d8ecc557cdfcc74 --- /dev/null +++ b/testcases/cli-test/python-importlib-metadata/oe_test_python-importlib-metadata_install_and_remove_python3-importlib_metadata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-importlib-metadata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-importlib_metadata | grep -v \.src | grep python3-importlib_metadata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-importlib_metadata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-importlib_metadata + CHECK_RESULT $? 0 0 "install python3-importlib_metadata failed" + SLEEP_WAIT 1 + dnf remove -y python3-importlib_metadata + CHECK_RESULT $? 0 0 "remove python3-importlib_metadata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-iso8601/oe_test_python-iso8601_install_and_remove_python-iso8601.sh b/testcases/cli-test/python-iso8601/oe_test_python-iso8601_install_and_remove_python-iso8601.sh new file mode 100644 index 0000000000000000000000000000000000000000..d489b8bf5f5eb2cf61dbc5e020399fd9e48dae83 --- /dev/null +++ b/testcases/cli-test/python-iso8601/oe_test_python-iso8601_install_and_remove_python-iso8601.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-iso8601 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-iso8601 | grep -v \.src | grep python-iso8601 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-iso8601" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-iso8601 + CHECK_RESULT $? 0 0 "install python-iso8601 failed" + SLEEP_WAIT 1 + dnf remove -y python-iso8601 + CHECK_RESULT $? 0 0 "remove python-iso8601 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-iso8601/oe_test_python-iso8601_install_and_remove_python2-iso8601.sh b/testcases/cli-test/python-iso8601/oe_test_python-iso8601_install_and_remove_python2-iso8601.sh new file mode 100644 index 0000000000000000000000000000000000000000..db978c110db37ebdf0afc327c0a14fe7789c67f9 --- /dev/null +++ b/testcases/cli-test/python-iso8601/oe_test_python-iso8601_install_and_remove_python2-iso8601.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-iso8601 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-iso8601 | grep -v \.src | grep python2-iso8601 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-iso8601" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-iso8601 + CHECK_RESULT $? 0 0 "install python2-iso8601 failed" + SLEEP_WAIT 1 + dnf remove -y python2-iso8601 + CHECK_RESULT $? 0 0 "remove python2-iso8601 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-iso8601/oe_test_python-iso8601_install_and_remove_python3-iso8601.sh b/testcases/cli-test/python-iso8601/oe_test_python-iso8601_install_and_remove_python3-iso8601.sh new file mode 100644 index 0000000000000000000000000000000000000000..5935eefadd525c394be684e91958170e85e99c76 --- /dev/null +++ b/testcases/cli-test/python-iso8601/oe_test_python-iso8601_install_and_remove_python3-iso8601.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-iso8601 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-iso8601 | grep -v \.src | grep python3-iso8601 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-iso8601" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-iso8601 + CHECK_RESULT $? 0 0 "install python3-iso8601 failed" + SLEEP_WAIT 1 + dnf remove -y python3-iso8601 + CHECK_RESULT $? 0 0 "remove python3-iso8601 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python-jinja2-help.sh b/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python-jinja2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..efd22697ac696654a334656a777425c29173d9aa --- /dev/null +++ b/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python-jinja2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-jinja2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-jinja2-help | grep -v \.src | grep python-jinja2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-jinja2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-jinja2-help + CHECK_RESULT $? 0 0 "install python-jinja2-help failed" + SLEEP_WAIT 1 + dnf remove -y python-jinja2-help + CHECK_RESULT $? 0 0 "remove python-jinja2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python-jinja2.sh b/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python-jinja2.sh new file mode 100644 index 0000000000000000000000000000000000000000..83c01195fc5e164a4920607e79a8f99b45fb8e48 --- /dev/null +++ b/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python-jinja2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-jinja2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-jinja2 | grep -v \.src | grep python-jinja2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-jinja2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-jinja2 + CHECK_RESULT $? 0 0 "install python-jinja2 failed" + SLEEP_WAIT 1 + dnf remove -y python-jinja2 + CHECK_RESULT $? 0 0 "remove python-jinja2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python2-jinja2.sh b/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python2-jinja2.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4df40fb3faad3762b1781a19dd5cc2a22f8aedd --- /dev/null +++ b/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python2-jinja2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-jinja2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-jinja2 | grep -v \.src | grep python2-jinja2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-jinja2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-jinja2 + CHECK_RESULT $? 0 0 "install python2-jinja2 failed" + SLEEP_WAIT 1 + dnf remove -y python2-jinja2 + CHECK_RESULT $? 0 0 "remove python2-jinja2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python3-jinja2.sh b/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python3-jinja2.sh new file mode 100644 index 0000000000000000000000000000000000000000..545537d1809f0934a9b07bc4b30ba7a9ecb16e60 --- /dev/null +++ b/testcases/cli-test/python-jinja2/oe_test_python-jinja2_install_and_remove_python3-jinja2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-jinja2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-jinja2 | grep -v \.src | grep python3-jinja2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-jinja2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-jinja2 + CHECK_RESULT $? 0 0 "install python3-jinja2 failed" + SLEEP_WAIT 1 + dnf remove -y python3-jinja2 + CHECK_RESULT $? 0 0 "remove python3-jinja2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml-debuginfo.sh b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fa1d550c31be96d41ef56130b71ee6744eac53a --- /dev/null +++ b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-lxml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-lxml-debuginfo | grep -v \.src | grep python-lxml-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-lxml-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-lxml-debuginfo + CHECK_RESULT $? 0 0 "install python-lxml-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python-lxml-debuginfo + CHECK_RESULT $? 0 0 "remove python-lxml-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml-debugsource.sh b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6b5f624851f2147984fea72049404c7cf17db16 --- /dev/null +++ b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-lxml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-lxml-debugsource | grep -v \.src | grep python-lxml-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-lxml-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-lxml-debugsource + CHECK_RESULT $? 0 0 "install python-lxml-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y python-lxml-debugsource + CHECK_RESULT $? 0 0 "remove python-lxml-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml-help.sh b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d0dd8a71798f40e54a7ddb8d41ce3cb739f5cf3 --- /dev/null +++ b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-lxml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-lxml-help | grep -v \.src | grep python-lxml-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-lxml-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-lxml-help + CHECK_RESULT $? 0 0 "install python-lxml-help failed" + SLEEP_WAIT 1 + dnf remove -y python-lxml-help + CHECK_RESULT $? 0 0 "remove python-lxml-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml.sh b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml.sh new file mode 100644 index 0000000000000000000000000000000000000000..36bc8f2b941c00d4992346f401857a76f67d2f97 --- /dev/null +++ b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python-lxml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-lxml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-lxml | grep -v \.src | grep python-lxml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-lxml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-lxml + CHECK_RESULT $? 0 0 "install python-lxml failed" + SLEEP_WAIT 1 + dnf remove -y python-lxml + CHECK_RESULT $? 0 0 "remove python-lxml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python2-lxml.sh b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python2-lxml.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bf25e5cd3529d738a580e24b4223191f780754a --- /dev/null +++ b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python2-lxml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-lxml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-lxml | grep -v \.src | grep python2-lxml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-lxml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-lxml + CHECK_RESULT $? 0 0 "install python2-lxml failed" + SLEEP_WAIT 1 + dnf remove -y python2-lxml + CHECK_RESULT $? 0 0 "remove python2-lxml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python3-lxml.sh b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python3-lxml.sh new file mode 100644 index 0000000000000000000000000000000000000000..531f57ed06ffaaffc8b439ee5fabdd899f9dc637 --- /dev/null +++ b/testcases/cli-test/python-lxml/oe_test_python-lxml_install_and_remove_python3-lxml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-lxml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-lxml | grep -v \.src | grep python3-lxml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-lxml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-lxml + CHECK_RESULT $? 0 0 "install python3-lxml failed" + SLEEP_WAIT 1 + dnf remove -y python3-lxml + CHECK_RESULT $? 0 0 "remove python3-lxml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python-mako-help.sh b/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python-mako-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bc8614b1279536fbadfbb7fffd088229fd3c069 --- /dev/null +++ b/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python-mako-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-mako +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-mako-help | grep -v \.src | grep python-mako-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-mako-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-mako-help + CHECK_RESULT $? 0 0 "install python-mako-help failed" + SLEEP_WAIT 1 + dnf remove -y python-mako-help + CHECK_RESULT $? 0 0 "remove python-mako-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python-mako.sh b/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python-mako.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3b97be0c4015e34eff1c2d858b046351f9354d7 --- /dev/null +++ b/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python-mako.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-mako +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-mako | grep -v \.src | grep python-mako + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-mako" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-mako + CHECK_RESULT $? 0 0 "install python-mako failed" + SLEEP_WAIT 1 + dnf remove -y python-mako + CHECK_RESULT $? 0 0 "remove python-mako failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python2-mako.sh b/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python2-mako.sh new file mode 100644 index 0000000000000000000000000000000000000000..02b55a99717ce61123a78e12a880523534d5350a --- /dev/null +++ b/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python2-mako.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-mako +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-mako | grep -v \.src | grep python2-mako + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-mako" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-mako + CHECK_RESULT $? 0 0 "install python2-mako failed" + SLEEP_WAIT 1 + dnf remove -y python2-mako + CHECK_RESULT $? 0 0 "remove python2-mako failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python3-mako.sh b/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python3-mako.sh new file mode 100644 index 0000000000000000000000000000000000000000..919853bb278796773f7c1d6995be597acf284006 --- /dev/null +++ b/testcases/cli-test/python-mako/oe_test_python-mako_install_and_remove_python3-mako.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-mako +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-mako | grep -v \.src | grep python3-mako + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-mako" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-mako + CHECK_RESULT $? 0 0 "install python3-mako failed" + SLEEP_WAIT 1 + dnf remove -y python3-mako + CHECK_RESULT $? 0 0 "remove python3-mako failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-markdown/oe_test_python-markdown_install_and_remove_python-markdown.sh b/testcases/cli-test/python-markdown/oe_test_python-markdown_install_and_remove_python-markdown.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ff65af3745aca43c07ff24633334d59f069dd41 --- /dev/null +++ b/testcases/cli-test/python-markdown/oe_test_python-markdown_install_and_remove_python-markdown.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-markdown +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-markdown | grep -v \.src | grep python-markdown + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-markdown" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-markdown + CHECK_RESULT $? 0 0 "install python-markdown failed" + SLEEP_WAIT 1 + dnf remove -y python-markdown + CHECK_RESULT $? 0 0 "remove python-markdown failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-markdown/oe_test_python-markdown_install_and_remove_python2-markdown.sh b/testcases/cli-test/python-markdown/oe_test_python-markdown_install_and_remove_python2-markdown.sh new file mode 100644 index 0000000000000000000000000000000000000000..46444231a3a2292ae520e3fff80e604f542cc976 --- /dev/null +++ b/testcases/cli-test/python-markdown/oe_test_python-markdown_install_and_remove_python2-markdown.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-markdown +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-markdown | grep -v \.src | grep python2-markdown + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-markdown" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-markdown + CHECK_RESULT $? 0 0 "install python2-markdown failed" + SLEEP_WAIT 1 + dnf remove -y python2-markdown + CHECK_RESULT $? 0 0 "remove python2-markdown failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-markdown/oe_test_python-markdown_install_and_remove_python3-markdown.sh b/testcases/cli-test/python-markdown/oe_test_python-markdown_install_and_remove_python3-markdown.sh new file mode 100644 index 0000000000000000000000000000000000000000..75022ccd638c9ca72e357a8843c3ff3ba568427a --- /dev/null +++ b/testcases/cli-test/python-markdown/oe_test_python-markdown_install_and_remove_python3-markdown.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-markdown +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-markdown | grep -v \.src | grep python3-markdown + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-markdown" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-markdown + CHECK_RESULT $? 0 0 "install python3-markdown failed" + SLEEP_WAIT 1 + dnf remove -y python3-markdown + CHECK_RESULT $? 0 0 "remove python3-markdown failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe-debuginfo.sh b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f306b72ca36ab43f5d9f546a6cfc5561e3c4ea5a --- /dev/null +++ b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-markupsafe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-markupsafe-debuginfo | grep -v \.src | grep python-markupsafe-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-markupsafe-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-markupsafe-debuginfo + CHECK_RESULT $? 0 0 "install python-markupsafe-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python-markupsafe-debuginfo + CHECK_RESULT $? 0 0 "remove python-markupsafe-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe-debugsource.sh b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a30e193a39ecfff5877aa6c4566989f9ac0491aa --- /dev/null +++ b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-markupsafe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-markupsafe-debugsource | grep -v \.src | grep python-markupsafe-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-markupsafe-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-markupsafe-debugsource + CHECK_RESULT $? 0 0 "install python-markupsafe-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y python-markupsafe-debugsource + CHECK_RESULT $? 0 0 "remove python-markupsafe-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe-help.sh b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b42702f666dc1a1678aab9e967caf984932627e --- /dev/null +++ b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-markupsafe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-markupsafe-help | grep -v \.src | grep python-markupsafe-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-markupsafe-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-markupsafe-help + CHECK_RESULT $? 0 0 "install python-markupsafe-help failed" + SLEEP_WAIT 1 + dnf remove -y python-markupsafe-help + CHECK_RESULT $? 0 0 "remove python-markupsafe-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe.sh b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8224a9acccd0dc3db000bb05b763950fae33758 --- /dev/null +++ b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python-markupsafe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-markupsafe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-markupsafe | grep -v \.src | grep python-markupsafe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-markupsafe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-markupsafe + CHECK_RESULT $? 0 0 "install python-markupsafe failed" + SLEEP_WAIT 1 + dnf remove -y python-markupsafe + CHECK_RESULT $? 0 0 "remove python-markupsafe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python2-markupsafe.sh b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python2-markupsafe.sh new file mode 100644 index 0000000000000000000000000000000000000000..84a5eaf077f3d5b54bd0a41ef06f1ed6295d5626 --- /dev/null +++ b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python2-markupsafe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-markupsafe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-markupsafe | grep -v \.src | grep python2-markupsafe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-markupsafe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-markupsafe + CHECK_RESULT $? 0 0 "install python2-markupsafe failed" + SLEEP_WAIT 1 + dnf remove -y python2-markupsafe + CHECK_RESULT $? 0 0 "remove python2-markupsafe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python3-markupsafe.sh b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python3-markupsafe.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ae4ad59f93fd7b4e90721a7f30c25acaee7117c --- /dev/null +++ b/testcases/cli-test/python-markupsafe/oe_test_python-markupsafe_install_and_remove_python3-markupsafe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-markupsafe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-markupsafe | grep -v \.src | grep python3-markupsafe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-markupsafe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-markupsafe + CHECK_RESULT $? 0 0 "install python3-markupsafe failed" + SLEEP_WAIT 1 + dnf remove -y python3-markupsafe + CHECK_RESULT $? 0 0 "remove python3-markupsafe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-meh/oe_test_python-meh_install_and_remove_python-meh.sh b/testcases/cli-test/python-meh/oe_test_python-meh_install_and_remove_python-meh.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e480dc0bb9431f16a2dd1f841c7c5ca9b992e8c --- /dev/null +++ b/testcases/cli-test/python-meh/oe_test_python-meh_install_and_remove_python-meh.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-meh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-meh | grep -v \.src | grep python-meh + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-meh" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-meh + CHECK_RESULT $? 0 0 "install python-meh failed" + SLEEP_WAIT 1 + dnf remove -y python-meh + CHECK_RESULT $? 0 0 "remove python-meh failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-meh/oe_test_python-meh_install_and_remove_python3-meh.sh b/testcases/cli-test/python-meh/oe_test_python-meh_install_and_remove_python3-meh.sh new file mode 100644 index 0000000000000000000000000000000000000000..2617fd99c14244dbfffa76430345e1f39fe2ec9c --- /dev/null +++ b/testcases/cli-test/python-meh/oe_test_python-meh_install_and_remove_python3-meh.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-meh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-meh | grep -v \.src | grep python3-meh + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-meh" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-meh + CHECK_RESULT $? 0 0 "install python3-meh failed" + SLEEP_WAIT 1 + dnf remove -y python3-meh + CHECK_RESULT $? 0 0 "remove python3-meh failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python%{python3_pkgversion}-nose2.sh b/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python%{python3_pkgversion}-nose2.sh new file mode 100644 index 0000000000000000000000000000000000000000..453239a93c03bdf8388cefa680d26735e0819c85 --- /dev/null +++ b/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python%{python3_pkgversion}-nose2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-nose2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python%{python3_pkgversion}-nose2 | grep -v \.src | grep python%{python3_pkgversion}-nose2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python%{python3_pkgversion}-nose2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python%{python3_pkgversion}-nose2 + CHECK_RESULT $? 0 0 "install python%{python3_pkgversion}-nose2 failed" + SLEEP_WAIT 1 + dnf remove -y python%{python3_pkgversion}-nose2 + CHECK_RESULT $? 0 0 "remove python%{python3_pkgversion}-nose2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python-nose2-help.sh b/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python-nose2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..29f43cebdad5c1f6f9fca72aa90a888aa95d0296 --- /dev/null +++ b/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python-nose2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-nose2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-nose2-help | grep -v \.src | grep python-nose2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-nose2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-nose2-help + CHECK_RESULT $? 0 0 "install python-nose2-help failed" + SLEEP_WAIT 1 + dnf remove -y python-nose2-help + CHECK_RESULT $? 0 0 "remove python-nose2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python-nose2.sh b/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python-nose2.sh new file mode 100644 index 0000000000000000000000000000000000000000..d193f5c6affae2ffd457b328343864ad5ec19742 --- /dev/null +++ b/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python-nose2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-nose2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-nose2 | grep -v \.src | grep python-nose2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-nose2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-nose2 + CHECK_RESULT $? 0 0 "install python-nose2 failed" + SLEEP_WAIT 1 + dnf remove -y python-nose2 + CHECK_RESULT $? 0 0 "remove python-nose2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python3-nose2.sh b/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python3-nose2.sh new file mode 100644 index 0000000000000000000000000000000000000000..8289c1d28700b87c3747c07fa3916795fc06495f --- /dev/null +++ b/testcases/cli-test/python-nose2/oe_test_python-nose2_install_and_remove_python3-nose2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-nose2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-nose2 | grep -v \.src | grep python3-nose2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-nose2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-nose2 + CHECK_RESULT $? 0 0 "install python3-nose2 failed" + SLEEP_WAIT 1 + dnf remove -y python3-nose2 + CHECK_RESULT $? 0 0 "remove python3-nose2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-ordered-set/oe_test_python-ordered-set_install_and_remove_python-ordered-set.sh b/testcases/cli-test/python-ordered-set/oe_test_python-ordered-set_install_and_remove_python-ordered-set.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb75ba4499e9acae62b38949306b46ee50d15d1c --- /dev/null +++ b/testcases/cli-test/python-ordered-set/oe_test_python-ordered-set_install_and_remove_python-ordered-set.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-ordered-set +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-ordered-set | grep -v \.src | grep python-ordered-set + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-ordered-set" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-ordered-set + CHECK_RESULT $? 0 0 "install python-ordered-set failed" + SLEEP_WAIT 1 + dnf remove -y python-ordered-set + CHECK_RESULT $? 0 0 "remove python-ordered-set failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-ordered-set/oe_test_python-ordered-set_install_and_remove_python2-ordered-set.sh b/testcases/cli-test/python-ordered-set/oe_test_python-ordered-set_install_and_remove_python2-ordered-set.sh new file mode 100644 index 0000000000000000000000000000000000000000..36bbc5e97676c94d843627637bd2f0d557927fc3 --- /dev/null +++ b/testcases/cli-test/python-ordered-set/oe_test_python-ordered-set_install_and_remove_python2-ordered-set.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-ordered-set +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-ordered-set | grep -v \.src | grep python2-ordered-set + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-ordered-set" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-ordered-set + CHECK_RESULT $? 0 0 "install python2-ordered-set failed" + SLEEP_WAIT 1 + dnf remove -y python2-ordered-set + CHECK_RESULT $? 0 0 "remove python2-ordered-set failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-ordered-set/oe_test_python-ordered-set_install_and_remove_python3-ordered-set.sh b/testcases/cli-test/python-ordered-set/oe_test_python-ordered-set_install_and_remove_python3-ordered-set.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca9f5b74b2335361585af2b123a087efe7ea340c --- /dev/null +++ b/testcases/cli-test/python-ordered-set/oe_test_python-ordered-set_install_and_remove_python3-ordered-set.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-ordered-set +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-ordered-set | grep -v \.src | grep python3-ordered-set + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-ordered-set" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-ordered-set + CHECK_RESULT $? 0 0 "install python3-ordered-set failed" + SLEEP_WAIT 1 + dnf remove -y python3-ordered-set + CHECK_RESULT $? 0 0 "remove python3-ordered-set failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python-packaging-doc.sh b/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python-packaging-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e4ac9a436b891de4f7a44f258e6714fce9a70fd --- /dev/null +++ b/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python-packaging-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-packaging +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-packaging-doc | grep -v \.src | grep python-packaging-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-packaging-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-packaging-doc + CHECK_RESULT $? 0 0 "install python-packaging-doc failed" + SLEEP_WAIT 1 + dnf remove -y python-packaging-doc + CHECK_RESULT $? 0 0 "remove python-packaging-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python-packaging-help.sh b/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python-packaging-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8928bc5be0f193bbf69f71b150766c28794799e --- /dev/null +++ b/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python-packaging-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-packaging +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-packaging-help | grep -v \.src | grep python-packaging-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-packaging-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-packaging-help + CHECK_RESULT $? 0 0 "install python-packaging-help failed" + SLEEP_WAIT 1 + dnf remove -y python-packaging-help + CHECK_RESULT $? 0 0 "remove python-packaging-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python-packaging.sh b/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python-packaging.sh new file mode 100644 index 0000000000000000000000000000000000000000..f508b1d396ee7d24fe680a19e99f915d9f1c42a1 --- /dev/null +++ b/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python-packaging.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-packaging +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-packaging | grep -v \.src | grep python-packaging + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-packaging" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-packaging + CHECK_RESULT $? 0 0 "install python-packaging failed" + SLEEP_WAIT 1 + dnf remove -y python-packaging + CHECK_RESULT $? 0 0 "remove python-packaging failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python2-packaging.sh b/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python2-packaging.sh new file mode 100644 index 0000000000000000000000000000000000000000..024bc343d2ff2163a610084ebc22966aaf46dcc5 --- /dev/null +++ b/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python2-packaging.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-packaging +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-packaging | grep -v \.src | grep python2-packaging + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-packaging" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-packaging + CHECK_RESULT $? 0 0 "install python2-packaging failed" + SLEEP_WAIT 1 + dnf remove -y python2-packaging + CHECK_RESULT $? 0 0 "remove python2-packaging failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python3-packaging.sh b/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python3-packaging.sh new file mode 100644 index 0000000000000000000000000000000000000000..a093ceab9e56d06dba5314423a565cd7379e5d4b --- /dev/null +++ b/testcases/cli-test/python-packaging/oe_test_python-packaging_install_and_remove_python3-packaging.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-packaging +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-packaging | grep -v \.src | grep python3-packaging + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-packaging" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-packaging + CHECK_RESULT $? 0 0 "install python3-packaging failed" + SLEEP_WAIT 1 + dnf remove -y python3-packaging + CHECK_RESULT $? 0 0 "remove python3-packaging failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-parameterized/oe_test_python-parameterized_install_and_remove_python-parameterized.sh b/testcases/cli-test/python-parameterized/oe_test_python-parameterized_install_and_remove_python-parameterized.sh new file mode 100644 index 0000000000000000000000000000000000000000..78ace6b216490c7197270022e7bd066f05510c37 --- /dev/null +++ b/testcases/cli-test/python-parameterized/oe_test_python-parameterized_install_and_remove_python-parameterized.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-parameterized +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-parameterized | grep -v \.src | grep python-parameterized + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-parameterized" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-parameterized + CHECK_RESULT $? 0 0 "install python-parameterized failed" + SLEEP_WAIT 1 + dnf remove -y python-parameterized + CHECK_RESULT $? 0 0 "remove python-parameterized failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-parameterized/oe_test_python-parameterized_install_and_remove_python3-parameterized.sh b/testcases/cli-test/python-parameterized/oe_test_python-parameterized_install_and_remove_python3-parameterized.sh new file mode 100644 index 0000000000000000000000000000000000000000..179006204601d9c19e8374e1d25404c1e46c0184 --- /dev/null +++ b/testcases/cli-test/python-parameterized/oe_test_python-parameterized_install_and_remove_python3-parameterized.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-parameterized +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-parameterized | grep -v \.src | grep python3-parameterized + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-parameterized" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-parameterized + CHECK_RESULT $? 0 0 "install python3-parameterized failed" + SLEEP_WAIT 1 + dnf remove -y python3-parameterized + CHECK_RESULT $? 0 0 "remove python3-parameterized failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pid/oe_test_python-pid_install_and_remove_python-pid.sh b/testcases/cli-test/python-pid/oe_test_python-pid_install_and_remove_python-pid.sh new file mode 100644 index 0000000000000000000000000000000000000000..4196bc201770e8e14751939bf6b2cc2df1e1df31 --- /dev/null +++ b/testcases/cli-test/python-pid/oe_test_python-pid_install_and_remove_python-pid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pid +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pid | grep -v \.src | grep python-pid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pid + CHECK_RESULT $? 0 0 "install python-pid failed" + SLEEP_WAIT 1 + dnf remove -y python-pid + CHECK_RESULT $? 0 0 "remove python-pid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pid/oe_test_python-pid_install_and_remove_python2-pid.sh b/testcases/cli-test/python-pid/oe_test_python-pid_install_and_remove_python2-pid.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a5ffafa5e8dfc19242df41e4a4af2bd6670a850 --- /dev/null +++ b/testcases/cli-test/python-pid/oe_test_python-pid_install_and_remove_python2-pid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pid +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pid | grep -v \.src | grep python2-pid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pid + CHECK_RESULT $? 0 0 "install python2-pid failed" + SLEEP_WAIT 1 + dnf remove -y python2-pid + CHECK_RESULT $? 0 0 "remove python2-pid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pid/oe_test_python-pid_install_and_remove_python3-pid.sh b/testcases/cli-test/python-pid/oe_test_python-pid_install_and_remove_python3-pid.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1faa00641772dc613c3432df764b33ccebba1da --- /dev/null +++ b/testcases/cli-test/python-pid/oe_test_python-pid_install_and_remove_python3-pid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pid +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pid | grep -v \.src | grep python3-pid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pid + CHECK_RESULT $? 0 0 "install python3-pid failed" + SLEEP_WAIT 1 + dnf remove -y python3-pid + CHECK_RESULT $? 0 0 "remove python3-pid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python%{python3_pkgversion}-pip.sh b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python%{python3_pkgversion}-pip.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb676a79d9ffae848609863685771fe242e10676 --- /dev/null +++ b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python%{python3_pkgversion}-pip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python%{python3_pkgversion}-pip | grep -v \.src | grep python%{python3_pkgversion}-pip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python%{python3_pkgversion}-pip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python%{python3_pkgversion}-pip + CHECK_RESULT $? 0 0 "install python%{python3_pkgversion}-pip failed" + SLEEP_WAIT 1 + dnf remove -y python%{python3_pkgversion}-pip + CHECK_RESULT $? 0 0 "remove python%{python3_pkgversion}-pip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python-pip-help.sh b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python-pip-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..685d9f2e38ae835995ed2f657754ec2699433b5e --- /dev/null +++ b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python-pip-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pip-help | grep -v \.src | grep python-pip-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pip-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pip-help + CHECK_RESULT $? 0 0 "install python-pip-help failed" + SLEEP_WAIT 1 + dnf remove -y python-pip-help + CHECK_RESULT $? 0 0 "remove python-pip-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python-pip-wheel.sh b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python-pip-wheel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4483f2bcc8836249979876b17eacb0904d7fb825 --- /dev/null +++ b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python-pip-wheel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pip-wheel | grep -v \.src | grep python-pip-wheel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pip-wheel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pip-wheel + CHECK_RESULT $? 0 0 "install python-pip-wheel failed" + SLEEP_WAIT 1 + dnf remove -y python-pip-wheel + CHECK_RESULT $? 0 0 "remove python-pip-wheel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python-pip.sh b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python-pip.sh new file mode 100644 index 0000000000000000000000000000000000000000..86c8f9b4d38b9357dcb1d471f57e438cde1e21a3 --- /dev/null +++ b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python-pip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pip | grep -v \.src | grep python-pip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pip + CHECK_RESULT $? 0 0 "install python-pip failed" + SLEEP_WAIT 1 + dnf remove -y python-pip + CHECK_RESULT $? 0 0 "remove python-pip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python2-pip.sh b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python2-pip.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d4279009f8352a8b5a10ce1916c9e59567bc3ad --- /dev/null +++ b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python2-pip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pip | grep -v \.src | grep python2-pip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pip + CHECK_RESULT $? 0 0 "install python2-pip failed" + SLEEP_WAIT 1 + dnf remove -y python2-pip + CHECK_RESULT $? 0 0 "remove python2-pip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python3-pip.sh b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python3-pip.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b184aacb908ecdcc2910089aced6046ac4eacfe --- /dev/null +++ b/testcases/cli-test/python-pip/oe_test_python-pip_install_and_remove_python3-pip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pip | grep -v \.src | grep python3-pip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pip + CHECK_RESULT $? 0 0 "install python3-pip failed" + SLEEP_WAIT 1 + dnf remove -y python3-pip + CHECK_RESULT $? 0 0 "remove python3-pip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-productmd/oe_test_python-productmd_install_and_remove_python-productmd.sh b/testcases/cli-test/python-productmd/oe_test_python-productmd_install_and_remove_python-productmd.sh new file mode 100644 index 0000000000000000000000000000000000000000..800303936cc23c3e42cc2e7e0b672d06730520c3 --- /dev/null +++ b/testcases/cli-test/python-productmd/oe_test_python-productmd_install_and_remove_python-productmd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-productmd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-productmd | grep -v \.src | grep python-productmd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-productmd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-productmd + CHECK_RESULT $? 0 0 "install python-productmd failed" + SLEEP_WAIT 1 + dnf remove -y python-productmd + CHECK_RESULT $? 0 0 "remove python-productmd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-productmd/oe_test_python-productmd_install_and_remove_python2-productmd.sh b/testcases/cli-test/python-productmd/oe_test_python-productmd_install_and_remove_python2-productmd.sh new file mode 100644 index 0000000000000000000000000000000000000000..97b2537561f6291b68b51898e17b44583921c64a --- /dev/null +++ b/testcases/cli-test/python-productmd/oe_test_python-productmd_install_and_remove_python2-productmd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-productmd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-productmd | grep -v \.src | grep python2-productmd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-productmd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-productmd + CHECK_RESULT $? 0 0 "install python2-productmd failed" + SLEEP_WAIT 1 + dnf remove -y python2-productmd + CHECK_RESULT $? 0 0 "remove python2-productmd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-productmd/oe_test_python-productmd_install_and_remove_python3-productmd.sh b/testcases/cli-test/python-productmd/oe_test_python-productmd_install_and_remove_python3-productmd.sh new file mode 100644 index 0000000000000000000000000000000000000000..e44c5a22e6ad8809c2fdc8f9d381e44be076f4df --- /dev/null +++ b/testcases/cli-test/python-productmd/oe_test_python-productmd_install_and_remove_python3-productmd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-productmd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-productmd | grep -v \.src | grep python3-productmd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-productmd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-productmd + CHECK_RESULT $? 0 0 "install python3-productmd failed" + SLEEP_WAIT 1 + dnf remove -y python3-productmd + CHECK_RESULT $? 0 0 "remove python3-productmd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python-pyasn1-help.sh b/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python-pyasn1-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..58100e67566871195c4cac02dc2964da4fecb36d --- /dev/null +++ b/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python-pyasn1-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pyasn1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pyasn1-help | grep -v \.src | grep python-pyasn1-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pyasn1-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pyasn1-help + CHECK_RESULT $? 0 0 "install python-pyasn1-help failed" + SLEEP_WAIT 1 + dnf remove -y python-pyasn1-help + CHECK_RESULT $? 0 0 "remove python-pyasn1-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python-pyasn1.sh b/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python-pyasn1.sh new file mode 100644 index 0000000000000000000000000000000000000000..5707e18ef9bd399d15373acdaa1797945b1feb3b --- /dev/null +++ b/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python-pyasn1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pyasn1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pyasn1 | grep -v \.src | grep python-pyasn1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pyasn1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pyasn1 + CHECK_RESULT $? 0 0 "install python-pyasn1 failed" + SLEEP_WAIT 1 + dnf remove -y python-pyasn1 + CHECK_RESULT $? 0 0 "remove python-pyasn1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python2-pyasn1.sh b/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python2-pyasn1.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cc98b4ca55d58c15c46a634929a12ffbade9915 --- /dev/null +++ b/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python2-pyasn1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pyasn1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pyasn1 | grep -v \.src | grep python2-pyasn1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pyasn1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pyasn1 + CHECK_RESULT $? 0 0 "install python2-pyasn1 failed" + SLEEP_WAIT 1 + dnf remove -y python2-pyasn1 + CHECK_RESULT $? 0 0 "remove python2-pyasn1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python3-pyasn1.sh b/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python3-pyasn1.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c26ca974f4cd21592057099cf39aee00c46062b --- /dev/null +++ b/testcases/cli-test/python-pyasn1/oe_test_python-pyasn1_install_and_remove_python3-pyasn1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pyasn1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pyasn1 | grep -v \.src | grep python3-pyasn1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pyasn1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pyasn1 + CHECK_RESULT $? 0 0 "install python3-pyasn1 failed" + SLEEP_WAIT 1 + dnf remove -y python3-pyasn1 + CHECK_RESULT $? 0 0 "remove python3-pyasn1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python-pycparser-devel.sh b/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python-pycparser-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc6cf996dbe2aee3767873caafc546a6ffc7df22 --- /dev/null +++ b/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python-pycparser-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pycparser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pycparser-devel | grep -v \.src | grep python-pycparser-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pycparser-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pycparser-devel + CHECK_RESULT $? 0 0 "install python-pycparser-devel failed" + SLEEP_WAIT 1 + dnf remove -y python-pycparser-devel + CHECK_RESULT $? 0 0 "remove python-pycparser-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python-pycparser.sh b/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python-pycparser.sh new file mode 100644 index 0000000000000000000000000000000000000000..a47c1a6776275b55f60c6c8eae2fe02fd9e151e9 --- /dev/null +++ b/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python-pycparser.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pycparser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pycparser | grep -v \.src | grep python-pycparser + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pycparser" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pycparser + CHECK_RESULT $? 0 0 "install python-pycparser failed" + SLEEP_WAIT 1 + dnf remove -y python-pycparser + CHECK_RESULT $? 0 0 "remove python-pycparser failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python2-pycparser.sh b/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python2-pycparser.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2421758155d8ced0493dadd272ac16cd8e3d467 --- /dev/null +++ b/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python2-pycparser.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pycparser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pycparser | grep -v \.src | grep python2-pycparser + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pycparser" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pycparser + CHECK_RESULT $? 0 0 "install python2-pycparser failed" + SLEEP_WAIT 1 + dnf remove -y python2-pycparser + CHECK_RESULT $? 0 0 "remove python2-pycparser failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python3-pycparser.sh b/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python3-pycparser.sh new file mode 100644 index 0000000000000000000000000000000000000000..1756ee71ca44b180b6b57f967f4fc60ac15bab78 --- /dev/null +++ b/testcases/cli-test/python-pycparser/oe_test_python-pycparser_install_and_remove_python3-pycparser.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pycparser +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pycparser | grep -v \.src | grep python3-pycparser + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pycparser" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pycparser + CHECK_RESULT $? 0 0 "install python3-pycparser failed" + SLEEP_WAIT 1 + dnf remove -y python3-pycparser + CHECK_RESULT $? 0 0 "remove python3-pycparser failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python-pysocks-help.sh b/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python-pysocks-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..af5a0bf7ea9bf31ebd7a71e04bdfd95c51a56239 --- /dev/null +++ b/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python-pysocks-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pysocks +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pysocks-help | grep -v \.src | grep python-pysocks-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pysocks-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pysocks-help + CHECK_RESULT $? 0 0 "install python-pysocks-help failed" + SLEEP_WAIT 1 + dnf remove -y python-pysocks-help + CHECK_RESULT $? 0 0 "remove python-pysocks-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python-pysocks.sh b/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python-pysocks.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fe54d5b807a364303250c0592810dcef4ca5543 --- /dev/null +++ b/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python-pysocks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pysocks +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pysocks | grep -v \.src | grep python-pysocks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pysocks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pysocks + CHECK_RESULT $? 0 0 "install python-pysocks failed" + SLEEP_WAIT 1 + dnf remove -y python-pysocks + CHECK_RESULT $? 0 0 "remove python-pysocks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python2-pysocks.sh b/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python2-pysocks.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b434776a6efbd4874ff974c633f0e606c4140d1 --- /dev/null +++ b/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python2-pysocks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pysocks +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pysocks | grep -v \.src | grep python2-pysocks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pysocks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pysocks + CHECK_RESULT $? 0 0 "install python2-pysocks failed" + SLEEP_WAIT 1 + dnf remove -y python2-pysocks + CHECK_RESULT $? 0 0 "remove python2-pysocks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python3-pysocks.sh b/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python3-pysocks.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac9e3302b24bca88abdf1c2c075e033880379a36 --- /dev/null +++ b/testcases/cli-test/python-pysocks/oe_test_python-pysocks_install_and_remove_python3-pysocks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pysocks +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pysocks | grep -v \.src | grep python3-pysocks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pysocks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pysocks + CHECK_RESULT $? 0 0 "install python3-pysocks failed" + SLEEP_WAIT 1 + dnf remove -y python3-pysocks + CHECK_RESULT $? 0 0 "remove python3-pysocks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pytest-subtests/oe_test_python-pytest-subtests_install_and_remove_python-pytest-subtests-help.sh b/testcases/cli-test/python-pytest-subtests/oe_test_python-pytest-subtests_install_and_remove_python-pytest-subtests-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d92194bb1403a64d5d44c2d61b603d6f4efda915 --- /dev/null +++ b/testcases/cli-test/python-pytest-subtests/oe_test_python-pytest-subtests_install_and_remove_python-pytest-subtests-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pytest-subtests +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pytest-subtests-help | grep -v \.src | grep python-pytest-subtests-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pytest-subtests-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pytest-subtests-help + CHECK_RESULT $? 0 0 "install python-pytest-subtests-help failed" + SLEEP_WAIT 1 + dnf remove -y python-pytest-subtests-help + CHECK_RESULT $? 0 0 "remove python-pytest-subtests-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pytest-subtests/oe_test_python-pytest-subtests_install_and_remove_python-pytest-subtests.sh b/testcases/cli-test/python-pytest-subtests/oe_test_python-pytest-subtests_install_and_remove_python-pytest-subtests.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe02c9dd8c5782887fb5a5cc15fd715ba6de935b --- /dev/null +++ b/testcases/cli-test/python-pytest-subtests/oe_test_python-pytest-subtests_install_and_remove_python-pytest-subtests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pytest-subtests +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pytest-subtests | grep -v \.src | grep python-pytest-subtests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pytest-subtests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pytest-subtests + CHECK_RESULT $? 0 0 "install python-pytest-subtests failed" + SLEEP_WAIT 1 + dnf remove -y python-pytest-subtests + CHECK_RESULT $? 0 0 "remove python-pytest-subtests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pytest-subtests/oe_test_python-pytest-subtests_install_and_remove_python3-pytest-subtests.sh b/testcases/cli-test/python-pytest-subtests/oe_test_python-pytest-subtests_install_and_remove_python3-pytest-subtests.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb61994aca4fb709d850eb0a2e8130e3b5368ca0 --- /dev/null +++ b/testcases/cli-test/python-pytest-subtests/oe_test_python-pytest-subtests_install_and_remove_python3-pytest-subtests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pytest-subtests +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pytest-subtests | grep -v \.src | grep python3-pytest-subtests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pytest-subtests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pytest-subtests + CHECK_RESULT $? 0 0 "install python3-pytest-subtests failed" + SLEEP_WAIT 1 + dnf remove -y python3-pytest-subtests + CHECK_RESULT $? 0 0 "remove python3-pytest-subtests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pytest-timeout/oe_test_python-pytest-timeout_install_and_remove_python-pytest-timeout-help.sh b/testcases/cli-test/python-pytest-timeout/oe_test_python-pytest-timeout_install_and_remove_python-pytest-timeout-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..324c065905d73a9198f18cd52f88d03588902ed4 --- /dev/null +++ b/testcases/cli-test/python-pytest-timeout/oe_test_python-pytest-timeout_install_and_remove_python-pytest-timeout-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pytest-timeout +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pytest-timeout-help | grep -v \.src | grep python-pytest-timeout-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pytest-timeout-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pytest-timeout-help + CHECK_RESULT $? 0 0 "install python-pytest-timeout-help failed" + SLEEP_WAIT 1 + dnf remove -y python-pytest-timeout-help + CHECK_RESULT $? 0 0 "remove python-pytest-timeout-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pytest-timeout/oe_test_python-pytest-timeout_install_and_remove_python-pytest-timeout.sh b/testcases/cli-test/python-pytest-timeout/oe_test_python-pytest-timeout_install_and_remove_python-pytest-timeout.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcdd3ad2b5f742a66b29e733f2e476abec6eba38 --- /dev/null +++ b/testcases/cli-test/python-pytest-timeout/oe_test_python-pytest-timeout_install_and_remove_python-pytest-timeout.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pytest-timeout +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pytest-timeout | grep -v \.src | grep python-pytest-timeout + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pytest-timeout" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pytest-timeout + CHECK_RESULT $? 0 0 "install python-pytest-timeout failed" + SLEEP_WAIT 1 + dnf remove -y python-pytest-timeout + CHECK_RESULT $? 0 0 "remove python-pytest-timeout failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pytest-timeout/oe_test_python-pytest-timeout_install_and_remove_python3-pytest-timeout.sh b/testcases/cli-test/python-pytest-timeout/oe_test_python-pytest-timeout_install_and_remove_python3-pytest-timeout.sh new file mode 100644 index 0000000000000000000000000000000000000000..99b22d4dbe6fb9104240d8c5d44cfc29aabc2065 --- /dev/null +++ b/testcases/cli-test/python-pytest-timeout/oe_test_python-pytest-timeout_install_and_remove_python3-pytest-timeout.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pytest-timeout +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pytest-timeout | grep -v \.src | grep python3-pytest-timeout + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pytest-timeout" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pytest-timeout + CHECK_RESULT $? 0 0 "install python3-pytest-timeout failed" + SLEEP_WAIT 1 + dnf remove -y python3-pytest-timeout + CHECK_RESULT $? 0 0 "remove python3-pytest-timeout failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python-pytoml-help.sh b/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python-pytoml-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ca203e18658f8bc2fa0b150da6dffd6927430ed --- /dev/null +++ b/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python-pytoml-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pytoml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pytoml-help | grep -v \.src | grep python-pytoml-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pytoml-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pytoml-help + CHECK_RESULT $? 0 0 "install python-pytoml-help failed" + SLEEP_WAIT 1 + dnf remove -y python-pytoml-help + CHECK_RESULT $? 0 0 "remove python-pytoml-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python-pytoml.sh b/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python-pytoml.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b7d06d2b1b7d384abefdc03cbd3d01e191213f3 --- /dev/null +++ b/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python-pytoml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pytoml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pytoml | grep -v \.src | grep python-pytoml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pytoml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pytoml + CHECK_RESULT $? 0 0 "install python-pytoml failed" + SLEEP_WAIT 1 + dnf remove -y python-pytoml + CHECK_RESULT $? 0 0 "remove python-pytoml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python2-pytoml.sh b/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python2-pytoml.sh new file mode 100644 index 0000000000000000000000000000000000000000..2458b06077a726e9c3792cadd9249198f57d3389 --- /dev/null +++ b/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python2-pytoml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pytoml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pytoml | grep -v \.src | grep python2-pytoml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pytoml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pytoml + CHECK_RESULT $? 0 0 "install python2-pytoml failed" + SLEEP_WAIT 1 + dnf remove -y python2-pytoml + CHECK_RESULT $? 0 0 "remove python2-pytoml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python3-pytoml.sh b/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python3-pytoml.sh new file mode 100644 index 0000000000000000000000000000000000000000..5906dddcaa25e2d77a2e444a85ff5fa66798f281 --- /dev/null +++ b/testcases/cli-test/python-pytoml/oe_test_python-pytoml_install_and_remove_python3-pytoml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pytoml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pytoml | grep -v \.src | grep python3-pytoml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pytoml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pytoml + CHECK_RESULT $? 0 0 "install python3-pytoml failed" + SLEEP_WAIT 1 + dnf remove -y python3-pytoml + CHECK_RESULT $? 0 0 "remove python3-pytoml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python-pyudev-help.sh b/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python-pyudev-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0561921d8265f94042752f08bfcee7ef95b0e27 --- /dev/null +++ b/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python-pyudev-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pyudev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pyudev-help | grep -v \.src | grep python-pyudev-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pyudev-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pyudev-help + CHECK_RESULT $? 0 0 "install python-pyudev-help failed" + SLEEP_WAIT 1 + dnf remove -y python-pyudev-help + CHECK_RESULT $? 0 0 "remove python-pyudev-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python-pyudev.sh b/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python-pyudev.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c54d99cf8c87d39a01eb2c0f45d6a1fe7d737e2 --- /dev/null +++ b/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python-pyudev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pyudev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-pyudev | grep -v \.src | grep python-pyudev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-pyudev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-pyudev + CHECK_RESULT $? 0 0 "install python-pyudev failed" + SLEEP_WAIT 1 + dnf remove -y python-pyudev + CHECK_RESULT $? 0 0 "remove python-pyudev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python2-pyudev.sh b/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python2-pyudev.sh new file mode 100644 index 0000000000000000000000000000000000000000..30a8b8fb6dd19b9f462a218557fb3ed142208d6e --- /dev/null +++ b/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python2-pyudev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pyudev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pyudev | grep -v \.src | grep python2-pyudev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pyudev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pyudev + CHECK_RESULT $? 0 0 "install python2-pyudev failed" + SLEEP_WAIT 1 + dnf remove -y python2-pyudev + CHECK_RESULT $? 0 0 "remove python2-pyudev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python3-pyudev.sh b/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python3-pyudev.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfe8fd9a55f323dc50b08967bce4983072d20384 --- /dev/null +++ b/testcases/cli-test/python-pyudev/oe_test_python-pyudev_install_and_remove_python3-pyudev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-pyudev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pyudev | grep -v \.src | grep python3-pyudev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pyudev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pyudev + CHECK_RESULT $? 0 0 "install python3-pyudev failed" + SLEEP_WAIT 1 + dnf remove -y python3-pyudev + CHECK_RESULT $? 0 0 "remove python3-pyudev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests-file/oe_test_python-requests-file_install_and_remove_python-requests-file.sh b/testcases/cli-test/python-requests-file/oe_test_python-requests-file_install_and_remove_python-requests-file.sh new file mode 100644 index 0000000000000000000000000000000000000000..07fc4252fcaf85813b824f53bce49860959d0cab --- /dev/null +++ b/testcases/cli-test/python-requests-file/oe_test_python-requests-file_install_and_remove_python-requests-file.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests-file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-requests-file | grep -v \.src | grep python-requests-file + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-requests-file" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-requests-file + CHECK_RESULT $? 0 0 "install python-requests-file failed" + SLEEP_WAIT 1 + dnf remove -y python-requests-file + CHECK_RESULT $? 0 0 "remove python-requests-file failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests-file/oe_test_python-requests-file_install_and_remove_python2-requests-file.sh b/testcases/cli-test/python-requests-file/oe_test_python-requests-file_install_and_remove_python2-requests-file.sh new file mode 100644 index 0000000000000000000000000000000000000000..608fbfce1b256b1f8649a7cc97859ab374b79d18 --- /dev/null +++ b/testcases/cli-test/python-requests-file/oe_test_python-requests-file_install_and_remove_python2-requests-file.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests-file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-requests-file | grep -v \.src | grep python2-requests-file + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-requests-file" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-requests-file + CHECK_RESULT $? 0 0 "install python2-requests-file failed" + SLEEP_WAIT 1 + dnf remove -y python2-requests-file + CHECK_RESULT $? 0 0 "remove python2-requests-file failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests-file/oe_test_python-requests-file_install_and_remove_python3-requests-file.sh b/testcases/cli-test/python-requests-file/oe_test_python-requests-file_install_and_remove_python3-requests-file.sh new file mode 100644 index 0000000000000000000000000000000000000000..85a8555ff14ae84875730bd022d4c647e3bb19df --- /dev/null +++ b/testcases/cli-test/python-requests-file/oe_test_python-requests-file_install_and_remove_python3-requests-file.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests-file +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-requests-file | grep -v \.src | grep python3-requests-file + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-requests-file" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-requests-file + CHECK_RESULT $? 0 0 "install python3-requests-file failed" + SLEEP_WAIT 1 + dnf remove -y python3-requests-file + CHECK_RESULT $? 0 0 "remove python3-requests-file failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python-requests-ftp-help.sh b/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python-requests-ftp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f2cad9ce5dad562b77e42bf1717a318387e6d27 --- /dev/null +++ b/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python-requests-ftp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests-ftp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-requests-ftp-help | grep -v \.src | grep python-requests-ftp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-requests-ftp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-requests-ftp-help + CHECK_RESULT $? 0 0 "install python-requests-ftp-help failed" + SLEEP_WAIT 1 + dnf remove -y python-requests-ftp-help + CHECK_RESULT $? 0 0 "remove python-requests-ftp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python-requests-ftp.sh b/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python-requests-ftp.sh new file mode 100644 index 0000000000000000000000000000000000000000..d44e1e5d15c91320c1ee988c8246e3d48dcb3ee3 --- /dev/null +++ b/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python-requests-ftp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests-ftp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-requests-ftp | grep -v \.src | grep python-requests-ftp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-requests-ftp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-requests-ftp + CHECK_RESULT $? 0 0 "install python-requests-ftp failed" + SLEEP_WAIT 1 + dnf remove -y python-requests-ftp + CHECK_RESULT $? 0 0 "remove python-requests-ftp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python2-requests-ftp.sh b/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python2-requests-ftp.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccbf33d4ee7827fde0440249af613e5cf4448e0b --- /dev/null +++ b/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python2-requests-ftp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests-ftp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-requests-ftp | grep -v \.src | grep python2-requests-ftp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-requests-ftp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-requests-ftp + CHECK_RESULT $? 0 0 "install python2-requests-ftp failed" + SLEEP_WAIT 1 + dnf remove -y python2-requests-ftp + CHECK_RESULT $? 0 0 "remove python2-requests-ftp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python3-requests-ftp.sh b/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python3-requests-ftp.sh new file mode 100644 index 0000000000000000000000000000000000000000..f04c7dfe813b39c14f5ae787c5d3a273b0b8e991 --- /dev/null +++ b/testcases/cli-test/python-requests-ftp/oe_test_python-requests-ftp_install_and_remove_python3-requests-ftp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests-ftp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-requests-ftp | grep -v \.src | grep python3-requests-ftp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-requests-ftp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-requests-ftp + CHECK_RESULT $? 0 0 "install python3-requests-ftp failed" + SLEEP_WAIT 1 + dnf remove -y python3-requests-ftp + CHECK_RESULT $? 0 0 "remove python3-requests-ftp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python%{python3_pkgversion}-requests.sh b/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python%{python3_pkgversion}-requests.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dfdd12112fce07b544006f38eb623a4a169ebcb --- /dev/null +++ b/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python%{python3_pkgversion}-requests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python%{python3_pkgversion}-requests | grep -v \.src | grep python%{python3_pkgversion}-requests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python%{python3_pkgversion}-requests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python%{python3_pkgversion}-requests + CHECK_RESULT $? 0 0 "install python%{python3_pkgversion}-requests failed" + SLEEP_WAIT 1 + dnf remove -y python%{python3_pkgversion}-requests + CHECK_RESULT $? 0 0 "remove python%{python3_pkgversion}-requests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python-requests-help.sh b/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python-requests-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..166f309285277a1ac1fbabdffafbab3be8324ec6 --- /dev/null +++ b/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python-requests-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-requests-help | grep -v \.src | grep python-requests-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-requests-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-requests-help + CHECK_RESULT $? 0 0 "install python-requests-help failed" + SLEEP_WAIT 1 + dnf remove -y python-requests-help + CHECK_RESULT $? 0 0 "remove python-requests-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python-requests.sh b/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python-requests.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8f6bcf39abd81496b7a2382f5b63c50f39cf3d0 --- /dev/null +++ b/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python-requests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-requests | grep -v \.src | grep python-requests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-requests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-requests + CHECK_RESULT $? 0 0 "install python-requests failed" + SLEEP_WAIT 1 + dnf remove -y python-requests + CHECK_RESULT $? 0 0 "remove python-requests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python2-requests.sh b/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python2-requests.sh new file mode 100644 index 0000000000000000000000000000000000000000..3952bef3f69f2c50c3a4eb5235de1f9012a02c6c --- /dev/null +++ b/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python2-requests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-requests | grep -v \.src | grep python2-requests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-requests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-requests + CHECK_RESULT $? 0 0 "install python2-requests failed" + SLEEP_WAIT 1 + dnf remove -y python2-requests + CHECK_RESULT $? 0 0 "remove python2-requests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python3-requests.sh b/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python3-requests.sh new file mode 100644 index 0000000000000000000000000000000000000000..703596e3ee163909e7a34271f3cefdc00fa72d1d --- /dev/null +++ b/testcases/cli-test/python-requests/oe_test_python-requests_install_and_remove_python3-requests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-requests +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-requests | grep -v \.src | grep python3-requests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-requests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-requests + CHECK_RESULT $? 0 0 "install python3-requests failed" + SLEEP_WAIT 1 + dnf remove -y python3-requests + CHECK_RESULT $? 0 0 "remove python3-requests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-semantic_version/oe_test_python-semantic_version_install_and_remove_python-semantic_version-help.sh b/testcases/cli-test/python-semantic_version/oe_test_python-semantic_version_install_and_remove_python-semantic_version-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a985869475a8aa6970210c6ac56e08dd286da18 --- /dev/null +++ b/testcases/cli-test/python-semantic_version/oe_test_python-semantic_version_install_and_remove_python-semantic_version-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-semantic_version +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-semantic_version-help | grep -v \.src | grep python-semantic_version-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-semantic_version-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-semantic_version-help + CHECK_RESULT $? 0 0 "install python-semantic_version-help failed" + SLEEP_WAIT 1 + dnf remove -y python-semantic_version-help + CHECK_RESULT $? 0 0 "remove python-semantic_version-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-semantic_version/oe_test_python-semantic_version_install_and_remove_python-semantic_version.sh b/testcases/cli-test/python-semantic_version/oe_test_python-semantic_version_install_and_remove_python-semantic_version.sh new file mode 100644 index 0000000000000000000000000000000000000000..eba347a307ff3b2ac5798b34deb4e38d8afd90b2 --- /dev/null +++ b/testcases/cli-test/python-semantic_version/oe_test_python-semantic_version_install_and_remove_python-semantic_version.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-semantic_version +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-semantic_version | grep -v \.src | grep python-semantic_version + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-semantic_version" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-semantic_version + CHECK_RESULT $? 0 0 "install python-semantic_version failed" + SLEEP_WAIT 1 + dnf remove -y python-semantic_version + CHECK_RESULT $? 0 0 "remove python-semantic_version failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-semantic_version/oe_test_python-semantic_version_install_and_remove_python3-semantic_version.sh b/testcases/cli-test/python-semantic_version/oe_test_python-semantic_version_install_and_remove_python3-semantic_version.sh new file mode 100644 index 0000000000000000000000000000000000000000..71979640409150dacc6030b1ce96c6e09ed75710 --- /dev/null +++ b/testcases/cli-test/python-semantic_version/oe_test_python-semantic_version_install_and_remove_python3-semantic_version.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-semantic_version +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-semantic_version | grep -v \.src | grep python3-semantic_version + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-semantic_version" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-semantic_version + CHECK_RESULT $? 0 0 "install python3-semantic_version failed" + SLEEP_WAIT 1 + dnf remove -y python3-semantic_version + CHECK_RESULT $? 0 0 "remove python3-semantic_version failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python-setuptools-help.sh b/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python-setuptools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..81a4a6882550a84621029238dc190b2e7d4a44f6 --- /dev/null +++ b/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python-setuptools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-setuptools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-setuptools-help | grep -v \.src | grep python-setuptools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-setuptools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-setuptools-help + CHECK_RESULT $? 0 0 "install python-setuptools-help failed" + SLEEP_WAIT 1 + dnf remove -y python-setuptools-help + CHECK_RESULT $? 0 0 "remove python-setuptools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python-setuptools.sh b/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python-setuptools.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac99d941dd1325fd2a19276d2712e664f61b9bcd --- /dev/null +++ b/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python-setuptools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-setuptools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-setuptools | grep -v \.src | grep python-setuptools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-setuptools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-setuptools + CHECK_RESULT $? 0 0 "install python-setuptools failed" + SLEEP_WAIT 1 + dnf remove -y python-setuptools + CHECK_RESULT $? 0 0 "remove python-setuptools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python2-setuptools.sh b/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python2-setuptools.sh new file mode 100644 index 0000000000000000000000000000000000000000..991ca19f535523ea0264a042b397f3402c95f366 --- /dev/null +++ b/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python2-setuptools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-setuptools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-setuptools | grep -v \.src | grep python2-setuptools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-setuptools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-setuptools + CHECK_RESULT $? 0 0 "install python2-setuptools failed" + SLEEP_WAIT 1 + dnf remove -y python2-setuptools + CHECK_RESULT $? 0 0 "remove python2-setuptools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python3-setuptools.sh b/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python3-setuptools.sh new file mode 100644 index 0000000000000000000000000000000000000000..a33aab866680050be4d61810ef10649376bb89ab --- /dev/null +++ b/testcases/cli-test/python-setuptools/oe_test_python-setuptools_install_and_remove_python3-setuptools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-setuptools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-setuptools | grep -v \.src | grep python3-setuptools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-setuptools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-setuptools + CHECK_RESULT $? 0 0 "install python3-setuptools failed" + SLEEP_WAIT 1 + dnf remove -y python3-setuptools + CHECK_RESULT $? 0 0 "remove python3-setuptools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python%{python3_pkgversion}-setuptools_scm.sh b/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python%{python3_pkgversion}-setuptools_scm.sh new file mode 100644 index 0000000000000000000000000000000000000000..67b7f18e2c76ccda0a63585c7e0844b8554f7b73 --- /dev/null +++ b/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python%{python3_pkgversion}-setuptools_scm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-setuptools_scm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python%{python3_pkgversion}-setuptools_scm | grep -v \.src | grep python%{python3_pkgversion}-setuptools_scm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python%{python3_pkgversion}-setuptools_scm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python%{python3_pkgversion}-setuptools_scm + CHECK_RESULT $? 0 0 "install python%{python3_pkgversion}-setuptools_scm failed" + SLEEP_WAIT 1 + dnf remove -y python%{python3_pkgversion}-setuptools_scm + CHECK_RESULT $? 0 0 "remove python%{python3_pkgversion}-setuptools_scm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python-setuptools_scm-help.sh b/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python-setuptools_scm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..40c6ffd9ee3f4445b801562116810450fc5a85f1 --- /dev/null +++ b/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python-setuptools_scm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-setuptools_scm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-setuptools_scm-help | grep -v \.src | grep python-setuptools_scm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-setuptools_scm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-setuptools_scm-help + CHECK_RESULT $? 0 0 "install python-setuptools_scm-help failed" + SLEEP_WAIT 1 + dnf remove -y python-setuptools_scm-help + CHECK_RESULT $? 0 0 "remove python-setuptools_scm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python-setuptools_scm.sh b/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python-setuptools_scm.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a56ecac3ba07742e21b898e85ee550ef4106996 --- /dev/null +++ b/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python-setuptools_scm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-setuptools_scm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-setuptools_scm | grep -v \.src | grep python-setuptools_scm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-setuptools_scm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-setuptools_scm + CHECK_RESULT $? 0 0 "install python-setuptools_scm failed" + SLEEP_WAIT 1 + dnf remove -y python-setuptools_scm + CHECK_RESULT $? 0 0 "remove python-setuptools_scm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python2-setuptools_scm.sh b/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python2-setuptools_scm.sh new file mode 100644 index 0000000000000000000000000000000000000000..0512110e8c2769b6eb52354084cea98692e21b68 --- /dev/null +++ b/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python2-setuptools_scm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-setuptools_scm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-setuptools_scm | grep -v \.src | grep python2-setuptools_scm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-setuptools_scm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-setuptools_scm + CHECK_RESULT $? 0 0 "install python2-setuptools_scm failed" + SLEEP_WAIT 1 + dnf remove -y python2-setuptools_scm + CHECK_RESULT $? 0 0 "remove python2-setuptools_scm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python3-setuptools_scm.sh b/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python3-setuptools_scm.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0fb59fc10ed952d9189e5bbfb15d04b98afde40 --- /dev/null +++ b/testcases/cli-test/python-setuptools_scm/oe_test_python-setuptools_scm_install_and_remove_python3-setuptools_scm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-setuptools_scm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-setuptools_scm | grep -v \.src | grep python3-setuptools_scm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-setuptools_scm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-setuptools_scm + CHECK_RESULT $? 0 0 "install python3-setuptools_scm failed" + SLEEP_WAIT 1 + dnf remove -y python3-setuptools_scm + CHECK_RESULT $? 0 0 "remove python3-setuptools_scm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-simpleline/oe_test_python-simpleline_install_and_remove_python-simpleline.sh b/testcases/cli-test/python-simpleline/oe_test_python-simpleline_install_and_remove_python-simpleline.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce58b6d0b4f04360428bb969a2bfb4234736708c --- /dev/null +++ b/testcases/cli-test/python-simpleline/oe_test_python-simpleline_install_and_remove_python-simpleline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-simpleline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-simpleline | grep -v \.src | grep python-simpleline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-simpleline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-simpleline + CHECK_RESULT $? 0 0 "install python-simpleline failed" + SLEEP_WAIT 1 + dnf remove -y python-simpleline + CHECK_RESULT $? 0 0 "remove python-simpleline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-simpleline/oe_test_python-simpleline_install_and_remove_python3-simpleline.sh b/testcases/cli-test/python-simpleline/oe_test_python-simpleline_install_and_remove_python3-simpleline.sh new file mode 100644 index 0000000000000000000000000000000000000000..452fa8bb1291a6bec3236b90d4ed5337be2afd44 --- /dev/null +++ b/testcases/cli-test/python-simpleline/oe_test_python-simpleline_install_and_remove_python3-simpleline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-simpleline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-simpleline | grep -v \.src | grep python3-simpleline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-simpleline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-simpleline + CHECK_RESULT $? 0 0 "install python3-simpleline failed" + SLEEP_WAIT 1 + dnf remove -y python3-simpleline + CHECK_RESULT $? 0 0 "remove python3-simpleline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-six/oe_test_python-six_install_and_remove_python-six.sh b/testcases/cli-test/python-six/oe_test_python-six_install_and_remove_python-six.sh new file mode 100644 index 0000000000000000000000000000000000000000..50740b1e957bd1401b219881cf6fde25ddb70791 --- /dev/null +++ b/testcases/cli-test/python-six/oe_test_python-six_install_and_remove_python-six.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-six +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-six | grep -v \.src | grep python-six + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-six" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-six + CHECK_RESULT $? 0 0 "install python-six failed" + SLEEP_WAIT 1 + dnf remove -y python-six + CHECK_RESULT $? 0 0 "remove python-six failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-six/oe_test_python-six_install_and_remove_python2-six.sh b/testcases/cli-test/python-six/oe_test_python-six_install_and_remove_python2-six.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ceaa680806ea640f7de79d8f0cfddff8e9f20c4 --- /dev/null +++ b/testcases/cli-test/python-six/oe_test_python-six_install_and_remove_python2-six.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-six +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-six | grep -v \.src | grep python2-six + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-six" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-six + CHECK_RESULT $? 0 0 "install python2-six failed" + SLEEP_WAIT 1 + dnf remove -y python2-six + CHECK_RESULT $? 0 0 "remove python2-six failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-six/oe_test_python-six_install_and_remove_python3-six.sh b/testcases/cli-test/python-six/oe_test_python-six_install_and_remove_python3-six.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9be1f999c6cef25afa9fc3a01a1d2f5dc985bba --- /dev/null +++ b/testcases/cli-test/python-six/oe_test_python-six_install_and_remove_python3-six.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-six +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-six | grep -v \.src | grep python3-six + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-six" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-six + CHECK_RESULT $? 0 0 "install python3-six failed" + SLEEP_WAIT 1 + dnf remove -y python3-six + CHECK_RESULT $? 0 0 "remove python3-six failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python-sortedcontainers-help.sh b/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python-sortedcontainers-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6e6b14e0e07aa6574bd1f17f183d97e07d972fd --- /dev/null +++ b/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python-sortedcontainers-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-sortedcontainers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-sortedcontainers-help | grep -v \.src | grep python-sortedcontainers-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-sortedcontainers-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-sortedcontainers-help + CHECK_RESULT $? 0 0 "install python-sortedcontainers-help failed" + SLEEP_WAIT 1 + dnf remove -y python-sortedcontainers-help + CHECK_RESULT $? 0 0 "remove python-sortedcontainers-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python-sortedcontainers.sh b/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python-sortedcontainers.sh new file mode 100644 index 0000000000000000000000000000000000000000..8494d0cb6bdf65aef2a46662344e4a341c1b62d7 --- /dev/null +++ b/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python-sortedcontainers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-sortedcontainers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-sortedcontainers | grep -v \.src | grep python-sortedcontainers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-sortedcontainers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-sortedcontainers + CHECK_RESULT $? 0 0 "install python-sortedcontainers failed" + SLEEP_WAIT 1 + dnf remove -y python-sortedcontainers + CHECK_RESULT $? 0 0 "remove python-sortedcontainers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python2-sortedcontainers.sh b/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python2-sortedcontainers.sh new file mode 100644 index 0000000000000000000000000000000000000000..079b4d257db0002a241dc5fea457f63ffc0ebf43 --- /dev/null +++ b/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python2-sortedcontainers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-sortedcontainers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-sortedcontainers | grep -v \.src | grep python2-sortedcontainers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-sortedcontainers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-sortedcontainers + CHECK_RESULT $? 0 0 "install python2-sortedcontainers failed" + SLEEP_WAIT 1 + dnf remove -y python2-sortedcontainers + CHECK_RESULT $? 0 0 "remove python2-sortedcontainers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python3-sortedcontainers.sh b/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python3-sortedcontainers.sh new file mode 100644 index 0000000000000000000000000000000000000000..c73719396967ab7fbbd22684dd5a13df56e74ddc --- /dev/null +++ b/testcases/cli-test/python-sortedcontainers/oe_test_python-sortedcontainers_install_and_remove_python3-sortedcontainers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-sortedcontainers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-sortedcontainers | grep -v \.src | grep python3-sortedcontainers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-sortedcontainers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-sortedcontainers + CHECK_RESULT $? 0 0 "install python3-sortedcontainers failed" + SLEEP_WAIT 1 + dnf remove -y python3-sortedcontainers + CHECK_RESULT $? 0 0 "remove python3-sortedcontainers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-sphinx_rtd_theme/oe_test_python-sphinx_rtd_theme_install_and_remove_python-sphinx_rtd_theme.sh b/testcases/cli-test/python-sphinx_rtd_theme/oe_test_python-sphinx_rtd_theme_install_and_remove_python-sphinx_rtd_theme.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bd7929d8c67d7dd986a42a142b81848af932143 --- /dev/null +++ b/testcases/cli-test/python-sphinx_rtd_theme/oe_test_python-sphinx_rtd_theme_install_and_remove_python-sphinx_rtd_theme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-sphinx_rtd_theme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-sphinx_rtd_theme | grep -v \.src | grep python-sphinx_rtd_theme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-sphinx_rtd_theme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-sphinx_rtd_theme + CHECK_RESULT $? 0 0 "install python-sphinx_rtd_theme failed" + SLEEP_WAIT 1 + dnf remove -y python-sphinx_rtd_theme + CHECK_RESULT $? 0 0 "remove python-sphinx_rtd_theme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-sphinx_rtd_theme/oe_test_python-sphinx_rtd_theme_install_and_remove_python2-sphinx_rtd_theme.sh b/testcases/cli-test/python-sphinx_rtd_theme/oe_test_python-sphinx_rtd_theme_install_and_remove_python2-sphinx_rtd_theme.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc2191420e500e236aa0273a727669042b0e820b --- /dev/null +++ b/testcases/cli-test/python-sphinx_rtd_theme/oe_test_python-sphinx_rtd_theme_install_and_remove_python2-sphinx_rtd_theme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-sphinx_rtd_theme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-sphinx_rtd_theme | grep -v \.src | grep python2-sphinx_rtd_theme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-sphinx_rtd_theme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-sphinx_rtd_theme + CHECK_RESULT $? 0 0 "install python2-sphinx_rtd_theme failed" + SLEEP_WAIT 1 + dnf remove -y python2-sphinx_rtd_theme + CHECK_RESULT $? 0 0 "remove python2-sphinx_rtd_theme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-sphinx_rtd_theme/oe_test_python-sphinx_rtd_theme_install_and_remove_python3-sphinx_rtd_theme.sh b/testcases/cli-test/python-sphinx_rtd_theme/oe_test_python-sphinx_rtd_theme_install_and_remove_python3-sphinx_rtd_theme.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ce2f086f4c14934ee8841961a39024df2ec0eba --- /dev/null +++ b/testcases/cli-test/python-sphinx_rtd_theme/oe_test_python-sphinx_rtd_theme_install_and_remove_python3-sphinx_rtd_theme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-sphinx_rtd_theme +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-sphinx_rtd_theme | grep -v \.src | grep python3-sphinx_rtd_theme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-sphinx_rtd_theme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-sphinx_rtd_theme + CHECK_RESULT $? 0 0 "install python3-sphinx_rtd_theme failed" + SLEEP_WAIT 1 + dnf remove -y python3-sphinx_rtd_theme + CHECK_RESULT $? 0 0 "remove python3-sphinx_rtd_theme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd-debuginfo.sh b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6d05cb119bbddc9f4581599a7985c708194d021 --- /dev/null +++ b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-systemd-debuginfo | grep -v \.src | grep python-systemd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-systemd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-systemd-debuginfo + CHECK_RESULT $? 0 0 "install python-systemd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python-systemd-debuginfo + CHECK_RESULT $? 0 0 "remove python-systemd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd-debugsource.sh b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..624b1b61703b52e3ca76525ccaf9a5b0be59c2b9 --- /dev/null +++ b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-systemd-debugsource | grep -v \.src | grep python-systemd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-systemd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-systemd-debugsource + CHECK_RESULT $? 0 0 "install python-systemd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y python-systemd-debugsource + CHECK_RESULT $? 0 0 "remove python-systemd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd-help.sh b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..850c29055c05f72a23579f2f3822f88393c71bd5 --- /dev/null +++ b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-systemd-help | grep -v \.src | grep python-systemd-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-systemd-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-systemd-help + CHECK_RESULT $? 0 0 "install python-systemd-help failed" + SLEEP_WAIT 1 + dnf remove -y python-systemd-help + CHECK_RESULT $? 0 0 "remove python-systemd-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd.sh b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ec8ce976f863da4166d231ce10892ee700c9f0d --- /dev/null +++ b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python-systemd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-systemd | grep -v \.src | grep python-systemd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-systemd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-systemd + CHECK_RESULT $? 0 0 "install python-systemd failed" + SLEEP_WAIT 1 + dnf remove -y python-systemd + CHECK_RESULT $? 0 0 "remove python-systemd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python2-systemd.sh b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python2-systemd.sh new file mode 100644 index 0000000000000000000000000000000000000000..d05a9adea89f7b4c16980ed29d941c1c71c92327 --- /dev/null +++ b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python2-systemd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-systemd | grep -v \.src | grep python2-systemd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-systemd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-systemd + CHECK_RESULT $? 0 0 "install python2-systemd failed" + SLEEP_WAIT 1 + dnf remove -y python2-systemd + CHECK_RESULT $? 0 0 "remove python2-systemd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python3-systemd.sh b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python3-systemd.sh new file mode 100644 index 0000000000000000000000000000000000000000..708ee157056590627881b55431fbd8d585884c26 --- /dev/null +++ b/testcases/cli-test/python-systemd/oe_test_python-systemd_install_and_remove_python3-systemd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-systemd | grep -v \.src | grep python3-systemd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-systemd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-systemd + CHECK_RESULT $? 0 0 "install python3-systemd failed" + SLEEP_WAIT 1 + dnf remove -y python3-systemd + CHECK_RESULT $? 0 0 "remove python3-systemd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-testscenarios/oe_test_python-testscenarios_install_and_remove_python-testscenarios.sh b/testcases/cli-test/python-testscenarios/oe_test_python-testscenarios_install_and_remove_python-testscenarios.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8c5f615ea8aabfbe17781d7bc410ced585f48bf --- /dev/null +++ b/testcases/cli-test/python-testscenarios/oe_test_python-testscenarios_install_and_remove_python-testscenarios.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-testscenarios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-testscenarios | grep -v \.src | grep python-testscenarios + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-testscenarios" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-testscenarios + CHECK_RESULT $? 0 0 "install python-testscenarios failed" + SLEEP_WAIT 1 + dnf remove -y python-testscenarios + CHECK_RESULT $? 0 0 "remove python-testscenarios failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-testscenarios/oe_test_python-testscenarios_install_and_remove_python2-testscenarios.sh b/testcases/cli-test/python-testscenarios/oe_test_python-testscenarios_install_and_remove_python2-testscenarios.sh new file mode 100644 index 0000000000000000000000000000000000000000..313481cfae63fe4d9838c18f8cb4aff7273209ed --- /dev/null +++ b/testcases/cli-test/python-testscenarios/oe_test_python-testscenarios_install_and_remove_python2-testscenarios.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-testscenarios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-testscenarios | grep -v \.src | grep python2-testscenarios + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-testscenarios" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-testscenarios + CHECK_RESULT $? 0 0 "install python2-testscenarios failed" + SLEEP_WAIT 1 + dnf remove -y python2-testscenarios + CHECK_RESULT $? 0 0 "remove python2-testscenarios failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-testscenarios/oe_test_python-testscenarios_install_and_remove_python3-testscenarios.sh b/testcases/cli-test/python-testscenarios/oe_test_python-testscenarios_install_and_remove_python3-testscenarios.sh new file mode 100644 index 0000000000000000000000000000000000000000..a404ef7b0f9b487cc064d62a6b749ff0276b5dd6 --- /dev/null +++ b/testcases/cli-test/python-testscenarios/oe_test_python-testscenarios_install_and_remove_python3-testscenarios.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-testscenarios +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-testscenarios | grep -v \.src | grep python3-testscenarios + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-testscenarios" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-testscenarios + CHECK_RESULT $? 0 0 "install python3-testscenarios failed" + SLEEP_WAIT 1 + dnf remove -y python3-testscenarios + CHECK_RESULT $? 0 0 "remove python3-testscenarios failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python-testtools-help.sh b/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python-testtools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..727a886da147503a028b5737ef7f1c41b1a14615 --- /dev/null +++ b/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python-testtools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-testtools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-testtools-help | grep -v \.src | grep python-testtools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-testtools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-testtools-help + CHECK_RESULT $? 0 0 "install python-testtools-help failed" + SLEEP_WAIT 1 + dnf remove -y python-testtools-help + CHECK_RESULT $? 0 0 "remove python-testtools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python-testtools.sh b/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python-testtools.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab4b5fee51c8d7ee3d881f23dde75ea3a9e82335 --- /dev/null +++ b/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python-testtools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-testtools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-testtools | grep -v \.src | grep python-testtools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-testtools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-testtools + CHECK_RESULT $? 0 0 "install python-testtools failed" + SLEEP_WAIT 1 + dnf remove -y python-testtools + CHECK_RESULT $? 0 0 "remove python-testtools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python2-testtools.sh b/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python2-testtools.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e59e22063fd9865958dedc83259582c969a794f --- /dev/null +++ b/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python2-testtools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-testtools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-testtools | grep -v \.src | grep python2-testtools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-testtools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-testtools + CHECK_RESULT $? 0 0 "install python2-testtools failed" + SLEEP_WAIT 1 + dnf remove -y python2-testtools + CHECK_RESULT $? 0 0 "remove python2-testtools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python3-testtools.sh b/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python3-testtools.sh new file mode 100644 index 0000000000000000000000000000000000000000..6009a7cb73b1006523d441813b2aeb33fc643abf --- /dev/null +++ b/testcases/cli-test/python-testtools/oe_test_python-testtools_install_and_remove_python3-testtools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-testtools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-testtools | grep -v \.src | grep python3-testtools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-testtools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-testtools + CHECK_RESULT $? 0 0 "install python3-testtools failed" + SLEEP_WAIT 1 + dnf remove -y python3-testtools + CHECK_RESULT $? 0 0 "remove python3-testtools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python-toml-help.sh b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python-toml-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..62cae06cddb31a8bca7bdf0f2f2c4c1d45d8173b --- /dev/null +++ b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python-toml-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-toml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-toml-help | grep -v \.src | grep python-toml-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-toml-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-toml-help + CHECK_RESULT $? 0 0 "install python-toml-help failed" + SLEEP_WAIT 1 + dnf remove -y python-toml-help + CHECK_RESULT $? 0 0 "remove python-toml-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python-toml.sh b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python-toml.sh new file mode 100644 index 0000000000000000000000000000000000000000..083688bd84d3bcd4de3868af546bda826772e0a3 --- /dev/null +++ b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python-toml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-toml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-toml | grep -v \.src | grep python-toml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-toml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-toml + CHECK_RESULT $? 0 0 "install python-toml failed" + SLEEP_WAIT 1 + dnf remove -y python-toml + CHECK_RESULT $? 0 0 "remove python-toml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python2-toml.sh b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python2-toml.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ec56db831fff40d677bd8114186137655eaf36a --- /dev/null +++ b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python2-toml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-toml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-toml | grep -v \.src | grep python2-toml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-toml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-toml + CHECK_RESULT $? 0 0 "install python2-toml failed" + SLEEP_WAIT 1 + dnf remove -y python2-toml + CHECK_RESULT $? 0 0 "remove python2-toml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python3-toml.sh b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python3-toml.sh new file mode 100644 index 0000000000000000000000000000000000000000..6630dc221dfeef61a56978fac89861483d82c6e2 --- /dev/null +++ b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python3-toml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-toml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-toml | grep -v \.src | grep python3-toml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-toml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-toml + CHECK_RESULT $? 0 0 "install python3-toml failed" + SLEEP_WAIT 1 + dnf remove -y python3-toml + CHECK_RESULT $? 0 0 "remove python3-toml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python38-toml.sh b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python38-toml.sh new file mode 100644 index 0000000000000000000000000000000000000000..d82b9c6a11292ec637d7becb7b0b8c8ce378e82c --- /dev/null +++ b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python38-toml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-toml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python38-toml | grep -v \.src | grep python38-toml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python38-toml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python38-toml + CHECK_RESULT $? 0 0 "install python38-toml failed" + SLEEP_WAIT 1 + dnf remove -y python38-toml + CHECK_RESULT $? 0 0 "remove python38-toml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python39-toml.sh b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python39-toml.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4061d723855a169ec56c58ba38d2be934758ecd --- /dev/null +++ b/testcases/cli-test/python-toml/oe_test_python-toml_install_and_remove_python39-toml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-toml +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python39-toml | grep -v \.src | grep python39-toml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python39-toml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python39-toml + CHECK_RESULT $? 0 0 "install python39-toml failed" + SLEEP_WAIT 1 + dnf remove -y python39-toml + CHECK_RESULT $? 0 0 "remove python39-toml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-traceback2/oe_test_python-traceback2_install_and_remove_python-traceback2.sh b/testcases/cli-test/python-traceback2/oe_test_python-traceback2_install_and_remove_python-traceback2.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c257786628344b71c719fabf6ae61fa5a91e6ed --- /dev/null +++ b/testcases/cli-test/python-traceback2/oe_test_python-traceback2_install_and_remove_python-traceback2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-traceback2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-traceback2 | grep -v \.src | grep python-traceback2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-traceback2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-traceback2 + CHECK_RESULT $? 0 0 "install python-traceback2 failed" + SLEEP_WAIT 1 + dnf remove -y python-traceback2 + CHECK_RESULT $? 0 0 "remove python-traceback2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-traceback2/oe_test_python-traceback2_install_and_remove_python2-traceback2.sh b/testcases/cli-test/python-traceback2/oe_test_python-traceback2_install_and_remove_python2-traceback2.sh new file mode 100644 index 0000000000000000000000000000000000000000..e371420e1d551b018ff4be6c786f7419791a98c2 --- /dev/null +++ b/testcases/cli-test/python-traceback2/oe_test_python-traceback2_install_and_remove_python2-traceback2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-traceback2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-traceback2 | grep -v \.src | grep python2-traceback2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-traceback2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-traceback2 + CHECK_RESULT $? 0 0 "install python2-traceback2 failed" + SLEEP_WAIT 1 + dnf remove -y python2-traceback2 + CHECK_RESULT $? 0 0 "remove python2-traceback2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-traceback2/oe_test_python-traceback2_install_and_remove_python3-traceback2.sh b/testcases/cli-test/python-traceback2/oe_test_python-traceback2_install_and_remove_python3-traceback2.sh new file mode 100644 index 0000000000000000000000000000000000000000..57803a1cbcd51592038a81147bfd5a1286d7518e --- /dev/null +++ b/testcases/cli-test/python-traceback2/oe_test_python-traceback2_install_and_remove_python3-traceback2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-traceback2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-traceback2 | grep -v \.src | grep python3-traceback2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-traceback2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-traceback2 + CHECK_RESULT $? 0 0 "install python3-traceback2 failed" + SLEEP_WAIT 1 + dnf remove -y python3-traceback2 + CHECK_RESULT $? 0 0 "remove python3-traceback2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-unittest2/oe_test_python-unittest2_install_and_remove_python-unittest2.sh b/testcases/cli-test/python-unittest2/oe_test_python-unittest2_install_and_remove_python-unittest2.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a111134994e3a72bbc00b598ceb6b1d6ec9fa5b --- /dev/null +++ b/testcases/cli-test/python-unittest2/oe_test_python-unittest2_install_and_remove_python-unittest2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-unittest2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-unittest2 | grep -v \.src | grep python-unittest2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-unittest2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-unittest2 + CHECK_RESULT $? 0 0 "install python-unittest2 failed" + SLEEP_WAIT 1 + dnf remove -y python-unittest2 + CHECK_RESULT $? 0 0 "remove python-unittest2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-unittest2/oe_test_python-unittest2_install_and_remove_python2-unittest2.sh b/testcases/cli-test/python-unittest2/oe_test_python-unittest2_install_and_remove_python2-unittest2.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3e201897b8e88c0855f7d8b94c38c5710da4578 --- /dev/null +++ b/testcases/cli-test/python-unittest2/oe_test_python-unittest2_install_and_remove_python2-unittest2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-unittest2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-unittest2 | grep -v \.src | grep python2-unittest2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-unittest2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-unittest2 + CHECK_RESULT $? 0 0 "install python2-unittest2 failed" + SLEEP_WAIT 1 + dnf remove -y python2-unittest2 + CHECK_RESULT $? 0 0 "remove python2-unittest2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-unittest2/oe_test_python-unittest2_install_and_remove_python3-unittest2.sh b/testcases/cli-test/python-unittest2/oe_test_python-unittest2_install_and_remove_python3-unittest2.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ecf4909f414f4a077a16fbbbe76e93b526d660f --- /dev/null +++ b/testcases/cli-test/python-unittest2/oe_test_python-unittest2_install_and_remove_python3-unittest2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-unittest2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-unittest2 | grep -v \.src | grep python3-unittest2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-unittest2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-unittest2 + CHECK_RESULT $? 0 0 "install python3-unittest2 failed" + SLEEP_WAIT 1 + dnf remove -y python3-unittest2 + CHECK_RESULT $? 0 0 "remove python3-unittest2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-urllib3/oe_test_python-urllib3_install_and_remove_python-urllib3.sh b/testcases/cli-test/python-urllib3/oe_test_python-urllib3_install_and_remove_python-urllib3.sh new file mode 100644 index 0000000000000000000000000000000000000000..d554a160a154968e0f6974d725d0f3aa48575d00 --- /dev/null +++ b/testcases/cli-test/python-urllib3/oe_test_python-urllib3_install_and_remove_python-urllib3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-urllib3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-urllib3 | grep -v \.src | grep python-urllib3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-urllib3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-urllib3 + CHECK_RESULT $? 0 0 "install python-urllib3 failed" + SLEEP_WAIT 1 + dnf remove -y python-urllib3 + CHECK_RESULT $? 0 0 "remove python-urllib3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-urllib3/oe_test_python-urllib3_install_and_remove_python2-urllib3.sh b/testcases/cli-test/python-urllib3/oe_test_python-urllib3_install_and_remove_python2-urllib3.sh new file mode 100644 index 0000000000000000000000000000000000000000..279d67daee586a7085b216321104554b9fc1f2f9 --- /dev/null +++ b/testcases/cli-test/python-urllib3/oe_test_python-urllib3_install_and_remove_python2-urllib3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-urllib3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-urllib3 | grep -v \.src | grep python2-urllib3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-urllib3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-urllib3 + CHECK_RESULT $? 0 0 "install python2-urllib3 failed" + SLEEP_WAIT 1 + dnf remove -y python2-urllib3 + CHECK_RESULT $? 0 0 "remove python2-urllib3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-urllib3/oe_test_python-urllib3_install_and_remove_python3-urllib3.sh b/testcases/cli-test/python-urllib3/oe_test_python-urllib3_install_and_remove_python3-urllib3.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc205f1dad731b941732a977df07d2666158ed3b --- /dev/null +++ b/testcases/cli-test/python-urllib3/oe_test_python-urllib3_install_and_remove_python3-urllib3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-urllib3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-urllib3 | grep -v \.src | grep python3-urllib3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-urllib3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-urllib3 + CHECK_RESULT $? 0 0 "install python3-urllib3 failed" + SLEEP_WAIT 1 + dnf remove -y python3-urllib3 + CHECK_RESULT $? 0 0 "remove python3-urllib3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python-werkzeug-help.sh b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python-werkzeug-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..af2eea2a1745e175e0d942694aec68d945ef2dea --- /dev/null +++ b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python-werkzeug-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-werkzeug +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-werkzeug-help | grep -v \.src | grep python-werkzeug-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-werkzeug-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-werkzeug-help + CHECK_RESULT $? 0 0 "install python-werkzeug-help failed" + SLEEP_WAIT 1 + dnf remove -y python-werkzeug-help + CHECK_RESULT $? 0 0 "remove python-werkzeug-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python-werkzeug.sh b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python-werkzeug.sh new file mode 100644 index 0000000000000000000000000000000000000000..bde185c06fec114ae75342f53f5dcf8be3d88746 --- /dev/null +++ b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python-werkzeug.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-werkzeug +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-werkzeug | grep -v \.src | grep python-werkzeug + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-werkzeug" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-werkzeug + CHECK_RESULT $? 0 0 "install python-werkzeug failed" + SLEEP_WAIT 1 + dnf remove -y python-werkzeug + CHECK_RESULT $? 0 0 "remove python-werkzeug failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python2-werkzeug-doc.sh b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python2-werkzeug-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dcab4d5a8094503db1bcdaf401c841ca0529554d --- /dev/null +++ b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python2-werkzeug-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-werkzeug +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-werkzeug-doc | grep -v \.src | grep python2-werkzeug-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-werkzeug-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-werkzeug-doc + CHECK_RESULT $? 0 0 "install python2-werkzeug-doc failed" + SLEEP_WAIT 1 + dnf remove -y python2-werkzeug-doc + CHECK_RESULT $? 0 0 "remove python2-werkzeug-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python2-werkzeug.sh b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python2-werkzeug.sh new file mode 100644 index 0000000000000000000000000000000000000000..684cd93ae263786eeceb67f1f6cfaf0e6d7b6dc6 --- /dev/null +++ b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python2-werkzeug.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-werkzeug +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-werkzeug | grep -v \.src | grep python2-werkzeug + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-werkzeug" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-werkzeug + CHECK_RESULT $? 0 0 "install python2-werkzeug failed" + SLEEP_WAIT 1 + dnf remove -y python2-werkzeug + CHECK_RESULT $? 0 0 "remove python2-werkzeug failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python3-werkzeug-doc.sh b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python3-werkzeug-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee8cd927f359d32aa7f65a64b8c954762de38338 --- /dev/null +++ b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python3-werkzeug-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-werkzeug +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-werkzeug-doc | grep -v \.src | grep python3-werkzeug-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-werkzeug-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-werkzeug-doc + CHECK_RESULT $? 0 0 "install python3-werkzeug-doc failed" + SLEEP_WAIT 1 + dnf remove -y python3-werkzeug-doc + CHECK_RESULT $? 0 0 "remove python3-werkzeug-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python3-werkzeug.sh b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python3-werkzeug.sh new file mode 100644 index 0000000000000000000000000000000000000000..4160e8e4799ac83dcca3fff04adf3d6796ff6351 --- /dev/null +++ b/testcases/cli-test/python-werkzeug/oe_test_python-werkzeug_install_and_remove_python3-werkzeug.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-werkzeug +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-werkzeug | grep -v \.src | grep python3-werkzeug + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-werkzeug" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-werkzeug + CHECK_RESULT $? 0 0 "install python3-werkzeug failed" + SLEEP_WAIT 1 + dnf remove -y python3-werkzeug + CHECK_RESULT $? 0 0 "remove python3-werkzeug failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python-wheel-wheel.sh b/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python-wheel-wheel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a00ce05b2fe83c17297499c31ed213991d88b058 --- /dev/null +++ b/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python-wheel-wheel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-wheel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-wheel-wheel | grep -v \.src | grep python-wheel-wheel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-wheel-wheel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-wheel-wheel + CHECK_RESULT $? 0 0 "install python-wheel-wheel failed" + SLEEP_WAIT 1 + dnf remove -y python-wheel-wheel + CHECK_RESULT $? 0 0 "remove python-wheel-wheel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python-wheel.sh b/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python-wheel.sh new file mode 100644 index 0000000000000000000000000000000000000000..373d7766200d03a3ab0788c360fa9f92704ecedf --- /dev/null +++ b/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python-wheel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-wheel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-wheel | grep -v \.src | grep python-wheel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-wheel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-wheel + CHECK_RESULT $? 0 0 "install python-wheel failed" + SLEEP_WAIT 1 + dnf remove -y python-wheel + CHECK_RESULT $? 0 0 "remove python-wheel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python2-wheel.sh b/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python2-wheel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ceeb66ea4a5bfea4bcb6f8f84bc9d7502549a65 --- /dev/null +++ b/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python2-wheel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-wheel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-wheel | grep -v \.src | grep python2-wheel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-wheel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-wheel + CHECK_RESULT $? 0 0 "install python2-wheel failed" + SLEEP_WAIT 1 + dnf remove -y python2-wheel + CHECK_RESULT $? 0 0 "remove python2-wheel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python3-wheel.sh b/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python3-wheel.sh new file mode 100644 index 0000000000000000000000000000000000000000..06881d0c3b08b6b31fbe0954126e0367441ba71c --- /dev/null +++ b/testcases/cli-test/python-wheel/oe_test_python-wheel_install_and_remove_python3-wheel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-wheel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-wheel | grep -v \.src | grep python3-wheel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-wheel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-wheel + CHECK_RESULT $? 0 0 "install python3-wheel failed" + SLEEP_WAIT 1 + dnf remove -y python3-wheel + CHECK_RESULT $? 0 0 "remove python3-wheel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-zipp/oe_test_python-zipp_install_and_remove_python-zipp-help.sh b/testcases/cli-test/python-zipp/oe_test_python-zipp_install_and_remove_python-zipp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..635297dcd6d13294985a0cb6355e009c3b1d9a8f --- /dev/null +++ b/testcases/cli-test/python-zipp/oe_test_python-zipp_install_and_remove_python-zipp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-zipp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-zipp-help | grep -v \.src | grep python-zipp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-zipp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-zipp-help + CHECK_RESULT $? 0 0 "install python-zipp-help failed" + SLEEP_WAIT 1 + dnf remove -y python-zipp-help + CHECK_RESULT $? 0 0 "remove python-zipp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-zipp/oe_test_python-zipp_install_and_remove_python-zipp.sh b/testcases/cli-test/python-zipp/oe_test_python-zipp_install_and_remove_python-zipp.sh new file mode 100644 index 0000000000000000000000000000000000000000..69fdcc218535f0dc9cc415c3a7436ff970cdd20e --- /dev/null +++ b/testcases/cli-test/python-zipp/oe_test_python-zipp_install_and_remove_python-zipp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-zipp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-zipp | grep -v \.src | grep python-zipp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-zipp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-zipp + CHECK_RESULT $? 0 0 "install python-zipp failed" + SLEEP_WAIT 1 + dnf remove -y python-zipp + CHECK_RESULT $? 0 0 "remove python-zipp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python-zipp/oe_test_python-zipp_install_and_remove_python3-zipp.sh b/testcases/cli-test/python-zipp/oe_test_python-zipp_install_and_remove_python3-zipp.sh new file mode 100644 index 0000000000000000000000000000000000000000..b61f260c9bb4bb6534d682f4313b37dea192f1f7 --- /dev/null +++ b/testcases/cli-test/python-zipp/oe_test_python-zipp_install_and_remove_python3-zipp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python-zipp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-zipp | grep -v \.src | grep python3-zipp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-zipp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-zipp + CHECK_RESULT $? 0 0 "install python3-zipp failed" + SLEEP_WAIT 1 + dnf remove -y python3-zipp + CHECK_RESULT $? 0 0 "remove python3-zipp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-debug.sh b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-debug.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b2db69d3541084ccfedbb6ddd1df1036fc94fc7 --- /dev/null +++ b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-debug.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-debug | grep -v \.src | grep python3-debug + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-debug" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-debug + CHECK_RESULT $? 0 0 "install python3-debug failed" + SLEEP_WAIT 1 + dnf remove -y python3-debug + CHECK_RESULT $? 0 0 "remove python3-debug failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-debuginfo.sh b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..650ac69c5c8f55a4ce9e34de76f65297344de9f3 --- /dev/null +++ b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-debuginfo | grep -v \.src | grep python3-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-debuginfo + CHECK_RESULT $? 0 0 "install python3-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y python3-debuginfo + CHECK_RESULT $? 0 0 "remove python3-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-debugsource.sh b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..74a866439abe372359a7eb1cbaef987b402d0ce1 --- /dev/null +++ b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-debugsource | grep -v \.src | grep python3-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-debugsource + CHECK_RESULT $? 0 0 "install python3-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y python3-debugsource + CHECK_RESULT $? 0 0 "remove python3-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-devel.sh b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..72217f6b4caddf14fb0b3eee8fe6abd5792202c8 --- /dev/null +++ b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-devel | grep -v \.src | grep python3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-devel + CHECK_RESULT $? 0 0 "install python3-devel failed" + SLEEP_WAIT 1 + dnf remove -y python3-devel + CHECK_RESULT $? 0 0 "remove python3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-help.sh b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..559f74a37a5b639c62b5bbb25d91ae1d544bf095 --- /dev/null +++ b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-help | grep -v \.src | grep python3-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-help + CHECK_RESULT $? 0 0 "install python3-help failed" + SLEEP_WAIT 1 + dnf remove -y python3-help + CHECK_RESULT $? 0 0 "remove python3-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-tkinter.sh b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-tkinter.sh new file mode 100644 index 0000000000000000000000000000000000000000..5dbf81cfca87a762021706e23fa00959811e3a00 --- /dev/null +++ b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-tkinter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-tkinter | grep -v \.src | grep python3-tkinter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-tkinter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-tkinter + CHECK_RESULT $? 0 0 "install python3-tkinter failed" + SLEEP_WAIT 1 + dnf remove -y python3-tkinter + CHECK_RESULT $? 0 0 "remove python3-tkinter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-unversioned-command.sh b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-unversioned-command.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb2a0b4cdc9d7fc96cd2400813c7e1aae856be91 --- /dev/null +++ b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3-unversioned-command.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-unversioned-command | grep -v \.src | grep python3-unversioned-command + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-unversioned-command" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-unversioned-command + CHECK_RESULT $? 0 0 "install python3-unversioned-command failed" + SLEEP_WAIT 1 + dnf remove -y python3-unversioned-command + CHECK_RESULT $? 0 0 "remove python3-unversioned-command failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3.sh b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3.sh new file mode 100644 index 0000000000000000000000000000000000000000..c95bc3897bbcbbaa48822039d00665e60e6cd377 --- /dev/null +++ b/testcases/cli-test/python3/oe_test_python3_install_and_remove_python3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src python3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3 | grep -v \.src | grep python3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3 + CHECK_RESULT $? 0 0 "install python3 failed" + SLEEP_WAIT 1 + dnf remove -y python3 + CHECK_RESULT $? 0 0 "remove python3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pytz/oe_test_pytz_install_and_remove_python2-pytz.sh b/testcases/cli-test/pytz/oe_test_pytz_install_and_remove_python2-pytz.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c3350f4641bbbd5779fd8d5af62a06e4d44582c --- /dev/null +++ b/testcases/cli-test/pytz/oe_test_pytz_install_and_remove_python2-pytz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pytz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pytz | grep -v \.src | grep python2-pytz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pytz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pytz + CHECK_RESULT $? 0 0 "install python2-pytz failed" + SLEEP_WAIT 1 + dnf remove -y python2-pytz + CHECK_RESULT $? 0 0 "remove python2-pytz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pytz/oe_test_pytz_install_and_remove_python3-pytz.sh b/testcases/cli-test/pytz/oe_test_pytz_install_and_remove_python3-pytz.sh new file mode 100644 index 0000000000000000000000000000000000000000..45ffbd243086277a76d700430dcb48b7eff54136 --- /dev/null +++ b/testcases/cli-test/pytz/oe_test_pytz_install_and_remove_python3-pytz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pytz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pytz | grep -v \.src | grep python3-pytz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pytz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pytz + CHECK_RESULT $? 0 0 "install python3-pytz failed" + SLEEP_WAIT 1 + dnf remove -y python3-pytz + CHECK_RESULT $? 0 0 "remove python3-pytz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pytz/oe_test_pytz_install_and_remove_pytz.sh b/testcases/cli-test/pytz/oe_test_pytz_install_and_remove_pytz.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1d176eb1dba415a785c14c159f5304082639f25 --- /dev/null +++ b/testcases/cli-test/pytz/oe_test_pytz_install_and_remove_pytz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pytz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pytz | grep -v \.src | grep pytz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pytz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pytz + CHECK_RESULT $? 0 0 "install pytz failed" + SLEEP_WAIT 1 + dnf remove -y pytz + CHECK_RESULT $? 0 0 "remove pytz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_python2-pywbem.sh b/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_python2-pywbem.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7d07055a5e53c9868f442c5fe25793f87f7266f --- /dev/null +++ b/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_python2-pywbem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pywbem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pywbem | grep -v \.src | grep python2-pywbem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pywbem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pywbem + CHECK_RESULT $? 0 0 "install python2-pywbem failed" + SLEEP_WAIT 1 + dnf remove -y python2-pywbem + CHECK_RESULT $? 0 0 "remove python2-pywbem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_python3-pywbem.sh b/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_python3-pywbem.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cda46e823e34d5b19c0c80ca8d02d3569a9be39 --- /dev/null +++ b/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_python3-pywbem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pywbem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pywbem | grep -v \.src | grep python3-pywbem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pywbem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pywbem + CHECK_RESULT $? 0 0 "install python3-pywbem failed" + SLEEP_WAIT 1 + dnf remove -y python3-pywbem + CHECK_RESULT $? 0 0 "remove python3-pywbem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_pywbem-twisted.sh b/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_pywbem-twisted.sh new file mode 100644 index 0000000000000000000000000000000000000000..97350d09aa469374f77849f8286e9083c32d474c --- /dev/null +++ b/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_pywbem-twisted.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pywbem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pywbem-twisted | grep -v \.src | grep pywbem-twisted + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pywbem-twisted" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pywbem-twisted + CHECK_RESULT $? 0 0 "install pywbem-twisted failed" + SLEEP_WAIT 1 + dnf remove -y pywbem-twisted + CHECK_RESULT $? 0 0 "remove pywbem-twisted failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_pywbem.sh b/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_pywbem.sh new file mode 100644 index 0000000000000000000000000000000000000000..48aa38c041b5691572486d29435c43be9e427e44 --- /dev/null +++ b/testcases/cli-test/pywbem/oe_test_pywbem_install_and_remove_pywbem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pywbem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pywbem | grep -v \.src | grep pywbem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pywbem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pywbem + CHECK_RESULT $? 0 0 "install pywbem failed" + SLEEP_WAIT 1 + dnf remove -y pywbem + CHECK_RESULT $? 0 0 "remove pywbem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_python2-pyxattr.sh b/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_python2-pyxattr.sh new file mode 100644 index 0000000000000000000000000000000000000000..efcaaf01f68e61e11eb8af56453d0c49b952f90e --- /dev/null +++ b/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_python2-pyxattr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyxattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pyxattr | grep -v \.src | grep python2-pyxattr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pyxattr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pyxattr + CHECK_RESULT $? 0 0 "install python2-pyxattr failed" + SLEEP_WAIT 1 + dnf remove -y python2-pyxattr + CHECK_RESULT $? 0 0 "remove python2-pyxattr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_python3-pyxattr.sh b/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_python3-pyxattr.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a59a38ffde00b3664d4d22e0b7b99864a6b892d --- /dev/null +++ b/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_python3-pyxattr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyxattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pyxattr | grep -v \.src | grep python3-pyxattr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pyxattr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pyxattr + CHECK_RESULT $? 0 0 "install python3-pyxattr failed" + SLEEP_WAIT 1 + dnf remove -y python3-pyxattr + CHECK_RESULT $? 0 0 "remove python3-pyxattr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_pyxattr-debuginfo.sh b/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_pyxattr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a41e63955ea287b79dcf55366a2d4ad0574ffe2 --- /dev/null +++ b/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_pyxattr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyxattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pyxattr-debuginfo | grep -v \.src | grep pyxattr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pyxattr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pyxattr-debuginfo + CHECK_RESULT $? 0 0 "install pyxattr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y pyxattr-debuginfo + CHECK_RESULT $? 0 0 "remove pyxattr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_pyxattr-debugsource.sh b/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_pyxattr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc28b782e8e53c590b16b89a332bc77be9dd9853 --- /dev/null +++ b/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_pyxattr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyxattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pyxattr-debugsource | grep -v \.src | grep pyxattr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pyxattr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pyxattr-debugsource + CHECK_RESULT $? 0 0 "install pyxattr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y pyxattr-debugsource + CHECK_RESULT $? 0 0 "remove pyxattr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_pyxattr.sh b/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_pyxattr.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b129265c592d16ba1be22986415168cd01bf08b --- /dev/null +++ b/testcases/cli-test/pyxattr/oe_test_pyxattr_install_and_remove_pyxattr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyxattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pyxattr | grep -v \.src | grep pyxattr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pyxattr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pyxattr + CHECK_RESULT $? 0 0 "install pyxattr failed" + SLEEP_WAIT 1 + dnf remove -y pyxattr + CHECK_RESULT $? 0 0 "remove pyxattr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyxdg/oe_test_pyxdg_install_and_remove_python2-pyxdg.sh b/testcases/cli-test/pyxdg/oe_test_pyxdg_install_and_remove_python2-pyxdg.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d5acbb3862a43d5ca4cf5ed3f43bbf1b1a3aca9 --- /dev/null +++ b/testcases/cli-test/pyxdg/oe_test_pyxdg_install_and_remove_python2-pyxdg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyxdg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-pyxdg | grep -v \.src | grep python2-pyxdg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-pyxdg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-pyxdg + CHECK_RESULT $? 0 0 "install python2-pyxdg failed" + SLEEP_WAIT 1 + dnf remove -y python2-pyxdg + CHECK_RESULT $? 0 0 "remove python2-pyxdg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyxdg/oe_test_pyxdg_install_and_remove_python3-pyxdg.sh b/testcases/cli-test/pyxdg/oe_test_pyxdg_install_and_remove_python3-pyxdg.sh new file mode 100644 index 0000000000000000000000000000000000000000..079b0fc6bb7182344ee910221351addc30f5d7c9 --- /dev/null +++ b/testcases/cli-test/pyxdg/oe_test_pyxdg_install_and_remove_python3-pyxdg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyxdg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pyxdg | grep -v \.src | grep python3-pyxdg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pyxdg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pyxdg + CHECK_RESULT $? 0 0 "install python3-pyxdg failed" + SLEEP_WAIT 1 + dnf remove -y python3-pyxdg + CHECK_RESULT $? 0 0 "remove python3-pyxdg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/pyxdg/oe_test_pyxdg_install_and_remove_pyxdg.sh b/testcases/cli-test/pyxdg/oe_test_pyxdg_install_and_remove_pyxdg.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ec0ae5d150b148aa1ee3f673a82d86055a83df3 --- /dev/null +++ b/testcases/cli-test/pyxdg/oe_test_pyxdg_install_and_remove_pyxdg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src pyxdg +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available pyxdg | grep -v \.src | grep pyxdg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm pyxdg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y pyxdg + CHECK_RESULT $? 0 0 "install pyxdg failed" + SLEEP_WAIT 1 + dnf remove -y pyxdg + CHECK_RESULT $? 0 0 "remove pyxdg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-common.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a2fd4e25ae923be34c62072d93c8f82ab8f281c --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-common | grep -v \.src | grep qt5-qtbase-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-common + CHECK_RESULT $? 0 0 "install qt5-qtbase-common failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-common + CHECK_RESULT $? 0 0 "remove qt5-qtbase-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-debuginfo.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..98b0e02ae95315ab3804383bd2b67166aa81d14b --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-debuginfo | grep -v \.src | grep qt5-qtbase-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-debuginfo + CHECK_RESULT $? 0 0 "install qt5-qtbase-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-debuginfo + CHECK_RESULT $? 0 0 "remove qt5-qtbase-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-debugsource.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..792709216b1d002800a2f97cdf1063cfea0edb40 --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-debugsource | grep -v \.src | grep qt5-qtbase-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-debugsource + CHECK_RESULT $? 0 0 "install qt5-qtbase-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-debugsource + CHECK_RESULT $? 0 0 "remove qt5-qtbase-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-devel.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb961817f4074fe8969a9b1883da89f1af6f3dd6 --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-devel | grep -v \.src | grep qt5-qtbase-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-devel + CHECK_RESULT $? 0 0 "install qt5-qtbase-devel failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-devel + CHECK_RESULT $? 0 0 "remove qt5-qtbase-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-examples.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-examples.sh new file mode 100644 index 0000000000000000000000000000000000000000..f627c7f86410f1c77b66f70c46bcc2773ed0dcdd --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-examples.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-examples | grep -v \.src | grep qt5-qtbase-examples + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-examples" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-examples + CHECK_RESULT $? 0 0 "install qt5-qtbase-examples failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-examples + CHECK_RESULT $? 0 0 "remove qt5-qtbase-examples failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-gui.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-gui.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0f4e312da14824e26baa46c73d936967e1161cb --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-gui.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-gui | grep -v \.src | grep qt5-qtbase-gui + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-gui" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-gui + CHECK_RESULT $? 0 0 "install qt5-qtbase-gui failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-gui + CHECK_RESULT $? 0 0 "remove qt5-qtbase-gui failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-mysql.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-mysql.sh new file mode 100644 index 0000000000000000000000000000000000000000..98c8d5cb357d2d5d33a59bd365270dfc003004e7 --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-mysql.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-mysql | grep -v \.src | grep qt5-qtbase-mysql + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-mysql" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-mysql + CHECK_RESULT $? 0 0 "install qt5-qtbase-mysql failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-mysql + CHECK_RESULT $? 0 0 "remove qt5-qtbase-mysql failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-odbc.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-odbc.sh new file mode 100644 index 0000000000000000000000000000000000000000..964bac9ae99fec5e0132eb1d74d5cfa7efb0133c --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-odbc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-odbc | grep -v \.src | grep qt5-qtbase-odbc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-odbc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-odbc + CHECK_RESULT $? 0 0 "install qt5-qtbase-odbc failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-odbc + CHECK_RESULT $? 0 0 "remove qt5-qtbase-odbc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-postgresql.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-postgresql.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1ad03629e26c12356cea204d166257bc2c2f580 --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-postgresql.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-postgresql | grep -v \.src | grep qt5-qtbase-postgresql + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-postgresql" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-postgresql + CHECK_RESULT $? 0 0 "install qt5-qtbase-postgresql failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-postgresql + CHECK_RESULT $? 0 0 "remove qt5-qtbase-postgresql failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-private-devel.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-private-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc173c386977a016ebdd9de7d50fa527a91bf40d --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-private-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-private-devel | grep -v \.src | grep qt5-qtbase-private-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-private-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-private-devel + CHECK_RESULT $? 0 0 "install qt5-qtbase-private-devel failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-private-devel + CHECK_RESULT $? 0 0 "remove qt5-qtbase-private-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-static.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..055d0566908fce685bdfae7ae3d4f43fe860e8c5 --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase-static | grep -v \.src | grep qt5-qtbase-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase-static + CHECK_RESULT $? 0 0 "install qt5-qtbase-static failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase-static + CHECK_RESULT $? 0 0 "remove qt5-qtbase-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase.sh b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e84ee3c171a7ca7a5b009b58cc62af34fb7b0b7 --- /dev/null +++ b/testcases/cli-test/qt5-qtbase/oe_test_qt5-qtbase_install_and_remove_qt5-qtbase.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5-qtbase +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-qtbase | grep -v \.src | grep qt5-qtbase + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-qtbase" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-qtbase + CHECK_RESULT $? 0 0 "install qt5-qtbase failed" + SLEEP_WAIT 1 + dnf remove -y qt5-qtbase + CHECK_RESULT $? 0 0 "remove qt5-qtbase failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5-devel.sh b/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce5c81ef99d9b871695234b781a889beac460be4 --- /dev/null +++ b/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-devel | grep -v \.src | grep qt5-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-devel + CHECK_RESULT $? 0 0 "install qt5-devel failed" + SLEEP_WAIT 1 + dnf remove -y qt5-devel + CHECK_RESULT $? 0 0 "remove qt5-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5-rpm-macros.sh b/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5-rpm-macros.sh new file mode 100644 index 0000000000000000000000000000000000000000..02c567eddac900f9607c54e8d5aae60a4142e9bb --- /dev/null +++ b/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5-rpm-macros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-rpm-macros | grep -v \.src | grep qt5-rpm-macros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-rpm-macros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-rpm-macros + CHECK_RESULT $? 0 0 "install qt5-rpm-macros failed" + SLEEP_WAIT 1 + dnf remove -y qt5-rpm-macros + CHECK_RESULT $? 0 0 "remove qt5-rpm-macros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5-srpm-macros.sh b/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5-srpm-macros.sh new file mode 100644 index 0000000000000000000000000000000000000000..9203059cfef597fe56e088c052b35e7e13d0877b --- /dev/null +++ b/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5-srpm-macros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5-srpm-macros | grep -v \.src | grep qt5-srpm-macros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5-srpm-macros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5-srpm-macros + CHECK_RESULT $? 0 0 "install qt5-srpm-macros failed" + SLEEP_WAIT 1 + dnf remove -y qt5-srpm-macros + CHECK_RESULT $? 0 0 "remove qt5-srpm-macros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5.sh b/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5.sh new file mode 100644 index 0000000000000000000000000000000000000000..576dc923a5531015c364849f97b3afa640b253fd --- /dev/null +++ b/testcases/cli-test/qt5/oe_test_qt5_install_and_remove_qt5.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src qt5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available qt5 | grep -v \.src | grep qt5 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm qt5" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y qt5 + CHECK_RESULT $? 0 0 "install qt5 failed" + SLEEP_WAIT 1 + dnf remove -y qt5 + CHECK_RESULT $? 0 0 "remove qt5 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-debuginfo.sh b/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5de87a10abf11a74e75e6832ebfebdca1cc19cc9 --- /dev/null +++ b/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src quota +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available quota-debuginfo | grep -v \.src | grep quota-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm quota-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y quota-debuginfo + CHECK_RESULT $? 0 0 "install quota-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y quota-debuginfo + CHECK_RESULT $? 0 0 "remove quota-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-debugsource.sh b/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..011c5ea07f2ace19a1988dc129316e98bbadcbcd --- /dev/null +++ b/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src quota +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available quota-debugsource | grep -v \.src | grep quota-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm quota-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y quota-debugsource + CHECK_RESULT $? 0 0 "install quota-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y quota-debugsource + CHECK_RESULT $? 0 0 "remove quota-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-devel.sh b/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..69218274defd7bdce8b00a618c6ff6b84e36dce7 --- /dev/null +++ b/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src quota +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available quota-devel | grep -v \.src | grep quota-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm quota-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y quota-devel + CHECK_RESULT $? 0 0 "install quota-devel failed" + SLEEP_WAIT 1 + dnf remove -y quota-devel + CHECK_RESULT $? 0 0 "remove quota-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-help.sh b/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fae7a2304dbafd401e9ad62eb8088a64f34bf80b --- /dev/null +++ b/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src quota +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available quota-help | grep -v \.src | grep quota-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm quota-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y quota-help + CHECK_RESULT $? 0 0 "install quota-help failed" + SLEEP_WAIT 1 + dnf remove -y quota-help + CHECK_RESULT $? 0 0 "remove quota-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota.sh b/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota.sh new file mode 100644 index 0000000000000000000000000000000000000000..04f08d1d023f7c9e8b84c51ec478915ce3935873 --- /dev/null +++ b/testcases/cli-test/quota/oe_test_quota_install_and_remove_quota.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src quota +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available quota | grep -v \.src | grep quota + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm quota" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y quota + CHECK_RESULT $? 0 0 "install quota failed" + SLEEP_WAIT 1 + dnf remove -y quota + CHECK_RESULT $? 0 0 "remove quota failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_ibacm.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_ibacm.sh new file mode 100644 index 0000000000000000000000000000000000000000..6caf39a3df97fb0152c1862e1daed4236114f782 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_ibacm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ibacm | grep -v \.src | grep ibacm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ibacm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ibacm + CHECK_RESULT $? 0 0 "install ibacm failed" + SLEEP_WAIT 1 + dnf remove -y ibacm + CHECK_RESULT $? 0 0 "remove ibacm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_infiniband-diags-compat.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_infiniband-diags-compat.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad331af960f8f50e874d07e51f6749c3c62e39c8 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_infiniband-diags-compat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available infiniband-diags-compat | grep -v \.src | grep infiniband-diags-compat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm infiniband-diags-compat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y infiniband-diags-compat + CHECK_RESULT $? 0 0 "install infiniband-diags-compat failed" + SLEEP_WAIT 1 + dnf remove -y infiniband-diags-compat + CHECK_RESULT $? 0 0 "remove infiniband-diags-compat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_infiniband-diags.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_infiniband-diags.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb464b066c26800b05e5b43e749f9b4621ef0c87 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_infiniband-diags.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available infiniband-diags | grep -v \.src | grep infiniband-diags + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm infiniband-diags" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y infiniband-diags + CHECK_RESULT $? 0 0 "install infiniband-diags failed" + SLEEP_WAIT 1 + dnf remove -y infiniband-diags + CHECK_RESULT $? 0 0 "remove infiniband-diags failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_iwpmd.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_iwpmd.sh new file mode 100644 index 0000000000000000000000000000000000000000..e76708f9ee8595d61374911d4e5555be4b3a62e0 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_iwpmd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available iwpmd | grep -v \.src | grep iwpmd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm iwpmd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y iwpmd + CHECK_RESULT $? 0 0 "install iwpmd failed" + SLEEP_WAIT 1 + dnf remove -y iwpmd + CHECK_RESULT $? 0 0 "remove iwpmd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_libibumad.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_libibumad.sh new file mode 100644 index 0000000000000000000000000000000000000000..697b0e33592fc3f39a28aab90f5a4519e94d25fc --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_libibumad.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libibumad | grep -v \.src | grep libibumad + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libibumad" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libibumad + CHECK_RESULT $? 0 0 "install libibumad failed" + SLEEP_WAIT 1 + dnf remove -y libibumad + CHECK_RESULT $? 0 0 "remove libibumad failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_libibverbs-utils.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_libibverbs-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..27530e9a3fd9b9c67cea0465e9740ee56f01be91 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_libibverbs-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libibverbs-utils | grep -v \.src | grep libibverbs-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libibverbs-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libibverbs-utils + CHECK_RESULT $? 0 0 "install libibverbs-utils failed" + SLEEP_WAIT 1 + dnf remove -y libibverbs-utils + CHECK_RESULT $? 0 0 "remove libibverbs-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_libibverbs.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_libibverbs.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ee80debb884897f99d6b19d322fe5c56c7bb748 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_libibverbs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libibverbs | grep -v \.src | grep libibverbs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libibverbs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libibverbs + CHECK_RESULT $? 0 0 "install libibverbs failed" + SLEEP_WAIT 1 + dnf remove -y libibverbs + CHECK_RESULT $? 0 0 "remove libibverbs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_librdmacm-utils.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_librdmacm-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa38184c6a64fe87cd816a365709851d9ad78ee7 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_librdmacm-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librdmacm-utils | grep -v \.src | grep librdmacm-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librdmacm-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librdmacm-utils + CHECK_RESULT $? 0 0 "install librdmacm-utils failed" + SLEEP_WAIT 1 + dnf remove -y librdmacm-utils + CHECK_RESULT $? 0 0 "remove librdmacm-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_librdmacm.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_librdmacm.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb240ba13fcb15a2ae3edd715bd3a9df51687f97 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_librdmacm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available librdmacm | grep -v \.src | grep librdmacm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm librdmacm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y librdmacm + CHECK_RESULT $? 0 0 "install librdmacm failed" + SLEEP_WAIT 1 + dnf remove -y librdmacm + CHECK_RESULT $? 0 0 "remove librdmacm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_python3-pyverbs.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_python3-pyverbs.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb7130a5ffbc8a8d244bae9f0df242dc1368a46e --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_python3-pyverbs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-pyverbs | grep -v \.src | grep python3-pyverbs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-pyverbs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-pyverbs + CHECK_RESULT $? 0 0 "install python3-pyverbs failed" + SLEEP_WAIT 1 + dnf remove -y python3-pyverbs + CHECK_RESULT $? 0 0 "remove python3-pyverbs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-debuginfo.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..892f909012ec42665d498903003e5489859de2cc --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rdma-core-debuginfo | grep -v \.src | grep rdma-core-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rdma-core-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rdma-core-debuginfo + CHECK_RESULT $? 0 0 "install rdma-core-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y rdma-core-debuginfo + CHECK_RESULT $? 0 0 "remove rdma-core-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-debugsource.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc685e579549f50d3b6edb81b4f4cc0ca6988a78 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rdma-core-debugsource | grep -v \.src | grep rdma-core-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rdma-core-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rdma-core-debugsource + CHECK_RESULT $? 0 0 "install rdma-core-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y rdma-core-debugsource + CHECK_RESULT $? 0 0 "remove rdma-core-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-devel.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..376eb204a12956a581b2ef0571b729f5887ac3ff --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rdma-core-devel | grep -v \.src | grep rdma-core-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rdma-core-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rdma-core-devel + CHECK_RESULT $? 0 0 "install rdma-core-devel failed" + SLEEP_WAIT 1 + dnf remove -y rdma-core-devel + CHECK_RESULT $? 0 0 "remove rdma-core-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-help.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..43cbb3237dd9be26ed1abd78e1997e5d4f3acfa8 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rdma-core-help | grep -v \.src | grep rdma-core-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rdma-core-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rdma-core-help + CHECK_RESULT $? 0 0 "install rdma-core-help failed" + SLEEP_WAIT 1 + dnf remove -y rdma-core-help + CHECK_RESULT $? 0 0 "remove rdma-core-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..05ee6cd0bb8f7fb48bcee4f706da70a8cb5ea118 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_rdma-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rdma-core | grep -v \.src | grep rdma-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rdma-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rdma-core + CHECK_RESULT $? 0 0 "install rdma-core failed" + SLEEP_WAIT 1 + dnf remove -y rdma-core + CHECK_RESULT $? 0 0 "remove rdma-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_srp_daemon.sh b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_srp_daemon.sh new file mode 100644 index 0000000000000000000000000000000000000000..abb51f94678df67bdc165262ae8da4c40cb3e327 --- /dev/null +++ b/testcases/cli-test/rdma-core/oe_test_rdma-core_install_and_remove_srp_daemon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rdma-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available srp_daemon | grep -v \.src | grep srp_daemon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm srp_daemon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y srp_daemon + CHECK_RESULT $? 0 0 "install srp_daemon failed" + SLEEP_WAIT 1 + dnf remove -y srp_daemon + CHECK_RESULT $? 0 0 "remove srp_daemon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-debuginfo.sh b/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5082df000d4c53b368795a91b5ff1e7a794a7712 --- /dev/null +++ b/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src readline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available readline-debuginfo | grep -v \.src | grep readline-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm readline-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y readline-debuginfo + CHECK_RESULT $? 0 0 "install readline-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y readline-debuginfo + CHECK_RESULT $? 0 0 "remove readline-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-debugsource.sh b/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..19826aa2c7aa3575d6ca86ca233dfe342805c527 --- /dev/null +++ b/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src readline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available readline-debugsource | grep -v \.src | grep readline-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm readline-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y readline-debugsource + CHECK_RESULT $? 0 0 "install readline-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y readline-debugsource + CHECK_RESULT $? 0 0 "remove readline-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-devel.sh b/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8fb6cc212f048b648b83b15d57150e7c58792b3 --- /dev/null +++ b/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src readline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available readline-devel | grep -v \.src | grep readline-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm readline-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y readline-devel + CHECK_RESULT $? 0 0 "install readline-devel failed" + SLEEP_WAIT 1 + dnf remove -y readline-devel + CHECK_RESULT $? 0 0 "remove readline-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-help.sh b/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..605a553ef05a8138caa9fbf86a0a847a5b33bb4e --- /dev/null +++ b/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src readline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available readline-help | grep -v \.src | grep readline-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm readline-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y readline-help + CHECK_RESULT $? 0 0 "install readline-help failed" + SLEEP_WAIT 1 + dnf remove -y readline-help + CHECK_RESULT $? 0 0 "remove readline-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline.sh b/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline.sh new file mode 100644 index 0000000000000000000000000000000000000000..a768a8cd57eaedfbbfdd49d768ecc837b6f16a79 --- /dev/null +++ b/testcases/cli-test/readline/oe_test_readline_install_and_remove_readline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src readline +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available readline | grep -v \.src | grep readline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm readline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y readline + CHECK_RESULT $? 0 0 "install readline failed" + SLEEP_WAIT 1 + dnf remove -y readline + CHECK_RESULT $? 0 0 "remove readline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd-debuginfo.sh b/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2f5676524654a9834ec1c96672cf97d4e1e449d --- /dev/null +++ b/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src realmd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available realmd-debuginfo | grep -v \.src | grep realmd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm realmd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y realmd-debuginfo + CHECK_RESULT $? 0 0 "install realmd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y realmd-debuginfo + CHECK_RESULT $? 0 0 "remove realmd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd-debugsource.sh b/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc80a060f41f85ebfeb0a0f06179e283bd8396c7 --- /dev/null +++ b/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src realmd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available realmd-debugsource | grep -v \.src | grep realmd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm realmd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y realmd-debugsource + CHECK_RESULT $? 0 0 "install realmd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y realmd-debugsource + CHECK_RESULT $? 0 0 "remove realmd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd-help.sh b/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..78c71294aebe0effaba797000dd8f4ad2c8c369c --- /dev/null +++ b/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src realmd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available realmd-help | grep -v \.src | grep realmd-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm realmd-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y realmd-help + CHECK_RESULT $? 0 0 "install realmd-help failed" + SLEEP_WAIT 1 + dnf remove -y realmd-help + CHECK_RESULT $? 0 0 "remove realmd-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd.sh b/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd.sh new file mode 100644 index 0000000000000000000000000000000000000000..49ae35fae7c90448fa676552cb68b4fab6480fdb --- /dev/null +++ b/testcases/cli-test/realmd/oe_test_realmd_install_and_remove_realmd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src realmd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available realmd | grep -v \.src | grep realmd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm realmd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y realmd + CHECK_RESULT $? 0 0 "install realmd failed" + SLEEP_WAIT 1 + dnf remove -y realmd + CHECK_RESULT $? 0 0 "remove realmd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/redis/oe_test_redis_install_and_remove_redis-debuginfo.sh b/testcases/cli-test/redis/oe_test_redis_install_and_remove_redis-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..46108fddb0890c547a6824480f487b2eadb3cf33 --- /dev/null +++ b/testcases/cli-test/redis/oe_test_redis_install_and_remove_redis-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src redis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available redis-debuginfo | grep -v \.src | grep redis-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm redis-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y redis-debuginfo + CHECK_RESULT $? 0 0 "install redis-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y redis-debuginfo + CHECK_RESULT $? 0 0 "remove redis-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/redis/oe_test_redis_install_and_remove_redis-debugsource.sh b/testcases/cli-test/redis/oe_test_redis_install_and_remove_redis-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2a8b0b113e6f3f5a9341456123b989c527ad0a0 --- /dev/null +++ b/testcases/cli-test/redis/oe_test_redis_install_and_remove_redis-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src redis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available redis-debugsource | grep -v \.src | grep redis-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm redis-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y redis-debugsource + CHECK_RESULT $? 0 0 "install redis-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y redis-debugsource + CHECK_RESULT $? 0 0 "remove redis-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/redis/oe_test_redis_install_and_remove_redis.sh b/testcases/cli-test/redis/oe_test_redis_install_and_remove_redis.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b8679175caee4d5f5049a43351e13408dc6ed15 --- /dev/null +++ b/testcases/cli-test/redis/oe_test_redis_install_and_remove_redis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src redis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available redis | grep -v \.src | grep redis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm redis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y redis + CHECK_RESULT $? 0 0 "install redis failed" + SLEEP_WAIT 1 + dnf remove -y redis + CHECK_RESULT $? 0 0 "remove redis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/regexp/oe_test_regexp_install_and_remove_regexp.sh b/testcases/cli-test/regexp/oe_test_regexp_install_and_remove_regexp.sh new file mode 100644 index 0000000000000000000000000000000000000000..566325a3bd4deddbc2560ff662361fcf47125186 --- /dev/null +++ b/testcases/cli-test/regexp/oe_test_regexp_install_and_remove_regexp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src regexp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available regexp | grep -v \.src | grep regexp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm regexp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y regexp + CHECK_RESULT $? 0 0 "install regexp failed" + SLEEP_WAIT 1 + dnf remove -y regexp + CHECK_RESULT $? 0 0 "remove regexp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-debuginfo.sh b/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e12c48edc5833c888d7d8ea6d9c34789d77499d --- /dev/null +++ b/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rng-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rng-tools-debuginfo | grep -v \.src | grep rng-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rng-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rng-tools-debuginfo + CHECK_RESULT $? 0 0 "install rng-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y rng-tools-debuginfo + CHECK_RESULT $? 0 0 "remove rng-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-debugsource.sh b/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e77fcd26eb0aac8818e0516e86d8620293010df --- /dev/null +++ b/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rng-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rng-tools-debugsource | grep -v \.src | grep rng-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rng-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rng-tools-debugsource + CHECK_RESULT $? 0 0 "install rng-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y rng-tools-debugsource + CHECK_RESULT $? 0 0 "remove rng-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-doc.sh b/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..97c5a1369fafedab5e119d56c63216ce9f25f3cf --- /dev/null +++ b/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rng-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rng-tools-doc | grep -v \.src | grep rng-tools-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rng-tools-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rng-tools-doc + CHECK_RESULT $? 0 0 "install rng-tools-doc failed" + SLEEP_WAIT 1 + dnf remove -y rng-tools-doc + CHECK_RESULT $? 0 0 "remove rng-tools-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-help.sh b/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9488b337a8f586bbf67bf53418603d6502b2ff50 --- /dev/null +++ b/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rng-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rng-tools-help | grep -v \.src | grep rng-tools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rng-tools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rng-tools-help + CHECK_RESULT $? 0 0 "install rng-tools-help failed" + SLEEP_WAIT 1 + dnf remove -y rng-tools-help + CHECK_RESULT $? 0 0 "remove rng-tools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools.sh b/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb99279129a6c1b95f493be626a050e6a492e74e --- /dev/null +++ b/testcases/cli-test/rng-tools/oe_test_rng-tools_install_and_remove_rng-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rng-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rng-tools | grep -v \.src | grep rng-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rng-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rng-tools + CHECK_RESULT $? 0 0 "install rng-tools failed" + SLEEP_WAIT 1 + dnf remove -y rng-tools + CHECK_RESULT $? 0 0 "remove rng-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rootfiles/oe_test_rootfiles_install_and_remove_rootfiles.sh b/testcases/cli-test/rootfiles/oe_test_rootfiles_install_and_remove_rootfiles.sh new file mode 100644 index 0000000000000000000000000000000000000000..00a52247607ed014e58e562213769f2d40ef0840 --- /dev/null +++ b/testcases/cli-test/rootfiles/oe_test_rootfiles_install_and_remove_rootfiles.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rootfiles +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rootfiles | grep -v \.src | grep rootfiles + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rootfiles" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rootfiles + CHECK_RESULT $? 0 0 "install rootfiles failed" + SLEEP_WAIT 1 + dnf remove -y rootfiles + CHECK_RESULT $? 0 0 "remove rootfiles failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind-debuginfo.sh b/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5443436cb01a66c6d7a7fa41da53b669d98c7719 --- /dev/null +++ b/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpcbind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpcbind-debuginfo | grep -v \.src | grep rpcbind-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpcbind-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpcbind-debuginfo + CHECK_RESULT $? 0 0 "install rpcbind-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y rpcbind-debuginfo + CHECK_RESULT $? 0 0 "remove rpcbind-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind-debugsource.sh b/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa88bcf6af93880d6ceed2d1baeea4acb58743a3 --- /dev/null +++ b/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpcbind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpcbind-debugsource | grep -v \.src | grep rpcbind-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpcbind-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpcbind-debugsource + CHECK_RESULT $? 0 0 "install rpcbind-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y rpcbind-debugsource + CHECK_RESULT $? 0 0 "remove rpcbind-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind-help.sh b/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a59e398c18b6565b11e638fdda41a5fe935717e --- /dev/null +++ b/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpcbind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpcbind-help | grep -v \.src | grep rpcbind-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpcbind-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpcbind-help + CHECK_RESULT $? 0 0 "install rpcbind-help failed" + SLEEP_WAIT 1 + dnf remove -y rpcbind-help + CHECK_RESULT $? 0 0 "remove rpcbind-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind.sh b/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c7bf03b2146e2517d1e6ee95c7c2ff0ab068b16 --- /dev/null +++ b/testcases/cli-test/rpcbind/oe_test_rpcbind_install_and_remove_rpcbind.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpcbind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpcbind | grep -v \.src | grep rpcbind + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpcbind" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpcbind + CHECK_RESULT $? 0 0 "install rpcbind failed" + SLEEP_WAIT 1 + dnf remove -y rpcbind + CHECK_RESULT $? 0 0 "remove rpcbind failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcgen.sh b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcgen.sh new file mode 100644 index 0000000000000000000000000000000000000000..9502e0f0cead6e6c30e4d7c9346e686f1d8168bc --- /dev/null +++ b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcgen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpcsvc-proto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpcgen | grep -v \.src | grep rpcgen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpcgen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpcgen + CHECK_RESULT $? 0 0 "install rpcgen failed" + SLEEP_WAIT 1 + dnf remove -y rpcgen + CHECK_RESULT $? 0 0 "remove rpcgen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-debuginfo.sh b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..196a70971a001b9e8e02571b2e64eb39b594abaa --- /dev/null +++ b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpcsvc-proto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpcsvc-proto-debuginfo | grep -v \.src | grep rpcsvc-proto-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpcsvc-proto-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpcsvc-proto-debuginfo + CHECK_RESULT $? 0 0 "install rpcsvc-proto-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y rpcsvc-proto-debuginfo + CHECK_RESULT $? 0 0 "remove rpcsvc-proto-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-debugsource.sh b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..932e92541e4d07a500f963bf0dd6fbe59dd8851e --- /dev/null +++ b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpcsvc-proto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpcsvc-proto-debugsource | grep -v \.src | grep rpcsvc-proto-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpcsvc-proto-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpcsvc-proto-debugsource + CHECK_RESULT $? 0 0 "install rpcsvc-proto-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y rpcsvc-proto-debugsource + CHECK_RESULT $? 0 0 "remove rpcsvc-proto-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-devel.sh b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e8d4d00690a6d1041367c1eab65eb7f88fa22b5 --- /dev/null +++ b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpcsvc-proto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpcsvc-proto-devel | grep -v \.src | grep rpcsvc-proto-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpcsvc-proto-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpcsvc-proto-devel + CHECK_RESULT $? 0 0 "install rpcsvc-proto-devel failed" + SLEEP_WAIT 1 + dnf remove -y rpcsvc-proto-devel + CHECK_RESULT $? 0 0 "remove rpcsvc-proto-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-help.sh b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e1441ec7bc5a11e662e57b3c607c2dda309e84e --- /dev/null +++ b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpcsvc-proto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpcsvc-proto-help | grep -v \.src | grep rpcsvc-proto-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpcsvc-proto-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpcsvc-proto-help + CHECK_RESULT $? 0 0 "install rpcsvc-proto-help failed" + SLEEP_WAIT 1 + dnf remove -y rpcsvc-proto-help + CHECK_RESULT $? 0 0 "remove rpcsvc-proto-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto.sh b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto.sh new file mode 100644 index 0000000000000000000000000000000000000000..828d78d0e44a36a5e29a74927be3e36d26c1eee5 --- /dev/null +++ b/testcases/cli-test/rpcsvc-proto/oe_test_rpcsvc-proto_install_and_remove_rpcsvc-proto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpcsvc-proto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpcsvc-proto | grep -v \.src | grep rpcsvc-proto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpcsvc-proto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpcsvc-proto + CHECK_RESULT $? 0 0 "install rpcsvc-proto failed" + SLEEP_WAIT 1 + dnf remove -y rpcsvc-proto + CHECK_RESULT $? 0 0 "remove rpcsvc-proto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_python2-rpm.sh b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_python2-rpm.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a7e33009b486674477920a942cf92f7383906a4 --- /dev/null +++ b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_python2-rpm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-rpm | grep -v \.src | grep python2-rpm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-rpm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-rpm + CHECK_RESULT $? 0 0 "install python2-rpm failed" + SLEEP_WAIT 1 + dnf remove -y python2-rpm + CHECK_RESULT $? 0 0 "remove python2-rpm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_python3-rpm.sh b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_python3-rpm.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0ea1bc7fe207429c973b65f9015ee140757073f --- /dev/null +++ b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_python3-rpm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-rpm | grep -v \.src | grep python3-rpm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-rpm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-rpm + CHECK_RESULT $? 0 0 "install python3-rpm failed" + SLEEP_WAIT 1 + dnf remove -y python3-rpm + CHECK_RESULT $? 0 0 "remove python3-rpm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-build.sh b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-build.sh new file mode 100644 index 0000000000000000000000000000000000000000..e26402e014ceec871ca66ac512212e8c50a0a945 --- /dev/null +++ b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-build.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpm-build | grep -v \.src | grep rpm-build + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpm-build" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpm-build + CHECK_RESULT $? 0 0 "install rpm-build failed" + SLEEP_WAIT 1 + dnf remove -y rpm-build + CHECK_RESULT $? 0 0 "remove rpm-build failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-debuginfo.sh b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8bcf8ebfd5057b838c028b649247ff080d8e18e --- /dev/null +++ b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpm-debuginfo | grep -v \.src | grep rpm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpm-debuginfo + CHECK_RESULT $? 0 0 "install rpm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y rpm-debuginfo + CHECK_RESULT $? 0 0 "remove rpm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-debugsource.sh b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3616b7fb48a1b8b04c8e3ecccc5c44445f16b677 --- /dev/null +++ b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpm-debugsource | grep -v \.src | grep rpm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpm-debugsource + CHECK_RESULT $? 0 0 "install rpm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y rpm-debugsource + CHECK_RESULT $? 0 0 "remove rpm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-devel.sh b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..005f6d82bc8a28973b622d656cbc0c4dd5818ba5 --- /dev/null +++ b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpm-devel | grep -v \.src | grep rpm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpm-devel + CHECK_RESULT $? 0 0 "install rpm-devel failed" + SLEEP_WAIT 1 + dnf remove -y rpm-devel + CHECK_RESULT $? 0 0 "remove rpm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-help.sh b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3764ec1a43f93a81923fc457bb3deef1982508ac --- /dev/null +++ b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpm-help | grep -v \.src | grep rpm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpm-help + CHECK_RESULT $? 0 0 "install rpm-help failed" + SLEEP_WAIT 1 + dnf remove -y rpm-help + CHECK_RESULT $? 0 0 "remove rpm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-libs.sh b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..4925418aedb78c279c675b0603a100dcf6bce56b --- /dev/null +++ b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpm-libs | grep -v \.src | grep rpm-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpm-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpm-libs + CHECK_RESULT $? 0 0 "install rpm-libs failed" + SLEEP_WAIT 1 + dnf remove -y rpm-libs + CHECK_RESULT $? 0 0 "remove rpm-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-plugin-systemd-inhibit.sh b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-plugin-systemd-inhibit.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e0cbaea3e411cf46012050ee3afaaacfd45077f --- /dev/null +++ b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm-plugin-systemd-inhibit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpm-plugin-systemd-inhibit | grep -v \.src | grep rpm-plugin-systemd-inhibit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpm-plugin-systemd-inhibit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpm-plugin-systemd-inhibit + CHECK_RESULT $? 0 0 "install rpm-plugin-systemd-inhibit failed" + SLEEP_WAIT 1 + dnf remove -y rpm-plugin-systemd-inhibit + CHECK_RESULT $? 0 0 "remove rpm-plugin-systemd-inhibit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm.sh b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc12c811873698619dac5d40e07f963575a6fb4a --- /dev/null +++ b/testcases/cli-test/rpm/oe_test_rpm_install_and_remove_rpm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rpm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rpm | grep -v \.src | grep rpm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rpm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rpm + CHECK_RESULT $? 0 0 "install rpm failed" + SLEEP_WAIT 1 + dnf remove -y rpm + CHECK_RESULT $? 0 0 "remove rpm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_python3-rrdtool.sh b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_python3-rrdtool.sh new file mode 100644 index 0000000000000000000000000000000000000000..1dc29ec6a14ecdd2a62c2cba86c7cc16d10974c6 --- /dev/null +++ b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_python3-rrdtool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rrdtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-rrdtool | grep -v \.src | grep python3-rrdtool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-rrdtool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-rrdtool + CHECK_RESULT $? 0 0 "install python3-rrdtool failed" + SLEEP_WAIT 1 + dnf remove -y python3-rrdtool + CHECK_RESULT $? 0 0 "remove python3-rrdtool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-debuginfo.sh b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..84eb0e3370494d0cccc62bda69e6a8d78a8672d7 --- /dev/null +++ b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rrdtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rrdtool-debuginfo | grep -v \.src | grep rrdtool-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rrdtool-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rrdtool-debuginfo + CHECK_RESULT $? 0 0 "install rrdtool-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y rrdtool-debuginfo + CHECK_RESULT $? 0 0 "remove rrdtool-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-debugsource.sh b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..699406173c3ac216be3788d2e628f69cc9548f73 --- /dev/null +++ b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rrdtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rrdtool-debugsource | grep -v \.src | grep rrdtool-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rrdtool-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rrdtool-debugsource + CHECK_RESULT $? 0 0 "install rrdtool-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y rrdtool-debugsource + CHECK_RESULT $? 0 0 "remove rrdtool-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-devel.sh b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..764a318c6f83b723b8c9cd96c83f10b2bd8f5e54 --- /dev/null +++ b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rrdtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rrdtool-devel | grep -v \.src | grep rrdtool-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rrdtool-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rrdtool-devel + CHECK_RESULT $? 0 0 "install rrdtool-devel failed" + SLEEP_WAIT 1 + dnf remove -y rrdtool-devel + CHECK_RESULT $? 0 0 "remove rrdtool-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-help.sh b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6387825c97da16d55df711db011b39926353c037 --- /dev/null +++ b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rrdtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rrdtool-help | grep -v \.src | grep rrdtool-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rrdtool-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rrdtool-help + CHECK_RESULT $? 0 0 "install rrdtool-help failed" + SLEEP_WAIT 1 + dnf remove -y rrdtool-help + CHECK_RESULT $? 0 0 "remove rrdtool-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-lua.sh b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-lua.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c8b47d14fa09807147db48cb743a1dc02e43293 --- /dev/null +++ b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-lua.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rrdtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rrdtool-lua | grep -v \.src | grep rrdtool-lua + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rrdtool-lua" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rrdtool-lua + CHECK_RESULT $? 0 0 "install rrdtool-lua failed" + SLEEP_WAIT 1 + dnf remove -y rrdtool-lua + CHECK_RESULT $? 0 0 "remove rrdtool-lua failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-perl.sh b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-perl.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e27278b639de528d72ec717a6628a5770afe026 --- /dev/null +++ b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-perl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rrdtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rrdtool-perl | grep -v \.src | grep rrdtool-perl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rrdtool-perl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rrdtool-perl + CHECK_RESULT $? 0 0 "install rrdtool-perl failed" + SLEEP_WAIT 1 + dnf remove -y rrdtool-perl + CHECK_RESULT $? 0 0 "remove rrdtool-perl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-ruby.sh b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-ruby.sh new file mode 100644 index 0000000000000000000000000000000000000000..900130fa1dbf32ddcec5a61735a71b8af54cf895 --- /dev/null +++ b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-ruby.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rrdtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rrdtool-ruby | grep -v \.src | grep rrdtool-ruby + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rrdtool-ruby" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rrdtool-ruby + CHECK_RESULT $? 0 0 "install rrdtool-ruby failed" + SLEEP_WAIT 1 + dnf remove -y rrdtool-ruby + CHECK_RESULT $? 0 0 "remove rrdtool-ruby failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-tcl.sh b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-tcl.sh new file mode 100644 index 0000000000000000000000000000000000000000..d175455614cde8a91add30cea9df971cad7018c3 --- /dev/null +++ b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool-tcl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rrdtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rrdtool-tcl | grep -v \.src | grep rrdtool-tcl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rrdtool-tcl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rrdtool-tcl + CHECK_RESULT $? 0 0 "install rrdtool-tcl failed" + SLEEP_WAIT 1 + dnf remove -y rrdtool-tcl + CHECK_RESULT $? 0 0 "remove rrdtool-tcl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool.sh b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c9320f7f2cfa32e83a3118fedffda0334fab35b --- /dev/null +++ b/testcases/cli-test/rrdtool/oe_test_rrdtool_install_and_remove_rrdtool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rrdtool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rrdtool | grep -v \.src | grep rrdtool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rrdtool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rrdtool + CHECK_RESULT $? 0 0 "install rrdtool failed" + SLEEP_WAIT 1 + dnf remove -y rrdtool + CHECK_RESULT $? 0 0 "remove rrdtool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync-debuginfo.sh b/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..382da25b3a55b7c79a8d2d4053c994167e0b227b --- /dev/null +++ b/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsync +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsync-debuginfo | grep -v \.src | grep rsync-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsync-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsync-debuginfo + CHECK_RESULT $? 0 0 "install rsync-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y rsync-debuginfo + CHECK_RESULT $? 0 0 "remove rsync-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync-debugsource.sh b/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..30bda3b843d725d43dd7a49626615a8f81c555f1 --- /dev/null +++ b/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsync +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsync-debugsource | grep -v \.src | grep rsync-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsync-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsync-debugsource + CHECK_RESULT $? 0 0 "install rsync-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y rsync-debugsource + CHECK_RESULT $? 0 0 "remove rsync-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync-help.sh b/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d42d86bd7d440fe2751f595c1685c4cf6f003f84 --- /dev/null +++ b/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsync +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsync-help | grep -v \.src | grep rsync-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsync-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsync-help + CHECK_RESULT $? 0 0 "install rsync-help failed" + SLEEP_WAIT 1 + dnf remove -y rsync-help + CHECK_RESULT $? 0 0 "remove rsync-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync.sh b/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync.sh new file mode 100644 index 0000000000000000000000000000000000000000..58581d16d47b145a699663f087ef8a9f4fef94f5 --- /dev/null +++ b/testcases/cli-test/rsync/oe_test_rsync_install_and_remove_rsync.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsync +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsync | grep -v \.src | grep rsync + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsync" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsync + CHECK_RESULT $? 0 0 "install rsync failed" + SLEEP_WAIT 1 + dnf remove -y rsync + CHECK_RESULT $? 0 0 "remove rsync failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-crypto.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-crypto.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b2dae3943c4b978abd3c3fa65d78b3001cbaad4 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-crypto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-crypto | grep -v \.src | grep rsyslog-crypto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-crypto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-crypto + CHECK_RESULT $? 0 0 "install rsyslog-crypto failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-crypto + CHECK_RESULT $? 0 0 "remove rsyslog-crypto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-debuginfo.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e559d36b5099c002c014bba0e2d00d35abc83fa6 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-debuginfo | grep -v \.src | grep rsyslog-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-debuginfo + CHECK_RESULT $? 0 0 "install rsyslog-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-debuginfo + CHECK_RESULT $? 0 0 "remove rsyslog-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-debugsource.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d3f5dab5a18be9cc527e4d652e04ced22f6db8e --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-debugsource | grep -v \.src | grep rsyslog-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-debugsource + CHECK_RESULT $? 0 0 "install rsyslog-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-debugsource + CHECK_RESULT $? 0 0 "remove rsyslog-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-doc.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c61b958cd6af910d859d4d915bdc474ebd20fc8 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-doc | grep -v \.src | grep rsyslog-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-doc + CHECK_RESULT $? 0 0 "install rsyslog-doc failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-doc + CHECK_RESULT $? 0 0 "remove rsyslog-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-elasticsearch.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-elasticsearch.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a57da2a6c2729cf6521adac9621ccb00f4edd9d --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-elasticsearch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-elasticsearch | grep -v \.src | grep rsyslog-elasticsearch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-elasticsearch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-elasticsearch + CHECK_RESULT $? 0 0 "install rsyslog-elasticsearch failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-elasticsearch + CHECK_RESULT $? 0 0 "remove rsyslog-elasticsearch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-gnutls.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-gnutls.sh new file mode 100644 index 0000000000000000000000000000000000000000..005e583ba1685f471e36db6a78f200eeea3f087a --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-gnutls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-gnutls | grep -v \.src | grep rsyslog-gnutls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-gnutls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-gnutls + CHECK_RESULT $? 0 0 "install rsyslog-gnutls failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-gnutls + CHECK_RESULT $? 0 0 "remove rsyslog-gnutls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-gssapi.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-gssapi.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff9fabb3f10b6bf960eedd5061b2329132be76fb --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-gssapi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-gssapi | grep -v \.src | grep rsyslog-gssapi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-gssapi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-gssapi + CHECK_RESULT $? 0 0 "install rsyslog-gssapi failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-gssapi + CHECK_RESULT $? 0 0 "remove rsyslog-gssapi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-help.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..59aa0e4db003f874b1d23f6c339baee0170e0bba --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-help | grep -v \.src | grep rsyslog-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-help + CHECK_RESULT $? 0 0 "install rsyslog-help failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-help + CHECK_RESULT $? 0 0 "remove rsyslog-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-hiredis.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-hiredis.sh new file mode 100644 index 0000000000000000000000000000000000000000..c74b58c6952714aa812b37bb73199a837a8c0fa1 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-hiredis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-hiredis | grep -v \.src | grep rsyslog-hiredis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-hiredis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-hiredis + CHECK_RESULT $? 0 0 "install rsyslog-hiredis failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-hiredis + CHECK_RESULT $? 0 0 "remove rsyslog-hiredis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-kafka.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-kafka.sh new file mode 100644 index 0000000000000000000000000000000000000000..1de7de0c83c364ebbbceb8699112d4161c9d9cf6 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-kafka.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-kafka | grep -v \.src | grep rsyslog-kafka + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-kafka" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-kafka + CHECK_RESULT $? 0 0 "install rsyslog-kafka failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-kafka + CHECK_RESULT $? 0 0 "remove rsyslog-kafka failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmaudit.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmaudit.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f7d1693c70a3c1132aade46465d04800c001c82 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmaudit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-mmaudit | grep -v \.src | grep rsyslog-mmaudit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-mmaudit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-mmaudit + CHECK_RESULT $? 0 0 "install rsyslog-mmaudit failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-mmaudit + CHECK_RESULT $? 0 0 "remove rsyslog-mmaudit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmjsonparse.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmjsonparse.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd861cb9bf500c6037e77d5072f7c368c519a2f3 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmjsonparse.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-mmjsonparse | grep -v \.src | grep rsyslog-mmjsonparse + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-mmjsonparse" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-mmjsonparse + CHECK_RESULT $? 0 0 "install rsyslog-mmjsonparse failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-mmjsonparse + CHECK_RESULT $? 0 0 "remove rsyslog-mmjsonparse failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmkubernetes.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmkubernetes.sh new file mode 100644 index 0000000000000000000000000000000000000000..4016ebc45517199ab698e21b28ce5fc67dedae1a --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmkubernetes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-mmkubernetes | grep -v \.src | grep rsyslog-mmkubernetes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-mmkubernetes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-mmkubernetes + CHECK_RESULT $? 0 0 "install rsyslog-mmkubernetes failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-mmkubernetes + CHECK_RESULT $? 0 0 "remove rsyslog-mmkubernetes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmnormalize.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmnormalize.sh new file mode 100644 index 0000000000000000000000000000000000000000..aad073abcce7b7f5a95927892b80b2c6d9ef89e2 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmnormalize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-mmnormalize | grep -v \.src | grep rsyslog-mmnormalize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-mmnormalize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-mmnormalize + CHECK_RESULT $? 0 0 "install rsyslog-mmnormalize failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-mmnormalize + CHECK_RESULT $? 0 0 "remove rsyslog-mmnormalize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmsnmptrapd.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmsnmptrapd.sh new file mode 100644 index 0000000000000000000000000000000000000000..4dc524ab9c38dcb1af67de878e96571137f4933f --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmsnmptrapd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-mmsnmptrapd | grep -v \.src | grep rsyslog-mmsnmptrapd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-mmsnmptrapd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-mmsnmptrapd + CHECK_RESULT $? 0 0 "install rsyslog-mmsnmptrapd failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-mmsnmptrapd + CHECK_RESULT $? 0 0 "remove rsyslog-mmsnmptrapd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmtaghostname.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmtaghostname.sh new file mode 100644 index 0000000000000000000000000000000000000000..2047f227b10770ca320154ef3c02c69d303eacf3 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mmtaghostname.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-mmtaghostname | grep -v \.src | grep rsyslog-mmtaghostname + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-mmtaghostname" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-mmtaghostname + CHECK_RESULT $? 0 0 "install rsyslog-mmtaghostname failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-mmtaghostname + CHECK_RESULT $? 0 0 "remove rsyslog-mmtaghostname failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mongodb.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mongodb.sh new file mode 100644 index 0000000000000000000000000000000000000000..88e4ad24426be1e3e5525647b8072b50f26428d2 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mongodb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-mongodb | grep -v \.src | grep rsyslog-mongodb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-mongodb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-mongodb + CHECK_RESULT $? 0 0 "install rsyslog-mongodb failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-mongodb + CHECK_RESULT $? 0 0 "remove rsyslog-mongodb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mysql.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mysql.sh new file mode 100644 index 0000000000000000000000000000000000000000..2830f0c15c504fd34cf394f9f617923282d33e40 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-mysql.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-mysql | grep -v \.src | grep rsyslog-mysql + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-mysql" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-mysql + CHECK_RESULT $? 0 0 "install rsyslog-mysql failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-mysql + CHECK_RESULT $? 0 0 "remove rsyslog-mysql failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-omamqp1.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-omamqp1.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe62243ee2119bf1bff2d16325abc509d63a8a1e --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-omamqp1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-omamqp1 | grep -v \.src | grep rsyslog-omamqp1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-omamqp1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-omamqp1 + CHECK_RESULT $? 0 0 "install rsyslog-omamqp1 failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-omamqp1 + CHECK_RESULT $? 0 0 "remove rsyslog-omamqp1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-pgsql.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-pgsql.sh new file mode 100644 index 0000000000000000000000000000000000000000..27206d36382b220ead8a2f049c331cce3fea1750 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-pgsql.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-pgsql | grep -v \.src | grep rsyslog-pgsql + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-pgsql" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-pgsql + CHECK_RESULT $? 0 0 "install rsyslog-pgsql failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-pgsql + CHECK_RESULT $? 0 0 "remove rsyslog-pgsql failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-rabbitmq.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-rabbitmq.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc726e4509039461ceeaec70456f2126c6a96d74 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-rabbitmq.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-rabbitmq | grep -v \.src | grep rsyslog-rabbitmq + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-rabbitmq" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-rabbitmq + CHECK_RESULT $? 0 0 "install rsyslog-rabbitmq failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-rabbitmq + CHECK_RESULT $? 0 0 "remove rsyslog-rabbitmq failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-relp.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-relp.sh new file mode 100644 index 0000000000000000000000000000000000000000..e37f4efa23df0b5fb00c6be77e0fbdc465cc33fd --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-relp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-relp | grep -v \.src | grep rsyslog-relp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-relp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-relp + CHECK_RESULT $? 0 0 "install rsyslog-relp failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-relp + CHECK_RESULT $? 0 0 "remove rsyslog-relp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-snmp.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-snmp.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9d733932c6633cfcb460797b0dbe0f5b90834cf --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-snmp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-snmp | grep -v \.src | grep rsyslog-snmp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-snmp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-snmp + CHECK_RESULT $? 0 0 "install rsyslog-snmp failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-snmp + CHECK_RESULT $? 0 0 "remove rsyslog-snmp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-udpspoof.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-udpspoof.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fc2a14736e7e9f8888c9268549bbeb5b170f95c --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog-udpspoof.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog-udpspoof | grep -v \.src | grep rsyslog-udpspoof + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog-udpspoof" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog-udpspoof + CHECK_RESULT $? 0 0 "install rsyslog-udpspoof failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog-udpspoof + CHECK_RESULT $? 0 0 "remove rsyslog-udpspoof failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog.sh b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d9e4ebd2e70cc89475afe44f918ac2190c16c37 --- /dev/null +++ b/testcases/cli-test/rsyslog/oe_test_rsyslog_install_and_remove_rsyslog.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rsyslog +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rsyslog | grep -v \.src | grep rsyslog + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rsyslog" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rsyslog + CHECK_RESULT $? 0 0 "install rsyslog failed" + SLEEP_WAIT 1 + dnf remove -y rsyslog + CHECK_RESULT $? 0 0 "remove rsyslog failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-bundled-gems.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-bundled-gems.sh new file mode 100644 index 0000000000000000000000000000000000000000..5eab3012b80771a0373d68817f132c48ef4e5eca --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-bundled-gems.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ruby-bundled-gems | grep -v \.src | grep ruby-bundled-gems + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ruby-bundled-gems" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ruby-bundled-gems + CHECK_RESULT $? 0 0 "install ruby-bundled-gems failed" + SLEEP_WAIT 1 + dnf remove -y ruby-bundled-gems + CHECK_RESULT $? 0 0 "remove ruby-bundled-gems failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-debuginfo.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a1ecc70e3dcbf4c6642de1347e9c2333a6e763d5 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ruby-debuginfo | grep -v \.src | grep ruby-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ruby-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ruby-debuginfo + CHECK_RESULT $? 0 0 "install ruby-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ruby-debuginfo + CHECK_RESULT $? 0 0 "remove ruby-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-debugsource.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f4430af09a7b9b7c28e4db8f062ace1695ca075 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ruby-debugsource | grep -v \.src | grep ruby-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ruby-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ruby-debugsource + CHECK_RESULT $? 0 0 "install ruby-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ruby-debugsource + CHECK_RESULT $? 0 0 "remove ruby-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-devel.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e08191dbdd91f4cdee06e704b2ac81a9eb523c5 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ruby-devel | grep -v \.src | grep ruby-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ruby-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ruby-devel + CHECK_RESULT $? 0 0 "install ruby-devel failed" + SLEEP_WAIT 1 + dnf remove -y ruby-devel + CHECK_RESULT $? 0 0 "remove ruby-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-help.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..112ff68f52a2772bd0b8ec3578fba65223f45309 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ruby-help | grep -v \.src | grep ruby-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ruby-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ruby-help + CHECK_RESULT $? 0 0 "install ruby-help failed" + SLEEP_WAIT 1 + dnf remove -y ruby-help + CHECK_RESULT $? 0 0 "remove ruby-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-irb.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-irb.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6e1a79858318c66dce81a370544a60c21c10a4d --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby-irb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ruby-irb | grep -v \.src | grep ruby-irb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ruby-irb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ruby-irb + CHECK_RESULT $? 0 0 "install ruby-irb failed" + SLEEP_WAIT 1 + dnf remove -y ruby-irb + CHECK_RESULT $? 0 0 "remove ruby-irb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5f3b3ff5481867fe3898e8a1e3ccd84e0cd6837 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_ruby.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ruby | grep -v \.src | grep ruby + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ruby" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ruby + CHECK_RESULT $? 0 0 "install ruby failed" + SLEEP_WAIT 1 + dnf remove -y ruby + CHECK_RESULT $? 0 0 "remove ruby failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-bigdecimal.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-bigdecimal.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2076af268d72791463912c2136cdd9811482878 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-bigdecimal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-bigdecimal | grep -v \.src | grep rubygem-bigdecimal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-bigdecimal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-bigdecimal + CHECK_RESULT $? 0 0 "install rubygem-bigdecimal failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-bigdecimal + CHECK_RESULT $? 0 0 "remove rubygem-bigdecimal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-bundler.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-bundler.sh new file mode 100644 index 0000000000000000000000000000000000000000..303572deefae454be51c4a32826a2edb3e273d02 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-bundler.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-bundler | grep -v \.src | grep rubygem-bundler + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-bundler" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-bundler + CHECK_RESULT $? 0 0 "install rubygem-bundler failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-bundler + CHECK_RESULT $? 0 0 "remove rubygem-bundler failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-did_you_mean.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-did_you_mean.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd0b67cd3da5d51399e77f6b0973d571e766d713 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-did_you_mean.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-did_you_mean | grep -v \.src | grep rubygem-did_you_mean + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-did_you_mean" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-did_you_mean + CHECK_RESULT $? 0 0 "install rubygem-did_you_mean failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-did_you_mean + CHECK_RESULT $? 0 0 "remove rubygem-did_you_mean failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-io-console.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-io-console.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef81c1472603154d0226a27527644fe6d3c419d6 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-io-console.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-io-console | grep -v \.src | grep rubygem-io-console + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-io-console" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-io-console + CHECK_RESULT $? 0 0 "install rubygem-io-console failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-io-console + CHECK_RESULT $? 0 0 "remove rubygem-io-console failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-json.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-json.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbd6c76aa879901b028ea60d0542b64125ee8e07 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-json.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-json | grep -v \.src | grep rubygem-json + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-json" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-json + CHECK_RESULT $? 0 0 "install rubygem-json failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-json + CHECK_RESULT $? 0 0 "remove rubygem-json failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-minitest.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-minitest.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a778e75fdd009e7de9648620d14baa65a9248b4 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-minitest.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-minitest | grep -v \.src | grep rubygem-minitest + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-minitest" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-minitest + CHECK_RESULT $? 0 0 "install rubygem-minitest failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-minitest + CHECK_RESULT $? 0 0 "remove rubygem-minitest failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-net-telnet.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-net-telnet.sh new file mode 100644 index 0000000000000000000000000000000000000000..e13f1d22520dee42e8bdc8e9c3d5ea25681a2939 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-net-telnet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-net-telnet | grep -v \.src | grep rubygem-net-telnet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-net-telnet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-net-telnet + CHECK_RESULT $? 0 0 "install rubygem-net-telnet failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-net-telnet + CHECK_RESULT $? 0 0 "remove rubygem-net-telnet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-openssl.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-openssl.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f4c8b2fb98183e2c11fdcf15f5e1a65f74f80f7 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-openssl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-openssl | grep -v \.src | grep rubygem-openssl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-openssl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-openssl + CHECK_RESULT $? 0 0 "install rubygem-openssl failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-openssl + CHECK_RESULT $? 0 0 "remove rubygem-openssl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-power_assert.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-power_assert.sh new file mode 100644 index 0000000000000000000000000000000000000000..3dd30542aaeca2a5af92a0cb20788da105beb34e --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-power_assert.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-power_assert | grep -v \.src | grep rubygem-power_assert + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-power_assert" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-power_assert + CHECK_RESULT $? 0 0 "install rubygem-power_assert failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-power_assert + CHECK_RESULT $? 0 0 "remove rubygem-power_assert failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-psych.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-psych.sh new file mode 100644 index 0000000000000000000000000000000000000000..49b0b67cb11d8dbbaceeec45fe7df728117246b2 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-psych.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-psych | grep -v \.src | grep rubygem-psych + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-psych" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-psych + CHECK_RESULT $? 0 0 "install rubygem-psych failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-psych + CHECK_RESULT $? 0 0 "remove rubygem-psych failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rake.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rake.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa9d7a4951b7d7639247b6205a0aefa34f1866d0 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rake.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-rake | grep -v \.src | grep rubygem-rake + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-rake" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-rake + CHECK_RESULT $? 0 0 "install rubygem-rake failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-rake + CHECK_RESULT $? 0 0 "remove rubygem-rake failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rbs.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rbs.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1381598110685ab81f652a7382f4c225522c5cc --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rbs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-rbs | grep -v \.src | grep rubygem-rbs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-rbs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-rbs + CHECK_RESULT $? 0 0 "install rubygem-rbs failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-rbs + CHECK_RESULT $? 0 0 "remove rubygem-rbs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rdoc.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rdoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..66c6af2f4a471eace764a26016c0555e24809d39 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rdoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-rdoc | grep -v \.src | grep rubygem-rdoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-rdoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-rdoc + CHECK_RESULT $? 0 0 "install rubygem-rdoc failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-rdoc + CHECK_RESULT $? 0 0 "remove rubygem-rdoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rexml.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rexml.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f7dc0bff53947a542e22575aff709705f9925b3 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rexml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-rexml | grep -v \.src | grep rubygem-rexml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-rexml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-rexml + CHECK_RESULT $? 0 0 "install rubygem-rexml failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-rexml + CHECK_RESULT $? 0 0 "remove rubygem-rexml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rss.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rss.sh new file mode 100644 index 0000000000000000000000000000000000000000..76c7d7f5b52e992c32999bd6c3d30f1c0934c436 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-rss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-rss | grep -v \.src | grep rubygem-rss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-rss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-rss + CHECK_RESULT $? 0 0 "install rubygem-rss failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-rss + CHECK_RESULT $? 0 0 "remove rubygem-rss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-test-unit.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-test-unit.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfe35356b12f9af4f7ec8df01cffb21f213e153a --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-test-unit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-test-unit | grep -v \.src | grep rubygem-test-unit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-test-unit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-test-unit + CHECK_RESULT $? 0 0 "install rubygem-test-unit failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-test-unit + CHECK_RESULT $? 0 0 "remove rubygem-test-unit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-typeprof.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-typeprof.sh new file mode 100644 index 0000000000000000000000000000000000000000..c91b8f656f1fcf5426403f66904f0186b1cbc39d --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-typeprof.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-typeprof | grep -v \.src | grep rubygem-typeprof + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-typeprof" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-typeprof + CHECK_RESULT $? 0 0 "install rubygem-typeprof failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-typeprof + CHECK_RESULT $? 0 0 "remove rubygem-typeprof failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-xmlrpc.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-xmlrpc.sh new file mode 100644 index 0000000000000000000000000000000000000000..47c721b8f0758aa20b1788558eb1ca76d16ff3f7 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygem-xmlrpc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-xmlrpc | grep -v \.src | grep rubygem-xmlrpc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-xmlrpc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-xmlrpc + CHECK_RESULT $? 0 0 "install rubygem-xmlrpc failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-xmlrpc + CHECK_RESULT $? 0 0 "remove rubygem-xmlrpc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygems-devel.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygems-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..56018685a8b5caf27eff09e8ad50350e6294e32a --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygems-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygems-devel | grep -v \.src | grep rubygems-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygems-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygems-devel + CHECK_RESULT $? 0 0 "install rubygems-devel failed" + SLEEP_WAIT 1 + dnf remove -y rubygems-devel + CHECK_RESULT $? 0 0 "remove rubygems-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygems.sh b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygems.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b2f7b2e9e9fca65549f487df0f3cdd39b8fc234 --- /dev/null +++ b/testcases/cli-test/ruby/oe_test_ruby_install_and_remove_rubygems.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ruby +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygems | grep -v \.src | grep rubygems + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygems" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygems + CHECK_RESULT $? 0 0 "install rubygems failed" + SLEEP_WAIT 1 + dnf remove -y rubygems + CHECK_RESULT $? 0 0 "remove rubygems failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rubygem-asciidoctor/oe_test_rubygem-asciidoctor_install_and_remove_rubygem-asciidoctor-help.sh b/testcases/cli-test/rubygem-asciidoctor/oe_test_rubygem-asciidoctor_install_and_remove_rubygem-asciidoctor-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6aac2413fe56898da7dba9d5157ba5f126b64fe --- /dev/null +++ b/testcases/cli-test/rubygem-asciidoctor/oe_test_rubygem-asciidoctor_install_and_remove_rubygem-asciidoctor-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rubygem-asciidoctor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-asciidoctor-help | grep -v \.src | grep rubygem-asciidoctor-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-asciidoctor-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-asciidoctor-help + CHECK_RESULT $? 0 0 "install rubygem-asciidoctor-help failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-asciidoctor-help + CHECK_RESULT $? 0 0 "remove rubygem-asciidoctor-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rubygem-asciidoctor/oe_test_rubygem-asciidoctor_install_and_remove_rubygem-asciidoctor.sh b/testcases/cli-test/rubygem-asciidoctor/oe_test_rubygem-asciidoctor_install_and_remove_rubygem-asciidoctor.sh new file mode 100644 index 0000000000000000000000000000000000000000..2557b5174a367698496afaaa039a326034df233e --- /dev/null +++ b/testcases/cli-test/rubygem-asciidoctor/oe_test_rubygem-asciidoctor_install_and_remove_rubygem-asciidoctor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rubygem-asciidoctor +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-asciidoctor | grep -v \.src | grep rubygem-asciidoctor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-asciidoctor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-asciidoctor + CHECK_RESULT $? 0 0 "install rubygem-asciidoctor failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-asciidoctor + CHECK_RESULT $? 0 0 "remove rubygem-asciidoctor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rubygem-ronn-ng/oe_test_rubygem-ronn-ng_install_and_remove_rubygem-ronn-ng-doc.sh b/testcases/cli-test/rubygem-ronn-ng/oe_test_rubygem-ronn-ng_install_and_remove_rubygem-ronn-ng-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2639c5b26a58dc66cc3e393f9018ac4d992ba96b --- /dev/null +++ b/testcases/cli-test/rubygem-ronn-ng/oe_test_rubygem-ronn-ng_install_and_remove_rubygem-ronn-ng-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rubygem-ronn-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-ronn-ng-doc | grep -v \.src | grep rubygem-ronn-ng-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-ronn-ng-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-ronn-ng-doc + CHECK_RESULT $? 0 0 "install rubygem-ronn-ng-doc failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-ronn-ng-doc + CHECK_RESULT $? 0 0 "remove rubygem-ronn-ng-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rubygem-ronn-ng/oe_test_rubygem-ronn-ng_install_and_remove_rubygem-ronn-ng.sh b/testcases/cli-test/rubygem-ronn-ng/oe_test_rubygem-ronn-ng_install_and_remove_rubygem-ronn-ng.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bbfb5d857d411c6ae95fb1bdb8d20e8860fe402 --- /dev/null +++ b/testcases/cli-test/rubygem-ronn-ng/oe_test_rubygem-ronn-ng_install_and_remove_rubygem-ronn-ng.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rubygem-ronn-ng +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rubygem-ronn-ng | grep -v \.src | grep rubygem-ronn-ng + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rubygem-ronn-ng" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rubygem-ronn-ng + CHECK_RESULT $? 0 0 "install rubygem-ronn-ng failed" + SLEEP_WAIT 1 + dnf remove -y rubygem-ronn-ng + CHECK_RESULT $? 0 0 "remove rubygem-ronn-ng failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_cargo-doc.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_cargo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2ba616e0d9508bf372b72665472cb6b3f2469e8 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_cargo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cargo-doc | grep -v \.src | grep cargo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cargo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cargo-doc + CHECK_RESULT $? 0 0 "install cargo-doc failed" + SLEEP_WAIT 1 + dnf remove -y cargo-doc + CHECK_RESULT $? 0 0 "remove cargo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_cargo.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_cargo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b071e9afc6a5a72970ef64bb9cd793434f246165 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_cargo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available cargo | grep -v \.src | grep cargo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm cargo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y cargo + CHECK_RESULT $? 0 0 "install cargo failed" + SLEEP_WAIT 1 + dnf remove -y cargo + CHECK_RESULT $? 0 0 "remove cargo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_clippy-preview.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_clippy-preview.sh new file mode 100644 index 0000000000000000000000000000000000000000..e861c8d857f57e66466ed254c58634aef6d32914 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_clippy-preview.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available clippy-preview | grep -v \.src | grep clippy-preview + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm clippy-preview" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y clippy-preview + CHECK_RESULT $? 0 0 "install clippy-preview failed" + SLEEP_WAIT 1 + dnf remove -y clippy-preview + CHECK_RESULT $? 0 0 "remove clippy-preview failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_clippy.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_clippy.sh new file mode 100644 index 0000000000000000000000000000000000000000..2154a56b3c40d3d53d2a0f1d1281785632fdbd56 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_clippy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available clippy | grep -v \.src | grep clippy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm clippy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y clippy + CHECK_RESULT $? 0 0 "install clippy failed" + SLEEP_WAIT 1 + dnf remove -y clippy + CHECK_RESULT $? 0 0 "remove clippy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rls-preview.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rls-preview.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe8eb0140c3492675b9a9ac40a879b484b7b6846 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rls-preview.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rls-preview | grep -v \.src | grep rls-preview + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rls-preview" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rls-preview + CHECK_RESULT $? 0 0 "install rls-preview failed" + SLEEP_WAIT 1 + dnf remove -y rls-preview + CHECK_RESULT $? 0 0 "remove rls-preview failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rls.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rls.sh new file mode 100644 index 0000000000000000000000000000000000000000..55b0507c8acdf1fb2778a251e7a2f1d28d8b0bca --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rls | grep -v \.src | grep rls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rls + CHECK_RESULT $? 0 0 "install rls failed" + SLEEP_WAIT 1 + dnf remove -y rls + CHECK_RESULT $? 0 0 "remove rls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-analysis.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-analysis.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab729fdf5c74d3d771f6f9a9e0a875ffdecaa4c8 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-analysis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-analysis | grep -v \.src | grep rust-analysis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-analysis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-analysis + CHECK_RESULT $? 0 0 "install rust-analysis failed" + SLEEP_WAIT 1 + dnf remove -y rust-analysis + CHECK_RESULT $? 0 0 "remove rust-analysis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-analyzer.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-analyzer.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3d79725ed52e1730ee3bd5cabf69f3412fdffd4 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-analyzer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-analyzer | grep -v \.src | grep rust-analyzer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-analyzer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-analyzer + CHECK_RESULT $? 0 0 "install rust-analyzer failed" + SLEEP_WAIT 1 + dnf remove -y rust-analyzer + CHECK_RESULT $? 0 0 "remove rust-analyzer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-debugger-common.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-debugger-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d90df989ac8370f248d7d41c986cb36bfbb79b9 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-debugger-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-debugger-common | grep -v \.src | grep rust-debugger-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-debugger-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-debugger-common + CHECK_RESULT $? 0 0 "install rust-debugger-common failed" + SLEEP_WAIT 1 + dnf remove -y rust-debugger-common + CHECK_RESULT $? 0 0 "remove rust-debugger-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-debuginfo.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..46e8446c4b26968d60297e89116c25fb85bc5cd2 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-debuginfo | grep -v \.src | grep rust-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-debuginfo + CHECK_RESULT $? 0 0 "install rust-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y rust-debuginfo + CHECK_RESULT $? 0 0 "remove rust-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-debugsource.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ebcd174d47ad62488dd7a55b9db7f74beb30b14 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-debugsource | grep -v \.src | grep rust-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-debugsource + CHECK_RESULT $? 0 0 "install rust-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y rust-debugsource + CHECK_RESULT $? 0 0 "remove rust-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-devel.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a4641421d9001cbcb1c16e45a5d640eb18c3000 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-devel | grep -v \.src | grep rust-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-devel + CHECK_RESULT $? 0 0 "install rust-devel failed" + SLEEP_WAIT 1 + dnf remove -y rust-devel + CHECK_RESULT $? 0 0 "remove rust-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-doc.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..385020bc3719de8032f83f733c5c2a19376f0738 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-doc | grep -v \.src | grep rust-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-doc + CHECK_RESULT $? 0 0 "install rust-doc failed" + SLEEP_WAIT 1 + dnf remove -y rust-doc + CHECK_RESULT $? 0 0 "remove rust-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-gdb.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-gdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..28a40a0e8137930602174e8d41759d3fe3b161bc --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-gdb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-gdb | grep -v \.src | grep rust-gdb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-gdb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-gdb + CHECK_RESULT $? 0 0 "install rust-gdb failed" + SLEEP_WAIT 1 + dnf remove -y rust-gdb + CHECK_RESULT $? 0 0 "remove rust-gdb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-help.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..106385c8316201e361cc36d6ac2d15d810fc4384 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-help | grep -v \.src | grep rust-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-help + CHECK_RESULT $? 0 0 "install rust-help failed" + SLEEP_WAIT 1 + dnf remove -y rust-help + CHECK_RESULT $? 0 0 "remove rust-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-lldb.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-lldb.sh new file mode 100644 index 0000000000000000000000000000000000000000..e235f2cf8dc16270590344035d5131ceff5e5461 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-lldb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-lldb | grep -v \.src | grep rust-lldb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-lldb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-lldb + CHECK_RESULT $? 0 0 "install rust-lldb failed" + SLEEP_WAIT 1 + dnf remove -y rust-lldb + CHECK_RESULT $? 0 0 "remove rust-lldb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-src.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-src.sh new file mode 100644 index 0000000000000000000000000000000000000000..740f73badf4888188a515cbba89f2b97c238a0e3 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-src.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-src | grep -v \.src | grep rust-src + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-src" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-src + CHECK_RESULT $? 0 0 "install rust-src failed" + SLEEP_WAIT 1 + dnf remove -y rust-src + CHECK_RESULT $? 0 0 "remove rust-src failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-std-static.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-std-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..15f7b414b2436d2052b0344fca4ba4e22b3d9eaa --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust-std-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust-std-static | grep -v \.src | grep rust-std-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust-std-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust-std-static + CHECK_RESULT $? 0 0 "install rust-std-static failed" + SLEEP_WAIT 1 + dnf remove -y rust-std-static + CHECK_RESULT $? 0 0 "remove rust-std-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5e2fb209cd9e4b004963927dcf4712bb732dae2 --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rust.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rust | grep -v \.src | grep rust + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rust" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rust + CHECK_RESULT $? 0 0 "install rust failed" + SLEEP_WAIT 1 + dnf remove -y rust + CHECK_RESULT $? 0 0 "remove rust failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rustfmt-preview.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rustfmt-preview.sh new file mode 100644 index 0000000000000000000000000000000000000000..a326d2959f305ae8a508a3e85878deaf1cf6017e --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rustfmt-preview.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rustfmt-preview | grep -v \.src | grep rustfmt-preview + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rustfmt-preview" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rustfmt-preview + CHECK_RESULT $? 0 0 "install rustfmt-preview failed" + SLEEP_WAIT 1 + dnf remove -y rustfmt-preview + CHECK_RESULT $? 0 0 "remove rustfmt-preview failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/rust/oe_test_rust_install_and_remove_rustfmt.sh b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rustfmt.sh new file mode 100644 index 0000000000000000000000000000000000000000..2429659a9fe8af92e3c1a512dece89bc4fb84b0f --- /dev/null +++ b/testcases/cli-test/rust/oe_test_rust_install_and_remove_rustfmt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src rust +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available rustfmt | grep -v \.src | grep rustfmt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm rustfmt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y rustfmt + CHECK_RESULT $? 0 0 "install rustfmt failed" + SLEEP_WAIT 1 + dnf remove -y rustfmt + CHECK_RESULT $? 0 0 "remove rustfmt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_ctdb-tests.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_ctdb-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..0abf4145db5db500ff6d3b3c396fea9493ce272a --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_ctdb-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ctdb-tests | grep -v \.src | grep ctdb-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ctdb-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ctdb-tests + CHECK_RESULT $? 0 0 "install ctdb-tests failed" + SLEEP_WAIT 1 + dnf remove -y ctdb-tests + CHECK_RESULT $? 0 0 "remove ctdb-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_ctdb.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_ctdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..66cd2dc74aad7ceb0d68b4597364c7a2586c843d --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_ctdb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ctdb | grep -v \.src | grep ctdb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ctdb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ctdb + CHECK_RESULT $? 0 0 "install ctdb failed" + SLEEP_WAIT 1 + dnf remove -y ctdb + CHECK_RESULT $? 0 0 "remove ctdb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_libsmbclient-devel.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_libsmbclient-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e632409407a30a16ddc3e7003dda0b305cee0c7 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_libsmbclient-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsmbclient-devel | grep -v \.src | grep libsmbclient-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsmbclient-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsmbclient-devel + CHECK_RESULT $? 0 0 "install libsmbclient-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsmbclient-devel + CHECK_RESULT $? 0 0 "remove libsmbclient-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_libsmbclient.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_libsmbclient.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdbb2676bf012f170162aa8b452065207c7803e3 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_libsmbclient.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsmbclient | grep -v \.src | grep libsmbclient + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsmbclient" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsmbclient + CHECK_RESULT $? 0 0 "install libsmbclient failed" + SLEEP_WAIT 1 + dnf remove -y libsmbclient + CHECK_RESULT $? 0 0 "remove libsmbclient failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_libwbclient-devel.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_libwbclient-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd7d96bbb625f704612473f40b207ccd2fc9e2f8 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_libwbclient-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwbclient-devel | grep -v \.src | grep libwbclient-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwbclient-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwbclient-devel + CHECK_RESULT $? 0 0 "install libwbclient-devel failed" + SLEEP_WAIT 1 + dnf remove -y libwbclient-devel + CHECK_RESULT $? 0 0 "remove libwbclient-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_libwbclient.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_libwbclient.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd2c680de61abd34edbe7f1e955ec1c473ef6eed --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_libwbclient.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libwbclient | grep -v \.src | grep libwbclient + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libwbclient" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libwbclient + CHECK_RESULT $? 0 0 "install libwbclient failed" + SLEEP_WAIT 1 + dnf remove -y libwbclient + CHECK_RESULT $? 0 0 "remove libwbclient failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_python3-samba-dc.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_python3-samba-dc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d61a0f04fe54f95f0bd1ef5090d5bece5e1c08b7 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_python3-samba-dc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-samba-dc | grep -v \.src | grep python3-samba-dc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-samba-dc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-samba-dc + CHECK_RESULT $? 0 0 "install python3-samba-dc failed" + SLEEP_WAIT 1 + dnf remove -y python3-samba-dc + CHECK_RESULT $? 0 0 "remove python3-samba-dc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_python3-samba-test.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_python3-samba-test.sh new file mode 100644 index 0000000000000000000000000000000000000000..a602c38995bbfcf7d21438ba9cb67fe7dfad9674 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_python3-samba-test.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-samba-test | grep -v \.src | grep python3-samba-test + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-samba-test" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-samba-test + CHECK_RESULT $? 0 0 "install python3-samba-test failed" + SLEEP_WAIT 1 + dnf remove -y python3-samba-test + CHECK_RESULT $? 0 0 "remove python3-samba-test failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_python3-samba.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_python3-samba.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9229e723f407abfdded57d3536400ff7c502299 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_python3-samba.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-samba | grep -v \.src | grep python3-samba + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-samba" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-samba + CHECK_RESULT $? 0 0 "install python3-samba failed" + SLEEP_WAIT 1 + dnf remove -y python3-samba + CHECK_RESULT $? 0 0 "remove python3-samba failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-client-libs.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-client-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..44110d975df25288cba7bc4f02ff8f2caa88c7cd --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-client-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-client-libs | grep -v \.src | grep samba-client-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-client-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-client-libs + CHECK_RESULT $? 0 0 "install samba-client-libs failed" + SLEEP_WAIT 1 + dnf remove -y samba-client-libs + CHECK_RESULT $? 0 0 "remove samba-client-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-client.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-client.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4154f497151d8c8cd45e127ca0a0f1ff6427f64 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-client.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-client | grep -v \.src | grep samba-client + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-client" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-client + CHECK_RESULT $? 0 0 "install samba-client failed" + SLEEP_WAIT 1 + dnf remove -y samba-client + CHECK_RESULT $? 0 0 "remove samba-client failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-common-tools.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-common-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..360b38a86ee0c8d7642dbbec73d3c6237f284c78 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-common-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-common-tools | grep -v \.src | grep samba-common-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-common-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-common-tools + CHECK_RESULT $? 0 0 "install samba-common-tools failed" + SLEEP_WAIT 1 + dnf remove -y samba-common-tools + CHECK_RESULT $? 0 0 "remove samba-common-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-common.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..140aaeffbeea1b0a3b3162e160e0a4dbdc7219e8 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-common | grep -v \.src | grep samba-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-common + CHECK_RESULT $? 0 0 "install samba-common failed" + SLEEP_WAIT 1 + dnf remove -y samba-common + CHECK_RESULT $? 0 0 "remove samba-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc-bind-dlz.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc-bind-dlz.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d45d5295bca8a124ebd06bb4b4dc835d727f213 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc-bind-dlz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-dc-bind-dlz | grep -v \.src | grep samba-dc-bind-dlz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-dc-bind-dlz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-dc-bind-dlz + CHECK_RESULT $? 0 0 "install samba-dc-bind-dlz failed" + SLEEP_WAIT 1 + dnf remove -y samba-dc-bind-dlz + CHECK_RESULT $? 0 0 "remove samba-dc-bind-dlz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc-libs.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..da27084c00a441cc82f265dbc658dc337eea0cc7 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-dc-libs | grep -v \.src | grep samba-dc-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-dc-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-dc-libs + CHECK_RESULT $? 0 0 "install samba-dc-libs failed" + SLEEP_WAIT 1 + dnf remove -y samba-dc-libs + CHECK_RESULT $? 0 0 "remove samba-dc-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc-provision.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc-provision.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d6fb528a36f5c1bf12ab5dd0f544a73eeee2835 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc-provision.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-dc-provision | grep -v \.src | grep samba-dc-provision + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-dc-provision" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-dc-provision + CHECK_RESULT $? 0 0 "install samba-dc-provision failed" + SLEEP_WAIT 1 + dnf remove -y samba-dc-provision + CHECK_RESULT $? 0 0 "remove samba-dc-provision failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce3e2261c1c5a05844de1b142e126bc0d95ba6c4 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-dc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-dc | grep -v \.src | grep samba-dc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-dc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-dc + CHECK_RESULT $? 0 0 "install samba-dc failed" + SLEEP_WAIT 1 + dnf remove -y samba-dc + CHECK_RESULT $? 0 0 "remove samba-dc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-debuginfo.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6c7df2da3dfecc9d8d9d91e4a590c3a0891d18f --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-debuginfo | grep -v \.src | grep samba-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-debuginfo + CHECK_RESULT $? 0 0 "install samba-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y samba-debuginfo + CHECK_RESULT $? 0 0 "remove samba-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-debugsource.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..15f5410354b55750edf02ba80519084728607d67 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-debugsource | grep -v \.src | grep samba-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-debugsource + CHECK_RESULT $? 0 0 "install samba-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y samba-debugsource + CHECK_RESULT $? 0 0 "remove samba-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-devel.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef46eaef799b3689f975c37706d0ca42902cee7b --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-devel | grep -v \.src | grep samba-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-devel + CHECK_RESULT $? 0 0 "install samba-devel failed" + SLEEP_WAIT 1 + dnf remove -y samba-devel + CHECK_RESULT $? 0 0 "remove samba-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-help.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..67d1eab03221354c5f92bc0ca9b90770bad52a39 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-help | grep -v \.src | grep samba-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-help + CHECK_RESULT $? 0 0 "install samba-help failed" + SLEEP_WAIT 1 + dnf remove -y samba-help + CHECK_RESULT $? 0 0 "remove samba-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-krb5-printing.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-krb5-printing.sh new file mode 100644 index 0000000000000000000000000000000000000000..f692e8ce90b934c0dc3748f28a39b113663fce2c --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-krb5-printing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-krb5-printing | grep -v \.src | grep samba-krb5-printing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-krb5-printing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-krb5-printing + CHECK_RESULT $? 0 0 "install samba-krb5-printing failed" + SLEEP_WAIT 1 + dnf remove -y samba-krb5-printing + CHECK_RESULT $? 0 0 "remove samba-krb5-printing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-libs.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ad4c6a400bf178b7148172c481343b431b975f3 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-libs | grep -v \.src | grep samba-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-libs + CHECK_RESULT $? 0 0 "install samba-libs failed" + SLEEP_WAIT 1 + dnf remove -y samba-libs + CHECK_RESULT $? 0 0 "remove samba-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-pidl.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-pidl.sh new file mode 100644 index 0000000000000000000000000000000000000000..c736a8705b25cef8d9aedc71bdf2165075bb930d --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-pidl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-pidl | grep -v \.src | grep samba-pidl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-pidl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-pidl + CHECK_RESULT $? 0 0 "install samba-pidl failed" + SLEEP_WAIT 1 + dnf remove -y samba-pidl + CHECK_RESULT $? 0 0 "remove samba-pidl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-test.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-test.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cab87f7bb28e70c9ad2f739a7d2636a642e01e3 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-test.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-test | grep -v \.src | grep samba-test + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-test" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-test + CHECK_RESULT $? 0 0 "install samba-test failed" + SLEEP_WAIT 1 + dnf remove -y samba-test + CHECK_RESULT $? 0 0 "remove samba-test failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-tools.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ead4c5eeaa623ab5abef2413a8bbf695cb411e3 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-tools | grep -v \.src | grep samba-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-tools + CHECK_RESULT $? 0 0 "install samba-tools failed" + SLEEP_WAIT 1 + dnf remove -y samba-tools + CHECK_RESULT $? 0 0 "remove samba-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-usershares.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-usershares.sh new file mode 100644 index 0000000000000000000000000000000000000000..68c43e126c3322b0e00bbede7fc67ea081ca23a4 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-usershares.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-usershares | grep -v \.src | grep samba-usershares + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-usershares" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-usershares + CHECK_RESULT $? 0 0 "install samba-usershares failed" + SLEEP_WAIT 1 + dnf remove -y samba-usershares + CHECK_RESULT $? 0 0 "remove samba-usershares failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-vfs-cephfs.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-vfs-cephfs.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f2fbe4362f491b0bb5787d2bd1ffa69e040200d --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-vfs-cephfs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-vfs-cephfs | grep -v \.src | grep samba-vfs-cephfs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-vfs-cephfs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-vfs-cephfs + CHECK_RESULT $? 0 0 "install samba-vfs-cephfs failed" + SLEEP_WAIT 1 + dnf remove -y samba-vfs-cephfs + CHECK_RESULT $? 0 0 "remove samba-vfs-cephfs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-vfs-glusterfs.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-vfs-glusterfs.sh new file mode 100644 index 0000000000000000000000000000000000000000..c00b5526b8d8a4b03813a012cdf0dfd3d8d72c54 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-vfs-glusterfs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-vfs-glusterfs | grep -v \.src | grep samba-vfs-glusterfs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-vfs-glusterfs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-vfs-glusterfs + CHECK_RESULT $? 0 0 "install samba-vfs-glusterfs failed" + SLEEP_WAIT 1 + dnf remove -y samba-vfs-glusterfs + CHECK_RESULT $? 0 0 "remove samba-vfs-glusterfs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind-clients.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind-clients.sh new file mode 100644 index 0000000000000000000000000000000000000000..38b726cb26bc2f3a39d8aa4480f218034cf0cb5a --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind-clients.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-winbind-clients | grep -v \.src | grep samba-winbind-clients + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-winbind-clients" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-winbind-clients + CHECK_RESULT $? 0 0 "install samba-winbind-clients failed" + SLEEP_WAIT 1 + dnf remove -y samba-winbind-clients + CHECK_RESULT $? 0 0 "remove samba-winbind-clients failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind-krb5-locator.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind-krb5-locator.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c1896c17818bf6d8d4e2e4733dd6d6c42e3a6af --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind-krb5-locator.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-winbind-krb5-locator | grep -v \.src | grep samba-winbind-krb5-locator + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-winbind-krb5-locator" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-winbind-krb5-locator + CHECK_RESULT $? 0 0 "install samba-winbind-krb5-locator failed" + SLEEP_WAIT 1 + dnf remove -y samba-winbind-krb5-locator + CHECK_RESULT $? 0 0 "remove samba-winbind-krb5-locator failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind-modules.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind-modules.sh new file mode 100644 index 0000000000000000000000000000000000000000..d47f4473b3dd01e36a6efd84c986b6fb843d935a --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind-modules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-winbind-modules | grep -v \.src | grep samba-winbind-modules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-winbind-modules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-winbind-modules + CHECK_RESULT $? 0 0 "install samba-winbind-modules failed" + SLEEP_WAIT 1 + dnf remove -y samba-winbind-modules + CHECK_RESULT $? 0 0 "remove samba-winbind-modules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0c9aaa76ce399bafc0c71b9123077bc41e1cfec --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba-winbind.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba-winbind | grep -v \.src | grep samba-winbind + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba-winbind" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba-winbind + CHECK_RESULT $? 0 0 "install samba-winbind failed" + SLEEP_WAIT 1 + dnf remove -y samba-winbind + CHECK_RESULT $? 0 0 "remove samba-winbind failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba.sh b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f1df6d075a1d5f45c06ccf34b6446d5b3edfe63 --- /dev/null +++ b/testcases/cli-test/samba/oe_test_samba_install_and_remove_samba.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src samba +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available samba | grep -v \.src | grep samba + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm samba" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y samba + CHECK_RESULT $? 0 0 "install samba failed" + SLEEP_WAIT 1 + dnf remove -y samba + CHECK_RESULT $? 0 0 "remove samba failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_python2-sanlock.sh b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_python2-sanlock.sh new file mode 100644 index 0000000000000000000000000000000000000000..b68d606546e29e45e0004d4bc682cc66fd17163e --- /dev/null +++ b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_python2-sanlock.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sanlock +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-sanlock | grep -v \.src | grep python2-sanlock + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-sanlock" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-sanlock + CHECK_RESULT $? 0 0 "install python2-sanlock failed" + SLEEP_WAIT 1 + dnf remove -y python2-sanlock + CHECK_RESULT $? 0 0 "remove python2-sanlock failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_python3-sanlock.sh b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_python3-sanlock.sh new file mode 100644 index 0000000000000000000000000000000000000000..ceaac67eac24c77e6c6fbf871e4d15653749a94c --- /dev/null +++ b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_python3-sanlock.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sanlock +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-sanlock | grep -v \.src | grep python3-sanlock + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-sanlock" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-sanlock + CHECK_RESULT $? 0 0 "install python3-sanlock failed" + SLEEP_WAIT 1 + dnf remove -y python3-sanlock + CHECK_RESULT $? 0 0 "remove python3-sanlock failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlk-reset.sh b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlk-reset.sh new file mode 100644 index 0000000000000000000000000000000000000000..d06ef878f37b19489ded8ec5de500e17111cc649 --- /dev/null +++ b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlk-reset.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sanlock +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sanlk-reset | grep -v \.src | grep sanlk-reset + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sanlk-reset" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sanlk-reset + CHECK_RESULT $? 0 0 "install sanlk-reset failed" + SLEEP_WAIT 1 + dnf remove -y sanlk-reset + CHECK_RESULT $? 0 0 "remove sanlk-reset failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-debuginfo.sh b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..59fcdaf7aebad1a18493fa810eb0589d305088f7 --- /dev/null +++ b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sanlock +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sanlock-debuginfo | grep -v \.src | grep sanlock-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sanlock-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sanlock-debuginfo + CHECK_RESULT $? 0 0 "install sanlock-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sanlock-debuginfo + CHECK_RESULT $? 0 0 "remove sanlock-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-debugsource.sh b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..86e0a9302abf8f07cb3368317767dd0c3fc6c8d3 --- /dev/null +++ b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sanlock +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sanlock-debugsource | grep -v \.src | grep sanlock-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sanlock-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sanlock-debugsource + CHECK_RESULT $? 0 0 "install sanlock-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sanlock-debugsource + CHECK_RESULT $? 0 0 "remove sanlock-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-devel.sh b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0f818a1d9f31a6aabdb94ec79191526d6ca6e62 --- /dev/null +++ b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sanlock +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sanlock-devel | grep -v \.src | grep sanlock-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sanlock-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sanlock-devel + CHECK_RESULT $? 0 0 "install sanlock-devel failed" + SLEEP_WAIT 1 + dnf remove -y sanlock-devel + CHECK_RESULT $? 0 0 "remove sanlock-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-help.sh b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e1c45adce667faff774a856b097a7164ece570b --- /dev/null +++ b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sanlock +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sanlock-help | grep -v \.src | grep sanlock-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sanlock-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sanlock-help + CHECK_RESULT $? 0 0 "install sanlock-help failed" + SLEEP_WAIT 1 + dnf remove -y sanlock-help + CHECK_RESULT $? 0 0 "remove sanlock-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock.sh b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c66a28207d1adfad50ad02f1de892dd82b5fe95 --- /dev/null +++ b/testcases/cli-test/sanlock/oe_test_sanlock_install_and_remove_sanlock.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sanlock +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sanlock | grep -v \.src | grep sanlock + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sanlock" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sanlock + CHECK_RESULT $? 0 0 "install sanlock failed" + SLEEP_WAIT 1 + dnf remove -y sanlock + CHECK_RESULT $? 0 0 "remove sanlock failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sassc/oe_test_sassc_install_and_remove_sassc-debuginfo.sh b/testcases/cli-test/sassc/oe_test_sassc_install_and_remove_sassc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a6a0f1c0af4ddbb91ab1d7f392589162e210fcd --- /dev/null +++ b/testcases/cli-test/sassc/oe_test_sassc_install_and_remove_sassc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sassc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sassc-debuginfo | grep -v \.src | grep sassc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sassc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sassc-debuginfo + CHECK_RESULT $? 0 0 "install sassc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sassc-debuginfo + CHECK_RESULT $? 0 0 "remove sassc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sassc/oe_test_sassc_install_and_remove_sassc-debugsource.sh b/testcases/cli-test/sassc/oe_test_sassc_install_and_remove_sassc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a019d45548cb7b95f1e3b1f595a41e309d36da6f --- /dev/null +++ b/testcases/cli-test/sassc/oe_test_sassc_install_and_remove_sassc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sassc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sassc-debugsource | grep -v \.src | grep sassc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sassc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sassc-debugsource + CHECK_RESULT $? 0 0 "install sassc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sassc-debugsource + CHECK_RESULT $? 0 0 "remove sassc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sassc/oe_test_sassc_install_and_remove_sassc.sh b/testcases/cli-test/sassc/oe_test_sassc_install_and_remove_sassc.sh new file mode 100644 index 0000000000000000000000000000000000000000..26d3f7d8817b5b7f3e8e1b0db3f0064b701070fc --- /dev/null +++ b/testcases/cli-test/sassc/oe_test_sassc_install_and_remove_sassc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sassc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sassc | grep -v \.src | grep sassc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sassc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sassc + CHECK_RESULT $? 0 0 "install sassc failed" + SLEEP_WAIT 1 + dnf remove -y sassc + CHECK_RESULT $? 0 0 "remove sassc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_python2-satyr.sh b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_python2-satyr.sh new file mode 100644 index 0000000000000000000000000000000000000000..01850fd26768fcae849be6e657f341af10176957 --- /dev/null +++ b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_python2-satyr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src satyr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-satyr | grep -v \.src | grep python2-satyr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-satyr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-satyr + CHECK_RESULT $? 0 0 "install python2-satyr failed" + SLEEP_WAIT 1 + dnf remove -y python2-satyr + CHECK_RESULT $? 0 0 "remove python2-satyr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_python3-satyr.sh b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_python3-satyr.sh new file mode 100644 index 0000000000000000000000000000000000000000..bce3a04a606654e9bcd280b15fa64c4f6644e651 --- /dev/null +++ b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_python3-satyr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src satyr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-satyr | grep -v \.src | grep python3-satyr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-satyr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-satyr + CHECK_RESULT $? 0 0 "install python3-satyr failed" + SLEEP_WAIT 1 + dnf remove -y python3-satyr + CHECK_RESULT $? 0 0 "remove python3-satyr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-debuginfo.sh b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f94d09d327490ddbc0995dacc02bcc2ef6aa69bb --- /dev/null +++ b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src satyr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available satyr-debuginfo | grep -v \.src | grep satyr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm satyr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y satyr-debuginfo + CHECK_RESULT $? 0 0 "install satyr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y satyr-debuginfo + CHECK_RESULT $? 0 0 "remove satyr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-debugsource.sh b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..96743d6b526b13961515e63b95517a098a3f5f10 --- /dev/null +++ b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src satyr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available satyr-debugsource | grep -v \.src | grep satyr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm satyr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y satyr-debugsource + CHECK_RESULT $? 0 0 "install satyr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y satyr-debugsource + CHECK_RESULT $? 0 0 "remove satyr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-devel.sh b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..558d2ce502d879ce90910517fa490eea666f6ca8 --- /dev/null +++ b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src satyr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available satyr-devel | grep -v \.src | grep satyr-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm satyr-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y satyr-devel + CHECK_RESULT $? 0 0 "install satyr-devel failed" + SLEEP_WAIT 1 + dnf remove -y satyr-devel + CHECK_RESULT $? 0 0 "remove satyr-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-help.sh b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..74563f49faee7cc1b09dbb6ccd1e99c1e8791da9 --- /dev/null +++ b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src satyr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available satyr-help | grep -v \.src | grep satyr-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm satyr-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y satyr-help + CHECK_RESULT $? 0 0 "install satyr-help failed" + SLEEP_WAIT 1 + dnf remove -y satyr-help + CHECK_RESULT $? 0 0 "remove satyr-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr.sh b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr.sh new file mode 100644 index 0000000000000000000000000000000000000000..079c85cda9e4a08164128c1179accbf7b295a01e --- /dev/null +++ b/testcases/cli-test/satyr/oe_test_satyr_install_and_remove_satyr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src satyr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available satyr | grep -v \.src | grep satyr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm satyr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y satyr + CHECK_RESULT $? 0 0 "install satyr failed" + SLEEP_WAIT 1 + dnf remove -y satyr + CHECK_RESULT $? 0 0 "remove satyr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-debuginfo.sh b/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a18d714028ec20146ef9c793fa8b9616fb6af9d --- /dev/null +++ b/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sbc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sbc-debuginfo | grep -v \.src | grep sbc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sbc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sbc-debuginfo + CHECK_RESULT $? 0 0 "install sbc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sbc-debuginfo + CHECK_RESULT $? 0 0 "remove sbc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-debugsource.sh b/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..43aa7fb9be0fe7f52e93c8c3f991ed5862652476 --- /dev/null +++ b/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sbc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sbc-debugsource | grep -v \.src | grep sbc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sbc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sbc-debugsource + CHECK_RESULT $? 0 0 "install sbc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sbc-debugsource + CHECK_RESULT $? 0 0 "remove sbc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-devel.sh b/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f11f57d7e04e43be8ff180e18be2c5e77316aaad --- /dev/null +++ b/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sbc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sbc-devel | grep -v \.src | grep sbc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sbc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sbc-devel + CHECK_RESULT $? 0 0 "install sbc-devel failed" + SLEEP_WAIT 1 + dnf remove -y sbc-devel + CHECK_RESULT $? 0 0 "remove sbc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-help.sh b/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4be39b08f5cba3579b83884ce6e879764d240265 --- /dev/null +++ b/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sbc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sbc-help | grep -v \.src | grep sbc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sbc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sbc-help + CHECK_RESULT $? 0 0 "install sbc-help failed" + SLEEP_WAIT 1 + dnf remove -y sbc-help + CHECK_RESULT $? 0 0 "remove sbc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc.sh b/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f07014f9561878983640dd1b647bce032cbd379 --- /dev/null +++ b/testcases/cli-test/sbc/oe_test_sbc_install_and_remove_sbc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sbc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sbc | grep -v \.src | grep sbc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sbc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sbc + CHECK_RESULT $? 0 0 "install sbc failed" + SLEEP_WAIT 1 + dnf remove -y sbc + CHECK_RESULT $? 0 0 "remove sbc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen-debuginfo.sh b/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a7970662c513807791f0cd45e8f0010d5249683 --- /dev/null +++ b/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src screen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available screen-debuginfo | grep -v \.src | grep screen-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm screen-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y screen-debuginfo + CHECK_RESULT $? 0 0 "install screen-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y screen-debuginfo + CHECK_RESULT $? 0 0 "remove screen-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen-debugsource.sh b/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1a0e3aebc719cc4375aab2789ee3c5e8080bd0f --- /dev/null +++ b/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src screen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available screen-debugsource | grep -v \.src | grep screen-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm screen-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y screen-debugsource + CHECK_RESULT $? 0 0 "install screen-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y screen-debugsource + CHECK_RESULT $? 0 0 "remove screen-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen-help.sh b/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae847b384767388d96669492357c1224b69c36d7 --- /dev/null +++ b/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src screen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available screen-help | grep -v \.src | grep screen-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm screen-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y screen-help + CHECK_RESULT $? 0 0 "install screen-help failed" + SLEEP_WAIT 1 + dnf remove -y screen-help + CHECK_RESULT $? 0 0 "remove screen-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen.sh b/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen.sh new file mode 100644 index 0000000000000000000000000000000000000000..89d787d7b24be3f755f8f1dd6708106160ada943 --- /dev/null +++ b/testcases/cli-test/screen/oe_test_screen_install_and_remove_screen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src screen +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available screen | grep -v \.src | grep screen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm screen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y screen + CHECK_RESULT $? 0 0 "install screen failed" + SLEEP_WAIT 1 + dnf remove -y screen + CHECK_RESULT $? 0 0 "remove screen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/security-tool/oe_test_security-tool_install_and_remove_security-tool.sh b/testcases/cli-test/security-tool/oe_test_security-tool_install_and_remove_security-tool.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e7fc8e07da1973197c0a2dd9e26be8d9e1bd553 --- /dev/null +++ b/testcases/cli-test/security-tool/oe_test_security-tool_install_and_remove_security-tool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src security-tool +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available security-tool | grep -v \.src | grep security-tool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm security-tool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y security-tool + CHECK_RESULT $? 0 0 "install security-tool failed" + SLEEP_WAIT 1 + dnf remove -y security-tool + CHECK_RESULT $? 0 0 "remove security-tool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed-debuginfo.sh b/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..431720b469f18dd7c616bd8c1ae4ffd75d3da6bb --- /dev/null +++ b/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sed-debuginfo | grep -v \.src | grep sed-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sed-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sed-debuginfo + CHECK_RESULT $? 0 0 "install sed-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sed-debuginfo + CHECK_RESULT $? 0 0 "remove sed-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed-debugsource.sh b/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6cfa481279b7ef3cd4c3a1afbaef4c9fb514a758 --- /dev/null +++ b/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sed-debugsource | grep -v \.src | grep sed-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sed-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sed-debugsource + CHECK_RESULT $? 0 0 "install sed-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sed-debugsource + CHECK_RESULT $? 0 0 "remove sed-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed-help.sh b/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1fcf490bed331ad8b45f8aeed9967037445d853 --- /dev/null +++ b/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sed-help | grep -v \.src | grep sed-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sed-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sed-help + CHECK_RESULT $? 0 0 "install sed-help failed" + SLEEP_WAIT 1 + dnf remove -y sed-help + CHECK_RESULT $? 0 0 "remove sed-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed.sh b/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed.sh new file mode 100644 index 0000000000000000000000000000000000000000..a66c54a32fe9fc68ef41d776f5a8f095a01d62c6 --- /dev/null +++ b/testcases/cli-test/sed/oe_test_sed_install_and_remove_sed.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sed | grep -v \.src | grep sed + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sed" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sed + CHECK_RESULT $? 0 0 "install sed failed" + SLEEP_WAIT 1 + dnf remove -y sed + CHECK_RESULT $? 0 0 "remove sed failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-devel.sh b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..464edd229042ace2cc3cc644b219aa7416b402f7 --- /dev/null +++ b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src selinux-policy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available selinux-policy-devel | grep -v \.src | grep selinux-policy-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm selinux-policy-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y selinux-policy-devel + CHECK_RESULT $? 0 0 "install selinux-policy-devel failed" + SLEEP_WAIT 1 + dnf remove -y selinux-policy-devel + CHECK_RESULT $? 0 0 "remove selinux-policy-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-doc.sh b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..742cc83f10bd01928a402c8f3d12ae402cfe79c9 --- /dev/null +++ b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src selinux-policy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available selinux-policy-doc | grep -v \.src | grep selinux-policy-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm selinux-policy-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y selinux-policy-doc + CHECK_RESULT $? 0 0 "install selinux-policy-doc failed" + SLEEP_WAIT 1 + dnf remove -y selinux-policy-doc + CHECK_RESULT $? 0 0 "remove selinux-policy-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-help.sh b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfdac6a87c2fad5c483d104d79322a2c54a81ba0 --- /dev/null +++ b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src selinux-policy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available selinux-policy-help | grep -v \.src | grep selinux-policy-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm selinux-policy-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y selinux-policy-help + CHECK_RESULT $? 0 0 "install selinux-policy-help failed" + SLEEP_WAIT 1 + dnf remove -y selinux-policy-help + CHECK_RESULT $? 0 0 "remove selinux-policy-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-minimum.sh b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-minimum.sh new file mode 100644 index 0000000000000000000000000000000000000000..29cab53b3ad742a03cefa13b98421b0f2c5614a3 --- /dev/null +++ b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-minimum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src selinux-policy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available selinux-policy-minimum | grep -v \.src | grep selinux-policy-minimum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm selinux-policy-minimum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y selinux-policy-minimum + CHECK_RESULT $? 0 0 "install selinux-policy-minimum failed" + SLEEP_WAIT 1 + dnf remove -y selinux-policy-minimum + CHECK_RESULT $? 0 0 "remove selinux-policy-minimum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-mls.sh b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-mls.sh new file mode 100644 index 0000000000000000000000000000000000000000..f511cb4da36edd3a5a92f6a54a34a19b55061559 --- /dev/null +++ b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-mls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src selinux-policy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available selinux-policy-mls | grep -v \.src | grep selinux-policy-mls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm selinux-policy-mls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y selinux-policy-mls + CHECK_RESULT $? 0 0 "install selinux-policy-mls failed" + SLEEP_WAIT 1 + dnf remove -y selinux-policy-mls + CHECK_RESULT $? 0 0 "remove selinux-policy-mls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-sandbox.sh b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-sandbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..31db22491ff86a17c4b79e98df1aaaf8808f8a3e --- /dev/null +++ b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-sandbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src selinux-policy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available selinux-policy-sandbox | grep -v \.src | grep selinux-policy-sandbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm selinux-policy-sandbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y selinux-policy-sandbox + CHECK_RESULT $? 0 0 "install selinux-policy-sandbox failed" + SLEEP_WAIT 1 + dnf remove -y selinux-policy-sandbox + CHECK_RESULT $? 0 0 "remove selinux-policy-sandbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-targeted.sh b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-targeted.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7b63bb412e0b3483e7748f16355b9af344067b9 --- /dev/null +++ b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy-targeted.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src selinux-policy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available selinux-policy-targeted | grep -v \.src | grep selinux-policy-targeted + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm selinux-policy-targeted" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y selinux-policy-targeted + CHECK_RESULT $? 0 0 "install selinux-policy-targeted failed" + SLEEP_WAIT 1 + dnf remove -y selinux-policy-targeted + CHECK_RESULT $? 0 0 "remove selinux-policy-targeted failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy.sh b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy.sh new file mode 100644 index 0000000000000000000000000000000000000000..6eb5855b4b062119690a3573b1a4f313d11597b4 --- /dev/null +++ b/testcases/cli-test/selinux-policy/oe_test_selinux-policy_install_and_remove_selinux-policy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src selinux-policy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available selinux-policy | grep -v \.src | grep selinux-policy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm selinux-policy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y selinux-policy + CHECK_RESULT $? 0 0 "install selinux-policy failed" + SLEEP_WAIT 1 + dnf remove -y selinux-policy + CHECK_RESULT $? 0 0 "remove selinux-policy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_libmilter-devel.sh b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_libmilter-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc5a60664403de50acca9a2adbbc45ad311fc72d --- /dev/null +++ b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_libmilter-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sendmail +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmilter-devel | grep -v \.src | grep libmilter-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmilter-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmilter-devel + CHECK_RESULT $? 0 0 "install libmilter-devel failed" + SLEEP_WAIT 1 + dnf remove -y libmilter-devel + CHECK_RESULT $? 0 0 "remove libmilter-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_libmilter.sh b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_libmilter.sh new file mode 100644 index 0000000000000000000000000000000000000000..2acb737107e9351343b666a8d2d7b4f006214cf7 --- /dev/null +++ b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_libmilter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sendmail +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmilter | grep -v \.src | grep libmilter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmilter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmilter + CHECK_RESULT $? 0 0 "install libmilter failed" + SLEEP_WAIT 1 + dnf remove -y libmilter + CHECK_RESULT $? 0 0 "remove libmilter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail-debuginfo.sh b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c89c79dd8681abaac935eb74b19793720dbd1a97 --- /dev/null +++ b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sendmail +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sendmail-debuginfo | grep -v \.src | grep sendmail-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sendmail-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sendmail-debuginfo + CHECK_RESULT $? 0 0 "install sendmail-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sendmail-debuginfo + CHECK_RESULT $? 0 0 "remove sendmail-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail-debugsource.sh b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f3b8a590f5e78042272c3c9260bc783e21b607d --- /dev/null +++ b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sendmail +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sendmail-debugsource | grep -v \.src | grep sendmail-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sendmail-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sendmail-debugsource + CHECK_RESULT $? 0 0 "install sendmail-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sendmail-debugsource + CHECK_RESULT $? 0 0 "remove sendmail-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail-help.sh b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5f0710d8dc1f60358be34a880b7d0d2fd1ff091 --- /dev/null +++ b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sendmail +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sendmail-help | grep -v \.src | grep sendmail-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sendmail-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sendmail-help + CHECK_RESULT $? 0 0 "install sendmail-help failed" + SLEEP_WAIT 1 + dnf remove -y sendmail-help + CHECK_RESULT $? 0 0 "remove sendmail-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail.sh b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail.sh new file mode 100644 index 0000000000000000000000000000000000000000..632dcbc4af1f927af21e3fc505e4648ecde5ccd5 --- /dev/null +++ b/testcases/cli-test/sendmail/oe_test_sendmail_install_and_remove_sendmail.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sendmail +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sendmail | grep -v \.src | grep sendmail + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sendmail" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sendmail + CHECK_RESULT $? 0 0 "install sendmail failed" + SLEEP_WAIT 1 + dnf remove -y sendmail + CHECK_RESULT $? 0 0 "remove sendmail failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/setup/oe_test_setup_install_and_remove_setup.sh b/testcases/cli-test/setup/oe_test_setup_install_and_remove_setup.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd74b0f0840de8498a5011a30e80ef1f2eb56bb9 --- /dev/null +++ b/testcases/cli-test/setup/oe_test_setup_install_and_remove_setup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src setup +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available setup | grep -v \.src | grep setup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm setup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y setup + CHECK_RESULT $? 0 0 "install setup failed" + SLEEP_WAIT 1 + dnf remove -y setup + CHECK_RESULT $? 0 0 "remove setup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-debuginfo.sh b/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..29e2c8eff71a15f5aef52762518cc4f195e0647d --- /dev/null +++ b/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sg3_utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sg3_utils-debuginfo | grep -v \.src | grep sg3_utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sg3_utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sg3_utils-debuginfo + CHECK_RESULT $? 0 0 "install sg3_utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sg3_utils-debuginfo + CHECK_RESULT $? 0 0 "remove sg3_utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-debugsource.sh b/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..699bbe86b23579b98f437515e360a69ec09f59c3 --- /dev/null +++ b/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sg3_utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sg3_utils-debugsource | grep -v \.src | grep sg3_utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sg3_utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sg3_utils-debugsource + CHECK_RESULT $? 0 0 "install sg3_utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sg3_utils-debugsource + CHECK_RESULT $? 0 0 "remove sg3_utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-devel.sh b/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..21abf6c794237c707c27d108051f2ddf7b45501b --- /dev/null +++ b/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sg3_utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sg3_utils-devel | grep -v \.src | grep sg3_utils-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sg3_utils-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sg3_utils-devel + CHECK_RESULT $? 0 0 "install sg3_utils-devel failed" + SLEEP_WAIT 1 + dnf remove -y sg3_utils-devel + CHECK_RESULT $? 0 0 "remove sg3_utils-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-help.sh b/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce570a5936c1bdf81be07c53fbe0a4b9a791bdaf --- /dev/null +++ b/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sg3_utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sg3_utils-help | grep -v \.src | grep sg3_utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sg3_utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sg3_utils-help + CHECK_RESULT $? 0 0 "install sg3_utils-help failed" + SLEEP_WAIT 1 + dnf remove -y sg3_utils-help + CHECK_RESULT $? 0 0 "remove sg3_utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils.sh b/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..29f0a9447c90c5bb4808539f593226f37e03b0ab --- /dev/null +++ b/testcases/cli-test/sg3_utils/oe_test_sg3_utils_install_and_remove_sg3_utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sg3_utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sg3_utils | grep -v \.src | grep sg3_utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sg3_utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sg3_utils + CHECK_RESULT $? 0 0 "install sg3_utils failed" + SLEEP_WAIT 1 + dnf remove -y sg3_utils + CHECK_RESULT $? 0 0 "remove sg3_utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sgml-common/oe_test_sgml-common_install_and_remove_sgml-common-help.sh b/testcases/cli-test/sgml-common/oe_test_sgml-common_install_and_remove_sgml-common-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..63d4cd2f7ca9cb34a0a3c0aebd4086c16db20577 --- /dev/null +++ b/testcases/cli-test/sgml-common/oe_test_sgml-common_install_and_remove_sgml-common-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sgml-common +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sgml-common-help | grep -v \.src | grep sgml-common-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sgml-common-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sgml-common-help + CHECK_RESULT $? 0 0 "install sgml-common-help failed" + SLEEP_WAIT 1 + dnf remove -y sgml-common-help + CHECK_RESULT $? 0 0 "remove sgml-common-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sgml-common/oe_test_sgml-common_install_and_remove_sgml-common.sh b/testcases/cli-test/sgml-common/oe_test_sgml-common_install_and_remove_sgml-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..690a57c89f2eab7a862e1c6a851a65b5bfe9a23d --- /dev/null +++ b/testcases/cli-test/sgml-common/oe_test_sgml-common_install_and_remove_sgml-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sgml-common +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sgml-common | grep -v \.src | grep sgml-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sgml-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sgml-common + CHECK_RESULT $? 0 0 "install sgml-common failed" + SLEEP_WAIT 1 + dnf remove -y sgml-common + CHECK_RESULT $? 0 0 "remove sgml-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-debuginfo.sh b/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb81cdfd20f41cd9b1607d8674c715fc1dc18272 --- /dev/null +++ b/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shadow +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shadow-debuginfo | grep -v \.src | grep shadow-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shadow-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shadow-debuginfo + CHECK_RESULT $? 0 0 "install shadow-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y shadow-debuginfo + CHECK_RESULT $? 0 0 "remove shadow-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-debugsource.sh b/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d217b8639d04d339e8fb89550673f4de68d910f2 --- /dev/null +++ b/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shadow +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shadow-debugsource | grep -v \.src | grep shadow-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shadow-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shadow-debugsource + CHECK_RESULT $? 0 0 "install shadow-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y shadow-debugsource + CHECK_RESULT $? 0 0 "remove shadow-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-help.sh b/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..496033761a851adb74bc58a20c76b21ae6a3dd53 --- /dev/null +++ b/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shadow +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shadow-help | grep -v \.src | grep shadow-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shadow-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shadow-help + CHECK_RESULT $? 0 0 "install shadow-help failed" + SLEEP_WAIT 1 + dnf remove -y shadow-help + CHECK_RESULT $? 0 0 "remove shadow-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-subid-devel.sh b/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-subid-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7556e64b87aa3561cacb0963407e927261181ac9 --- /dev/null +++ b/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow-subid-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shadow +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shadow-subid-devel | grep -v \.src | grep shadow-subid-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shadow-subid-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shadow-subid-devel + CHECK_RESULT $? 0 0 "install shadow-subid-devel failed" + SLEEP_WAIT 1 + dnf remove -y shadow-subid-devel + CHECK_RESULT $? 0 0 "remove shadow-subid-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow.sh b/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow.sh new file mode 100644 index 0000000000000000000000000000000000000000..4aadfceae6fab9657bcab35400e004f7cf0fee7c --- /dev/null +++ b/testcases/cli-test/shadow/oe_test_shadow_install_and_remove_shadow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shadow +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shadow | grep -v \.src | grep shadow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shadow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shadow + CHECK_RESULT $? 0 0 "install shadow failed" + SLEEP_WAIT 1 + dnf remove -y shadow + CHECK_RESULT $? 0 0 "remove shadow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info-debuginfo.sh b/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4678458fd4f17a2eface4610eb091acba54f4c27 --- /dev/null +++ b/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shared-mime-info +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shared-mime-info-debuginfo | grep -v \.src | grep shared-mime-info-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shared-mime-info-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shared-mime-info-debuginfo + CHECK_RESULT $? 0 0 "install shared-mime-info-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y shared-mime-info-debuginfo + CHECK_RESULT $? 0 0 "remove shared-mime-info-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info-debugsource.sh b/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7701c78cc90fd7f66b59b101fae7e686ec5ce57 --- /dev/null +++ b/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shared-mime-info +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shared-mime-info-debugsource | grep -v \.src | grep shared-mime-info-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shared-mime-info-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shared-mime-info-debugsource + CHECK_RESULT $? 0 0 "install shared-mime-info-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y shared-mime-info-debugsource + CHECK_RESULT $? 0 0 "remove shared-mime-info-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info-help.sh b/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d5d8449a743cfa04038b8b1e720536055d9270d --- /dev/null +++ b/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shared-mime-info +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shared-mime-info-help | grep -v \.src | grep shared-mime-info-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shared-mime-info-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shared-mime-info-help + CHECK_RESULT $? 0 0 "install shared-mime-info-help failed" + SLEEP_WAIT 1 + dnf remove -y shared-mime-info-help + CHECK_RESULT $? 0 0 "remove shared-mime-info-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info.sh b/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info.sh new file mode 100644 index 0000000000000000000000000000000000000000..a84996420ad9b256abb895aee2b9d789ee07c2d4 --- /dev/null +++ b/testcases/cli-test/shared-mime-info/oe_test_shared-mime-info_install_and_remove_shared-mime-info.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shared-mime-info +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shared-mime-info | grep -v \.src | grep shared-mime-info + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shared-mime-info" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shared-mime-info + CHECK_RESULT $? 0 0 "install shared-mime-info failed" + SLEEP_WAIT 1 + dnf remove -y shared-mime-info + CHECK_RESULT $? 0 0 "remove shared-mime-info failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils-debuginfo.sh b/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..83d60e5d5b6ba003f6e401f0be7f3097c7f441e2 --- /dev/null +++ b/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sharutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sharutils-debuginfo | grep -v \.src | grep sharutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sharutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sharutils-debuginfo + CHECK_RESULT $? 0 0 "install sharutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sharutils-debuginfo + CHECK_RESULT $? 0 0 "remove sharutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils-debugsource.sh b/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..63db1f6d288eb6884e7b65ebfd62f6057c645125 --- /dev/null +++ b/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sharutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sharutils-debugsource | grep -v \.src | grep sharutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sharutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sharutils-debugsource + CHECK_RESULT $? 0 0 "install sharutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sharutils-debugsource + CHECK_RESULT $? 0 0 "remove sharutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils-help.sh b/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7628d4f9daa79070fd0e0e21432c1018ccfa6a3c --- /dev/null +++ b/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sharutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sharutils-help | grep -v \.src | grep sharutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sharutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sharutils-help + CHECK_RESULT $? 0 0 "install sharutils-help failed" + SLEEP_WAIT 1 + dnf remove -y sharutils-help + CHECK_RESULT $? 0 0 "remove sharutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils.sh b/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c7c801de87dbbb8fc78bb284d3556fc4aea673b --- /dev/null +++ b/testcases/cli-test/sharutils/oe_test_sharutils_install_and_remove_sharutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sharutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sharutils | grep -v \.src | grep sharutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sharutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sharutils + CHECK_RESULT $? 0 0 "install sharutils failed" + SLEEP_WAIT 1 + dnf remove -y sharutils + CHECK_RESULT $? 0 0 "remove sharutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim-debuginfo.sh b/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..437c556098f680251517ed362d8e6779612b3f3b --- /dev/null +++ b/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shim-debuginfo | grep -v \.src | grep shim-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shim-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shim-debuginfo + CHECK_RESULT $? 0 0 "install shim-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y shim-debuginfo + CHECK_RESULT $? 0 0 "remove shim-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim-debugsource.sh b/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6556809051adac8b93d0acada11765ab6c197cb7 --- /dev/null +++ b/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shim-debugsource | grep -v \.src | grep shim-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shim-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shim-debugsource + CHECK_RESULT $? 0 0 "install shim-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y shim-debugsource + CHECK_RESULT $? 0 0 "remove shim-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim-signed.sh b/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim-signed.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fc5da9bbac516ab338ef21275fbc799304371eb --- /dev/null +++ b/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim-signed.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shim-signed | grep -v \.src | grep shim-signed + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shim-signed" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shim-signed + CHECK_RESULT $? 0 0 "install shim-signed failed" + SLEEP_WAIT 1 + dnf remove -y shim-signed + CHECK_RESULT $? 0 0 "remove shim-signed failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim.sh b/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fc7135ec043c5b9f4f6ec102387b939d977a10d --- /dev/null +++ b/testcases/cli-test/shim/oe_test_shim_install_and_remove_shim.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src shim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available shim | grep -v \.src | grep shim + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm shim" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y shim + CHECK_RESULT $? 0 0 "install shim failed" + SLEEP_WAIT 1 + dnf remove -y shim + CHECK_RESULT $? 0 0 "remove shim failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-debuginfo.sh b/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd397b6b68c585e83f339cddfaa0b32f408ee37a --- /dev/null +++ b/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src slang +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available slang-debuginfo | grep -v \.src | grep slang-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm slang-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y slang-debuginfo + CHECK_RESULT $? 0 0 "install slang-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y slang-debuginfo + CHECK_RESULT $? 0 0 "remove slang-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-debugsource.sh b/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..367e022e224f5e51692ef9057d2c5395f80cb739 --- /dev/null +++ b/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src slang +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available slang-debugsource | grep -v \.src | grep slang-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm slang-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y slang-debugsource + CHECK_RESULT $? 0 0 "install slang-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y slang-debugsource + CHECK_RESULT $? 0 0 "remove slang-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-devel.sh b/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4213c97d2444f3a72c3893ccce5fbae761678ce2 --- /dev/null +++ b/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src slang +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available slang-devel | grep -v \.src | grep slang-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm slang-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y slang-devel + CHECK_RESULT $? 0 0 "install slang-devel failed" + SLEEP_WAIT 1 + dnf remove -y slang-devel + CHECK_RESULT $? 0 0 "remove slang-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-help.sh b/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe72e09e63fd0b75714c2f2895585a1acbd9f3f9 --- /dev/null +++ b/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src slang +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available slang-help | grep -v \.src | grep slang-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm slang-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y slang-help + CHECK_RESULT $? 0 0 "install slang-help failed" + SLEEP_WAIT 1 + dnf remove -y slang-help + CHECK_RESULT $? 0 0 "remove slang-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang.sh b/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3349eceff033ba4868d58bfa71f8ed9f27a224c --- /dev/null +++ b/testcases/cli-test/slang/oe_test_slang_install_and_remove_slang.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src slang +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available slang | grep -v \.src | grep slang + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm slang" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y slang + CHECK_RESULT $? 0 0 "install slang failed" + SLEEP_WAIT 1 + dnf remove -y slang + CHECK_RESULT $? 0 0 "remove slang failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools-debuginfo.sh b/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b2b1cef02527da7e96f67bd2b874c44250c31c2 --- /dev/null +++ b/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src smartmontools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available smartmontools-debuginfo | grep -v \.src | grep smartmontools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm smartmontools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y smartmontools-debuginfo + CHECK_RESULT $? 0 0 "install smartmontools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y smartmontools-debuginfo + CHECK_RESULT $? 0 0 "remove smartmontools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools-debugsource.sh b/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..74b52ada18d24d4666f33163e0d535068e514aae --- /dev/null +++ b/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src smartmontools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available smartmontools-debugsource | grep -v \.src | grep smartmontools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm smartmontools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y smartmontools-debugsource + CHECK_RESULT $? 0 0 "install smartmontools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y smartmontools-debugsource + CHECK_RESULT $? 0 0 "remove smartmontools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools-help.sh b/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a62997adc6ca01145b138a8da1f983a9c4afc0a --- /dev/null +++ b/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src smartmontools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available smartmontools-help | grep -v \.src | grep smartmontools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm smartmontools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y smartmontools-help + CHECK_RESULT $? 0 0 "install smartmontools-help failed" + SLEEP_WAIT 1 + dnf remove -y smartmontools-help + CHECK_RESULT $? 0 0 "remove smartmontools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools.sh b/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools.sh new file mode 100644 index 0000000000000000000000000000000000000000..109233f6b858dd252c7bc235beaa9713f43593af --- /dev/null +++ b/testcases/cli-test/smartmontools/oe_test_smartmontools_install_and_remove_smartmontools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src smartmontools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available smartmontools | grep -v \.src | grep smartmontools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm smartmontools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y smartmontools + CHECK_RESULT $? 0 0 "install smartmontools failed" + SLEEP_WAIT 1 + dnf remove -y smartmontools + CHECK_RESULT $? 0 0 "remove smartmontools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-debuginfo.sh b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3738266ebe1f5e80138b64eebca4f063a6f8d66 --- /dev/null +++ b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src snappy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available snappy-debuginfo | grep -v \.src | grep snappy-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm snappy-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y snappy-debuginfo + CHECK_RESULT $? 0 0 "install snappy-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y snappy-debuginfo + CHECK_RESULT $? 0 0 "remove snappy-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-debugsource.sh b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..68ae894f23eed0bc9dfd55615aaa44eafc83d3a7 --- /dev/null +++ b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src snappy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available snappy-debugsource | grep -v \.src | grep snappy-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm snappy-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y snappy-debugsource + CHECK_RESULT $? 0 0 "install snappy-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y snappy-debugsource + CHECK_RESULT $? 0 0 "remove snappy-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-devel.sh b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f40f553b07b8f4efd41ba80c0b9d182d7249186 --- /dev/null +++ b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src snappy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available snappy-devel | grep -v \.src | grep snappy-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm snappy-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y snappy-devel + CHECK_RESULT $? 0 0 "install snappy-devel failed" + SLEEP_WAIT 1 + dnf remove -y snappy-devel + CHECK_RESULT $? 0 0 "remove snappy-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-doc.sh b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c756a97ab6457bd3b9e93464e48b33b566ef6935 --- /dev/null +++ b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src snappy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available snappy-doc | grep -v \.src | grep snappy-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm snappy-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y snappy-doc + CHECK_RESULT $? 0 0 "install snappy-doc failed" + SLEEP_WAIT 1 + dnf remove -y snappy-doc + CHECK_RESULT $? 0 0 "remove snappy-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-help.sh b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9286865cfce3380b51486061573071cb73544204 --- /dev/null +++ b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src snappy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available snappy-help | grep -v \.src | grep snappy-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm snappy-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y snappy-help + CHECK_RESULT $? 0 0 "install snappy-help failed" + SLEEP_WAIT 1 + dnf remove -y snappy-help + CHECK_RESULT $? 0 0 "remove snappy-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy.sh b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy.sh new file mode 100644 index 0000000000000000000000000000000000000000..5234c0db887f3b30c9c175c41a72bca0173fef05 --- /dev/null +++ b/testcases/cli-test/snappy/oe_test_snappy_install_and_remove_snappy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src snappy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available snappy | grep -v \.src | grep snappy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm snappy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y snappy + CHECK_RESULT $? 0 0 "install snappy failed" + SLEEP_WAIT 1 + dnf remove -y snappy + CHECK_RESULT $? 0 0 "remove snappy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_libsocket_wrapper_noop-devel.sh b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_libsocket_wrapper_noop-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6c574bd3b5a81616fb4556aa2abd9c1c7970679 --- /dev/null +++ b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_libsocket_wrapper_noop-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src socket_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsocket_wrapper_noop-devel | grep -v \.src | grep libsocket_wrapper_noop-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsocket_wrapper_noop-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsocket_wrapper_noop-devel + CHECK_RESULT $? 0 0 "install libsocket_wrapper_noop-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsocket_wrapper_noop-devel + CHECK_RESULT $? 0 0 "remove libsocket_wrapper_noop-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_libsocket_wrapper_noop.sh b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_libsocket_wrapper_noop.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e79591a74c5ad2ac2e8ddc5503ee3da22fc9caa --- /dev/null +++ b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_libsocket_wrapper_noop.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src socket_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsocket_wrapper_noop | grep -v \.src | grep libsocket_wrapper_noop + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsocket_wrapper_noop" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsocket_wrapper_noop + CHECK_RESULT $? 0 0 "install libsocket_wrapper_noop failed" + SLEEP_WAIT 1 + dnf remove -y libsocket_wrapper_noop + CHECK_RESULT $? 0 0 "remove libsocket_wrapper_noop failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper-debuginfo.sh b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dd104ced0d4967cb0e996a150d4332b69ca60d2 --- /dev/null +++ b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src socket_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available socket_wrapper-debuginfo | grep -v \.src | grep socket_wrapper-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm socket_wrapper-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y socket_wrapper-debuginfo + CHECK_RESULT $? 0 0 "install socket_wrapper-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y socket_wrapper-debuginfo + CHECK_RESULT $? 0 0 "remove socket_wrapper-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper-debugsource.sh b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..66196ae229ad307fd840cd2aa00869587e1108a1 --- /dev/null +++ b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src socket_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available socket_wrapper-debugsource | grep -v \.src | grep socket_wrapper-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm socket_wrapper-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y socket_wrapper-debugsource + CHECK_RESULT $? 0 0 "install socket_wrapper-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y socket_wrapper-debugsource + CHECK_RESULT $? 0 0 "remove socket_wrapper-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper-help.sh b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8f04159beef21e263e45d353469cc75d0a3c188 --- /dev/null +++ b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src socket_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available socket_wrapper-help | grep -v \.src | grep socket_wrapper-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm socket_wrapper-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y socket_wrapper-help + CHECK_RESULT $? 0 0 "install socket_wrapper-help failed" + SLEEP_WAIT 1 + dnf remove -y socket_wrapper-help + CHECK_RESULT $? 0 0 "remove socket_wrapper-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper.sh b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper.sh new file mode 100644 index 0000000000000000000000000000000000000000..989b4a7d4cfb706407c27f0f3bf91406a407a383 --- /dev/null +++ b/testcases/cli-test/socket_wrapper/oe_test_socket_wrapper_install_and_remove_socket_wrapper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src socket_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available socket_wrapper | grep -v \.src | grep socket_wrapper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm socket_wrapper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y socket_wrapper + CHECK_RESULT $? 0 0 "install socket_wrapper failed" + SLEEP_WAIT 1 + dnf remove -y socket_wrapper + CHECK_RESULT $? 0 0 "remove socket_wrapper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-debuginfo.sh b/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..90ec6206e94de6d9ef147ff598e416c57279eaf8 --- /dev/null +++ b/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src softhsm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available softhsm-debuginfo | grep -v \.src | grep softhsm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm softhsm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y softhsm-debuginfo + CHECK_RESULT $? 0 0 "install softhsm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y softhsm-debuginfo + CHECK_RESULT $? 0 0 "remove softhsm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-debugsource.sh b/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..91a4eaa40423e32c73bafa0f87a82b40609e8d8a --- /dev/null +++ b/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src softhsm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available softhsm-debugsource | grep -v \.src | grep softhsm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm softhsm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y softhsm-debugsource + CHECK_RESULT $? 0 0 "install softhsm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y softhsm-debugsource + CHECK_RESULT $? 0 0 "remove softhsm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-devel.sh b/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2120e852bc6841505dc4285c6182adf54805a16 --- /dev/null +++ b/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src softhsm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available softhsm-devel | grep -v \.src | grep softhsm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm softhsm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y softhsm-devel + CHECK_RESULT $? 0 0 "install softhsm-devel failed" + SLEEP_WAIT 1 + dnf remove -y softhsm-devel + CHECK_RESULT $? 0 0 "remove softhsm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-help.sh b/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1d3c85b1e168181a8af717006a4f28fe8f3e669 --- /dev/null +++ b/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src softhsm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available softhsm-help | grep -v \.src | grep softhsm-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm softhsm-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y softhsm-help + CHECK_RESULT $? 0 0 "install softhsm-help failed" + SLEEP_WAIT 1 + dnf remove -y softhsm-help + CHECK_RESULT $? 0 0 "remove softhsm-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm.sh b/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm.sh new file mode 100644 index 0000000000000000000000000000000000000000..db707f26dbb988900ed183a3a873c1ea72ece167 --- /dev/null +++ b/testcases/cli-test/softhsm/oe_test_softhsm_install_and_remove_softhsm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src softhsm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available softhsm | grep -v \.src | grep softhsm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm softhsm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y softhsm + CHECK_RESULT $? 0 0 "install softhsm failed" + SLEEP_WAIT 1 + dnf remove -y softhsm + CHECK_RESULT $? 0 0 "remove softhsm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sonatype-oss-parent/oe_test_sonatype-oss-parent_install_and_remove_sonatype-oss-parent.sh b/testcases/cli-test/sonatype-oss-parent/oe_test_sonatype-oss-parent_install_and_remove_sonatype-oss-parent.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4d33509e70b6b60734ff15933fd012bb32f2217 --- /dev/null +++ b/testcases/cli-test/sonatype-oss-parent/oe_test_sonatype-oss-parent_install_and_remove_sonatype-oss-parent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sonatype-oss-parent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sonatype-oss-parent | grep -v \.src | grep sonatype-oss-parent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sonatype-oss-parent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sonatype-oss-parent + CHECK_RESULT $? 0 0 "install sonatype-oss-parent failed" + SLEEP_WAIT 1 + dnf remove -y sonatype-oss-parent + CHECK_RESULT $? 0 0 "remove sonatype-oss-parent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sound-theme-freedesktop/oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop-doc.sh b/testcases/cli-test/sound-theme-freedesktop/oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5313ed4b37cc18d27784e77ae8043f39bc14bbcc --- /dev/null +++ b/testcases/cli-test/sound-theme-freedesktop/oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sound-theme-freedesktop +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sound-theme-freedesktop-doc | grep -v \.src | grep sound-theme-freedesktop-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sound-theme-freedesktop-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sound-theme-freedesktop-doc + CHECK_RESULT $? 0 0 "install sound-theme-freedesktop-doc failed" + SLEEP_WAIT 1 + dnf remove -y sound-theme-freedesktop-doc + CHECK_RESULT $? 0 0 "remove sound-theme-freedesktop-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sound-theme-freedesktop/oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop-help.sh b/testcases/cli-test/sound-theme-freedesktop/oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd1be1d484944fa1c3f4b536a25865fee38f97f4 --- /dev/null +++ b/testcases/cli-test/sound-theme-freedesktop/oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sound-theme-freedesktop +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sound-theme-freedesktop-help | grep -v \.src | grep sound-theme-freedesktop-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sound-theme-freedesktop-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sound-theme-freedesktop-help + CHECK_RESULT $? 0 0 "install sound-theme-freedesktop-help failed" + SLEEP_WAIT 1 + dnf remove -y sound-theme-freedesktop-help + CHECK_RESULT $? 0 0 "remove sound-theme-freedesktop-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sound-theme-freedesktop/oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop.sh b/testcases/cli-test/sound-theme-freedesktop/oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop.sh new file mode 100644 index 0000000000000000000000000000000000000000..95ac44649f45b9dce95aebebc48747fa16f1a1c9 --- /dev/null +++ b/testcases/cli-test/sound-theme-freedesktop/oe_test_sound-theme-freedesktop_install_and_remove_sound-theme-freedesktop.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sound-theme-freedesktop +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sound-theme-freedesktop | grep -v \.src | grep sound-theme-freedesktop + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sound-theme-freedesktop" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sound-theme-freedesktop + CHECK_RESULT $? 0 0 "install sound-theme-freedesktop failed" + SLEEP_WAIT 1 + dnf remove -y sound-theme-freedesktop + CHECK_RESULT $? 0 0 "remove sound-theme-freedesktop failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-debuginfo.sh b/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..851b1cb34e07cb04014d9ec4adcadaa9e8104ce1 --- /dev/null +++ b/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src speexdsp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available speexdsp-debuginfo | grep -v \.src | grep speexdsp-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm speexdsp-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y speexdsp-debuginfo + CHECK_RESULT $? 0 0 "install speexdsp-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y speexdsp-debuginfo + CHECK_RESULT $? 0 0 "remove speexdsp-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-debugsource.sh b/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5bacdee62c3806e3b29e599b2531dbaf2331b5e1 --- /dev/null +++ b/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src speexdsp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available speexdsp-debugsource | grep -v \.src | grep speexdsp-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm speexdsp-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y speexdsp-debugsource + CHECK_RESULT $? 0 0 "install speexdsp-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y speexdsp-debugsource + CHECK_RESULT $? 0 0 "remove speexdsp-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-devel.sh b/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..b244c991da2482ed9e44cbbc932e0e7d96dba247 --- /dev/null +++ b/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src speexdsp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available speexdsp-devel | grep -v \.src | grep speexdsp-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm speexdsp-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y speexdsp-devel + CHECK_RESULT $? 0 0 "install speexdsp-devel failed" + SLEEP_WAIT 1 + dnf remove -y speexdsp-devel + CHECK_RESULT $? 0 0 "remove speexdsp-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-help.sh b/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4fc31bf0c31ce85fb9dca116b9fc172f7d2b4d0 --- /dev/null +++ b/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src speexdsp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available speexdsp-help | grep -v \.src | grep speexdsp-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm speexdsp-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y speexdsp-help + CHECK_RESULT $? 0 0 "install speexdsp-help failed" + SLEEP_WAIT 1 + dnf remove -y speexdsp-help + CHECK_RESULT $? 0 0 "remove speexdsp-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp.sh b/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ab759cdb4dc7f2e32489802ba434f0fdb63d81f --- /dev/null +++ b/testcases/cli-test/speexdsp/oe_test_speexdsp_install_and_remove_speexdsp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src speexdsp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available speexdsp | grep -v \.src | grep speexdsp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm speexdsp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y speexdsp + CHECK_RESULT $? 0 0 "install speexdsp failed" + SLEEP_WAIT 1 + dnf remove -y speexdsp + CHECK_RESULT $? 0 0 "remove speexdsp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice-protocol/oe_test_spice-protocol_install_and_remove_spice-protocol.sh b/testcases/cli-test/spice-protocol/oe_test_spice-protocol_install_and_remove_spice-protocol.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6d9e6cae96e0d0694795b4c7498e117166bc34a --- /dev/null +++ b/testcases/cli-test/spice-protocol/oe_test_spice-protocol_install_and_remove_spice-protocol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice-protocol +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice-protocol | grep -v \.src | grep spice-protocol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice-protocol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice-protocol + CHECK_RESULT $? 0 0 "install spice-protocol failed" + SLEEP_WAIT 1 + dnf remove -y spice-protocol + CHECK_RESULT $? 0 0 "remove spice-protocol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent-debuginfo.sh b/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2853576584541a1c99c49ceda249d97809db8c3c --- /dev/null +++ b/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice-vdagent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice-vdagent-debuginfo | grep -v \.src | grep spice-vdagent-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice-vdagent-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice-vdagent-debuginfo + CHECK_RESULT $? 0 0 "install spice-vdagent-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y spice-vdagent-debuginfo + CHECK_RESULT $? 0 0 "remove spice-vdagent-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent-debugsource.sh b/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..11e3eea588f99255759d2cfea7bbb080ae22f4c1 --- /dev/null +++ b/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice-vdagent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice-vdagent-debugsource | grep -v \.src | grep spice-vdagent-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice-vdagent-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice-vdagent-debugsource + CHECK_RESULT $? 0 0 "install spice-vdagent-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y spice-vdagent-debugsource + CHECK_RESULT $? 0 0 "remove spice-vdagent-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent-help.sh b/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..db55e71a9f3be8da1958a7e0dca4fbfef3491b18 --- /dev/null +++ b/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice-vdagent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice-vdagent-help | grep -v \.src | grep spice-vdagent-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice-vdagent-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice-vdagent-help + CHECK_RESULT $? 0 0 "install spice-vdagent-help failed" + SLEEP_WAIT 1 + dnf remove -y spice-vdagent-help + CHECK_RESULT $? 0 0 "remove spice-vdagent-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent.sh b/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent.sh new file mode 100644 index 0000000000000000000000000000000000000000..59c05ee06d6364b83a333fb9bce682383cd525f6 --- /dev/null +++ b/testcases/cli-test/spice-vdagent/oe_test_spice-vdagent_install_and_remove_spice-vdagent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice-vdagent +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice-vdagent | grep -v \.src | grep spice-vdagent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice-vdagent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice-vdagent + CHECK_RESULT $? 0 0 "install spice-vdagent failed" + SLEEP_WAIT 1 + dnf remove -y spice-vdagent + CHECK_RESULT $? 0 0 "remove spice-vdagent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-debuginfo.sh b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..031da713ea2eb63d24539b4ce09b79f6d42a0613 --- /dev/null +++ b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice-debuginfo | grep -v \.src | grep spice-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice-debuginfo + CHECK_RESULT $? 0 0 "install spice-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y spice-debuginfo + CHECK_RESULT $? 0 0 "remove spice-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-debugsource.sh b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0969b8ca62cc77fdbd229c782a6502fd0f06a44d --- /dev/null +++ b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice-debugsource | grep -v \.src | grep spice-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice-debugsource + CHECK_RESULT $? 0 0 "install spice-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y spice-debugsource + CHECK_RESULT $? 0 0 "remove spice-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-help.sh b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba2ceb960c31499e218e65346964d419028d2d98 --- /dev/null +++ b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice-help | grep -v \.src | grep spice-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice-help + CHECK_RESULT $? 0 0 "install spice-help failed" + SLEEP_WAIT 1 + dnf remove -y spice-help + CHECK_RESULT $? 0 0 "remove spice-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-server-devel.sh b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-server-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..05b9b398005018b364768ebe13afe8b114e1f1f6 --- /dev/null +++ b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-server-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice-server-devel | grep -v \.src | grep spice-server-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice-server-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice-server-devel + CHECK_RESULT $? 0 0 "install spice-server-devel failed" + SLEEP_WAIT 1 + dnf remove -y spice-server-devel + CHECK_RESULT $? 0 0 "remove spice-server-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-server.sh b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-server.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed9d135a4ac3470952f9bf1ba27c9d0a41ad254c --- /dev/null +++ b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice-server.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice-server | grep -v \.src | grep spice-server + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice-server" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice-server + CHECK_RESULT $? 0 0 "install spice-server failed" + SLEEP_WAIT 1 + dnf remove -y spice-server + CHECK_RESULT $? 0 0 "remove spice-server failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice.sh b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a54b54567aa979a19cfeefa0211be681d7de057 --- /dev/null +++ b/testcases/cli-test/spice/oe_test_spice_install_and_remove_spice.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src spice +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available spice | grep -v \.src | grep spice + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm spice" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y spice + CHECK_RESULT $? 0 0 "install spice failed" + SLEEP_WAIT 1 + dnf remove -y spice + CHECK_RESULT $? 0 0 "remove spice failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-debuginfo.sh b/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa6d677ffba908a82c29380902683876dd2c368d --- /dev/null +++ b/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sqlite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sqlite-debuginfo | grep -v \.src | grep sqlite-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sqlite-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sqlite-debuginfo + CHECK_RESULT $? 0 0 "install sqlite-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sqlite-debuginfo + CHECK_RESULT $? 0 0 "remove sqlite-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-debugsource.sh b/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b81bccf92bc859cdfcc952c3c419165c89f2081a --- /dev/null +++ b/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sqlite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sqlite-debugsource | grep -v \.src | grep sqlite-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sqlite-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sqlite-debugsource + CHECK_RESULT $? 0 0 "install sqlite-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sqlite-debugsource + CHECK_RESULT $? 0 0 "remove sqlite-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-devel.sh b/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..00065c1b00024754d986f88e90d59afa3df2aa56 --- /dev/null +++ b/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sqlite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sqlite-devel | grep -v \.src | grep sqlite-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sqlite-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sqlite-devel + CHECK_RESULT $? 0 0 "install sqlite-devel failed" + SLEEP_WAIT 1 + dnf remove -y sqlite-devel + CHECK_RESULT $? 0 0 "remove sqlite-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-help.sh b/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ce1aea02631351d670c751bd42ff046fb4055c6 --- /dev/null +++ b/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sqlite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sqlite-help | grep -v \.src | grep sqlite-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sqlite-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sqlite-help + CHECK_RESULT $? 0 0 "install sqlite-help failed" + SLEEP_WAIT 1 + dnf remove -y sqlite-help + CHECK_RESULT $? 0 0 "remove sqlite-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite.sh b/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7e6a839ff4d081b2234d9ffb01ed4514af1f81e --- /dev/null +++ b/testcases/cli-test/sqlite/oe_test_sqlite_install_and_remove_sqlite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sqlite +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sqlite | grep -v \.src | grep sqlite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sqlite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sqlite + CHECK_RESULT $? 0 0 "install sqlite failed" + SLEEP_WAIT 1 + dnf remove -y sqlite + CHECK_RESULT $? 0 0 "remove sqlite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/squashfs-tools/oe_test_squashfs-tools_install_and_remove_squashfs-tools-debuginfo.sh b/testcases/cli-test/squashfs-tools/oe_test_squashfs-tools_install_and_remove_squashfs-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c45d9eed0407b37974bfef4e1d7c9c2b43a91fc --- /dev/null +++ b/testcases/cli-test/squashfs-tools/oe_test_squashfs-tools_install_and_remove_squashfs-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src squashfs-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available squashfs-tools-debuginfo | grep -v \.src | grep squashfs-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm squashfs-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y squashfs-tools-debuginfo + CHECK_RESULT $? 0 0 "install squashfs-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y squashfs-tools-debuginfo + CHECK_RESULT $? 0 0 "remove squashfs-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/squashfs-tools/oe_test_squashfs-tools_install_and_remove_squashfs-tools-debugsource.sh b/testcases/cli-test/squashfs-tools/oe_test_squashfs-tools_install_and_remove_squashfs-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e9cfbae6528f842124797c1708647a7199234f5 --- /dev/null +++ b/testcases/cli-test/squashfs-tools/oe_test_squashfs-tools_install_and_remove_squashfs-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src squashfs-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available squashfs-tools-debugsource | grep -v \.src | grep squashfs-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm squashfs-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y squashfs-tools-debugsource + CHECK_RESULT $? 0 0 "install squashfs-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y squashfs-tools-debugsource + CHECK_RESULT $? 0 0 "remove squashfs-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/squashfs-tools/oe_test_squashfs-tools_install_and_remove_squashfs-tools.sh b/testcases/cli-test/squashfs-tools/oe_test_squashfs-tools_install_and_remove_squashfs-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e83a895df084bc664825422f4ff48f08ed9e0e0 --- /dev/null +++ b/testcases/cli-test/squashfs-tools/oe_test_squashfs-tools_install_and_remove_squashfs-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src squashfs-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available squashfs-tools | grep -v \.src | grep squashfs-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm squashfs-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y squashfs-tools + CHECK_RESULT $? 0 0 "install squashfs-tools failed" + SLEEP_WAIT 1 + dnf remove -y squashfs-tools + CHECK_RESULT $? 0 0 "remove squashfs-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libipa_hbac-devel.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libipa_hbac-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a40f0687147537086cff6ed33f2d10694a6fe4c --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libipa_hbac-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libipa_hbac-devel | grep -v \.src | grep libipa_hbac-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libipa_hbac-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libipa_hbac-devel + CHECK_RESULT $? 0 0 "install libipa_hbac-devel failed" + SLEEP_WAIT 1 + dnf remove -y libipa_hbac-devel + CHECK_RESULT $? 0 0 "remove libipa_hbac-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libipa_hbac.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libipa_hbac.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dc28ffa82faecdd79462e32c1e3fd0c594d5821 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libipa_hbac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libipa_hbac | grep -v \.src | grep libipa_hbac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libipa_hbac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libipa_hbac + CHECK_RESULT $? 0 0 "install libipa_hbac failed" + SLEEP_WAIT 1 + dnf remove -y libipa_hbac + CHECK_RESULT $? 0 0 "remove libipa_hbac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_autofs.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_autofs.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed5a11e106b092db9a9479133d3a854a65e0906a --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_autofs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsss_autofs | grep -v \.src | grep libsss_autofs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsss_autofs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsss_autofs + CHECK_RESULT $? 0 0 "install libsss_autofs failed" + SLEEP_WAIT 1 + dnf remove -y libsss_autofs + CHECK_RESULT $? 0 0 "remove libsss_autofs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_certmap-devel.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_certmap-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..da5ad130c816e3b541089c90451d117cc9c0de91 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_certmap-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsss_certmap-devel | grep -v \.src | grep libsss_certmap-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsss_certmap-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsss_certmap-devel + CHECK_RESULT $? 0 0 "install libsss_certmap-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsss_certmap-devel + CHECK_RESULT $? 0 0 "remove libsss_certmap-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_certmap.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_certmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..130584f3a4b4d82e9f8034a2c90eb530fe6629e7 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_certmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsss_certmap | grep -v \.src | grep libsss_certmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsss_certmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsss_certmap + CHECK_RESULT $? 0 0 "install libsss_certmap failed" + SLEEP_WAIT 1 + dnf remove -y libsss_certmap + CHECK_RESULT $? 0 0 "remove libsss_certmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_idmap-devel.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_idmap-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f8a9a4d80fe1b02b6a3bada5268200022ef84d1 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_idmap-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsss_idmap-devel | grep -v \.src | grep libsss_idmap-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsss_idmap-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsss_idmap-devel + CHECK_RESULT $? 0 0 "install libsss_idmap-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsss_idmap-devel + CHECK_RESULT $? 0 0 "remove libsss_idmap-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_idmap.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_idmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ec4938afabf76d6fc8ecc1c6a6d2d4a5d6ab486 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_idmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsss_idmap | grep -v \.src | grep libsss_idmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsss_idmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsss_idmap + CHECK_RESULT $? 0 0 "install libsss_idmap failed" + SLEEP_WAIT 1 + dnf remove -y libsss_idmap + CHECK_RESULT $? 0 0 "remove libsss_idmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_nss_idmap-devel.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_nss_idmap-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..af06e8da090c015e878feb3b2ec851754cc71558 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_nss_idmap-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsss_nss_idmap-devel | grep -v \.src | grep libsss_nss_idmap-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsss_nss_idmap-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsss_nss_idmap-devel + CHECK_RESULT $? 0 0 "install libsss_nss_idmap-devel failed" + SLEEP_WAIT 1 + dnf remove -y libsss_nss_idmap-devel + CHECK_RESULT $? 0 0 "remove libsss_nss_idmap-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_nss_idmap.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_nss_idmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..8208ca7bfc6d254f22fec98a9541f523144437a4 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_nss_idmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsss_nss_idmap | grep -v \.src | grep libsss_nss_idmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsss_nss_idmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsss_nss_idmap + CHECK_RESULT $? 0 0 "install libsss_nss_idmap failed" + SLEEP_WAIT 1 + dnf remove -y libsss_nss_idmap + CHECK_RESULT $? 0 0 "remove libsss_nss_idmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_sudo.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_sudo.sh new file mode 100644 index 0000000000000000000000000000000000000000..225de56fe339ef615f0853c0268f28b003a0cce2 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_libsss_sudo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsss_sudo | grep -v \.src | grep libsss_sudo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsss_sudo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsss_sudo + CHECK_RESULT $? 0 0 "install libsss_sudo failed" + SLEEP_WAIT 1 + dnf remove -y libsss_sudo + CHECK_RESULT $? 0 0 "remove libsss_sudo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python2-sssd.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python2-sssd.sh new file mode 100644 index 0000000000000000000000000000000000000000..f93335f06f0897795a93dfa9c03f0079c606b4d5 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python2-sssd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-sssd | grep -v \.src | grep python2-sssd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-sssd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-sssd + CHECK_RESULT $? 0 0 "install python2-sssd failed" + SLEEP_WAIT 1 + dnf remove -y python2-sssd + CHECK_RESULT $? 0 0 "remove python2-sssd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-libipa_hbac.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-libipa_hbac.sh new file mode 100644 index 0000000000000000000000000000000000000000..f478ff52da3679c07801d981a437413b5326d9e2 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-libipa_hbac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libipa_hbac | grep -v \.src | grep python3-libipa_hbac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libipa_hbac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libipa_hbac + CHECK_RESULT $? 0 0 "install python3-libipa_hbac failed" + SLEEP_WAIT 1 + dnf remove -y python3-libipa_hbac + CHECK_RESULT $? 0 0 "remove python3-libipa_hbac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-libsss_nss_idmap.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-libsss_nss_idmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8c35a0c25acf95ac283cf4834843432a5c5a9bc --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-libsss_nss_idmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libsss_nss_idmap | grep -v \.src | grep python3-libsss_nss_idmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libsss_nss_idmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libsss_nss_idmap + CHECK_RESULT $? 0 0 "install python3-libsss_nss_idmap failed" + SLEEP_WAIT 1 + dnf remove -y python3-libsss_nss_idmap + CHECK_RESULT $? 0 0 "remove python3-libsss_nss_idmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sss-murmur.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sss-murmur.sh new file mode 100644 index 0000000000000000000000000000000000000000..017cff59117f88469bbeb37c9f3547f89265d5ae --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sss-murmur.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-sss-murmur | grep -v \.src | grep python3-sss-murmur + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-sss-murmur" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-sss-murmur + CHECK_RESULT $? 0 0 "install python3-sss-murmur failed" + SLEEP_WAIT 1 + dnf remove -y python3-sss-murmur + CHECK_RESULT $? 0 0 "remove python3-sss-murmur failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sss.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sss.sh new file mode 100644 index 0000000000000000000000000000000000000000..473c2efba02a7b37746a3ccbe8d1b2fe7f113303 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-sss | grep -v \.src | grep python3-sss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-sss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-sss + CHECK_RESULT $? 0 0 "install python3-sss failed" + SLEEP_WAIT 1 + dnf remove -y python3-sss + CHECK_RESULT $? 0 0 "remove python3-sss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sssd.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sssd.sh new file mode 100644 index 0000000000000000000000000000000000000000..91583c4de2f84acd86e2aec710c39d204a9da60a --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sssd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-sssd | grep -v \.src | grep python3-sssd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-sssd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-sssd + CHECK_RESULT $? 0 0 "install python3-sssd failed" + SLEEP_WAIT 1 + dnf remove -y python3-sssd + CHECK_RESULT $? 0 0 "remove python3-sssd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sssdconfig.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sssdconfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..ddc39a84ea87dcab749dae88ee2a00eafe4ff1ab --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_python3-sssdconfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-sssdconfig | grep -v \.src | grep python3-sssdconfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-sssdconfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-sssdconfig + CHECK_RESULT $? 0 0 "install python3-sssdconfig failed" + SLEEP_WAIT 1 + dnf remove -y python3-sssdconfig + CHECK_RESULT $? 0 0 "remove python3-sssdconfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-ad.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-ad.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae204f038e9df397c82f995ed58b0ede75202ba7 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-ad.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-ad | grep -v \.src | grep sssd-ad + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-ad" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-ad + CHECK_RESULT $? 0 0 "install sssd-ad failed" + SLEEP_WAIT 1 + dnf remove -y sssd-ad + CHECK_RESULT $? 0 0 "remove sssd-ad failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-client.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-client.sh new file mode 100644 index 0000000000000000000000000000000000000000..17fafc645c34aaf5c597e56f6baae692122e1789 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-client.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-client | grep -v \.src | grep sssd-client + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-client" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-client + CHECK_RESULT $? 0 0 "install sssd-client failed" + SLEEP_WAIT 1 + dnf remove -y sssd-client + CHECK_RESULT $? 0 0 "remove sssd-client failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-common-pac.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-common-pac.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff32b06a45cb4c2be6a68335248494fe7e82ed25 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-common-pac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-common-pac | grep -v \.src | grep sssd-common-pac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-common-pac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-common-pac + CHECK_RESULT $? 0 0 "install sssd-common-pac failed" + SLEEP_WAIT 1 + dnf remove -y sssd-common-pac + CHECK_RESULT $? 0 0 "remove sssd-common-pac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-common.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c85943cd01249206d4afaa58f8f51b74b842015 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-common | grep -v \.src | grep sssd-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-common + CHECK_RESULT $? 0 0 "install sssd-common failed" + SLEEP_WAIT 1 + dnf remove -y sssd-common + CHECK_RESULT $? 0 0 "remove sssd-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-dbus.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-dbus.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6b540b8bed721871ebdaecbfcedbb1eef576503 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-dbus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-dbus | grep -v \.src | grep sssd-dbus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-dbus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-dbus + CHECK_RESULT $? 0 0 "install sssd-dbus failed" + SLEEP_WAIT 1 + dnf remove -y sssd-dbus + CHECK_RESULT $? 0 0 "remove sssd-dbus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-debuginfo.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..42958bfd5edaeb605eeff2e9ddb8f0c04d1bff53 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-debuginfo | grep -v \.src | grep sssd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-debuginfo + CHECK_RESULT $? 0 0 "install sssd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sssd-debuginfo + CHECK_RESULT $? 0 0 "remove sssd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-debugsource.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e6975cceae8c948d1a40011e8bc4d66fe786296 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-debugsource | grep -v \.src | grep sssd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-debugsource + CHECK_RESULT $? 0 0 "install sssd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sssd-debugsource + CHECK_RESULT $? 0 0 "remove sssd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-devel.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b4002397fb2856b7e25b27c1f56dcff86f9a187 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-devel | grep -v \.src | grep sssd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-devel + CHECK_RESULT $? 0 0 "install sssd-devel failed" + SLEEP_WAIT 1 + dnf remove -y sssd-devel + CHECK_RESULT $? 0 0 "remove sssd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-help.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..764bf993c46b65735c21eab7c6c5c6a9ca3d669e --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-help | grep -v \.src | grep sssd-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-help + CHECK_RESULT $? 0 0 "install sssd-help failed" + SLEEP_WAIT 1 + dnf remove -y sssd-help + CHECK_RESULT $? 0 0 "remove sssd-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-idp.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-idp.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d7ee5483ca6570d49fdf0492874f6c0e8a6250e --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-idp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-idp | grep -v \.src | grep sssd-idp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-idp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-idp + CHECK_RESULT $? 0 0 "install sssd-idp failed" + SLEEP_WAIT 1 + dnf remove -y sssd-idp + CHECK_RESULT $? 0 0 "remove sssd-idp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-ipa.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-ipa.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef7362ff6b3b757b875f06562b6f0129d8780ec1 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-ipa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-ipa | grep -v \.src | grep sssd-ipa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-ipa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-ipa + CHECK_RESULT $? 0 0 "install sssd-ipa failed" + SLEEP_WAIT 1 + dnf remove -y sssd-ipa + CHECK_RESULT $? 0 0 "remove sssd-ipa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-kcm.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-kcm.sh new file mode 100644 index 0000000000000000000000000000000000000000..93013924a699cb7807e7cd115014c476953377a7 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-kcm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-kcm | grep -v \.src | grep sssd-kcm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-kcm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-kcm + CHECK_RESULT $? 0 0 "install sssd-kcm failed" + SLEEP_WAIT 1 + dnf remove -y sssd-kcm + CHECK_RESULT $? 0 0 "remove sssd-kcm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-krb5-common.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-krb5-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea89310726c352d842ee2c84f540e7016e38bd93 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-krb5-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-krb5-common | grep -v \.src | grep sssd-krb5-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-krb5-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-krb5-common + CHECK_RESULT $? 0 0 "install sssd-krb5-common failed" + SLEEP_WAIT 1 + dnf remove -y sssd-krb5-common + CHECK_RESULT $? 0 0 "remove sssd-krb5-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-krb5.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-krb5.sh new file mode 100644 index 0000000000000000000000000000000000000000..11f8db5282a4c00d3750da2b42221954cce26430 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-krb5.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-krb5 | grep -v \.src | grep sssd-krb5 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-krb5" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-krb5 + CHECK_RESULT $? 0 0 "install sssd-krb5 failed" + SLEEP_WAIT 1 + dnf remove -y sssd-krb5 + CHECK_RESULT $? 0 0 "remove sssd-krb5 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-ldap.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-ldap.sh new file mode 100644 index 0000000000000000000000000000000000000000..e23cee26ce7e1f0d51cce46d56fb6e33ceb12ad5 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-ldap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-ldap | grep -v \.src | grep sssd-ldap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-ldap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-ldap + CHECK_RESULT $? 0 0 "install sssd-ldap failed" + SLEEP_WAIT 1 + dnf remove -y sssd-ldap + CHECK_RESULT $? 0 0 "remove sssd-ldap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-nfs-idmap.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-nfs-idmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..41bd1352023f32bc914a9d51cc9fcdbe3401315c --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-nfs-idmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-nfs-idmap | grep -v \.src | grep sssd-nfs-idmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-nfs-idmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-nfs-idmap + CHECK_RESULT $? 0 0 "install sssd-nfs-idmap failed" + SLEEP_WAIT 1 + dnf remove -y sssd-nfs-idmap + CHECK_RESULT $? 0 0 "remove sssd-nfs-idmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-proxy.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-proxy.sh new file mode 100644 index 0000000000000000000000000000000000000000..4edd98c38e0eec2c3501f6a06683a154f44f8dcc --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-proxy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-proxy | grep -v \.src | grep sssd-proxy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-proxy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-proxy + CHECK_RESULT $? 0 0 "install sssd-proxy failed" + SLEEP_WAIT 1 + dnf remove -y sssd-proxy + CHECK_RESULT $? 0 0 "remove sssd-proxy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-tools.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..3761bb7fb5bee90e8f50e060941907368d859aab --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-tools | grep -v \.src | grep sssd-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-tools + CHECK_RESULT $? 0 0 "install sssd-tools failed" + SLEEP_WAIT 1 + dnf remove -y sssd-tools + CHECK_RESULT $? 0 0 "remove sssd-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-winbind-idmap.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-winbind-idmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbc8a98c6d88da8ef1b2980c2bf8f00e8cfdba19 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd-winbind-idmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd-winbind-idmap | grep -v \.src | grep sssd-winbind-idmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd-winbind-idmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd-winbind-idmap + CHECK_RESULT $? 0 0 "install sssd-winbind-idmap failed" + SLEEP_WAIT 1 + dnf remove -y sssd-winbind-idmap + CHECK_RESULT $? 0 0 "remove sssd-winbind-idmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd.sh b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd.sh new file mode 100644 index 0000000000000000000000000000000000000000..fac306e696761af92377de56cab49ec4e9d3fe16 --- /dev/null +++ b/testcases/cli-test/sssd/oe_test_sssd_install_and_remove_sssd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sssd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sssd | grep -v \.src | grep sssd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sssd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sssd + CHECK_RESULT $? 0 0 "install sssd failed" + SLEEP_WAIT 1 + dnf remove -y sssd + CHECK_RESULT $? 0 0 "remove sssd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-debuginfo.sh b/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6fe4ba0067d7758b038955269836a36d60d05f7 --- /dev/null +++ b/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src startup-notification +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available startup-notification-debuginfo | grep -v \.src | grep startup-notification-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm startup-notification-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y startup-notification-debuginfo + CHECK_RESULT $? 0 0 "install startup-notification-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y startup-notification-debuginfo + CHECK_RESULT $? 0 0 "remove startup-notification-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-debugsource.sh b/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a2f2d0c9f42d1e90c289d709654e287630013ef --- /dev/null +++ b/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src startup-notification +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available startup-notification-debugsource | grep -v \.src | grep startup-notification-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm startup-notification-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y startup-notification-debugsource + CHECK_RESULT $? 0 0 "install startup-notification-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y startup-notification-debugsource + CHECK_RESULT $? 0 0 "remove startup-notification-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-devel.sh b/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..933859dddd9cee1c71c32a97149ead2b0e8b8774 --- /dev/null +++ b/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src startup-notification +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available startup-notification-devel | grep -v \.src | grep startup-notification-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm startup-notification-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y startup-notification-devel + CHECK_RESULT $? 0 0 "install startup-notification-devel failed" + SLEEP_WAIT 1 + dnf remove -y startup-notification-devel + CHECK_RESULT $? 0 0 "remove startup-notification-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-help.sh b/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..62bc5e2d19be785b6ab31cc9ed43b16826c06eeb --- /dev/null +++ b/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src startup-notification +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available startup-notification-help | grep -v \.src | grep startup-notification-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm startup-notification-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y startup-notification-help + CHECK_RESULT $? 0 0 "install startup-notification-help failed" + SLEEP_WAIT 1 + dnf remove -y startup-notification-help + CHECK_RESULT $? 0 0 "remove startup-notification-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification.sh b/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification.sh new file mode 100644 index 0000000000000000000000000000000000000000..728eb91a5f819f6174750b87e76d5ec2488e929e --- /dev/null +++ b/testcases/cli-test/startup-notification/oe_test_startup-notification_install_and_remove_startup-notification.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src startup-notification +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available startup-notification | grep -v \.src | grep startup-notification + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm startup-notification" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y startup-notification + CHECK_RESULT $? 0 0 "install startup-notification failed" + SLEEP_WAIT 1 + dnf remove -y startup-notification + CHECK_RESULT $? 0 0 "remove startup-notification failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace-debuginfo.sh b/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..15f4ca0d104d2ffb3f744a519b934ce0e2a95e83 --- /dev/null +++ b/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src strace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available strace-debuginfo | grep -v \.src | grep strace-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm strace-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y strace-debuginfo + CHECK_RESULT $? 0 0 "install strace-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y strace-debuginfo + CHECK_RESULT $? 0 0 "remove strace-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace-debugsource.sh b/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..745a3738f85fc91cd86d374ba3081eed8b8fbefa --- /dev/null +++ b/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src strace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available strace-debugsource | grep -v \.src | grep strace-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm strace-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y strace-debugsource + CHECK_RESULT $? 0 0 "install strace-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y strace-debugsource + CHECK_RESULT $? 0 0 "remove strace-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace-doc.sh b/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a7ed0d6bbca2fbb8c1e6b2d92e447e36aed715c --- /dev/null +++ b/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src strace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available strace-doc | grep -v \.src | grep strace-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm strace-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y strace-doc + CHECK_RESULT $? 0 0 "install strace-doc failed" + SLEEP_WAIT 1 + dnf remove -y strace-doc + CHECK_RESULT $? 0 0 "remove strace-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace.sh b/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace.sh new file mode 100644 index 0000000000000000000000000000000000000000..d79c6f638c678ba4965e2fd6fc4a21cec39e6fd1 --- /dev/null +++ b/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src strace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available strace | grep -v \.src | grep strace + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm strace" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y strace + CHECK_RESULT $? 0 0 "install strace failed" + SLEEP_WAIT 1 + dnf remove -y strace + CHECK_RESULT $? 0 0 "remove strace failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace32.sh b/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace32.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf033854cafd62a24b88ae04b03ea1c61e6fe6ba --- /dev/null +++ b/testcases/cli-test/strace/oe_test_strace_install_and_remove_strace32.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src strace +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available strace32 | grep -v \.src | grep strace32 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm strace32" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y strace32 + CHECK_RESULT $? 0 0 "install strace32 failed" + SLEEP_WAIT 1 + dnf remove -y strace32 + CHECK_RESULT $? 0 0 "remove strace32 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel-debuginfo.sh b/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..59f79971a7861976805263064366938da40d5d9f --- /dev/null +++ b/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src stunnel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available stunnel-debuginfo | grep -v \.src | grep stunnel-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm stunnel-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y stunnel-debuginfo + CHECK_RESULT $? 0 0 "install stunnel-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y stunnel-debuginfo + CHECK_RESULT $? 0 0 "remove stunnel-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel-debugsource.sh b/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e1da04c042454bf1b7aca68fa874c9b54182124 --- /dev/null +++ b/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src stunnel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available stunnel-debugsource | grep -v \.src | grep stunnel-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm stunnel-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y stunnel-debugsource + CHECK_RESULT $? 0 0 "install stunnel-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y stunnel-debugsource + CHECK_RESULT $? 0 0 "remove stunnel-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel-help.sh b/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..84b94f31292f5cf48c1f563d37eaeee850e32679 --- /dev/null +++ b/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src stunnel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available stunnel-help | grep -v \.src | grep stunnel-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm stunnel-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y stunnel-help + CHECK_RESULT $? 0 0 "install stunnel-help failed" + SLEEP_WAIT 1 + dnf remove -y stunnel-help + CHECK_RESULT $? 0 0 "remove stunnel-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel.sh b/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cf6ef1c8f6e2a8a831f4fc7baa7c3505bba7611 --- /dev/null +++ b/testcases/cli-test/stunnel/oe_test_stunnel_install_and_remove_stunnel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src stunnel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available stunnel | grep -v \.src | grep stunnel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm stunnel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y stunnel + CHECK_RESULT $? 0 0 "install stunnel failed" + SLEEP_WAIT 1 + dnf remove -y stunnel + CHECK_RESULT $? 0 0 "remove stunnel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_python2-subunit.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_python2-subunit.sh new file mode 100644 index 0000000000000000000000000000000000000000..d048b34a0502501e62aa84fe293be7f66a382836 --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_python2-subunit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python2-subunit | grep -v \.src | grep python2-subunit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python2-subunit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python2-subunit + CHECK_RESULT $? 0 0 "install python2-subunit failed" + SLEEP_WAIT 1 + dnf remove -y python2-subunit + CHECK_RESULT $? 0 0 "remove python2-subunit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_python3-subunit-test.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_python3-subunit-test.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cb367485ef196ca1a7e0aad1fd160e69a996d36 --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_python3-subunit-test.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-subunit-test | grep -v \.src | grep python3-subunit-test + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-subunit-test" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-subunit-test + CHECK_RESULT $? 0 0 "install python3-subunit-test failed" + SLEEP_WAIT 1 + dnf remove -y python3-subunit-test + CHECK_RESULT $? 0 0 "remove python3-subunit-test failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_python3-subunit.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_python3-subunit.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab5a50e92fcfa53b806f8f5b2b5fc38b2ab4aafc --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_python3-subunit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-subunit | grep -v \.src | grep python3-subunit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-subunit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-subunit + CHECK_RESULT $? 0 0 "install python3-subunit failed" + SLEEP_WAIT 1 + dnf remove -y python3-subunit + CHECK_RESULT $? 0 0 "remove python3-subunit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-cppunit-devel.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-cppunit-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dd69753e386a9b8fcc4ccc6d7f723897e1a735b --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-cppunit-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available subunit-cppunit-devel | grep -v \.src | grep subunit-cppunit-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm subunit-cppunit-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y subunit-cppunit-devel + CHECK_RESULT $? 0 0 "install subunit-cppunit-devel failed" + SLEEP_WAIT 1 + dnf remove -y subunit-cppunit-devel + CHECK_RESULT $? 0 0 "remove subunit-cppunit-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-cppunit.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-cppunit.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d953d721562ae88dd46331b7acf43981b79af0d --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-cppunit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available subunit-cppunit | grep -v \.src | grep subunit-cppunit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm subunit-cppunit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y subunit-cppunit + CHECK_RESULT $? 0 0 "install subunit-cppunit failed" + SLEEP_WAIT 1 + dnf remove -y subunit-cppunit + CHECK_RESULT $? 0 0 "remove subunit-cppunit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-debuginfo.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..058cccac937332a9ebcdcccd27ca5dbfc23d61d2 --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available subunit-debuginfo | grep -v \.src | grep subunit-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm subunit-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y subunit-debuginfo + CHECK_RESULT $? 0 0 "install subunit-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y subunit-debuginfo + CHECK_RESULT $? 0 0 "remove subunit-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-debugsource.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..faf067d03a9bdedde69ccd25675fed0bc07c17e9 --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available subunit-debugsource | grep -v \.src | grep subunit-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm subunit-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y subunit-debugsource + CHECK_RESULT $? 0 0 "install subunit-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y subunit-debugsource + CHECK_RESULT $? 0 0 "remove subunit-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-devel.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..75227fa23e1bde020ed90bbbdcf287b2bb9faf4b --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available subunit-devel | grep -v \.src | grep subunit-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm subunit-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y subunit-devel + CHECK_RESULT $? 0 0 "install subunit-devel failed" + SLEEP_WAIT 1 + dnf remove -y subunit-devel + CHECK_RESULT $? 0 0 "remove subunit-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-filters.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-filters.sh new file mode 100644 index 0000000000000000000000000000000000000000..67c4bae4df505fea75ab889afa2d43c30742bdcf --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-filters.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available subunit-filters | grep -v \.src | grep subunit-filters + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm subunit-filters" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y subunit-filters + CHECK_RESULT $? 0 0 "install subunit-filters failed" + SLEEP_WAIT 1 + dnf remove -y subunit-filters + CHECK_RESULT $? 0 0 "remove subunit-filters failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-perl.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-perl.sh new file mode 100644 index 0000000000000000000000000000000000000000..60b9d874f13798649f865d0e3a7b9824f900fdc5 --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-perl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available subunit-perl | grep -v \.src | grep subunit-perl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm subunit-perl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y subunit-perl + CHECK_RESULT $? 0 0 "install subunit-perl failed" + SLEEP_WAIT 1 + dnf remove -y subunit-perl + CHECK_RESULT $? 0 0 "remove subunit-perl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-shell.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-shell.sh new file mode 100644 index 0000000000000000000000000000000000000000..67be0d19bf51c7a9692132792ca3c39e654e03b6 --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-shell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available subunit-shell | grep -v \.src | grep subunit-shell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm subunit-shell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y subunit-shell + CHECK_RESULT $? 0 0 "install subunit-shell failed" + SLEEP_WAIT 1 + dnf remove -y subunit-shell + CHECK_RESULT $? 0 0 "remove subunit-shell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-static.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-static.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b4867044e895a5020b6539eefd184a61c85c739 --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit-static.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available subunit-static | grep -v \.src | grep subunit-static + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm subunit-static" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y subunit-static + CHECK_RESULT $? 0 0 "install subunit-static failed" + SLEEP_WAIT 1 + dnf remove -y subunit-static + CHECK_RESULT $? 0 0 "remove subunit-static failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit.sh b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b85fc805a99100c70173f26056f16182a3247ee --- /dev/null +++ b/testcases/cli-test/subunit/oe_test_subunit_install_and_remove_subunit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src subunit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available subunit | grep -v \.src | grep subunit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm subunit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y subunit + CHECK_RESULT $? 0 0 "install subunit failed" + SLEEP_WAIT 1 + dnf remove -y subunit + CHECK_RESULT $? 0 0 "remove subunit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-debuginfo.sh b/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9986acf91c806f131c9378310020ca43004611e8 --- /dev/null +++ b/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sudo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sudo-debuginfo | grep -v \.src | grep sudo-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sudo-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sudo-debuginfo + CHECK_RESULT $? 0 0 "install sudo-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sudo-debuginfo + CHECK_RESULT $? 0 0 "remove sudo-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-debugsource.sh b/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..78d47b90ceac2db5eee2f99437a3d76a36c58331 --- /dev/null +++ b/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sudo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sudo-debugsource | grep -v \.src | grep sudo-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sudo-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sudo-debugsource + CHECK_RESULT $? 0 0 "install sudo-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sudo-debugsource + CHECK_RESULT $? 0 0 "remove sudo-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-devel.sh b/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..26ae2400d144e1069b343c604370de1452e1787b --- /dev/null +++ b/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sudo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sudo-devel | grep -v \.src | grep sudo-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sudo-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sudo-devel + CHECK_RESULT $? 0 0 "install sudo-devel failed" + SLEEP_WAIT 1 + dnf remove -y sudo-devel + CHECK_RESULT $? 0 0 "remove sudo-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-help.sh b/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e093838cf33ddfee6633d3559dbf22d53528cf09 --- /dev/null +++ b/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sudo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sudo-help | grep -v \.src | grep sudo-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sudo-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sudo-help + CHECK_RESULT $? 0 0 "install sudo-help failed" + SLEEP_WAIT 1 + dnf remove -y sudo-help + CHECK_RESULT $? 0 0 "remove sudo-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo.sh b/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6d8a8e1c222aa62713396642f7a2ab0966d7f1d --- /dev/null +++ b/testcases/cli-test/sudo/oe_test_sudo_install_and_remove_sudo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sudo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sudo | grep -v \.src | grep sudo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sudo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sudo + CHECK_RESULT $? 0 0 "install sudo failed" + SLEEP_WAIT 1 + dnf remove -y sudo + CHECK_RESULT $? 0 0 "remove sudo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/swig/oe_test_swig_install_and_remove_ccache-swig.sh b/testcases/cli-test/swig/oe_test_swig_install_and_remove_ccache-swig.sh new file mode 100644 index 0000000000000000000000000000000000000000..f56bccefc5d5533c29d01da5cf1543af2ea36fd7 --- /dev/null +++ b/testcases/cli-test/swig/oe_test_swig_install_and_remove_ccache-swig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src swig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ccache-swig | grep -v \.src | grep ccache-swig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ccache-swig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ccache-swig + CHECK_RESULT $? 0 0 "install ccache-swig failed" + SLEEP_WAIT 1 + dnf remove -y ccache-swig + CHECK_RESULT $? 0 0 "remove ccache-swig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-debuginfo.sh b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f2c632899d950bcae5f50c06365236eba55b8c2 --- /dev/null +++ b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src swig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available swig-debuginfo | grep -v \.src | grep swig-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm swig-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y swig-debuginfo + CHECK_RESULT $? 0 0 "install swig-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y swig-debuginfo + CHECK_RESULT $? 0 0 "remove swig-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-debugsource.sh b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..36893d9f0233b59e55d559b002129e3ab3b0603c --- /dev/null +++ b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src swig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available swig-debugsource | grep -v \.src | grep swig-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm swig-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y swig-debugsource + CHECK_RESULT $? 0 0 "install swig-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y swig-debugsource + CHECK_RESULT $? 0 0 "remove swig-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-doc.sh b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fdeed84416f5d657b7417852e35c2a3082e51d7a --- /dev/null +++ b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src swig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available swig-doc | grep -v \.src | grep swig-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm swig-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y swig-doc + CHECK_RESULT $? 0 0 "install swig-doc failed" + SLEEP_WAIT 1 + dnf remove -y swig-doc + CHECK_RESULT $? 0 0 "remove swig-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-gdb.sh b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-gdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..52383500aa36ccb1545188ed57fc880d3845ca7e --- /dev/null +++ b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-gdb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src swig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available swig-gdb | grep -v \.src | grep swig-gdb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm swig-gdb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y swig-gdb + CHECK_RESULT $? 0 0 "install swig-gdb failed" + SLEEP_WAIT 1 + dnf remove -y swig-gdb + CHECK_RESULT $? 0 0 "remove swig-gdb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-help.sh b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..80ba5c9db81c2beea988a9bf1dd35801f79aad3f --- /dev/null +++ b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src swig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available swig-help | grep -v \.src | grep swig-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm swig-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y swig-help + CHECK_RESULT $? 0 0 "install swig-help failed" + SLEEP_WAIT 1 + dnf remove -y swig-help + CHECK_RESULT $? 0 0 "remove swig-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig.sh b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig.sh new file mode 100644 index 0000000000000000000000000000000000000000..39f155c6ea595f39f4f1afc0bb66b436d91eb4fd --- /dev/null +++ b/testcases/cli-test/swig/oe_test_swig_install_and_remove_swig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src swig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available swig | grep -v \.src | grep swig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm swig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y swig + CHECK_RESULT $? 0 0 "install swig failed" + SLEEP_WAIT 1 + dnf remove -y swig + CHECK_RESULT $? 0 0 "remove swig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/symlinks/oe_test_symlinks_install_and_remove_symlinks-debuginfo.sh b/testcases/cli-test/symlinks/oe_test_symlinks_install_and_remove_symlinks-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0486e5cec99df69f3a63e6b477ee32ef5f7c6fa6 --- /dev/null +++ b/testcases/cli-test/symlinks/oe_test_symlinks_install_and_remove_symlinks-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src symlinks +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available symlinks-debuginfo | grep -v \.src | grep symlinks-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm symlinks-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y symlinks-debuginfo + CHECK_RESULT $? 0 0 "install symlinks-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y symlinks-debuginfo + CHECK_RESULT $? 0 0 "remove symlinks-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/symlinks/oe_test_symlinks_install_and_remove_symlinks-debugsource.sh b/testcases/cli-test/symlinks/oe_test_symlinks_install_and_remove_symlinks-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ff984f3da4081fe5aa244adcdbada6d8e9758f0 --- /dev/null +++ b/testcases/cli-test/symlinks/oe_test_symlinks_install_and_remove_symlinks-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src symlinks +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available symlinks-debugsource | grep -v \.src | grep symlinks-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm symlinks-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y symlinks-debugsource + CHECK_RESULT $? 0 0 "install symlinks-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y symlinks-debugsource + CHECK_RESULT $? 0 0 "remove symlinks-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/symlinks/oe_test_symlinks_install_and_remove_symlinks.sh b/testcases/cli-test/symlinks/oe_test_symlinks_install_and_remove_symlinks.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ec4ad17569c09ef9cf8a5bb4ed0bfcd8f191737 --- /dev/null +++ b/testcases/cli-test/symlinks/oe_test_symlinks_install_and_remove_symlinks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src symlinks +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available symlinks | grep -v \.src | grep symlinks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm symlinks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y symlinks + CHECK_RESULT $? 0 0 "install symlinks failed" + SLEEP_WAIT 1 + dnf remove -y symlinks + CHECK_RESULT $? 0 0 "remove symlinks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-debuginfo.sh b/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1c815aec1fbcd77317f8d7f28420faebf5d5057 --- /dev/null +++ b/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sysfsutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sysfsutils-debuginfo | grep -v \.src | grep sysfsutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sysfsutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sysfsutils-debuginfo + CHECK_RESULT $? 0 0 "install sysfsutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y sysfsutils-debuginfo + CHECK_RESULT $? 0 0 "remove sysfsutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-debugsource.sh b/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a686a699195daa146f6c03157d25b22a90b1f185 --- /dev/null +++ b/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sysfsutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sysfsutils-debugsource | grep -v \.src | grep sysfsutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sysfsutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sysfsutils-debugsource + CHECK_RESULT $? 0 0 "install sysfsutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y sysfsutils-debugsource + CHECK_RESULT $? 0 0 "remove sysfsutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-devel.sh b/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c19c5c889869d01aa1a5279f863576fef20bf246 --- /dev/null +++ b/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sysfsutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sysfsutils-devel | grep -v \.src | grep sysfsutils-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sysfsutils-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sysfsutils-devel + CHECK_RESULT $? 0 0 "install sysfsutils-devel failed" + SLEEP_WAIT 1 + dnf remove -y sysfsutils-devel + CHECK_RESULT $? 0 0 "remove sysfsutils-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-help.sh b/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcfb05d82b6a7e20b59b58f1177d207a1b7ec83c --- /dev/null +++ b/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sysfsutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sysfsutils-help | grep -v \.src | grep sysfsutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sysfsutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sysfsutils-help + CHECK_RESULT $? 0 0 "install sysfsutils-help failed" + SLEEP_WAIT 1 + dnf remove -y sysfsutils-help + CHECK_RESULT $? 0 0 "remove sysfsutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils.sh b/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..67ddab8dad5398c78f8f0b7c3480feb94fa9c2ee --- /dev/null +++ b/testcases/cli-test/sysfsutils/oe_test_sysfsutils_install_and_remove_sysfsutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src sysfsutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available sysfsutils | grep -v \.src | grep sysfsutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm sysfsutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y sysfsutils + CHECK_RESULT $? 0 0 "install sysfsutils failed" + SLEEP_WAIT 1 + dnf remove -y sysfsutils + CHECK_RESULT $? 0 0 "remove sysfsutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-debuginfo.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5411c1ccc7fd019d830993acc54e5ee8428f4253 --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux-debuginfo | grep -v \.src | grep syslinux-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux-debuginfo + CHECK_RESULT $? 0 0 "install syslinux-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y syslinux-debuginfo + CHECK_RESULT $? 0 0 "remove syslinux-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-debugsource.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..83ace5d2f15b7c7b1aff8e4289c048e2913de3e6 --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux-debugsource | grep -v \.src | grep syslinux-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux-debugsource + CHECK_RESULT $? 0 0 "install syslinux-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y syslinux-debugsource + CHECK_RESULT $? 0 0 "remove syslinux-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-devel.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c8ecacb62083af13bab2fe82f90b7e7c9d82d80 --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux-devel | grep -v \.src | grep syslinux-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux-devel + CHECK_RESULT $? 0 0 "install syslinux-devel failed" + SLEEP_WAIT 1 + dnf remove -y syslinux-devel + CHECK_RESULT $? 0 0 "remove syslinux-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-efi64.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-efi64.sh new file mode 100644 index 0000000000000000000000000000000000000000..65c3a95b72aa2fb4ca399545b35f8477933ec5e1 --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-efi64.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux-efi64 | grep -v \.src | grep syslinux-efi64 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux-efi64" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux-efi64 + CHECK_RESULT $? 0 0 "install syslinux-efi64 failed" + SLEEP_WAIT 1 + dnf remove -y syslinux-efi64 + CHECK_RESULT $? 0 0 "remove syslinux-efi64 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-extlinux-nonlinux.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-extlinux-nonlinux.sh new file mode 100644 index 0000000000000000000000000000000000000000..990ae349e73282e9eebd754a6c63307f6855652e --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-extlinux-nonlinux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux-extlinux-nonlinux | grep -v \.src | grep syslinux-extlinux-nonlinux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux-extlinux-nonlinux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux-extlinux-nonlinux + CHECK_RESULT $? 0 0 "install syslinux-extlinux-nonlinux failed" + SLEEP_WAIT 1 + dnf remove -y syslinux-extlinux-nonlinux + CHECK_RESULT $? 0 0 "remove syslinux-extlinux-nonlinux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-extlinux.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-extlinux.sh new file mode 100644 index 0000000000000000000000000000000000000000..db593db8ee4eb3abff93c84c6a73bc0c990d1967 --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-extlinux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux-extlinux | grep -v \.src | grep syslinux-extlinux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux-extlinux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux-extlinux + CHECK_RESULT $? 0 0 "install syslinux-extlinux failed" + SLEEP_WAIT 1 + dnf remove -y syslinux-extlinux + CHECK_RESULT $? 0 0 "remove syslinux-extlinux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-help.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..71d402de9ca0d06dc317b7f53d18fc7278839905 --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux-help | grep -v \.src | grep syslinux-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux-help + CHECK_RESULT $? 0 0 "install syslinux-help failed" + SLEEP_WAIT 1 + dnf remove -y syslinux-help + CHECK_RESULT $? 0 0 "remove syslinux-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-nonlinux.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-nonlinux.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ceaf5ede7adf48f5f90bea40117684b766f2eea --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-nonlinux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux-nonlinux | grep -v \.src | grep syslinux-nonlinux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux-nonlinux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux-nonlinux + CHECK_RESULT $? 0 0 "install syslinux-nonlinux failed" + SLEEP_WAIT 1 + dnf remove -y syslinux-nonlinux + CHECK_RESULT $? 0 0 "remove syslinux-nonlinux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-perl.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-perl.sh new file mode 100644 index 0000000000000000000000000000000000000000..a16a5b0112f29a83bb71708e45c6d7ce0e475962 --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-perl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux-perl | grep -v \.src | grep syslinux-perl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux-perl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux-perl + CHECK_RESULT $? 0 0 "install syslinux-perl failed" + SLEEP_WAIT 1 + dnf remove -y syslinux-perl + CHECK_RESULT $? 0 0 "remove syslinux-perl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-tftpboot.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-tftpboot.sh new file mode 100644 index 0000000000000000000000000000000000000000..77fbed4b70d9045efb80189d3f0a5fd5fa7ea732 --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux-tftpboot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux-tftpboot | grep -v \.src | grep syslinux-tftpboot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux-tftpboot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux-tftpboot + CHECK_RESULT $? 0 0 "install syslinux-tftpboot failed" + SLEEP_WAIT 1 + dnf remove -y syslinux-tftpboot + CHECK_RESULT $? 0 0 "remove syslinux-tftpboot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux.sh b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ae05752754e4b9bb5ff66b888beec6c6731116b --- /dev/null +++ b/testcases/cli-test/syslinux/oe_test_syslinux_install_and_remove_syslinux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src syslinux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available syslinux | grep -v \.src | grep syslinux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm syslinux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y syslinux + CHECK_RESULT $? 0 0 "install syslinux failed" + SLEEP_WAIT 1 + dnf remove -y syslinux + CHECK_RESULT $? 0 0 "remove syslinux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_libgudev1-devel.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_libgudev1-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..5053ace1f8252497de1749ee48ee6bf34178727f --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_libgudev1-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgudev1-devel | grep -v \.src | grep libgudev1-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgudev1-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgudev1-devel + CHECK_RESULT $? 0 0 "install libgudev1-devel failed" + SLEEP_WAIT 1 + dnf remove -y libgudev1-devel + CHECK_RESULT $? 0 0 "remove libgudev1-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_libgudev1.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_libgudev1.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b3cf6dfe12104dc2dee42371c0871cdaefeb02e --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_libgudev1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libgudev1 | grep -v \.src | grep libgudev1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libgudev1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libgudev1 + CHECK_RESULT $? 0 0 "install libgudev1 failed" + SLEEP_WAIT 1 + dnf remove -y libgudev1 + CHECK_RESULT $? 0 0 "remove libgudev1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-battery-check.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-battery-check.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9a66b894785c59bddafb6f9203fe6c3ddc88d81 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-battery-check.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-battery-check | grep -v \.src | grep systemd-battery-check + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-battery-check" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-battery-check + CHECK_RESULT $? 0 0 "install systemd-battery-check failed" + SLEEP_WAIT 1 + dnf remove -y systemd-battery-check + CHECK_RESULT $? 0 0 "remove systemd-battery-check failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-boot-unsigned.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-boot-unsigned.sh new file mode 100644 index 0000000000000000000000000000000000000000..46cdccb0bad92036a06fc805a9a8237e7b143f31 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-boot-unsigned.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-boot-unsigned | grep -v \.src | grep systemd-boot-unsigned + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-boot-unsigned" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-boot-unsigned + CHECK_RESULT $? 0 0 "install systemd-boot-unsigned failed" + SLEEP_WAIT 1 + dnf remove -y systemd-boot-unsigned + CHECK_RESULT $? 0 0 "remove systemd-boot-unsigned failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-bsod.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-bsod.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fd864038a962001e2e8e419de2108d73dd43cf5 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-bsod.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-bsod | grep -v \.src | grep systemd-bsod + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-bsod" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-bsod + CHECK_RESULT $? 0 0 "install systemd-bsod failed" + SLEEP_WAIT 1 + dnf remove -y systemd-bsod + CHECK_RESULT $? 0 0 "remove systemd-bsod failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-container.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-container.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fca948cd3975ecba5e5917c5b22bc74391c6e80 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-container.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-container | grep -v \.src | grep systemd-container + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-container" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-container + CHECK_RESULT $? 0 0 "install systemd-container failed" + SLEEP_WAIT 1 + dnf remove -y systemd-container + CHECK_RESULT $? 0 0 "remove systemd-container failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-cryptsetup.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-cryptsetup.sh new file mode 100644 index 0000000000000000000000000000000000000000..0944495cb7fbdfe3573e6874e0321b54f2b0251e --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-cryptsetup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-cryptsetup | grep -v \.src | grep systemd-cryptsetup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-cryptsetup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-cryptsetup + CHECK_RESULT $? 0 0 "install systemd-cryptsetup failed" + SLEEP_WAIT 1 + dnf remove -y systemd-cryptsetup + CHECK_RESULT $? 0 0 "remove systemd-cryptsetup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-debuginfo.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..49d36ff8d2f3a79ed7bf8795cc7cf6839880d865 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-debuginfo | grep -v \.src | grep systemd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-debuginfo + CHECK_RESULT $? 0 0 "install systemd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y systemd-debuginfo + CHECK_RESULT $? 0 0 "remove systemd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-debugsource.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..665e0547ab4e96c778be3fd965c3ade481e9e2a5 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-debugsource | grep -v \.src | grep systemd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-debugsource + CHECK_RESULT $? 0 0 "install systemd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y systemd-debugsource + CHECK_RESULT $? 0 0 "remove systemd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-devel.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa4f8d42b16b473316af19baa1b5277e930cf33b --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-devel | grep -v \.src | grep systemd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-devel + CHECK_RESULT $? 0 0 "install systemd-devel failed" + SLEEP_WAIT 1 + dnf remove -y systemd-devel + CHECK_RESULT $? 0 0 "remove systemd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-doc.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c7d92f7850256ee1be31167943961067f741c1f --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-doc | grep -v \.src | grep systemd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-doc + CHECK_RESULT $? 0 0 "install systemd-doc failed" + SLEEP_WAIT 1 + dnf remove -y systemd-doc + CHECK_RESULT $? 0 0 "remove systemd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-help.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2c1d0b5f07b5d492837cfe737adc03c90a6dea2 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-help | grep -v \.src | grep systemd-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-help + CHECK_RESULT $? 0 0 "install systemd-help failed" + SLEEP_WAIT 1 + dnf remove -y systemd-help + CHECK_RESULT $? 0 0 "remove systemd-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-journal-gateway.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-journal-gateway.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb4d0212cd81d38a48dff94de44ee17f8063cf9d --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-journal-gateway.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-journal-gateway | grep -v \.src | grep systemd-journal-gateway + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-journal-gateway" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-journal-gateway + CHECK_RESULT $? 0 0 "install systemd-journal-gateway failed" + SLEEP_WAIT 1 + dnf remove -y systemd-journal-gateway + CHECK_RESULT $? 0 0 "remove systemd-journal-gateway failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-journal-remote.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-journal-remote.sh new file mode 100644 index 0000000000000000000000000000000000000000..7410e3d0547e59e5cf621848186f142327ca785c --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-journal-remote.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-journal-remote | grep -v \.src | grep systemd-journal-remote + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-journal-remote" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-journal-remote + CHECK_RESULT $? 0 0 "install systemd-journal-remote failed" + SLEEP_WAIT 1 + dnf remove -y systemd-journal-remote + CHECK_RESULT $? 0 0 "remove systemd-journal-remote failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-libs.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..abe320a5c0b664923f98309aac6009441a6a1128 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-libs | grep -v \.src | grep systemd-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-libs + CHECK_RESULT $? 0 0 "install systemd-libs failed" + SLEEP_WAIT 1 + dnf remove -y systemd-libs + CHECK_RESULT $? 0 0 "remove systemd-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-networkd.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-networkd.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cbecc8584cd4302343f75c46722f43c064cb11d --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-networkd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-networkd | grep -v \.src | grep systemd-networkd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-networkd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-networkd + CHECK_RESULT $? 0 0 "install systemd-networkd failed" + SLEEP_WAIT 1 + dnf remove -y systemd-networkd + CHECK_RESULT $? 0 0 "remove systemd-networkd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-nspawn.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-nspawn.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b45bbd4d6783d6dcc2f3a67ca0028bbdde542d8 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-nspawn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-nspawn | grep -v \.src | grep systemd-nspawn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-nspawn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-nspawn + CHECK_RESULT $? 0 0 "install systemd-nspawn failed" + SLEEP_WAIT 1 + dnf remove -y systemd-nspawn + CHECK_RESULT $? 0 0 "remove systemd-nspawn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-oomd-defaults.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-oomd-defaults.sh new file mode 100644 index 0000000000000000000000000000000000000000..0418d26322ac3d5247fcfacc62b551e4c0e8c92d --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-oomd-defaults.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-oomd-defaults | grep -v \.src | grep systemd-oomd-defaults + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-oomd-defaults" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-oomd-defaults + CHECK_RESULT $? 0 0 "install systemd-oomd-defaults failed" + SLEEP_WAIT 1 + dnf remove -y systemd-oomd-defaults + CHECK_RESULT $? 0 0 "remove systemd-oomd-defaults failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-oomd.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-oomd.sh new file mode 100644 index 0000000000000000000000000000000000000000..acb8627009272c6c5c93374b879e6f70238cbc17 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-oomd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-oomd | grep -v \.src | grep systemd-oomd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-oomd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-oomd + CHECK_RESULT $? 0 0 "install systemd-oomd failed" + SLEEP_WAIT 1 + dnf remove -y systemd-oomd + CHECK_RESULT $? 0 0 "remove systemd-oomd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-pam.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-pam.sh new file mode 100644 index 0000000000000000000000000000000000000000..af211da05daf93b74b5a11f2a5037a747d7af040 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-pam.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-pam | grep -v \.src | grep systemd-pam + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-pam" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-pam + CHECK_RESULT $? 0 0 "install systemd-pam failed" + SLEEP_WAIT 1 + dnf remove -y systemd-pam + CHECK_RESULT $? 0 0 "remove systemd-pam failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-pcrlock.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-pcrlock.sh new file mode 100644 index 0000000000000000000000000000000000000000..266e38652aea9651ca38d2d4b42a6e57b720e342 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-pcrlock.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-pcrlock | grep -v \.src | grep systemd-pcrlock + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-pcrlock" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-pcrlock + CHECK_RESULT $? 0 0 "install systemd-pcrlock failed" + SLEEP_WAIT 1 + dnf remove -y systemd-pcrlock + CHECK_RESULT $? 0 0 "remove systemd-pcrlock failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-python.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-python.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a355638621d52e8be2ff12f2b84a452f48aa604 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-python.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-python | grep -v \.src | grep systemd-python + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-python" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-python + CHECK_RESULT $? 0 0 "install systemd-python failed" + SLEEP_WAIT 1 + dnf remove -y systemd-python + CHECK_RESULT $? 0 0 "remove systemd-python failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-resolved.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-resolved.sh new file mode 100644 index 0000000000000000000000000000000000000000..8acc20c504c9fd980b6e8ff6048476d6bf5d0fba --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-resolved.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-resolved | grep -v \.src | grep systemd-resolved + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-resolved" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-resolved + CHECK_RESULT $? 0 0 "install systemd-resolved failed" + SLEEP_WAIT 1 + dnf remove -y systemd-resolved + CHECK_RESULT $? 0 0 "remove systemd-resolved failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-rpm-macros.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-rpm-macros.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a9fc5ae7253c70e91d864d711732b71e9a2b4b8 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-rpm-macros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-rpm-macros | grep -v \.src | grep systemd-rpm-macros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-rpm-macros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-rpm-macros + CHECK_RESULT $? 0 0 "install systemd-rpm-macros failed" + SLEEP_WAIT 1 + dnf remove -y systemd-rpm-macros + CHECK_RESULT $? 0 0 "remove systemd-rpm-macros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-repart.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-repart.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b849ffa53dbb83d231face7a3200d2478e8438e --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-repart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-standalone-repart | grep -v \.src | grep systemd-standalone-repart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-standalone-repart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-standalone-repart + CHECK_RESULT $? 0 0 "install systemd-standalone-repart failed" + SLEEP_WAIT 1 + dnf remove -y systemd-standalone-repart + CHECK_RESULT $? 0 0 "remove systemd-standalone-repart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-shutdown.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-shutdown.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb63727f6f64b5ccb06001acfeb9946db7052c5e --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-shutdown.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-standalone-shutdown | grep -v \.src | grep systemd-standalone-shutdown + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-standalone-shutdown" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-standalone-shutdown + CHECK_RESULT $? 0 0 "install systemd-standalone-shutdown failed" + SLEEP_WAIT 1 + dnf remove -y systemd-standalone-shutdown + CHECK_RESULT $? 0 0 "remove systemd-standalone-shutdown failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-sysusers.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-sysusers.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e98003674e857e7f43248f1e60fd2a1188be4af --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-sysusers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-standalone-sysusers | grep -v \.src | grep systemd-standalone-sysusers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-standalone-sysusers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-standalone-sysusers + CHECK_RESULT $? 0 0 "install systemd-standalone-sysusers failed" + SLEEP_WAIT 1 + dnf remove -y systemd-standalone-sysusers + CHECK_RESULT $? 0 0 "remove systemd-standalone-sysusers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-tmpfiles.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-tmpfiles.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e796b998b3336aa8b407f38be4b324e609dd2a9 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-standalone-tmpfiles.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-standalone-tmpfiles | grep -v \.src | grep systemd-standalone-tmpfiles + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-standalone-tmpfiles" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-standalone-tmpfiles + CHECK_RESULT $? 0 0 "install systemd-standalone-tmpfiles failed" + SLEEP_WAIT 1 + dnf remove -y systemd-standalone-tmpfiles + CHECK_RESULT $? 0 0 "remove systemd-standalone-tmpfiles failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-storagetm.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-storagetm.sh new file mode 100644 index 0000000000000000000000000000000000000000..83b71d37274e8d71fb0228b6156fc2bdf495bf78 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-storagetm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-storagetm | grep -v \.src | grep systemd-storagetm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-storagetm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-storagetm + CHECK_RESULT $? 0 0 "install systemd-storagetm failed" + SLEEP_WAIT 1 + dnf remove -y systemd-storagetm + CHECK_RESULT $? 0 0 "remove systemd-storagetm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-sysv.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-sysv.sh new file mode 100644 index 0000000000000000000000000000000000000000..56642521c41555e5506db7dd9a6a5d0cef8fdbe2 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-sysv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-sysv | grep -v \.src | grep systemd-sysv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-sysv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-sysv + CHECK_RESULT $? 0 0 "install systemd-sysv failed" + SLEEP_WAIT 1 + dnf remove -y systemd-sysv + CHECK_RESULT $? 0 0 "remove systemd-sysv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-tests.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-tests.sh new file mode 100644 index 0000000000000000000000000000000000000000..68ef5b945df59e5aac38727f26a6884798eea944 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-tests.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-tests | grep -v \.src | grep systemd-tests + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-tests" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-tests + CHECK_RESULT $? 0 0 "install systemd-tests failed" + SLEEP_WAIT 1 + dnf remove -y systemd-tests + CHECK_RESULT $? 0 0 "remove systemd-tests failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-timesyncd.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-timesyncd.sh new file mode 100644 index 0000000000000000000000000000000000000000..9091b58570e8844ae6af3f3fccabb16b1a1f315b --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-timesyncd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-timesyncd | grep -v \.src | grep systemd-timesyncd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-timesyncd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-timesyncd + CHECK_RESULT $? 0 0 "install systemd-timesyncd failed" + SLEEP_WAIT 1 + dnf remove -y systemd-timesyncd + CHECK_RESULT $? 0 0 "remove systemd-timesyncd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-udev-compat.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-udev-compat.sh new file mode 100644 index 0000000000000000000000000000000000000000..15e3a017265e51c8f1875fbc503886ea8abc603f --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-udev-compat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-udev-compat | grep -v \.src | grep systemd-udev-compat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-udev-compat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-udev-compat + CHECK_RESULT $? 0 0 "install systemd-udev-compat failed" + SLEEP_WAIT 1 + dnf remove -y systemd-udev-compat + CHECK_RESULT $? 0 0 "remove systemd-udev-compat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-udev.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-udev.sh new file mode 100644 index 0000000000000000000000000000000000000000..2740f0557f3804e149a7aa9ecc899cdc0d3ee9d7 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd-udev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd-udev | grep -v \.src | grep systemd-udev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd-udev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd-udev + CHECK_RESULT $? 0 0 "install systemd-udev failed" + SLEEP_WAIT 1 + dnf remove -y systemd-udev + CHECK_RESULT $? 0 0 "remove systemd-udev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd.sh b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd.sh new file mode 100644 index 0000000000000000000000000000000000000000..edfe97cdd19eaa032d287965adae2b20fbd749c0 --- /dev/null +++ b/testcases/cli-test/systemd/oe_test_systemd_install_and_remove_systemd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemd | grep -v \.src | grep systemd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemd + CHECK_RESULT $? 0 0 "install systemd failed" + SLEEP_WAIT 1 + dnf remove -y systemd + CHECK_RESULT $? 0 0 "remove systemd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-client.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-client.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a484fb80d9fcfa0bde91c699ec523e049f072c7 --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-client.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-client | grep -v \.src | grep systemtap-client + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-client" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-client + CHECK_RESULT $? 0 0 "install systemtap-client failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-client + CHECK_RESULT $? 0 0 "remove systemtap-client failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-debuginfo.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0eda5e56fcca612f024fea1443337c37ac994be --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-debuginfo | grep -v \.src | grep systemtap-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-debuginfo + CHECK_RESULT $? 0 0 "install systemtap-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-debuginfo + CHECK_RESULT $? 0 0 "remove systemtap-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-debugsource.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8503971b11270ecda37dc7da6d42c5aad2dace8 --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-debugsource | grep -v \.src | grep systemtap-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-debugsource + CHECK_RESULT $? 0 0 "install systemtap-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-debugsource + CHECK_RESULT $? 0 0 "remove systemtap-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-devel.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8ba03c44e71e42dad4c276a78a09d84edf2547c --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-devel | grep -v \.src | grep systemtap-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-devel + CHECK_RESULT $? 0 0 "install systemtap-devel failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-devel + CHECK_RESULT $? 0 0 "remove systemtap-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-exporter.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-exporter.sh new file mode 100644 index 0000000000000000000000000000000000000000..6691cd9ed52690882845221d1461089f258d99e8 --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-exporter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-exporter | grep -v \.src | grep systemtap-exporter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-exporter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-exporter + CHECK_RESULT $? 0 0 "install systemtap-exporter failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-exporter + CHECK_RESULT $? 0 0 "remove systemtap-exporter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-help.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..05725a0c2006e179e12ca6d4f82dd1eb8c4573bc --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-help | grep -v \.src | grep systemtap-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-help + CHECK_RESULT $? 0 0 "install systemtap-help failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-help + CHECK_RESULT $? 0 0 "remove systemtap-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-initscript.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-initscript.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bbd0baea8a0cf76c3112ff1921f90064a4f1fbc --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-initscript.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-initscript | grep -v \.src | grep systemtap-initscript + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-initscript" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-initscript + CHECK_RESULT $? 0 0 "install systemtap-initscript failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-initscript + CHECK_RESULT $? 0 0 "remove systemtap-initscript failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-jupyter.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-jupyter.sh new file mode 100644 index 0000000000000000000000000000000000000000..c66c7e06e3a5d49d296383f185c28458f4da25ce --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-jupyter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-jupyter | grep -v \.src | grep systemtap-jupyter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-jupyter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-jupyter + CHECK_RESULT $? 0 0 "install systemtap-jupyter failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-jupyter + CHECK_RESULT $? 0 0 "remove systemtap-jupyter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-lang.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-lang.sh new file mode 100644 index 0000000000000000000000000000000000000000..25339757b635ebed8da8c43e9eb3447bd847bc3b --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-lang.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-lang | grep -v \.src | grep systemtap-lang + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-lang" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-lang + CHECK_RESULT $? 0 0 "install systemtap-lang failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-lang + CHECK_RESULT $? 0 0 "remove systemtap-lang failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-java.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-java.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bb12cf501d0f015adc0c55436f170b07d23278a --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-java.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-runtime-java | grep -v \.src | grep systemtap-runtime-java + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-runtime-java" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-runtime-java + CHECK_RESULT $? 0 0 "install systemtap-runtime-java failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-runtime-java + CHECK_RESULT $? 0 0 "remove systemtap-runtime-java failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-python2.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-python2.sh new file mode 100644 index 0000000000000000000000000000000000000000..69c80000f04c126b488ea984c752206698d70d3c --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-python2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-runtime-python2 | grep -v \.src | grep systemtap-runtime-python2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-runtime-python2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-runtime-python2 + CHECK_RESULT $? 0 0 "install systemtap-runtime-python2 failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-runtime-python2 + CHECK_RESULT $? 0 0 "remove systemtap-runtime-python2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-python3.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-python3.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6a067a745315aea2099f167937ee6c18d8b430f --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-python3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-runtime-python3 | grep -v \.src | grep systemtap-runtime-python3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-runtime-python3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-runtime-python3 + CHECK_RESULT $? 0 0 "install systemtap-runtime-python3 failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-runtime-python3 + CHECK_RESULT $? 0 0 "remove systemtap-runtime-python3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-virtguest.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-virtguest.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9f98f8bf1c944d02f2dea004725bd00f1873992 --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-virtguest.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-runtime-virtguest | grep -v \.src | grep systemtap-runtime-virtguest + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-runtime-virtguest" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-runtime-virtguest + CHECK_RESULT $? 0 0 "install systemtap-runtime-virtguest failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-runtime-virtguest + CHECK_RESULT $? 0 0 "remove systemtap-runtime-virtguest failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-virthost.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-virthost.sh new file mode 100644 index 0000000000000000000000000000000000000000..65a12930b7c4fd2c0f841c9a6dd31165ce484a76 --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime-virthost.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-runtime-virthost | grep -v \.src | grep systemtap-runtime-virthost + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-runtime-virthost" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-runtime-virthost + CHECK_RESULT $? 0 0 "install systemtap-runtime-virthost failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-runtime-virthost + CHECK_RESULT $? 0 0 "remove systemtap-runtime-virthost failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime.sh new file mode 100644 index 0000000000000000000000000000000000000000..a29b02bc9fe892d9467321bf3ccabfa78efc9f65 --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-runtime.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-runtime | grep -v \.src | grep systemtap-runtime + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-runtime" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-runtime + CHECK_RESULT $? 0 0 "install systemtap-runtime failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-runtime + CHECK_RESULT $? 0 0 "remove systemtap-runtime failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-sdt-devel.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-sdt-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ad6e36b4fac9e6f406935887a15bec3824e1e1b --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-sdt-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-sdt-devel | grep -v \.src | grep systemtap-sdt-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-sdt-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-sdt-devel + CHECK_RESULT $? 0 0 "install systemtap-sdt-devel failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-sdt-devel + CHECK_RESULT $? 0 0 "remove systemtap-sdt-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-server.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-server.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fca7e0f4847a496452a965b747287c63f9a2525 --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-server.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-server | grep -v \.src | grep systemtap-server + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-server" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-server + CHECK_RESULT $? 0 0 "install systemtap-server failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-server + CHECK_RESULT $? 0 0 "remove systemtap-server failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-stap-exporter.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-stap-exporter.sh new file mode 100644 index 0000000000000000000000000000000000000000..2193db686f70b579fc99fb40fab0389e1480bc35 --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-stap-exporter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-stap-exporter | grep -v \.src | grep systemtap-stap-exporter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-stap-exporter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-stap-exporter + CHECK_RESULT $? 0 0 "install systemtap-stap-exporter failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-stap-exporter + CHECK_RESULT $? 0 0 "remove systemtap-stap-exporter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-testsuite.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-testsuite.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb92ce72ac881b21fad5c3a54520f9034a33a001 --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap-testsuite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap-testsuite | grep -v \.src | grep systemtap-testsuite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap-testsuite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap-testsuite + CHECK_RESULT $? 0 0 "install systemtap-testsuite failed" + SLEEP_WAIT 1 + dnf remove -y systemtap-testsuite + CHECK_RESULT $? 0 0 "remove systemtap-testsuite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap.sh b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap.sh new file mode 100644 index 0000000000000000000000000000000000000000..b389dc889c00bf38d2141f10c934e00874f2a966 --- /dev/null +++ b/testcases/cli-test/systemtap/oe_test_systemtap_install_and_remove_systemtap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src systemtap +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available systemtap | grep -v \.src | grep systemtap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm systemtap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y systemtap + CHECK_RESULT $? 0 0 "install systemtap failed" + SLEEP_WAIT 1 + dnf remove -y systemtap + CHECK_RESULT $? 0 0 "remove systemtap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar-debuginfo.sh b/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..55cda8b28757ed846d18d18234d6797613dcf05a --- /dev/null +++ b/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tar-debuginfo | grep -v \.src | grep tar-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tar-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tar-debuginfo + CHECK_RESULT $? 0 0 "install tar-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tar-debuginfo + CHECK_RESULT $? 0 0 "remove tar-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar-debugsource.sh b/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f01135a84265491f8551ed56482351d25bb03abf --- /dev/null +++ b/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tar-debugsource | grep -v \.src | grep tar-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tar-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tar-debugsource + CHECK_RESULT $? 0 0 "install tar-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tar-debugsource + CHECK_RESULT $? 0 0 "remove tar-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar-help.sh b/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cb4c03ced62d2f7b5c47c1ea1bf2fccb9176910 --- /dev/null +++ b/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tar-help | grep -v \.src | grep tar-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tar-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tar-help + CHECK_RESULT $? 0 0 "install tar-help failed" + SLEEP_WAIT 1 + dnf remove -y tar-help + CHECK_RESULT $? 0 0 "remove tar-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar.sh b/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar.sh new file mode 100644 index 0000000000000000000000000000000000000000..8afa03177efeac3d9b2bc0a43a7a8a9202c2bf6b --- /dev/null +++ b/testcases/cli-test/tar/oe_test_tar_install_and_remove_tar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tar +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tar | grep -v \.src | grep tar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tar + CHECK_RESULT $? 0 0 "install tar failed" + SLEEP_WAIT 1 + dnf remove -y tar + CHECK_RESULT $? 0 0 "remove tar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_python3-tbb.sh b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_python3-tbb.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac6335aa8e41a1047af885849625607c33137a6f --- /dev/null +++ b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_python3-tbb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tbb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-tbb | grep -v \.src | grep python3-tbb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-tbb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-tbb + CHECK_RESULT $? 0 0 "install python3-tbb failed" + SLEEP_WAIT 1 + dnf remove -y python3-tbb + CHECK_RESULT $? 0 0 "remove python3-tbb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-bind.sh b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-bind.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9fcc5b7208342f28308985c861fcd6a8b633247 --- /dev/null +++ b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-bind.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tbb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tbb-bind | grep -v \.src | grep tbb-bind + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tbb-bind" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tbb-bind + CHECK_RESULT $? 0 0 "install tbb-bind failed" + SLEEP_WAIT 1 + dnf remove -y tbb-bind + CHECK_RESULT $? 0 0 "remove tbb-bind failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-debuginfo.sh b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c29411b1e150edceff85b0c08985bcf7bc6b3d1 --- /dev/null +++ b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tbb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tbb-debuginfo | grep -v \.src | grep tbb-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tbb-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tbb-debuginfo + CHECK_RESULT $? 0 0 "install tbb-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tbb-debuginfo + CHECK_RESULT $? 0 0 "remove tbb-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-debugsource.sh b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..306aa7bd19d08f7542e72edc65e2b6b7ce01840d --- /dev/null +++ b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tbb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tbb-debugsource | grep -v \.src | grep tbb-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tbb-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tbb-debugsource + CHECK_RESULT $? 0 0 "install tbb-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tbb-debugsource + CHECK_RESULT $? 0 0 "remove tbb-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-devel.sh b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7ab322ec745bc1289226d6e0c924dc2509819f5 --- /dev/null +++ b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tbb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tbb-devel | grep -v \.src | grep tbb-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tbb-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tbb-devel + CHECK_RESULT $? 0 0 "install tbb-devel failed" + SLEEP_WAIT 1 + dnf remove -y tbb-devel + CHECK_RESULT $? 0 0 "remove tbb-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-help.sh b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..569119dab3f4250d3f94b91b948c14af260aca6e --- /dev/null +++ b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tbb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tbb-help | grep -v \.src | grep tbb-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tbb-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tbb-help + CHECK_RESULT $? 0 0 "install tbb-help failed" + SLEEP_WAIT 1 + dnf remove -y tbb-help + CHECK_RESULT $? 0 0 "remove tbb-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb.sh b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f278e6740d2aafb13c03a68be9b5bca42687a79 --- /dev/null +++ b/testcases/cli-test/tbb/oe_test_tbb_install_and_remove_tbb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tbb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tbb | grep -v \.src | grep tbb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tbb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tbb + CHECK_RESULT $? 0 0 "install tbb failed" + SLEEP_WAIT 1 + dnf remove -y tbb + CHECK_RESULT $? 0 0 "remove tbb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-debuginfo.sh b/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cd7872f5e9c5c6d694d5ce0a49cdb7746cc5bec --- /dev/null +++ b/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcl-debuginfo | grep -v \.src | grep tcl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcl-debuginfo + CHECK_RESULT $? 0 0 "install tcl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tcl-debuginfo + CHECK_RESULT $? 0 0 "remove tcl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-debugsource.sh b/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..698061179e5da00bcdc316e87cf9f95310600859 --- /dev/null +++ b/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcl-debugsource | grep -v \.src | grep tcl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcl-debugsource + CHECK_RESULT $? 0 0 "install tcl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tcl-debugsource + CHECK_RESULT $? 0 0 "remove tcl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-devel.sh b/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..06402f43e0c33b47b282785cc050c1c64546aef4 --- /dev/null +++ b/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcl-devel | grep -v \.src | grep tcl-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcl-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcl-devel + CHECK_RESULT $? 0 0 "install tcl-devel failed" + SLEEP_WAIT 1 + dnf remove -y tcl-devel + CHECK_RESULT $? 0 0 "remove tcl-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-help.sh b/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..14ce3b5981651c4c10c297b155a99050e7f5bce5 --- /dev/null +++ b/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcl-help | grep -v \.src | grep tcl-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcl-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcl-help + CHECK_RESULT $? 0 0 "install tcl-help failed" + SLEEP_WAIT 1 + dnf remove -y tcl-help + CHECK_RESULT $? 0 0 "remove tcl-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl.sh b/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl.sh new file mode 100644 index 0000000000000000000000000000000000000000..081e638d28e070cf2d8075045b13b6ce322d22c1 --- /dev/null +++ b/testcases/cli-test/tcl/oe_test_tcl_install_and_remove_tcl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcl | grep -v \.src | grep tcl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcl + CHECK_RESULT $? 0 0 "install tcl failed" + SLEEP_WAIT 1 + dnf remove -y tcl + CHECK_RESULT $? 0 0 "remove tcl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcllib/oe_test_tcllib_install_and_remove_tcllib-help.sh b/testcases/cli-test/tcllib/oe_test_tcllib_install_and_remove_tcllib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d48bc79e23cd5d18bcc4d7026cceea24e6784ca --- /dev/null +++ b/testcases/cli-test/tcllib/oe_test_tcllib_install_and_remove_tcllib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcllib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcllib-help | grep -v \.src | grep tcllib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcllib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcllib-help + CHECK_RESULT $? 0 0 "install tcllib-help failed" + SLEEP_WAIT 1 + dnf remove -y tcllib-help + CHECK_RESULT $? 0 0 "remove tcllib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcllib/oe_test_tcllib_install_and_remove_tcllib.sh b/testcases/cli-test/tcllib/oe_test_tcllib_install_and_remove_tcllib.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ebeaa34cb128a02516d47975e223093ff75ea8b --- /dev/null +++ b/testcases/cli-test/tcllib/oe_test_tcllib_install_and_remove_tcllib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcllib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcllib | grep -v \.src | grep tcllib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcllib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcllib + CHECK_RESULT $? 0 0 "install tcllib failed" + SLEEP_WAIT 1 + dnf remove -y tcllib + CHECK_RESULT $? 0 0 "remove tcllib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-debuginfo.sh b/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b5e38acd34b347c2663c5cc9c422429d2f9ea6b --- /dev/null +++ b/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcsh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcsh-debuginfo | grep -v \.src | grep tcsh-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcsh-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcsh-debuginfo + CHECK_RESULT $? 0 0 "install tcsh-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tcsh-debuginfo + CHECK_RESULT $? 0 0 "remove tcsh-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-debugsource.sh b/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7e1847f17d0a5f4f15fab9163e98b6b4c4cd36f --- /dev/null +++ b/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcsh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcsh-debugsource | grep -v \.src | grep tcsh-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcsh-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcsh-debugsource + CHECK_RESULT $? 0 0 "install tcsh-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tcsh-debugsource + CHECK_RESULT $? 0 0 "remove tcsh-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-doc.sh b/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce385665a67df39598bd99c21670484bc732c596 --- /dev/null +++ b/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcsh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcsh-doc | grep -v \.src | grep tcsh-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcsh-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcsh-doc + CHECK_RESULT $? 0 0 "install tcsh-doc failed" + SLEEP_WAIT 1 + dnf remove -y tcsh-doc + CHECK_RESULT $? 0 0 "remove tcsh-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-help.sh b/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8938668ac02bbb3525d127161bff593568ceac9 --- /dev/null +++ b/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcsh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcsh-help | grep -v \.src | grep tcsh-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcsh-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcsh-help + CHECK_RESULT $? 0 0 "install tcsh-help failed" + SLEEP_WAIT 1 + dnf remove -y tcsh-help + CHECK_RESULT $? 0 0 "remove tcsh-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh.sh b/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh.sh new file mode 100644 index 0000000000000000000000000000000000000000..360ed0c09d0cceebf7f28c60dcf270d100e65add --- /dev/null +++ b/testcases/cli-test/tcsh/oe_test_tcsh_install_and_remove_tcsh.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tcsh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tcsh | grep -v \.src | grep tcsh + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tcsh" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tcsh + CHECK_RESULT $? 0 0 "install tcsh failed" + SLEEP_WAIT 1 + dnf remove -y tcsh + CHECK_RESULT $? 0 0 "remove tcsh failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet-debuginfo.sh b/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..457f4255a4432aed3735856b8ad2ca2edf6c19ea --- /dev/null +++ b/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src telnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available telnet-debuginfo | grep -v \.src | grep telnet-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm telnet-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y telnet-debuginfo + CHECK_RESULT $? 0 0 "install telnet-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y telnet-debuginfo + CHECK_RESULT $? 0 0 "remove telnet-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet-debugsource.sh b/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f03459bf9fb561ac51f5ed0f0a5eb6fff770ae53 --- /dev/null +++ b/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src telnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available telnet-debugsource | grep -v \.src | grep telnet-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm telnet-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y telnet-debugsource + CHECK_RESULT $? 0 0 "install telnet-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y telnet-debugsource + CHECK_RESULT $? 0 0 "remove telnet-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet-help.sh b/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b50aa9136f97acbd6754e394b750cf5ee816f73 --- /dev/null +++ b/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src telnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available telnet-help | grep -v \.src | grep telnet-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm telnet-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y telnet-help + CHECK_RESULT $? 0 0 "install telnet-help failed" + SLEEP_WAIT 1 + dnf remove -y telnet-help + CHECK_RESULT $? 0 0 "remove telnet-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet.sh b/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet.sh new file mode 100644 index 0000000000000000000000000000000000000000..e05788f93759609259989d59ce5eeeab737536bf --- /dev/null +++ b/testcases/cli-test/telnet/oe_test_telnet_install_and_remove_telnet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src telnet +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available telnet | grep -v \.src | grep telnet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm telnet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y telnet + CHECK_RESULT $? 0 0 "install telnet failed" + SLEEP_WAIT 1 + dnf remove -y telnet + CHECK_RESULT $? 0 0 "remove telnet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_info.sh b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_info.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a7576492bf61bd47833b927b7ff74a3ca46a7d9 --- /dev/null +++ b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_info.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texinfo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available info | grep -v \.src | grep info + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm info" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y info + CHECK_RESULT $? 0 0 "install info failed" + SLEEP_WAIT 1 + dnf remove -y info + CHECK_RESULT $? 0 0 "remove info failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-debuginfo.sh b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6a7b493611ff15b7627e8b2b1049c033bf4fde5 --- /dev/null +++ b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texinfo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texinfo-debuginfo | grep -v \.src | grep texinfo-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texinfo-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texinfo-debuginfo + CHECK_RESULT $? 0 0 "install texinfo-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y texinfo-debuginfo + CHECK_RESULT $? 0 0 "remove texinfo-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-debugsource.sh b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc921edb9f86602427302a12afdadbf82d2aa590 --- /dev/null +++ b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texinfo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texinfo-debugsource | grep -v \.src | grep texinfo-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texinfo-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texinfo-debugsource + CHECK_RESULT $? 0 0 "install texinfo-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y texinfo-debugsource + CHECK_RESULT $? 0 0 "remove texinfo-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-help.sh b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fca50e5d0e97b653bf69431eb1707c5a7c91421 --- /dev/null +++ b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texinfo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texinfo-help | grep -v \.src | grep texinfo-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texinfo-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texinfo-help + CHECK_RESULT $? 0 0 "install texinfo-help failed" + SLEEP_WAIT 1 + dnf remove -y texinfo-help + CHECK_RESULT $? 0 0 "remove texinfo-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-tex.sh b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-tex.sh new file mode 100644 index 0000000000000000000000000000000000000000..68a439644c7978288d8cf29d2d6745c8349d5fc3 --- /dev/null +++ b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo-tex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texinfo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texinfo-tex | grep -v \.src | grep texinfo-tex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texinfo-tex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texinfo-tex + CHECK_RESULT $? 0 0 "install texinfo-tex failed" + SLEEP_WAIT 1 + dnf remove -y texinfo-tex + CHECK_RESULT $? 0 0 "remove texinfo-tex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo.sh b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b145eb2162d3a45017092448d41c9b91642f2777 --- /dev/null +++ b/testcases/cli-test/texinfo/oe_test_texinfo_install_and_remove_texinfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texinfo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texinfo | grep -v \.src | grep texinfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texinfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texinfo + CHECK_RESULT $? 0 0 "install texinfo failed" + SLEEP_WAIT 1 + dnf remove -y texinfo + CHECK_RESULT $? 0 0 "remove texinfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-a2ping.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-a2ping.sh new file mode 100644 index 0000000000000000000000000000000000000000..5384b02944bb878937c4dfecf261505cf16ba7d0 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-a2ping.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-a2ping | grep -v \.src | grep texlive-a2ping + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-a2ping" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-a2ping + CHECK_RESULT $? 0 0 "install texlive-a2ping failed" + SLEEP_WAIT 1 + dnf remove -y texlive-a2ping + CHECK_RESULT $? 0 0 "remove texlive-a2ping failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-accfonts.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-accfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b5b6bc04e79cb4b63b05a7b670f98731a98790e --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-accfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-accfonts | grep -v \.src | grep texlive-accfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-accfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-accfonts + CHECK_RESULT $? 0 0 "install texlive-accfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-accfonts + CHECK_RESULT $? 0 0 "remove texlive-accfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-adhocfilelist.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-adhocfilelist.sh new file mode 100644 index 0000000000000000000000000000000000000000..8799aab3e1003e7acb1be49d87507a8052c6f79a --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-adhocfilelist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adhocfilelist | grep -v \.src | grep texlive-adhocfilelist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adhocfilelist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adhocfilelist + CHECK_RESULT $? 0 0 "install texlive-adhocfilelist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adhocfilelist + CHECK_RESULT $? 0 0 "remove texlive-adhocfilelist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-afm2pl.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-afm2pl.sh new file mode 100644 index 0000000000000000000000000000000000000000..c09df4fa6239708eda04e1554cb7e1d38ae116f3 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-afm2pl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-afm2pl | grep -v \.src | grep texlive-afm2pl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-afm2pl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-afm2pl + CHECK_RESULT $? 0 0 "install texlive-afm2pl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-afm2pl + CHECK_RESULT $? 0 0 "remove texlive-afm2pl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-albatross.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-albatross.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3698a9baf8f3e002dce2190805cd865a8e30cb8 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-albatross.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-albatross | grep -v \.src | grep texlive-albatross + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-albatross" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-albatross + CHECK_RESULT $? 0 0 "install texlive-albatross failed" + SLEEP_WAIT 1 + dnf remove -y texlive-albatross + CHECK_RESULT $? 0 0 "remove texlive-albatross failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-aleph.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-aleph.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cead53d0d9d65220f9ac6334dc5fc39989b3af8 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-aleph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aleph | grep -v \.src | grep texlive-aleph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aleph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aleph + CHECK_RESULT $? 0 0 "install texlive-aleph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aleph + CHECK_RESULT $? 0 0 "remove texlive-aleph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-amstex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-amstex.sh new file mode 100644 index 0000000000000000000000000000000000000000..38b3b2da9bcbf60f08595bec0e2d52584604a1e7 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-amstex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amstex | grep -v \.src | grep texlive-amstex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amstex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amstex + CHECK_RESULT $? 0 0 "install texlive-amstex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amstex + CHECK_RESULT $? 0 0 "remove texlive-amstex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-arara.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-arara.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b1f7a9316220158a255351e1d6112a73f3230af --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-arara.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arara | grep -v \.src | grep texlive-arara + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arara" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arara + CHECK_RESULT $? 0 0 "install texlive-arara failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arara + CHECK_RESULT $? 0 0 "remove texlive-arara failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-attachfile2.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-attachfile2.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a8f0663d7b383bad781fa1337f8f47104db9571 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-attachfile2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-attachfile2 | grep -v \.src | grep texlive-attachfile2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-attachfile2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-attachfile2 + CHECK_RESULT $? 0 0 "install texlive-attachfile2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-attachfile2 + CHECK_RESULT $? 0 0 "remove texlive-attachfile2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-authorindex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-authorindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e95032723b988dc28d22ccb76f030d779fff044 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-authorindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-authorindex | grep -v \.src | grep texlive-authorindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-authorindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-authorindex + CHECK_RESULT $? 0 0 "install texlive-authorindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-authorindex + CHECK_RESULT $? 0 0 "remove texlive-authorindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-autosp.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-autosp.sh new file mode 100644 index 0000000000000000000000000000000000000000..633d2ac6c184a3bf079434b7596e9eeb4fc79f18 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-autosp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-autosp | grep -v \.src | grep texlive-autosp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-autosp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-autosp + CHECK_RESULT $? 0 0 "install texlive-autosp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-autosp + CHECK_RESULT $? 0 0 "remove texlive-autosp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-axodraw2.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-axodraw2.sh new file mode 100644 index 0000000000000000000000000000000000000000..1361aa35ad8cd7f3607221c5975100abd8dbbe8a --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-axodraw2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-axodraw2 | grep -v \.src | grep texlive-axodraw2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-axodraw2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-axodraw2 + CHECK_RESULT $? 0 0 "install texlive-axodraw2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-axodraw2 + CHECK_RESULT $? 0 0 "remove texlive-axodraw2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-base-debuginfo.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-base-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbbb1885ba56f3a43aa43e7eaed6dc701816ab7d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-base-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-base-debuginfo | grep -v \.src | grep texlive-base-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-base-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-base-debuginfo + CHECK_RESULT $? 0 0 "install texlive-base-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-base-debuginfo + CHECK_RESULT $? 0 0 "remove texlive-base-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-base-debugsource.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-base-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa7a5b1d8258d7c7848785fcb7728a588e31c7bd --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-base-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-base-debugsource | grep -v \.src | grep texlive-base-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-base-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-base-debugsource + CHECK_RESULT $? 0 0 "install texlive-base-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y texlive-base-debugsource + CHECK_RESULT $? 0 0 "remove texlive-base-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-base.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..be8fff3ff7818cab2bef6d1b792e5e9887f8b071 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-base | grep -v \.src | grep texlive-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-base + CHECK_RESULT $? 0 0 "install texlive-base failed" + SLEEP_WAIT 1 + dnf remove -y texlive-base + CHECK_RESULT $? 0 0 "remove texlive-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bib2gls.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bib2gls.sh new file mode 100644 index 0000000000000000000000000000000000000000..75f23ccdd0211a535a9f4801fa82d2fa0782760b --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bib2gls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bib2gls | grep -v \.src | grep texlive-bib2gls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bib2gls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bib2gls + CHECK_RESULT $? 0 0 "install texlive-bib2gls failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bib2gls + CHECK_RESULT $? 0 0 "remove texlive-bib2gls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibexport.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibexport.sh new file mode 100644 index 0000000000000000000000000000000000000000..888a74fd45d239fec3c75a972014c455d8762f1e --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibexport.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bibexport | grep -v \.src | grep texlive-bibexport + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bibexport" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bibexport + CHECK_RESULT $? 0 0 "install texlive-bibexport failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bibexport + CHECK_RESULT $? 0 0 "remove texlive-bibexport failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibtex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibtex.sh new file mode 100644 index 0000000000000000000000000000000000000000..705b1200cb018bff6ed4e716e988470b9044c6f2 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibtex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bibtex | grep -v \.src | grep texlive-bibtex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bibtex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bibtex + CHECK_RESULT $? 0 0 "install texlive-bibtex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bibtex + CHECK_RESULT $? 0 0 "remove texlive-bibtex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibtex8.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibtex8.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f2b68ae9db2999b7ff5a040852a23e59c1d8c8b --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibtex8.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bibtex8 | grep -v \.src | grep texlive-bibtex8 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bibtex8" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bibtex8 + CHECK_RESULT $? 0 0 "install texlive-bibtex8 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bibtex8 + CHECK_RESULT $? 0 0 "remove texlive-bibtex8 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibtexu.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibtexu.sh new file mode 100644 index 0000000000000000000000000000000000000000..8645654c2f70603c1b62871d82ed6aec38f77ee5 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bibtexu.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bibtexu | grep -v \.src | grep texlive-bibtexu + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bibtexu" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bibtexu + CHECK_RESULT $? 0 0 "install texlive-bibtexu failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bibtexu + CHECK_RESULT $? 0 0 "remove texlive-bibtexu failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bundledoc.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bundledoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c945cddb0f22cfff1b28d0e1d4b79cb682dffd0 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-bundledoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bundledoc | grep -v \.src | grep texlive-bundledoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bundledoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bundledoc + CHECK_RESULT $? 0 0 "install texlive-bundledoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bundledoc + CHECK_RESULT $? 0 0 "remove texlive-bundledoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cachepic.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cachepic.sh new file mode 100644 index 0000000000000000000000000000000000000000..3794225ecb4061f31cc243ce7ed5fc070a37fa9a --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cachepic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cachepic | grep -v \.src | grep texlive-cachepic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cachepic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cachepic + CHECK_RESULT $? 0 0 "install texlive-cachepic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cachepic + CHECK_RESULT $? 0 0 "remove texlive-cachepic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-checkcites.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-checkcites.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e91a3e7f05be17010852df687b04174cde7be7f --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-checkcites.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-checkcites | grep -v \.src | grep texlive-checkcites + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-checkcites" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-checkcites + CHECK_RESULT $? 0 0 "install texlive-checkcites failed" + SLEEP_WAIT 1 + dnf remove -y texlive-checkcites + CHECK_RESULT $? 0 0 "remove texlive-checkcites failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-checklistings.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-checklistings.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5ac815a7d39788c45ab39ec55ec6e275fc64467 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-checklistings.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-checklistings | grep -v \.src | grep texlive-checklistings + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-checklistings" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-checklistings + CHECK_RESULT $? 0 0 "install texlive-checklistings failed" + SLEEP_WAIT 1 + dnf remove -y texlive-checklistings + CHECK_RESULT $? 0 0 "remove texlive-checklistings failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-chklref.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-chklref.sh new file mode 100644 index 0000000000000000000000000000000000000000..123d827e904733e1740621d8461bcca9b9531246 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-chklref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chklref | grep -v \.src | grep texlive-chklref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chklref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chklref + CHECK_RESULT $? 0 0 "install texlive-chklref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chklref + CHECK_RESULT $? 0 0 "remove texlive-chklref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-chktex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-chktex.sh new file mode 100644 index 0000000000000000000000000000000000000000..b22034d6375e24a3e166871fb39c2145b3b2f304 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-chktex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chktex | grep -v \.src | grep texlive-chktex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chktex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chktex + CHECK_RESULT $? 0 0 "install texlive-chktex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chktex + CHECK_RESULT $? 0 0 "remove texlive-chktex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cjkutils.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cjkutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcb63a380335d4daf4494dd63a8984b77152b9a1 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cjkutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cjkutils | grep -v \.src | grep texlive-cjkutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cjkutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cjkutils + CHECK_RESULT $? 0 0 "install texlive-cjkutils failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cjkutils + CHECK_RESULT $? 0 0 "remove texlive-cjkutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-clojure-pamphlet.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-clojure-pamphlet.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fb0ab67c9e03b1a17622d475983f8d47853c1bc --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-clojure-pamphlet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clojure-pamphlet | grep -v \.src | grep texlive-clojure-pamphlet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clojure-pamphlet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clojure-pamphlet + CHECK_RESULT $? 0 0 "install texlive-clojure-pamphlet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clojure-pamphlet + CHECK_RESULT $? 0 0 "remove texlive-clojure-pamphlet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cluttex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cluttex.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e9b8cec6f361e0a11b7e54942082abb2193d965 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cluttex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cluttex | grep -v \.src | grep texlive-cluttex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cluttex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cluttex + CHECK_RESULT $? 0 0 "install texlive-cluttex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cluttex + CHECK_RESULT $? 0 0 "remove texlive-cluttex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-context-doc.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-context-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6b202c790aacb66e9d81a099a947b19bfb6666d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-context-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-doc | grep -v \.src | grep texlive-context-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-doc + CHECK_RESULT $? 0 0 "install texlive-context-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-doc + CHECK_RESULT $? 0 0 "remove texlive-context-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-context.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-context.sh new file mode 100644 index 0000000000000000000000000000000000000000..618e694449291b76f3cf3341db42cdc88f566e16 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-context.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context | grep -v \.src | grep texlive-context + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context + CHECK_RESULT $? 0 0 "install texlive-context failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context + CHECK_RESULT $? 0 0 "remove texlive-context failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-convbkmk.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-convbkmk.sh new file mode 100644 index 0000000000000000000000000000000000000000..17308f245e3c8d23fc50c69c1a29d4abb9c5efe8 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-convbkmk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-convbkmk | grep -v \.src | grep texlive-convbkmk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-convbkmk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-convbkmk + CHECK_RESULT $? 0 0 "install texlive-convbkmk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-convbkmk + CHECK_RESULT $? 0 0 "remove texlive-convbkmk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-crossrefware.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-crossrefware.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d5d9d0845f238a3b1a1c63a9aa2f4572916ad8e --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-crossrefware.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-crossrefware | grep -v \.src | grep texlive-crossrefware + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-crossrefware" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-crossrefware + CHECK_RESULT $? 0 0 "install texlive-crossrefware failed" + SLEEP_WAIT 1 + dnf remove -y texlive-crossrefware + CHECK_RESULT $? 0 0 "remove texlive-crossrefware failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cslatex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cslatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ad3504946ddd2844118adb8ce098cca99638767 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cslatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cslatex | grep -v \.src | grep texlive-cslatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cslatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cslatex + CHECK_RESULT $? 0 0 "install texlive-cslatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cslatex + CHECK_RESULT $? 0 0 "remove texlive-cslatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-csplain.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-csplain.sh new file mode 100644 index 0000000000000000000000000000000000000000..7046231e899cba4b4acabef74aeacb756d38c8bf --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-csplain.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-csplain | grep -v \.src | grep texlive-csplain + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-csplain" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-csplain + CHECK_RESULT $? 0 0 "install texlive-csplain failed" + SLEEP_WAIT 1 + dnf remove -y texlive-csplain + CHECK_RESULT $? 0 0 "remove texlive-csplain failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctan-o-mat.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctan-o-mat.sh new file mode 100644 index 0000000000000000000000000000000000000000..61d8ef24bab278a520600d615dd6758e65500c62 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctan-o-mat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ctan-o-mat | grep -v \.src | grep texlive-ctan-o-mat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ctan-o-mat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ctan-o-mat + CHECK_RESULT $? 0 0 "install texlive-ctan-o-mat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ctan-o-mat + CHECK_RESULT $? 0 0 "remove texlive-ctan-o-mat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctanbib.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctanbib.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6395cf23676e844a22dfcda390f87c5971cf1f8 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctanbib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ctanbib | grep -v \.src | grep texlive-ctanbib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ctanbib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ctanbib + CHECK_RESULT $? 0 0 "install texlive-ctanbib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ctanbib + CHECK_RESULT $? 0 0 "remove texlive-ctanbib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctanify.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctanify.sh new file mode 100644 index 0000000000000000000000000000000000000000..dda9054fd8fb28226ee63f29c4c3fd0a9f67fd1f --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctanify.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ctanify | grep -v \.src | grep texlive-ctanify + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ctanify" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ctanify + CHECK_RESULT $? 0 0 "install texlive-ctanify failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ctanify + CHECK_RESULT $? 0 0 "remove texlive-ctanify failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctanupload.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctanupload.sh new file mode 100644 index 0000000000000000000000000000000000000000..c21ba2f9e2917f2a66c16e222a4a7f609ddfa801 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctanupload.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ctanupload | grep -v \.src | grep texlive-ctanupload + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ctanupload" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ctanupload + CHECK_RESULT $? 0 0 "install texlive-ctanupload failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ctanupload + CHECK_RESULT $? 0 0 "remove texlive-ctanupload failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctie.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctie.sh new file mode 100644 index 0000000000000000000000000000000000000000..86ac8c8bb0bddc1557210fb28679a99a0805b877 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ctie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ctie | grep -v \.src | grep texlive-ctie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ctie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ctie + CHECK_RESULT $? 0 0 "install texlive-ctie failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ctie + CHECK_RESULT $? 0 0 "remove texlive-ctie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cweb.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cweb.sh new file mode 100644 index 0000000000000000000000000000000000000000..e10666174658aae06f4cfb1e81d9d5044a9993e8 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cweb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cweb | grep -v \.src | grep texlive-cweb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cweb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cweb + CHECK_RESULT $? 0 0 "install texlive-cweb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cweb + CHECK_RESULT $? 0 0 "remove texlive-cweb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cyrillic.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cyrillic.sh new file mode 100644 index 0000000000000000000000000000000000000000..23cbd874ed851a6c291d837f68713f1a91c1b42c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-cyrillic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cyrillic | grep -v \.src | grep texlive-cyrillic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cyrillic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cyrillic + CHECK_RESULT $? 0 0 "install texlive-cyrillic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cyrillic + CHECK_RESULT $? 0 0 "remove texlive-cyrillic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-de-macro.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-de-macro.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e72bc54000223e68fce6ae877eaae97d8ed252b --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-de-macro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-de-macro | grep -v \.src | grep texlive-de-macro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-de-macro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-de-macro + CHECK_RESULT $? 0 0 "install texlive-de-macro failed" + SLEEP_WAIT 1 + dnf remove -y texlive-de-macro + CHECK_RESULT $? 0 0 "remove texlive-de-macro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-detex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-detex.sh new file mode 100644 index 0000000000000000000000000000000000000000..75d5876fc8a6de013d691b925821e1e1fa9bf3e8 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-detex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-detex | grep -v \.src | grep texlive-detex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-detex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-detex + CHECK_RESULT $? 0 0 "install texlive-detex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-detex + CHECK_RESULT $? 0 0 "remove texlive-detex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-diadia.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-diadia.sh new file mode 100644 index 0000000000000000000000000000000000000000..951bc7c0a6bc075f8597ef35522ecd6e07b19373 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-diadia.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-diadia | grep -v \.src | grep texlive-diadia + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-diadia" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-diadia + CHECK_RESULT $? 0 0 "install texlive-diadia failed" + SLEEP_WAIT 1 + dnf remove -y texlive-diadia + CHECK_RESULT $? 0 0 "remove texlive-diadia failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dosepsbin.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dosepsbin.sh new file mode 100644 index 0000000000000000000000000000000000000000..9284023c92f3fa3776bd173fc818cd0570e5819e --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dosepsbin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dosepsbin | grep -v \.src | grep texlive-dosepsbin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dosepsbin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dosepsbin + CHECK_RESULT $? 0 0 "install texlive-dosepsbin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dosepsbin + CHECK_RESULT $? 0 0 "remove texlive-dosepsbin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dtl.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dtl.sh new file mode 100644 index 0000000000000000000000000000000000000000..2caed3eba200564ebc8d2ab423beeaeb3a5130ef --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dtl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dtl | grep -v \.src | grep texlive-dtl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dtl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dtl + CHECK_RESULT $? 0 0 "install texlive-dtl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dtl + CHECK_RESULT $? 0 0 "remove texlive-dtl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dtxgen.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dtxgen.sh new file mode 100644 index 0000000000000000000000000000000000000000..1981dd63067844448d49f50347b5cf4aad0f463b --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dtxgen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dtxgen | grep -v \.src | grep texlive-dtxgen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dtxgen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dtxgen + CHECK_RESULT $? 0 0 "install texlive-dtxgen failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dtxgen + CHECK_RESULT $? 0 0 "remove texlive-dtxgen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvi2tty.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvi2tty.sh new file mode 100644 index 0000000000000000000000000000000000000000..1dd49c0773837f3b4c4f2d19d3514f89be5f8c0f --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvi2tty.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dvi2tty | grep -v \.src | grep texlive-dvi2tty + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dvi2tty" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dvi2tty + CHECK_RESULT $? 0 0 "install texlive-dvi2tty failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dvi2tty + CHECK_RESULT $? 0 0 "remove texlive-dvi2tty failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviasm.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviasm.sh new file mode 100644 index 0000000000000000000000000000000000000000..b029eff369be9d42588e740e3845d179a5a259ac --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviasm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dviasm | grep -v \.src | grep texlive-dviasm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dviasm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dviasm + CHECK_RESULT $? 0 0 "install texlive-dviasm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dviasm + CHECK_RESULT $? 0 0 "remove texlive-dviasm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvicopy.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvicopy.sh new file mode 100644 index 0000000000000000000000000000000000000000..12024653c96b958b780d27a21896d9558e6c0368 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvicopy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dvicopy | grep -v \.src | grep texlive-dvicopy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dvicopy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dvicopy + CHECK_RESULT $? 0 0 "install texlive-dvicopy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dvicopy + CHECK_RESULT $? 0 0 "remove texlive-dvicopy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvidvi.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvidvi.sh new file mode 100644 index 0000000000000000000000000000000000000000..81d487967b5fafc29b642cf983d38c99dec72fb7 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvidvi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dvidvi | grep -v \.src | grep texlive-dvidvi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dvidvi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dvidvi + CHECK_RESULT $? 0 0 "install texlive-dvidvi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dvidvi + CHECK_RESULT $? 0 0 "remove texlive-dvidvi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviinfox.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviinfox.sh new file mode 100644 index 0000000000000000000000000000000000000000..4287331816715cfcb4b79771eb02cab16b7ca204 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviinfox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dviinfox | grep -v \.src | grep texlive-dviinfox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dviinfox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dviinfox + CHECK_RESULT $? 0 0 "install texlive-dviinfox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dviinfox + CHECK_RESULT $? 0 0 "remove texlive-dviinfox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviljk.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviljk.sh new file mode 100644 index 0000000000000000000000000000000000000000..a537c42c6677bbf8f6741213002ad1c7804194d5 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviljk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dviljk | grep -v \.src | grep texlive-dviljk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dviljk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dviljk + CHECK_RESULT $? 0 0 "install texlive-dviljk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dviljk + CHECK_RESULT $? 0 0 "remove texlive-dviljk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviout-util.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviout-util.sh new file mode 100644 index 0000000000000000000000000000000000000000..306c0d564f1f84ccbf9da3a32b50dbe7b145b698 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dviout-util.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dviout-util | grep -v \.src | grep texlive-dviout-util + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dviout-util" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dviout-util + CHECK_RESULT $? 0 0 "install texlive-dviout-util failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dviout-util + CHECK_RESULT $? 0 0 "remove texlive-dviout-util failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvipdfmx.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvipdfmx.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a22446172494d5ecc57f7a9dbbc42cc2fc8d3cc --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvipdfmx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dvipdfmx | grep -v \.src | grep texlive-dvipdfmx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dvipdfmx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dvipdfmx + CHECK_RESULT $? 0 0 "install texlive-dvipdfmx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dvipdfmx + CHECK_RESULT $? 0 0 "remove texlive-dvipdfmx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvipng.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvipng.sh new file mode 100644 index 0000000000000000000000000000000000000000..d267f433cb60a9acb359e1d344f1b6a9a7c59770 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvipng.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dvipng | grep -v \.src | grep texlive-dvipng + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dvipng" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dvipng + CHECK_RESULT $? 0 0 "install texlive-dvipng failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dvipng + CHECK_RESULT $? 0 0 "remove texlive-dvipng failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvipos.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvipos.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f1a47fa6e94c7a9678b6eb75b4c9d2aa2560b71 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvipos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dvipos | grep -v \.src | grep texlive-dvipos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dvipos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dvipos + CHECK_RESULT $? 0 0 "install texlive-dvipos failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dvipos + CHECK_RESULT $? 0 0 "remove texlive-dvipos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvips.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvips.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee8124e6165e93b25259aac20a13f0169caeae52 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvips.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dvips | grep -v \.src | grep texlive-dvips + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dvips" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dvips + CHECK_RESULT $? 0 0 "install texlive-dvips failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dvips + CHECK_RESULT $? 0 0 "remove texlive-dvips failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvisvgm.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvisvgm.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a7aae180d64b8efe0b5c8f147621b40802df638 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-dvisvgm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dvisvgm | grep -v \.src | grep texlive-dvisvgm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dvisvgm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dvisvgm + CHECK_RESULT $? 0 0 "install texlive-dvisvgm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dvisvgm + CHECK_RESULT $? 0 0 "remove texlive-dvisvgm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ebong.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ebong.sh new file mode 100644 index 0000000000000000000000000000000000000000..f04cf70cbce34e3dae9bbe62c557732e6363e1cc --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ebong.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebong | grep -v \.src | grep texlive-ebong + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebong" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebong + CHECK_RESULT $? 0 0 "install texlive-ebong failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebong + CHECK_RESULT $? 0 0 "remove texlive-ebong failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-eplain.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-eplain.sh new file mode 100644 index 0000000000000000000000000000000000000000..125066a48c75868243064507ac5e006960fe56b2 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-eplain.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eplain | grep -v \.src | grep texlive-eplain + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eplain" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eplain + CHECK_RESULT $? 0 0 "install texlive-eplain failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eplain + CHECK_RESULT $? 0 0 "remove texlive-eplain failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-epspdf.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-epspdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0d21501dcdbe505d4dd74a40569bb26aa056401 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-epspdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epspdf | grep -v \.src | grep texlive-epspdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epspdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epspdf + CHECK_RESULT $? 0 0 "install texlive-epspdf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epspdf + CHECK_RESULT $? 0 0 "remove texlive-epspdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-epstopdf.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-epstopdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7b4455a0a7bc716aa34521872f2a2b935b70865 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-epstopdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epstopdf | grep -v \.src | grep texlive-epstopdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epstopdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epstopdf + CHECK_RESULT $? 0 0 "install texlive-epstopdf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epstopdf + CHECK_RESULT $? 0 0 "remove texlive-epstopdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-exceltex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-exceltex.sh new file mode 100644 index 0000000000000000000000000000000000000000..62480390b4b806c1bfbdd54a064643ded6d54c8d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-exceltex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exceltex | grep -v \.src | grep texlive-exceltex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exceltex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exceltex + CHECK_RESULT $? 0 0 "install texlive-exceltex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exceltex + CHECK_RESULT $? 0 0 "remove texlive-exceltex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fig4latex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fig4latex.sh new file mode 100644 index 0000000000000000000000000000000000000000..71db1ff575245aad31d6c2058b3224367cedc9ac --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fig4latex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fig4latex | grep -v \.src | grep texlive-fig4latex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fig4latex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fig4latex + CHECK_RESULT $? 0 0 "install texlive-fig4latex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fig4latex + CHECK_RESULT $? 0 0 "remove texlive-fig4latex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-findhyph.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-findhyph.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9e30bb244c0329d1c9f8d58259449e7f43d070a --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-findhyph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-findhyph | grep -v \.src | grep texlive-findhyph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-findhyph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-findhyph + CHECK_RESULT $? 0 0 "install texlive-findhyph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-findhyph + CHECK_RESULT $? 0 0 "remove texlive-findhyph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fontinst.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fontinst.sh new file mode 100644 index 0000000000000000000000000000000000000000..e44ba8c94a2fa8dbe905d6d1f7ad447dbfcea068 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fontinst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontinst | grep -v \.src | grep texlive-fontinst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontinst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontinst + CHECK_RESULT $? 0 0 "install texlive-fontinst failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontinst + CHECK_RESULT $? 0 0 "remove texlive-fontinst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fontools.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fontools.sh new file mode 100644 index 0000000000000000000000000000000000000000..65544ede6ff39ee397fc8dd0323050596abe58eb --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fontools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontools | grep -v \.src | grep texlive-fontools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontools + CHECK_RESULT $? 0 0 "install texlive-fontools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontools + CHECK_RESULT $? 0 0 "remove texlive-fontools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fontware.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fontware.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f06bc3eae70840805dd2b013b4e46cfa9b399f8 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fontware.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontware | grep -v \.src | grep texlive-fontware + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontware" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontware + CHECK_RESULT $? 0 0 "install texlive-fontware failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontware + CHECK_RESULT $? 0 0 "remove texlive-fontware failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fragmaster.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fragmaster.sh new file mode 100644 index 0000000000000000000000000000000000000000..1361907eb6c8fea0a62d2e16bd79491fea34aeae --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-fragmaster.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fragmaster | grep -v \.src | grep texlive-fragmaster + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fragmaster" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fragmaster + CHECK_RESULT $? 0 0 "install texlive-fragmaster failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fragmaster + CHECK_RESULT $? 0 0 "remove texlive-fragmaster failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-getmap.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-getmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..cec2350defab3f953c1d6dfdaea972e33de2ba53 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-getmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-getmap | grep -v \.src | grep texlive-getmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-getmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-getmap + CHECK_RESULT $? 0 0 "install texlive-getmap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-getmap + CHECK_RESULT $? 0 0 "remove texlive-getmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-git-latexdiff.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-git-latexdiff.sh new file mode 100644 index 0000000000000000000000000000000000000000..7329170a1986995aff2f4d3e13af71be46870716 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-git-latexdiff.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-git-latexdiff | grep -v \.src | grep texlive-git-latexdiff + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-git-latexdiff" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-git-latexdiff + CHECK_RESULT $? 0 0 "install texlive-git-latexdiff failed" + SLEEP_WAIT 1 + dnf remove -y texlive-git-latexdiff + CHECK_RESULT $? 0 0 "remove texlive-git-latexdiff failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-glossaries.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-glossaries.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e611e17270ce2cdbc6f6c9bfe243cac384c1f4d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-glossaries.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-glossaries | grep -v \.src | grep texlive-glossaries + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-glossaries" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-glossaries + CHECK_RESULT $? 0 0 "install texlive-glossaries failed" + SLEEP_WAIT 1 + dnf remove -y texlive-glossaries + CHECK_RESULT $? 0 0 "remove texlive-glossaries failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-glyphlist.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-glyphlist.sh new file mode 100644 index 0000000000000000000000000000000000000000..378b5487aca41c17a3a8f458a15a54f06059a719 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-glyphlist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-glyphlist | grep -v \.src | grep texlive-glyphlist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-glyphlist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-glyphlist + CHECK_RESULT $? 0 0 "install texlive-glyphlist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-glyphlist + CHECK_RESULT $? 0 0 "remove texlive-glyphlist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-gregoriotex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-gregoriotex.sh new file mode 100644 index 0000000000000000000000000000000000000000..65c6d12ebe35501acf9da74e9746d3b044011a62 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-gregoriotex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gregoriotex | grep -v \.src | grep texlive-gregoriotex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gregoriotex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gregoriotex + CHECK_RESULT $? 0 0 "install texlive-gregoriotex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gregoriotex + CHECK_RESULT $? 0 0 "remove texlive-gregoriotex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-gsftopk.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-gsftopk.sh new file mode 100644 index 0000000000000000000000000000000000000000..50283d66dbe0eb6cfce9f2a95ea53ce6fed04743 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-gsftopk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gsftopk | grep -v \.src | grep texlive-gsftopk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gsftopk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gsftopk + CHECK_RESULT $? 0 0 "install texlive-gsftopk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gsftopk + CHECK_RESULT $? 0 0 "remove texlive-gsftopk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-hyperxmp.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-hyperxmp.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbddf010fe50e64758c6a043f7ab4d3cd6244106 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-hyperxmp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hyperxmp | grep -v \.src | grep texlive-hyperxmp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hyperxmp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hyperxmp + CHECK_RESULT $? 0 0 "install texlive-hyperxmp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hyperxmp + CHECK_RESULT $? 0 0 "remove texlive-hyperxmp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-installfont.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-installfont.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2702403c2a72d51d18c80f952c25f231c5c4cc1 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-installfont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-installfont | grep -v \.src | grep texlive-installfont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-installfont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-installfont + CHECK_RESULT $? 0 0 "install texlive-installfont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-installfont + CHECK_RESULT $? 0 0 "remove texlive-installfont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-jadetex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-jadetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..1add47d83b00755b35a021484f63166ccf6a3fb3 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-jadetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jadetex | grep -v \.src | grep texlive-jadetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jadetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jadetex + CHECK_RESULT $? 0 0 "install texlive-jadetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jadetex + CHECK_RESULT $? 0 0 "remove texlive-jadetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-jfmutil.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-jfmutil.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5b8cbbdb5e080a22daa16a64e76e38e300d9965 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-jfmutil.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jfmutil | grep -v \.src | grep texlive-jfmutil + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jfmutil" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jfmutil + CHECK_RESULT $? 0 0 "install texlive-jfmutil failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jfmutil + CHECK_RESULT $? 0 0 "remove texlive-jfmutil failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ketcindy.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ketcindy.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6ab41e7749223e40cc111da94932f4aea1eb152 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ketcindy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ketcindy | grep -v \.src | grep texlive-ketcindy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ketcindy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ketcindy + CHECK_RESULT $? 0 0 "install texlive-ketcindy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ketcindy + CHECK_RESULT $? 0 0 "remove texlive-ketcindy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-kotex-utils.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-kotex-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a63174f90ae9c6cf97f7d0a6393dd77174ded51 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-kotex-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kotex-utils | grep -v \.src | grep texlive-kotex-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kotex-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kotex-utils + CHECK_RESULT $? 0 0 "install texlive-kotex-utils failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kotex-utils + CHECK_RESULT $? 0 0 "remove texlive-kotex-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-kpathsea.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-kpathsea.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f051fcb42b4cd14fe09b8351f18595753ec5b87 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-kpathsea.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kpathsea | grep -v \.src | grep texlive-kpathsea + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kpathsea" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kpathsea + CHECK_RESULT $? 0 0 "install texlive-kpathsea failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kpathsea + CHECK_RESULT $? 0 0 "remove texlive-kpathsea failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-l3build.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-l3build.sh new file mode 100644 index 0000000000000000000000000000000000000000..383bb14330d9aa89ddf36dadda7468a2086b29cd --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-l3build.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-l3build | grep -v \.src | grep texlive-l3build + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-l3build" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-l3build + CHECK_RESULT $? 0 0 "install texlive-l3build failed" + SLEEP_WAIT 1 + dnf remove -y texlive-l3build + CHECK_RESULT $? 0 0 "remove texlive-l3build failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lacheck.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lacheck.sh new file mode 100644 index 0000000000000000000000000000000000000000..300f8642e236d8d5a84c1dbc16685766b9174923 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lacheck.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lacheck | grep -v \.src | grep texlive-lacheck + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lacheck" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lacheck + CHECK_RESULT $? 0 0 "install texlive-lacheck failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lacheck + CHECK_RESULT $? 0 0 "remove texlive-lacheck failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex-git-log.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex-git-log.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9ba3327cfc20c6355e74257b448ff4a8b0d220c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex-git-log.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex-git-log | grep -v \.src | grep texlive-latex-git-log + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex-git-log" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex-git-log + CHECK_RESULT $? 0 0 "install texlive-latex-git-log failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex-git-log + CHECK_RESULT $? 0 0 "remove texlive-latex-git-log failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex-papersize.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex-papersize.sh new file mode 100644 index 0000000000000000000000000000000000000000..aab050cbd8aa0a536b15703d68d8982efab60085 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex-papersize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex-papersize | grep -v \.src | grep texlive-latex-papersize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex-papersize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex-papersize + CHECK_RESULT $? 0 0 "install texlive-latex-papersize failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex-papersize + CHECK_RESULT $? 0 0 "remove texlive-latex-papersize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex.sh new file mode 100644 index 0000000000000000000000000000000000000000..1830e8f313a756f9dab6532f825544a0f2e35d1c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex | grep -v \.src | grep texlive-latex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex + CHECK_RESULT $? 0 0 "install texlive-latex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex + CHECK_RESULT $? 0 0 "remove texlive-latex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex2man.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex2man.sh new file mode 100644 index 0000000000000000000000000000000000000000..cde6af9faf3b91d23f2e12abc47ccd8de57ad364 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex2man.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex2man | grep -v \.src | grep texlive-latex2man + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex2man" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex2man + CHECK_RESULT $? 0 0 "install texlive-latex2man failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex2man + CHECK_RESULT $? 0 0 "remove texlive-latex2man failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex2nemeth.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex2nemeth.sh new file mode 100644 index 0000000000000000000000000000000000000000..e1800697baa0e045e24bfb663589c4121368c267 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latex2nemeth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex2nemeth | grep -v \.src | grep texlive-latex2nemeth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex2nemeth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex2nemeth + CHECK_RESULT $? 0 0 "install texlive-latex2nemeth failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex2nemeth + CHECK_RESULT $? 0 0 "remove texlive-latex2nemeth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexdiff.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexdiff.sh new file mode 100644 index 0000000000000000000000000000000000000000..dec608d296da8f169f0bfeef1d3158648c3d7e85 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexdiff.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latexdiff | grep -v \.src | grep texlive-latexdiff + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latexdiff" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latexdiff + CHECK_RESULT $? 0 0 "install texlive-latexdiff failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latexdiff + CHECK_RESULT $? 0 0 "remove texlive-latexdiff failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexfileversion.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexfileversion.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ce26dc87f5b798a924e342111a327ed4e73361d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexfileversion.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latexfileversion | grep -v \.src | grep texlive-latexfileversion + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latexfileversion" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latexfileversion + CHECK_RESULT $? 0 0 "install texlive-latexfileversion failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latexfileversion + CHECK_RESULT $? 0 0 "remove texlive-latexfileversion failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexindent.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexindent.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c8e1ecd9b015c3986bb0972bbc99ce8b514ee10 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexindent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latexindent | grep -v \.src | grep texlive-latexindent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latexindent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latexindent + CHECK_RESULT $? 0 0 "install texlive-latexindent failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latexindent + CHECK_RESULT $? 0 0 "remove texlive-latexindent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexpand.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexpand.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cd2876c4b348521cbea75cc99b93c962722ce4e --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-latexpand.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latexpand | grep -v \.src | grep texlive-latexpand + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latexpand" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latexpand + CHECK_RESULT $? 0 0 "install texlive-latexpand failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latexpand + CHECK_RESULT $? 0 0 "remove texlive-latexpand failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lcdftypetools.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lcdftypetools.sh new file mode 100644 index 0000000000000000000000000000000000000000..a017b73b85c016d9aff397345b9e133ccd6b9968 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lcdftypetools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lcdftypetools | grep -v \.src | grep texlive-lcdftypetools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lcdftypetools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lcdftypetools + CHECK_RESULT $? 0 0 "install texlive-lcdftypetools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lcdftypetools + CHECK_RESULT $? 0 0 "remove texlive-lcdftypetools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lib-devel.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..867284ca8d8ebeac12c897984e3e615d0d91d100 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lib-devel | grep -v \.src | grep texlive-lib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lib-devel + CHECK_RESULT $? 0 0 "install texlive-lib-devel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lib-devel + CHECK_RESULT $? 0 0 "remove texlive-lib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lib.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lib.sh new file mode 100644 index 0000000000000000000000000000000000000000..c27704c49f5ab93a9bfbe5f711916aa5f4b504ef --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lib | grep -v \.src | grep texlive-lib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lib + CHECK_RESULT $? 0 0 "install texlive-lib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lib + CHECK_RESULT $? 0 0 "remove texlive-lib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-light-latex-make.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-light-latex-make.sh new file mode 100644 index 0000000000000000000000000000000000000000..ddb27be9d4015f246294d4a449619fec21112945 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-light-latex-make.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-light-latex-make | grep -v \.src | grep texlive-light-latex-make + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-light-latex-make" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-light-latex-make + CHECK_RESULT $? 0 0 "install texlive-light-latex-make failed" + SLEEP_WAIT 1 + dnf remove -y texlive-light-latex-make + CHECK_RESULT $? 0 0 "remove texlive-light-latex-make failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lilyglyphs.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lilyglyphs.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb140d55b45179228ef8d9ce184dc2baac0f19ca --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lilyglyphs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lilyglyphs | grep -v \.src | grep texlive-lilyglyphs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lilyglyphs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lilyglyphs + CHECK_RESULT $? 0 0 "install texlive-lilyglyphs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lilyglyphs + CHECK_RESULT $? 0 0 "remove texlive-lilyglyphs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-listbib.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-listbib.sh new file mode 100644 index 0000000000000000000000000000000000000000..88a0b67263bf0558320141aa935f05e2aeda292d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-listbib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-listbib | grep -v \.src | grep texlive-listbib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-listbib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-listbib + CHECK_RESULT $? 0 0 "install texlive-listbib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-listbib + CHECK_RESULT $? 0 0 "remove texlive-listbib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-listings-ext.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-listings-ext.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a986505aa8f434b82857f0bc14b8c9b2c329473 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-listings-ext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-listings-ext | grep -v \.src | grep texlive-listings-ext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-listings-ext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-listings-ext + CHECK_RESULT $? 0 0 "install texlive-listings-ext failed" + SLEEP_WAIT 1 + dnf remove -y texlive-listings-ext + CHECK_RESULT $? 0 0 "remove texlive-listings-ext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lollipop.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lollipop.sh new file mode 100644 index 0000000000000000000000000000000000000000..fdc25263de2b4798373725910b8683886cb9be28 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lollipop.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lollipop | grep -v \.src | grep texlive-lollipop + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lollipop" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lollipop + CHECK_RESULT $? 0 0 "install texlive-lollipop failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lollipop + CHECK_RESULT $? 0 0 "remove texlive-lollipop failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ltxfileinfo.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ltxfileinfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d8a1f44ead860bdef9088b796f91b9742446bc5 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ltxfileinfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ltxfileinfo | grep -v \.src | grep texlive-ltxfileinfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ltxfileinfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ltxfileinfo + CHECK_RESULT $? 0 0 "install texlive-ltxfileinfo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ltxfileinfo + CHECK_RESULT $? 0 0 "remove texlive-ltxfileinfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ltximg.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ltximg.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbbe2122c7495f48ec68062f04c2396db50ab5ec --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ltximg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ltximg | grep -v \.src | grep texlive-ltximg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ltximg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ltximg + CHECK_RESULT $? 0 0 "install texlive-ltximg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ltximg + CHECK_RESULT $? 0 0 "remove texlive-ltximg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lua2dox.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lua2dox.sh new file mode 100644 index 0000000000000000000000000000000000000000..a382b4a19ca7a69e9ee4872375db7557bdbc6395 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lua2dox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lua2dox | grep -v \.src | grep texlive-lua2dox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lua2dox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lua2dox + CHECK_RESULT $? 0 0 "install texlive-lua2dox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lua2dox + CHECK_RESULT $? 0 0 "remove texlive-lua2dox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luahbtex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luahbtex.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8839148eabaaf320acdd18a4ccdc1e0bfea57c7 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luahbtex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-luahbtex | grep -v \.src | grep texlive-luahbtex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-luahbtex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-luahbtex + CHECK_RESULT $? 0 0 "install texlive-luahbtex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-luahbtex + CHECK_RESULT $? 0 0 "remove texlive-luahbtex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luajittex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luajittex.sh new file mode 100644 index 0000000000000000000000000000000000000000..08ba1d905a61799cee08ac21a9afbdd508addba5 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luajittex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-luajittex | grep -v \.src | grep texlive-luajittex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-luajittex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-luajittex + CHECK_RESULT $? 0 0 "install texlive-luajittex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-luajittex + CHECK_RESULT $? 0 0 "remove texlive-luajittex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luaotfload.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luaotfload.sh new file mode 100644 index 0000000000000000000000000000000000000000..b44d05c3acd4162ca78fca312d8f738ff08b220f --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luaotfload.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-luaotfload | grep -v \.src | grep texlive-luaotfload + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-luaotfload" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-luaotfload + CHECK_RESULT $? 0 0 "install texlive-luaotfload failed" + SLEEP_WAIT 1 + dnf remove -y texlive-luaotfload + CHECK_RESULT $? 0 0 "remove texlive-luaotfload failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luatex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..f62b99f8b969832eae1bff3b02b517c290732778 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-luatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-luatex | grep -v \.src | grep texlive-luatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-luatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-luatex + CHECK_RESULT $? 0 0 "install texlive-luatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-luatex + CHECK_RESULT $? 0 0 "remove texlive-luatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lwarp.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lwarp.sh new file mode 100644 index 0000000000000000000000000000000000000000..1912f892db62001557d7e4d5756aaaeab7cb780c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lwarp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lwarp | grep -v \.src | grep texlive-lwarp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lwarp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lwarp + CHECK_RESULT $? 0 0 "install texlive-lwarp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lwarp + CHECK_RESULT $? 0 0 "remove texlive-lwarp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lyluatex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lyluatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..803a7cc77764e40d5944264267b651ff88a6db18 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-lyluatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lyluatex | grep -v \.src | grep texlive-lyluatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lyluatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lyluatex + CHECK_RESULT $? 0 0 "install texlive-lyluatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lyluatex + CHECK_RESULT $? 0 0 "remove texlive-lyluatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-m-tx.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-m-tx.sh new file mode 100644 index 0000000000000000000000000000000000000000..445ea68ba07352c33974d4cd50167de30cb0e60f --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-m-tx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-m-tx | grep -v \.src | grep texlive-m-tx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-m-tx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-m-tx + CHECK_RESULT $? 0 0 "install texlive-m-tx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-m-tx + CHECK_RESULT $? 0 0 "remove texlive-m-tx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-make4ht.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-make4ht.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f8eba8f9975ba4444836d5bc62c0450891ed821 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-make4ht.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-make4ht | grep -v \.src | grep texlive-make4ht + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-make4ht" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-make4ht + CHECK_RESULT $? 0 0 "install texlive-make4ht failed" + SLEEP_WAIT 1 + dnf remove -y texlive-make4ht + CHECK_RESULT $? 0 0 "remove texlive-make4ht failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-makedtx.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-makedtx.sh new file mode 100644 index 0000000000000000000000000000000000000000..75647150fd583afdf9230fdd344b13fe43d26cdc --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-makedtx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-makedtx | grep -v \.src | grep texlive-makedtx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-makedtx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-makedtx + CHECK_RESULT $? 0 0 "install texlive-makedtx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-makedtx + CHECK_RESULT $? 0 0 "remove texlive-makedtx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-makeindex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-makeindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..9482951ccacc728e93d552fc64bf59049ef2a5eb --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-makeindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-makeindex | grep -v \.src | grep texlive-makeindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-makeindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-makeindex + CHECK_RESULT $? 0 0 "install texlive-makeindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-makeindex + CHECK_RESULT $? 0 0 "remove texlive-makeindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-match_parens.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-match_parens.sh new file mode 100644 index 0000000000000000000000000000000000000000..d43df864f3f9344905e02c247795ab41f7604596 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-match_parens.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-match_parens | grep -v \.src | grep texlive-match_parens + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-match_parens" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-match_parens + CHECK_RESULT $? 0 0 "install texlive-match_parens failed" + SLEEP_WAIT 1 + dnf remove -y texlive-match_parens + CHECK_RESULT $? 0 0 "remove texlive-match_parens failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mathspic.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mathspic.sh new file mode 100644 index 0000000000000000000000000000000000000000..72dae572c98f7f78748cebd51fb8f6eda9a3b4c2 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mathspic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mathspic | grep -v \.src | grep texlive-mathspic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mathspic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mathspic + CHECK_RESULT $? 0 0 "install texlive-mathspic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mathspic + CHECK_RESULT $? 0 0 "remove texlive-mathspic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-metafont.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-metafont.sh new file mode 100644 index 0000000000000000000000000000000000000000..1633e7bc0905dc24b62eee2da36ec098118848ce --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-metafont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-metafont | grep -v \.src | grep texlive-metafont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-metafont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-metafont + CHECK_RESULT $? 0 0 "install texlive-metafont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-metafont + CHECK_RESULT $? 0 0 "remove texlive-metafont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-metapost.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-metapost.sh new file mode 100644 index 0000000000000000000000000000000000000000..efbe67ab0e84263ea8790d72c4932fd50947d025 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-metapost.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-metapost | grep -v \.src | grep texlive-metapost + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-metapost" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-metapost + CHECK_RESULT $? 0 0 "install texlive-metapost failed" + SLEEP_WAIT 1 + dnf remove -y texlive-metapost + CHECK_RESULT $? 0 0 "remove texlive-metapost failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mex.sh new file mode 100644 index 0000000000000000000000000000000000000000..96e5581175e3ce6c27b66f8c272c4bc52f77c3f8 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mex | grep -v \.src | grep texlive-mex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mex + CHECK_RESULT $? 0 0 "install texlive-mex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mex + CHECK_RESULT $? 0 0 "remove texlive-mex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mf2pt1.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mf2pt1.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf2c8f9c66f72e734e3efb208c4ca6d4f5dbaad5 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mf2pt1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mf2pt1 | grep -v \.src | grep texlive-mf2pt1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mf2pt1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mf2pt1 + CHECK_RESULT $? 0 0 "install texlive-mf2pt1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mf2pt1 + CHECK_RESULT $? 0 0 "remove texlive-mf2pt1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mflua.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mflua.sh new file mode 100644 index 0000000000000000000000000000000000000000..00fbe92f97c7d3bd47c3182b00266abeb04e7d38 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mflua.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mflua | grep -v \.src | grep texlive-mflua + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mflua" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mflua + CHECK_RESULT $? 0 0 "install texlive-mflua failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mflua + CHECK_RESULT $? 0 0 "remove texlive-mflua failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mfware.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mfware.sh new file mode 100644 index 0000000000000000000000000000000000000000..4726e6810f96bb35818667530371c2ca7ac34485 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mfware.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mfware | grep -v \.src | grep texlive-mfware + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mfware" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mfware + CHECK_RESULT $? 0 0 "install texlive-mfware failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mfware + CHECK_RESULT $? 0 0 "remove texlive-mfware failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mkgrkindex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mkgrkindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..879b2f4afe88ee067385ea293065eefb9e6ea6de --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mkgrkindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mkgrkindex | grep -v \.src | grep texlive-mkgrkindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mkgrkindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mkgrkindex + CHECK_RESULT $? 0 0 "install texlive-mkgrkindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mkgrkindex + CHECK_RESULT $? 0 0 "remove texlive-mkgrkindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mkjobtexmf.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mkjobtexmf.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed6631cb3b73500a57f28f2b03bdac82d0830e5c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mkjobtexmf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mkjobtexmf | grep -v \.src | grep texlive-mkjobtexmf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mkjobtexmf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mkjobtexmf + CHECK_RESULT $? 0 0 "install texlive-mkjobtexmf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mkjobtexmf + CHECK_RESULT $? 0 0 "remove texlive-mkjobtexmf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mkpic.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mkpic.sh new file mode 100644 index 0000000000000000000000000000000000000000..e380244d3b3d73fc1a683ec8032ba42e2404eeb2 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mkpic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mkpic | grep -v \.src | grep texlive-mkpic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mkpic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mkpic + CHECK_RESULT $? 0 0 "install texlive-mkpic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mkpic + CHECK_RESULT $? 0 0 "remove texlive-mkpic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mltex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mltex.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e43c66ffefa60993de7db06c2e2738fbcf59cb1 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mltex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mltex | grep -v \.src | grep texlive-mltex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mltex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mltex + CHECK_RESULT $? 0 0 "install texlive-mltex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mltex + CHECK_RESULT $? 0 0 "remove texlive-mltex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mptopdf.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mptopdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..97ff1d2c1a569bac739f6c1e5e11967c8c59cc9c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-mptopdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mptopdf | grep -v \.src | grep texlive-mptopdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mptopdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mptopdf + CHECK_RESULT $? 0 0 "install texlive-mptopdf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mptopdf + CHECK_RESULT $? 0 0 "remove texlive-mptopdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-multibibliography.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-multibibliography.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b5f239d528c101b2e5777d7f587ebf35c82d4b5 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-multibibliography.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multibibliography | grep -v \.src | grep texlive-multibibliography + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multibibliography" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multibibliography + CHECK_RESULT $? 0 0 "install texlive-multibibliography failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multibibliography + CHECK_RESULT $? 0 0 "remove texlive-multibibliography failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-musixtex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-musixtex.sh new file mode 100644 index 0000000000000000000000000000000000000000..db92d5ac061161f99954abf5742c535349a24ff5 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-musixtex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musixtex | grep -v \.src | grep texlive-musixtex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musixtex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musixtex + CHECK_RESULT $? 0 0 "install texlive-musixtex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musixtex + CHECK_RESULT $? 0 0 "remove texlive-musixtex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-musixtnt.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-musixtnt.sh new file mode 100644 index 0000000000000000000000000000000000000000..18b3a7ff5f18a36dc56a392349be01f7598d5bc2 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-musixtnt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musixtnt | grep -v \.src | grep texlive-musixtnt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musixtnt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musixtnt + CHECK_RESULT $? 0 0 "install texlive-musixtnt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musixtnt + CHECK_RESULT $? 0 0 "remove texlive-musixtnt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-oberdiek.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-oberdiek.sh new file mode 100644 index 0000000000000000000000000000000000000000..178ebaf8e5f3b275819e0a33ad7db315bfa763a1 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-oberdiek.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oberdiek | grep -v \.src | grep texlive-oberdiek + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oberdiek" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oberdiek + CHECK_RESULT $? 0 0 "install texlive-oberdiek failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oberdiek + CHECK_RESULT $? 0 0 "remove texlive-oberdiek failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-omegaware.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-omegaware.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef7e351f45a6aa3a2fd49b7d5fe920bd2918d8ce --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-omegaware.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-omegaware | grep -v \.src | grep texlive-omegaware + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-omegaware" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-omegaware + CHECK_RESULT $? 0 0 "install texlive-omegaware failed" + SLEEP_WAIT 1 + dnf remove -y texlive-omegaware + CHECK_RESULT $? 0 0 "remove texlive-omegaware failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-optex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-optex.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ee343351c66bb5ddb360f9b61a5ee1838951ab9 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-optex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-optex | grep -v \.src | grep texlive-optex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-optex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-optex + CHECK_RESULT $? 0 0 "install texlive-optex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-optex + CHECK_RESULT $? 0 0 "remove texlive-optex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-patgen.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-patgen.sh new file mode 100644 index 0000000000000000000000000000000000000000..a661ca3ac259c339592fdb9e82c52d0b3aeca917 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-patgen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-patgen | grep -v \.src | grep texlive-patgen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-patgen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-patgen + CHECK_RESULT $? 0 0 "install texlive-patgen failed" + SLEEP_WAIT 1 + dnf remove -y texlive-patgen + CHECK_RESULT $? 0 0 "remove texlive-patgen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pax.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pax.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3e1e1b6765efa33615732d4bf3d212bf8d21fb5 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pax.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pax | grep -v \.src | grep texlive-pax + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pax" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pax + CHECK_RESULT $? 0 0 "install texlive-pax failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pax + CHECK_RESULT $? 0 0 "remove texlive-pax failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfbook2.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfbook2.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fcfc94b01bded31ed4bfbf4d60fde61eb213a03 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfbook2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfbook2 | grep -v \.src | grep texlive-pdfbook2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfbook2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfbook2 + CHECK_RESULT $? 0 0 "install texlive-pdfbook2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfbook2 + CHECK_RESULT $? 0 0 "remove texlive-pdfbook2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfcrop.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfcrop.sh new file mode 100644 index 0000000000000000000000000000000000000000..414ef7e3be21aef4651d92131be55461f48704e3 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfcrop.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfcrop | grep -v \.src | grep texlive-pdfcrop + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfcrop" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfcrop + CHECK_RESULT $? 0 0 "install texlive-pdfcrop failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfcrop + CHECK_RESULT $? 0 0 "remove texlive-pdfcrop failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfjam.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfjam.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbeb715b8f58ecd73d8d364e7f7faa26a1acebc2 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfjam.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfjam | grep -v \.src | grep texlive-pdfjam + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfjam" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfjam + CHECK_RESULT $? 0 0 "install texlive-pdfjam failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfjam + CHECK_RESULT $? 0 0 "remove texlive-pdfjam failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdflatexpicscale.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdflatexpicscale.sh new file mode 100644 index 0000000000000000000000000000000000000000..433f76f0ecbb6720472556a695e329b0571c22c0 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdflatexpicscale.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdflatexpicscale | grep -v \.src | grep texlive-pdflatexpicscale + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdflatexpicscale" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdflatexpicscale + CHECK_RESULT $? 0 0 "install texlive-pdflatexpicscale failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdflatexpicscale + CHECK_RESULT $? 0 0 "remove texlive-pdflatexpicscale failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftex-quiet.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftex-quiet.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a5fd0a8540a1bf58a75b3b3b341b55426d1b116 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftex-quiet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdftex-quiet | grep -v \.src | grep texlive-pdftex-quiet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdftex-quiet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdftex-quiet + CHECK_RESULT $? 0 0 "install texlive-pdftex-quiet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdftex-quiet + CHECK_RESULT $? 0 0 "remove texlive-pdftex-quiet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftex.sh new file mode 100644 index 0000000000000000000000000000000000000000..98f98aa4b248757ec89a0277ef7e94616e93ac1d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdftex | grep -v \.src | grep texlive-pdftex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdftex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdftex + CHECK_RESULT $? 0 0 "install texlive-pdftex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdftex + CHECK_RESULT $? 0 0 "remove texlive-pdftex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftools.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftools.sh new file mode 100644 index 0000000000000000000000000000000000000000..5eb68005043fbc2ce8623ba78acd1b2b5f82ba54 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdftools | grep -v \.src | grep texlive-pdftools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdftools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdftools + CHECK_RESULT $? 0 0 "install texlive-pdftools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdftools + CHECK_RESULT $? 0 0 "remove texlive-pdftools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftosrc.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftosrc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d22e68afa094b921ae298661fd3f5544f9dfbf4 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdftosrc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdftosrc | grep -v \.src | grep texlive-pdftosrc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdftosrc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdftosrc + CHECK_RESULT $? 0 0 "install texlive-pdftosrc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdftosrc + CHECK_RESULT $? 0 0 "remove texlive-pdftosrc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfxup.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfxup.sh new file mode 100644 index 0000000000000000000000000000000000000000..41ec0057762b5cc24b5593479ca0204da5b75ae9 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pdfxup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfxup | grep -v \.src | grep texlive-pdfxup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfxup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfxup + CHECK_RESULT $? 0 0 "install texlive-pdfxup failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfxup + CHECK_RESULT $? 0 0 "remove texlive-pdfxup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pedigree-perl.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pedigree-perl.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b089a5d9ef29292777a64221d63bc476fa0fd54 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pedigree-perl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pedigree-perl | grep -v \.src | grep texlive-pedigree-perl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pedigree-perl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pedigree-perl + CHECK_RESULT $? 0 0 "install texlive-pedigree-perl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pedigree-perl + CHECK_RESULT $? 0 0 "remove texlive-pedigree-perl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-perltex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-perltex.sh new file mode 100644 index 0000000000000000000000000000000000000000..89d42d943980d7bc109a58c793ee8c7d3ae32acf --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-perltex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-perltex | grep -v \.src | grep texlive-perltex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-perltex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-perltex + CHECK_RESULT $? 0 0 "install texlive-perltex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-perltex + CHECK_RESULT $? 0 0 "remove texlive-perltex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-petri-nets.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-petri-nets.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcc68cd2cb63e06ab39c4d10315af412ef263eaa --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-petri-nets.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-petri-nets | grep -v \.src | grep texlive-petri-nets + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-petri-nets" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-petri-nets + CHECK_RESULT $? 0 0 "install texlive-petri-nets failed" + SLEEP_WAIT 1 + dnf remove -y texlive-petri-nets + CHECK_RESULT $? 0 0 "remove texlive-petri-nets failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pfarrei.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pfarrei.sh new file mode 100644 index 0000000000000000000000000000000000000000..3500a91b0dbe746093836f30d15ff028ccd49410 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pfarrei.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pfarrei | grep -v \.src | grep texlive-pfarrei + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pfarrei" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pfarrei + CHECK_RESULT $? 0 0 "install texlive-pfarrei failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pfarrei + CHECK_RESULT $? 0 0 "remove texlive-pfarrei failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pkfix-helper.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pkfix-helper.sh new file mode 100644 index 0000000000000000000000000000000000000000..320e5bb3dfde3a7c00fb52feaf303e9b45d94dfa --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pkfix-helper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pkfix-helper | grep -v \.src | grep texlive-pkfix-helper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pkfix-helper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pkfix-helper + CHECK_RESULT $? 0 0 "install texlive-pkfix-helper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pkfix-helper + CHECK_RESULT $? 0 0 "remove texlive-pkfix-helper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pkfix.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pkfix.sh new file mode 100644 index 0000000000000000000000000000000000000000..77473962e74a7af3259ebcfd1b4a6b44b92b831c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pkfix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pkfix | grep -v \.src | grep texlive-pkfix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pkfix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pkfix + CHECK_RESULT $? 0 0 "install texlive-pkfix failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pkfix + CHECK_RESULT $? 0 0 "remove texlive-pkfix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pmx.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pmx.sh new file mode 100644 index 0000000000000000000000000000000000000000..35a04ffe27ba864924027eaf8f3e8f85a4ee78b8 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pmx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pmx | grep -v \.src | grep texlive-pmx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pmx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pmx + CHECK_RESULT $? 0 0 "install texlive-pmx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pmx + CHECK_RESULT $? 0 0 "remove texlive-pmx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pmxchords.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pmxchords.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1f3716679589dc21ef5426034c063a3693f41f5 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pmxchords.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pmxchords | grep -v \.src | grep texlive-pmxchords + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pmxchords" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pmxchords + CHECK_RESULT $? 0 0 "install texlive-pmxchords failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pmxchords + CHECK_RESULT $? 0 0 "remove texlive-pmxchords failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ps2eps.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ps2eps.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7f1f1e1fa8c651941f2af3fa53de06eafe29252 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ps2eps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ps2eps | grep -v \.src | grep texlive-ps2eps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ps2eps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ps2eps + CHECK_RESULT $? 0 0 "install texlive-ps2eps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ps2eps + CHECK_RESULT $? 0 0 "remove texlive-ps2eps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ps2pk.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ps2pk.sh new file mode 100644 index 0000000000000000000000000000000000000000..89546364ada690ba29c5668d10f58fd438df471c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ps2pk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ps2pk | grep -v \.src | grep texlive-ps2pk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ps2pk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ps2pk + CHECK_RESULT $? 0 0 "install texlive-ps2pk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ps2pk + CHECK_RESULT $? 0 0 "remove texlive-ps2pk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pst-pdf.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pst-pdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..93e3bda92b3958dba61de4b2d1c4f4e240d9419c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pst-pdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pst-pdf | grep -v \.src | grep texlive-pst-pdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pst-pdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pst-pdf + CHECK_RESULT $? 0 0 "install texlive-pst-pdf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pst-pdf + CHECK_RESULT $? 0 0 "remove texlive-pst-pdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pst2pdf.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pst2pdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..98ead9382a2cbed00e243be8e22e8c946b968b01 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pst2pdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pst2pdf | grep -v \.src | grep texlive-pst2pdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pst2pdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pst2pdf + CHECK_RESULT $? 0 0 "install texlive-pst2pdf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pst2pdf + CHECK_RESULT $? 0 0 "remove texlive-pst2pdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pstools.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pstools.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ce3e0dfc5a1f2cb50fff72c9a59f99a7b28ae6e --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pstools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pstools | grep -v \.src | grep texlive-pstools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pstools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pstools + CHECK_RESULT $? 0 0 "install texlive-pstools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pstools + CHECK_RESULT $? 0 0 "remove texlive-pstools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ptex-fontmaps.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ptex-fontmaps.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7c5ad549107bcde4f1c693ec29b346e66818312 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ptex-fontmaps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ptex-fontmaps | grep -v \.src | grep texlive-ptex-fontmaps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ptex-fontmaps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ptex-fontmaps + CHECK_RESULT $? 0 0 "install texlive-ptex-fontmaps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ptex-fontmaps + CHECK_RESULT $? 0 0 "remove texlive-ptex-fontmaps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ptex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ptex.sh new file mode 100644 index 0000000000000000000000000000000000000000..41036577d8e9bacbefb07291124ac673964e652d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ptex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ptex | grep -v \.src | grep texlive-ptex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ptex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ptex + CHECK_RESULT $? 0 0 "install texlive-ptex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ptex + CHECK_RESULT $? 0 0 "remove texlive-ptex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ptex2pdf.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ptex2pdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ec72e96f51eeee59afe44187c96a7b06db5a015 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ptex2pdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ptex2pdf | grep -v \.src | grep texlive-ptex2pdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ptex2pdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ptex2pdf + CHECK_RESULT $? 0 0 "install texlive-ptex2pdf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ptex2pdf + CHECK_RESULT $? 0 0 "remove texlive-ptex2pdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-purifyeps.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-purifyeps.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8e7f4510dcc62637efee00881335bcf400ff657 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-purifyeps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-purifyeps | grep -v \.src | grep texlive-purifyeps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-purifyeps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-purifyeps + CHECK_RESULT $? 0 0 "install texlive-purifyeps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-purifyeps + CHECK_RESULT $? 0 0 "remove texlive-purifyeps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pygmentex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pygmentex.sh new file mode 100644 index 0000000000000000000000000000000000000000..92b229f89ab8b2d91bd337e85ca0251f819773c1 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pygmentex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pygmentex | grep -v \.src | grep texlive-pygmentex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pygmentex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pygmentex + CHECK_RESULT $? 0 0 "install texlive-pygmentex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pygmentex + CHECK_RESULT $? 0 0 "remove texlive-pygmentex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pythontex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pythontex.sh new file mode 100644 index 0000000000000000000000000000000000000000..27d97ce991dd3dfa1fca7c83e1aa6b601ae06adf --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-pythontex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pythontex | grep -v \.src | grep texlive-pythontex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pythontex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pythontex + CHECK_RESULT $? 0 0 "install texlive-pythontex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pythontex + CHECK_RESULT $? 0 0 "remove texlive-pythontex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-rubik.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-rubik.sh new file mode 100644 index 0000000000000000000000000000000000000000..538fda93309d1374ce8aaf415e9b016068d8a80c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-rubik.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rubik | grep -v \.src | grep texlive-rubik + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rubik" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rubik + CHECK_RESULT $? 0 0 "install texlive-rubik failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rubik + CHECK_RESULT $? 0 0 "remove texlive-rubik failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-seetexk.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-seetexk.sh new file mode 100644 index 0000000000000000000000000000000000000000..aca00f7fc2e98a7b5ba16b7b249a3993244d4126 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-seetexk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seetexk | grep -v \.src | grep texlive-seetexk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seetexk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seetexk + CHECK_RESULT $? 0 0 "install texlive-seetexk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seetexk + CHECK_RESULT $? 0 0 "remove texlive-seetexk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-spix.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-spix.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0b80046083bb31e710147ca6d4fa39ce999a050 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-spix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spix | grep -v \.src | grep texlive-spix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spix + CHECK_RESULT $? 0 0 "install texlive-spix failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spix + CHECK_RESULT $? 0 0 "remove texlive-spix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-splitindex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-splitindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3bd8a9d0fa7f6efb6d445e02248adcac2fd9030 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-splitindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-splitindex | grep -v \.src | grep texlive-splitindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-splitindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-splitindex + CHECK_RESULT $? 0 0 "install texlive-splitindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-splitindex + CHECK_RESULT $? 0 0 "remove texlive-splitindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-srcredact.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-srcredact.sh new file mode 100644 index 0000000000000000000000000000000000000000..335af449b4792a21aa33bdd8b07400d53c56f3d1 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-srcredact.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-srcredact | grep -v \.src | grep texlive-srcredact + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-srcredact" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-srcredact + CHECK_RESULT $? 0 0 "install texlive-srcredact failed" + SLEEP_WAIT 1 + dnf remove -y texlive-srcredact + CHECK_RESULT $? 0 0 "remove texlive-srcredact failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-sty2dtx.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-sty2dtx.sh new file mode 100644 index 0000000000000000000000000000000000000000..a151345c51c3101853f9872cdd86ed9527be2a4e --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-sty2dtx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sty2dtx | grep -v \.src | grep texlive-sty2dtx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sty2dtx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sty2dtx + CHECK_RESULT $? 0 0 "install texlive-sty2dtx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sty2dtx + CHECK_RESULT $? 0 0 "remove texlive-sty2dtx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-svn-multi.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-svn-multi.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a1de44f2a8b1a41b4fde606c73c971516bc1820 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-svn-multi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svn-multi | grep -v \.src | grep texlive-svn-multi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svn-multi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svn-multi + CHECK_RESULT $? 0 0 "install texlive-svn-multi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svn-multi + CHECK_RESULT $? 0 0 "remove texlive-svn-multi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-synctex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-synctex.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3ebc6fd32d97c0aaec2dd26625749672e8fbfdc --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-synctex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-synctex | grep -v \.src | grep texlive-synctex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-synctex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-synctex + CHECK_RESULT $? 0 0 "install texlive-synctex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-synctex + CHECK_RESULT $? 0 0 "remove texlive-synctex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tetex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..097023545528a0c3a86192936320c3e00843bbba --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tetex | grep -v \.src | grep texlive-tetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tetex + CHECK_RESULT $? 0 0 "install texlive-tetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tetex + CHECK_RESULT $? 0 0 "remove texlive-tetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tex.sh new file mode 100644 index 0000000000000000000000000000000000000000..81c0dc7cc7d700d9e3ee8fd655e440222e429def --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tex | grep -v \.src | grep texlive-tex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tex + CHECK_RESULT $? 0 0 "install texlive-tex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tex + CHECK_RESULT $? 0 0 "remove texlive-tex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tex4ebook.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tex4ebook.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dafa681e0a29f8e04d87e03554af77deb67607e --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tex4ebook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tex4ebook | grep -v \.src | grep texlive-tex4ebook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tex4ebook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tex4ebook + CHECK_RESULT $? 0 0 "install texlive-tex4ebook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tex4ebook + CHECK_RESULT $? 0 0 "remove texlive-tex4ebook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tex4ht.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tex4ht.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ccde1f8e44c9771b4f773171658b19f49ef6772 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tex4ht.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tex4ht | grep -v \.src | grep texlive-tex4ht + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tex4ht" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tex4ht + CHECK_RESULT $? 0 0 "install texlive-tex4ht failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tex4ht + CHECK_RESULT $? 0 0 "remove texlive-tex4ht failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texconfig.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texconfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..f945d9c30853d76ddb035824db9925469925b3d7 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texconfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texconfig | grep -v \.src | grep texlive-texconfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texconfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texconfig + CHECK_RESULT $? 0 0 "install texlive-texconfig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texconfig + CHECK_RESULT $? 0 0 "remove texlive-texconfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texcount.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texcount.sh new file mode 100644 index 0000000000000000000000000000000000000000..40d245052baa568d89271e95fb0e82f3970c78d6 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texcount.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texcount | grep -v \.src | grep texlive-texcount + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texcount" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texcount + CHECK_RESULT $? 0 0 "install texlive-texcount failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texcount + CHECK_RESULT $? 0 0 "remove texlive-texcount failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdef.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdef.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd1f754d2c2b66b6cb14630342dfa19ee3067cbd --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdef.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texdef | grep -v \.src | grep texlive-texdef + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texdef" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texdef + CHECK_RESULT $? 0 0 "install texlive-texdef failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texdef + CHECK_RESULT $? 0 0 "remove texlive-texdef failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdiff.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdiff.sh new file mode 100644 index 0000000000000000000000000000000000000000..368e41c2c9d37482e756be3d6548a73e0669bab9 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdiff.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texdiff | grep -v \.src | grep texlive-texdiff + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texdiff" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texdiff + CHECK_RESULT $? 0 0 "install texlive-texdiff failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texdiff + CHECK_RESULT $? 0 0 "remove texlive-texdiff failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdirflatten.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdirflatten.sh new file mode 100644 index 0000000000000000000000000000000000000000..df05421738a0b0ee92b8d52bd4a76cc3d300cc4c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdirflatten.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texdirflatten | grep -v \.src | grep texlive-texdirflatten + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texdirflatten" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texdirflatten + CHECK_RESULT $? 0 0 "install texlive-texdirflatten failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texdirflatten + CHECK_RESULT $? 0 0 "remove texlive-texdirflatten failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdoc.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2797076f60491daedc939d1957838822885c626 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texdoc | grep -v \.src | grep texlive-texdoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texdoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texdoc + CHECK_RESULT $? 0 0 "install texlive-texdoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texdoc + CHECK_RESULT $? 0 0 "remove texlive-texdoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdoctk.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdoctk.sh new file mode 100644 index 0000000000000000000000000000000000000000..38c8d76d1c05f32a0356e30c7dd496b7fd04dae5 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texdoctk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texdoctk | grep -v \.src | grep texlive-texdoctk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texdoctk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texdoctk + CHECK_RESULT $? 0 0 "install texlive-texdoctk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texdoctk + CHECK_RESULT $? 0 0 "remove texlive-texdoctk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texfot.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texfot.sh new file mode 100644 index 0000000000000000000000000000000000000000..02e48cdb62e6162dbb407b8f510a51a99d6508c8 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texfot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texfot | grep -v \.src | grep texlive-texfot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texfot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texfot + CHECK_RESULT $? 0 0 "install texlive-texfot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texfot + CHECK_RESULT $? 0 0 "remove texlive-texfot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive-en.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive-en.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee91dcec8c59f07bb5ff6a7479d24b37fa882e5c --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive-en.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texlive-en | grep -v \.src | grep texlive-texlive-en + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texlive-en" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texlive-en + CHECK_RESULT $? 0 0 "install texlive-texlive-en failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texlive-en + CHECK_RESULT $? 0 0 "remove texlive-texlive-en failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive-scripts-extra.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive-scripts-extra.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7b91abceedcaaad30a3a7fba3c8323370094897 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive-scripts-extra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texlive-scripts-extra | grep -v \.src | grep texlive-texlive-scripts-extra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texlive-scripts-extra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texlive-scripts-extra + CHECK_RESULT $? 0 0 "install texlive-texlive-scripts-extra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texlive-scripts-extra + CHECK_RESULT $? 0 0 "remove texlive-texlive-scripts-extra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive-scripts.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive-scripts.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae16608e10719b6774232d1e6ec8caa915f69483 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive-scripts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texlive-scripts | grep -v \.src | grep texlive-texlive-scripts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texlive-scripts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texlive-scripts + CHECK_RESULT $? 0 0 "install texlive-texlive-scripts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texlive-scripts + CHECK_RESULT $? 0 0 "remove texlive-texlive-scripts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive.infra.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive.infra.sh new file mode 100644 index 0000000000000000000000000000000000000000..3198d295b01d910246cf1cf158d12d08fe4de084 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texlive.infra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texlive.infra | grep -v \.src | grep texlive-texlive.infra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texlive.infra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texlive.infra + CHECK_RESULT $? 0 0 "install texlive-texlive.infra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texlive.infra + CHECK_RESULT $? 0 0 "remove texlive-texlive.infra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texliveonfly.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texliveonfly.sh new file mode 100644 index 0000000000000000000000000000000000000000..08a07a173e94f0add8d13418b253c7f4ab026d56 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texliveonfly.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texliveonfly | grep -v \.src | grep texlive-texliveonfly + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texliveonfly" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texliveonfly + CHECK_RESULT $? 0 0 "install texlive-texliveonfly failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texliveonfly + CHECK_RESULT $? 0 0 "remove texlive-texliveonfly failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texloganalyser.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texloganalyser.sh new file mode 100644 index 0000000000000000000000000000000000000000..8134a71a0d26a03212b5ff44b9d4e372b5d72a0e --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texloganalyser.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texloganalyser | grep -v \.src | grep texlive-texloganalyser + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texloganalyser" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texloganalyser + CHECK_RESULT $? 0 0 "install texlive-texloganalyser failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texloganalyser + CHECK_RESULT $? 0 0 "remove texlive-texloganalyser failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texosquery.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texosquery.sh new file mode 100644 index 0000000000000000000000000000000000000000..70eab05d16ba3e7a6ce57f6d22d65a6855c2cc13 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texosquery.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texosquery | grep -v \.src | grep texlive-texosquery + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texosquery" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texosquery + CHECK_RESULT $? 0 0 "install texlive-texosquery failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texosquery + CHECK_RESULT $? 0 0 "remove texlive-texosquery failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texplate.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texplate.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b84cc2cfc1efe3cb912931fe264a6cecb69c3b2 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texplate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texplate | grep -v \.src | grep texlive-texplate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texplate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texplate + CHECK_RESULT $? 0 0 "install texlive-texplate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texplate + CHECK_RESULT $? 0 0 "remove texlive-texplate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texsis.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texsis.sh new file mode 100644 index 0000000000000000000000000000000000000000..04012d4ce1d834ea795733dab1468a0d274d9dbc --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texsis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texsis | grep -v \.src | grep texlive-texsis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texsis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texsis + CHECK_RESULT $? 0 0 "install texlive-texsis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texsis + CHECK_RESULT $? 0 0 "remove texlive-texsis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texware.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texware.sh new file mode 100644 index 0000000000000000000000000000000000000000..39001f297e0a4300d48332e92d453e661fd3da82 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-texware.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texware | grep -v \.src | grep texlive-texware + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texware" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texware + CHECK_RESULT $? 0 0 "install texlive-texware failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texware + CHECK_RESULT $? 0 0 "remove texlive-texware failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-thumbpdf.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-thumbpdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..66253a8688f6a506f2155cee3886b63082ede9fb --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-thumbpdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thumbpdf | grep -v \.src | grep texlive-thumbpdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thumbpdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thumbpdf + CHECK_RESULT $? 0 0 "install texlive-thumbpdf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thumbpdf + CHECK_RESULT $? 0 0 "remove texlive-thumbpdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tie.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tie.sh new file mode 100644 index 0000000000000000000000000000000000000000..23f27ca1d20ba8674c3acef7ea65f98602d6c1cf --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tie | grep -v \.src | grep texlive-tie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tie + CHECK_RESULT $? 0 0 "install texlive-tie failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tie + CHECK_RESULT $? 0 0 "remove texlive-tie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tikztosvg.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tikztosvg.sh new file mode 100644 index 0000000000000000000000000000000000000000..36cdf8eff2d0f2dce0edce65b5d5a6fae594d9c2 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tikztosvg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikztosvg | grep -v \.src | grep texlive-tikztosvg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikztosvg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikztosvg + CHECK_RESULT $? 0 0 "install texlive-tikztosvg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikztosvg + CHECK_RESULT $? 0 0 "remove texlive-tikztosvg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tpic2pdftex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tpic2pdftex.sh new file mode 100644 index 0000000000000000000000000000000000000000..83f8c33a5b788de395561e759365825dad41d1e0 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-tpic2pdftex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tpic2pdftex | grep -v \.src | grep texlive-tpic2pdftex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tpic2pdftex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tpic2pdftex + CHECK_RESULT $? 0 0 "install texlive-tpic2pdftex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tpic2pdftex + CHECK_RESULT $? 0 0 "remove texlive-tpic2pdftex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ttfutils.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ttfutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f861cff281d4c1595df086b53f07db8889d4720 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ttfutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ttfutils | grep -v \.src | grep texlive-ttfutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ttfutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ttfutils + CHECK_RESULT $? 0 0 "install texlive-ttfutils failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ttfutils + CHECK_RESULT $? 0 0 "remove texlive-ttfutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-typeoutfileinfo.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-typeoutfileinfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..64c2c16fb03706a1676288ffe19255eef84de2b3 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-typeoutfileinfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typeoutfileinfo | grep -v \.src | grep texlive-typeoutfileinfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typeoutfileinfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typeoutfileinfo + CHECK_RESULT $? 0 0 "install texlive-typeoutfileinfo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typeoutfileinfo + CHECK_RESULT $? 0 0 "remove texlive-typeoutfileinfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ulqda.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ulqda.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb380184c9e23ea47e9eed83f7a350735ecb2e9a --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-ulqda.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ulqda | grep -v \.src | grep texlive-ulqda + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ulqda" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ulqda + CHECK_RESULT $? 0 0 "install texlive-ulqda failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ulqda + CHECK_RESULT $? 0 0 "remove texlive-ulqda failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-uptex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-uptex.sh new file mode 100644 index 0000000000000000000000000000000000000000..348e605c280ef8a1f20d42ff6fb6f688a085b99a --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-uptex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uptex | grep -v \.src | grep texlive-uptex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uptex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uptex + CHECK_RESULT $? 0 0 "install texlive-uptex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uptex + CHECK_RESULT $? 0 0 "remove texlive-uptex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-urlbst.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-urlbst.sh new file mode 100644 index 0000000000000000000000000000000000000000..ffdd4642200e7b13bd6e089df5b5ede7800ef8c6 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-urlbst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-urlbst | grep -v \.src | grep texlive-urlbst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-urlbst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-urlbst + CHECK_RESULT $? 0 0 "install texlive-urlbst failed" + SLEEP_WAIT 1 + dnf remove -y texlive-urlbst + CHECK_RESULT $? 0 0 "remove texlive-urlbst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-velthuis.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-velthuis.sh new file mode 100644 index 0000000000000000000000000000000000000000..54c9e9f7560348c2dbc5d9da63b23bef1e8dcd83 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-velthuis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-velthuis | grep -v \.src | grep texlive-velthuis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-velthuis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-velthuis + CHECK_RESULT $? 0 0 "install texlive-velthuis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-velthuis + CHECK_RESULT $? 0 0 "remove texlive-velthuis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-vlna.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-vlna.sh new file mode 100644 index 0000000000000000000000000000000000000000..e74b76d3ced3a5f3504880fe82cc5932b0e4b4ed --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-vlna.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vlna | grep -v \.src | grep texlive-vlna + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vlna" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vlna + CHECK_RESULT $? 0 0 "install texlive-vlna failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vlna + CHECK_RESULT $? 0 0 "remove texlive-vlna failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-vpe.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-vpe.sh new file mode 100644 index 0000000000000000000000000000000000000000..fac5545eb613ce4236c7fa2101dd4f175479c88d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-vpe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vpe | grep -v \.src | grep texlive-vpe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vpe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vpe + CHECK_RESULT $? 0 0 "install texlive-vpe failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vpe + CHECK_RESULT $? 0 0 "remove texlive-vpe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-web.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-web.sh new file mode 100644 index 0000000000000000000000000000000000000000..777198677045421986844c1f5e1f95723394ca5d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-web.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-web | grep -v \.src | grep texlive-web + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-web" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-web + CHECK_RESULT $? 0 0 "install texlive-web failed" + SLEEP_WAIT 1 + dnf remove -y texlive-web + CHECK_RESULT $? 0 0 "remove texlive-web failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-webquiz.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-webquiz.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c860b672ab188b81d1446c6d9de4ffb5105da98 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-webquiz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-webquiz | grep -v \.src | grep texlive-webquiz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-webquiz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-webquiz + CHECK_RESULT $? 0 0 "install texlive-webquiz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-webquiz + CHECK_RESULT $? 0 0 "remove texlive-webquiz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-wordcount.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-wordcount.sh new file mode 100644 index 0000000000000000000000000000000000000000..effedf28f805b5f056f5f4b30acfabd410d02df0 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-wordcount.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wordcount | grep -v \.src | grep texlive-wordcount + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wordcount" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wordcount + CHECK_RESULT $? 0 0 "install texlive-wordcount failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wordcount + CHECK_RESULT $? 0 0 "remove texlive-wordcount failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xdvi.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xdvi.sh new file mode 100644 index 0000000000000000000000000000000000000000..073a6f163b8046bbf2e6dbb4ce515b9fe5d84a0b --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xdvi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xdvi | grep -v \.src | grep texlive-xdvi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xdvi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xdvi + CHECK_RESULT $? 0 0 "install texlive-xdvi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xdvi + CHECK_RESULT $? 0 0 "remove texlive-xdvi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xetex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..da57cba680c66fb6b7f627134c4149c8605fd3a6 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetex | grep -v \.src | grep texlive-xetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetex + CHECK_RESULT $? 0 0 "install texlive-xetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetex + CHECK_RESULT $? 0 0 "remove texlive-xetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xindex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..027885ceb7d0c52c256495fb9e21bc946fc52856 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xindex | grep -v \.src | grep texlive-xindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xindex + CHECK_RESULT $? 0 0 "install texlive-xindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xindex + CHECK_RESULT $? 0 0 "remove texlive-xindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xml2pmx.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xml2pmx.sh new file mode 100644 index 0000000000000000000000000000000000000000..be872d53671864be3a2df7f2d103706fe22ad8fa --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xml2pmx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xml2pmx | grep -v \.src | grep texlive-xml2pmx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xml2pmx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xml2pmx + CHECK_RESULT $? 0 0 "install texlive-xml2pmx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xml2pmx + CHECK_RESULT $? 0 0 "remove texlive-xml2pmx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xmltex.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xmltex.sh new file mode 100644 index 0000000000000000000000000000000000000000..c74cd82adfac33a9db325ab02f59268b57315cee --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xmltex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xmltex | grep -v \.src | grep texlive-xmltex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xmltex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xmltex + CHECK_RESULT $? 0 0 "install texlive-xmltex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xmltex + CHECK_RESULT $? 0 0 "remove texlive-xmltex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xpdfopen.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xpdfopen.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cb3d42397eea25ca6d36fd8469e0f91e887c100 --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-xpdfopen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpdfopen | grep -v \.src | grep texlive-xpdfopen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpdfopen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpdfopen + CHECK_RESULT $? 0 0 "install texlive-xpdfopen failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpdfopen + CHECK_RESULT $? 0 0 "remove texlive-xpdfopen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-yplan.sh b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-yplan.sh new file mode 100644 index 0000000000000000000000000000000000000000..b26df56ca92e6cf7355307fdc3f3fac07d4e589d --- /dev/null +++ b/testcases/cli-test/texlive-base/oe_test_texlive-base_install_and_remove_texlive-yplan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-base +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yplan | grep -v \.src | grep texlive-yplan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yplan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yplan + CHECK_RESULT $? 0 0 "install texlive-yplan failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yplan + CHECK_RESULT $? 0 0 "remove texlive-yplan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-basic.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-basic.sh new file mode 100644 index 0000000000000000000000000000000000000000..5aafc45706bcd197b59ace4acb15c394fccfaa2a --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-basic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-basic | grep -v \.src | grep texlive-collection-basic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-basic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-basic + CHECK_RESULT $? 0 0 "install texlive-collection-basic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-basic + CHECK_RESULT $? 0 0 "remove texlive-collection-basic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-bibtexextra.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-bibtexextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..822523913f400a36f8f6aeb7b9d46ca15fb50254 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-bibtexextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-bibtexextra | grep -v \.src | grep texlive-collection-bibtexextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-bibtexextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-bibtexextra + CHECK_RESULT $? 0 0 "install texlive-collection-bibtexextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-bibtexextra + CHECK_RESULT $? 0 0 "remove texlive-collection-bibtexextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-binextra.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-binextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..68f46aa227bde5d4e1004efc44eda7d77f8e0b4e --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-binextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-binextra | grep -v \.src | grep texlive-collection-binextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-binextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-binextra + CHECK_RESULT $? 0 0 "install texlive-collection-binextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-binextra + CHECK_RESULT $? 0 0 "remove texlive-collection-binextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-context.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-context.sh new file mode 100644 index 0000000000000000000000000000000000000000..262863637779094f7cc966d46f6555aafdf0b1dc --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-context.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-context | grep -v \.src | grep texlive-collection-context + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-context" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-context + CHECK_RESULT $? 0 0 "install texlive-collection-context failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-context + CHECK_RESULT $? 0 0 "remove texlive-collection-context failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontsextra.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontsextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..6284b53199b375129e3847938fa9abb00387dc42 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontsextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-fontsextra | grep -v \.src | grep texlive-collection-fontsextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-fontsextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-fontsextra + CHECK_RESULT $? 0 0 "install texlive-collection-fontsextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-fontsextra + CHECK_RESULT $? 0 0 "remove texlive-collection-fontsextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontsrecommended.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontsrecommended.sh new file mode 100644 index 0000000000000000000000000000000000000000..0014104ccedc731cba0d39f8006bf150e4d419ab --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontsrecommended.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-fontsrecommended | grep -v \.src | grep texlive-collection-fontsrecommended + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-fontsrecommended" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-fontsrecommended + CHECK_RESULT $? 0 0 "install texlive-collection-fontsrecommended failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-fontsrecommended + CHECK_RESULT $? 0 0 "remove texlive-collection-fontsrecommended failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontutils.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..379887784b1afee1d7bcd290b75654caa9953851 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-fontutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-fontutils | grep -v \.src | grep texlive-collection-fontutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-fontutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-fontutils + CHECK_RESULT $? 0 0 "install texlive-collection-fontutils failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-fontutils + CHECK_RESULT $? 0 0 "remove texlive-collection-fontutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-formatsextra.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-formatsextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc6e617e538dc2f3a2cf0553dc5ed5d41ad7f35b --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-formatsextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-formatsextra | grep -v \.src | grep texlive-collection-formatsextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-formatsextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-formatsextra + CHECK_RESULT $? 0 0 "install texlive-collection-formatsextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-formatsextra + CHECK_RESULT $? 0 0 "remove texlive-collection-formatsextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-games.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-games.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cd214d653dde8ced6073055bb6dfdd6b46c0cf6 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-games.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-games | grep -v \.src | grep texlive-collection-games + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-games" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-games + CHECK_RESULT $? 0 0 "install texlive-collection-games failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-games + CHECK_RESULT $? 0 0 "remove texlive-collection-games failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-humanities.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-humanities.sh new file mode 100644 index 0000000000000000000000000000000000000000..306f45c01fe208b2cec33be45bca98a80d9d8b3c --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-humanities.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-humanities | grep -v \.src | grep texlive-collection-humanities + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-humanities" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-humanities + CHECK_RESULT $? 0 0 "install texlive-collection-humanities failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-humanities + CHECK_RESULT $? 0 0 "remove texlive-collection-humanities failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langarabic.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langarabic.sh new file mode 100644 index 0000000000000000000000000000000000000000..594a9c7a020cee77e20e61b18b27a70d626afe60 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langarabic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langarabic | grep -v \.src | grep texlive-collection-langarabic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langarabic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langarabic + CHECK_RESULT $? 0 0 "install texlive-collection-langarabic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langarabic + CHECK_RESULT $? 0 0 "remove texlive-collection-langarabic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langchinese.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langchinese.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a5f58ddc0c5fd5841c1a27725be4f7c7e8f74b9 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langchinese.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langchinese | grep -v \.src | grep texlive-collection-langchinese + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langchinese" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langchinese + CHECK_RESULT $? 0 0 "install texlive-collection-langchinese failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langchinese + CHECK_RESULT $? 0 0 "remove texlive-collection-langchinese failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langcjk.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langcjk.sh new file mode 100644 index 0000000000000000000000000000000000000000..191226896b8f0bb093c8b1ab5da80191be15e199 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langcjk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langcjk | grep -v \.src | grep texlive-collection-langcjk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langcjk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langcjk + CHECK_RESULT $? 0 0 "install texlive-collection-langcjk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langcjk + CHECK_RESULT $? 0 0 "remove texlive-collection-langcjk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langcyrillic.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langcyrillic.sh new file mode 100644 index 0000000000000000000000000000000000000000..991bb0fc090189df3025c492f8287a82cb04e96a --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langcyrillic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langcyrillic | grep -v \.src | grep texlive-collection-langcyrillic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langcyrillic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langcyrillic + CHECK_RESULT $? 0 0 "install texlive-collection-langcyrillic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langcyrillic + CHECK_RESULT $? 0 0 "remove texlive-collection-langcyrillic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langczechslovak.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langczechslovak.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7258ca6cfcc1253c437d58a473eba35b1fcada0 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langczechslovak.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langczechslovak | grep -v \.src | grep texlive-collection-langczechslovak + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langczechslovak" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langczechslovak + CHECK_RESULT $? 0 0 "install texlive-collection-langczechslovak failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langczechslovak + CHECK_RESULT $? 0 0 "remove texlive-collection-langczechslovak failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langenglish.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langenglish.sh new file mode 100644 index 0000000000000000000000000000000000000000..f010c9b4bc8d70ceeefa3571647eb9ee4d650cc4 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langenglish.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langenglish | grep -v \.src | grep texlive-collection-langenglish + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langenglish" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langenglish + CHECK_RESULT $? 0 0 "install texlive-collection-langenglish failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langenglish + CHECK_RESULT $? 0 0 "remove texlive-collection-langenglish failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langeuropean.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langeuropean.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ca3aab2450b58d20efa96738db990f717ca4368 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langeuropean.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langeuropean | grep -v \.src | grep texlive-collection-langeuropean + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langeuropean" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langeuropean + CHECK_RESULT $? 0 0 "install texlive-collection-langeuropean failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langeuropean + CHECK_RESULT $? 0 0 "remove texlive-collection-langeuropean failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langfrench.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langfrench.sh new file mode 100644 index 0000000000000000000000000000000000000000..aba26a47368c3316506aa0de743d8637b1f47f63 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langfrench.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langfrench | grep -v \.src | grep texlive-collection-langfrench + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langfrench" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langfrench + CHECK_RESULT $? 0 0 "install texlive-collection-langfrench failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langfrench + CHECK_RESULT $? 0 0 "remove texlive-collection-langfrench failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langgerman.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langgerman.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7c8f8364d8d47541a0e06051c4c2f0712b674e9 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langgerman.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langgerman | grep -v \.src | grep texlive-collection-langgerman + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langgerman" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langgerman + CHECK_RESULT $? 0 0 "install texlive-collection-langgerman failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langgerman + CHECK_RESULT $? 0 0 "remove texlive-collection-langgerman failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langgreek.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langgreek.sh new file mode 100644 index 0000000000000000000000000000000000000000..f213b68e6fb0e32d85b3d1425c196141d8e864c1 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langgreek.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langgreek | grep -v \.src | grep texlive-collection-langgreek + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langgreek" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langgreek + CHECK_RESULT $? 0 0 "install texlive-collection-langgreek failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langgreek + CHECK_RESULT $? 0 0 "remove texlive-collection-langgreek failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langitalian.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langitalian.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa5fac703f609ee607265a73cfcf245a00c6080a --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langitalian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langitalian | grep -v \.src | grep texlive-collection-langitalian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langitalian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langitalian + CHECK_RESULT $? 0 0 "install texlive-collection-langitalian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langitalian + CHECK_RESULT $? 0 0 "remove texlive-collection-langitalian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langjapanese.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langjapanese.sh new file mode 100644 index 0000000000000000000000000000000000000000..1002a5f4da71c2bbe97c03b3297912c82b873ae6 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langjapanese.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langjapanese | grep -v \.src | grep texlive-collection-langjapanese + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langjapanese" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langjapanese + CHECK_RESULT $? 0 0 "install texlive-collection-langjapanese failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langjapanese + CHECK_RESULT $? 0 0 "remove texlive-collection-langjapanese failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langkorean.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langkorean.sh new file mode 100644 index 0000000000000000000000000000000000000000..dba9575c1846206aeefbf8aaee366a352309992b --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langkorean.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langkorean | grep -v \.src | grep texlive-collection-langkorean + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langkorean" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langkorean + CHECK_RESULT $? 0 0 "install texlive-collection-langkorean failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langkorean + CHECK_RESULT $? 0 0 "remove texlive-collection-langkorean failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langother.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langother.sh new file mode 100644 index 0000000000000000000000000000000000000000..55189e43fa6663242b587705a1e48108c75a2c2d --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langother.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langother | grep -v \.src | grep texlive-collection-langother + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langother" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langother + CHECK_RESULT $? 0 0 "install texlive-collection-langother failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langother + CHECK_RESULT $? 0 0 "remove texlive-collection-langother failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langpolish.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langpolish.sh new file mode 100644 index 0000000000000000000000000000000000000000..8059dcc19e47ac4c182eee46885041e50c62f440 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langpolish.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langpolish | grep -v \.src | grep texlive-collection-langpolish + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langpolish" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langpolish + CHECK_RESULT $? 0 0 "install texlive-collection-langpolish failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langpolish + CHECK_RESULT $? 0 0 "remove texlive-collection-langpolish failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langportuguese.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langportuguese.sh new file mode 100644 index 0000000000000000000000000000000000000000..15ef25477a2078b52c62f3ea2b9e8d429b5e99bf --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langportuguese.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langportuguese | grep -v \.src | grep texlive-collection-langportuguese + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langportuguese" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langportuguese + CHECK_RESULT $? 0 0 "install texlive-collection-langportuguese failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langportuguese + CHECK_RESULT $? 0 0 "remove texlive-collection-langportuguese failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langspanish.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langspanish.sh new file mode 100644 index 0000000000000000000000000000000000000000..25097d69daf7ea6d2c347d78602ed79811c1007f --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-langspanish.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langspanish | grep -v \.src | grep texlive-collection-langspanish + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langspanish" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langspanish + CHECK_RESULT $? 0 0 "install texlive-collection-langspanish failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langspanish + CHECK_RESULT $? 0 0 "remove texlive-collection-langspanish failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-latex.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-latex.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea88a43decf6ae805b926c60a127e615eb37975d --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-latex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-latex | grep -v \.src | grep texlive-collection-latex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-latex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-latex + CHECK_RESULT $? 0 0 "install texlive-collection-latex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-latex + CHECK_RESULT $? 0 0 "remove texlive-collection-latex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-latexextra.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-latexextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..60b435fb243547a6318d7a0445cee83f02fe3f5e --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-latexextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-latexextra | grep -v \.src | grep texlive-collection-latexextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-latexextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-latexextra + CHECK_RESULT $? 0 0 "install texlive-collection-latexextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-latexextra + CHECK_RESULT $? 0 0 "remove texlive-collection-latexextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-latexrecommended.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-latexrecommended.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a64b9817806f6c194a098786c2a82522c4f3976 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-latexrecommended.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-latexrecommended | grep -v \.src | grep texlive-collection-latexrecommended + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-latexrecommended" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-latexrecommended + CHECK_RESULT $? 0 0 "install texlive-collection-latexrecommended failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-latexrecommended + CHECK_RESULT $? 0 0 "remove texlive-collection-latexrecommended failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-luatex.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-luatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..32bc84eea328602183a63054df36b144dd565903 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-luatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-luatex | grep -v \.src | grep texlive-collection-luatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-luatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-luatex + CHECK_RESULT $? 0 0 "install texlive-collection-luatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-luatex + CHECK_RESULT $? 0 0 "remove texlive-collection-luatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-mathscience.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-mathscience.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c800cf0e8e852eea3556869886abcc652938714 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-mathscience.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-mathscience | grep -v \.src | grep texlive-collection-mathscience + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-mathscience" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-mathscience + CHECK_RESULT $? 0 0 "install texlive-collection-mathscience failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-mathscience + CHECK_RESULT $? 0 0 "remove texlive-collection-mathscience failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-metapost.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-metapost.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6405602b0a2b62900785fce4748fab283ee93be --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-metapost.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-metapost | grep -v \.src | grep texlive-collection-metapost + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-metapost" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-metapost + CHECK_RESULT $? 0 0 "install texlive-collection-metapost failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-metapost + CHECK_RESULT $? 0 0 "remove texlive-collection-metapost failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-music.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-music.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd6dec27326229f15098c404122f188f68703a5b --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-music.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-music | grep -v \.src | grep texlive-collection-music + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-music" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-music + CHECK_RESULT $? 0 0 "install texlive-collection-music failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-music + CHECK_RESULT $? 0 0 "remove texlive-collection-music failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-pictures.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-pictures.sh new file mode 100644 index 0000000000000000000000000000000000000000..41ba7ef40201f332bf32a53bae687241ab2cd0e2 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-pictures.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-pictures | grep -v \.src | grep texlive-collection-pictures + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-pictures" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-pictures + CHECK_RESULT $? 0 0 "install texlive-collection-pictures failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-pictures + CHECK_RESULT $? 0 0 "remove texlive-collection-pictures failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-plaingeneric.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-plaingeneric.sh new file mode 100644 index 0000000000000000000000000000000000000000..227b792ad480cd20f3580aedfafa8cae347e53f1 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-plaingeneric.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-plaingeneric | grep -v \.src | grep texlive-collection-plaingeneric + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-plaingeneric" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-plaingeneric + CHECK_RESULT $? 0 0 "install texlive-collection-plaingeneric failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-plaingeneric + CHECK_RESULT $? 0 0 "remove texlive-collection-plaingeneric failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-pstricks.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-pstricks.sh new file mode 100644 index 0000000000000000000000000000000000000000..2cb2d1b438fae1201922e4bf53a29235f1508952 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-pstricks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-pstricks | grep -v \.src | grep texlive-collection-pstricks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-pstricks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-pstricks + CHECK_RESULT $? 0 0 "install texlive-collection-pstricks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-pstricks + CHECK_RESULT $? 0 0 "remove texlive-collection-pstricks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-publishers.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-publishers.sh new file mode 100644 index 0000000000000000000000000000000000000000..200b910412ff8d7618686934461fa381c86b8d83 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-publishers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-publishers | grep -v \.src | grep texlive-collection-publishers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-publishers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-publishers + CHECK_RESULT $? 0 0 "install texlive-collection-publishers failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-publishers + CHECK_RESULT $? 0 0 "remove texlive-collection-publishers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-xetex.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-xetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..58e36c36a8554da3591bc8a2c3f20b5b77f76bb9 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-collection-xetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-xetex | grep -v \.src | grep texlive-collection-xetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-xetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-xetex + CHECK_RESULT $? 0 0 "install texlive-collection-xetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-xetex + CHECK_RESULT $? 0 0 "remove texlive-collection-xetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-filesystem.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..0080262871eb803524a15dcb488c66fe4e3ebc6d --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-filesystem | grep -v \.src | grep texlive-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-filesystem + CHECK_RESULT $? 0 0 "install texlive-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y texlive-filesystem + CHECK_RESULT $? 0 0 "remove texlive-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-basic.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-basic.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9e1d890fb80913589c1d234cc12e4ecc119390c --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-basic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-basic | grep -v \.src | grep texlive-scheme-basic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-basic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-basic + CHECK_RESULT $? 0 0 "install texlive-scheme-basic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-basic + CHECK_RESULT $? 0 0 "remove texlive-scheme-basic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-context.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-context.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c9f0e2e22e3f7209b685f05316213475f677ef5 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-context.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-context | grep -v \.src | grep texlive-scheme-context + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-context" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-context + CHECK_RESULT $? 0 0 "install texlive-scheme-context failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-context + CHECK_RESULT $? 0 0 "remove texlive-scheme-context failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-full.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-full.sh new file mode 100644 index 0000000000000000000000000000000000000000..153282b424460d9baae28d2e09d288ff4f596bb9 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-full.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-full | grep -v \.src | grep texlive-scheme-full + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-full" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-full + CHECK_RESULT $? 0 0 "install texlive-scheme-full failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-full + CHECK_RESULT $? 0 0 "remove texlive-scheme-full failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-gust.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-gust.sh new file mode 100644 index 0000000000000000000000000000000000000000..e53651e0693d9f21ec25b0076fad3c4a71aa34a0 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-gust.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-gust | grep -v \.src | grep texlive-scheme-gust + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-gust" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-gust + CHECK_RESULT $? 0 0 "install texlive-scheme-gust failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-gust + CHECK_RESULT $? 0 0 "remove texlive-scheme-gust failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-medium.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-medium.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6597931acae018d03eb9c91406dd75e25015fc8 --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-medium.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-medium | grep -v \.src | grep texlive-scheme-medium + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-medium" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-medium + CHECK_RESULT $? 0 0 "install texlive-scheme-medium failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-medium + CHECK_RESULT $? 0 0 "remove texlive-scheme-medium failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-minimal.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-minimal.sh new file mode 100644 index 0000000000000000000000000000000000000000..40b384d1c78076e85a44e3f917955767977ea15f --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-minimal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-minimal | grep -v \.src | grep texlive-scheme-minimal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-minimal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-minimal + CHECK_RESULT $? 0 0 "install texlive-scheme-minimal failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-minimal + CHECK_RESULT $? 0 0 "remove texlive-scheme-minimal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-small.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-small.sh new file mode 100644 index 0000000000000000000000000000000000000000..697783cbdd7e21bb712ec1430f30d39bd4113b0b --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-small.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-small | grep -v \.src | grep texlive-scheme-small + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-small" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-small + CHECK_RESULT $? 0 0 "install texlive-scheme-small failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-small + CHECK_RESULT $? 0 0 "remove texlive-scheme-small failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-tetex.sh b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-tetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..190a36255db39eba46319301275e0eebd331527b --- /dev/null +++ b/testcases/cli-test/texlive-filesystem/oe_test_texlive-filesystem_install_and_remove_texlive-scheme-tetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-filesystem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-tetex | grep -v \.src | grep texlive-scheme-tetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-tetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-tetex + CHECK_RESULT $? 0 0 "install texlive-scheme-tetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-tetex + CHECK_RESULT $? 0 0 "remove texlive-scheme-tetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-12many-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-12many-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..16a91d899f0e228dad994854300a08d7e3c5935b --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-12many-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-12many-doc | grep -v \.src | grep texlive-12many-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-12many-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-12many-doc + CHECK_RESULT $? 0 0 "install texlive-12many-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-12many-doc + CHECK_RESULT $? 0 0 "remove texlive-12many-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-12many.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-12many.sh new file mode 100644 index 0000000000000000000000000000000000000000..746f34b29b5298f163f001d95d5b1d1495c66d45 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-12many.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-12many | grep -v \.src | grep texlive-12many + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-12many" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-12many + CHECK_RESULT $? 0 0 "install texlive-12many failed" + SLEEP_WAIT 1 + dnf remove -y texlive-12many + CHECK_RESULT $? 0 0 "remove texlive-12many failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-2up-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-2up-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3495521e45821c00bfded70cbff5aaee0a9b937c --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-2up-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-2up-doc | grep -v \.src | grep texlive-2up-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-2up-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-2up-doc + CHECK_RESULT $? 0 0 "install texlive-2up-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-2up-doc + CHECK_RESULT $? 0 0 "remove texlive-2up-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-2up.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-2up.sh new file mode 100644 index 0000000000000000000000000000000000000000..452ecf5e9259afe3aa2228868650a4a3f35c1fd8 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-2up.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-2up | grep -v \.src | grep texlive-2up + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-2up" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-2up + CHECK_RESULT $? 0 0 "install texlive-2up failed" + SLEEP_WAIT 1 + dnf remove -y texlive-2up + CHECK_RESULT $? 0 0 "remove texlive-2up failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ESIEEcv-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ESIEEcv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa38b1e355a07cd059cc34445e94e6af1bfd15aa --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ESIEEcv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ESIEEcv-doc | grep -v \.src | grep texlive-ESIEEcv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ESIEEcv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ESIEEcv-doc + CHECK_RESULT $? 0 0 "install texlive-ESIEEcv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ESIEEcv-doc + CHECK_RESULT $? 0 0 "remove texlive-ESIEEcv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ESIEEcv.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ESIEEcv.sh new file mode 100644 index 0000000000000000000000000000000000000000..f026e5ce6b450be0ae9fb6abf4bfacc17d1b0b90 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ESIEEcv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ESIEEcv | grep -v \.src | grep texlive-ESIEEcv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ESIEEcv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ESIEEcv + CHECK_RESULT $? 0 0 "install texlive-ESIEEcv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ESIEEcv + CHECK_RESULT $? 0 0 "remove texlive-ESIEEcv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-GS1-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-GS1-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..44cd86a23da10255b8715fbfc48115ed018ce77f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-GS1-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-GS1-doc | grep -v \.src | grep texlive-GS1-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-GS1-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-GS1-doc + CHECK_RESULT $? 0 0 "install texlive-GS1-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-GS1-doc + CHECK_RESULT $? 0 0 "remove texlive-GS1-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-GS1.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-GS1.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e8339ca6637efacb76f7d32e426c2573e6c7b71 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-GS1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-GS1 | grep -v \.src | grep texlive-GS1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-GS1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-GS1 + CHECK_RESULT $? 0 0 "install texlive-GS1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-GS1 + CHECK_RESULT $? 0 0 "remove texlive-GS1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-HA-prosper-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-HA-prosper-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ce044b38f1530374a2eea2140a431ba091996a8 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-HA-prosper-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-HA-prosper-doc | grep -v \.src | grep texlive-HA-prosper-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-HA-prosper-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-HA-prosper-doc + CHECK_RESULT $? 0 0 "install texlive-HA-prosper-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-HA-prosper-doc + CHECK_RESULT $? 0 0 "remove texlive-HA-prosper-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-HA-prosper.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-HA-prosper.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad656fbecf6334d46f8329ae8fb1abbb2a334fb5 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-HA-prosper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-HA-prosper | grep -v \.src | grep texlive-HA-prosper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-HA-prosper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-HA-prosper + CHECK_RESULT $? 0 0 "install texlive-HA-prosper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-HA-prosper + CHECK_RESULT $? 0 0 "remove texlive-HA-prosper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEconf-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEconf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d758616e4e5831aca70cf6a66ab20a45c2791ccf --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEconf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-IEEEconf-doc | grep -v \.src | grep texlive-IEEEconf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-IEEEconf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-IEEEconf-doc + CHECK_RESULT $? 0 0 "install texlive-IEEEconf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-IEEEconf-doc + CHECK_RESULT $? 0 0 "remove texlive-IEEEconf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEconf.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEconf.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ebb8e3eb1e2d4f86a58778cd908cd883adbd8d4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEconf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-IEEEconf | grep -v \.src | grep texlive-IEEEconf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-IEEEconf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-IEEEconf + CHECK_RESULT $? 0 0 "install texlive-IEEEconf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-IEEEconf + CHECK_RESULT $? 0 0 "remove texlive-IEEEconf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEtran-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEtran-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..120ac09ed5739f75e1a095189d6e6c1afd13a392 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEtran-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-IEEEtran-doc | grep -v \.src | grep texlive-IEEEtran-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-IEEEtran-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-IEEEtran-doc + CHECK_RESULT $? 0 0 "install texlive-IEEEtran-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-IEEEtran-doc + CHECK_RESULT $? 0 0 "remove texlive-IEEEtran-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEtran.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEtran.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c47df9cec8dde312e48971a5c2ae41477edc8c1 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-IEEEtran.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-IEEEtran | grep -v \.src | grep texlive-IEEEtran + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-IEEEtran" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-IEEEtran + CHECK_RESULT $? 0 0 "install texlive-IEEEtran failed" + SLEEP_WAIT 1 + dnf remove -y texlive-IEEEtran + CHECK_RESULT $? 0 0 "remove texlive-IEEEtran failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-MemoirChapStyles-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-MemoirChapStyles-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..45104cb5106b1c7afda8b13d7943d6ced3dce85a --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-MemoirChapStyles-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-MemoirChapStyles-doc | grep -v \.src | grep texlive-MemoirChapStyles-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-MemoirChapStyles-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-MemoirChapStyles-doc + CHECK_RESULT $? 0 0 "install texlive-MemoirChapStyles-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-MemoirChapStyles-doc + CHECK_RESULT $? 0 0 "remove texlive-MemoirChapStyles-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIstyle-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIstyle-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e382f1affaf04f90870b3e4f53d728a1007670a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIstyle-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-SIstyle-doc | grep -v \.src | grep texlive-SIstyle-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-SIstyle-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-SIstyle-doc + CHECK_RESULT $? 0 0 "install texlive-SIstyle-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-SIstyle-doc + CHECK_RESULT $? 0 0 "remove texlive-SIstyle-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIstyle.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIstyle.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f21eabb05068b60372d2e587c95eb4e487f7c19 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIstyle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-SIstyle | grep -v \.src | grep texlive-SIstyle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-SIstyle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-SIstyle + CHECK_RESULT $? 0 0 "install texlive-SIstyle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-SIstyle + CHECK_RESULT $? 0 0 "remove texlive-SIstyle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIunits-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIunits-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..280bbf41ee2598199c76b5cd277b4829177ff3b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIunits-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-SIunits-doc | grep -v \.src | grep texlive-SIunits-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-SIunits-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-SIunits-doc + CHECK_RESULT $? 0 0 "install texlive-SIunits-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-SIunits-doc + CHECK_RESULT $? 0 0 "remove texlive-SIunits-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIunits.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIunits.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a4e3341d487bc587907eef17b98a48994ec2dd6 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-SIunits.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-SIunits | grep -v \.src | grep texlive-SIunits + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-SIunits" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-SIunits + CHECK_RESULT $? 0 0 "install texlive-SIunits failed" + SLEEP_WAIT 1 + dnf remove -y texlive-SIunits + CHECK_RESULT $? 0 0 "remove texlive-SIunits failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-Tabbing-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-Tabbing-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2541d843e8a3d10f16da09a1cd9491a636fefcb4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-Tabbing-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-Tabbing-doc | grep -v \.src | grep texlive-Tabbing-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-Tabbing-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-Tabbing-doc + CHECK_RESULT $? 0 0 "install texlive-Tabbing-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-Tabbing-doc + CHECK_RESULT $? 0 0 "remove texlive-Tabbing-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-Tabbing.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-Tabbing.sh new file mode 100644 index 0000000000000000000000000000000000000000..f75842fd0a4b4035a26a7abffc5cdfe6488de726 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-Tabbing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-Tabbing | grep -v \.src | grep texlive-Tabbing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-Tabbing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-Tabbing + CHECK_RESULT $? 0 0 "install texlive-Tabbing failed" + SLEEP_WAIT 1 + dnf remove -y texlive-Tabbing + CHECK_RESULT $? 0 0 "remove texlive-Tabbing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-Type1fonts-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-Type1fonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3faf23649565ed61b66066f3fb254f62f85008f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-Type1fonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-Type1fonts-doc | grep -v \.src | grep texlive-Type1fonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-Type1fonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-Type1fonts-doc + CHECK_RESULT $? 0 0 "install texlive-Type1fonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-Type1fonts-doc + CHECK_RESULT $? 0 0 "remove texlive-Type1fonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a0poster-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a0poster-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf95b5b8b5c05889793ed83cf6e6bfccf15e7d01 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a0poster-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-a0poster-doc | grep -v \.src | grep texlive-a0poster-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-a0poster-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-a0poster-doc + CHECK_RESULT $? 0 0 "install texlive-a0poster-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-a0poster-doc + CHECK_RESULT $? 0 0 "remove texlive-a0poster-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a0poster.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a0poster.sh new file mode 100644 index 0000000000000000000000000000000000000000..b445b489bb856225fa43c3cf286b1442ff707232 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a0poster.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-a0poster | grep -v \.src | grep texlive-a0poster + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-a0poster" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-a0poster + CHECK_RESULT $? 0 0 "install texlive-a0poster failed" + SLEEP_WAIT 1 + dnf remove -y texlive-a0poster + CHECK_RESULT $? 0 0 "remove texlive-a0poster failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a4wide-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a4wide-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7598de1d4f37e13c3a634eb4df25d0dd80ac345b --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a4wide-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-a4wide-doc | grep -v \.src | grep texlive-a4wide-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-a4wide-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-a4wide-doc + CHECK_RESULT $? 0 0 "install texlive-a4wide-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-a4wide-doc + CHECK_RESULT $? 0 0 "remove texlive-a4wide-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a4wide.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a4wide.sh new file mode 100644 index 0000000000000000000000000000000000000000..813a68fa5bc0992372e3ddbebd57ca6be2c08fe2 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a4wide.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-a4wide | grep -v \.src | grep texlive-a4wide + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-a4wide" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-a4wide + CHECK_RESULT $? 0 0 "install texlive-a4wide failed" + SLEEP_WAIT 1 + dnf remove -y texlive-a4wide + CHECK_RESULT $? 0 0 "remove texlive-a4wide failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a5comb-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a5comb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ec60c9f6beadf5d8cbd08be4c0695b9a470b903 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a5comb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-a5comb-doc | grep -v \.src | grep texlive-a5comb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-a5comb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-a5comb-doc + CHECK_RESULT $? 0 0 "install texlive-a5comb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-a5comb-doc + CHECK_RESULT $? 0 0 "remove texlive-a5comb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a5comb.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a5comb.sh new file mode 100644 index 0000000000000000000000000000000000000000..e20f61ad7bcdb4b7a58bed4857f0196027ff3637 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-a5comb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-a5comb | grep -v \.src | grep texlive-a5comb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-a5comb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-a5comb + CHECK_RESULT $? 0 0 "install texlive-a5comb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-a5comb + CHECK_RESULT $? 0 0 "remove texlive-a5comb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aastex-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aastex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a8eaa162a364bfbd69c8b2df5d620a0d9def6af --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aastex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aastex-doc | grep -v \.src | grep texlive-aastex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aastex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aastex-doc + CHECK_RESULT $? 0 0 "install texlive-aastex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aastex-doc + CHECK_RESULT $? 0 0 "remove texlive-aastex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aastex.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aastex.sh new file mode 100644 index 0000000000000000000000000000000000000000..9eabacff1b857f9ea5d9747e8c1c529ea366e4fb --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aastex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aastex | grep -v \.src | grep texlive-aastex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aastex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aastex + CHECK_RESULT $? 0 0 "install texlive-aastex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aastex + CHECK_RESULT $? 0 0 "remove texlive-aastex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abbr-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abbr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..884e4c65c6e4e80db075c45534e2859fe6159741 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abbr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abbr-doc | grep -v \.src | grep texlive-abbr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abbr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abbr-doc + CHECK_RESULT $? 0 0 "install texlive-abbr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abbr-doc + CHECK_RESULT $? 0 0 "remove texlive-abbr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abbr.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abbr.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2c4079f8c183dab3540048e07b5afdeaa7559ab --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abbr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abbr | grep -v \.src | grep texlive-abbr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abbr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abbr + CHECK_RESULT $? 0 0 "install texlive-abbr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abbr + CHECK_RESULT $? 0 0 "remove texlive-abbr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abc-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..112b39a699a54b9db3319ce80195543dd276e7a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abc-doc | grep -v \.src | grep texlive-abc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abc-doc + CHECK_RESULT $? 0 0 "install texlive-abc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abc-doc + CHECK_RESULT $? 0 0 "remove texlive-abc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea66e12eef646516a1f393536e21022cc8259ba3 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abc | grep -v \.src | grep texlive-abc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abc + CHECK_RESULT $? 0 0 "install texlive-abc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abc + CHECK_RESULT $? 0 0 "remove texlive-abc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abnt.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abnt.sh new file mode 100644 index 0000000000000000000000000000000000000000..893e168a79e5c250d3491b8dc266d8dfea919e08 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abnt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abnt | grep -v \.src | grep texlive-abnt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abnt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abnt + CHECK_RESULT $? 0 0 "install texlive-abnt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abnt + CHECK_RESULT $? 0 0 "remove texlive-abnt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abntex2-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abntex2-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b630df420b714a8cdccb4f1d4611035aa7b47b78 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abntex2-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abntex2-doc | grep -v \.src | grep texlive-abntex2-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abntex2-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abntex2-doc + CHECK_RESULT $? 0 0 "install texlive-abntex2-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abntex2-doc + CHECK_RESULT $? 0 0 "remove texlive-abntex2-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abntex2.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abntex2.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a33ee58495547af45097e3f4811e199a0e221ae --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abntex2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abntex2 | grep -v \.src | grep texlive-abntex2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abntex2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abntex2 + CHECK_RESULT $? 0 0 "install texlive-abntex2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abntex2 + CHECK_RESULT $? 0 0 "remove texlive-abntex2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abraces-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abraces-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4f666dd9f0773ad4e678177aa73f44ca4e5204b --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abraces-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abraces-doc | grep -v \.src | grep texlive-abraces-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abraces-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abraces-doc + CHECK_RESULT $? 0 0 "install texlive-abraces-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abraces-doc + CHECK_RESULT $? 0 0 "remove texlive-abraces-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abraces.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abraces.sh new file mode 100644 index 0000000000000000000000000000000000000000..e033cd474d0f12243e625bc8f362f89030526f86 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abraces.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abraces | grep -v \.src | grep texlive-abraces + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abraces" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abraces + CHECK_RESULT $? 0 0 "install texlive-abraces failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abraces + CHECK_RESULT $? 0 0 "remove texlive-abraces failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstract-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstract-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ec652404c4a8b29fe3e1fdb3cd5b51673e6f53e --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstract-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abstract-doc | grep -v \.src | grep texlive-abstract-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abstract-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abstract-doc + CHECK_RESULT $? 0 0 "install texlive-abstract-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abstract-doc + CHECK_RESULT $? 0 0 "remove texlive-abstract-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstract.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstract.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8701667a4ee431aec4721c1df3fa449f8e24fd0 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstract.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abstract | grep -v \.src | grep texlive-abstract + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abstract" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abstract + CHECK_RESULT $? 0 0 "install texlive-abstract failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abstract + CHECK_RESULT $? 0 0 "remove texlive-abstract failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstyles-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstyles-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..92d678c436a5d98664b2e5f6d675fbe2f28e987f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstyles-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abstyles-doc | grep -v \.src | grep texlive-abstyles-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abstyles-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abstyles-doc + CHECK_RESULT $? 0 0 "install texlive-abstyles-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abstyles-doc + CHECK_RESULT $? 0 0 "remove texlive-abstyles-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstyles.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstyles.sh new file mode 100644 index 0000000000000000000000000000000000000000..059b358bb445c17e651c20b2f5b4424cbc013478 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-abstyles.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-abstyles | grep -v \.src | grep texlive-abstyles + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-abstyles" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-abstyles + CHECK_RESULT $? 0 0 "install texlive-abstyles failed" + SLEEP_WAIT 1 + dnf remove -y texlive-abstyles + CHECK_RESULT $? 0 0 "remove texlive-abstyles failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-academicons-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-academicons-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf22ec36af9b09fa59418412bcb4473622488d6b --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-academicons-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-academicons-doc | grep -v \.src | grep texlive-academicons-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-academicons-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-academicons-doc + CHECK_RESULT $? 0 0 "install texlive-academicons-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-academicons-doc + CHECK_RESULT $? 0 0 "remove texlive-academicons-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-academicons.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-academicons.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b1f41e7e57afa8ccfbee4a2fb0f79aa25618ca5 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-academicons.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-academicons | grep -v \.src | grep texlive-academicons + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-academicons" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-academicons + CHECK_RESULT $? 0 0 "install texlive-academicons failed" + SLEEP_WAIT 1 + dnf remove -y texlive-academicons + CHECK_RESULT $? 0 0 "remove texlive-academicons failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-accanthis-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-accanthis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e1e7fd622f7d649f939ae8166aaefab17621074 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-accanthis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-accanthis-doc | grep -v \.src | grep texlive-accanthis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-accanthis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-accanthis-doc + CHECK_RESULT $? 0 0 "install texlive-accanthis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-accanthis-doc + CHECK_RESULT $? 0 0 "remove texlive-accanthis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-accanthis.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-accanthis.sh new file mode 100644 index 0000000000000000000000000000000000000000..654547dc1cfd2c2fce458771695fb8eb9d3acf24 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-accanthis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-accanthis | grep -v \.src | grep texlive-accanthis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-accanthis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-accanthis + CHECK_RESULT $? 0 0 "install texlive-accanthis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-accanthis + CHECK_RESULT $? 0 0 "remove texlive-accanthis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-achemso-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-achemso-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ee1dcbb78e8443d10e52fa8a319c4e9158709c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-achemso-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-achemso-doc | grep -v \.src | grep texlive-achemso-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-achemso-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-achemso-doc + CHECK_RESULT $? 0 0 "install texlive-achemso-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-achemso-doc + CHECK_RESULT $? 0 0 "remove texlive-achemso-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-achemso.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-achemso.sh new file mode 100644 index 0000000000000000000000000000000000000000..f23916fc54270e2bcfb66bdc917b313ec045610e --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-achemso.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-achemso | grep -v \.src | grep texlive-achemso + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-achemso" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-achemso + CHECK_RESULT $? 0 0 "install texlive-achemso failed" + SLEEP_WAIT 1 + dnf remove -y texlive-achemso + CHECK_RESULT $? 0 0 "remove texlive-achemso failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmart-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmart-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..50dbb51fb334f576efefccac9ee3589d15fcb023 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmart-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-acmart-doc | grep -v \.src | grep texlive-acmart-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-acmart-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-acmart-doc + CHECK_RESULT $? 0 0 "install texlive-acmart-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-acmart-doc + CHECK_RESULT $? 0 0 "remove texlive-acmart-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmart.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmart.sh new file mode 100644 index 0000000000000000000000000000000000000000..0941a9affb6b8c8f6a1a2de45ae94fbe0811fe5c --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-acmart | grep -v \.src | grep texlive-acmart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-acmart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-acmart + CHECK_RESULT $? 0 0 "install texlive-acmart failed" + SLEEP_WAIT 1 + dnf remove -y texlive-acmart + CHECK_RESULT $? 0 0 "remove texlive-acmart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmconf-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmconf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..95724407ef7a887ae00361594805e54db1faea89 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmconf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-acmconf-doc | grep -v \.src | grep texlive-acmconf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-acmconf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-acmconf-doc + CHECK_RESULT $? 0 0 "install texlive-acmconf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-acmconf-doc + CHECK_RESULT $? 0 0 "remove texlive-acmconf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmconf.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmconf.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce25038e5912d2a5136ca9c9dbfad36f10372f0d --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acmconf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-acmconf | grep -v \.src | grep texlive-acmconf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-acmconf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-acmconf + CHECK_RESULT $? 0 0 "install texlive-acmconf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-acmconf + CHECK_RESULT $? 0 0 "remove texlive-acmconf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acro-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acro-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..49f74bd4f8b7c915901e8525445c6ed6cd24dbbf --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acro-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-acro-doc | grep -v \.src | grep texlive-acro-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-acro-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-acro-doc + CHECK_RESULT $? 0 0 "install texlive-acro-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-acro-doc + CHECK_RESULT $? 0 0 "remove texlive-acro-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acro.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acro.sh new file mode 100644 index 0000000000000000000000000000000000000000..2430df8f817eac206a9b59356ff7ad86e2ab9491 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-acro | grep -v \.src | grep texlive-acro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-acro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-acro + CHECK_RESULT $? 0 0 "install texlive-acro failed" + SLEEP_WAIT 1 + dnf remove -y texlive-acro + CHECK_RESULT $? 0 0 "remove texlive-acro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acronym-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acronym-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4391bf43b7a242f259cdb6d00fe457297111b6f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acronym-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-acronym-doc | grep -v \.src | grep texlive-acronym-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-acronym-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-acronym-doc + CHECK_RESULT $? 0 0 "install texlive-acronym-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-acronym-doc + CHECK_RESULT $? 0 0 "remove texlive-acronym-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acronym.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acronym.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c62a4c97c946f9d6ddddc46a47d0c4e66600817 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acronym.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-acronym | grep -v \.src | grep texlive-acronym + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-acronym" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-acronym + CHECK_RESULT $? 0 0 "install texlive-acronym failed" + SLEEP_WAIT 1 + dnf remove -y texlive-acronym + CHECK_RESULT $? 0 0 "remove texlive-acronym failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acroterm-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acroterm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dde974bdb2b4bd95b92659c6295e56ab69cc8195 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acroterm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-acroterm-doc | grep -v \.src | grep texlive-acroterm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-acroterm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-acroterm-doc + CHECK_RESULT $? 0 0 "install texlive-acroterm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-acroterm-doc + CHECK_RESULT $? 0 0 "remove texlive-acroterm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acroterm.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acroterm.sh new file mode 100644 index 0000000000000000000000000000000000000000..82b4775c79ddb1e8b3673a46f458457382034371 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-acroterm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-acroterm | grep -v \.src | grep texlive-acroterm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-acroterm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-acroterm + CHECK_RESULT $? 0 0 "install texlive-acroterm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-acroterm + CHECK_RESULT $? 0 0 "remove texlive-acroterm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-active-conf-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-active-conf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a04fffdc36f76023680724aa75ebf3e87622426 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-active-conf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-active-conf-doc | grep -v \.src | grep texlive-active-conf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-active-conf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-active-conf-doc + CHECK_RESULT $? 0 0 "install texlive-active-conf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-active-conf-doc + CHECK_RESULT $? 0 0 "remove texlive-active-conf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-active-conf.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-active-conf.sh new file mode 100644 index 0000000000000000000000000000000000000000..4de51527b6ea0f6ed0359860b4dc68ad153a0a52 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-active-conf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-active-conf | grep -v \.src | grep texlive-active-conf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-active-conf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-active-conf + CHECK_RESULT $? 0 0 "install texlive-active-conf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-active-conf + CHECK_RESULT $? 0 0 "remove texlive-active-conf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-actuarialangle-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-actuarialangle-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..55021772634c1242de9c70c38f2504e47497ae74 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-actuarialangle-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-actuarialangle-doc | grep -v \.src | grep texlive-actuarialangle-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-actuarialangle-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-actuarialangle-doc + CHECK_RESULT $? 0 0 "install texlive-actuarialangle-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-actuarialangle-doc + CHECK_RESULT $? 0 0 "remove texlive-actuarialangle-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-actuarialangle.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-actuarialangle.sh new file mode 100644 index 0000000000000000000000000000000000000000..90b0fcfd18f6fd23d5e282ad153ec3b616ef9b0b --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-actuarialangle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-actuarialangle | grep -v \.src | grep texlive-actuarialangle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-actuarialangle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-actuarialangle + CHECK_RESULT $? 0 0 "install texlive-actuarialangle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-actuarialangle + CHECK_RESULT $? 0 0 "remove texlive-actuarialangle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-actuarialsymbol.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-actuarialsymbol.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcb5f87403cf3efcfdd8db5884213b31c6c162cb --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-actuarialsymbol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-actuarialsymbol | grep -v \.src | grep texlive-actuarialsymbol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-actuarialsymbol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-actuarialsymbol + CHECK_RESULT $? 0 0 "install texlive-actuarialsymbol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-actuarialsymbol + CHECK_RESULT $? 0 0 "remove texlive-actuarialsymbol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-addfont.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-addfont.sh new file mode 100644 index 0000000000000000000000000000000000000000..f604e8510431fd1317189203be941146f0c24342 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-addfont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-addfont | grep -v \.src | grep texlive-addfont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-addfont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-addfont + CHECK_RESULT $? 0 0 "install texlive-addfont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-addfont + CHECK_RESULT $? 0 0 "remove texlive-addfont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-addlines-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-addlines-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..165b270860954acd8d43981d63649e768130f331 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-addlines-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-addlines-doc | grep -v \.src | grep texlive-addlines-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-addlines-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-addlines-doc + CHECK_RESULT $? 0 0 "install texlive-addlines-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-addlines-doc + CHECK_RESULT $? 0 0 "remove texlive-addlines-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-addlines.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-addlines.sh new file mode 100644 index 0000000000000000000000000000000000000000..aed2ab2eb44fd752e9b48292331a0d5d9c169338 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-addlines.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-addlines | grep -v \.src | grep texlive-addlines + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-addlines" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-addlines + CHECK_RESULT $? 0 0 "install texlive-addlines failed" + SLEEP_WAIT 1 + dnf remove -y texlive-addlines + CHECK_RESULT $? 0 0 "remove texlive-addlines failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfathesis-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfathesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc79d2a23e21b13a96b40a2047bac50ff11ebc37 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfathesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adfathesis-doc | grep -v \.src | grep texlive-adfathesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adfathesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adfathesis-doc + CHECK_RESULT $? 0 0 "install texlive-adfathesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adfathesis-doc + CHECK_RESULT $? 0 0 "remove texlive-adfathesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfathesis.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfathesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c64aab2533a4c102565b6e855f911fdb6054c2b --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfathesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adfathesis | grep -v \.src | grep texlive-adfathesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adfathesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adfathesis + CHECK_RESULT $? 0 0 "install texlive-adfathesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adfathesis + CHECK_RESULT $? 0 0 "remove texlive-adfathesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adforn-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adforn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..53cd066b46e2493ed6d08751eedc8ac83b479881 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adforn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adforn-doc | grep -v \.src | grep texlive-adforn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adforn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adforn-doc + CHECK_RESULT $? 0 0 "install texlive-adforn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adforn-doc + CHECK_RESULT $? 0 0 "remove texlive-adforn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adforn.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adforn.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9c9c5817efb980549ae817f8765d17dd88404f6 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adforn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adforn | grep -v \.src | grep texlive-adforn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adforn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adforn + CHECK_RESULT $? 0 0 "install texlive-adforn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adforn + CHECK_RESULT $? 0 0 "remove texlive-adforn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfsymbols-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfsymbols-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..66aa4d92d88cb4d810bc295e029d3fb0dc4793dc --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfsymbols-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adfsymbols-doc | grep -v \.src | grep texlive-adfsymbols-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adfsymbols-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adfsymbols-doc + CHECK_RESULT $? 0 0 "install texlive-adfsymbols-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adfsymbols-doc + CHECK_RESULT $? 0 0 "remove texlive-adfsymbols-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfsymbols.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfsymbols.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c7c68ac13c1ac5ea27c3f66ddb5befc2c72c1a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adfsymbols.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adfsymbols | grep -v \.src | grep texlive-adfsymbols + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adfsymbols" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adfsymbols + CHECK_RESULT $? 0 0 "install texlive-adfsymbols failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adfsymbols + CHECK_RESULT $? 0 0 "remove texlive-adfsymbols failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adigraph.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adigraph.sh new file mode 100644 index 0000000000000000000000000000000000000000..44a94ba4254dbe5cf16f66d224e732d668b86d54 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adigraph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adigraph | grep -v \.src | grep texlive-adigraph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adigraph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adigraph + CHECK_RESULT $? 0 0 "install texlive-adigraph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adigraph + CHECK_RESULT $? 0 0 "remove texlive-adigraph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjmulticol-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjmulticol-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..356a9ff3366c650647bd1258aaf85d37e47feeb4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjmulticol-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adjmulticol-doc | grep -v \.src | grep texlive-adjmulticol-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adjmulticol-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adjmulticol-doc + CHECK_RESULT $? 0 0 "install texlive-adjmulticol-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adjmulticol-doc + CHECK_RESULT $? 0 0 "remove texlive-adjmulticol-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjmulticol.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjmulticol.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9ef213da14b0651534ba6b36b8e66b54b9b995d --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjmulticol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adjmulticol | grep -v \.src | grep texlive-adjmulticol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adjmulticol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adjmulticol + CHECK_RESULT $? 0 0 "install texlive-adjmulticol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adjmulticol + CHECK_RESULT $? 0 0 "remove texlive-adjmulticol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjustbox-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjustbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8a43cac19a12463dba1d67dae27045c9154dea0 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjustbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adjustbox-doc | grep -v \.src | grep texlive-adjustbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adjustbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adjustbox-doc + CHECK_RESULT $? 0 0 "install texlive-adjustbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adjustbox-doc + CHECK_RESULT $? 0 0 "remove texlive-adjustbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjustbox.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjustbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca9fe4662753b9bf59e836f4e66c0502135da867 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adjustbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adjustbox | grep -v \.src | grep texlive-adjustbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adjustbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adjustbox + CHECK_RESULT $? 0 0 "install texlive-adjustbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adjustbox + CHECK_RESULT $? 0 0 "remove texlive-adjustbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adobemapping.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adobemapping.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7c6461dae7e21d454b973ec38aebe017e87eb3a --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adobemapping.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adobemapping | grep -v \.src | grep texlive-adobemapping + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adobemapping" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adobemapping + CHECK_RESULT $? 0 0 "install texlive-adobemapping failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adobemapping + CHECK_RESULT $? 0 0 "remove texlive-adobemapping failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adrconv-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adrconv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c710cd81005aaef68fb15d2a7cf37de554d0082 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adrconv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adrconv-doc | grep -v \.src | grep texlive-adrconv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adrconv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adrconv-doc + CHECK_RESULT $? 0 0 "install texlive-adrconv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adrconv-doc + CHECK_RESULT $? 0 0 "remove texlive-adrconv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adrconv.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adrconv.sh new file mode 100644 index 0000000000000000000000000000000000000000..06a43734b7f52a5e9085e2d1a4018b393de7ef62 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adrconv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adrconv | grep -v \.src | grep texlive-adrconv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adrconv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adrconv + CHECK_RESULT $? 0 0 "install texlive-adrconv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adrconv + CHECK_RESULT $? 0 0 "remove texlive-adrconv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adtrees-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adtrees-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d99fee67071ea0690c42b334a50fe3c16e1ebdb --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adtrees-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adtrees-doc | grep -v \.src | grep texlive-adtrees-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adtrees-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adtrees-doc + CHECK_RESULT $? 0 0 "install texlive-adtrees-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adtrees-doc + CHECK_RESULT $? 0 0 "remove texlive-adtrees-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adtrees.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adtrees.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ead47053991d3ab669e783bce043f53b4b78791 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-adtrees.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-adtrees | grep -v \.src | grep texlive-adtrees + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-adtrees" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-adtrees + CHECK_RESULT $? 0 0 "install texlive-adtrees failed" + SLEEP_WAIT 1 + dnf remove -y texlive-adtrees + CHECK_RESULT $? 0 0 "remove texlive-adtrees failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-advdate-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-advdate-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..958e55932c3018936a0a4262859b92bbc765ae7c --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-advdate-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-advdate-doc | grep -v \.src | grep texlive-advdate-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-advdate-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-advdate-doc + CHECK_RESULT $? 0 0 "install texlive-advdate-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-advdate-doc + CHECK_RESULT $? 0 0 "remove texlive-advdate-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-advdate.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-advdate.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f05023a4c9573a4421151dee06ea7e1d5609697 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-advdate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-advdate | grep -v \.src | grep texlive-advdate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-advdate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-advdate + CHECK_RESULT $? 0 0 "install texlive-advdate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-advdate + CHECK_RESULT $? 0 0 "remove texlive-advdate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ae-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ae-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..85925415cf83755d4df702910695ae4e64314979 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ae-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ae-doc | grep -v \.src | grep texlive-ae-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ae-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ae-doc + CHECK_RESULT $? 0 0 "install texlive-ae-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ae-doc + CHECK_RESULT $? 0 0 "remove texlive-ae-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ae.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ae.sh new file mode 100644 index 0000000000000000000000000000000000000000..e438c47ecb20fac4f3af21a4b1cf0a2ea0ee6dce --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ae.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ae | grep -v \.src | grep texlive-ae + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ae" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ae + CHECK_RESULT $? 0 0 "install texlive-ae failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ae + CHECK_RESULT $? 0 0 "remove texlive-ae failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aecc-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aecc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..42cf630dd756515de83d4dff959c610e837935ac --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aecc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aecc-doc | grep -v \.src | grep texlive-aecc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aecc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aecc-doc + CHECK_RESULT $? 0 0 "install texlive-aecc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aecc-doc + CHECK_RESULT $? 0 0 "remove texlive-aecc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aecc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aecc.sh new file mode 100644 index 0000000000000000000000000000000000000000..818798c524f0e250459c861a7e0fde81232fbd2f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aecc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aecc | grep -v \.src | grep texlive-aecc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aecc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aecc + CHECK_RESULT $? 0 0 "install texlive-aecc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aecc + CHECK_RESULT $? 0 0 "remove texlive-aecc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aeguill-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aeguill-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6a408fb0f1a85310125d18e862534c4ba85a81f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aeguill-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aeguill-doc | grep -v \.src | grep texlive-aeguill-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aeguill-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aeguill-doc + CHECK_RESULT $? 0 0 "install texlive-aeguill-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aeguill-doc + CHECK_RESULT $? 0 0 "remove texlive-aeguill-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aeguill.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aeguill.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0b837738f98a4aae867648bc41bd9620a42f978 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aeguill.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aeguill | grep -v \.src | grep texlive-aeguill + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aeguill" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aeguill + CHECK_RESULT $? 0 0 "install texlive-aeguill failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aeguill + CHECK_RESULT $? 0 0 "remove texlive-aeguill failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afparticle-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afparticle-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac56976815c346ca04fd5f4481c778f136f7caec --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afparticle-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-afparticle-doc | grep -v \.src | grep texlive-afparticle-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-afparticle-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-afparticle-doc + CHECK_RESULT $? 0 0 "install texlive-afparticle-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-afparticle-doc + CHECK_RESULT $? 0 0 "remove texlive-afparticle-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afparticle.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afparticle.sh new file mode 100644 index 0000000000000000000000000000000000000000..23fea8fcd75c6e0da49c6bef2717c1ec1cfd8496 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afparticle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-afparticle | grep -v \.src | grep texlive-afparticle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-afparticle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-afparticle + CHECK_RESULT $? 0 0 "install texlive-afparticle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-afparticle + CHECK_RESULT $? 0 0 "remove texlive-afparticle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afthesis-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..64ca744a85bea0d3f2d6d9d6e4fdb21a433f1d71 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-afthesis-doc | grep -v \.src | grep texlive-afthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-afthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-afthesis-doc + CHECK_RESULT $? 0 0 "install texlive-afthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-afthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-afthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afthesis.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b36d8e5cf043d6db1bd3246ab5bba0760866886 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-afthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-afthesis | grep -v \.src | grep texlive-afthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-afthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-afthesis + CHECK_RESULT $? 0 0 "install texlive-afthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-afthesis + CHECK_RESULT $? 0 0 "remove texlive-afthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aguplus-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aguplus-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9662b8c3fc70b75ccb053efdd32c836352a501cc --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aguplus-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aguplus-doc | grep -v \.src | grep texlive-aguplus-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aguplus-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aguplus-doc + CHECK_RESULT $? 0 0 "install texlive-aguplus-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aguplus-doc + CHECK_RESULT $? 0 0 "remove texlive-aguplus-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aguplus.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aguplus.sh new file mode 100644 index 0000000000000000000000000000000000000000..e14adce5f5d72a801eb7bc2b10e0e2b955f04c3c --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aguplus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aguplus | grep -v \.src | grep texlive-aguplus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aguplus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aguplus + CHECK_RESULT $? 0 0 "install texlive-aguplus failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aguplus + CHECK_RESULT $? 0 0 "remove texlive-aguplus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aiaa-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aiaa-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6ec972adef759725247492d3b25750ad43547a2 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aiaa-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aiaa-doc | grep -v \.src | grep texlive-aiaa-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aiaa-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aiaa-doc + CHECK_RESULT $? 0 0 "install texlive-aiaa-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aiaa-doc + CHECK_RESULT $? 0 0 "remove texlive-aiaa-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aiaa.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aiaa.sh new file mode 100644 index 0000000000000000000000000000000000000000..a35223907a9d42de1779ab3942d2d4a910cf2736 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aiaa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aiaa | grep -v \.src | grep texlive-aiaa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aiaa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aiaa + CHECK_RESULT $? 0 0 "install texlive-aiaa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aiaa + CHECK_RESULT $? 0 0 "remove texlive-aiaa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aichej.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aichej.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea5513e7db2161a05414f167cd3c0afc7b388f11 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aichej.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aichej | grep -v \.src | grep texlive-aichej + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aichej" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aichej + CHECK_RESULT $? 0 0 "install texlive-aichej failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aichej + CHECK_RESULT $? 0 0 "remove texlive-aichej failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ajl.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ajl.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a758a11c11d7fe19cc10a7265fa4b1914afbd8c --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ajl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ajl | grep -v \.src | grep texlive-ajl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ajl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ajl + CHECK_RESULT $? 0 0 "install texlive-ajl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ajl + CHECK_RESULT $? 0 0 "remove texlive-ajl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akktex-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akktex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e98e3cb69b03ee6b061e1f0b8fbca673d117a0ca --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akktex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-akktex-doc | grep -v \.src | grep texlive-akktex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-akktex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-akktex-doc + CHECK_RESULT $? 0 0 "install texlive-akktex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-akktex-doc + CHECK_RESULT $? 0 0 "remove texlive-akktex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akktex.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akktex.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a89072090aeb162c12d75a53a591c75ec2778a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akktex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-akktex | grep -v \.src | grep texlive-akktex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-akktex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-akktex + CHECK_RESULT $? 0 0 "install texlive-akktex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-akktex + CHECK_RESULT $? 0 0 "remove texlive-akktex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akletter-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akletter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..195d71f87b8e460b9772277ca1b268d634a0f606 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akletter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-akletter-doc | grep -v \.src | grep texlive-akletter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-akletter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-akletter-doc + CHECK_RESULT $? 0 0 "install texlive-akletter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-akletter-doc + CHECK_RESULT $? 0 0 "remove texlive-akletter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akletter.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akletter.sh new file mode 100644 index 0000000000000000000000000000000000000000..37e123c1a7589937ae5dd3d17aba0bcf7d631df5 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-akletter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-akletter | grep -v \.src | grep texlive-akletter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-akletter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-akletter + CHECK_RESULT $? 0 0 "install texlive-akletter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-akletter + CHECK_RESULT $? 0 0 "remove texlive-akletter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alegreya-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alegreya-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8bdb8b4dc9f07dcdf09b4420821d53471a8e5f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alegreya-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alegreya-doc | grep -v \.src | grep texlive-alegreya-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alegreya-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alegreya-doc + CHECK_RESULT $? 0 0 "install texlive-alegreya-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alegreya-doc + CHECK_RESULT $? 0 0 "remove texlive-alegreya-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alegreya.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alegreya.sh new file mode 100644 index 0000000000000000000000000000000000000000..420534e2db8bcc23a576c4ae126222c01c9de912 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alegreya.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alegreya | grep -v \.src | grep texlive-alegreya + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alegreya" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alegreya + CHECK_RESULT $? 0 0 "install texlive-alegreya failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alegreya + CHECK_RESULT $? 0 0 "remove texlive-alegreya failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alertmessage-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alertmessage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..09b8ad94a9e7de8f8dd6338c4f9271f861d62c5c --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alertmessage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alertmessage-doc | grep -v \.src | grep texlive-alertmessage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alertmessage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alertmessage-doc + CHECK_RESULT $? 0 0 "install texlive-alertmessage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alertmessage-doc + CHECK_RESULT $? 0 0 "remove texlive-alertmessage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alertmessage.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alertmessage.sh new file mode 100644 index 0000000000000000000000000000000000000000..5536121072345293908520c5fb06314b4c792053 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alertmessage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alertmessage | grep -v \.src | grep texlive-alertmessage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alertmessage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alertmessage + CHECK_RESULT $? 0 0 "install texlive-alertmessage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alertmessage + CHECK_RESULT $? 0 0 "remove texlive-alertmessage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alg-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..448ec392630c466e073196abaea704d99d18df37 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alg-doc | grep -v \.src | grep texlive-alg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alg-doc + CHECK_RESULT $? 0 0 "install texlive-alg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alg-doc + CHECK_RESULT $? 0 0 "remove texlive-alg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alg.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alg.sh new file mode 100644 index 0000000000000000000000000000000000000000..36e84369bab93d7554517384da1cb8ca666e86c4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alg | grep -v \.src | grep texlive-alg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alg + CHECK_RESULT $? 0 0 "install texlive-alg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alg + CHECK_RESULT $? 0 0 "remove texlive-alg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algobox.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algobox.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d9f4b0be994b4a6eba6a58e8e8419cc67bc90ca --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algobox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-algobox | grep -v \.src | grep texlive-algobox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-algobox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-algobox + CHECK_RESULT $? 0 0 "install texlive-algobox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-algobox + CHECK_RESULT $? 0 0 "remove texlive-algobox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algolrevived.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algolrevived.sh new file mode 100644 index 0000000000000000000000000000000000000000..c080b5b21db543fc9ef7d860e53f186a592c8fd3 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algolrevived.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-algolrevived | grep -v \.src | grep texlive-algolrevived + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-algolrevived" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-algolrevived + CHECK_RESULT $? 0 0 "install texlive-algolrevived failed" + SLEEP_WAIT 1 + dnf remove -y texlive-algolrevived + CHECK_RESULT $? 0 0 "remove texlive-algolrevived failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithm2e-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithm2e-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0e1b946ceb5aec0875a689b65dafb57f6359146 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithm2e-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-algorithm2e-doc | grep -v \.src | grep texlive-algorithm2e-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-algorithm2e-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-algorithm2e-doc + CHECK_RESULT $? 0 0 "install texlive-algorithm2e-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-algorithm2e-doc + CHECK_RESULT $? 0 0 "remove texlive-algorithm2e-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithm2e.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithm2e.sh new file mode 100644 index 0000000000000000000000000000000000000000..4439b78e439bcdc71619913e1fa6694186abe3c4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithm2e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-algorithm2e | grep -v \.src | grep texlive-algorithm2e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-algorithm2e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-algorithm2e + CHECK_RESULT $? 0 0 "install texlive-algorithm2e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-algorithm2e + CHECK_RESULT $? 0 0 "remove texlive-algorithm2e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithmicx-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithmicx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac62245b04ebf1f9658497d665f0a92918fc42a0 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithmicx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-algorithmicx-doc | grep -v \.src | grep texlive-algorithmicx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-algorithmicx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-algorithmicx-doc + CHECK_RESULT $? 0 0 "install texlive-algorithmicx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-algorithmicx-doc + CHECK_RESULT $? 0 0 "remove texlive-algorithmicx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithmicx.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithmicx.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c281ec910b37fd331ce6e17fee96abb630c5260 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithmicx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-algorithmicx | grep -v \.src | grep texlive-algorithmicx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-algorithmicx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-algorithmicx + CHECK_RESULT $? 0 0 "install texlive-algorithmicx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-algorithmicx + CHECK_RESULT $? 0 0 "remove texlive-algorithmicx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithms-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithms-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0c3b92570263d503ae9ae78bc77389632330e8a --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithms-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-algorithms-doc | grep -v \.src | grep texlive-algorithms-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-algorithms-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-algorithms-doc + CHECK_RESULT $? 0 0 "install texlive-algorithms-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-algorithms-doc + CHECK_RESULT $? 0 0 "remove texlive-algorithms-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithms.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithms.sh new file mode 100644 index 0000000000000000000000000000000000000000..498258b7c21732b443de67de06d1d599bc658d1d --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-algorithms.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-algorithms | grep -v \.src | grep texlive-algorithms + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-algorithms" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-algorithms + CHECK_RESULT $? 0 0 "install texlive-algorithms failed" + SLEEP_WAIT 1 + dnf remove -y texlive-algorithms + CHECK_RESULT $? 0 0 "remove texlive-algorithms failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aligned-overset.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aligned-overset.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2e79750c0fad016436c0b1850a7e39544b2a598 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aligned-overset.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aligned-overset | grep -v \.src | grep texlive-aligned-overset + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aligned-overset" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aligned-overset + CHECK_RESULT $? 0 0 "install texlive-aligned-overset failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aligned-overset + CHECK_RESULT $? 0 0 "remove texlive-aligned-overset failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alkalami.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alkalami.sh new file mode 100644 index 0000000000000000000000000000000000000000..305cd06d321cb9a531d9cbf2f81a83e07b1c2748 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alkalami.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alkalami | grep -v \.src | grep texlive-alkalami + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alkalami" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alkalami + CHECK_RESULT $? 0 0 "install texlive-alkalami failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alkalami + CHECK_RESULT $? 0 0 "remove texlive-alkalami failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-allrunes-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-allrunes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7139b12a206541f0680334234d58d12000313e6e --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-allrunes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-allrunes-doc | grep -v \.src | grep texlive-allrunes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-allrunes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-allrunes-doc + CHECK_RESULT $? 0 0 "install texlive-allrunes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-allrunes-doc + CHECK_RESULT $? 0 0 "remove texlive-allrunes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-allrunes.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-allrunes.sh new file mode 100644 index 0000000000000000000000000000000000000000..e068fde7a5685228885bde45d9263bc2c7e33090 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-allrunes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-allrunes | grep -v \.src | grep texlive-allrunes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-allrunes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-allrunes + CHECK_RESULT $? 0 0 "install texlive-allrunes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-allrunes + CHECK_RESULT $? 0 0 "remove texlive-allrunes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-almfixed-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-almfixed-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b04bfeac4dd33a8070bb79ddc4ac1a9464852f7a --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-almfixed-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-almfixed-doc | grep -v \.src | grep texlive-almfixed-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-almfixed-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-almfixed-doc + CHECK_RESULT $? 0 0 "install texlive-almfixed-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-almfixed-doc + CHECK_RESULT $? 0 0 "remove texlive-almfixed-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-almfixed.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-almfixed.sh new file mode 100644 index 0000000000000000000000000000000000000000..2de9e9505595efddb56694d791cab7e25b4c50d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-almfixed.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-almfixed | grep -v \.src | grep texlive-almfixed + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-almfixed" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-almfixed + CHECK_RESULT $? 0 0 "install texlive-almfixed failed" + SLEEP_WAIT 1 + dnf remove -y texlive-almfixed + CHECK_RESULT $? 0 0 "remove texlive-almfixed failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alnumsec-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alnumsec-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bbba58824deb09c366d3bbba6485c34bd33669c --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alnumsec-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alnumsec-doc | grep -v \.src | grep texlive-alnumsec-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alnumsec-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alnumsec-doc + CHECK_RESULT $? 0 0 "install texlive-alnumsec-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alnumsec-doc + CHECK_RESULT $? 0 0 "remove texlive-alnumsec-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alnumsec.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alnumsec.sh new file mode 100644 index 0000000000000000000000000000000000000000..20d6ee080de4fd4b81dc5bcc6e4dd8e7d7a97f85 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alnumsec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alnumsec | grep -v \.src | grep texlive-alnumsec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alnumsec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alnumsec + CHECK_RESULT $? 0 0 "install texlive-alnumsec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alnumsec + CHECK_RESULT $? 0 0 "remove texlive-alnumsec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alterqcm-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alterqcm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..906cbe388b518a7d573b6c837db2325c19719171 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alterqcm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alterqcm-doc | grep -v \.src | grep texlive-alterqcm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alterqcm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alterqcm-doc + CHECK_RESULT $? 0 0 "install texlive-alterqcm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alterqcm-doc + CHECK_RESULT $? 0 0 "remove texlive-alterqcm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alterqcm.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alterqcm.sh new file mode 100644 index 0000000000000000000000000000000000000000..8533e8498a44c41c78584694cc92d59f004434fb --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-alterqcm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alterqcm | grep -v \.src | grep texlive-alterqcm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alterqcm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alterqcm + CHECK_RESULT $? 0 0 "install texlive-alterqcm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alterqcm + CHECK_RESULT $? 0 0 "remove texlive-alterqcm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-altfont-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-altfont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d14032b890e2da35ce8886c2fc3bd3c55b06542 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-altfont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-altfont-doc | grep -v \.src | grep texlive-altfont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-altfont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-altfont-doc + CHECK_RESULT $? 0 0 "install texlive-altfont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-altfont-doc + CHECK_RESULT $? 0 0 "remove texlive-altfont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-altfont.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-altfont.sh new file mode 100644 index 0000000000000000000000000000000000000000..bdff6b2700d312aa1a1c57b533d7b2595f9622f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-altfont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-altfont | grep -v \.src | grep texlive-altfont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-altfont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-altfont + CHECK_RESULT $? 0 0 "install texlive-altfont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-altfont + CHECK_RESULT $? 0 0 "remove texlive-altfont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ametsoc-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ametsoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa30a4b07d1b0dabf18ce62f9a8168db9e86acb9 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ametsoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ametsoc-doc | grep -v \.src | grep texlive-ametsoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ametsoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ametsoc-doc + CHECK_RESULT $? 0 0 "install texlive-ametsoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ametsoc-doc + CHECK_RESULT $? 0 0 "remove texlive-ametsoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ametsoc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ametsoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc4ab04832124f36767eff874a45400acf346b8e --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-ametsoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ametsoc | grep -v \.src | grep texlive-ametsoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ametsoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ametsoc + CHECK_RESULT $? 0 0 "install texlive-ametsoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ametsoc + CHECK_RESULT $? 0 0 "remove texlive-ametsoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amiri-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amiri-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d25acc6e44077ed7d11cd929c9730265055c9599 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amiri-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amiri-doc | grep -v \.src | grep texlive-amiri-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amiri-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amiri-doc + CHECK_RESULT $? 0 0 "install texlive-amiri-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amiri-doc + CHECK_RESULT $? 0 0 "remove texlive-amiri-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amiri.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amiri.sh new file mode 100644 index 0000000000000000000000000000000000000000..94695bcb2410451417118b788db59ef1f73db1b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amiri.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amiri | grep -v \.src | grep texlive-amiri + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amiri" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amiri + CHECK_RESULT $? 0 0 "install texlive-amiri failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amiri + CHECK_RESULT $? 0 0 "remove texlive-amiri failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsaddr-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsaddr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f390d181be64bf0878a8ff680a730e4a65eacf20 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsaddr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsaddr-doc | grep -v \.src | grep texlive-amsaddr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsaddr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsaddr-doc + CHECK_RESULT $? 0 0 "install texlive-amsaddr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsaddr-doc + CHECK_RESULT $? 0 0 "remove texlive-amsaddr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsaddr.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsaddr.sh new file mode 100644 index 0000000000000000000000000000000000000000..f60c69b1bb7ac46e3d1ae973df7cbb17d185d3dc --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsaddr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsaddr | grep -v \.src | grep texlive-amsaddr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsaddr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsaddr + CHECK_RESULT $? 0 0 "install texlive-amsaddr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsaddr + CHECK_RESULT $? 0 0 "remove texlive-amsaddr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amscls-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amscls-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bdd958c80907d413df17a8d0ee00757dd541be8 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amscls-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amscls-doc | grep -v \.src | grep texlive-amscls-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amscls-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amscls-doc + CHECK_RESULT $? 0 0 "install texlive-amscls-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amscls-doc + CHECK_RESULT $? 0 0 "remove texlive-amscls-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amscls.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amscls.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0ebc2825e5f65ad0e88812ebd6f3922617a6e0c --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amscls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amscls | grep -v \.src | grep texlive-amscls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amscls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amscls + CHECK_RESULT $? 0 0 "install texlive-amscls failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amscls + CHECK_RESULT $? 0 0 "remove texlive-amscls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsfonts-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsfonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fbdc601f1ef34efd08e92f9324feceb74db4660 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsfonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsfonts-doc | grep -v \.src | grep texlive-amsfonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsfonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsfonts-doc + CHECK_RESULT $? 0 0 "install texlive-amsfonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsfonts-doc + CHECK_RESULT $? 0 0 "remove texlive-amsfonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsfonts.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..b355baf477b5329fe7633afe1af23a0e5708845f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsfonts | grep -v \.src | grep texlive-amsfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsfonts + CHECK_RESULT $? 0 0 "install texlive-amsfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsfonts + CHECK_RESULT $? 0 0 "remove texlive-amsfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amslatex-primer-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amslatex-primer-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..801ae68d2269fa207292d9c267305568d76bd21b --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amslatex-primer-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amslatex-primer-doc | grep -v \.src | grep texlive-amslatex-primer-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amslatex-primer-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amslatex-primer-doc + CHECK_RESULT $? 0 0 "install texlive-amslatex-primer-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amslatex-primer-doc + CHECK_RESULT $? 0 0 "remove texlive-amslatex-primer-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsldoc-it-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsldoc-it-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b74b45b6c530656ba8a42dbab0d6204f23348122 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsldoc-it-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsldoc-it-doc | grep -v \.src | grep texlive-amsldoc-it-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsldoc-it-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsldoc-it-doc + CHECK_RESULT $? 0 0 "install texlive-amsldoc-it-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsldoc-it-doc + CHECK_RESULT $? 0 0 "remove texlive-amsldoc-it-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsldoc-vn-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsldoc-vn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f7ed7de63e262fffa92940a49f05fc2a614c92d --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsldoc-vn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsldoc-vn-doc | grep -v \.src | grep texlive-amsldoc-vn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsldoc-vn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsldoc-vn-doc + CHECK_RESULT $? 0 0 "install texlive-amsldoc-vn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsldoc-vn-doc + CHECK_RESULT $? 0 0 "remove texlive-amsldoc-vn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsmath-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsmath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..95b0be6e2fe2f1fb243fa4d896f496c271b31214 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsmath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsmath-doc | grep -v \.src | grep texlive-amsmath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsmath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsmath-doc + CHECK_RESULT $? 0 0 "install texlive-amsmath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsmath-doc + CHECK_RESULT $? 0 0 "remove texlive-amsmath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsmath-it-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsmath-it-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ba6c4012ad0eb65b4f04b40bd6660a3536fd6b7 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsmath-it-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsmath-it-doc | grep -v \.src | grep texlive-amsmath-it-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsmath-it-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsmath-it-doc + CHECK_RESULT $? 0 0 "install texlive-amsmath-it-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsmath-it-doc + CHECK_RESULT $? 0 0 "remove texlive-amsmath-it-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsmath.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b696deddce08739aae61914a169bcecca04a919 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsmath | grep -v \.src | grep texlive-amsmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsmath + CHECK_RESULT $? 0 0 "install texlive-amsmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsmath + CHECK_RESULT $? 0 0 "remove texlive-amsmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsrefs-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsrefs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1180c5eecf636a9a3b7437275cf958488478cf93 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsrefs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsrefs-doc | grep -v \.src | grep texlive-amsrefs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsrefs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsrefs-doc + CHECK_RESULT $? 0 0 "install texlive-amsrefs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsrefs-doc + CHECK_RESULT $? 0 0 "remove texlive-amsrefs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsrefs.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsrefs.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d045c78a634a457c198ead40d7c36c0e5d36a15 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsrefs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsrefs | grep -v \.src | grep texlive-amsrefs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsrefs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsrefs + CHECK_RESULT $? 0 0 "install texlive-amsrefs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsrefs + CHECK_RESULT $? 0 0 "remove texlive-amsrefs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsthdoc-it-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsthdoc-it-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..de511858787c3fd86cf60c7d5bf5b36eacf189b3 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-amsthdoc-it-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amsthdoc-it-doc | grep -v \.src | grep texlive-amsthdoc-it-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amsthdoc-it-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amsthdoc-it-doc + CHECK_RESULT $? 0 0 "install texlive-amsthdoc-it-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amsthdoc-it-doc + CHECK_RESULT $? 0 0 "remove texlive-amsthdoc-it-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-animate-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-animate-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cefbc603cd3a5264aaf0a410ee594a1c63450e2 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-animate-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-animate-doc | grep -v \.src | grep texlive-animate-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-animate-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-animate-doc + CHECK_RESULT $? 0 0 "install texlive-animate-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-animate-doc + CHECK_RESULT $? 0 0 "remove texlive-animate-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-animate.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-animate.sh new file mode 100644 index 0000000000000000000000000000000000000000..1aff83a7885e54212003ddcf9001015b8a8bc32a --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-animate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-animate | grep -v \.src | grep texlive-animate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-animate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-animate + CHECK_RESULT $? 0 0 "install texlive-animate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-animate + CHECK_RESULT $? 0 0 "remove texlive-animate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonchap-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonchap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b298631fb9202f63457ed69823ff48e9d57d8bbf --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonchap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-anonchap-doc | grep -v \.src | grep texlive-anonchap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-anonchap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-anonchap-doc + CHECK_RESULT $? 0 0 "install texlive-anonchap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-anonchap-doc + CHECK_RESULT $? 0 0 "remove texlive-anonchap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonchap.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonchap.sh new file mode 100644 index 0000000000000000000000000000000000000000..d23703d6b5f13b40834b1a698e5cbf508bbf2d3a --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonchap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-anonchap | grep -v \.src | grep texlive-anonchap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-anonchap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-anonchap + CHECK_RESULT $? 0 0 "install texlive-anonchap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-anonchap + CHECK_RESULT $? 0 0 "remove texlive-anonchap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonymouspro-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonymouspro-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7fe1f8cfa2532dbccfe938e68dfff268ae5da34 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonymouspro-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-anonymouspro-doc | grep -v \.src | grep texlive-anonymouspro-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-anonymouspro-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-anonymouspro-doc + CHECK_RESULT $? 0 0 "install texlive-anonymouspro-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-anonymouspro-doc + CHECK_RESULT $? 0 0 "remove texlive-anonymouspro-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonymouspro.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonymouspro.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed0ed6c2283c642624cc5c84a0a5987e1f29d8ce --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anonymouspro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-anonymouspro | grep -v \.src | grep texlive-anonymouspro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-anonymouspro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-anonymouspro + CHECK_RESULT $? 0 0 "install texlive-anonymouspro failed" + SLEEP_WAIT 1 + dnf remove -y texlive-anonymouspro + CHECK_RESULT $? 0 0 "remove texlive-anonymouspro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-answers-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-answers-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd9d7180ee3c313d26d0d6c553023844611d0e70 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-answers-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-answers-doc | grep -v \.src | grep texlive-answers-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-answers-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-answers-doc + CHECK_RESULT $? 0 0 "install texlive-answers-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-answers-doc + CHECK_RESULT $? 0 0 "remove texlive-answers-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-answers.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-answers.sh new file mode 100644 index 0000000000000000000000000000000000000000..67e43bd87a201a1b8bdfd07dd220e991ebddafed --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-answers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-answers | grep -v \.src | grep texlive-answers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-answers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-answers + CHECK_RESULT $? 0 0 "install texlive-answers failed" + SLEEP_WAIT 1 + dnf remove -y texlive-answers + CHECK_RESULT $? 0 0 "remove texlive-answers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antiqua-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antiqua-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..473a7db120a031c1eed55df5410c2e7f67eb553f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antiqua-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-antiqua-doc | grep -v \.src | grep texlive-antiqua-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-antiqua-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-antiqua-doc + CHECK_RESULT $? 0 0 "install texlive-antiqua-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-antiqua-doc + CHECK_RESULT $? 0 0 "remove texlive-antiqua-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antiqua.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antiqua.sh new file mode 100644 index 0000000000000000000000000000000000000000..f62d981474205cacacba73bf2d923e63a8280b0c --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antiqua.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-antiqua | grep -v \.src | grep texlive-antiqua + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-antiqua" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-antiqua + CHECK_RESULT $? 0 0 "install texlive-antiqua failed" + SLEEP_WAIT 1 + dnf remove -y texlive-antiqua + CHECK_RESULT $? 0 0 "remove texlive-antiqua failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antomega-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antomega-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f61a824eef27837e9d3ce32eed4253286bb18d7d --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antomega-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-antomega-doc | grep -v \.src | grep texlive-antomega-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-antomega-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-antomega-doc + CHECK_RESULT $? 0 0 "install texlive-antomega-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-antomega-doc + CHECK_RESULT $? 0 0 "remove texlive-antomega-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antomega.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antomega.sh new file mode 100644 index 0000000000000000000000000000000000000000..19557eddad89d8c9d99cf2697f89491e94bead4f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antomega.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-antomega | grep -v \.src | grep texlive-antomega + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-antomega" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-antomega + CHECK_RESULT $? 0 0 "install texlive-antomega failed" + SLEEP_WAIT 1 + dnf remove -y texlive-antomega + CHECK_RESULT $? 0 0 "remove texlive-antomega failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antt-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6a79a298c9c1059698ad800836ef80bbe110384 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-antt-doc | grep -v \.src | grep texlive-antt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-antt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-antt-doc + CHECK_RESULT $? 0 0 "install texlive-antt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-antt-doc + CHECK_RESULT $? 0 0 "remove texlive-antt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antt.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antt.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ec25fd8ac766a850246c160d379f87a380f6ddb --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-antt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-antt | grep -v \.src | grep texlive-antt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-antt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-antt + CHECK_RESULT $? 0 0 "install texlive-antt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-antt + CHECK_RESULT $? 0 0 "remove texlive-antt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anufinalexam-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anufinalexam-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fde60ae4d812f5e117e081d651b4688b3df8f3e --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anufinalexam-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-anufinalexam-doc | grep -v \.src | grep texlive-anufinalexam-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-anufinalexam-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-anufinalexam-doc + CHECK_RESULT $? 0 0 "install texlive-anufinalexam-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-anufinalexam-doc + CHECK_RESULT $? 0 0 "remove texlive-anufinalexam-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anyfontsize-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anyfontsize-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a528261d7b0cd004c37074768f0741644898b93 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anyfontsize-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-anyfontsize-doc | grep -v \.src | grep texlive-anyfontsize-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-anyfontsize-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-anyfontsize-doc + CHECK_RESULT $? 0 0 "install texlive-anyfontsize-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-anyfontsize-doc + CHECK_RESULT $? 0 0 "remove texlive-anyfontsize-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anyfontsize.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anyfontsize.sh new file mode 100644 index 0000000000000000000000000000000000000000..c598a8da4239bd0b28ad2d7f2e2cf5b77f8010f6 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anyfontsize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-anyfontsize | grep -v \.src | grep texlive-anyfontsize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-anyfontsize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-anyfontsize + CHECK_RESULT $? 0 0 "install texlive-anyfontsize failed" + SLEEP_WAIT 1 + dnf remove -y texlive-anyfontsize + CHECK_RESULT $? 0 0 "remove texlive-anyfontsize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anysize-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anysize-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c09beff73e69364d8b203a74757a7ed9eb0ec4d --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anysize-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-anysize-doc | grep -v \.src | grep texlive-anysize-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-anysize-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-anysize-doc + CHECK_RESULT $? 0 0 "install texlive-anysize-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-anysize-doc + CHECK_RESULT $? 0 0 "remove texlive-anysize-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anysize.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anysize.sh new file mode 100644 index 0000000000000000000000000000000000000000..6522bb0591679c7113493c3c581ca0388d95a8a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-anysize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-anysize | grep -v \.src | grep texlive-anysize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-anysize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-anysize + CHECK_RESULT $? 0 0 "install texlive-anysize failed" + SLEEP_WAIT 1 + dnf remove -y texlive-anysize + CHECK_RESULT $? 0 0 "remove texlive-anysize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aobs-tikz-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aobs-tikz-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dbce40e42e65ac8a5c5ae903d1daf291537642e --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aobs-tikz-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aobs-tikz-doc | grep -v \.src | grep texlive-aobs-tikz-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aobs-tikz-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aobs-tikz-doc + CHECK_RESULT $? 0 0 "install texlive-aobs-tikz-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aobs-tikz-doc + CHECK_RESULT $? 0 0 "remove texlive-aobs-tikz-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aobs-tikz.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aobs-tikz.sh new file mode 100644 index 0000000000000000000000000000000000000000..6484bf7c92de9238dd7cbab9cb20d151c58534fc --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aobs-tikz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aobs-tikz | grep -v \.src | grep texlive-aobs-tikz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aobs-tikz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aobs-tikz + CHECK_RESULT $? 0 0 "install texlive-aobs-tikz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aobs-tikz + CHECK_RESULT $? 0 0 "remove texlive-aobs-tikz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aomart-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aomart-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2414e7d0f25de86df464eec79e8c9bee9178d541 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aomart-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aomart-doc | grep -v \.src | grep texlive-aomart-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aomart-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aomart-doc + CHECK_RESULT $? 0 0 "install texlive-aomart-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aomart-doc + CHECK_RESULT $? 0 0 "remove texlive-aomart-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aomart.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aomart.sh new file mode 100644 index 0000000000000000000000000000000000000000..96061af6f6c9e2d86c5d401e449fc3ae639d9ff7 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aomart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aomart | grep -v \.src | grep texlive-aomart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aomart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aomart + CHECK_RESULT $? 0 0 "install texlive-aomart failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aomart + CHECK_RESULT $? 0 0 "remove texlive-aomart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ed18351d51c03dc7d5a9a21a4220698d2c0d952 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apa-doc | grep -v \.src | grep texlive-apa-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apa-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apa-doc + CHECK_RESULT $? 0 0 "install texlive-apa-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apa-doc + CHECK_RESULT $? 0 0 "remove texlive-apa-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa.sh new file mode 100644 index 0000000000000000000000000000000000000000..905e6c0d9168045e7dfca9b956fb6ab57b8c0ce8 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apa | grep -v \.src | grep texlive-apa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apa + CHECK_RESULT $? 0 0 "install texlive-apa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apa + CHECK_RESULT $? 0 0 "remove texlive-apa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd0d1f55af7175e8a13c70935fb8576c34c77589 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apa6-doc | grep -v \.src | grep texlive-apa6-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apa6-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apa6-doc + CHECK_RESULT $? 0 0 "install texlive-apa6-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apa6-doc + CHECK_RESULT $? 0 0 "remove texlive-apa6-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad63f6dde71bde0ccca9e9a5b57052510175ac72 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apa6 | grep -v \.src | grep texlive-apa6 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apa6" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apa6 + CHECK_RESULT $? 0 0 "install texlive-apa6 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apa6 + CHECK_RESULT $? 0 0 "remove texlive-apa6 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6e-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6e-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4e5f6602e058a0bd88b2163a7fdbabd95b34eed --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6e-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apa6e-doc | grep -v \.src | grep texlive-apa6e-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apa6e-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apa6e-doc + CHECK_RESULT $? 0 0 "install texlive-apa6e-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apa6e-doc + CHECK_RESULT $? 0 0 "remove texlive-apa6e-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6e.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6e.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa1d151e2b0729eb9b5ac5f53a2665a9093eea70 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apa6e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apa6e | grep -v \.src | grep texlive-apa6e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apa6e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apa6e + CHECK_RESULT $? 0 0 "install texlive-apa6e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apa6e + CHECK_RESULT $? 0 0 "remove texlive-apa6e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apacite-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apacite-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..763b3cb6e1cd41afb77504d34a9ba704b358493f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apacite-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apacite-doc | grep -v \.src | grep texlive-apacite-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apacite-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apacite-doc + CHECK_RESULT $? 0 0 "install texlive-apacite-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apacite-doc + CHECK_RESULT $? 0 0 "remove texlive-apacite-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apacite.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apacite.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e4a200332af97b30a25a5a3a4a3cc714021802a --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apacite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apacite | grep -v \.src | grep texlive-apacite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apacite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apacite + CHECK_RESULT $? 0 0 "install texlive-apacite failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apacite + CHECK_RESULT $? 0 0 "remove texlive-apacite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apalike-german.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apalike-german.sh new file mode 100644 index 0000000000000000000000000000000000000000..4afb9e7408ce89054cd1497ded496737663827d5 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apalike-german.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apalike-german | grep -v \.src | grep texlive-apalike-german + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apalike-german" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apalike-german + CHECK_RESULT $? 0 0 "install texlive-apalike-german failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apalike-german + CHECK_RESULT $? 0 0 "remove texlive-apalike-german failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apalike2.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apalike2.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f05c3ecd68b10e3eb04de0f14cd60587164f3d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apalike2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apalike2 | grep -v \.src | grep texlive-apalike2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apalike2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apalike2 + CHECK_RESULT $? 0 0 "install texlive-apalike2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apalike2 + CHECK_RESULT $? 0 0 "remove texlive-apalike2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apnum-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apnum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ce273f666b4d518cfc04d24f2ed6f837ebcdbe4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apnum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apnum-doc | grep -v \.src | grep texlive-apnum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apnum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apnum-doc + CHECK_RESULT $? 0 0 "install texlive-apnum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apnum-doc + CHECK_RESULT $? 0 0 "remove texlive-apnum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apnum.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apnum.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbab4078b5276e211bac1bbb5a140b9751c488e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apnum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apnum | grep -v \.src | grep texlive-apnum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apnum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apnum + CHECK_RESULT $? 0 0 "install texlive-apnum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apnum + CHECK_RESULT $? 0 0 "remove texlive-apnum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendix-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendix-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbd128c1a8138508ab3f337c0e89341b6dc1e376 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendix-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-appendix-doc | grep -v \.src | grep texlive-appendix-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-appendix-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-appendix-doc + CHECK_RESULT $? 0 0 "install texlive-appendix-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-appendix-doc + CHECK_RESULT $? 0 0 "remove texlive-appendix-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendix.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendix.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5979aa0f6e4420a3b49c34b933ae13c2f29a229 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-appendix | grep -v \.src | grep texlive-appendix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-appendix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-appendix + CHECK_RESULT $? 0 0 "install texlive-appendix failed" + SLEEP_WAIT 1 + dnf remove -y texlive-appendix + CHECK_RESULT $? 0 0 "remove texlive-appendix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendixnumberbeamer-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendixnumberbeamer-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..47b313324babc9c98d9644a6528e9bee57bec06b --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendixnumberbeamer-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-appendixnumberbeamer-doc | grep -v \.src | grep texlive-appendixnumberbeamer-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-appendixnumberbeamer-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-appendixnumberbeamer-doc + CHECK_RESULT $? 0 0 "install texlive-appendixnumberbeamer-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-appendixnumberbeamer-doc + CHECK_RESULT $? 0 0 "remove texlive-appendixnumberbeamer-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendixnumberbeamer.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendixnumberbeamer.sh new file mode 100644 index 0000000000000000000000000000000000000000..481c19496d82d8f06eaa2ea51fb0cc285d29ed7d --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-appendixnumberbeamer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-appendixnumberbeamer | grep -v \.src | grep texlive-appendixnumberbeamer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-appendixnumberbeamer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-appendixnumberbeamer + CHECK_RESULT $? 0 0 "install texlive-appendixnumberbeamer failed" + SLEEP_WAIT 1 + dnf remove -y texlive-appendixnumberbeamer + CHECK_RESULT $? 0 0 "remove texlive-appendixnumberbeamer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apprends-latex-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apprends-latex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..826c0b54376f2638ea764e488ff8dbf4f553a68a --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apprends-latex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apprends-latex-doc | grep -v \.src | grep texlive-apprends-latex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apprends-latex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apprends-latex-doc + CHECK_RESULT $? 0 0 "install texlive-apprends-latex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apprends-latex-doc + CHECK_RESULT $? 0 0 "remove texlive-apprends-latex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apptools-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apptools-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..32664af4bbbdf681066087524f51aa1b5fd9a55d --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apptools-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apptools-doc | grep -v \.src | grep texlive-apptools-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apptools-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apptools-doc + CHECK_RESULT $? 0 0 "install texlive-apptools-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apptools-doc + CHECK_RESULT $? 0 0 "remove texlive-apptools-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apptools.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apptools.sh new file mode 100644 index 0000000000000000000000000000000000000000..eec167b46c1846e04981372016eb66f383324578 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apptools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apptools | grep -v \.src | grep texlive-apptools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apptools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apptools + CHECK_RESULT $? 0 0 "install texlive-apptools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apptools + CHECK_RESULT $? 0 0 "remove texlive-apptools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apxproof.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apxproof.sh new file mode 100644 index 0000000000000000000000000000000000000000..6231cbabca3c31641d5759fbb555da60c1ed61dc --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-apxproof.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apxproof | grep -v \.src | grep texlive-apxproof + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apxproof" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apxproof + CHECK_RESULT $? 0 0 "install texlive-apxproof failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apxproof + CHECK_RESULT $? 0 0 "remove texlive-apxproof failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi-add-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi-add-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7721d9344105f68eba2f0250240fab0726bda05b --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi-add-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabi-add-doc | grep -v \.src | grep texlive-arabi-add-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabi-add-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabi-add-doc + CHECK_RESULT $? 0 0 "install texlive-arabi-add-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabi-add-doc + CHECK_RESULT $? 0 0 "remove texlive-arabi-add-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi-add.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi-add.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d20f6a5d8bad804da1cef0a7d15cf5d2d3cc2b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi-add.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabi-add | grep -v \.src | grep texlive-arabi-add + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabi-add" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabi-add + CHECK_RESULT $? 0 0 "install texlive-arabi-add failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabi-add + CHECK_RESULT $? 0 0 "remove texlive-arabi-add failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfa7fb4afa9c8b9a490928135cb6514a67d67a86 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabi-doc | grep -v \.src | grep texlive-arabi-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabi-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabi-doc + CHECK_RESULT $? 0 0 "install texlive-arabi-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabi-doc + CHECK_RESULT $? 0 0 "remove texlive-arabi-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi.sh new file mode 100644 index 0000000000000000000000000000000000000000..cae0f29af99ed5a2a059767929785ab2a5f9c115 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabi | grep -v \.src | grep texlive-arabi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabi + CHECK_RESULT $? 0 0 "install texlive-arabi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabi + CHECK_RESULT $? 0 0 "remove texlive-arabi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabluatex-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabluatex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bce85d417f9dc03e6a0e4fd018922eebb456fba --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabluatex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabluatex-doc | grep -v \.src | grep texlive-arabluatex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabluatex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabluatex-doc + CHECK_RESULT $? 0 0 "install texlive-arabluatex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabluatex-doc + CHECK_RESULT $? 0 0 "remove texlive-arabluatex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabluatex.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabluatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..e67cd640d9681196ea07e223ad440602e33cb6a3 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabluatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabluatex | grep -v \.src | grep texlive-arabluatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabluatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabluatex + CHECK_RESULT $? 0 0 "install texlive-arabluatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabluatex + CHECK_RESULT $? 0 0 "remove texlive-arabluatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabtex-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabtex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f635f3e13065a1d4b3b0002d740faeb127ff34f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabtex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabtex-doc | grep -v \.src | grep texlive-arabtex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabtex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabtex-doc + CHECK_RESULT $? 0 0 "install texlive-arabtex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabtex-doc + CHECK_RESULT $? 0 0 "remove texlive-arabtex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabtex.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabtex.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee1818834ef87c19d5f097ae6e1f73fb61040739 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabtex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabtex | grep -v \.src | grep texlive-arabtex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabtex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabtex + CHECK_RESULT $? 0 0 "install texlive-arabtex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabtex + CHECK_RESULT $? 0 0 "remove texlive-arabtex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabxetex-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabxetex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f61ce7c54dbf9c0d30c03346549566c745700cc --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabxetex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabxetex-doc | grep -v \.src | grep texlive-arabxetex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabxetex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabxetex-doc + CHECK_RESULT $? 0 0 "install texlive-arabxetex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabxetex-doc + CHECK_RESULT $? 0 0 "remove texlive-arabxetex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabxetex.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabxetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad8e9513034fec459aa3507c9f5f641a3d405e79 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arabxetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabxetex | grep -v \.src | grep texlive-arabxetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabxetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabxetex + CHECK_RESULT $? 0 0 "install texlive-arabxetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabxetex + CHECK_RESULT $? 0 0 "remove texlive-arabxetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aramaic-serto-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aramaic-serto-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6b11dfb66baff603aea594bd9d12e3129d1843a --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aramaic-serto-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aramaic-serto-doc | grep -v \.src | grep texlive-aramaic-serto-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aramaic-serto-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aramaic-serto-doc + CHECK_RESULT $? 0 0 "install texlive-aramaic-serto-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aramaic-serto-doc + CHECK_RESULT $? 0 0 "remove texlive-aramaic-serto-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aramaic-serto.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aramaic-serto.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a6f68c5524889c5d056feb225575af42e8e6b78 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-aramaic-serto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aramaic-serto | grep -v \.src | grep texlive-aramaic-serto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aramaic-serto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aramaic-serto + CHECK_RESULT $? 0 0 "install texlive-aramaic-serto failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aramaic-serto + CHECK_RESULT $? 0 0 "remove texlive-aramaic-serto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaeologie-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaeologie-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..848b5e42c2a7a7e4ceef67124ede9d79bb0c69e5 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaeologie-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-archaeologie-doc | grep -v \.src | grep texlive-archaeologie-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-archaeologie-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-archaeologie-doc + CHECK_RESULT $? 0 0 "install texlive-archaeologie-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-archaeologie-doc + CHECK_RESULT $? 0 0 "remove texlive-archaeologie-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaeologie.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaeologie.sh new file mode 100644 index 0000000000000000000000000000000000000000..f458acf1ef0bde6817b935da87652cbe37199df7 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaeologie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-archaeologie | grep -v \.src | grep texlive-archaeologie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-archaeologie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-archaeologie + CHECK_RESULT $? 0 0 "install texlive-archaeologie failed" + SLEEP_WAIT 1 + dnf remove -y texlive-archaeologie + CHECK_RESULT $? 0 0 "remove texlive-archaeologie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaic-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2fbbc3064996b7217b987d4aa52ae78e9e6c0f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-archaic-doc | grep -v \.src | grep texlive-archaic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-archaic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-archaic-doc + CHECK_RESULT $? 0 0 "install texlive-archaic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-archaic-doc + CHECK_RESULT $? 0 0 "remove texlive-archaic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaic.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaic.sh new file mode 100644 index 0000000000000000000000000000000000000000..80bfe0e6333279757878de3f2dd9357947356080 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-archaic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-archaic | grep -v \.src | grep texlive-archaic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-archaic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-archaic + CHECK_RESULT $? 0 0 "install texlive-archaic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-archaic + CHECK_RESULT $? 0 0 "remove texlive-archaic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arcs-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arcs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..64e130795343733b82d6d4ca6ef17fb3fb84a18f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arcs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arcs-doc | grep -v \.src | grep texlive-arcs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arcs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arcs-doc + CHECK_RESULT $? 0 0 "install texlive-arcs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arcs-doc + CHECK_RESULT $? 0 0 "remove texlive-arcs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arcs.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arcs.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe63f546a5f8b33e9aaec26c4fd54f2291ae241f --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arcs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arcs | grep -v \.src | grep texlive-arcs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arcs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arcs + CHECK_RESULT $? 0 0 "install texlive-arcs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arcs + CHECK_RESULT $? 0 0 "remove texlive-arcs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arev-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arev-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..59cfc8180b4929b0e4ccd605e1bd37370c67e175 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arev-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arev-doc | grep -v \.src | grep texlive-arev-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arev-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arev-doc + CHECK_RESULT $? 0 0 "install texlive-arev-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arev-doc + CHECK_RESULT $? 0 0 "remove texlive-arev-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arev.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arev.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d767510febacd6b0dd4e9026fb2b6053cf2ae57 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arev | grep -v \.src | grep texlive-arev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arev + CHECK_RESULT $? 0 0 "install texlive-arev failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arev + CHECK_RESULT $? 0 0 "remove texlive-arev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arimo.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arimo.sh new file mode 100644 index 0000000000000000000000000000000000000000..eac6d6db6e8e05df4bbffeabadd4c2130dfd2c4e --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-arimo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arimo | grep -v \.src | grep texlive-arimo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arimo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arimo + CHECK_RESULT $? 0 0 "install texlive-arimo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arimo + CHECK_RESULT $? 0 0 "remove texlive-arimo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-armtex-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-armtex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d06cdf06056654ce6f2a13548717aeec45da93d5 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-armtex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-armtex-doc | grep -v \.src | grep texlive-armtex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-armtex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-armtex-doc + CHECK_RESULT $? 0 0 "install texlive-armtex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-armtex-doc + CHECK_RESULT $? 0 0 "remove texlive-armtex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-armtex.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-armtex.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5623714f99b50e2ebfbc4b6417778be9f02e02d --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-armtex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-armtex | grep -v \.src | grep texlive-armtex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-armtex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-armtex + CHECK_RESULT $? 0 0 "install texlive-armtex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-armtex + CHECK_RESULT $? 0 0 "remove texlive-armtex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-asana-math-doc.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-asana-math-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..78de604dea3bdc79d6298f11152b32b4e780e83c --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-asana-math-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-asana-math-doc | grep -v \.src | grep texlive-asana-math-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-asana-math-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-asana-math-doc + CHECK_RESULT $? 0 0 "install texlive-asana-math-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-asana-math-doc + CHECK_RESULT $? 0 0 "remove texlive-asana-math-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-asana-math.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-asana-math.sh new file mode 100644 index 0000000000000000000000000000000000000000..13b332a622930957c3f9f960a7d061e87ec7d898 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-asana-math.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-asana-math | grep -v \.src | grep texlive-asana-math + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-asana-math" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-asana-math + CHECK_RESULT $? 0 0 "install texlive-asana-math failed" + SLEEP_WAIT 1 + dnf remove -y texlive-asana-math + CHECK_RESULT $? 0 0 "remove texlive-asana-math failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-split-a.sh b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-split-a.sh new file mode 100644 index 0000000000000000000000000000000000000000..9be8798391667adfd37bf41ccc1c7a43f6c161a4 --- /dev/null +++ b/testcases/cli-test/texlive-split-a/oe_test_texlive-split-a_install_and_remove_texlive-split-a.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-a | grep -v \.src | grep texlive-split-a + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-a" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-a + CHECK_RESULT $? 0 0 "install texlive-split-a failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-a + CHECK_RESULT $? 0 0 "remove texlive-split-a failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blacklettert1-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blacklettert1-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..97c79e4877725b522712c052fec8ea886a54b865 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blacklettert1-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blacklettert1-doc | grep -v \.src | grep texlive-blacklettert1-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blacklettert1-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blacklettert1-doc + CHECK_RESULT $? 0 0 "install texlive-blacklettert1-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blacklettert1-doc + CHECK_RESULT $? 0 0 "remove texlive-blacklettert1-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blacklettert1.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blacklettert1.sh new file mode 100644 index 0000000000000000000000000000000000000000..053e7f631fbf34c09e2b9d06691b644a8e1dbfcc --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blacklettert1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blacklettert1 | grep -v \.src | grep texlive-blacklettert1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blacklettert1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blacklettert1 + CHECK_RESULT $? 0 0 "install texlive-blacklettert1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blacklettert1 + CHECK_RESULT $? 0 0 "remove texlive-blacklettert1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blindtext-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blindtext-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad3d7e531184d664e01ee84e6fd3c84b556a9eb0 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blindtext-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blindtext-doc | grep -v \.src | grep texlive-blindtext-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blindtext-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blindtext-doc + CHECK_RESULT $? 0 0 "install texlive-blindtext-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blindtext-doc + CHECK_RESULT $? 0 0 "remove texlive-blindtext-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blindtext.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blindtext.sh new file mode 100644 index 0000000000000000000000000000000000000000..41896395882b91a517c0502820198ae80a7a8c1a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blindtext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blindtext | grep -v \.src | grep texlive-blindtext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blindtext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blindtext + CHECK_RESULT $? 0 0 "install texlive-blindtext failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blindtext + CHECK_RESULT $? 0 0 "remove texlive-blindtext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blkarray-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blkarray-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdefcc8ad7798c23d607afe8abc98bf9ca7e4247 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blkarray-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blkarray-doc | grep -v \.src | grep texlive-blkarray-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blkarray-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blkarray-doc + CHECK_RESULT $? 0 0 "install texlive-blkarray-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blkarray-doc + CHECK_RESULT $? 0 0 "remove texlive-blkarray-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blkarray.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blkarray.sh new file mode 100644 index 0000000000000000000000000000000000000000..c54d54f12c7bec1a5cd0749cb429bb02e3a0c4e3 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blkarray.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blkarray | grep -v \.src | grep texlive-blkarray + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blkarray" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blkarray + CHECK_RESULT $? 0 0 "install texlive-blkarray failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blkarray + CHECK_RESULT $? 0 0 "remove texlive-blkarray failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blochsphere-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blochsphere-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff33fb7942454e3c8547b8ab933dc3cf31005ceb --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blochsphere-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blochsphere-doc | grep -v \.src | grep texlive-blochsphere-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blochsphere-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blochsphere-doc + CHECK_RESULT $? 0 0 "install texlive-blochsphere-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blochsphere-doc + CHECK_RESULT $? 0 0 "remove texlive-blochsphere-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blochsphere.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blochsphere.sh new file mode 100644 index 0000000000000000000000000000000000000000..13bdc080f9c1bbc96bf73911d0258f6484331f58 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blochsphere.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blochsphere | grep -v \.src | grep texlive-blochsphere + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blochsphere" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blochsphere + CHECK_RESULT $? 0 0 "install texlive-blochsphere failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blochsphere + CHECK_RESULT $? 0 0 "remove texlive-blochsphere failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-block-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-block-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4067647c3e936e5c5554ecee333ba61607dc1f86 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-block-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-block-doc | grep -v \.src | grep texlive-block-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-block-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-block-doc + CHECK_RESULT $? 0 0 "install texlive-block-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-block-doc + CHECK_RESULT $? 0 0 "remove texlive-block-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-block.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-block.sh new file mode 100644 index 0000000000000000000000000000000000000000..d72940ad62ccc29e2e2db10f07bd11851c98aeed --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-block.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-block | grep -v \.src | grep texlive-block + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-block" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-block + CHECK_RESULT $? 0 0 "install texlive-block failed" + SLEEP_WAIT 1 + dnf remove -y texlive-block + CHECK_RESULT $? 0 0 "remove texlive-block failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blockdraw_mp-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blockdraw_mp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..abe1ddaa1fcc09b9cd5e132e39606048e3f1ba3e --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blockdraw_mp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blockdraw_mp-doc | grep -v \.src | grep texlive-blockdraw_mp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blockdraw_mp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blockdraw_mp-doc + CHECK_RESULT $? 0 0 "install texlive-blockdraw_mp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blockdraw_mp-doc + CHECK_RESULT $? 0 0 "remove texlive-blockdraw_mp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blockdraw_mp.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blockdraw_mp.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2e75558c227c77092fdbf80a193c6969e66164e --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blockdraw_mp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blockdraw_mp | grep -v \.src | grep texlive-blockdraw_mp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blockdraw_mp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blockdraw_mp + CHECK_RESULT $? 0 0 "install texlive-blockdraw_mp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blockdraw_mp + CHECK_RESULT $? 0 0 "remove texlive-blockdraw_mp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bloques-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bloques-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6555c6a3d9f4d4239845fa500b8acbb87d8f96fa --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bloques-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bloques-doc | grep -v \.src | grep texlive-bloques-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bloques-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bloques-doc + CHECK_RESULT $? 0 0 "install texlive-bloques-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bloques-doc + CHECK_RESULT $? 0 0 "remove texlive-bloques-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bloques.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bloques.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d874825813aa0080dec30d9bad62d3feeb92746 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bloques.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bloques | grep -v \.src | grep texlive-bloques + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bloques" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bloques + CHECK_RESULT $? 0 0 "install texlive-bloques failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bloques + CHECK_RESULT $? 0 0 "remove texlive-bloques failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blox-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdf455b0db73c35227847a687b6c389baaffdef3 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blox-doc | grep -v \.src | grep texlive-blox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blox-doc + CHECK_RESULT $? 0 0 "install texlive-blox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blox-doc + CHECK_RESULT $? 0 0 "remove texlive-blox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blox.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blox.sh new file mode 100644 index 0000000000000000000000000000000000000000..17d24d7b36ea7e9a23a352371b07bd24550f7dcb --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-blox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blox | grep -v \.src | grep texlive-blox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blox + CHECK_RESULT $? 0 0 "install texlive-blox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blox + CHECK_RESULT $? 0 0 "remove texlive-blox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bnumexpr-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bnumexpr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ba368666c67e002511a9abee4cbc447c11a6b5e --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bnumexpr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bnumexpr-doc | grep -v \.src | grep texlive-bnumexpr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bnumexpr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bnumexpr-doc + CHECK_RESULT $? 0 0 "install texlive-bnumexpr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bnumexpr-doc + CHECK_RESULT $? 0 0 "remove texlive-bnumexpr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bnumexpr.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bnumexpr.sh new file mode 100644 index 0000000000000000000000000000000000000000..75200bdb3ece0771dda167eabc02d2f60c22f663 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bnumexpr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bnumexpr | grep -v \.src | grep texlive-bnumexpr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bnumexpr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bnumexpr + CHECK_RESULT $? 0 0 "install texlive-bnumexpr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bnumexpr + CHECK_RESULT $? 0 0 "remove texlive-bnumexpr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bodegraph-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bodegraph-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f008ac139fe5b4cc55654aa3355a93b464b11ea --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bodegraph-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bodegraph-doc | grep -v \.src | grep texlive-bodegraph-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bodegraph-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bodegraph-doc + CHECK_RESULT $? 0 0 "install texlive-bodegraph-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bodegraph-doc + CHECK_RESULT $? 0 0 "remove texlive-bodegraph-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bodegraph.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bodegraph.sh new file mode 100644 index 0000000000000000000000000000000000000000..35037c09719bed40df9ff3251aec247225fe1f93 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bodegraph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bodegraph | grep -v \.src | grep texlive-bodegraph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bodegraph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bodegraph + CHECK_RESULT $? 0 0 "install texlive-bodegraph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bodegraph + CHECK_RESULT $? 0 0 "remove texlive-bodegraph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bohr-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bohr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..27afdf1def6f036d1c84b5b206f91498d1055086 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bohr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bohr-doc | grep -v \.src | grep texlive-bohr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bohr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bohr-doc + CHECK_RESULT $? 0 0 "install texlive-bohr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bohr-doc + CHECK_RESULT $? 0 0 "remove texlive-bohr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bohr.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bohr.sh new file mode 100644 index 0000000000000000000000000000000000000000..f93bad1c1489ca99acdccd1a710d61d5ced3c598 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bohr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bohr | grep -v \.src | grep texlive-bohr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bohr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bohr + CHECK_RESULT $? 0 0 "install texlive-bohr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bohr + CHECK_RESULT $? 0 0 "remove texlive-bohr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boisik-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boisik-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bb10845430dee46091292e007e8d50f636b909a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boisik-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boisik-doc | grep -v \.src | grep texlive-boisik-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boisik-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boisik-doc + CHECK_RESULT $? 0 0 "install texlive-boisik-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boisik-doc + CHECK_RESULT $? 0 0 "remove texlive-boisik-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boisik.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boisik.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b0a2aadbcb6fef67b0b7ed2d5482080c3c7278f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boisik.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boisik | grep -v \.src | grep texlive-boisik + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boisik" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boisik + CHECK_RESULT $? 0 0 "install texlive-boisik failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boisik + CHECK_RESULT $? 0 0 "remove texlive-boisik failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boites-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boites-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d7515afa79b2d8e1dd31a3aebb2af202b5c0b00 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boites-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boites-doc | grep -v \.src | grep texlive-boites-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boites-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boites-doc + CHECK_RESULT $? 0 0 "install texlive-boites-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boites-doc + CHECK_RESULT $? 0 0 "remove texlive-boites-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boites.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boites.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d049c3b6424665b5df9a50f923b816a3d541cc0 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boites.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boites | grep -v \.src | grep texlive-boites + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boites" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boites + CHECK_RESULT $? 0 0 "install texlive-boites failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boites + CHECK_RESULT $? 0 0 "remove texlive-boites failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bold-extra-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bold-extra-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe7c5b83b9a6da31e3bb3dfe8b1797b29b3e6ec4 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bold-extra-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bold-extra-doc | grep -v \.src | grep texlive-bold-extra-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bold-extra-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bold-extra-doc + CHECK_RESULT $? 0 0 "install texlive-bold-extra-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bold-extra-doc + CHECK_RESULT $? 0 0 "remove texlive-bold-extra-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bold-extra.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bold-extra.sh new file mode 100644 index 0000000000000000000000000000000000000000..3678061a938a6bce9702bb86f5cd2e5059a8bf15 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bold-extra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bold-extra | grep -v \.src | grep texlive-bold-extra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bold-extra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bold-extra + CHECK_RESULT $? 0 0 "install texlive-bold-extra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bold-extra + CHECK_RESULT $? 0 0 "remove texlive-bold-extra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boldtensors-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boldtensors-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4dd02777d2918137d6e527c76a0904750661b7ca --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boldtensors-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boldtensors-doc | grep -v \.src | grep texlive-boldtensors-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boldtensors-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boldtensors-doc + CHECK_RESULT $? 0 0 "install texlive-boldtensors-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boldtensors-doc + CHECK_RESULT $? 0 0 "remove texlive-boldtensors-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boldtensors.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boldtensors.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad21f8c159faebbe18444f6907a559f4f386efc4 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boldtensors.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boldtensors | grep -v \.src | grep texlive-boldtensors + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boldtensors" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boldtensors + CHECK_RESULT $? 0 0 "install texlive-boldtensors failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boldtensors + CHECK_RESULT $? 0 0 "remove texlive-boldtensors failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraph-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraph-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e0459dbfa9504c0241e2751c2a3938350cbcdb7 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraph-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bondgraph-doc | grep -v \.src | grep texlive-bondgraph-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bondgraph-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bondgraph-doc + CHECK_RESULT $? 0 0 "install texlive-bondgraph-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bondgraph-doc + CHECK_RESULT $? 0 0 "remove texlive-bondgraph-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraph.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraph.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb8829bb2f227db85ee7114045ac94201f0a5e92 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bondgraph | grep -v \.src | grep texlive-bondgraph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bondgraph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bondgraph + CHECK_RESULT $? 0 0 "install texlive-bondgraph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bondgraph + CHECK_RESULT $? 0 0 "remove texlive-bondgraph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraphs-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraphs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ae24f161555fd29053f9f75be13ef4af8bcb93c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraphs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bondgraphs-doc | grep -v \.src | grep texlive-bondgraphs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bondgraphs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bondgraphs-doc + CHECK_RESULT $? 0 0 "install texlive-bondgraphs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bondgraphs-doc + CHECK_RESULT $? 0 0 "remove texlive-bondgraphs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraphs.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraphs.sh new file mode 100644 index 0000000000000000000000000000000000000000..973e65adaee7f7336a0c8d4d801396db47732305 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bondgraphs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bondgraphs | grep -v \.src | grep texlive-bondgraphs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bondgraphs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bondgraphs + CHECK_RESULT $? 0 0 "install texlive-bondgraphs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bondgraphs + CHECK_RESULT $? 0 0 "remove texlive-bondgraphs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookcover-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookcover-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..04e06fefd0f63dfd842f0d9f16ac452475d6a765 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookcover-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookcover-doc | grep -v \.src | grep texlive-bookcover-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookcover-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookcover-doc + CHECK_RESULT $? 0 0 "install texlive-bookcover-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookcover-doc + CHECK_RESULT $? 0 0 "remove texlive-bookcover-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookcover.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookcover.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4f7169b306016b6cf37e77605a79e8be28f3488 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookcover.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookcover | grep -v \.src | grep texlive-bookcover + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookcover" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookcover + CHECK_RESULT $? 0 0 "install texlive-bookcover failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookcover + CHECK_RESULT $? 0 0 "remove texlive-bookcover failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookdb-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookdb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..318f3e0fb4a5d3c52b5bff7a07f58475ffe3fba9 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookdb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookdb-doc | grep -v \.src | grep texlive-bookdb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookdb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookdb-doc + CHECK_RESULT $? 0 0 "install texlive-bookdb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookdb-doc + CHECK_RESULT $? 0 0 "remove texlive-bookdb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookdb.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookdb.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8fb5b3ab105604cb9992b341a6e6188d5f61d77 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookdb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookdb | grep -v \.src | grep texlive-bookdb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookdb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookdb + CHECK_RESULT $? 0 0 "install texlive-bookdb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookdb + CHECK_RESULT $? 0 0 "remove texlive-bookdb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookest-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookest-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1f7936cb18bbbfc014fcad2a2142570de7bbaec --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookest-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookest-doc | grep -v \.src | grep texlive-bookest-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookest-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookest-doc + CHECK_RESULT $? 0 0 "install texlive-bookest-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookest-doc + CHECK_RESULT $? 0 0 "remove texlive-bookest-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookest.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookest.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3893c34c83dc02106895af82412bb116df42bcc --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookest.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookest | grep -v \.src | grep texlive-bookest + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookest" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookest + CHECK_RESULT $? 0 0 "install texlive-bookest failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookest + CHECK_RESULT $? 0 0 "remove texlive-bookest failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookhands-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookhands-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..875727972c1f8fc2ffdc19e470c500cf52051a0e --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookhands-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookhands-doc | grep -v \.src | grep texlive-bookhands-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookhands-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookhands-doc + CHECK_RESULT $? 0 0 "install texlive-bookhands-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookhands-doc + CHECK_RESULT $? 0 0 "remove texlive-bookhands-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookhands.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookhands.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b90e0a5ab69e233d85fe978d83313e23f943744 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookhands.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookhands | grep -v \.src | grep texlive-bookhands + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookhands" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookhands + CHECK_RESULT $? 0 0 "install texlive-bookhands failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookhands + CHECK_RESULT $? 0 0 "remove texlive-bookhands failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booklet-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booklet-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9204664f1b2e609aa973a1d41acf0e379d76862 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booklet-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-booklet-doc | grep -v \.src | grep texlive-booklet-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-booklet-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-booklet-doc + CHECK_RESULT $? 0 0 "install texlive-booklet-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-booklet-doc + CHECK_RESULT $? 0 0 "remove texlive-booklet-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booklet.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booklet.sh new file mode 100644 index 0000000000000000000000000000000000000000..1423bb1a9dee74ce3c20cfbee1d9dd3ddf58bd5b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booklet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-booklet | grep -v \.src | grep texlive-booklet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-booklet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-booklet + CHECK_RESULT $? 0 0 "install texlive-booklet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-booklet + CHECK_RESULT $? 0 0 "remove texlive-booklet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookman.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookman.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f0073537f8ae96a7c89acbe816dc632c502eab2 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bookman.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookman | grep -v \.src | grep texlive-bookman + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookman" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookman + CHECK_RESULT $? 0 0 "install texlive-bookman failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookman + CHECK_RESULT $? 0 0 "remove texlive-bookman failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs-de-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0ba7b87b72d694d2515326092186238b170651c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-booktabs-de-doc | grep -v \.src | grep texlive-booktabs-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-booktabs-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-booktabs-de-doc + CHECK_RESULT $? 0 0 "install texlive-booktabs-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-booktabs-de-doc + CHECK_RESULT $? 0 0 "remove texlive-booktabs-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3badf8e33d7430b62fe659d567a75c2f15dabc50 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-booktabs-doc | grep -v \.src | grep texlive-booktabs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-booktabs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-booktabs-doc + CHECK_RESULT $? 0 0 "install texlive-booktabs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-booktabs-doc + CHECK_RESULT $? 0 0 "remove texlive-booktabs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs-fr-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs-fr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f163ef61eb01b42a22542d771d3996e9941fc1f2 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs-fr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-booktabs-fr-doc | grep -v \.src | grep texlive-booktabs-fr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-booktabs-fr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-booktabs-fr-doc + CHECK_RESULT $? 0 0 "install texlive-booktabs-fr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-booktabs-fr-doc + CHECK_RESULT $? 0 0 "remove texlive-booktabs-fr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbf0ba40b06b7172b00dc29470ec841cc1ed3330 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-booktabs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-booktabs | grep -v \.src | grep texlive-booktabs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-booktabs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-booktabs + CHECK_RESULT $? 0 0 "install texlive-booktabs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-booktabs + CHECK_RESULT $? 0 0 "remove texlive-booktabs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boolexpr-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boolexpr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..27b888aab9ac39ea937a79e1a0f0290f49e86fc5 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boolexpr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boolexpr-doc | grep -v \.src | grep texlive-boolexpr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boolexpr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boolexpr-doc + CHECK_RESULT $? 0 0 "install texlive-boolexpr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boolexpr-doc + CHECK_RESULT $? 0 0 "remove texlive-boolexpr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boolexpr.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boolexpr.sh new file mode 100644 index 0000000000000000000000000000000000000000..07e48de6ec539752a5f7d1a3de894aab176a50cf --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boolexpr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boolexpr | grep -v \.src | grep texlive-boolexpr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boolexpr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boolexpr + CHECK_RESULT $? 0 0 "install texlive-boolexpr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boolexpr + CHECK_RESULT $? 0 0 "remove texlive-boolexpr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boondox-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boondox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a60026d25f27af715f40966adf96a938d77aca67 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boondox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boondox-doc | grep -v \.src | grep texlive-boondox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boondox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boondox-doc + CHECK_RESULT $? 0 0 "install texlive-boondox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boondox-doc + CHECK_RESULT $? 0 0 "remove texlive-boondox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boondox.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boondox.sh new file mode 100644 index 0000000000000000000000000000000000000000..eac51fd3ef07efd6978ce8c6f70ac9ca0ec7911d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boondox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boondox | grep -v \.src | grep texlive-boondox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boondox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boondox + CHECK_RESULT $? 0 0 "install texlive-boondox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boondox + CHECK_RESULT $? 0 0 "remove texlive-boondox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bophook-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bophook-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e955af2afd9d93af8b4f986a77560068cdeeea2 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bophook-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bophook-doc | grep -v \.src | grep texlive-bophook-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bophook-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bophook-doc + CHECK_RESULT $? 0 0 "install texlive-bophook-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bophook-doc + CHECK_RESULT $? 0 0 "remove texlive-bophook-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bophook.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bophook.sh new file mode 100644 index 0000000000000000000000000000000000000000..87fb4023e922bb3611bcb5e0c97acfd573c890c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bophook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bophook | grep -v \.src | grep texlive-bophook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bophook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bophook + CHECK_RESULT $? 0 0 "install texlive-bophook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bophook + CHECK_RESULT $? 0 0 "remove texlive-bophook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-borceux-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-borceux-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7991142c7722f2a37f6dd7b56314564ba5164ab3 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-borceux-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-borceux-doc | grep -v \.src | grep texlive-borceux-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-borceux-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-borceux-doc + CHECK_RESULT $? 0 0 "install texlive-borceux-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-borceux-doc + CHECK_RESULT $? 0 0 "remove texlive-borceux-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-borceux.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-borceux.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0dfd8944f2a3406b5f7732b077eea2bfab88256 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-borceux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-borceux | grep -v \.src | grep texlive-borceux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-borceux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-borceux + CHECK_RESULT $? 0 0 "install texlive-borceux failed" + SLEEP_WAIT 1 + dnf remove -y texlive-borceux + CHECK_RESULT $? 0 0 "remove texlive-borceux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bosisio-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bosisio-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2626a4cd2edc9d22dda73dde408c177120b37bbb --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bosisio-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bosisio-doc | grep -v \.src | grep texlive-bosisio-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bosisio-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bosisio-doc + CHECK_RESULT $? 0 0 "install texlive-bosisio-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bosisio-doc + CHECK_RESULT $? 0 0 "remove texlive-bosisio-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bosisio.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bosisio.sh new file mode 100644 index 0000000000000000000000000000000000000000..e34e28d359bce932f067be32ce78b9bf11079439 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bosisio.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bosisio | grep -v \.src | grep texlive-bosisio + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bosisio" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bosisio + CHECK_RESULT $? 0 0 "install texlive-bosisio failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bosisio + CHECK_RESULT $? 0 0 "remove texlive-bosisio failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..836c32cae41c7e129d5dcee47a4c67d2cbcefa34 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boxedminipage-doc | grep -v \.src | grep texlive-boxedminipage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boxedminipage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boxedminipage-doc + CHECK_RESULT $? 0 0 "install texlive-boxedminipage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boxedminipage-doc + CHECK_RESULT $? 0 0 "remove texlive-boxedminipage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4f4d9cbe8e16fb36bfa52d6135744a4e3aaed34 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boxedminipage | grep -v \.src | grep texlive-boxedminipage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boxedminipage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boxedminipage + CHECK_RESULT $? 0 0 "install texlive-boxedminipage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boxedminipage + CHECK_RESULT $? 0 0 "remove texlive-boxedminipage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage2e-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage2e-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..864a3c97838628d3a5546749666bc3862d9b09d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage2e-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boxedminipage2e-doc | grep -v \.src | grep texlive-boxedminipage2e-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boxedminipage2e-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boxedminipage2e-doc + CHECK_RESULT $? 0 0 "install texlive-boxedminipage2e-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boxedminipage2e-doc + CHECK_RESULT $? 0 0 "remove texlive-boxedminipage2e-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage2e.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage2e.sh new file mode 100644 index 0000000000000000000000000000000000000000..80a23cebad2aec4190f4d776bf298400f508390d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxedminipage2e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boxedminipage2e | grep -v \.src | grep texlive-boxedminipage2e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boxedminipage2e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boxedminipage2e + CHECK_RESULT $? 0 0 "install texlive-boxedminipage2e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boxedminipage2e + CHECK_RESULT $? 0 0 "remove texlive-boxedminipage2e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxhandler-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxhandler-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..14b7bed0250ea9a09a28c95066bf8f6ff64fd44f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxhandler-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boxhandler-doc | grep -v \.src | grep texlive-boxhandler-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boxhandler-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boxhandler-doc + CHECK_RESULT $? 0 0 "install texlive-boxhandler-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boxhandler-doc + CHECK_RESULT $? 0 0 "remove texlive-boxhandler-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxhandler.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxhandler.sh new file mode 100644 index 0000000000000000000000000000000000000000..65b1e19df72fda3a2f36d7679cf8bcc33d10361f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-boxhandler.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-boxhandler | grep -v \.src | grep texlive-boxhandler + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-boxhandler" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-boxhandler + CHECK_RESULT $? 0 0 "install texlive-boxhandler failed" + SLEEP_WAIT 1 + dnf remove -y texlive-boxhandler + CHECK_RESULT $? 0 0 "remove texlive-boxhandler failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpchem-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpchem-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0460f9e02903f7cea717374f9dce853c373d2fa4 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpchem-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bpchem-doc | grep -v \.src | grep texlive-bpchem-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bpchem-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bpchem-doc + CHECK_RESULT $? 0 0 "install texlive-bpchem-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bpchem-doc + CHECK_RESULT $? 0 0 "remove texlive-bpchem-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpchem.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpchem.sh new file mode 100644 index 0000000000000000000000000000000000000000..25d0ab71c8b114ba029370dde14fe7da0fe8dff7 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpchem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bpchem | grep -v \.src | grep texlive-bpchem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bpchem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bpchem + CHECK_RESULT $? 0 0 "install texlive-bpchem failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bpchem + CHECK_RESULT $? 0 0 "remove texlive-bpchem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpolynomial-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpolynomial-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c45df44c5ed9f9ca84e6838a804bebac42edf1a4 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpolynomial-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bpolynomial-doc | grep -v \.src | grep texlive-bpolynomial-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bpolynomial-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bpolynomial-doc + CHECK_RESULT $? 0 0 "install texlive-bpolynomial-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bpolynomial-doc + CHECK_RESULT $? 0 0 "remove texlive-bpolynomial-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpolynomial.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpolynomial.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d2f461483884005a0012016b09af2a572f19d01 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bpolynomial.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bpolynomial | grep -v \.src | grep texlive-bpolynomial + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bpolynomial" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bpolynomial + CHECK_RESULT $? 0 0 "install texlive-bpolynomial failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bpolynomial + CHECK_RESULT $? 0 0 "remove texlive-bpolynomial failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-br-lex-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-br-lex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bb90c3f2404936a746fe4559e3c28fea961df15 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-br-lex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-br-lex-doc | grep -v \.src | grep texlive-br-lex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-br-lex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-br-lex-doc + CHECK_RESULT $? 0 0 "install texlive-br-lex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-br-lex-doc + CHECK_RESULT $? 0 0 "remove texlive-br-lex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-br-lex.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-br-lex.sh new file mode 100644 index 0000000000000000000000000000000000000000..926ca03846ae5d0b9933d6ca886cc4671bfeedb6 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-br-lex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-br-lex | grep -v \.src | grep texlive-br-lex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-br-lex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-br-lex + CHECK_RESULT $? 0 0 "install texlive-br-lex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-br-lex + CHECK_RESULT $? 0 0 "remove texlive-br-lex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bracketkey-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bracketkey-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..272d6af2c21a2a3e835eafb2076f362ff1d78158 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bracketkey-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bracketkey-doc | grep -v \.src | grep texlive-bracketkey-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bracketkey-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bracketkey-doc + CHECK_RESULT $? 0 0 "install texlive-bracketkey-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bracketkey-doc + CHECK_RESULT $? 0 0 "remove texlive-bracketkey-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bracketkey.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bracketkey.sh new file mode 100644 index 0000000000000000000000000000000000000000..683f37d996708f12c74044a6e5a5a0ae5910e7b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bracketkey.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bracketkey | grep -v \.src | grep texlive-bracketkey + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bracketkey" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bracketkey + CHECK_RESULT $? 0 0 "install texlive-bracketkey failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bracketkey + CHECK_RESULT $? 0 0 "remove texlive-bracketkey failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braids-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braids-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a66fb8fcbaf896b63c9e234d04f28ee6c87897be --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braids-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-braids-doc | grep -v \.src | grep texlive-braids-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-braids-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-braids-doc + CHECK_RESULT $? 0 0 "install texlive-braids-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-braids-doc + CHECK_RESULT $? 0 0 "remove texlive-braids-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braids.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braids.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4db72aefa36dba9bcc8dca7dfb66da22bb1e72b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braids.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-braids | grep -v \.src | grep texlive-braids + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-braids" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-braids + CHECK_RESULT $? 0 0 "install texlive-braids failed" + SLEEP_WAIT 1 + dnf remove -y texlive-braids + CHECK_RESULT $? 0 0 "remove texlive-braids failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braille-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braille-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4de71d92627f69bc48edc0c946c97871986164b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braille-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-braille-doc | grep -v \.src | grep texlive-braille-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-braille-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-braille-doc + CHECK_RESULT $? 0 0 "install texlive-braille-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-braille-doc + CHECK_RESULT $? 0 0 "remove texlive-braille-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braille.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braille.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9efdea778f10e0d3d3d01543f108be990407ab6 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braille.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-braille | grep -v \.src | grep texlive-braille + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-braille" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-braille + CHECK_RESULT $? 0 0 "install texlive-braille failed" + SLEEP_WAIT 1 + dnf remove -y texlive-braille + CHECK_RESULT $? 0 0 "remove texlive-braille failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braket-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braket-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2393ae71dac6fb4b20b83e2f8fceb19d0b81ed30 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braket-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-braket-doc | grep -v \.src | grep texlive-braket-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-braket-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-braket-doc + CHECK_RESULT $? 0 0 "install texlive-braket-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-braket-doc + CHECK_RESULT $? 0 0 "remove texlive-braket-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braket.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braket.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ef10ff1365c5d4e0e1fc62e4aa7e062e5378360 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-braket.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-braket | grep -v \.src | grep texlive-braket + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-braket" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-braket + CHECK_RESULT $? 0 0 "install texlive-braket failed" + SLEEP_WAIT 1 + dnf remove -y texlive-braket + CHECK_RESULT $? 0 0 "remove texlive-braket failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brandeis-dissertation-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brandeis-dissertation-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..35918b12cc7685b72b3f0614002f791759a34755 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brandeis-dissertation-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-brandeis-dissertation-doc | grep -v \.src | grep texlive-brandeis-dissertation-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-brandeis-dissertation-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-brandeis-dissertation-doc + CHECK_RESULT $? 0 0 "install texlive-brandeis-dissertation-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-brandeis-dissertation-doc + CHECK_RESULT $? 0 0 "remove texlive-brandeis-dissertation-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brandeis-dissertation.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brandeis-dissertation.sh new file mode 100644 index 0000000000000000000000000000000000000000..45154e2b74dfbbeaf56c3553eada54337ad79fb2 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brandeis-dissertation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-brandeis-dissertation | grep -v \.src | grep texlive-brandeis-dissertation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-brandeis-dissertation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-brandeis-dissertation + CHECK_RESULT $? 0 0 "install texlive-brandeis-dissertation failed" + SLEEP_WAIT 1 + dnf remove -y texlive-brandeis-dissertation + CHECK_RESULT $? 0 0 "remove texlive-brandeis-dissertation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakcites-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakcites-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..87c94e01d5053eed8acf26112a017aa6a197970b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakcites-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-breakcites-doc | grep -v \.src | grep texlive-breakcites-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-breakcites-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-breakcites-doc + CHECK_RESULT $? 0 0 "install texlive-breakcites-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-breakcites-doc + CHECK_RESULT $? 0 0 "remove texlive-breakcites-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakcites.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakcites.sh new file mode 100644 index 0000000000000000000000000000000000000000..f770458c4dcf50965e1580ca57aca95736644679 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakcites.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-breakcites | grep -v \.src | grep texlive-breakcites + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-breakcites" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-breakcites + CHECK_RESULT $? 0 0 "install texlive-breakcites failed" + SLEEP_WAIT 1 + dnf remove -y texlive-breakcites + CHECK_RESULT $? 0 0 "remove texlive-breakcites failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakurl-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakurl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..683bc54ac36b40cc162359b11d97d8fc28a67657 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakurl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-breakurl-doc | grep -v \.src | grep texlive-breakurl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-breakurl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-breakurl-doc + CHECK_RESULT $? 0 0 "install texlive-breakurl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-breakurl-doc + CHECK_RESULT $? 0 0 "remove texlive-breakurl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakurl.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakurl.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce8c5dd33fa86cbb6c43588dc5e4eee40c9ef855 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breakurl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-breakurl | grep -v \.src | grep texlive-breakurl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-breakurl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-breakurl + CHECK_RESULT $? 0 0 "install texlive-breakurl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-breakurl + CHECK_RESULT $? 0 0 "remove texlive-breakurl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bredzenie.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bredzenie.sh new file mode 100644 index 0000000000000000000000000000000000000000..2245525422c071409b2756cfd844cb00de63f709 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bredzenie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bredzenie | grep -v \.src | grep texlive-bredzenie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bredzenie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bredzenie + CHECK_RESULT $? 0 0 "install texlive-bredzenie failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bredzenie + CHECK_RESULT $? 0 0 "remove texlive-bredzenie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breqn-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breqn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..62cf795fb14cce37a7520d8c61decb79359fd7a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breqn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-breqn-doc | grep -v \.src | grep texlive-breqn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-breqn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-breqn-doc + CHECK_RESULT $? 0 0 "install texlive-breqn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-breqn-doc + CHECK_RESULT $? 0 0 "remove texlive-breqn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breqn.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breqn.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb118373cca85de2859cc29d9d235a0e63a5a055 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-breqn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-breqn | grep -v \.src | grep texlive-breqn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-breqn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-breqn + CHECK_RESULT $? 0 0 "install texlive-breqn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-breqn + CHECK_RESULT $? 0 0 "remove texlive-breqn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bropd-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bropd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee8fdc6ce19b33c862879e0bc94b84544175a3d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bropd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bropd-doc | grep -v \.src | grep texlive-bropd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bropd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bropd-doc + CHECK_RESULT $? 0 0 "install texlive-bropd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bropd-doc + CHECK_RESULT $? 0 0 "remove texlive-bropd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bropd.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bropd.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfc231ee1b73ea11f902cdcf256d2edef6314634 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bropd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bropd | grep -v \.src | grep texlive-bropd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bropd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bropd + CHECK_RESULT $? 0 0 "install texlive-bropd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bropd + CHECK_RESULT $? 0 0 "remove texlive-bropd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brushscr-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brushscr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d07c6dc3ff7a003cf9e18436794ce1c40906c96 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brushscr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-brushscr-doc | grep -v \.src | grep texlive-brushscr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-brushscr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-brushscr-doc + CHECK_RESULT $? 0 0 "install texlive-brushscr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-brushscr-doc + CHECK_RESULT $? 0 0 "remove texlive-brushscr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brushscr.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brushscr.sh new file mode 100644 index 0000000000000000000000000000000000000000..8779d567e1a1fa048f37852fe2ffb1f6d81581fe --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-brushscr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-brushscr | grep -v \.src | grep texlive-brushscr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-brushscr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-brushscr + CHECK_RESULT $? 0 0 "install texlive-brushscr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-brushscr + CHECK_RESULT $? 0 0 "remove texlive-brushscr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bullcntr-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bullcntr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbfec4d7c1976079e51837b60d848f60fa53a9c8 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bullcntr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bullcntr-doc | grep -v \.src | grep texlive-bullcntr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bullcntr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bullcntr-doc + CHECK_RESULT $? 0 0 "install texlive-bullcntr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bullcntr-doc + CHECK_RESULT $? 0 0 "remove texlive-bullcntr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bullcntr.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bullcntr.sh new file mode 100644 index 0000000000000000000000000000000000000000..a357cb8390b6efa61fbe3ce38cdfd6d9a929269d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bullcntr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bullcntr | grep -v \.src | grep texlive-bullcntr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bullcntr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bullcntr + CHECK_RESULT $? 0 0 "install texlive-bullcntr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bullcntr + CHECK_RESULT $? 0 0 "remove texlive-bullcntr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-burmese-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-burmese-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..82d1fc4df1d7d01b5af46bceeb3da854be4414b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-burmese-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-burmese-doc | grep -v \.src | grep texlive-burmese-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-burmese-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-burmese-doc + CHECK_RESULT $? 0 0 "install texlive-burmese-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-burmese-doc + CHECK_RESULT $? 0 0 "remove texlive-burmese-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-burmese.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-burmese.sh new file mode 100644 index 0000000000000000000000000000000000000000..070b2bb1660ad89d118179f210787d7c3d885061 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-burmese.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-burmese | grep -v \.src | grep texlive-burmese + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-burmese" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-burmese + CHECK_RESULT $? 0 0 "install texlive-burmese failed" + SLEEP_WAIT 1 + dnf remove -y texlive-burmese + CHECK_RESULT $? 0 0 "remove texlive-burmese failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bussproofs-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bussproofs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..56113327bfed04164dd2db832b7a3dfe97ac63b0 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bussproofs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bussproofs-doc | grep -v \.src | grep texlive-bussproofs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bussproofs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bussproofs-doc + CHECK_RESULT $? 0 0 "install texlive-bussproofs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bussproofs-doc + CHECK_RESULT $? 0 0 "remove texlive-bussproofs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bussproofs.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bussproofs.sh new file mode 100644 index 0000000000000000000000000000000000000000..9865e170e0f7ab27dbfffb84bd2eae835ea81dd4 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bussproofs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bussproofs | grep -v \.src | grep texlive-bussproofs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bussproofs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bussproofs + CHECK_RESULT $? 0 0 "install texlive-bussproofs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bussproofs + CHECK_RESULT $? 0 0 "remove texlive-bussproofs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxbase-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxbase-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..283b55b77004c9582d98c5081cadecb1620ee201 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxbase-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxbase-doc | grep -v \.src | grep texlive-bxbase-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxbase-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxbase-doc + CHECK_RESULT $? 0 0 "install texlive-bxbase-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxbase-doc + CHECK_RESULT $? 0 0 "remove texlive-bxbase-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxbase.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxbase.sh new file mode 100644 index 0000000000000000000000000000000000000000..62482ebdd08209c9f7ea1f4d4035463d276f6551 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxbase.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxbase | grep -v \.src | grep texlive-bxbase + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxbase" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxbase + CHECK_RESULT $? 0 0 "install texlive-bxbase failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxbase + CHECK_RESULT $? 0 0 "remove texlive-bxbase failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxcalc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxcalc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c186ac93183bfa0c257c2464c81a46e1e8f3f0f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxcalc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxcalc | grep -v \.src | grep texlive-bxcalc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxcalc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxcalc + CHECK_RESULT $? 0 0 "install texlive-bxcalc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxcalc + CHECK_RESULT $? 0 0 "remove texlive-bxcalc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxcjkjatype-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxcjkjatype-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..611b95098872247970eb2dc8d4da98638fff6835 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxcjkjatype-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxcjkjatype-doc | grep -v \.src | grep texlive-bxcjkjatype-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxcjkjatype-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxcjkjatype-doc + CHECK_RESULT $? 0 0 "install texlive-bxcjkjatype-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxcjkjatype-doc + CHECK_RESULT $? 0 0 "remove texlive-bxcjkjatype-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxcjkjatype.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxcjkjatype.sh new file mode 100644 index 0000000000000000000000000000000000000000..afd693dafc1bc1c2fd5322b0d8940593d4426e01 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxcjkjatype.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxcjkjatype | grep -v \.src | grep texlive-bxcjkjatype + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxcjkjatype" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxcjkjatype + CHECK_RESULT $? 0 0 "install texlive-bxcjkjatype failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxcjkjatype + CHECK_RESULT $? 0 0 "remove texlive-bxcjkjatype failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdpx-beamer-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdpx-beamer-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5522f3ec3afc0809cbbb617e6608874016036f2d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdpx-beamer-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxdpx-beamer-doc | grep -v \.src | grep texlive-bxdpx-beamer-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxdpx-beamer-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxdpx-beamer-doc + CHECK_RESULT $? 0 0 "install texlive-bxdpx-beamer-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxdpx-beamer-doc + CHECK_RESULT $? 0 0 "remove texlive-bxdpx-beamer-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdpx-beamer.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdpx-beamer.sh new file mode 100644 index 0000000000000000000000000000000000000000..c95ba17fbd73273b69170cb2accd0e19ae413a16 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdpx-beamer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxdpx-beamer | grep -v \.src | grep texlive-bxdpx-beamer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxdpx-beamer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxdpx-beamer + CHECK_RESULT $? 0 0 "install texlive-bxdpx-beamer failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxdpx-beamer + CHECK_RESULT $? 0 0 "remove texlive-bxdpx-beamer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdvidriver-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdvidriver-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ee79248c625cbefb157231dfe577de0b0aedce6 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdvidriver-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxdvidriver-doc | grep -v \.src | grep texlive-bxdvidriver-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxdvidriver-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxdvidriver-doc + CHECK_RESULT $? 0 0 "install texlive-bxdvidriver-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxdvidriver-doc + CHECK_RESULT $? 0 0 "remove texlive-bxdvidriver-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdvidriver.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdvidriver.sh new file mode 100644 index 0000000000000000000000000000000000000000..f27e6074e491482a068d430158f04e7b49fba573 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxdvidriver.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxdvidriver | grep -v \.src | grep texlive-bxdvidriver + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxdvidriver" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxdvidriver + CHECK_RESULT $? 0 0 "install texlive-bxdvidriver failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxdvidriver + CHECK_RESULT $? 0 0 "remove texlive-bxdvidriver failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxeepic-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxeepic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..840b8df713d9adc7693799f2016b16d44949869d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxeepic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxeepic-doc | grep -v \.src | grep texlive-bxeepic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxeepic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxeepic-doc + CHECK_RESULT $? 0 0 "install texlive-bxeepic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxeepic-doc + CHECK_RESULT $? 0 0 "remove texlive-bxeepic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxeepic.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxeepic.sh new file mode 100644 index 0000000000000000000000000000000000000000..f564ddfb7f46e673a4dbfc751a62cf1c2bc4216c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxeepic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxeepic | grep -v \.src | grep texlive-bxeepic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxeepic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxeepic + CHECK_RESULT $? 0 0 "install texlive-bxeepic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxeepic + CHECK_RESULT $? 0 0 "remove texlive-bxeepic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxenclose-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxenclose-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..435aca3d981d393b03863de424377aba9e43b53b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxenclose-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxenclose-doc | grep -v \.src | grep texlive-bxenclose-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxenclose-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxenclose-doc + CHECK_RESULT $? 0 0 "install texlive-bxenclose-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxenclose-doc + CHECK_RESULT $? 0 0 "remove texlive-bxenclose-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxenclose.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxenclose.sh new file mode 100644 index 0000000000000000000000000000000000000000..1858f52c4ebe3a5c5bbbc5f1c762bf0c946f5944 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxenclose.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxenclose | grep -v \.src | grep texlive-bxenclose + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxenclose" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxenclose + CHECK_RESULT $? 0 0 "install texlive-bxenclose failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxenclose + CHECK_RESULT $? 0 0 "remove texlive-bxenclose failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjalipsum.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjalipsum.sh new file mode 100644 index 0000000000000000000000000000000000000000..f098e3f7ce63559842ebf862f87f5126ef53df84 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjalipsum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxjalipsum | grep -v \.src | grep texlive-bxjalipsum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxjalipsum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxjalipsum + CHECK_RESULT $? 0 0 "install texlive-bxjalipsum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxjalipsum + CHECK_RESULT $? 0 0 "remove texlive-bxjalipsum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjaprnind.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjaprnind.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5a58513dec92d646539f4da1fb8959e4e4c192e --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjaprnind.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxjaprnind | grep -v \.src | grep texlive-bxjaprnind + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxjaprnind" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxjaprnind + CHECK_RESULT $? 0 0 "install texlive-bxjaprnind failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxjaprnind + CHECK_RESULT $? 0 0 "remove texlive-bxjaprnind failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjscls-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjscls-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..42e83768991c1a32ebef89f6cb4038e27df9e155 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjscls-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxjscls-doc | grep -v \.src | grep texlive-bxjscls-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxjscls-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxjscls-doc + CHECK_RESULT $? 0 0 "install texlive-bxjscls-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxjscls-doc + CHECK_RESULT $? 0 0 "remove texlive-bxjscls-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjscls.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjscls.sh new file mode 100644 index 0000000000000000000000000000000000000000..aecd25f885499fab43614de675b6f5b3fabb9819 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxjscls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxjscls | grep -v \.src | grep texlive-bxjscls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxjscls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxjscls + CHECK_RESULT $? 0 0 "install texlive-bxjscls failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxjscls + CHECK_RESULT $? 0 0 "remove texlive-bxjscls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxnewfont-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxnewfont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5046eaa2398523838b3aa4f7f3a5f34891e72d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxnewfont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxnewfont-doc | grep -v \.src | grep texlive-bxnewfont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxnewfont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxnewfont-doc + CHECK_RESULT $? 0 0 "install texlive-bxnewfont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxnewfont-doc + CHECK_RESULT $? 0 0 "remove texlive-bxnewfont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxnewfont.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxnewfont.sh new file mode 100644 index 0000000000000000000000000000000000000000..c49dc016aaa24fd1c4b088f81ef28f5171098370 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxnewfont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxnewfont | grep -v \.src | grep texlive-bxnewfont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxnewfont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxnewfont + CHECK_RESULT $? 0 0 "install texlive-bxnewfont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxnewfont + CHECK_RESULT $? 0 0 "remove texlive-bxnewfont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxorigcapt.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxorigcapt.sh new file mode 100644 index 0000000000000000000000000000000000000000..7786c680f150ba8141bdd7754a7d827300aa2b4f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxorigcapt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxorigcapt | grep -v \.src | grep texlive-bxorigcapt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxorigcapt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxorigcapt + CHECK_RESULT $? 0 0 "install texlive-bxorigcapt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxorigcapt + CHECK_RESULT $? 0 0 "remove texlive-bxorigcapt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpapersize-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpapersize-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ec4590a22f06204babba384d173cbd8142baf52 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpapersize-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxpapersize-doc | grep -v \.src | grep texlive-bxpapersize-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxpapersize-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxpapersize-doc + CHECK_RESULT $? 0 0 "install texlive-bxpapersize-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxpapersize-doc + CHECK_RESULT $? 0 0 "remove texlive-bxpapersize-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpapersize.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpapersize.sh new file mode 100644 index 0000000000000000000000000000000000000000..c21643b7a8e7e336090381e3493a5891b89b8b88 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpapersize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxpapersize | grep -v \.src | grep texlive-bxpapersize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxpapersize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxpapersize + CHECK_RESULT $? 0 0 "install texlive-bxpapersize failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxpapersize + CHECK_RESULT $? 0 0 "remove texlive-bxpapersize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpdfver-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpdfver-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d31b8f9950b5e764f42ce065a3602be5e3f8fd29 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpdfver-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxpdfver-doc | grep -v \.src | grep texlive-bxpdfver-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxpdfver-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxpdfver-doc + CHECK_RESULT $? 0 0 "install texlive-bxpdfver-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxpdfver-doc + CHECK_RESULT $? 0 0 "remove texlive-bxpdfver-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpdfver.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpdfver.sh new file mode 100644 index 0000000000000000000000000000000000000000..17bea4d87ade253e9ac045cf6bf9be66e44c3d6d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bxpdfver.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxpdfver | grep -v \.src | grep texlive-bxpdfver + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxpdfver" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxpdfver + CHECK_RESULT $? 0 0 "install texlive-bxpdfver failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxpdfver + CHECK_RESULT $? 0 0 "remove texlive-bxpdfver failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bytefield-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bytefield-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f34ed9b29d2b5dfaf6cd802644214514671dddd1 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bytefield-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bytefield-doc | grep -v \.src | grep texlive-bytefield-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bytefield-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bytefield-doc + CHECK_RESULT $? 0 0 "install texlive-bytefield-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bytefield-doc + CHECK_RESULT $? 0 0 "remove texlive-bytefield-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bytefield.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bytefield.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f347a640d4d3af47abcf7689339a24a0fdafa2c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-bytefield.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bytefield | grep -v \.src | grep texlive-bytefield + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bytefield" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bytefield + CHECK_RESULT $? 0 0 "install texlive-bytefield failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bytefield + CHECK_RESULT $? 0 0 "remove texlive-bytefield failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-c90-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-c90-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a08f379458f9689c36f287e7f66b919ef5d372ff --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-c90-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-c90-doc | grep -v \.src | grep texlive-c90-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-c90-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-c90-doc + CHECK_RESULT $? 0 0 "install texlive-c90-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-c90-doc + CHECK_RESULT $? 0 0 "remove texlive-c90-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-c90.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-c90.sh new file mode 100644 index 0000000000000000000000000000000000000000..78eb0fcd6286690299f8e281859e561d60c71546 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-c90.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-c90 | grep -v \.src | grep texlive-c90 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-c90" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-c90 + CHECK_RESULT $? 0 0 "install texlive-c90 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-c90 + CHECK_RESULT $? 0 0 "remove texlive-c90 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cabin-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cabin-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca2e465c75d81bf7557781fbb741b0bb9df09e69 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cabin-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cabin-doc | grep -v \.src | grep texlive-cabin-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cabin-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cabin-doc + CHECK_RESULT $? 0 0 "install texlive-cabin-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cabin-doc + CHECK_RESULT $? 0 0 "remove texlive-cabin-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cabin.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cabin.sh new file mode 100644 index 0000000000000000000000000000000000000000..d434e3d4108b929c4fccd57640a97f99f9a79ca0 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cabin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cabin | grep -v \.src | grep texlive-cabin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cabin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cabin + CHECK_RESULT $? 0 0 "install texlive-cabin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cabin + CHECK_RESULT $? 0 0 "remove texlive-cabin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caladea-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caladea-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..caa66ae934d4014a6d9178ce151086d3d6350338 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caladea-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-caladea-doc | grep -v \.src | grep texlive-caladea-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-caladea-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-caladea-doc + CHECK_RESULT $? 0 0 "install texlive-caladea-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-caladea-doc + CHECK_RESULT $? 0 0 "remove texlive-caladea-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caladea.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caladea.sh new file mode 100644 index 0000000000000000000000000000000000000000..b77f940750d15ac7ef58013deba86f61a1219fd1 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caladea.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-caladea | grep -v \.src | grep texlive-caladea + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-caladea" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-caladea + CHECK_RESULT $? 0 0 "install texlive-caladea failed" + SLEEP_WAIT 1 + dnf remove -y texlive-caladea + CHECK_RESULT $? 0 0 "remove texlive-caladea failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calcage-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calcage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..667f24ea1c9f89ea507cbbbe31a007bd692a274e --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calcage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calcage-doc | grep -v \.src | grep texlive-calcage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calcage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calcage-doc + CHECK_RESULT $? 0 0 "install texlive-calcage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calcage-doc + CHECK_RESULT $? 0 0 "remove texlive-calcage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calcage.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calcage.sh new file mode 100644 index 0000000000000000000000000000000000000000..dac2817d1a0659b0f0ae7c03b00c83b98a5aba3a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calcage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calcage | grep -v \.src | grep texlive-calcage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calcage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calcage + CHECK_RESULT $? 0 0 "install texlive-calcage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calcage + CHECK_RESULT $? 0 0 "remove texlive-calcage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calctab-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calctab-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9d4d0dd1a20a8cd627776141cf40420db728a9f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calctab-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calctab-doc | grep -v \.src | grep texlive-calctab-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calctab-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calctab-doc + CHECK_RESULT $? 0 0 "install texlive-calctab-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calctab-doc + CHECK_RESULT $? 0 0 "remove texlive-calctab-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calctab.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calctab.sh new file mode 100644 index 0000000000000000000000000000000000000000..29fc6ca6266458ca43e9acaca82bb0050ba5e64c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calctab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calctab | grep -v \.src | grep texlive-calctab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calctab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calctab + CHECK_RESULT $? 0 0 "install texlive-calctab failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calctab + CHECK_RESULT $? 0 0 "remove texlive-calctab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculation-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculation-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3904c5310d92ecb48f894da429484438e4ecfe1 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculation-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calculation-doc | grep -v \.src | grep texlive-calculation-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calculation-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calculation-doc + CHECK_RESULT $? 0 0 "install texlive-calculation-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calculation-doc + CHECK_RESULT $? 0 0 "remove texlive-calculation-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculation.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculation.sh new file mode 100644 index 0000000000000000000000000000000000000000..f944b3cbc929e1ee0d7cbff74f875016b6cee250 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calculation | grep -v \.src | grep texlive-calculation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calculation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calculation + CHECK_RESULT $? 0 0 "install texlive-calculation failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calculation + CHECK_RESULT $? 0 0 "remove texlive-calculation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculator-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculator-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..368337393e2eec3e3fd88cfa95b8ff5a80c56432 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculator-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calculator-doc | grep -v \.src | grep texlive-calculator-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calculator-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calculator-doc + CHECK_RESULT $? 0 0 "install texlive-calculator-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calculator-doc + CHECK_RESULT $? 0 0 "remove texlive-calculator-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculator.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculator.sh new file mode 100644 index 0000000000000000000000000000000000000000..04fe4502d8ec9ab4938ad59b2dda32461b112b7b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calculator.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calculator | grep -v \.src | grep texlive-calculator + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calculator" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calculator + CHECK_RESULT $? 0 0 "install texlive-calculator failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calculator + CHECK_RESULT $? 0 0 "remove texlive-calculator failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f4d85d5f54437e899c676c7ff2662ea13ecd515 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calligra-doc | grep -v \.src | grep texlive-calligra-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calligra-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calligra-doc + CHECK_RESULT $? 0 0 "install texlive-calligra-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calligra-doc + CHECK_RESULT $? 0 0 "remove texlive-calligra-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra-type1-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra-type1-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..66c2f711cfccf78ce453d6f25d11d7d07bcf0aa6 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra-type1-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calligra-type1-doc | grep -v \.src | grep texlive-calligra-type1-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calligra-type1-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calligra-type1-doc + CHECK_RESULT $? 0 0 "install texlive-calligra-type1-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calligra-type1-doc + CHECK_RESULT $? 0 0 "remove texlive-calligra-type1-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra-type1.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra-type1.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b228f9c0ebca6635774bfe35d672b0783ce8e63 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra-type1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calligra-type1 | grep -v \.src | grep texlive-calligra-type1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calligra-type1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calligra-type1 + CHECK_RESULT $? 0 0 "install texlive-calligra-type1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calligra-type1 + CHECK_RESULT $? 0 0 "remove texlive-calligra-type1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra.sh new file mode 100644 index 0000000000000000000000000000000000000000..c73e446b1ec531a234fb7ed6ddf89f151040b622 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calligra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calligra | grep -v \.src | grep texlive-calligra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calligra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calligra + CHECK_RESULT $? 0 0 "install texlive-calligra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calligra + CHECK_RESULT $? 0 0 "remove texlive-calligra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-callouts.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-callouts.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e41d18b2cbf90f9b8daa40b4e2beceb4a03ccea --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-callouts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-callouts | grep -v \.src | grep texlive-callouts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-callouts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-callouts + CHECK_RESULT $? 0 0 "install texlive-callouts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-callouts + CHECK_RESULT $? 0 0 "remove texlive-callouts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calrsfs-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calrsfs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..55ee4e47f938a6e2fe9342393afb7d3be8c0403a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calrsfs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calrsfs-doc | grep -v \.src | grep texlive-calrsfs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calrsfs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calrsfs-doc + CHECK_RESULT $? 0 0 "install texlive-calrsfs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calrsfs-doc + CHECK_RESULT $? 0 0 "remove texlive-calrsfs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calrsfs.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calrsfs.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5ff270cfaea84ec2ef225f820bb3032d5f4cb53 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calrsfs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calrsfs | grep -v \.src | grep texlive-calrsfs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calrsfs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calrsfs + CHECK_RESULT $? 0 0 "install texlive-calrsfs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calrsfs + CHECK_RESULT $? 0 0 "remove texlive-calrsfs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cals-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cals-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a45f8dce0bdb908f9a1346a1a5af2a004275b48f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cals-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cals-doc | grep -v \.src | grep texlive-cals-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cals-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cals-doc + CHECK_RESULT $? 0 0 "install texlive-cals-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cals-doc + CHECK_RESULT $? 0 0 "remove texlive-cals-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cals.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cals.sh new file mode 100644 index 0000000000000000000000000000000000000000..79edab35f298bb7e6a13663e0c1e93afe45fd1ae --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cals.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cals | grep -v \.src | grep texlive-cals + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cals" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cals + CHECK_RESULT $? 0 0 "install texlive-cals failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cals + CHECK_RESULT $? 0 0 "remove texlive-cals failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calxxxx-yyyy-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calxxxx-yyyy-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4fcc3835247c872d19bb99e55b6bb0b6618bb899 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calxxxx-yyyy-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calxxxx-yyyy-doc | grep -v \.src | grep texlive-calxxxx-yyyy-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calxxxx-yyyy-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calxxxx-yyyy-doc + CHECK_RESULT $? 0 0 "install texlive-calxxxx-yyyy-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calxxxx-yyyy-doc + CHECK_RESULT $? 0 0 "remove texlive-calxxxx-yyyy-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calxxxx-yyyy.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calxxxx-yyyy.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2af2749b506d1f2a4b38a72c07a65148624d9fa --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-calxxxx-yyyy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-calxxxx-yyyy | grep -v \.src | grep texlive-calxxxx-yyyy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-calxxxx-yyyy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-calxxxx-yyyy + CHECK_RESULT $? 0 0 "install texlive-calxxxx-yyyy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-calxxxx-yyyy + CHECK_RESULT $? 0 0 "remove texlive-calxxxx-yyyy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cancel-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cancel-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5267e8b404de6e10684ceafaad4b1f82959ed5a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cancel-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cancel-doc | grep -v \.src | grep texlive-cancel-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cancel-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cancel-doc + CHECK_RESULT $? 0 0 "install texlive-cancel-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cancel-doc + CHECK_RESULT $? 0 0 "remove texlive-cancel-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cancel.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cancel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d384b3f67569638a36ccddee0af8aa2ab570db1 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cancel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cancel | grep -v \.src | grep texlive-cancel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cancel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cancel + CHECK_RESULT $? 0 0 "install texlive-cancel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cancel + CHECK_RESULT $? 0 0 "remove texlive-cancel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-canoniclayout-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-canoniclayout-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..669aab656e6a7679502b80cda7c75474f6febdc2 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-canoniclayout-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-canoniclayout-doc | grep -v \.src | grep texlive-canoniclayout-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-canoniclayout-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-canoniclayout-doc + CHECK_RESULT $? 0 0 "install texlive-canoniclayout-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-canoniclayout-doc + CHECK_RESULT $? 0 0 "remove texlive-canoniclayout-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-canoniclayout.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-canoniclayout.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f99038d1145d45bc9b10240c1b4a3e7dff22645 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-canoniclayout.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-canoniclayout | grep -v \.src | grep texlive-canoniclayout + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-canoniclayout" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-canoniclayout + CHECK_RESULT $? 0 0 "install texlive-canoniclayout failed" + SLEEP_WAIT 1 + dnf remove -y texlive-canoniclayout + CHECK_RESULT $? 0 0 "remove texlive-canoniclayout failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cantarell-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cantarell-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8efe04f0a8eee21502afa2314ff2d9a7e1708f09 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cantarell-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cantarell-doc | grep -v \.src | grep texlive-cantarell-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cantarell-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cantarell-doc + CHECK_RESULT $? 0 0 "install texlive-cantarell-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cantarell-doc + CHECK_RESULT $? 0 0 "remove texlive-cantarell-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cantarell.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cantarell.sh new file mode 100644 index 0000000000000000000000000000000000000000..681bf4b25921d32ddc4344febca9c7036315ea4a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cantarell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cantarell | grep -v \.src | grep texlive-cantarell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cantarell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cantarell + CHECK_RESULT $? 0 0 "install texlive-cantarell failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cantarell + CHECK_RESULT $? 0 0 "remove texlive-cantarell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-capt-of-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-capt-of-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f00c93fe03b9b306156e27ff6af031a4f4432d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-capt-of-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-capt-of-doc | grep -v \.src | grep texlive-capt-of-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-capt-of-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-capt-of-doc + CHECK_RESULT $? 0 0 "install texlive-capt-of-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-capt-of-doc + CHECK_RESULT $? 0 0 "remove texlive-capt-of-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-capt-of.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-capt-of.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f7e18a148bb6be2cb8d1db90445f79a0d6ca464 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-capt-of.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-capt-of | grep -v \.src | grep texlive-capt-of + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-capt-of" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-capt-of + CHECK_RESULT $? 0 0 "install texlive-capt-of failed" + SLEEP_WAIT 1 + dnf remove -y texlive-capt-of + CHECK_RESULT $? 0 0 "remove texlive-capt-of failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captcont-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captcont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d494ed996dc61fe3a3690d427fa95e950e012218 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captcont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-captcont-doc | grep -v \.src | grep texlive-captcont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-captcont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-captcont-doc + CHECK_RESULT $? 0 0 "install texlive-captcont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-captcont-doc + CHECK_RESULT $? 0 0 "remove texlive-captcont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captcont.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captcont.sh new file mode 100644 index 0000000000000000000000000000000000000000..621d286efe914bc62cc447f95181c52d1a15852b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captcont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-captcont | grep -v \.src | grep texlive-captcont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-captcont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-captcont + CHECK_RESULT $? 0 0 "install texlive-captcont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-captcont + CHECK_RESULT $? 0 0 "remove texlive-captcont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captdef-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captdef-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5eec8afc09a21f6e1d8c76d3b1a84d54ce639b5c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captdef-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-captdef-doc | grep -v \.src | grep texlive-captdef-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-captdef-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-captdef-doc + CHECK_RESULT $? 0 0 "install texlive-captdef-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-captdef-doc + CHECK_RESULT $? 0 0 "remove texlive-captdef-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captdef.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captdef.sh new file mode 100644 index 0000000000000000000000000000000000000000..0462428a1c468a934e62df2d3fb49e9cf5e0025a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-captdef.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-captdef | grep -v \.src | grep texlive-captdef + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-captdef" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-captdef + CHECK_RESULT $? 0 0 "install texlive-captdef failed" + SLEEP_WAIT 1 + dnf remove -y texlive-captdef + CHECK_RESULT $? 0 0 "remove texlive-captdef failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caption-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caption-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2003672c6458ae9ab8542743ca1c2dc89dc51dd4 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caption-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-caption-doc | grep -v \.src | grep texlive-caption-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-caption-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-caption-doc + CHECK_RESULT $? 0 0 "install texlive-caption-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-caption-doc + CHECK_RESULT $? 0 0 "remove texlive-caption-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caption.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caption.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8b27bacdc87cf4e636392c3eb315e48a6bd8f70 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-caption.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-caption | grep -v \.src | grep texlive-caption + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-caption" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-caption + CHECK_RESULT $? 0 0 "install texlive-caption failed" + SLEEP_WAIT 1 + dnf remove -y texlive-caption + CHECK_RESULT $? 0 0 "remove texlive-caption failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carbohydrates-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carbohydrates-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2abc1a12336f933c377b85a99fe32be0332aa29 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carbohydrates-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-carbohydrates-doc | grep -v \.src | grep texlive-carbohydrates-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-carbohydrates-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-carbohydrates-doc + CHECK_RESULT $? 0 0 "install texlive-carbohydrates-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-carbohydrates-doc + CHECK_RESULT $? 0 0 "remove texlive-carbohydrates-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carbohydrates.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carbohydrates.sh new file mode 100644 index 0000000000000000000000000000000000000000..84ea442953603e7ae20a6a22da40cf78097e3dfc --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carbohydrates.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-carbohydrates | grep -v \.src | grep texlive-carbohydrates + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-carbohydrates" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-carbohydrates + CHECK_RESULT $? 0 0 "install texlive-carbohydrates failed" + SLEEP_WAIT 1 + dnf remove -y texlive-carbohydrates + CHECK_RESULT $? 0 0 "remove texlive-carbohydrates failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlisle-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlisle-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..eea78eb1bb3a71e973a79fc37208954cc2e2b134 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlisle-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-carlisle-doc | grep -v \.src | grep texlive-carlisle-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-carlisle-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-carlisle-doc + CHECK_RESULT $? 0 0 "install texlive-carlisle-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-carlisle-doc + CHECK_RESULT $? 0 0 "remove texlive-carlisle-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlisle.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlisle.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c7e50ab12f50c9e363979c31664ba52dc18fb04 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlisle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-carlisle | grep -v \.src | grep texlive-carlisle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-carlisle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-carlisle + CHECK_RESULT $? 0 0 "install texlive-carlisle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-carlisle + CHECK_RESULT $? 0 0 "remove texlive-carlisle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlito-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlito-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2fce050e0fa814ee4ab1ae5fc40e5c539e97b97 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlito-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-carlito-doc | grep -v \.src | grep texlive-carlito-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-carlito-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-carlito-doc + CHECK_RESULT $? 0 0 "install texlive-carlito-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-carlito-doc + CHECK_RESULT $? 0 0 "remove texlive-carlito-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlito.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlito.sh new file mode 100644 index 0000000000000000000000000000000000000000..183314f2f7c52edc0c9518c3fd4334b67ef69e0a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carlito.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-carlito | grep -v \.src | grep texlive-carlito + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-carlito" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-carlito + CHECK_RESULT $? 0 0 "install texlive-carlito failed" + SLEEP_WAIT 1 + dnf remove -y texlive-carlito + CHECK_RESULT $? 0 0 "remove texlive-carlito failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carolmin-ps-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carolmin-ps-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc2b708eea1a08e859a74b050e293f08bbca671c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carolmin-ps-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-carolmin-ps-doc | grep -v \.src | grep texlive-carolmin-ps-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-carolmin-ps-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-carolmin-ps-doc + CHECK_RESULT $? 0 0 "install texlive-carolmin-ps-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-carolmin-ps-doc + CHECK_RESULT $? 0 0 "remove texlive-carolmin-ps-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carolmin-ps.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carolmin-ps.sh new file mode 100644 index 0000000000000000000000000000000000000000..00cb813fcabbdbc24677aa1afe9e562c598a6cbc --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-carolmin-ps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-carolmin-ps | grep -v \.src | grep texlive-carolmin-ps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-carolmin-ps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-carolmin-ps + CHECK_RESULT $? 0 0 "install texlive-carolmin-ps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-carolmin-ps + CHECK_RESULT $? 0 0 "remove texlive-carolmin-ps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cascade.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cascade.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e309b11092ed0d95035ea79f28890314198969c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cascade.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cascade | grep -v \.src | grep texlive-cascade + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cascade" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cascade + CHECK_RESULT $? 0 0 "install texlive-cascade failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cascade + CHECK_RESULT $? 0 0 "remove texlive-cascade failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cascadilla-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cascadilla-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3723acdf07e5f6df874fdb08feb468eb4419c8e --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cascadilla-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cascadilla-doc | grep -v \.src | grep texlive-cascadilla-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cascadilla-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cascadilla-doc + CHECK_RESULT $? 0 0 "install texlive-cascadilla-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cascadilla-doc + CHECK_RESULT $? 0 0 "remove texlive-cascadilla-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cascadilla.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cascadilla.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c2a0d1341f23a5289f2b6a8cc57aec626ad59fd --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cascadilla.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cascadilla | grep -v \.src | grep texlive-cascadilla + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cascadilla" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cascadilla + CHECK_RESULT $? 0 0 "install texlive-cascadilla failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cascadilla + CHECK_RESULT $? 0 0 "remove texlive-cascadilla failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cases-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cases-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..390d2a1c507f8acb9e71191239bf3b15dec22ef5 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cases-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cases-doc | grep -v \.src | grep texlive-cases-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cases-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cases-doc + CHECK_RESULT $? 0 0 "install texlive-cases-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cases-doc + CHECK_RESULT $? 0 0 "remove texlive-cases-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cases.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cases.sh new file mode 100644 index 0000000000000000000000000000000000000000..41ffd7809c2378df149b58c6a044bc0e54256391 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cases.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cases | grep -v \.src | grep texlive-cases + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cases" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cases + CHECK_RESULT $? 0 0 "install texlive-cases failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cases + CHECK_RESULT $? 0 0 "remove texlive-cases failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-casyl-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-casyl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9505d89976de3246f58a978e86e6e52b126458d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-casyl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-casyl-doc | grep -v \.src | grep texlive-casyl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-casyl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-casyl-doc + CHECK_RESULT $? 0 0 "install texlive-casyl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-casyl-doc + CHECK_RESULT $? 0 0 "remove texlive-casyl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-casyl.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-casyl.sh new file mode 100644 index 0000000000000000000000000000000000000000..5369ad56b8105e3e5165055831b46319ca54b628 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-casyl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-casyl | grep -v \.src | grep texlive-casyl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-casyl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-casyl + CHECK_RESULT $? 0 0 "install texlive-casyl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-casyl + CHECK_RESULT $? 0 0 "remove texlive-casyl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catchfilebetweentags-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catchfilebetweentags-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..95a660c6070c3d09714fd562d149c890c881e6af --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catchfilebetweentags-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-catchfilebetweentags-doc | grep -v \.src | grep texlive-catchfilebetweentags-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-catchfilebetweentags-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-catchfilebetweentags-doc + CHECK_RESULT $? 0 0 "install texlive-catchfilebetweentags-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-catchfilebetweentags-doc + CHECK_RESULT $? 0 0 "remove texlive-catchfilebetweentags-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catchfilebetweentags.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catchfilebetweentags.sh new file mode 100644 index 0000000000000000000000000000000000000000..3835283d937525e98f5c877ea6fdc94ce16ce08f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catchfilebetweentags.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-catchfilebetweentags | grep -v \.src | grep texlive-catchfilebetweentags + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-catchfilebetweentags" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-catchfilebetweentags + CHECK_RESULT $? 0 0 "install texlive-catchfilebetweentags failed" + SLEEP_WAIT 1 + dnf remove -y texlive-catchfilebetweentags + CHECK_RESULT $? 0 0 "remove texlive-catchfilebetweentags failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catcodes-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catcodes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2f95591d5e966e2cec3c0816e8d3a0ae9fa0e5d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catcodes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-catcodes-doc | grep -v \.src | grep texlive-catcodes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-catcodes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-catcodes-doc + CHECK_RESULT $? 0 0 "install texlive-catcodes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-catcodes-doc + CHECK_RESULT $? 0 0 "remove texlive-catcodes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catcodes.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catcodes.sh new file mode 100644 index 0000000000000000000000000000000000000000..c32afe9b5871de1c9884a7d3f57643a709f04890 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catcodes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-catcodes | grep -v \.src | grep texlive-catcodes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-catcodes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-catcodes + CHECK_RESULT $? 0 0 "install texlive-catcodes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-catcodes + CHECK_RESULT $? 0 0 "remove texlive-catcodes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catechis-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catechis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab986e735326219cb67c4c36eee754841be29e71 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catechis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-catechis-doc | grep -v \.src | grep texlive-catechis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-catechis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-catechis-doc + CHECK_RESULT $? 0 0 "install texlive-catechis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-catechis-doc + CHECK_RESULT $? 0 0 "remove texlive-catechis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catechis.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catechis.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f624b96d7c71eef62d6e42801d8ea9b78359fb5 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catechis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-catechis | grep -v \.src | grep texlive-catechis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-catechis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-catechis + CHECK_RESULT $? 0 0 "install texlive-catechis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-catechis + CHECK_RESULT $? 0 0 "remove texlive-catechis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catoptions-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catoptions-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..af7bc57dcb3a2418fa87ea2656fa6e081c9c08ad --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catoptions-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-catoptions-doc | grep -v \.src | grep texlive-catoptions-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-catoptions-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-catoptions-doc + CHECK_RESULT $? 0 0 "install texlive-catoptions-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-catoptions-doc + CHECK_RESULT $? 0 0 "remove texlive-catoptions-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catoptions.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catoptions.sh new file mode 100644 index 0000000000000000000000000000000000000000..2aeed0a2cb5027572f0aafe4558dd5f44af0dcdf --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-catoptions.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-catoptions | grep -v \.src | grep texlive-catoptions + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-catoptions" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-catoptions + CHECK_RESULT $? 0 0 "install texlive-catoptions failed" + SLEEP_WAIT 1 + dnf remove -y texlive-catoptions + CHECK_RESULT $? 0 0 "remove texlive-catoptions failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbcoptic-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbcoptic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..71e4a45249b05375f12918dee865c06fd8b99a69 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbcoptic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cbcoptic-doc | grep -v \.src | grep texlive-cbcoptic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cbcoptic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cbcoptic-doc + CHECK_RESULT $? 0 0 "install texlive-cbcoptic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cbcoptic-doc + CHECK_RESULT $? 0 0 "remove texlive-cbcoptic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbcoptic.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbcoptic.sh new file mode 100644 index 0000000000000000000000000000000000000000..74e96e94c584ec8f18a43ae6f9d157af4494206a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbcoptic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cbcoptic | grep -v \.src | grep texlive-cbcoptic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cbcoptic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cbcoptic + CHECK_RESULT $? 0 0 "install texlive-cbcoptic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cbcoptic + CHECK_RESULT $? 0 0 "remove texlive-cbcoptic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d251058170f54eb06297c3c0705a7655323d028d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cbfonts-doc | grep -v \.src | grep texlive-cbfonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cbfonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cbfonts-doc + CHECK_RESULT $? 0 0 "install texlive-cbfonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cbfonts-doc + CHECK_RESULT $? 0 0 "remove texlive-cbfonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-fd-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-fd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc5805846651041786afbd0b0c7b3bdc90d30a12 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-fd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cbfonts-fd-doc | grep -v \.src | grep texlive-cbfonts-fd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cbfonts-fd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cbfonts-fd-doc + CHECK_RESULT $? 0 0 "install texlive-cbfonts-fd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cbfonts-fd-doc + CHECK_RESULT $? 0 0 "remove texlive-cbfonts-fd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-fd.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-fd.sh new file mode 100644 index 0000000000000000000000000000000000000000..e28bdcfcdf6bf48b27c36428a22199cb76f6c6df --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts-fd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cbfonts-fd | grep -v \.src | grep texlive-cbfonts-fd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cbfonts-fd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cbfonts-fd + CHECK_RESULT $? 0 0 "install texlive-cbfonts-fd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cbfonts-fd + CHECK_RESULT $? 0 0 "remove texlive-cbfonts-fd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..1acf107c6e377ff4d4388a74cd9420ffb216f3fd --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cbfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cbfonts | grep -v \.src | grep texlive-cbfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cbfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cbfonts + CHECK_RESULT $? 0 0 "install texlive-cbfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cbfonts + CHECK_RESULT $? 0 0 "remove texlive-cbfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cc-pl-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cc-pl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a47a1897a4ebf3ad8dfb4bf053b2fa240d3bd30 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cc-pl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cc-pl-doc | grep -v \.src | grep texlive-cc-pl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cc-pl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cc-pl-doc + CHECK_RESULT $? 0 0 "install texlive-cc-pl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cc-pl-doc + CHECK_RESULT $? 0 0 "remove texlive-cc-pl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cc-pl.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cc-pl.sh new file mode 100644 index 0000000000000000000000000000000000000000..1eb90b8bf8156aec1ea406b82edf2fa3fc5d0d00 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cc-pl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cc-pl | grep -v \.src | grep texlive-cc-pl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cc-pl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cc-pl + CHECK_RESULT $? 0 0 "install texlive-cc-pl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cc-pl + CHECK_RESULT $? 0 0 "remove texlive-cc-pl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccaption-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccaption-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6602aff20dbece82073410ca557d9f40b5dfe090 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccaption-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ccaption-doc | grep -v \.src | grep texlive-ccaption-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ccaption-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ccaption-doc + CHECK_RESULT $? 0 0 "install texlive-ccaption-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ccaption-doc + CHECK_RESULT $? 0 0 "remove texlive-ccaption-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccaption.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccaption.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cd20496597e0814922517c04725e2ad814d3248 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccaption.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ccaption | grep -v \.src | grep texlive-ccaption + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ccaption" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ccaption + CHECK_RESULT $? 0 0 "install texlive-ccaption failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ccaption + CHECK_RESULT $? 0 0 "remove texlive-ccaption failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccfonts-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccfonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ea5d94929e2313dddef0c0c2dcb1fcaa7299d25 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccfonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ccfonts-doc | grep -v \.src | grep texlive-ccfonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ccfonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ccfonts-doc + CHECK_RESULT $? 0 0 "install texlive-ccfonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ccfonts-doc + CHECK_RESULT $? 0 0 "remove texlive-ccfonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccfonts.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2d5556625c13d6b36cdc14a67855be071c924d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ccfonts | grep -v \.src | grep texlive-ccfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ccfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ccfonts + CHECK_RESULT $? 0 0 "install texlive-ccfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ccfonts + CHECK_RESULT $? 0 0 "remove texlive-ccfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccicons-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccicons-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..920abdeb5eb205711b69eaf6ddd4cb97b338b7ea --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccicons-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ccicons-doc | grep -v \.src | grep texlive-ccicons-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ccicons-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ccicons-doc + CHECK_RESULT $? 0 0 "install texlive-ccicons-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ccicons-doc + CHECK_RESULT $? 0 0 "remove texlive-ccicons-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccicons.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccicons.sh new file mode 100644 index 0000000000000000000000000000000000000000..26cc634a1d6e1976a27a05832e11b0deb0644172 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-ccicons.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ccicons | grep -v \.src | grep texlive-ccicons + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ccicons" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ccicons + CHECK_RESULT $? 0 0 "install texlive-ccicons failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ccicons + CHECK_RESULT $? 0 0 "remove texlive-ccicons failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cclicenses-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cclicenses-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e51e1a741a7c3ece8494134f2bdefa45602e73fd --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cclicenses-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cclicenses-doc | grep -v \.src | grep texlive-cclicenses-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cclicenses-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cclicenses-doc + CHECK_RESULT $? 0 0 "install texlive-cclicenses-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cclicenses-doc + CHECK_RESULT $? 0 0 "remove texlive-cclicenses-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cclicenses.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cclicenses.sh new file mode 100644 index 0000000000000000000000000000000000000000..4fab2b1345057516cbe033035000855eadfc6bf4 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cclicenses.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cclicenses | grep -v \.src | grep texlive-cclicenses + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cclicenses" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cclicenses + CHECK_RESULT $? 0 0 "install texlive-cclicenses failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cclicenses + CHECK_RESULT $? 0 0 "remove texlive-cclicenses failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd-cover-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd-cover-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..53e43668ba740ef0b920604e4a16836a61fc4a24 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd-cover-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cd-cover-doc | grep -v \.src | grep texlive-cd-cover-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cd-cover-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cd-cover-doc + CHECK_RESULT $? 0 0 "install texlive-cd-cover-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cd-cover-doc + CHECK_RESULT $? 0 0 "remove texlive-cd-cover-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd-cover.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd-cover.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0ad5d54c5c7abc097ced13a40109b292e3fafd4 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd-cover.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cd-cover | grep -v \.src | grep texlive-cd-cover + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cd-cover" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cd-cover + CHECK_RESULT $? 0 0 "install texlive-cd-cover failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cd-cover + CHECK_RESULT $? 0 0 "remove texlive-cd-cover failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ddabf7c5e71782934667cd3c8ff7cd1ec3ec179 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cd-doc | grep -v \.src | grep texlive-cd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cd-doc + CHECK_RESULT $? 0 0 "install texlive-cd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cd-doc + CHECK_RESULT $? 0 0 "remove texlive-cd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd.sh new file mode 100644 index 0000000000000000000000000000000000000000..0203860ac4d03fb6123a780283957f5fd3338f17 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cd | grep -v \.src | grep texlive-cd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cd + CHECK_RESULT $? 0 0 "install texlive-cd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cd + CHECK_RESULT $? 0 0 "remove texlive-cd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cdpbundl-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cdpbundl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..78f8606582f6d8c1fed7e336ef26f1d830170f3c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cdpbundl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cdpbundl-doc | grep -v \.src | grep texlive-cdpbundl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cdpbundl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cdpbundl-doc + CHECK_RESULT $? 0 0 "install texlive-cdpbundl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cdpbundl-doc + CHECK_RESULT $? 0 0 "remove texlive-cdpbundl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cdpbundl.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cdpbundl.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6fcb3fc9a5ebb0e673377f6264bde5fa2015e52 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cdpbundl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cdpbundl | grep -v \.src | grep texlive-cdpbundl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cdpbundl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cdpbundl + CHECK_RESULT $? 0 0 "install texlive-cdpbundl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cdpbundl + CHECK_RESULT $? 0 0 "remove texlive-cdpbundl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cell-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cell-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..55291d326a14338e22632d4fecc150527b7d9c23 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cell-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cell-doc | grep -v \.src | grep texlive-cell-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cell-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cell-doc + CHECK_RESULT $? 0 0 "install texlive-cell-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cell-doc + CHECK_RESULT $? 0 0 "remove texlive-cell-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cell.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cell.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b3db3cdcf5204a1f244b43c9b9ab95f888d59f6 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cell | grep -v \.src | grep texlive-cell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cell + CHECK_RESULT $? 0 0 "install texlive-cell failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cell + CHECK_RESULT $? 0 0 "remove texlive-cell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cellprops.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cellprops.sh new file mode 100644 index 0000000000000000000000000000000000000000..592eacac60084f91f20b1324af2ab62bb7e1a3ca --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cellprops.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cellprops | grep -v \.src | grep texlive-cellprops + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cellprops" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cellprops + CHECK_RESULT $? 0 0 "install texlive-cellprops failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cellprops + CHECK_RESULT $? 0 0 "remove texlive-cellprops failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cellspace-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cellspace-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b6bc2a8719f3e4a5918801333eaca5ba68a3718 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cellspace-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cellspace-doc | grep -v \.src | grep texlive-cellspace-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cellspace-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cellspace-doc + CHECK_RESULT $? 0 0 "install texlive-cellspace-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cellspace-doc + CHECK_RESULT $? 0 0 "remove texlive-cellspace-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cellspace.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cellspace.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a4d8cb3aa637bf719507d43cc18aa9446539d45 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cellspace.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cellspace | grep -v \.src | grep texlive-cellspace + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cellspace" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cellspace + CHECK_RESULT $? 0 0 "install texlive-cellspace failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cellspace + CHECK_RESULT $? 0 0 "remove texlive-cellspace failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-celtic-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-celtic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..73f5c7e994c1d023d4333cef6030b600980a918b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-celtic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-celtic-doc | grep -v \.src | grep texlive-celtic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-celtic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-celtic-doc + CHECK_RESULT $? 0 0 "install texlive-celtic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-celtic-doc + CHECK_RESULT $? 0 0 "remove texlive-celtic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-celtic.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-celtic.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e14d2f4358f2b1f2218ce5f22d307e7bbb573f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-celtic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-celtic | grep -v \.src | grep texlive-celtic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-celtic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-celtic + CHECK_RESULT $? 0 0 "install texlive-celtic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-celtic + CHECK_RESULT $? 0 0 "remove texlive-celtic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-censor-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-censor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a068da48821b8e8f73f65f6463b26aaaab08ada0 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-censor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-censor-doc | grep -v \.src | grep texlive-censor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-censor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-censor-doc + CHECK_RESULT $? 0 0 "install texlive-censor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-censor-doc + CHECK_RESULT $? 0 0 "remove texlive-censor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-censor.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-censor.sh new file mode 100644 index 0000000000000000000000000000000000000000..164ab655eedd327c899bb0b04ce0ce6dd141777a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-censor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-censor | grep -v \.src | grep texlive-censor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-censor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-censor + CHECK_RESULT $? 0 0 "install texlive-censor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-censor + CHECK_RESULT $? 0 0 "remove texlive-censor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cesenaexam.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cesenaexam.sh new file mode 100644 index 0000000000000000000000000000000000000000..75f8e3443fa74124bf4a3ab352a81d867c5b4a93 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cesenaexam.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cesenaexam | grep -v \.src | grep texlive-cesenaexam + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cesenaexam" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cesenaexam + CHECK_RESULT $? 0 0 "install texlive-cesenaexam failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cesenaexam + CHECK_RESULT $? 0 0 "remove texlive-cesenaexam failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-initials-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-initials-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a721f3c46a96c7108ec0d19073610cf76b581a33 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-initials-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cfr-initials-doc | grep -v \.src | grep texlive-cfr-initials-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cfr-initials-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cfr-initials-doc + CHECK_RESULT $? 0 0 "install texlive-cfr-initials-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cfr-initials-doc + CHECK_RESULT $? 0 0 "remove texlive-cfr-initials-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-initials.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-initials.sh new file mode 100644 index 0000000000000000000000000000000000000000..970c5d189a97ded4e2203ea9c14baf9a2c2ed12b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-initials.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cfr-initials | grep -v \.src | grep texlive-cfr-initials + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cfr-initials" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cfr-initials + CHECK_RESULT $? 0 0 "install texlive-cfr-initials failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cfr-initials + CHECK_RESULT $? 0 0 "remove texlive-cfr-initials failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-lm-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-lm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c41d0109b4a7deb7ec7a3a99ede4b2c712cd1f43 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-lm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cfr-lm-doc | grep -v \.src | grep texlive-cfr-lm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cfr-lm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cfr-lm-doc + CHECK_RESULT $? 0 0 "install texlive-cfr-lm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cfr-lm-doc + CHECK_RESULT $? 0 0 "remove texlive-cfr-lm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-lm.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-lm.sh new file mode 100644 index 0000000000000000000000000000000000000000..5874509ee8d0f9002ff5170b619d59feb65e7735 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cfr-lm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cfr-lm | grep -v \.src | grep texlive-cfr-lm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cfr-lm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cfr-lm + CHECK_RESULT $? 0 0 "install texlive-cfr-lm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cfr-lm + CHECK_RESULT $? 0 0 "remove texlive-cfr-lm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changebar-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changebar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..492d8e6b319a53086c395edbdb99d9512f037b28 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changebar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-changebar-doc | grep -v \.src | grep texlive-changebar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-changebar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-changebar-doc + CHECK_RESULT $? 0 0 "install texlive-changebar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-changebar-doc + CHECK_RESULT $? 0 0 "remove texlive-changebar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changebar.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changebar.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8647ad2cc5fcd282cdf022ac31c6208803cd989 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changebar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-changebar | grep -v \.src | grep texlive-changebar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-changebar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-changebar + CHECK_RESULT $? 0 0 "install texlive-changebar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-changebar + CHECK_RESULT $? 0 0 "remove texlive-changebar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changelayout-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changelayout-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0490ac25887080751973eff0d56e8230d0f22c66 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changelayout-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-changelayout-doc | grep -v \.src | grep texlive-changelayout-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-changelayout-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-changelayout-doc + CHECK_RESULT $? 0 0 "install texlive-changelayout-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-changelayout-doc + CHECK_RESULT $? 0 0 "remove texlive-changelayout-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changelayout.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changelayout.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc09e717839639258ace097cf7c80063e8a19696 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changelayout.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-changelayout | grep -v \.src | grep texlive-changelayout + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-changelayout" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-changelayout + CHECK_RESULT $? 0 0 "install texlive-changelayout failed" + SLEEP_WAIT 1 + dnf remove -y texlive-changelayout + CHECK_RESULT $? 0 0 "remove texlive-changelayout failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changepage-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changepage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4baff1c64fb9119e813df8a905329c606214ea96 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changepage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-changepage-doc | grep -v \.src | grep texlive-changepage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-changepage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-changepage-doc + CHECK_RESULT $? 0 0 "install texlive-changepage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-changepage-doc + CHECK_RESULT $? 0 0 "remove texlive-changepage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changepage.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changepage.sh new file mode 100644 index 0000000000000000000000000000000000000000..06a5edaa3d420f39155155c41ef7b2b8d518df29 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changepage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-changepage | grep -v \.src | grep texlive-changepage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-changepage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-changepage + CHECK_RESULT $? 0 0 "install texlive-changepage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-changepage + CHECK_RESULT $? 0 0 "remove texlive-changepage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changes-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..190425e6a578e78742f15ae25b79a86c928da2e9 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-changes-doc | grep -v \.src | grep texlive-changes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-changes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-changes-doc + CHECK_RESULT $? 0 0 "install texlive-changes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-changes-doc + CHECK_RESULT $? 0 0 "remove texlive-changes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changes.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changes.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b106e897c3ea0774dc76f1fdf55c9e1f41195c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-changes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-changes | grep -v \.src | grep texlive-changes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-changes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-changes + CHECK_RESULT $? 0 0 "install texlive-changes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-changes + CHECK_RESULT $? 0 0 "remove texlive-changes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chappg-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chappg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..32cc88cc85ef6baaaf7d12606bbfaae956efa34b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chappg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chappg-doc | grep -v \.src | grep texlive-chappg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chappg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chappg-doc + CHECK_RESULT $? 0 0 "install texlive-chappg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chappg-doc + CHECK_RESULT $? 0 0 "remove texlive-chappg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chappg.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chappg.sh new file mode 100644 index 0000000000000000000000000000000000000000..de84b0ffbd58de1635698854006d1cf087a82e31 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chappg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chappg | grep -v \.src | grep texlive-chappg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chappg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chappg + CHECK_RESULT $? 0 0 "install texlive-chappg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chappg + CHECK_RESULT $? 0 0 "remove texlive-chappg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chapterfolder-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chapterfolder-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..013b5f14447c27026af6f2a38b6c02560041c909 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chapterfolder-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chapterfolder-doc | grep -v \.src | grep texlive-chapterfolder-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chapterfolder-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chapterfolder-doc + CHECK_RESULT $? 0 0 "install texlive-chapterfolder-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chapterfolder-doc + CHECK_RESULT $? 0 0 "remove texlive-chapterfolder-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chapterfolder.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chapterfolder.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2d47ee12fce911133cba1295a39a82d006c23f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chapterfolder.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chapterfolder | grep -v \.src | grep texlive-chapterfolder + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chapterfolder" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chapterfolder + CHECK_RESULT $? 0 0 "install texlive-chapterfolder failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chapterfolder + CHECK_RESULT $? 0 0 "remove texlive-chapterfolder failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-charter-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-charter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..601bec3be4e3934f01610e14cc4474042a866adc --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-charter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-charter-doc | grep -v \.src | grep texlive-charter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-charter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-charter-doc + CHECK_RESULT $? 0 0 "install texlive-charter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-charter-doc + CHECK_RESULT $? 0 0 "remove texlive-charter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-charter.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-charter.sh new file mode 100644 index 0000000000000000000000000000000000000000..37c0b423fbe40f7bcf80f0d288e1270f652380ad --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-charter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-charter | grep -v \.src | grep texlive-charter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-charter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-charter + CHECK_RESULT $? 0 0 "install texlive-charter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-charter + CHECK_RESULT $? 0 0 "remove texlive-charter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chbibref-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chbibref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf0c635b5c4159768cf2a0229f6b8c1e88e4b59e --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chbibref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chbibref-doc | grep -v \.src | grep texlive-chbibref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chbibref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chbibref-doc + CHECK_RESULT $? 0 0 "install texlive-chbibref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chbibref-doc + CHECK_RESULT $? 0 0 "remove texlive-chbibref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chbibref.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chbibref.sh new file mode 100644 index 0000000000000000000000000000000000000000..9397f463dc4a828fd2c1a69b0b2f5112ce66d1a3 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chbibref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chbibref | grep -v \.src | grep texlive-chbibref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chbibref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chbibref + CHECK_RESULT $? 0 0 "install texlive-chbibref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chbibref + CHECK_RESULT $? 0 0 "remove texlive-chbibref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cheatsheet.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cheatsheet.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cb7a35a8575dc4a7dd0e113dc46c11927341ebe --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cheatsheet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cheatsheet | grep -v \.src | grep texlive-cheatsheet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cheatsheet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cheatsheet + CHECK_RESULT $? 0 0 "install texlive-cheatsheet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cheatsheet + CHECK_RESULT $? 0 0 "remove texlive-cheatsheet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chem-journal.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chem-journal.sh new file mode 100644 index 0000000000000000000000000000000000000000..6176ace355b3a0d96a621114a275b8a7fb509d42 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chem-journal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chem-journal | grep -v \.src | grep texlive-chem-journal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chem-journal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chem-journal + CHECK_RESULT $? 0 0 "install texlive-chem-journal failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chem-journal + CHECK_RESULT $? 0 0 "remove texlive-chem-journal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemarrow-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemarrow-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..489a69863a0ab700ee1090944e5d4e6e07bb2ce7 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemarrow-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemarrow-doc | grep -v \.src | grep texlive-chemarrow-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemarrow-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemarrow-doc + CHECK_RESULT $? 0 0 "install texlive-chemarrow-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemarrow-doc + CHECK_RESULT $? 0 0 "remove texlive-chemarrow-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemarrow.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemarrow.sh new file mode 100644 index 0000000000000000000000000000000000000000..18c12fe2c488addd9f6de001d0566bacacf1a8cd --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemarrow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemarrow | grep -v \.src | grep texlive-chemarrow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemarrow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemarrow + CHECK_RESULT $? 0 0 "install texlive-chemarrow failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemarrow + CHECK_RESULT $? 0 0 "remove texlive-chemarrow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chembst-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chembst-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..460065ef466739325bfb39789961a64bfc6a3e05 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chembst-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chembst-doc | grep -v \.src | grep texlive-chembst-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chembst-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chembst-doc + CHECK_RESULT $? 0 0 "install texlive-chembst-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chembst-doc + CHECK_RESULT $? 0 0 "remove texlive-chembst-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chembst.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chembst.sh new file mode 100644 index 0000000000000000000000000000000000000000..2052842b232dd8e8caaab84c334e72b62046b572 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chembst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chembst | grep -v \.src | grep texlive-chembst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chembst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chembst + CHECK_RESULT $? 0 0 "install texlive-chembst failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chembst + CHECK_RESULT $? 0 0 "remove texlive-chembst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcompounds-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcompounds-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4b405337f41d937040efc78a59f3af03f4344fa --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcompounds-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemcompounds-doc | grep -v \.src | grep texlive-chemcompounds-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemcompounds-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemcompounds-doc + CHECK_RESULT $? 0 0 "install texlive-chemcompounds-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemcompounds-doc + CHECK_RESULT $? 0 0 "remove texlive-chemcompounds-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcompounds.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcompounds.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c7befc53c89d7045e83d79866b694992d0192d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcompounds.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemcompounds | grep -v \.src | grep texlive-chemcompounds + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemcompounds" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemcompounds + CHECK_RESULT $? 0 0 "install texlive-chemcompounds failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemcompounds + CHECK_RESULT $? 0 0 "remove texlive-chemcompounds failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcono-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcono-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..678e9fc68f6c006df32e9873f34903b2dae815d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcono-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemcono-doc | grep -v \.src | grep texlive-chemcono-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemcono-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemcono-doc + CHECK_RESULT $? 0 0 "install texlive-chemcono-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemcono-doc + CHECK_RESULT $? 0 0 "remove texlive-chemcono-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcono.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcono.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5c2b81a936511a62f8af6e4545cf6c38460818c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemcono.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemcono | grep -v \.src | grep texlive-chemcono + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemcono" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemcono + CHECK_RESULT $? 0 0 "install texlive-chemcono failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemcono + CHECK_RESULT $? 0 0 "remove texlive-chemcono failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemexec-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemexec-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab0655c9b6b5065cb910904674bd394d2945d7a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemexec-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemexec-doc | grep -v \.src | grep texlive-chemexec-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemexec-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemexec-doc + CHECK_RESULT $? 0 0 "install texlive-chemexec-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemexec-doc + CHECK_RESULT $? 0 0 "remove texlive-chemexec-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemexec.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemexec.sh new file mode 100644 index 0000000000000000000000000000000000000000..6caa4fdf9577d0b00d6b64f4aa6b4f8a38eb80b0 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemexec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemexec | grep -v \.src | grep texlive-chemexec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemexec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemexec + CHECK_RESULT $? 0 0 "install texlive-chemexec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemexec + CHECK_RESULT $? 0 0 "remove texlive-chemexec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemfig-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemfig-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f682f36d7453eb4fa18f3352f627f24fc246ecbb --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemfig-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemfig-doc | grep -v \.src | grep texlive-chemfig-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemfig-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemfig-doc + CHECK_RESULT $? 0 0 "install texlive-chemfig-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemfig-doc + CHECK_RESULT $? 0 0 "remove texlive-chemfig-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemfig.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..b58040fc7289823169de9add46759d53e6abe27f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemfig | grep -v \.src | grep texlive-chemfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemfig + CHECK_RESULT $? 0 0 "install texlive-chemfig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemfig + CHECK_RESULT $? 0 0 "remove texlive-chemfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemformula-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemformula-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5961fe24e8fb903c08602b35eb43c7016811899 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemformula-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemformula-doc | grep -v \.src | grep texlive-chemformula-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemformula-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemformula-doc + CHECK_RESULT $? 0 0 "install texlive-chemformula-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemformula-doc + CHECK_RESULT $? 0 0 "remove texlive-chemformula-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemformula.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemformula.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dab0f0aaa9b1478e2802886e481c6143c4b70b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemformula.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemformula | grep -v \.src | grep texlive-chemformula + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemformula" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemformula + CHECK_RESULT $? 0 0 "install texlive-chemformula failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemformula + CHECK_RESULT $? 0 0 "remove texlive-chemformula failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemgreek-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemgreek-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0b1f877275ac07d8e65e3c5060961465dc88755 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemgreek-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemgreek-doc | grep -v \.src | grep texlive-chemgreek-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemgreek-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemgreek-doc + CHECK_RESULT $? 0 0 "install texlive-chemgreek-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemgreek-doc + CHECK_RESULT $? 0 0 "remove texlive-chemgreek-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemgreek.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemgreek.sh new file mode 100644 index 0000000000000000000000000000000000000000..e609e49daf745060fdd1a72be7b3c37a590c898c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemgreek.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemgreek | grep -v \.src | grep texlive-chemgreek + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemgreek" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemgreek + CHECK_RESULT $? 0 0 "install texlive-chemgreek failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemgreek + CHECK_RESULT $? 0 0 "remove texlive-chemgreek failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemmacros-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemmacros-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6dd1548448499ca0fc43544fd832fae1a869004b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemmacros-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemmacros-doc | grep -v \.src | grep texlive-chemmacros-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemmacros-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemmacros-doc + CHECK_RESULT $? 0 0 "install texlive-chemmacros-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemmacros-doc + CHECK_RESULT $? 0 0 "remove texlive-chemmacros-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemmacros.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemmacros.sh new file mode 100644 index 0000000000000000000000000000000000000000..5030b56362b2ffdcde0668bcae0dfa7777e1250a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemmacros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemmacros | grep -v \.src | grep texlive-chemmacros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemmacros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemmacros + CHECK_RESULT $? 0 0 "install texlive-chemmacros failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemmacros + CHECK_RESULT $? 0 0 "remove texlive-chemmacros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemnum-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemnum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b69a64c536671a09caf1513eda281965ae6d8509 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemnum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemnum-doc | grep -v \.src | grep texlive-chemnum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemnum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemnum-doc + CHECK_RESULT $? 0 0 "install texlive-chemnum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemnum-doc + CHECK_RESULT $? 0 0 "remove texlive-chemnum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemnum.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemnum.sh new file mode 100644 index 0000000000000000000000000000000000000000..0347c43271a8157e3753a6e5697c25b7fa815f52 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemnum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemnum | grep -v \.src | grep texlive-chemnum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemnum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemnum + CHECK_RESULT $? 0 0 "install texlive-chemnum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemnum + CHECK_RESULT $? 0 0 "remove texlive-chemnum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemschemex-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemschemex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed2a5a51c5c4eb3dcc9215fd87e59daa58320d51 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemschemex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemschemex-doc | grep -v \.src | grep texlive-chemschemex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemschemex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemschemex-doc + CHECK_RESULT $? 0 0 "install texlive-chemschemex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemschemex-doc + CHECK_RESULT $? 0 0 "remove texlive-chemschemex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemschemex.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemschemex.sh new file mode 100644 index 0000000000000000000000000000000000000000..1dd711bf478e7e2ef1d2c27b44f366bc6f5704f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemschemex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemschemex | grep -v \.src | grep texlive-chemschemex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemschemex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemschemex + CHECK_RESULT $? 0 0 "install texlive-chemschemex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemschemex + CHECK_RESULT $? 0 0 "remove texlive-chemschemex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemsec.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemsec.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfa9ebb72b9bf36c766bb9ea5694d23e0fb0b686 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemsec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemsec | grep -v \.src | grep texlive-chemsec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemsec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemsec + CHECK_RESULT $? 0 0 "install texlive-chemsec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemsec + CHECK_RESULT $? 0 0 "remove texlive-chemsec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemstyle-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemstyle-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2857f865d4f3f5ba37cdb7cf41d84797f8bd336 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemstyle-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemstyle-doc | grep -v \.src | grep texlive-chemstyle-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemstyle-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemstyle-doc + CHECK_RESULT $? 0 0 "install texlive-chemstyle-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemstyle-doc + CHECK_RESULT $? 0 0 "remove texlive-chemstyle-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemstyle.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemstyle.sh new file mode 100644 index 0000000000000000000000000000000000000000..4cafb758043c23509d66c9f539dd3255b91eb32f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chemstyle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemstyle | grep -v \.src | grep texlive-chemstyle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemstyle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemstyle + CHECK_RESULT $? 0 0 "install texlive-chemstyle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemstyle + CHECK_RESULT $? 0 0 "remove texlive-chemstyle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cherokee-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cherokee-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..91a61d49d6a0d4017fe04f0352e52866fc96058d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cherokee-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cherokee-doc | grep -v \.src | grep texlive-cherokee-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cherokee-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cherokee-doc + CHECK_RESULT $? 0 0 "install texlive-cherokee-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cherokee-doc + CHECK_RESULT $? 0 0 "remove texlive-cherokee-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cherokee.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cherokee.sh new file mode 100644 index 0000000000000000000000000000000000000000..07dbf06db43ed27a1c0f9944d20f95f0d0fa0b64 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cherokee.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cherokee | grep -v \.src | grep texlive-cherokee + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cherokee" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cherokee + CHECK_RESULT $? 0 0 "install texlive-cherokee failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cherokee + CHECK_RESULT $? 0 0 "remove texlive-cherokee failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..591f024f3df249f84204d0bfe8fb0cc8e2d7c5e9 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chess-doc | grep -v \.src | grep texlive-chess-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chess-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chess-doc + CHECK_RESULT $? 0 0 "install texlive-chess-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chess-doc + CHECK_RESULT $? 0 0 "remove texlive-chess-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess-problem-diagrams-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess-problem-diagrams-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..640000005aeda40ffb38db10f0c4047e325f7e20 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess-problem-diagrams-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chess-problem-diagrams-doc | grep -v \.src | grep texlive-chess-problem-diagrams-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chess-problem-diagrams-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chess-problem-diagrams-doc + CHECK_RESULT $? 0 0 "install texlive-chess-problem-diagrams-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chess-problem-diagrams-doc + CHECK_RESULT $? 0 0 "remove texlive-chess-problem-diagrams-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess-problem-diagrams.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess-problem-diagrams.sh new file mode 100644 index 0000000000000000000000000000000000000000..8291318258bb6a16125b7fb35eeea7e129b89621 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess-problem-diagrams.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chess-problem-diagrams | grep -v \.src | grep texlive-chess-problem-diagrams + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chess-problem-diagrams" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chess-problem-diagrams + CHECK_RESULT $? 0 0 "install texlive-chess-problem-diagrams failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chess-problem-diagrams + CHECK_RESULT $? 0 0 "remove texlive-chess-problem-diagrams failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess.sh new file mode 100644 index 0000000000000000000000000000000000000000..690d3efebe1e0335fd2918a9f269ceda18f19966 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chess.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chess | grep -v \.src | grep texlive-chess + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chess" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chess + CHECK_RESULT $? 0 0 "install texlive-chess failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chess + CHECK_RESULT $? 0 0 "remove texlive-chess failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessboard-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessboard-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0ce9090957093a77afb534aca0f6cb0350619d4 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessboard-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chessboard-doc | grep -v \.src | grep texlive-chessboard-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chessboard-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chessboard-doc + CHECK_RESULT $? 0 0 "install texlive-chessboard-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chessboard-doc + CHECK_RESULT $? 0 0 "remove texlive-chessboard-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessboard.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessboard.sh new file mode 100644 index 0000000000000000000000000000000000000000..eed4be92ec6afbf9eada413aad5ded60519cc401 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessboard.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chessboard | grep -v \.src | grep texlive-chessboard + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chessboard" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chessboard + CHECK_RESULT $? 0 0 "install texlive-chessboard failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chessboard + CHECK_RESULT $? 0 0 "remove texlive-chessboard failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessfss-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessfss-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cfb448cc0341239f4307600624a55fdda215604 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessfss-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chessfss-doc | grep -v \.src | grep texlive-chessfss-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chessfss-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chessfss-doc + CHECK_RESULT $? 0 0 "install texlive-chessfss-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chessfss-doc + CHECK_RESULT $? 0 0 "remove texlive-chessfss-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessfss.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessfss.sh new file mode 100644 index 0000000000000000000000000000000000000000..6240561ffa762cb3f8134f8a144cc9517b972e78 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chessfss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chessfss | grep -v \.src | grep texlive-chessfss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chessfss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chessfss + CHECK_RESULT $? 0 0 "install texlive-chessfss failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chessfss + CHECK_RESULT $? 0 0 "remove texlive-chessfss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chet-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chet-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f60e7f2d746a62c11e5c1a39eb29e5a345caa9ff --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chet-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chet-doc | grep -v \.src | grep texlive-chet-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chet-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chet-doc + CHECK_RESULT $? 0 0 "install texlive-chet-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chet-doc + CHECK_RESULT $? 0 0 "remove texlive-chet-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chet.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chet.sh new file mode 100644 index 0000000000000000000000000000000000000000..49e420787a86d56a30017d3e6f8ce1860222b38b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chet | grep -v \.src | grep texlive-chet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chet + CHECK_RESULT $? 0 0 "install texlive-chet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chet + CHECK_RESULT $? 0 0 "remove texlive-chet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chextras-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chextras-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..603f188f6bd879b043355c454f73527ad1ab5387 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chextras-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chextras-doc | grep -v \.src | grep texlive-chextras-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chextras-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chextras-doc + CHECK_RESULT $? 0 0 "install texlive-chextras-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chextras-doc + CHECK_RESULT $? 0 0 "remove texlive-chextras-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chextras.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chextras.sh new file mode 100644 index 0000000000000000000000000000000000000000..98a6af322f8af6a05958edf14f92f057a1cff820 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chextras.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chextras | grep -v \.src | grep texlive-chextras + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chextras" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chextras + CHECK_RESULT $? 0 0 "install texlive-chextras failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chextras + CHECK_RESULT $? 0 0 "remove texlive-chextras failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chicago-annote-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chicago-annote-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c29f57a78b09864f311c0eb6ee5f9d8ff101556 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chicago-annote-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chicago-annote-doc | grep -v \.src | grep texlive-chicago-annote-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chicago-annote-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chicago-annote-doc + CHECK_RESULT $? 0 0 "install texlive-chicago-annote-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chicago-annote-doc + CHECK_RESULT $? 0 0 "remove texlive-chicago-annote-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chicago-annote.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chicago-annote.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f394ae9775a7c1c862be3e074d6fa0a17334596 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chicago-annote.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chicago-annote | grep -v \.src | grep texlive-chicago-annote + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chicago-annote" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chicago-annote + CHECK_RESULT $? 0 0 "install texlive-chicago-annote failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chicago-annote + CHECK_RESULT $? 0 0 "remove texlive-chicago-annote failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chicago.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chicago.sh new file mode 100644 index 0000000000000000000000000000000000000000..aff43b7cf4255638849553437f61d35b8598aa8a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chicago.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chicago | grep -v \.src | grep texlive-chicago + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chicago" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chicago + CHECK_RESULT $? 0 0 "install texlive-chicago failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chicago + CHECK_RESULT $? 0 0 "remove texlive-chicago failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chickenize-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chickenize-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c49db5230a542ff3405cf7f6992485bc463ede4a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chickenize-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chickenize-doc | grep -v \.src | grep texlive-chickenize-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chickenize-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chickenize-doc + CHECK_RESULT $? 0 0 "install texlive-chickenize-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chickenize-doc + CHECK_RESULT $? 0 0 "remove texlive-chickenize-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chickenize.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chickenize.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3f0283aa836c09c7a41d341f1f060503784cafd --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chickenize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chickenize | grep -v \.src | grep texlive-chickenize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chickenize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chickenize + CHECK_RESULT $? 0 0 "install texlive-chickenize failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chickenize + CHECK_RESULT $? 0 0 "remove texlive-chickenize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-childdoc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-childdoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..62c914196d47468f2f5212fd5898c5e1b598265c --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-childdoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-childdoc | grep -v \.src | grep texlive-childdoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-childdoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-childdoc + CHECK_RESULT $? 0 0 "install texlive-childdoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-childdoc + CHECK_RESULT $? 0 0 "remove texlive-childdoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chivo-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chivo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee7f9a8e500e1922086ea5442a242d77b6025d32 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chivo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chivo-doc | grep -v \.src | grep texlive-chivo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chivo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chivo-doc + CHECK_RESULT $? 0 0 "install texlive-chivo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chivo-doc + CHECK_RESULT $? 0 0 "remove texlive-chivo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chivo.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chivo.sh new file mode 100644 index 0000000000000000000000000000000000000000..8787be022bfda6d162d5a09152abdd4514e1b21d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chivo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chivo | grep -v \.src | grep texlive-chivo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chivo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chivo + CHECK_RESULT $? 0 0 "install texlive-chivo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chivo + CHECK_RESULT $? 0 0 "remove texlive-chivo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chkfloat-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chkfloat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..44980c50e3d7a1a206296aced28e045ec042dc18 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chkfloat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chkfloat-doc | grep -v \.src | grep texlive-chkfloat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chkfloat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chkfloat-doc + CHECK_RESULT $? 0 0 "install texlive-chkfloat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chkfloat-doc + CHECK_RESULT $? 0 0 "remove texlive-chkfloat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chkfloat.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chkfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..b99f6318a6f6f11c3d0f7d0a0499fe6b07443ed5 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chkfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chkfloat | grep -v \.src | grep texlive-chkfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chkfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chkfloat + CHECK_RESULT $? 0 0 "install texlive-chkfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chkfloat + CHECK_RESULT $? 0 0 "remove texlive-chkfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chletter-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chletter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..03db86000fb9e5cc5a85f0d42d5c21d6ce1a0a72 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chletter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chletter-doc | grep -v \.src | grep texlive-chletter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chletter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chletter-doc + CHECK_RESULT $? 0 0 "install texlive-chletter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chletter-doc + CHECK_RESULT $? 0 0 "remove texlive-chletter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chletter.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chletter.sh new file mode 100644 index 0000000000000000000000000000000000000000..446358eb636b8d0ac62eb013f85999e51692d33a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chletter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chletter | grep -v \.src | grep texlive-chletter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chletter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chletter + CHECK_RESULT $? 0 0 "install texlive-chletter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chletter + CHECK_RESULT $? 0 0 "remove texlive-chletter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chngcntr-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chngcntr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1dfdd78ff1569a55463c0bc84586b8acef1308ed --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chngcntr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chngcntr-doc | grep -v \.src | grep texlive-chngcntr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chngcntr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chngcntr-doc + CHECK_RESULT $? 0 0 "install texlive-chngcntr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chngcntr-doc + CHECK_RESULT $? 0 0 "remove texlive-chngcntr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chngcntr.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chngcntr.sh new file mode 100644 index 0000000000000000000000000000000000000000..bee13f4b2e298381100706f2cec7c79570db5c99 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chngcntr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chngcntr | grep -v \.src | grep texlive-chngcntr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chngcntr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chngcntr + CHECK_RESULT $? 0 0 "install texlive-chngcntr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chngcntr + CHECK_RESULT $? 0 0 "remove texlive-chngcntr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronology-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronology-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9e2f9a0318b20c910ceb5b439338385e02a025d --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronology-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chronology-doc | grep -v \.src | grep texlive-chronology-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chronology-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chronology-doc + CHECK_RESULT $? 0 0 "install texlive-chronology-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chronology-doc + CHECK_RESULT $? 0 0 "remove texlive-chronology-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronology.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronology.sh new file mode 100644 index 0000000000000000000000000000000000000000..f153da3e54d3644344391d5a9c94ebc1a5f61e40 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronology.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chronology | grep -v \.src | grep texlive-chronology + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chronology" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chronology + CHECK_RESULT $? 0 0 "install texlive-chronology failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chronology + CHECK_RESULT $? 0 0 "remove texlive-chronology failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronosys-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronosys-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..081a87674f3f30039aecb72898090e60332b6271 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronosys-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chronosys-doc | grep -v \.src | grep texlive-chronosys-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chronosys-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chronosys-doc + CHECK_RESULT $? 0 0 "install texlive-chronosys-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chronosys-doc + CHECK_RESULT $? 0 0 "remove texlive-chronosys-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronosys.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronosys.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4fcd2c4274f7c5806f4bd3514b57e9506d55e45 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chronosys.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chronosys | grep -v \.src | grep texlive-chronosys + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chronosys" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chronosys + CHECK_RESULT $? 0 0 "install texlive-chronosys failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chronosys + CHECK_RESULT $? 0 0 "remove texlive-chronosys failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chscite-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chscite-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..21acd183cf23342756feedfcf384728468fad9bc --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chscite-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chscite-doc | grep -v \.src | grep texlive-chscite-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chscite-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chscite-doc + CHECK_RESULT $? 0 0 "install texlive-chscite-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chscite-doc + CHECK_RESULT $? 0 0 "remove texlive-chscite-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chscite.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chscite.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ad6850d3bdd8018f74b276ae7a1444ffd0b056a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-chscite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chscite | grep -v \.src | grep texlive-chscite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chscite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chscite + CHECK_RESULT $? 0 0 "install texlive-chscite failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chscite + CHECK_RESULT $? 0 0 "remove texlive-chscite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-churchslavonic-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-churchslavonic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..26446ee88af84cd3bd4ca5c36f765b4b6e6b2166 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-churchslavonic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-churchslavonic-doc | grep -v \.src | grep texlive-churchslavonic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-churchslavonic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-churchslavonic-doc + CHECK_RESULT $? 0 0 "install texlive-churchslavonic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-churchslavonic-doc + CHECK_RESULT $? 0 0 "remove texlive-churchslavonic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-churchslavonic.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-churchslavonic.sh new file mode 100644 index 0000000000000000000000000000000000000000..1748282423297a28089c1c6fdb4ace82c9c7916f --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-churchslavonic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-churchslavonic | grep -v \.src | grep texlive-churchslavonic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-churchslavonic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-churchslavonic + CHECK_RESULT $? 0 0 "install texlive-churchslavonic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-churchslavonic + CHECK_RESULT $? 0 0 "remove texlive-churchslavonic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cinzel-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cinzel-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9265ad84dec9278a02b97d3915bce8f7f5ece89a --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cinzel-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cinzel-doc | grep -v \.src | grep texlive-cinzel-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cinzel-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cinzel-doc + CHECK_RESULT $? 0 0 "install texlive-cinzel-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cinzel-doc + CHECK_RESULT $? 0 0 "remove texlive-cinzel-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cinzel.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cinzel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8043d8b9a8e3f7b3ae1c57525ae52e526e3deaf --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cinzel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cinzel | grep -v \.src | grep texlive-cinzel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cinzel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cinzel + CHECK_RESULT $? 0 0 "install texlive-cinzel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cinzel + CHECK_RESULT $? 0 0 "remove texlive-cinzel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circ-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circ-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..00402d5997511c54d5e22264f1edcde1f2c3efd6 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circ-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-circ-doc | grep -v \.src | grep texlive-circ-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-circ-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-circ-doc + CHECK_RESULT $? 0 0 "install texlive-circ-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-circ-doc + CHECK_RESULT $? 0 0 "remove texlive-circ-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circ.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circ.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8f8c6474b810d35a820f8bbdf154a7d5e2bb664 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circ.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-circ | grep -v \.src | grep texlive-circ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-circ" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-circ + CHECK_RESULT $? 0 0 "install texlive-circ failed" + SLEEP_WAIT 1 + dnf remove -y texlive-circ + CHECK_RESULT $? 0 0 "remove texlive-circ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circuitikz-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circuitikz-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a492e545bfff15c45f8e2102e927ee592083110 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circuitikz-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-circuitikz-doc | grep -v \.src | grep texlive-circuitikz-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-circuitikz-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-circuitikz-doc + CHECK_RESULT $? 0 0 "install texlive-circuitikz-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-circuitikz-doc + CHECK_RESULT $? 0 0 "remove texlive-circuitikz-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circuitikz.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circuitikz.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f7bf33f801dcf7415ee7c299b62e9238f98a862 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-circuitikz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-circuitikz | grep -v \.src | grep texlive-circuitikz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-circuitikz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-circuitikz + CHECK_RESULT $? 0 0 "install texlive-circuitikz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-circuitikz + CHECK_RESULT $? 0 0 "remove texlive-circuitikz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cite-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cite-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e5959574004a8bac193714a1a5aef203522075b --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cite-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cite-doc | grep -v \.src | grep texlive-cite-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cite-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cite-doc + CHECK_RESULT $? 0 0 "install texlive-cite-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cite-doc + CHECK_RESULT $? 0 0 "remove texlive-cite-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cite.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cite.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f15234dd0feedce86d0c977ae87dea3486cd805 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-cite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cite | grep -v \.src | grep texlive-cite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cite + CHECK_RESULT $? 0 0 "install texlive-cite failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cite + CHECK_RESULT $? 0 0 "remove texlive-cite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-citeall-doc.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-citeall-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e8f072df7c52b42ff346ad5e67a2ce64aca85d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-citeall-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-citeall-doc | grep -v \.src | grep texlive-citeall-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-citeall-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-citeall-doc + CHECK_RESULT $? 0 0 "install texlive-citeall-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-citeall-doc + CHECK_RESULT $? 0 0 "remove texlive-citeall-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-citeall.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-citeall.sh new file mode 100644 index 0000000000000000000000000000000000000000..277ca33dafaf35edbf051ff247774c4ce9385793 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-citeall.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-citeall | grep -v \.src | grep texlive-citeall + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-citeall" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-citeall + CHECK_RESULT $? 0 0 "install texlive-citeall failed" + SLEEP_WAIT 1 + dnf remove -y texlive-citeall + CHECK_RESULT $? 0 0 "remove texlive-citeall failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-split-d.sh b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-split-d.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e7ee32a572d6fd86ce43f4488fc65aa59386367 --- /dev/null +++ b/testcases/cli-test/texlive-split-d/oe_test_texlive-split-d_install_and_remove_texlive-split-d.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-d +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-d | grep -v \.src | grep texlive-split-d + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-d" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-d + CHECK_RESULT $? 0 0 "install texlive-split-d failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-d + CHECK_RESULT $? 0 0 "remove texlive-split-d failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cinzel-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cinzel-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..02cd64af10fbc4c64577a970c16f6c1c56c00a52 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cinzel-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cinzel-doc | grep -v \.src | grep texlive-cinzel-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cinzel-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cinzel-doc + CHECK_RESULT $? 0 0 "install texlive-cinzel-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cinzel-doc + CHECK_RESULT $? 0 0 "remove texlive-cinzel-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cinzel.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cinzel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ac5e7380426fa41729c9faaf13035dcce14b564 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cinzel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cinzel | grep -v \.src | grep texlive-cinzel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cinzel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cinzel + CHECK_RESULT $? 0 0 "install texlive-cinzel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cinzel + CHECK_RESULT $? 0 0 "remove texlive-cinzel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circ-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circ-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..703113b48a749028911f67b4e4ed40e925be8a56 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circ-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-circ-doc | grep -v \.src | grep texlive-circ-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-circ-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-circ-doc + CHECK_RESULT $? 0 0 "install texlive-circ-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-circ-doc + CHECK_RESULT $? 0 0 "remove texlive-circ-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circ.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circ.sh new file mode 100644 index 0000000000000000000000000000000000000000..06df218c5bc9740c1c4d845c29f865dcf9e76a70 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circ.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-circ | grep -v \.src | grep texlive-circ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-circ" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-circ + CHECK_RESULT $? 0 0 "install texlive-circ failed" + SLEEP_WAIT 1 + dnf remove -y texlive-circ + CHECK_RESULT $? 0 0 "remove texlive-circ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circuitikz-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circuitikz-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa55e3443278512e1fa173440676df51ae413d29 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circuitikz-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-circuitikz-doc | grep -v \.src | grep texlive-circuitikz-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-circuitikz-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-circuitikz-doc + CHECK_RESULT $? 0 0 "install texlive-circuitikz-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-circuitikz-doc + CHECK_RESULT $? 0 0 "remove texlive-circuitikz-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circuitikz.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circuitikz.sh new file mode 100644 index 0000000000000000000000000000000000000000..01f940569c4f520c796d2a269a2595e6fa24fe68 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-circuitikz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-circuitikz | grep -v \.src | grep texlive-circuitikz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-circuitikz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-circuitikz + CHECK_RESULT $? 0 0 "install texlive-circuitikz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-circuitikz + CHECK_RESULT $? 0 0 "remove texlive-circuitikz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cite-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cite-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb6b76829a0064764a9ec56d12947b71d494ae8c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cite-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cite-doc | grep -v \.src | grep texlive-cite-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cite-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cite-doc + CHECK_RESULT $? 0 0 "install texlive-cite-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cite-doc + CHECK_RESULT $? 0 0 "remove texlive-cite-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cite.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cite.sh new file mode 100644 index 0000000000000000000000000000000000000000..51241aca6b85a45a90c21a499de7e022ff7bbc30 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cite | grep -v \.src | grep texlive-cite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cite + CHECK_RESULT $? 0 0 "install texlive-cite failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cite + CHECK_RESULT $? 0 0 "remove texlive-cite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-citeall-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-citeall-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..13cdef02f68ae5fdf63b442ae73ee9025674886c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-citeall-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-citeall-doc | grep -v \.src | grep texlive-citeall-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-citeall-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-citeall-doc + CHECK_RESULT $? 0 0 "install texlive-citeall-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-citeall-doc + CHECK_RESULT $? 0 0 "remove texlive-citeall-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-citeall.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-citeall.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bbf3454792f6a4024286ac44725fb837076eae3 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-citeall.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-citeall | grep -v \.src | grep texlive-citeall + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-citeall" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-citeall + CHECK_RESULT $? 0 0 "install texlive-citeall failed" + SLEEP_WAIT 1 + dnf remove -y texlive-citeall + CHECK_RESULT $? 0 0 "remove texlive-citeall failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-citeref.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-citeref.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ea53b4f9ba629ba44aea2ef389fc39cac3422a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-citeref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-citeref | grep -v \.src | grep texlive-citeref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-citeref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-citeref + CHECK_RESULT $? 0 0 "install texlive-citeref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-citeref + CHECK_RESULT $? 0 0 "remove texlive-citeref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cje.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cje.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e3315077720a19780dd490421dc1bbb08e9c26f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cje.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cje | grep -v \.src | grep texlive-cje + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cje" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cje + CHECK_RESULT $? 0 0 "install texlive-cje failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cje + CHECK_RESULT $? 0 0 "remove texlive-cje failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjhebrew-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjhebrew-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..681afb7b295202a213503177927c787d8819d0b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjhebrew-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cjhebrew-doc | grep -v \.src | grep texlive-cjhebrew-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cjhebrew-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cjhebrew-doc + CHECK_RESULT $? 0 0 "install texlive-cjhebrew-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cjhebrew-doc + CHECK_RESULT $? 0 0 "remove texlive-cjhebrew-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjhebrew.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjhebrew.sh new file mode 100644 index 0000000000000000000000000000000000000000..ceafb0980928dfd931f8f680461f1b4ab4be2e4a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjhebrew.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cjhebrew | grep -v \.src | grep texlive-cjhebrew + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cjhebrew" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cjhebrew + CHECK_RESULT $? 0 0 "install texlive-cjhebrew failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cjhebrew + CHECK_RESULT $? 0 0 "remove texlive-cjhebrew failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a7eca708737c66c20fc3c0809911cc5cb4b1a51 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cjk-doc | grep -v \.src | grep texlive-cjk-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cjk-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cjk-doc + CHECK_RESULT $? 0 0 "install texlive-cjk-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cjk-doc + CHECK_RESULT $? 0 0 "remove texlive-cjk-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk-ko-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk-ko-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a9e0d51e555df605d61f4ff4d38b17c450018e3 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk-ko-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cjk-ko-doc | grep -v \.src | grep texlive-cjk-ko-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cjk-ko-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cjk-ko-doc + CHECK_RESULT $? 0 0 "install texlive-cjk-ko-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cjk-ko-doc + CHECK_RESULT $? 0 0 "remove texlive-cjk-ko-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk-ko.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk-ko.sh new file mode 100644 index 0000000000000000000000000000000000000000..863db36259c05a34e79f212405fdac0c1b88cbe4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk-ko.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cjk-ko | grep -v \.src | grep texlive-cjk-ko + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cjk-ko" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cjk-ko + CHECK_RESULT $? 0 0 "install texlive-cjk-ko failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cjk-ko + CHECK_RESULT $? 0 0 "remove texlive-cjk-ko failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk.sh new file mode 100644 index 0000000000000000000000000000000000000000..f76beb35eeae5b5fd21141faccf1aec7d0661be5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cjk | grep -v \.src | grep texlive-cjk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cjk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cjk + CHECK_RESULT $? 0 0 "install texlive-cjk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cjk + CHECK_RESULT $? 0 0 "remove texlive-cjk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjkpunct-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjkpunct-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..790bcac6516c7020a1fa49103c336f6cfde8708a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjkpunct-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cjkpunct-doc | grep -v \.src | grep texlive-cjkpunct-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cjkpunct-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cjkpunct-doc + CHECK_RESULT $? 0 0 "install texlive-cjkpunct-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cjkpunct-doc + CHECK_RESULT $? 0 0 "remove texlive-cjkpunct-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjkpunct.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjkpunct.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce8828522570c40bd855324ee7eaf0335ea06443 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cjkpunct.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cjkpunct | grep -v \.src | grep texlive-cjkpunct + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cjkpunct" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cjkpunct + CHECK_RESULT $? 0 0 "install texlive-cjkpunct failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cjkpunct + CHECK_RESULT $? 0 0 "remove texlive-cjkpunct failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classics-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classics-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..af35c64dc36e1aa727841e6409e26b356e59e684 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classics-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-classics-doc | grep -v \.src | grep texlive-classics-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-classics-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-classics-doc + CHECK_RESULT $? 0 0 "install texlive-classics-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-classics-doc + CHECK_RESULT $? 0 0 "remove texlive-classics-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classics.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classics.sh new file mode 100644 index 0000000000000000000000000000000000000000..82f4c561f3ae3ba9a0bc73c44be9dab7b35136d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classics.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-classics | grep -v \.src | grep texlive-classics + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-classics" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-classics + CHECK_RESULT $? 0 0 "install texlive-classics failed" + SLEEP_WAIT 1 + dnf remove -y texlive-classics + CHECK_RESULT $? 0 0 "remove texlive-classics failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classicthesis-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classicthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c914c83f94f6d027284756338deca6a0dda03c2c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classicthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-classicthesis-doc | grep -v \.src | grep texlive-classicthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-classicthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-classicthesis-doc + CHECK_RESULT $? 0 0 "install texlive-classicthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-classicthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-classicthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classicthesis.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classicthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..d727b95b0bd4873e650d2e075cdfb9cda3eff3b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classicthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-classicthesis | grep -v \.src | grep texlive-classicthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-classicthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-classicthesis + CHECK_RESULT $? 0 0 "install texlive-classicthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-classicthesis + CHECK_RESULT $? 0 0 "remove texlive-classicthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classpack-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classpack-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..91ef088532c5f522f40ea4e8d42459af59951aba --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classpack-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-classpack-doc | grep -v \.src | grep texlive-classpack-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-classpack-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-classpack-doc + CHECK_RESULT $? 0 0 "install texlive-classpack-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-classpack-doc + CHECK_RESULT $? 0 0 "remove texlive-classpack-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classpack.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classpack.sh new file mode 100644 index 0000000000000000000000000000000000000000..9abb6b33fc4214320b6da14e46f9cf73d2832bfa --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-classpack.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-classpack | grep -v \.src | grep texlive-classpack + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-classpack" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-classpack + CHECK_RESULT $? 0 0 "install texlive-classpack failed" + SLEEP_WAIT 1 + dnf remove -y texlive-classpack + CHECK_RESULT $? 0 0 "remove texlive-classpack failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleanthesis-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleanthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6ad7a3fcd33f5d309f4750d9fc4ae594f03d33b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleanthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cleanthesis-doc | grep -v \.src | grep texlive-cleanthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cleanthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cleanthesis-doc + CHECK_RESULT $? 0 0 "install texlive-cleanthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cleanthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-cleanthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleanthesis.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleanthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..1876f77204a4d2b35387416cfc09adfc328b9b3f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleanthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cleanthesis | grep -v \.src | grep texlive-cleanthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cleanthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cleanthesis + CHECK_RESULT $? 0 0 "install texlive-cleanthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cleanthesis + CHECK_RESULT $? 0 0 "remove texlive-cleanthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clearsans-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clearsans-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ff423297e7d0f62ed76c30e10e12a1cd114efa7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clearsans-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clearsans-doc | grep -v \.src | grep texlive-clearsans-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clearsans-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clearsans-doc + CHECK_RESULT $? 0 0 "install texlive-clearsans-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clearsans-doc + CHECK_RESULT $? 0 0 "remove texlive-clearsans-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clearsans.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clearsans.sh new file mode 100644 index 0000000000000000000000000000000000000000..42f96ec4ec269dc2f317a1b81002fdd65ce83b39 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clearsans.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clearsans | grep -v \.src | grep texlive-clearsans + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clearsans" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clearsans + CHECK_RESULT $? 0 0 "install texlive-clearsans failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clearsans + CHECK_RESULT $? 0 0 "remove texlive-clearsans failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clefval-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clefval-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..06ed537170f1a704f7a01d2e4710b41403b61f8e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clefval-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clefval-doc | grep -v \.src | grep texlive-clefval-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clefval-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clefval-doc + CHECK_RESULT $? 0 0 "install texlive-clefval-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clefval-doc + CHECK_RESULT $? 0 0 "remove texlive-clefval-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clefval.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clefval.sh new file mode 100644 index 0000000000000000000000000000000000000000..59aa19169dc10f01c90a3eaad767f9a475b3ba98 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clefval.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clefval | grep -v \.src | grep texlive-clefval + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clefval" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clefval + CHECK_RESULT $? 0 0 "install texlive-clefval failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clefval + CHECK_RESULT $? 0 0 "remove texlive-clefval failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleveref-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleveref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8272da6628902b0b40f938ce705ec1d7c135094b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleveref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cleveref-doc | grep -v \.src | grep texlive-cleveref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cleveref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cleveref-doc + CHECK_RESULT $? 0 0 "install texlive-cleveref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cleveref-doc + CHECK_RESULT $? 0 0 "remove texlive-cleveref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleveref.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleveref.sh new file mode 100644 index 0000000000000000000000000000000000000000..225b0412517aa22b077545daac58b9f73394d4b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cleveref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cleveref | grep -v \.src | grep texlive-cleveref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cleveref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cleveref + CHECK_RESULT $? 0 0 "install texlive-cleveref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cleveref + CHECK_RESULT $? 0 0 "remove texlive-cleveref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clipboard-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clipboard-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..207a650dbb4b3515a69dcc401a8156a02f2b2298 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clipboard-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clipboard-doc | grep -v \.src | grep texlive-clipboard-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clipboard-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clipboard-doc + CHECK_RESULT $? 0 0 "install texlive-clipboard-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clipboard-doc + CHECK_RESULT $? 0 0 "remove texlive-clipboard-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clipboard.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clipboard.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d0f31baf04bf213a18127db222b4e74950bfaf1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clipboard.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clipboard | grep -v \.src | grep texlive-clipboard + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clipboard" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clipboard + CHECK_RESULT $? 0 0 "install texlive-clipboard failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clipboard + CHECK_RESULT $? 0 0 "remove texlive-clipboard failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clock-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clock-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1523d1adfd9e610ee8aae1ed894f8de49918e884 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clock-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clock-doc | grep -v \.src | grep texlive-clock-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clock-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clock-doc + CHECK_RESULT $? 0 0 "install texlive-clock-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clock-doc + CHECK_RESULT $? 0 0 "remove texlive-clock-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clock.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clock.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8bfe056875358d4de234f9264825da05a4974da --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clock.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clock | grep -v \.src | grep texlive-clock + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clock" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clock + CHECK_RESULT $? 0 0 "install texlive-clock failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clock + CHECK_RESULT $? 0 0 "remove texlive-clock failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cloze-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cloze-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..401180b2155293fd26e7c6b635afbbe285b8a9e9 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cloze-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cloze-doc | grep -v \.src | grep texlive-cloze-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cloze-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cloze-doc + CHECK_RESULT $? 0 0 "install texlive-cloze-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cloze-doc + CHECK_RESULT $? 0 0 "remove texlive-cloze-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cloze.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cloze.sh new file mode 100644 index 0000000000000000000000000000000000000000..36d38dc6fb2dad58860edcb68767cfbb117f6324 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cloze.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cloze | grep -v \.src | grep texlive-cloze + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cloze" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cloze + CHECK_RESULT $? 0 0 "install texlive-cloze failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cloze + CHECK_RESULT $? 0 0 "remove texlive-cloze failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrdblpg.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrdblpg.sh new file mode 100644 index 0000000000000000000000000000000000000000..551d6e578007c26df6b6cedfb91372c2e2ec771d --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrdblpg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clrdblpg | grep -v \.src | grep texlive-clrdblpg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clrdblpg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clrdblpg + CHECK_RESULT $? 0 0 "install texlive-clrdblpg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clrdblpg + CHECK_RESULT $? 0 0 "remove texlive-clrdblpg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..45ac262b275e0411db67f0f7f3ff2067344d84b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clrscode-doc | grep -v \.src | grep texlive-clrscode-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clrscode-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clrscode-doc + CHECK_RESULT $? 0 0 "install texlive-clrscode-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clrscode-doc + CHECK_RESULT $? 0 0 "remove texlive-clrscode-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode.sh new file mode 100644 index 0000000000000000000000000000000000000000..33304d0e85fc63d7d7643b707ea0af1769b3fdd9 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clrscode | grep -v \.src | grep texlive-clrscode + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clrscode" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clrscode + CHECK_RESULT $? 0 0 "install texlive-clrscode failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clrscode + CHECK_RESULT $? 0 0 "remove texlive-clrscode failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode3e-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode3e-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a9eff01273cd346fd0a10882d844657dc6e54c0 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode3e-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clrscode3e-doc | grep -v \.src | grep texlive-clrscode3e-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clrscode3e-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clrscode3e-doc + CHECK_RESULT $? 0 0 "install texlive-clrscode3e-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clrscode3e-doc + CHECK_RESULT $? 0 0 "remove texlive-clrscode3e-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode3e.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode3e.sh new file mode 100644 index 0000000000000000000000000000000000000000..979b0386057b20507a93893c2f1c4389778a20ff --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrscode3e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clrscode3e | grep -v \.src | grep texlive-clrscode3e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clrscode3e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clrscode3e + CHECK_RESULT $? 0 0 "install texlive-clrscode3e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clrscode3e + CHECK_RESULT $? 0 0 "remove texlive-clrscode3e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrstrip.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrstrip.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5b67637af74a085e71feec2be57946a24dc30d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-clrstrip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clrstrip | grep -v \.src | grep texlive-clrstrip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clrstrip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clrstrip + CHECK_RESULT $? 0 0 "install texlive-clrstrip failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clrstrip + CHECK_RESULT $? 0 0 "remove texlive-clrstrip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d23473d5eb07e387bd4bbd99154a19137bc32681 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cm-doc | grep -v \.src | grep texlive-cm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cm-doc + CHECK_RESULT $? 0 0 "install texlive-cm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cm-doc + CHECK_RESULT $? 0 0 "remove texlive-cm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-lgc-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-lgc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7fe1fc75431a5ebf7ac3ee362c68888fb32d59c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-lgc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cm-lgc-doc | grep -v \.src | grep texlive-cm-lgc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cm-lgc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cm-lgc-doc + CHECK_RESULT $? 0 0 "install texlive-cm-lgc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cm-lgc-doc + CHECK_RESULT $? 0 0 "remove texlive-cm-lgc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-lgc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-lgc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6b01b3502a70107542573149503b0c7a163a4e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-lgc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cm-lgc | grep -v \.src | grep texlive-cm-lgc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cm-lgc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cm-lgc + CHECK_RESULT $? 0 0 "install texlive-cm-lgc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cm-lgc + CHECK_RESULT $? 0 0 "remove texlive-cm-lgc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-mf-extra-bold.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-mf-extra-bold.sh new file mode 100644 index 0000000000000000000000000000000000000000..1400e222d413d18401eafcfda38acf78e4faaf66 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-mf-extra-bold.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cm-mf-extra-bold | grep -v \.src | grep texlive-cm-mf-extra-bold + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cm-mf-extra-bold" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cm-mf-extra-bold + CHECK_RESULT $? 0 0 "install texlive-cm-mf-extra-bold failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cm-mf-extra-bold + CHECK_RESULT $? 0 0 "remove texlive-cm-mf-extra-bold failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-super-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-super-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9c097dcdfce4a8bae59971b076d81fb1c106499 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-super-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cm-super-doc | grep -v \.src | grep texlive-cm-super-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cm-super-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cm-super-doc + CHECK_RESULT $? 0 0 "install texlive-cm-super-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cm-super-doc + CHECK_RESULT $? 0 0 "remove texlive-cm-super-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-super.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-super.sh new file mode 100644 index 0000000000000000000000000000000000000000..43037e8e7fb799c86705ed08cb5d6057109cdfda --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-super.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cm-super | grep -v \.src | grep texlive-cm-super + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cm-super" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cm-super + CHECK_RESULT $? 0 0 "install texlive-cm-super failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cm-super + CHECK_RESULT $? 0 0 "remove texlive-cm-super failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-unicode-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-unicode-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2eb89d2258e70ab119b7510cad4de37fb5b91d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-unicode-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cm-unicode-doc | grep -v \.src | grep texlive-cm-unicode-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cm-unicode-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cm-unicode-doc + CHECK_RESULT $? 0 0 "install texlive-cm-unicode-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cm-unicode-doc + CHECK_RESULT $? 0 0 "remove texlive-cm-unicode-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-unicode.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-unicode.sh new file mode 100644 index 0000000000000000000000000000000000000000..596fab92226435b8e3123c04c21a4097bb323c90 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm-unicode.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cm-unicode | grep -v \.src | grep texlive-cm-unicode + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cm-unicode" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cm-unicode + CHECK_RESULT $? 0 0 "install texlive-cm-unicode failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cm-unicode + CHECK_RESULT $? 0 0 "remove texlive-cm-unicode failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm.sh new file mode 100644 index 0000000000000000000000000000000000000000..60276d7f64a1b3f27abfdde8bbcd6ba4710e0003 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cm | grep -v \.src | grep texlive-cm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cm + CHECK_RESULT $? 0 0 "install texlive-cm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cm + CHECK_RESULT $? 0 0 "remove texlive-cm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmap-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b4126046a31cd8818aa35a0212e499527de1153 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmap-doc | grep -v \.src | grep texlive-cmap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmap-doc + CHECK_RESULT $? 0 0 "install texlive-cmap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmap-doc + CHECK_RESULT $? 0 0 "remove texlive-cmap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmap.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..199e2b6b60fa5b433f15b1bc920b76f641641339 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmap | grep -v \.src | grep texlive-cmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmap + CHECK_RESULT $? 0 0 "install texlive-cmap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmap + CHECK_RESULT $? 0 0 "remove texlive-cmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmarrows-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmarrows-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f5e8b34f88bceb644f722b77b7a00efddf02a7f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmarrows-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmarrows-doc | grep -v \.src | grep texlive-cmarrows-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmarrows-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmarrows-doc + CHECK_RESULT $? 0 0 "install texlive-cmarrows-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmarrows-doc + CHECK_RESULT $? 0 0 "remove texlive-cmarrows-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmarrows.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmarrows.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bee5881ed12c664f64a4c68dc0af30f2f8db032 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmarrows.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmarrows | grep -v \.src | grep texlive-cmarrows + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmarrows" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmarrows + CHECK_RESULT $? 0 0 "install texlive-cmarrows failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmarrows + CHECK_RESULT $? 0 0 "remove texlive-cmarrows failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmbright-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmbright-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd758780a834c05a21f1403ecbb0483f2c2169e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmbright-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmbright-doc | grep -v \.src | grep texlive-cmbright-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmbright-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmbright-doc + CHECK_RESULT $? 0 0 "install texlive-cmbright-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmbright-doc + CHECK_RESULT $? 0 0 "remove texlive-cmbright-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmbright.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmbright.sh new file mode 100644 index 0000000000000000000000000000000000000000..988bdfeca97c88d3692bcf49595814700c6c8a54 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmbright.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmbright | grep -v \.src | grep texlive-cmbright + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmbright" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmbright + CHECK_RESULT $? 0 0 "install texlive-cmbright failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmbright + CHECK_RESULT $? 0 0 "remove texlive-cmbright failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmcyr-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmcyr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..446b17f7f6fdb26df046e1d00820746f18864460 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmcyr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmcyr-doc | grep -v \.src | grep texlive-cmcyr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmcyr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmcyr-doc + CHECK_RESULT $? 0 0 "install texlive-cmcyr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmcyr-doc + CHECK_RESULT $? 0 0 "remove texlive-cmcyr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmcyr.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmcyr.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7646937654e7bf61ad3a2c83c279a4d8de5058d --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmcyr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmcyr | grep -v \.src | grep texlive-cmcyr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmcyr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmcyr + CHECK_RESULT $? 0 0 "install texlive-cmcyr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmcyr + CHECK_RESULT $? 0 0 "remove texlive-cmcyr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdstring-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdstring-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e35cd68167c551c05dfe08cff65f233622701b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdstring-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmdstring-doc | grep -v \.src | grep texlive-cmdstring-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmdstring-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmdstring-doc + CHECK_RESULT $? 0 0 "install texlive-cmdstring-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmdstring-doc + CHECK_RESULT $? 0 0 "remove texlive-cmdstring-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdstring.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdstring.sh new file mode 100644 index 0000000000000000000000000000000000000000..7484997d35deed5da0e74a18c3d1c9bff0e2f454 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdstring.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmdstring | grep -v \.src | grep texlive-cmdstring + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmdstring" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmdstring + CHECK_RESULT $? 0 0 "install texlive-cmdstring failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmdstring + CHECK_RESULT $? 0 0 "remove texlive-cmdstring failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdtrack-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdtrack-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cee3734dee8a1cc6b4ccbe0e25e4ba6670566d1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdtrack-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmdtrack-doc | grep -v \.src | grep texlive-cmdtrack-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmdtrack-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmdtrack-doc + CHECK_RESULT $? 0 0 "install texlive-cmdtrack-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmdtrack-doc + CHECK_RESULT $? 0 0 "remove texlive-cmdtrack-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdtrack.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdtrack.sh new file mode 100644 index 0000000000000000000000000000000000000000..c66c1b4d792dcc5f29b54125bba9552b72ed815d --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmdtrack.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmdtrack | grep -v \.src | grep texlive-cmdtrack + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmdtrack" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmdtrack + CHECK_RESULT $? 0 0 "install texlive-cmdtrack failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmdtrack + CHECK_RESULT $? 0 0 "remove texlive-cmdtrack failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmexb-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmexb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5a8acfac2170363d9f1e3b80c1b7a003b60d895 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmexb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmexb-doc | grep -v \.src | grep texlive-cmexb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmexb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmexb-doc + CHECK_RESULT $? 0 0 "install texlive-cmexb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmexb-doc + CHECK_RESULT $? 0 0 "remove texlive-cmexb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmexb.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmexb.sh new file mode 100644 index 0000000000000000000000000000000000000000..7953eaa830d0cd529bdfb2fde8b2f2f9151f55b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmexb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmexb | grep -v \.src | grep texlive-cmexb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmexb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmexb + CHECK_RESULT $? 0 0 "install texlive-cmexb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmexb + CHECK_RESULT $? 0 0 "remove texlive-cmexb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmextra.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb17148eeb467ca18761241014fca3d72ae881ae --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmextra | grep -v \.src | grep texlive-cmextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmextra + CHECK_RESULT $? 0 0 "install texlive-cmextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmextra + CHECK_RESULT $? 0 0 "remove texlive-cmextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmll-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmll-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c123af778afb236bef336cd3726bea376da948f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmll-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmll-doc | grep -v \.src | grep texlive-cmll-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmll-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmll-doc + CHECK_RESULT $? 0 0 "install texlive-cmll-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmll-doc + CHECK_RESULT $? 0 0 "remove texlive-cmll-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmll.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmll.sh new file mode 100644 index 0000000000000000000000000000000000000000..4289d90238e9c562f36b24d3393cee64a612b472 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmll.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmll | grep -v \.src | grep texlive-cmll + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmll" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmll + CHECK_RESULT $? 0 0 "install texlive-cmll failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmll + CHECK_RESULT $? 0 0 "remove texlive-cmll failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpica-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpica-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a9a386e0bef7d21e09e7044b78c46b3655b9e78 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpica-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmpica-doc | grep -v \.src | grep texlive-cmpica-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmpica-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmpica-doc + CHECK_RESULT $? 0 0 "install texlive-cmpica-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmpica-doc + CHECK_RESULT $? 0 0 "remove texlive-cmpica-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpica.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpica.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a4b34113bcb33da75d82dafce2ac17be286c9da --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpica.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmpica | grep -v \.src | grep texlive-cmpica + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmpica" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmpica + CHECK_RESULT $? 0 0 "install texlive-cmpica failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmpica + CHECK_RESULT $? 0 0 "remove texlive-cmpica failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpj-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpj-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff424f917ff3355d0e89a5517fc7f991d11ea878 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpj-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmpj-doc | grep -v \.src | grep texlive-cmpj-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmpj-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmpj-doc + CHECK_RESULT $? 0 0 "install texlive-cmpj-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmpj-doc + CHECK_RESULT $? 0 0 "remove texlive-cmpj-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpj.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpj.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9795b8b3b98c89aaf5fb87009d1922cc6367388 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmpj.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmpj | grep -v \.src | grep texlive-cmpj + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmpj" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmpj + CHECK_RESULT $? 0 0 "install texlive-cmpj failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmpj + CHECK_RESULT $? 0 0 "remove texlive-cmpj failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmsd-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmsd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b072bfb2af1b55640d393b241349a42fdeb5bf5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmsd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmsd-doc | grep -v \.src | grep texlive-cmsd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmsd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmsd-doc + CHECK_RESULT $? 0 0 "install texlive-cmsd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmsd-doc + CHECK_RESULT $? 0 0 "remove texlive-cmsd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmsd.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmsd.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f6475b2b49f079451608e5f33afd8622af13aa1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmsd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmsd | grep -v \.src | grep texlive-cmsd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmsd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmsd + CHECK_RESULT $? 0 0 "install texlive-cmsd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmsd + CHECK_RESULT $? 0 0 "remove texlive-cmsd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmsrb.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmsrb.sh new file mode 100644 index 0000000000000000000000000000000000000000..0313eb0761df4a4b3cc2b000f20e6d1cb0d0a0c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmsrb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmsrb | grep -v \.src | grep texlive-cmsrb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmsrb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmsrb + CHECK_RESULT $? 0 0 "install texlive-cmsrb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmsrb + CHECK_RESULT $? 0 0 "remove texlive-cmsrb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmtiup-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmtiup-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c7c86bcce5fdf0f44019cf3be7ff8357580dda0 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmtiup-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmtiup-doc | grep -v \.src | grep texlive-cmtiup-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmtiup-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmtiup-doc + CHECK_RESULT $? 0 0 "install texlive-cmtiup-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmtiup-doc + CHECK_RESULT $? 0 0 "remove texlive-cmtiup-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmtiup.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmtiup.sh new file mode 100644 index 0000000000000000000000000000000000000000..86250fa65c159b79e3e64d377473e363817827d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cmtiup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmtiup | grep -v \.src | grep texlive-cmtiup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmtiup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmtiup + CHECK_RESULT $? 0 0 "install texlive-cmtiup failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmtiup + CHECK_RESULT $? 0 0 "remove texlive-cmtiup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnbwp-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnbwp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1379272f5590a56c4cdd02bf7904257a02f3d599 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnbwp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cnbwp-doc | grep -v \.src | grep texlive-cnbwp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cnbwp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cnbwp-doc + CHECK_RESULT $? 0 0 "install texlive-cnbwp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cnbwp-doc + CHECK_RESULT $? 0 0 "remove texlive-cnbwp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnbwp.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnbwp.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec36afc4cddda2b8575448150bb0458b20b61bf7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnbwp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cnbwp | grep -v \.src | grep texlive-cnbwp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cnbwp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cnbwp + CHECK_RESULT $? 0 0 "install texlive-cnbwp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cnbwp + CHECK_RESULT $? 0 0 "remove texlive-cnbwp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnltx-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnltx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..885438ff44b668f1e108bfc10a631d251426b598 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnltx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cnltx-doc | grep -v \.src | grep texlive-cnltx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cnltx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cnltx-doc + CHECK_RESULT $? 0 0 "install texlive-cnltx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cnltx-doc + CHECK_RESULT $? 0 0 "remove texlive-cnltx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnltx.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnltx.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3f228b92e80794a5d45e80bc8766be88209020b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cnltx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cnltx | grep -v \.src | grep texlive-cnltx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cnltx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cnltx + CHECK_RESULT $? 0 0 "install texlive-cnltx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cnltx + CHECK_RESULT $? 0 0 "remove texlive-cnltx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cns-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cns-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4653f302f1ec89347898666de60e94992e8d282 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cns-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cns-doc | grep -v \.src | grep texlive-cns-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cns-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cns-doc + CHECK_RESULT $? 0 0 "install texlive-cns-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cns-doc + CHECK_RESULT $? 0 0 "remove texlive-cns-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cns.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cns.sh new file mode 100644 index 0000000000000000000000000000000000000000..60828a0e5b9ae58b4f1c625a1be2488872745021 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cns.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cns | grep -v \.src | grep texlive-cns + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cns" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cns + CHECK_RESULT $? 0 0 "install texlive-cns failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cns + CHECK_RESULT $? 0 0 "remove texlive-cns failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntformats-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntformats-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5faf8f0bc488f36879fb6ba82fa9f5b3b68c10d1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntformats-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cntformats-doc | grep -v \.src | grep texlive-cntformats-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cntformats-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cntformats-doc + CHECK_RESULT $? 0 0 "install texlive-cntformats-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cntformats-doc + CHECK_RESULT $? 0 0 "remove texlive-cntformats-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntformats.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntformats.sh new file mode 100644 index 0000000000000000000000000000000000000000..297f5c1fa53088a82db90f5c2e186fbd0b20838e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntformats.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cntformats | grep -v \.src | grep texlive-cntformats + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cntformats" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cntformats + CHECK_RESULT $? 0 0 "install texlive-cntformats failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cntformats + CHECK_RESULT $? 0 0 "remove texlive-cntformats failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntperchap-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntperchap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b562be2260c7f9a7d7db08ed7713bff3817aa58b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntperchap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cntperchap-doc | grep -v \.src | grep texlive-cntperchap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cntperchap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cntperchap-doc + CHECK_RESULT $? 0 0 "install texlive-cntperchap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cntperchap-doc + CHECK_RESULT $? 0 0 "remove texlive-cntperchap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntperchap.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntperchap.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c518e3ebb262e96fb3cc7e9bad35626955cbecc --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cntperchap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cntperchap | grep -v \.src | grep texlive-cntperchap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cntperchap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cntperchap + CHECK_RESULT $? 0 0 "install texlive-cntperchap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cntperchap + CHECK_RESULT $? 0 0 "remove texlive-cntperchap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cochineal-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cochineal-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..51ac848811b4e2c985c72682ca353bbf06e135b0 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cochineal-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cochineal-doc | grep -v \.src | grep texlive-cochineal-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cochineal-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cochineal-doc + CHECK_RESULT $? 0 0 "install texlive-cochineal-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cochineal-doc + CHECK_RESULT $? 0 0 "remove texlive-cochineal-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cochineal.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cochineal.sh new file mode 100644 index 0000000000000000000000000000000000000000..32449db739056559102abc7442ec12585f42608c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cochineal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cochineal | grep -v \.src | grep texlive-cochineal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cochineal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cochineal + CHECK_RESULT $? 0 0 "install texlive-cochineal failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cochineal + CHECK_RESULT $? 0 0 "remove texlive-cochineal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codedoc-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codedoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..afe7aeb46c1c3ab718e95821b7eaa108eced73b5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codedoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-codedoc-doc | grep -v \.src | grep texlive-codedoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-codedoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-codedoc-doc + CHECK_RESULT $? 0 0 "install texlive-codedoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-codedoc-doc + CHECK_RESULT $? 0 0 "remove texlive-codedoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codedoc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codedoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba8a080d7f4a4974d984dc84085adde6e184ca9e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codedoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-codedoc | grep -v \.src | grep texlive-codedoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-codedoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-codedoc + CHECK_RESULT $? 0 0 "install texlive-codedoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-codedoc + CHECK_RESULT $? 0 0 "remove texlive-codedoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codepage-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codepage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d273d5fb40d07bfa8988b10875a294b422bcae7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codepage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-codepage-doc | grep -v \.src | grep texlive-codepage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-codepage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-codepage-doc + CHECK_RESULT $? 0 0 "install texlive-codepage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-codepage-doc + CHECK_RESULT $? 0 0 "remove texlive-codepage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codepage.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codepage.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ef3da691ff6944f7ac4220f07fc8e90e33bc5bb --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codepage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-codepage | grep -v \.src | grep texlive-codepage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-codepage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-codepage + CHECK_RESULT $? 0 0 "install texlive-codepage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-codepage + CHECK_RESULT $? 0 0 "remove texlive-codepage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codesection-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codesection-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b92b5fe437f86023f7f1c18fea116f4132fec0b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codesection-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-codesection-doc | grep -v \.src | grep texlive-codesection-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-codesection-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-codesection-doc + CHECK_RESULT $? 0 0 "install texlive-codesection-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-codesection-doc + CHECK_RESULT $? 0 0 "remove texlive-codesection-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codesection.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codesection.sh new file mode 100644 index 0000000000000000000000000000000000000000..436a56aae3666bddf958a33ac314358860c4a3f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codesection.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-codesection | grep -v \.src | grep texlive-codesection + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-codesection" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-codesection + CHECK_RESULT $? 0 0 "install texlive-codesection failed" + SLEEP_WAIT 1 + dnf remove -y texlive-codesection + CHECK_RESULT $? 0 0 "remove texlive-codesection failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codicefiscaleitaliano-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codicefiscaleitaliano-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..06130daaaad6c735bee2e6b929cc6e2d679919f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codicefiscaleitaliano-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-codicefiscaleitaliano-doc | grep -v \.src | grep texlive-codicefiscaleitaliano-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-codicefiscaleitaliano-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-codicefiscaleitaliano-doc + CHECK_RESULT $? 0 0 "install texlive-codicefiscaleitaliano-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-codicefiscaleitaliano-doc + CHECK_RESULT $? 0 0 "remove texlive-codicefiscaleitaliano-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codicefiscaleitaliano.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codicefiscaleitaliano.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e73ccf596c09c0c246b0c906ef92bc62ea52f45 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-codicefiscaleitaliano.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-codicefiscaleitaliano | grep -v \.src | grep texlive-codicefiscaleitaliano + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-codicefiscaleitaliano" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-codicefiscaleitaliano + CHECK_RESULT $? 0 0 "install texlive-codicefiscaleitaliano failed" + SLEEP_WAIT 1 + dnf remove -y texlive-codicefiscaleitaliano + CHECK_RESULT $? 0 0 "remove texlive-codicefiscaleitaliano failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collcell-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collcell-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..50f7b32931a6c9538a7e3097c3de058f964c0646 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collcell-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collcell-doc | grep -v \.src | grep texlive-collcell-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collcell-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collcell-doc + CHECK_RESULT $? 0 0 "install texlive-collcell-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collcell-doc + CHECK_RESULT $? 0 0 "remove texlive-collcell-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collcell.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collcell.sh new file mode 100644 index 0000000000000000000000000000000000000000..20b7117017bc8a9fc755d3fb26a5f64608cdbe8b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collcell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collcell | grep -v \.src | grep texlive-collcell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collcell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collcell + CHECK_RESULT $? 0 0 "install texlive-collcell failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collcell + CHECK_RESULT $? 0 0 "remove texlive-collcell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collectbox-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collectbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..53bf189d92e9ece153b98f5a4d800a38b7dc96ea --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collectbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collectbox-doc | grep -v \.src | grep texlive-collectbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collectbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collectbox-doc + CHECK_RESULT $? 0 0 "install texlive-collectbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collectbox-doc + CHECK_RESULT $? 0 0 "remove texlive-collectbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collectbox.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collectbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..38ec683f62da10aa02b689de6c9c846d0ae71d6f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collectbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collectbox | grep -v \.src | grep texlive-collectbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collectbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collectbox + CHECK_RESULT $? 0 0 "install texlive-collectbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collectbox + CHECK_RESULT $? 0 0 "remove texlive-collectbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-basic.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-basic.sh new file mode 100644 index 0000000000000000000000000000000000000000..b08e23f143acaad37bbdbac941dfa4d0c02d0640 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-basic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-basic | grep -v \.src | grep texlive-collection-basic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-basic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-basic + CHECK_RESULT $? 0 0 "install texlive-collection-basic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-basic + CHECK_RESULT $? 0 0 "remove texlive-collection-basic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-bibtexextra.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-bibtexextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..c69278754753874711bf746285ff443179fde6ce --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-bibtexextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-bibtexextra | grep -v \.src | grep texlive-collection-bibtexextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-bibtexextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-bibtexextra + CHECK_RESULT $? 0 0 "install texlive-collection-bibtexextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-bibtexextra + CHECK_RESULT $? 0 0 "remove texlive-collection-bibtexextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-binextra.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-binextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b7f0c6cb0ee565c3a9b456836bc6ec4a949eafe --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-binextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-binextra | grep -v \.src | grep texlive-collection-binextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-binextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-binextra + CHECK_RESULT $? 0 0 "install texlive-collection-binextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-binextra + CHECK_RESULT $? 0 0 "remove texlive-collection-binextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-context.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-context.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9adf7897b47670f1f4eb0560c2d673cd50f3ac4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-context.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-context | grep -v \.src | grep texlive-collection-context + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-context" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-context + CHECK_RESULT $? 0 0 "install texlive-collection-context failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-context + CHECK_RESULT $? 0 0 "remove texlive-collection-context failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-fontsextra.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-fontsextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2f8682eecd80a19eb7bbe03a7c1527326123e02 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-fontsextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-fontsextra | grep -v \.src | grep texlive-collection-fontsextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-fontsextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-fontsextra + CHECK_RESULT $? 0 0 "install texlive-collection-fontsextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-fontsextra + CHECK_RESULT $? 0 0 "remove texlive-collection-fontsextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-fontsrecommended.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-fontsrecommended.sh new file mode 100644 index 0000000000000000000000000000000000000000..49261dec21f87c441fdcff01c115c0b397344982 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-fontsrecommended.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-fontsrecommended | grep -v \.src | grep texlive-collection-fontsrecommended + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-fontsrecommended" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-fontsrecommended + CHECK_RESULT $? 0 0 "install texlive-collection-fontsrecommended failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-fontsrecommended + CHECK_RESULT $? 0 0 "remove texlive-collection-fontsrecommended failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-fontutils.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-fontutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..5361a8b659a74a17f4c600ba7c50057e809894fd --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-fontutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-fontutils | grep -v \.src | grep texlive-collection-fontutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-fontutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-fontutils + CHECK_RESULT $? 0 0 "install texlive-collection-fontutils failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-fontutils + CHECK_RESULT $? 0 0 "remove texlive-collection-fontutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-formatsextra.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-formatsextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3f710d6372c5eb41f40286f9c7a906aa2f17140 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-formatsextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-formatsextra | grep -v \.src | grep texlive-collection-formatsextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-formatsextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-formatsextra + CHECK_RESULT $? 0 0 "install texlive-collection-formatsextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-formatsextra + CHECK_RESULT $? 0 0 "remove texlive-collection-formatsextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-games.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-games.sh new file mode 100644 index 0000000000000000000000000000000000000000..b55207cadafeaee84073eb815ddb78f3e23add89 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-games.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-games | grep -v \.src | grep texlive-collection-games + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-games" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-games + CHECK_RESULT $? 0 0 "install texlive-collection-games failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-games + CHECK_RESULT $? 0 0 "remove texlive-collection-games failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-humanities.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-humanities.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f03f41aaec654344f65ae32e1368361162411cf --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-humanities.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-humanities | grep -v \.src | grep texlive-collection-humanities + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-humanities" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-humanities + CHECK_RESULT $? 0 0 "install texlive-collection-humanities failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-humanities + CHECK_RESULT $? 0 0 "remove texlive-collection-humanities failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langarabic.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langarabic.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0a291377f83f0df64213cdf73cbdf3cdc5ed805 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langarabic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langarabic | grep -v \.src | grep texlive-collection-langarabic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langarabic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langarabic + CHECK_RESULT $? 0 0 "install texlive-collection-langarabic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langarabic + CHECK_RESULT $? 0 0 "remove texlive-collection-langarabic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langchinese.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langchinese.sh new file mode 100644 index 0000000000000000000000000000000000000000..47a7d2c4797293671c2886f69e04460c3e864401 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langchinese.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langchinese | grep -v \.src | grep texlive-collection-langchinese + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langchinese" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langchinese + CHECK_RESULT $? 0 0 "install texlive-collection-langchinese failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langchinese + CHECK_RESULT $? 0 0 "remove texlive-collection-langchinese failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langcjk.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langcjk.sh new file mode 100644 index 0000000000000000000000000000000000000000..963e61c42867b9eb02c9eae546a5c20d411120ea --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langcjk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langcjk | grep -v \.src | grep texlive-collection-langcjk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langcjk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langcjk + CHECK_RESULT $? 0 0 "install texlive-collection-langcjk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langcjk + CHECK_RESULT $? 0 0 "remove texlive-collection-langcjk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langcyrillic.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langcyrillic.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccfd445e761291a286307424f54da46b3d43d10d --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langcyrillic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langcyrillic | grep -v \.src | grep texlive-collection-langcyrillic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langcyrillic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langcyrillic + CHECK_RESULT $? 0 0 "install texlive-collection-langcyrillic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langcyrillic + CHECK_RESULT $? 0 0 "remove texlive-collection-langcyrillic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langczechslovak.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langczechslovak.sh new file mode 100644 index 0000000000000000000000000000000000000000..7911d4307d2346d37e505786488de4a6a9ac4ebb --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langczechslovak.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langczechslovak | grep -v \.src | grep texlive-collection-langczechslovak + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langczechslovak" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langczechslovak + CHECK_RESULT $? 0 0 "install texlive-collection-langczechslovak failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langczechslovak + CHECK_RESULT $? 0 0 "remove texlive-collection-langczechslovak failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langenglish.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langenglish.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ab926f59e8828e7a719a59e94a05bf9a025a6fe --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langenglish.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langenglish | grep -v \.src | grep texlive-collection-langenglish + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langenglish" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langenglish + CHECK_RESULT $? 0 0 "install texlive-collection-langenglish failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langenglish + CHECK_RESULT $? 0 0 "remove texlive-collection-langenglish failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langeuropean.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langeuropean.sh new file mode 100644 index 0000000000000000000000000000000000000000..d12c482c39a5adadbfd6c280b420db2f5752bdf5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langeuropean.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langeuropean | grep -v \.src | grep texlive-collection-langeuropean + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langeuropean" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langeuropean + CHECK_RESULT $? 0 0 "install texlive-collection-langeuropean failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langeuropean + CHECK_RESULT $? 0 0 "remove texlive-collection-langeuropean failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langfrench.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langfrench.sh new file mode 100644 index 0000000000000000000000000000000000000000..3115feaf0b0201428d0d7aab8e35ee1e86a934b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langfrench.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langfrench | grep -v \.src | grep texlive-collection-langfrench + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langfrench" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langfrench + CHECK_RESULT $? 0 0 "install texlive-collection-langfrench failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langfrench + CHECK_RESULT $? 0 0 "remove texlive-collection-langfrench failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langgerman.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langgerman.sh new file mode 100644 index 0000000000000000000000000000000000000000..827dd325e10ae00bf0d86c1261edbb56b7eb2dc5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langgerman.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langgerman | grep -v \.src | grep texlive-collection-langgerman + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langgerman" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langgerman + CHECK_RESULT $? 0 0 "install texlive-collection-langgerman failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langgerman + CHECK_RESULT $? 0 0 "remove texlive-collection-langgerman failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langgreek.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langgreek.sh new file mode 100644 index 0000000000000000000000000000000000000000..57412d6f372544476739d617018165221a098c70 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langgreek.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langgreek | grep -v \.src | grep texlive-collection-langgreek + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langgreek" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langgreek + CHECK_RESULT $? 0 0 "install texlive-collection-langgreek failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langgreek + CHECK_RESULT $? 0 0 "remove texlive-collection-langgreek failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langitalian.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langitalian.sh new file mode 100644 index 0000000000000000000000000000000000000000..23f5b496bcdb4108ac30ed9ec7b6fa92510bca25 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langitalian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langitalian | grep -v \.src | grep texlive-collection-langitalian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langitalian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langitalian + CHECK_RESULT $? 0 0 "install texlive-collection-langitalian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langitalian + CHECK_RESULT $? 0 0 "remove texlive-collection-langitalian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langjapanese.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langjapanese.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf31591cd0be0ab6f38b7210934141e2bdac99ec --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langjapanese.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langjapanese | grep -v \.src | grep texlive-collection-langjapanese + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langjapanese" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langjapanese + CHECK_RESULT $? 0 0 "install texlive-collection-langjapanese failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langjapanese + CHECK_RESULT $? 0 0 "remove texlive-collection-langjapanese failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langkorean.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langkorean.sh new file mode 100644 index 0000000000000000000000000000000000000000..83c5a70c933e522b809a86edf7576c35aa8e5558 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langkorean.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langkorean | grep -v \.src | grep texlive-collection-langkorean + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langkorean" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langkorean + CHECK_RESULT $? 0 0 "install texlive-collection-langkorean failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langkorean + CHECK_RESULT $? 0 0 "remove texlive-collection-langkorean failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langother.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langother.sh new file mode 100644 index 0000000000000000000000000000000000000000..06f074cc05f5906f653bd8819ad3111dc009975e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langother.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langother | grep -v \.src | grep texlive-collection-langother + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langother" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langother + CHECK_RESULT $? 0 0 "install texlive-collection-langother failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langother + CHECK_RESULT $? 0 0 "remove texlive-collection-langother failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langpolish.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langpolish.sh new file mode 100644 index 0000000000000000000000000000000000000000..b368bc49c2026a45098b68bed8d9b7c6a7d80ef1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langpolish.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langpolish | grep -v \.src | grep texlive-collection-langpolish + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langpolish" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langpolish + CHECK_RESULT $? 0 0 "install texlive-collection-langpolish failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langpolish + CHECK_RESULT $? 0 0 "remove texlive-collection-langpolish failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langportuguese.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langportuguese.sh new file mode 100644 index 0000000000000000000000000000000000000000..e961f88828116cbb4252b540a88e29ce56f1c29d --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langportuguese.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langportuguese | grep -v \.src | grep texlive-collection-langportuguese + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langportuguese" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langportuguese + CHECK_RESULT $? 0 0 "install texlive-collection-langportuguese failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langportuguese + CHECK_RESULT $? 0 0 "remove texlive-collection-langportuguese failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langspanish.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langspanish.sh new file mode 100644 index 0000000000000000000000000000000000000000..98267f0a00dfc508e4f3caaaa00c350211a35a10 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-langspanish.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-langspanish | grep -v \.src | grep texlive-collection-langspanish + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-langspanish" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-langspanish + CHECK_RESULT $? 0 0 "install texlive-collection-langspanish failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-langspanish + CHECK_RESULT $? 0 0 "remove texlive-collection-langspanish failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-latex.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-latex.sh new file mode 100644 index 0000000000000000000000000000000000000000..6cc328cb1d4f9a38dadb21331407212c9c935598 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-latex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-latex | grep -v \.src | grep texlive-collection-latex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-latex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-latex + CHECK_RESULT $? 0 0 "install texlive-collection-latex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-latex + CHECK_RESULT $? 0 0 "remove texlive-collection-latex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-latexextra.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-latexextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ed672f036cb6de2262447c1bcf899909896a4c0 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-latexextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-latexextra | grep -v \.src | grep texlive-collection-latexextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-latexextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-latexextra + CHECK_RESULT $? 0 0 "install texlive-collection-latexextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-latexextra + CHECK_RESULT $? 0 0 "remove texlive-collection-latexextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-latexrecommended.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-latexrecommended.sh new file mode 100644 index 0000000000000000000000000000000000000000..371a9ffc4560e4266f7a7a69cfadde60fc2c4759 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-latexrecommended.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-latexrecommended | grep -v \.src | grep texlive-collection-latexrecommended + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-latexrecommended" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-latexrecommended + CHECK_RESULT $? 0 0 "install texlive-collection-latexrecommended failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-latexrecommended + CHECK_RESULT $? 0 0 "remove texlive-collection-latexrecommended failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-luatex.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-luatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..09ad81cdbb7a2f0f864062f6ce0772c7275a0bc0 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-luatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-luatex | grep -v \.src | grep texlive-collection-luatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-luatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-luatex + CHECK_RESULT $? 0 0 "install texlive-collection-luatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-luatex + CHECK_RESULT $? 0 0 "remove texlive-collection-luatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-mathscience.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-mathscience.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a550182e5b70450fab47f72f398b37a1af8f037 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-mathscience.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-mathscience | grep -v \.src | grep texlive-collection-mathscience + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-mathscience" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-mathscience + CHECK_RESULT $? 0 0 "install texlive-collection-mathscience failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-mathscience + CHECK_RESULT $? 0 0 "remove texlive-collection-mathscience failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-metapost.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-metapost.sh new file mode 100644 index 0000000000000000000000000000000000000000..aca0d36bfa8366f9c9430b8cdabfaa00f4f085b0 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-metapost.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-metapost | grep -v \.src | grep texlive-collection-metapost + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-metapost" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-metapost + CHECK_RESULT $? 0 0 "install texlive-collection-metapost failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-metapost + CHECK_RESULT $? 0 0 "remove texlive-collection-metapost failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-music.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-music.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf5da2c42a60cacc2458e87b50a5ed671aec593c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-music.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-music | grep -v \.src | grep texlive-collection-music + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-music" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-music + CHECK_RESULT $? 0 0 "install texlive-collection-music failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-music + CHECK_RESULT $? 0 0 "remove texlive-collection-music failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-pictures.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-pictures.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c4b99814abbf4c7c6f61474e62d79bcd58dd314 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-pictures.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-pictures | grep -v \.src | grep texlive-collection-pictures + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-pictures" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-pictures + CHECK_RESULT $? 0 0 "install texlive-collection-pictures failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-pictures + CHECK_RESULT $? 0 0 "remove texlive-collection-pictures failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-plaingeneric.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-plaingeneric.sh new file mode 100644 index 0000000000000000000000000000000000000000..14b782026c941725606a755c2ed767d864a565ec --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-plaingeneric.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-plaingeneric | grep -v \.src | grep texlive-collection-plaingeneric + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-plaingeneric" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-plaingeneric + CHECK_RESULT $? 0 0 "install texlive-collection-plaingeneric failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-plaingeneric + CHECK_RESULT $? 0 0 "remove texlive-collection-plaingeneric failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-pstricks.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-pstricks.sh new file mode 100644 index 0000000000000000000000000000000000000000..e163896d2572f99a8ad1416ef050c206acf63ffe --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-pstricks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-pstricks | grep -v \.src | grep texlive-collection-pstricks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-pstricks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-pstricks + CHECK_RESULT $? 0 0 "install texlive-collection-pstricks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-pstricks + CHECK_RESULT $? 0 0 "remove texlive-collection-pstricks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-publishers.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-publishers.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccdef07eee36802ed8084e8b93fcf39c9cc4cc9a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-publishers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-publishers | grep -v \.src | grep texlive-collection-publishers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-publishers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-publishers + CHECK_RESULT $? 0 0 "install texlive-collection-publishers failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-publishers + CHECK_RESULT $? 0 0 "remove texlive-collection-publishers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-texworks.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-texworks.sh new file mode 100644 index 0000000000000000000000000000000000000000..abca7238066593b4bbbedfeacdc86e74456ae5b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-texworks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-texworks | grep -v \.src | grep texlive-collection-texworks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-texworks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-texworks + CHECK_RESULT $? 0 0 "install texlive-collection-texworks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-texworks + CHECK_RESULT $? 0 0 "remove texlive-collection-texworks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-xetex.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-xetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..e37c66cbea7ca2754214e9576c43953a051c3164 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collection-xetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collection-xetex | grep -v \.src | grep texlive-collection-xetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collection-xetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collection-xetex + CHECK_RESULT $? 0 0 "install texlive-collection-xetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collection-xetex + CHECK_RESULT $? 0 0 "remove texlive-collection-xetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collref-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..77b2bc89067417b501d05c045ba5407f12ed2780 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collref-doc | grep -v \.src | grep texlive-collref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collref-doc + CHECK_RESULT $? 0 0 "install texlive-collref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collref-doc + CHECK_RESULT $? 0 0 "remove texlive-collref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collref.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collref.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e7a6e3d539536a1b67d13031879a0f3e1763a41 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-collref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-collref | grep -v \.src | grep texlive-collref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-collref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-collref + CHECK_RESULT $? 0 0 "install texlive-collref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-collref + CHECK_RESULT $? 0 0 "remove texlive-collref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colordoc-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colordoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..684da6d3b8e475d715ec2fe7764a8a75921d6ba2 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colordoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colordoc-doc | grep -v \.src | grep texlive-colordoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colordoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colordoc-doc + CHECK_RESULT $? 0 0 "install texlive-colordoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colordoc-doc + CHECK_RESULT $? 0 0 "remove texlive-colordoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colordoc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colordoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3c12e79f4f38caef6f2a37b93d95a38f9d99b76 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colordoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colordoc | grep -v \.src | grep texlive-colordoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colordoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colordoc + CHECK_RESULT $? 0 0 "install texlive-colordoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colordoc + CHECK_RESULT $? 0 0 "remove texlive-colordoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorinfo-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorinfo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5d4ee8ae4b9cd03025f40538a8e2c1d23fe0f1c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorinfo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorinfo-doc | grep -v \.src | grep texlive-colorinfo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorinfo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorinfo-doc + CHECK_RESULT $? 0 0 "install texlive-colorinfo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorinfo-doc + CHECK_RESULT $? 0 0 "remove texlive-colorinfo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorinfo.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorinfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c92f38f509c29e4e05c45d8e28e640aa8cdf9ec9 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorinfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorinfo | grep -v \.src | grep texlive-colorinfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorinfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorinfo + CHECK_RESULT $? 0 0 "install texlive-colorinfo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorinfo + CHECK_RESULT $? 0 0 "remove texlive-colorinfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coloring-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coloring-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ace94ce5b64e2d384181e4bd0cd10141be60e2e1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coloring-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coloring-doc | grep -v \.src | grep texlive-coloring-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coloring-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coloring-doc + CHECK_RESULT $? 0 0 "install texlive-coloring-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coloring-doc + CHECK_RESULT $? 0 0 "remove texlive-coloring-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coloring.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coloring.sh new file mode 100644 index 0000000000000000000000000000000000000000..14e3820b7daa445808febc7757ae611d850d1b86 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coloring.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coloring | grep -v \.src | grep texlive-coloring + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coloring" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coloring + CHECK_RESULT $? 0 0 "install texlive-coloring failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coloring + CHECK_RESULT $? 0 0 "remove texlive-coloring failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorsep.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorsep.sh new file mode 100644 index 0000000000000000000000000000000000000000..ddf4e3470bc559652b1e1317833436a0e14cdfc4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorsep.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorsep | grep -v \.src | grep texlive-colorsep + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorsep" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorsep + CHECK_RESULT $? 0 0 "install texlive-colorsep failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorsep + CHECK_RESULT $? 0 0 "remove texlive-colorsep failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorspace-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorspace-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b598a8a3d69c6d2dc4ae86f768426dd45c6b2f50 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorspace-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorspace-doc | grep -v \.src | grep texlive-colorspace-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorspace-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorspace-doc + CHECK_RESULT $? 0 0 "install texlive-colorspace-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorspace-doc + CHECK_RESULT $? 0 0 "remove texlive-colorspace-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorspace.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorspace.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d7f739782c3edc0275612058920a245de308b08 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorspace.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorspace | grep -v \.src | grep texlive-colorspace + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorspace" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorspace + CHECK_RESULT $? 0 0 "install texlive-colorspace failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorspace + CHECK_RESULT $? 0 0 "remove texlive-colorspace failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortab-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortab-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2b10960b8dd33d904aa7ad061c2d9344009c2dc --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortab-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colortab-doc | grep -v \.src | grep texlive-colortab-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colortab-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colortab-doc + CHECK_RESULT $? 0 0 "install texlive-colortab-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colortab-doc + CHECK_RESULT $? 0 0 "remove texlive-colortab-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortab.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortab.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd97de3e2aa586cb925c5eebc3a002242e587a22 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colortab | grep -v \.src | grep texlive-colortab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colortab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colortab + CHECK_RESULT $? 0 0 "install texlive-colortab failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colortab + CHECK_RESULT $? 0 0 "remove texlive-colortab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortbl-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortbl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..70d52ccce01adb9afa889b32a41d8e55d1e6857f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortbl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colortbl-doc | grep -v \.src | grep texlive-colortbl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colortbl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colortbl-doc + CHECK_RESULT $? 0 0 "install texlive-colortbl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colortbl-doc + CHECK_RESULT $? 0 0 "remove texlive-colortbl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortbl.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortbl.sh new file mode 100644 index 0000000000000000000000000000000000000000..11889a37d441fe56f33740230f462226ef139224 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colortbl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colortbl | grep -v \.src | grep texlive-colortbl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colortbl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colortbl + CHECK_RESULT $? 0 0 "install texlive-colortbl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colortbl + CHECK_RESULT $? 0 0 "remove texlive-colortbl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorwav-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorwav-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e71a3ba1965dabdfcb859d6cb8b6bf99830b636a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorwav-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorwav-doc | grep -v \.src | grep texlive-colorwav-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorwav-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorwav-doc + CHECK_RESULT $? 0 0 "install texlive-colorwav-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorwav-doc + CHECK_RESULT $? 0 0 "remove texlive-colorwav-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorwav.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorwav.sh new file mode 100644 index 0000000000000000000000000000000000000000..13d9d845a77c1076413937751bd2edc8701b4046 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorwav.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorwav | grep -v \.src | grep texlive-colorwav + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorwav" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorwav + CHECK_RESULT $? 0 0 "install texlive-colorwav failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorwav + CHECK_RESULT $? 0 0 "remove texlive-colorwav failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorweb-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorweb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d26fcb98475ae9a7c309442331cc64ac65f92752 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorweb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorweb-doc | grep -v \.src | grep texlive-colorweb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorweb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorweb-doc + CHECK_RESULT $? 0 0 "install texlive-colorweb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorweb-doc + CHECK_RESULT $? 0 0 "remove texlive-colorweb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorweb.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorweb.sh new file mode 100644 index 0000000000000000000000000000000000000000..b88e4952a2798cbaf1d9563d83779bb132ca9252 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colorweb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorweb | grep -v \.src | grep texlive-colorweb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorweb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorweb + CHECK_RESULT $? 0 0 "install texlive-colorweb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorweb + CHECK_RESULT $? 0 0 "remove texlive-colorweb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colourchange-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colourchange-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..84f67d6c665345b9bcdaa7e115075383dfac8518 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colourchange-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colourchange-doc | grep -v \.src | grep texlive-colourchange-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colourchange-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colourchange-doc + CHECK_RESULT $? 0 0 "install texlive-colourchange-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colourchange-doc + CHECK_RESULT $? 0 0 "remove texlive-colourchange-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colourchange.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colourchange.sh new file mode 100644 index 0000000000000000000000000000000000000000..2eac507333bfe9f4b3fca5acc8579c9b8b6c00e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-colourchange.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colourchange | grep -v \.src | grep texlive-colourchange + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colourchange" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colourchange + CHECK_RESULT $? 0 0 "install texlive-colourchange failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colourchange + CHECK_RESULT $? 0 0 "remove texlive-colourchange failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combelow-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combelow-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2538268dc6b9a5e3adc31e434e2b403b037eb88 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combelow-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-combelow-doc | grep -v \.src | grep texlive-combelow-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-combelow-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-combelow-doc + CHECK_RESULT $? 0 0 "install texlive-combelow-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-combelow-doc + CHECK_RESULT $? 0 0 "remove texlive-combelow-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combelow.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combelow.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b4a90ef1542e20288ebb99fa62315a3d23a39ea --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combelow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-combelow | grep -v \.src | grep texlive-combelow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-combelow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-combelow + CHECK_RESULT $? 0 0 "install texlive-combelow failed" + SLEEP_WAIT 1 + dnf remove -y texlive-combelow + CHECK_RESULT $? 0 0 "remove texlive-combelow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combine-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combine-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fddead524c652999b84cbcb5b2f3a62106e8faaa --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combine-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-combine-doc | grep -v \.src | grep texlive-combine-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-combine-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-combine-doc + CHECK_RESULT $? 0 0 "install texlive-combine-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-combine-doc + CHECK_RESULT $? 0 0 "remove texlive-combine-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combine.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combine.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4d7caa70eb2ecd30971b74afb97136c35c8674d --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combine.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-combine | grep -v \.src | grep texlive-combine + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-combine" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-combine + CHECK_RESULT $? 0 0 "install texlive-combine failed" + SLEEP_WAIT 1 + dnf remove -y texlive-combine + CHECK_RESULT $? 0 0 "remove texlive-combine failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combinedgraphics-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combinedgraphics-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f22c34d462b2d7e6c1167d87e71d7b7c93062a67 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combinedgraphics-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-combinedgraphics-doc | grep -v \.src | grep texlive-combinedgraphics-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-combinedgraphics-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-combinedgraphics-doc + CHECK_RESULT $? 0 0 "install texlive-combinedgraphics-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-combinedgraphics-doc + CHECK_RESULT $? 0 0 "remove texlive-combinedgraphics-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combinedgraphics.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combinedgraphics.sh new file mode 100644 index 0000000000000000000000000000000000000000..c346526b80418784eab003f0faa76c152b2cdad7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combinedgraphics.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-combinedgraphics | grep -v \.src | grep texlive-combinedgraphics + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-combinedgraphics" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-combinedgraphics + CHECK_RESULT $? 0 0 "install texlive-combinedgraphics failed" + SLEEP_WAIT 1 + dnf remove -y texlive-combinedgraphics + CHECK_RESULT $? 0 0 "remove texlive-combinedgraphics failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combofont.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combofont.sh new file mode 100644 index 0000000000000000000000000000000000000000..c82819782f10eda08097bc90dff2b4bfbe9e8884 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-combofont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-combofont | grep -v \.src | grep texlive-combofont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-combofont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-combofont + CHECK_RESULT $? 0 0 "install texlive-combofont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-combofont + CHECK_RESULT $? 0 0 "remove texlive-combofont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comfortaa-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comfortaa-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f525e371b61c78bab846fb33838899baeb24c1be --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comfortaa-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-comfortaa-doc | grep -v \.src | grep texlive-comfortaa-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-comfortaa-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-comfortaa-doc + CHECK_RESULT $? 0 0 "install texlive-comfortaa-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-comfortaa-doc + CHECK_RESULT $? 0 0 "remove texlive-comfortaa-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comfortaa.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comfortaa.sh new file mode 100644 index 0000000000000000000000000000000000000000..4df4c64308ba96673029ed0cc5a35506fe9a8072 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comfortaa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-comfortaa | grep -v \.src | grep texlive-comfortaa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-comfortaa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-comfortaa + CHECK_RESULT $? 0 0 "install texlive-comfortaa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-comfortaa + CHECK_RESULT $? 0 0 "remove texlive-comfortaa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comicneue-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comicneue-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcaf744ba64a7d5e74e82b8eac01ce2822cb179f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comicneue-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-comicneue-doc | grep -v \.src | grep texlive-comicneue-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-comicneue-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-comicneue-doc + CHECK_RESULT $? 0 0 "install texlive-comicneue-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-comicneue-doc + CHECK_RESULT $? 0 0 "remove texlive-comicneue-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comicneue.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comicneue.sh new file mode 100644 index 0000000000000000000000000000000000000000..cced596960b6d4df2bdcb7eebca56d605a93efbd --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comicneue.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-comicneue | grep -v \.src | grep texlive-comicneue + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-comicneue" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-comicneue + CHECK_RESULT $? 0 0 "install texlive-comicneue failed" + SLEEP_WAIT 1 + dnf remove -y texlive-comicneue + CHECK_RESULT $? 0 0 "remove texlive-comicneue failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comma-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comma-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8365637f4fc21acb73d613af3b232869013e9030 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comma-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-comma-doc | grep -v \.src | grep texlive-comma-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-comma-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-comma-doc + CHECK_RESULT $? 0 0 "install texlive-comma-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-comma-doc + CHECK_RESULT $? 0 0 "remove texlive-comma-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comma.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comma.sh new file mode 100644 index 0000000000000000000000000000000000000000..735052d8ad0c21cfaa515996f095e6d48c76d774 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comma.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-comma | grep -v \.src | grep texlive-comma + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-comma" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-comma + CHECK_RESULT $? 0 0 "install texlive-comma failed" + SLEEP_WAIT 1 + dnf remove -y texlive-comma + CHECK_RESULT $? 0 0 "remove texlive-comma failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commado-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commado-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d1b10cb78e65dd838e956972ea4493957f98510 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commado-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-commado-doc | grep -v \.src | grep texlive-commado-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-commado-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-commado-doc + CHECK_RESULT $? 0 0 "install texlive-commado-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-commado-doc + CHECK_RESULT $? 0 0 "remove texlive-commado-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commado.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commado.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5dd2a0489b98008dbc12e8c31ff3d5895b38fd8 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commado.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-commado | grep -v \.src | grep texlive-commado + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-commado" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-commado + CHECK_RESULT $? 0 0 "install texlive-commado failed" + SLEEP_WAIT 1 + dnf remove -y texlive-commado + CHECK_RESULT $? 0 0 "remove texlive-commado failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commath-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b46ce17f08ffff2471f0b878141a4cfbe2a199f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-commath-doc | grep -v \.src | grep texlive-commath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-commath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-commath-doc + CHECK_RESULT $? 0 0 "install texlive-commath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-commath-doc + CHECK_RESULT $? 0 0 "remove texlive-commath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commath.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commath.sh new file mode 100644 index 0000000000000000000000000000000000000000..14ef487f3aa81f66b8f160a1c8e752543d8fc2d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-commath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-commath | grep -v \.src | grep texlive-commath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-commath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-commath + CHECK_RESULT $? 0 0 "install texlive-commath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-commath + CHECK_RESULT $? 0 0 "remove texlive-commath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comment-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comment-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2aeb58427c42e414f692b1d7a0fcdb2747e0532 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comment-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-comment-doc | grep -v \.src | grep texlive-comment-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-comment-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-comment-doc + CHECK_RESULT $? 0 0 "install texlive-comment-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-comment-doc + CHECK_RESULT $? 0 0 "remove texlive-comment-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comment.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comment.sh new file mode 100644 index 0000000000000000000000000000000000000000..97d8ba6e56887ebf5a1db4b6e6ca1ad97bf1cb06 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comment.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-comment | grep -v \.src | grep texlive-comment + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-comment" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-comment + CHECK_RESULT $? 0 0 "install texlive-comment failed" + SLEEP_WAIT 1 + dnf remove -y texlive-comment + CHECK_RESULT $? 0 0 "remove texlive-comment failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-compactbib.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-compactbib.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d887cba3bf198c1071dc01dc7ab1b2c09b06384 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-compactbib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-compactbib | grep -v \.src | grep texlive-compactbib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-compactbib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-compactbib + CHECK_RESULT $? 0 0 "install texlive-compactbib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-compactbib + CHECK_RESULT $? 0 0 "remove texlive-compactbib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-competences.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-competences.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0e852d14c6db308360b6224f626c76cd0a3cdb0 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-competences.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-competences | grep -v \.src | grep texlive-competences + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-competences" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-competences + CHECK_RESULT $? 0 0 "install texlive-competences failed" + SLEEP_WAIT 1 + dnf remove -y texlive-competences + CHECK_RESULT $? 0 0 "remove texlive-competences failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-complexity-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-complexity-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5326eccf454dfd08e715426cc9b4af1ec07fa1c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-complexity-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-complexity-doc | grep -v \.src | grep texlive-complexity-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-complexity-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-complexity-doc + CHECK_RESULT $? 0 0 "install texlive-complexity-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-complexity-doc + CHECK_RESULT $? 0 0 "remove texlive-complexity-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-complexity.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-complexity.sh new file mode 100644 index 0000000000000000000000000000000000000000..42c9aa3ce8e3be2e2fe8225cd4f6655de8d98de5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-complexity.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-complexity | grep -v \.src | grep texlive-complexity + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-complexity" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-complexity + CHECK_RESULT $? 0 0 "install texlive-complexity failed" + SLEEP_WAIT 1 + dnf remove -y texlive-complexity + CHECK_RESULT $? 0 0 "remove texlive-complexity failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-components-of-TeX-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-components-of-TeX-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..da3ee8052e26cb80a1b21c77275dac209569416e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-components-of-TeX-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-components-of-TeX-doc | grep -v \.src | grep texlive-components-of-TeX-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-components-of-TeX-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-components-of-TeX-doc + CHECK_RESULT $? 0 0 "install texlive-components-of-TeX-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-components-of-TeX-doc + CHECK_RESULT $? 0 0 "remove texlive-components-of-TeX-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comprehensive-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comprehensive-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7bbec5f1eedee41b54f70815d49da1c195892c76 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-comprehensive-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-comprehensive-doc | grep -v \.src | grep texlive-comprehensive-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-comprehensive-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-comprehensive-doc + CHECK_RESULT $? 0 0 "install texlive-comprehensive-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-comprehensive-doc + CHECK_RESULT $? 0 0 "remove texlive-comprehensive-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-computational-complexity-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-computational-complexity-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..799ba3ced48e1cfc6c7510726aae985084415247 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-computational-complexity-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-computational-complexity-doc | grep -v \.src | grep texlive-computational-complexity-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-computational-complexity-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-computational-complexity-doc + CHECK_RESULT $? 0 0 "install texlive-computational-complexity-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-computational-complexity-doc + CHECK_RESULT $? 0 0 "remove texlive-computational-complexity-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-computational-complexity.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-computational-complexity.sh new file mode 100644 index 0000000000000000000000000000000000000000..942148c18fac8fd34bf01045876cb10c7bd2828e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-computational-complexity.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-computational-complexity | grep -v \.src | grep texlive-computational-complexity + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-computational-complexity" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-computational-complexity + CHECK_RESULT $? 0 0 "install texlive-computational-complexity failed" + SLEEP_WAIT 1 + dnf remove -y texlive-computational-complexity + CHECK_RESULT $? 0 0 "remove texlive-computational-complexity failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concepts-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concepts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a2fedb5746af76c2aad39f414560a1b00365121 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concepts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-concepts-doc | grep -v \.src | grep texlive-concepts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-concepts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-concepts-doc + CHECK_RESULT $? 0 0 "install texlive-concepts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-concepts-doc + CHECK_RESULT $? 0 0 "remove texlive-concepts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concepts.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concepts.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f1988408b103caa4e77f3aebdf73b722a559210 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concepts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-concepts | grep -v \.src | grep texlive-concepts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-concepts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-concepts + CHECK_RESULT $? 0 0 "install texlive-concepts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-concepts + CHECK_RESULT $? 0 0 "remove texlive-concepts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebb9150ba6263bcc7ad50ebcd8b4ae07aeb46b4a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-concmath-doc | grep -v \.src | grep texlive-concmath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-concmath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-concmath-doc + CHECK_RESULT $? 0 0 "install texlive-concmath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-concmath-doc + CHECK_RESULT $? 0 0 "remove texlive-concmath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath-fonts-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath-fonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..316a26bab157e26d4649343e2afe83a44ebc865d --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath-fonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-concmath-fonts-doc | grep -v \.src | grep texlive-concmath-fonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-concmath-fonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-concmath-fonts-doc + CHECK_RESULT $? 0 0 "install texlive-concmath-fonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-concmath-fonts-doc + CHECK_RESULT $? 0 0 "remove texlive-concmath-fonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath-fonts.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..a347e98ebde8e200e07dbc93e111c63211da461f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-concmath-fonts | grep -v \.src | grep texlive-concmath-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-concmath-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-concmath-fonts + CHECK_RESULT $? 0 0 "install texlive-concmath-fonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-concmath-fonts + CHECK_RESULT $? 0 0 "remove texlive-concmath-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..133f264edbb57d4b0f74ae8c8d6ef2d4b0332708 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-concmath | grep -v \.src | grep texlive-concmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-concmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-concmath + CHECK_RESULT $? 0 0 "install texlive-concmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-concmath + CHECK_RESULT $? 0 0 "remove texlive-concmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concprog-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concprog-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8ccd8ae397492d70f99408cee2f67cfe21bf40c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concprog-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-concprog-doc | grep -v \.src | grep texlive-concprog-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-concprog-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-concprog-doc + CHECK_RESULT $? 0 0 "install texlive-concprog-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-concprog-doc + CHECK_RESULT $? 0 0 "remove texlive-concprog-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concprog.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concprog.sh new file mode 100644 index 0000000000000000000000000000000000000000..a1e9262072745b98046cd1b95cc0c870e98e768c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concprog.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-concprog | grep -v \.src | grep texlive-concprog + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-concprog" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-concprog + CHECK_RESULT $? 0 0 "install texlive-concprog failed" + SLEEP_WAIT 1 + dnf remove -y texlive-concprog + CHECK_RESULT $? 0 0 "remove texlive-concprog failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concrete-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concrete-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3be8958619c6c07673095d4dbd24bb21492f367c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concrete-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-concrete-doc | grep -v \.src | grep texlive-concrete-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-concrete-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-concrete-doc + CHECK_RESULT $? 0 0 "install texlive-concrete-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-concrete-doc + CHECK_RESULT $? 0 0 "remove texlive-concrete-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concrete.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concrete.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f9cc4a1f6ada36310a049f078152098c25d1b11 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-concrete.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-concrete | grep -v \.src | grep texlive-concrete + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-concrete" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-concrete + CHECK_RESULT $? 0 0 "install texlive-concrete failed" + SLEEP_WAIT 1 + dnf remove -y texlive-concrete + CHECK_RESULT $? 0 0 "remove texlive-concrete failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-confproc-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-confproc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b491452ef5d1110243ad7cb315490f3d6d34a482 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-confproc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-confproc-doc | grep -v \.src | grep texlive-confproc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-confproc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-confproc-doc + CHECK_RESULT $? 0 0 "install texlive-confproc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-confproc-doc + CHECK_RESULT $? 0 0 "remove texlive-confproc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-confproc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-confproc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cad60b3c85458d8ec5861a2b308f413f95331861 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-confproc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-confproc | grep -v \.src | grep texlive-confproc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-confproc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-confproc + CHECK_RESULT $? 0 0 "install texlive-confproc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-confproc + CHECK_RESULT $? 0 0 "remove texlive-confproc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-constants-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-constants-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6a092fac6aaa3061da7d7e98f7ca5d9f92c9369 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-constants-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-constants-doc | grep -v \.src | grep texlive-constants-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-constants-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-constants-doc + CHECK_RESULT $? 0 0 "install texlive-constants-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-constants-doc + CHECK_RESULT $? 0 0 "remove texlive-constants-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-constants.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-constants.sh new file mode 100644 index 0000000000000000000000000000000000000000..7fb1440b6c4de622e4b245f35eb040a23b60ae18 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-constants.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-constants | grep -v \.src | grep texlive-constants + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-constants" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-constants + CHECK_RESULT $? 0 0 "install texlive-constants failed" + SLEEP_WAIT 1 + dnf remove -y texlive-constants + CHECK_RESULT $? 0 0 "remove texlive-constants failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-conteq-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-conteq-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b3a6131446878928e630325d9c205d79cb2bd4a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-conteq-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-conteq-doc | grep -v \.src | grep texlive-conteq-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-conteq-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-conteq-doc + CHECK_RESULT $? 0 0 "install texlive-conteq-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-conteq-doc + CHECK_RESULT $? 0 0 "remove texlive-conteq-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-conteq.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-conteq.sh new file mode 100644 index 0000000000000000000000000000000000000000..19ac28c41d2eb4dfb2fd3a1dc302fd5c4cfe2e29 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-conteq.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-conteq | grep -v \.src | grep texlive-conteq + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-conteq" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-conteq + CHECK_RESULT $? 0 0 "install texlive-conteq failed" + SLEEP_WAIT 1 + dnf remove -y texlive-conteq + CHECK_RESULT $? 0 0 "remove texlive-conteq failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-account-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-account-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e55a82032f40587a1e8d4703bfb6cfe5940030e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-account-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-account-doc | grep -v \.src | grep texlive-context-account-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-account-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-account-doc + CHECK_RESULT $? 0 0 "install texlive-context-account-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-account-doc + CHECK_RESULT $? 0 0 "remove texlive-context-account-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-account.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-account.sh new file mode 100644 index 0000000000000000000000000000000000000000..063ddcc04fb56feae126cce554ad83a8308a352f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-account.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-account | grep -v \.src | grep texlive-context-account + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-account" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-account + CHECK_RESULT $? 0 0 "install texlive-context-account failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-account + CHECK_RESULT $? 0 0 "remove texlive-context-account failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-algorithmic.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-algorithmic.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee5d37bbfce8f78560b8ad34a927e08ec8675c7f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-algorithmic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-algorithmic | grep -v \.src | grep texlive-context-algorithmic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-algorithmic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-algorithmic + CHECK_RESULT $? 0 0 "install texlive-context-algorithmic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-algorithmic + CHECK_RESULT $? 0 0 "remove texlive-context-algorithmic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-animation-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-animation-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..997d834f7e86afa95f12ef067324b7f0fdb2781b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-animation-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-animation-doc | grep -v \.src | grep texlive-context-animation-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-animation-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-animation-doc + CHECK_RESULT $? 0 0 "install texlive-context-animation-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-animation-doc + CHECK_RESULT $? 0 0 "remove texlive-context-animation-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-animation.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-animation.sh new file mode 100644 index 0000000000000000000000000000000000000000..8415abdff59da7b17b97226c87f9668f8a92091e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-animation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-animation | grep -v \.src | grep texlive-context-animation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-animation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-animation + CHECK_RESULT $? 0 0 "install texlive-context-animation failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-animation + CHECK_RESULT $? 0 0 "remove texlive-context-animation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-annotation-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-annotation-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7561233f9716eaca03e875a85c40198b921f0b14 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-annotation-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-annotation-doc | grep -v \.src | grep texlive-context-annotation-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-annotation-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-annotation-doc + CHECK_RESULT $? 0 0 "install texlive-context-annotation-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-annotation-doc + CHECK_RESULT $? 0 0 "remove texlive-context-annotation-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-annotation.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-annotation.sh new file mode 100644 index 0000000000000000000000000000000000000000..64c2b5f6425e005ac96311cfed8d6e2459e8316a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-annotation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-annotation | grep -v \.src | grep texlive-context-annotation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-annotation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-annotation + CHECK_RESULT $? 0 0 "install texlive-context-annotation failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-annotation + CHECK_RESULT $? 0 0 "remove texlive-context-annotation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-bnf-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-bnf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b78b8360c0eed0bedf3807483b32a0bc007aac5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-bnf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-bnf-doc | grep -v \.src | grep texlive-context-bnf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-bnf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-bnf-doc + CHECK_RESULT $? 0 0 "install texlive-context-bnf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-bnf-doc + CHECK_RESULT $? 0 0 "remove texlive-context-bnf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-bnf.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-bnf.sh new file mode 100644 index 0000000000000000000000000000000000000000..e273f3e27e9df79b0d28ec9c8ae04c557c3083be --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-bnf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-bnf | grep -v \.src | grep texlive-context-bnf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-bnf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-bnf + CHECK_RESULT $? 0 0 "install texlive-context-bnf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-bnf + CHECK_RESULT $? 0 0 "remove texlive-context-bnf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-chromato-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-chromato-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fd74a8c788ba4c08b81ee647e5612f5af0575f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-chromato-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-chromato-doc | grep -v \.src | grep texlive-context-chromato-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-chromato-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-chromato-doc + CHECK_RESULT $? 0 0 "install texlive-context-chromato-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-chromato-doc + CHECK_RESULT $? 0 0 "remove texlive-context-chromato-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-chromato.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-chromato.sh new file mode 100644 index 0000000000000000000000000000000000000000..237f3181ec1993f89a90d47838fc1c002023609e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-chromato.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-chromato | grep -v \.src | grep texlive-context-chromato + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-chromato" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-chromato + CHECK_RESULT $? 0 0 "install texlive-context-chromato failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-chromato + CHECK_RESULT $? 0 0 "remove texlive-context-chromato failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cmscbf.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cmscbf.sh new file mode 100644 index 0000000000000000000000000000000000000000..3de0777d705653e7cbe714fb7e2bcadd8c91c8bd --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cmscbf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-cmscbf | grep -v \.src | grep texlive-context-cmscbf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-cmscbf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-cmscbf + CHECK_RESULT $? 0 0 "install texlive-context-cmscbf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-cmscbf + CHECK_RESULT $? 0 0 "remove texlive-context-cmscbf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cmttbf.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cmttbf.sh new file mode 100644 index 0000000000000000000000000000000000000000..97df0b10cdc91ea8c940299e9700746ea10e7029 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cmttbf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-cmttbf | grep -v \.src | grep texlive-context-cmttbf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-cmttbf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-cmttbf + CHECK_RESULT $? 0 0 "install texlive-context-cmttbf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-cmttbf + CHECK_RESULT $? 0 0 "remove texlive-context-cmttbf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-construction-plan-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-construction-plan-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..200d66774d446cad38aa4129434047f1c92f084b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-construction-plan-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-construction-plan-doc | grep -v \.src | grep texlive-context-construction-plan-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-construction-plan-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-construction-plan-doc + CHECK_RESULT $? 0 0 "install texlive-context-construction-plan-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-construction-plan-doc + CHECK_RESULT $? 0 0 "remove texlive-context-construction-plan-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-construction-plan.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-construction-plan.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa4249f28f9fc068f6e0e59b6146c20a12c3dcd8 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-construction-plan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-construction-plan | grep -v \.src | grep texlive-context-construction-plan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-construction-plan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-construction-plan + CHECK_RESULT $? 0 0 "install texlive-context-construction-plan failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-construction-plan + CHECK_RESULT $? 0 0 "remove texlive-context-construction-plan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cyrillicnumbers-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cyrillicnumbers-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e91312684b16bddd21293dca7356266242a9602a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cyrillicnumbers-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-cyrillicnumbers-doc | grep -v \.src | grep texlive-context-cyrillicnumbers-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-cyrillicnumbers-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-cyrillicnumbers-doc + CHECK_RESULT $? 0 0 "install texlive-context-cyrillicnumbers-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-cyrillicnumbers-doc + CHECK_RESULT $? 0 0 "remove texlive-context-cyrillicnumbers-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cyrillicnumbers.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cyrillicnumbers.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac5766debeaba2b2e1b03a6ee0921e39bed72bcb --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-cyrillicnumbers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-cyrillicnumbers | grep -v \.src | grep texlive-context-cyrillicnumbers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-cyrillicnumbers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-cyrillicnumbers + CHECK_RESULT $? 0 0 "install texlive-context-cyrillicnumbers failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-cyrillicnumbers + CHECK_RESULT $? 0 0 "remove texlive-context-cyrillicnumbers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-degrade-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-degrade-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b57b4f8a6dcb53e639776a048c15b16857bb925 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-degrade-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-degrade-doc | grep -v \.src | grep texlive-context-degrade-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-degrade-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-degrade-doc + CHECK_RESULT $? 0 0 "install texlive-context-degrade-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-degrade-doc + CHECK_RESULT $? 0 0 "remove texlive-context-degrade-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-degrade.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-degrade.sh new file mode 100644 index 0000000000000000000000000000000000000000..4946880b4abbd8e6530db4d1352881defdd1c289 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-degrade.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-degrade | grep -v \.src | grep texlive-context-degrade + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-degrade" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-degrade + CHECK_RESULT $? 0 0 "install texlive-context-degrade failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-degrade + CHECK_RESULT $? 0 0 "remove texlive-context-degrade failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fancybreak-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fancybreak-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4a56d2f07d7e5ff93fe75a0dabbbc2efd71838b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fancybreak-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-fancybreak-doc | grep -v \.src | grep texlive-context-fancybreak-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-fancybreak-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-fancybreak-doc + CHECK_RESULT $? 0 0 "install texlive-context-fancybreak-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-fancybreak-doc + CHECK_RESULT $? 0 0 "remove texlive-context-fancybreak-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fancybreak.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fancybreak.sh new file mode 100644 index 0000000000000000000000000000000000000000..638f32301f9aa498e31c9281ca0c5849f3529d02 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fancybreak.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-fancybreak | grep -v \.src | grep texlive-context-fancybreak + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-fancybreak" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-fancybreak + CHECK_RESULT $? 0 0 "install texlive-context-fancybreak failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-fancybreak + CHECK_RESULT $? 0 0 "remove texlive-context-fancybreak failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-filter-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-filter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..134fddf557eba5088c3f9870f78bfa09fdba90c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-filter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-filter-doc | grep -v \.src | grep texlive-context-filter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-filter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-filter-doc + CHECK_RESULT $? 0 0 "install texlive-context-filter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-filter-doc + CHECK_RESULT $? 0 0 "remove texlive-context-filter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-filter.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-filter.sh new file mode 100644 index 0000000000000000000000000000000000000000..72d48b45f16c97520264240f72824dc3e160c4cb --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-filter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-filter | grep -v \.src | grep texlive-context-filter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-filter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-filter + CHECK_RESULT $? 0 0 "install texlive-context-filter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-filter + CHECK_RESULT $? 0 0 "remove texlive-context-filter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-french-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-french-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5649476888a806eb8cd50531e81921491a503e4f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-french-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-french-doc | grep -v \.src | grep texlive-context-french-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-french-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-french-doc + CHECK_RESULT $? 0 0 "install texlive-context-french-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-french-doc + CHECK_RESULT $? 0 0 "remove texlive-context-french-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-french.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-french.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3e8e3019940b82120a7e44552b792eb0c93b003 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-french.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-french | grep -v \.src | grep texlive-context-french + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-french" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-french + CHECK_RESULT $? 0 0 "install texlive-context-french failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-french + CHECK_RESULT $? 0 0 "remove texlive-context-french failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fullpage-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fullpage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6dd2139cdfffbc5dae81464bdb466421097c9297 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fullpage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-fullpage-doc | grep -v \.src | grep texlive-context-fullpage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-fullpage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-fullpage-doc + CHECK_RESULT $? 0 0 "install texlive-context-fullpage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-fullpage-doc + CHECK_RESULT $? 0 0 "remove texlive-context-fullpage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fullpage.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fullpage.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d0b08d8bb0053b8d904ed009c88216bebd049c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-fullpage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-fullpage | grep -v \.src | grep texlive-context-fullpage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-fullpage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-fullpage + CHECK_RESULT $? 0 0 "install texlive-context-fullpage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-fullpage + CHECK_RESULT $? 0 0 "remove texlive-context-fullpage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gantt-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gantt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..668fcf0ce9304dc1fbf16729cb3068e537b57d05 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gantt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-gantt-doc | grep -v \.src | grep texlive-context-gantt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-gantt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-gantt-doc + CHECK_RESULT $? 0 0 "install texlive-context-gantt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-gantt-doc + CHECK_RESULT $? 0 0 "remove texlive-context-gantt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gantt.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gantt.sh new file mode 100644 index 0000000000000000000000000000000000000000..759b7ce2b1141286688ddad98ee2f7d951afb26e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gantt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-gantt | grep -v \.src | grep texlive-context-gantt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-gantt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-gantt + CHECK_RESULT $? 0 0 "install texlive-context-gantt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-gantt + CHECK_RESULT $? 0 0 "remove texlive-context-gantt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gnuplot-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gnuplot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..34f37689b2db2cb50f361b334da9ddf003592a38 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gnuplot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-gnuplot-doc | grep -v \.src | grep texlive-context-gnuplot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-gnuplot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-gnuplot-doc + CHECK_RESULT $? 0 0 "install texlive-context-gnuplot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-gnuplot-doc + CHECK_RESULT $? 0 0 "remove texlive-context-gnuplot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gnuplot.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gnuplot.sh new file mode 100644 index 0000000000000000000000000000000000000000..4359a64edb2789048f8c17699c904a030df0faf2 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-gnuplot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-gnuplot | grep -v \.src | grep texlive-context-gnuplot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-gnuplot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-gnuplot + CHECK_RESULT $? 0 0 "install texlive-context-gnuplot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-gnuplot + CHECK_RESULT $? 0 0 "remove texlive-context-gnuplot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-handlecsv.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-handlecsv.sh new file mode 100644 index 0000000000000000000000000000000000000000..1813f7bb9b8fd47601e287545f59c32e7411b416 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-handlecsv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-handlecsv | grep -v \.src | grep texlive-context-handlecsv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-handlecsv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-handlecsv + CHECK_RESULT $? 0 0 "install texlive-context-handlecsv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-handlecsv + CHECK_RESULT $? 0 0 "remove texlive-context-handlecsv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-inifile.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-inifile.sh new file mode 100644 index 0000000000000000000000000000000000000000..087991cbe75ee010c6ad006c1d614c7a44e69928 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-inifile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-inifile | grep -v \.src | grep texlive-context-inifile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-inifile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-inifile + CHECK_RESULT $? 0 0 "install texlive-context-inifile failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-inifile + CHECK_RESULT $? 0 0 "remove texlive-context-inifile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-layout.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-layout.sh new file mode 100644 index 0000000000000000000000000000000000000000..bff26200e629731f2cd913dac1bb9139a0b5d615 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-layout.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-layout | grep -v \.src | grep texlive-context-layout + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-layout" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-layout + CHECK_RESULT $? 0 0 "install texlive-context-layout failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-layout + CHECK_RESULT $? 0 0 "remove texlive-context-layout failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-letter-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-letter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3af1419078c7846082e7fe1fa1db733e47b6fee --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-letter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-letter-doc | grep -v \.src | grep texlive-context-letter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-letter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-letter-doc + CHECK_RESULT $? 0 0 "install texlive-context-letter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-letter-doc + CHECK_RESULT $? 0 0 "remove texlive-context-letter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-letter.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-letter.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e7ba24cca133f58a7f75985e22391ebb1d67822 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-letter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-letter | grep -v \.src | grep texlive-context-letter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-letter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-letter + CHECK_RESULT $? 0 0 "install texlive-context-letter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-letter + CHECK_RESULT $? 0 0 "remove texlive-context-letter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-lettrine-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-lettrine-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..68ae3c28f2564d4fdca2df663c394f87b6b031e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-lettrine-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-lettrine-doc | grep -v \.src | grep texlive-context-lettrine-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-lettrine-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-lettrine-doc + CHECK_RESULT $? 0 0 "install texlive-context-lettrine-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-lettrine-doc + CHECK_RESULT $? 0 0 "remove texlive-context-lettrine-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-lettrine.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-lettrine.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9eb0349e65b62e1b52dc0cee9608e598cacf15d --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-lettrine.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-lettrine | grep -v \.src | grep texlive-context-lettrine + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-lettrine" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-lettrine + CHECK_RESULT $? 0 0 "install texlive-context-lettrine failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-lettrine + CHECK_RESULT $? 0 0 "remove texlive-context-lettrine failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-mathsets-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-mathsets-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a72bb296470a4fc80306ca69c6bf1e75ea30ae9 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-mathsets-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-mathsets-doc | grep -v \.src | grep texlive-context-mathsets-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-mathsets-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-mathsets-doc + CHECK_RESULT $? 0 0 "install texlive-context-mathsets-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-mathsets-doc + CHECK_RESULT $? 0 0 "remove texlive-context-mathsets-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-mathsets.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-mathsets.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd688dbe8baf301564c22e41e8f5aaee4d0eae88 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-mathsets.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-mathsets | grep -v \.src | grep texlive-context-mathsets + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-mathsets" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-mathsets + CHECK_RESULT $? 0 0 "install texlive-context-mathsets failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-mathsets + CHECK_RESULT $? 0 0 "remove texlive-context-mathsets failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-notes-zh-cn-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-notes-zh-cn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cd54f94c8e328bf9a1c4db1e7cc2d373dcd2c05 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-notes-zh-cn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-notes-zh-cn-doc | grep -v \.src | grep texlive-context-notes-zh-cn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-notes-zh-cn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-notes-zh-cn-doc + CHECK_RESULT $? 0 0 "install texlive-context-notes-zh-cn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-notes-zh-cn-doc + CHECK_RESULT $? 0 0 "remove texlive-context-notes-zh-cn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-notes-zh-cn.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-notes-zh-cn.sh new file mode 100644 index 0000000000000000000000000000000000000000..0567e9b00057d9d33878f88006a0049128fa5a83 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-notes-zh-cn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-notes-zh-cn | grep -v \.src | grep texlive-context-notes-zh-cn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-notes-zh-cn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-notes-zh-cn + CHECK_RESULT $? 0 0 "install texlive-context-notes-zh-cn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-notes-zh-cn + CHECK_RESULT $? 0 0 "remove texlive-context-notes-zh-cn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-rst-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-rst-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..81e130aecf9d1db35b0fcee360b770d7994dc8a1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-rst-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-rst-doc | grep -v \.src | grep texlive-context-rst-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-rst-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-rst-doc + CHECK_RESULT $? 0 0 "install texlive-context-rst-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-rst-doc + CHECK_RESULT $? 0 0 "remove texlive-context-rst-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-rst.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-rst.sh new file mode 100644 index 0000000000000000000000000000000000000000..d21474b1dedebd8b57cd00063db472a66d1573e0 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-rst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-rst | grep -v \.src | grep texlive-context-rst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-rst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-rst + CHECK_RESULT $? 0 0 "install texlive-context-rst failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-rst + CHECK_RESULT $? 0 0 "remove texlive-context-rst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-ruby-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-ruby-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e45a4e725b2d37ab31a5adb73672c589cb27a9e5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-ruby-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-ruby-doc | grep -v \.src | grep texlive-context-ruby-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-ruby-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-ruby-doc + CHECK_RESULT $? 0 0 "install texlive-context-ruby-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-ruby-doc + CHECK_RESULT $? 0 0 "remove texlive-context-ruby-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-ruby.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-ruby.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a2c70490bfe3408cbec0d1e0226abd7b75e3c0e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-ruby.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-ruby | grep -v \.src | grep texlive-context-ruby + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-ruby" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-ruby + CHECK_RESULT $? 0 0 "install texlive-context-ruby failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-ruby + CHECK_RESULT $? 0 0 "remove texlive-context-ruby failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simplefonts-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simplefonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0813f76d6fb8af557d6c273733e45a89600aeeb --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simplefonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-simplefonts-doc | grep -v \.src | grep texlive-context-simplefonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-simplefonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-simplefonts-doc + CHECK_RESULT $? 0 0 "install texlive-context-simplefonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-simplefonts-doc + CHECK_RESULT $? 0 0 "remove texlive-context-simplefonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simplefonts.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simplefonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb506e082f719cce0b01e61b383e450c897205e0 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simplefonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-simplefonts | grep -v \.src | grep texlive-context-simplefonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-simplefonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-simplefonts + CHECK_RESULT $? 0 0 "install texlive-context-simplefonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-simplefonts + CHECK_RESULT $? 0 0 "remove texlive-context-simplefonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simpleslides-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simpleslides-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3cdf8bcb7946f544522a04965c85985484c7f3a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simpleslides-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-simpleslides-doc | grep -v \.src | grep texlive-context-simpleslides-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-simpleslides-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-simpleslides-doc + CHECK_RESULT $? 0 0 "install texlive-context-simpleslides-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-simpleslides-doc + CHECK_RESULT $? 0 0 "remove texlive-context-simpleslides-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simpleslides.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simpleslides.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa6f3c75ef6548835fe7cd8b8565f8d1ff9eb33c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-simpleslides.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-simpleslides | grep -v \.src | grep texlive-context-simpleslides + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-simpleslides" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-simpleslides + CHECK_RESULT $? 0 0 "install texlive-context-simpleslides failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-simpleslides + CHECK_RESULT $? 0 0 "remove texlive-context-simpleslides failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-title-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-title-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..18dc371b4c371b3fa74f917e275933adef88df22 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-title-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-title-doc | grep -v \.src | grep texlive-context-title-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-title-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-title-doc + CHECK_RESULT $? 0 0 "install texlive-context-title-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-title-doc + CHECK_RESULT $? 0 0 "remove texlive-context-title-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-title.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-title.sh new file mode 100644 index 0000000000000000000000000000000000000000..af5380eccf3ac5099e2042a3dd47925f5d190b6f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-title.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-title | grep -v \.src | grep texlive-context-title + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-title" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-title + CHECK_RESULT $? 0 0 "install texlive-context-title failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-title + CHECK_RESULT $? 0 0 "remove texlive-context-title failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-transliterator-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-transliterator-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..053add778385634b2792806930941e54af95ee21 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-transliterator-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-transliterator-doc | grep -v \.src | grep texlive-context-transliterator-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-transliterator-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-transliterator-doc + CHECK_RESULT $? 0 0 "install texlive-context-transliterator-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-transliterator-doc + CHECK_RESULT $? 0 0 "remove texlive-context-transliterator-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-transliterator.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-transliterator.sh new file mode 100644 index 0000000000000000000000000000000000000000..9251367f48f7815e7b6acc1c90493c8d2ae0288b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-transliterator.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-transliterator | grep -v \.src | grep texlive-context-transliterator + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-transliterator" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-transliterator + CHECK_RESULT $? 0 0 "install texlive-context-transliterator failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-transliterator + CHECK_RESULT $? 0 0 "remove texlive-context-transliterator failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typearea-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typearea-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c7704af98357859379703d00dd1e145f1040fc2 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typearea-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-typearea-doc | grep -v \.src | grep texlive-context-typearea-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-typearea-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-typearea-doc + CHECK_RESULT $? 0 0 "install texlive-context-typearea-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-typearea-doc + CHECK_RESULT $? 0 0 "remove texlive-context-typearea-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typearea.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typearea.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4490a434a244a2b7bf27c58e288ee0e61582ee1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typearea.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-typearea | grep -v \.src | grep texlive-context-typearea + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-typearea" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-typearea + CHECK_RESULT $? 0 0 "install texlive-context-typearea failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-typearea + CHECK_RESULT $? 0 0 "remove texlive-context-typearea failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typescripts-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typescripts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4070430c59382394206ccad1dde906bcd9e80fe9 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typescripts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-typescripts-doc | grep -v \.src | grep texlive-context-typescripts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-typescripts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-typescripts-doc + CHECK_RESULT $? 0 0 "install texlive-context-typescripts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-typescripts-doc + CHECK_RESULT $? 0 0 "remove texlive-context-typescripts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typescripts.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typescripts.sh new file mode 100644 index 0000000000000000000000000000000000000000..8981f4ec0ce124a08fd89973cd95ee0a8c5d4d46 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-typescripts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-typescripts | grep -v \.src | grep texlive-context-typescripts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-typescripts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-typescripts + CHECK_RESULT $? 0 0 "install texlive-context-typescripts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-typescripts + CHECK_RESULT $? 0 0 "remove texlive-context-typescripts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-vim-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-vim-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3798d8b1c47418c086163aa1c48508a945fddc7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-vim-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-vim-doc | grep -v \.src | grep texlive-context-vim-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-vim-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-vim-doc + CHECK_RESULT $? 0 0 "install texlive-context-vim-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-vim-doc + CHECK_RESULT $? 0 0 "remove texlive-context-vim-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-vim.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-vim.sh new file mode 100644 index 0000000000000000000000000000000000000000..a508f9e127e778ff4aaf2802b4eaab3f69f67aba --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-vim.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-vim | grep -v \.src | grep texlive-context-vim + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-vim" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-vim + CHECK_RESULT $? 0 0 "install texlive-context-vim failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-vim + CHECK_RESULT $? 0 0 "remove texlive-context-vim failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-visualcounter-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-visualcounter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..33bddfe14492f90ab9503163aac89a06fe3a584a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-visualcounter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-visualcounter-doc | grep -v \.src | grep texlive-context-visualcounter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-visualcounter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-visualcounter-doc + CHECK_RESULT $? 0 0 "install texlive-context-visualcounter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-visualcounter-doc + CHECK_RESULT $? 0 0 "remove texlive-context-visualcounter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-visualcounter.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-visualcounter.sh new file mode 100644 index 0000000000000000000000000000000000000000..a82c18c987beb90380e8165d0aad8f884633e252 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-context-visualcounter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-context-visualcounter | grep -v \.src | grep texlive-context-visualcounter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-context-visualcounter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-context-visualcounter + CHECK_RESULT $? 0 0 "install texlive-context-visualcounter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-context-visualcounter + CHECK_RESULT $? 0 0 "remove texlive-context-visualcounter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-continue-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-continue-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad9b84c2287d176b06ed3bbd3a387bb2ac711ff5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-continue-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-continue-doc | grep -v \.src | grep texlive-continue-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-continue-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-continue-doc + CHECK_RESULT $? 0 0 "install texlive-continue-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-continue-doc + CHECK_RESULT $? 0 0 "remove texlive-continue-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-continue.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-continue.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dac0c06b2b1661971e90b3fa0b2bc2aaa74f810 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-continue.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-continue | grep -v \.src | grep texlive-continue + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-continue" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-continue + CHECK_RESULT $? 0 0 "install texlive-continue failed" + SLEEP_WAIT 1 + dnf remove -y texlive-continue + CHECK_RESULT $? 0 0 "remove texlive-continue failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contour-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contour-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfda3ae09791bd0515008ce3829d5441dd6aef23 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contour-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-contour-doc | grep -v \.src | grep texlive-contour-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-contour-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-contour-doc + CHECK_RESULT $? 0 0 "install texlive-contour-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-contour-doc + CHECK_RESULT $? 0 0 "remove texlive-contour-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contour.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contour.sh new file mode 100644 index 0000000000000000000000000000000000000000..96ab93036cf651ef11584625ffd4f18367aeb875 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contour.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-contour | grep -v \.src | grep texlive-contour + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-contour" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-contour + CHECK_RESULT $? 0 0 "install texlive-contour failed" + SLEEP_WAIT 1 + dnf remove -y texlive-contour + CHECK_RESULT $? 0 0 "remove texlive-contour failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contracard-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contracard-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..236ad702fdf62dd149fea452457f087e3645ab02 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contracard-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-contracard-doc | grep -v \.src | grep texlive-contracard-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-contracard-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-contracard-doc + CHECK_RESULT $? 0 0 "install texlive-contracard-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-contracard-doc + CHECK_RESULT $? 0 0 "remove texlive-contracard-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contracard.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contracard.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5ed5a7056811e66d09c563f9b749d563c68b378 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-contracard.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-contracard | grep -v \.src | grep texlive-contracard + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-contracard" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-contracard + CHECK_RESULT $? 0 0 "install texlive-contracard failed" + SLEEP_WAIT 1 + dnf remove -y texlive-contracard + CHECK_RESULT $? 0 0 "remove texlive-contracard failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-conv-xkv.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-conv-xkv.sh new file mode 100644 index 0000000000000000000000000000000000000000..a75ea2b0e7301a846aebb1ebc392e48050640f4c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-conv-xkv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-conv-xkv | grep -v \.src | grep texlive-conv-xkv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-conv-xkv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-conv-xkv + CHECK_RESULT $? 0 0 "install texlive-conv-xkv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-conv-xkv + CHECK_RESULT $? 0 0 "remove texlive-conv-xkv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooking-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooking-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..24de0a8cd2ce2359b04322ee754b90612078e3b7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooking-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cooking-doc | grep -v \.src | grep texlive-cooking-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cooking-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cooking-doc + CHECK_RESULT $? 0 0 "install texlive-cooking-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cooking-doc + CHECK_RESULT $? 0 0 "remove texlive-cooking-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooking-units.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooking-units.sh new file mode 100644 index 0000000000000000000000000000000000000000..8edd8064b358118f5d9386d46d49935ae020c213 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooking-units.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cooking-units | grep -v \.src | grep texlive-cooking-units + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cooking-units" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cooking-units + CHECK_RESULT $? 0 0 "install texlive-cooking-units failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cooking-units + CHECK_RESULT $? 0 0 "remove texlive-cooking-units failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooking.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooking.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8ba7756c34dc6e3fd52612e23079300cb87c1e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooking.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cooking | grep -v \.src | grep texlive-cooking + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cooking" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cooking + CHECK_RESULT $? 0 0 "install texlive-cooking failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cooking + CHECK_RESULT $? 0 0 "remove texlive-cooking failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cookingsymbols-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cookingsymbols-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..628d36993f4df822be0981e1627535849da903a4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cookingsymbols-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cookingsymbols-doc | grep -v \.src | grep texlive-cookingsymbols-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cookingsymbols-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cookingsymbols-doc + CHECK_RESULT $? 0 0 "install texlive-cookingsymbols-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cookingsymbols-doc + CHECK_RESULT $? 0 0 "remove texlive-cookingsymbols-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cookingsymbols.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cookingsymbols.sh new file mode 100644 index 0000000000000000000000000000000000000000..5df6691bc28595038323eb2da19710675c585234 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cookingsymbols.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cookingsymbols | grep -v \.src | grep texlive-cookingsymbols + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cookingsymbols" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cookingsymbols + CHECK_RESULT $? 0 0 "install texlive-cookingsymbols failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cookingsymbols + CHECK_RESULT $? 0 0 "remove texlive-cookingsymbols failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cool-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cool-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9804254b69ab2c95f9764e36da786430027177ea --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cool-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cool-doc | grep -v \.src | grep texlive-cool-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cool-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cool-doc + CHECK_RESULT $? 0 0 "install texlive-cool-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cool-doc + CHECK_RESULT $? 0 0 "remove texlive-cool-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cool.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cool.sh new file mode 100644 index 0000000000000000000000000000000000000000..26710c211a4ffb62ced9e9f2f687eb5b10867a6f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cool | grep -v \.src | grep texlive-cool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cool + CHECK_RESULT $? 0 0 "install texlive-cool failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cool + CHECK_RESULT $? 0 0 "remove texlive-cool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coollist-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coollist-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..27f3ea59853e151cc6eeadfe43350cb2e108001a --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coollist-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coollist-doc | grep -v \.src | grep texlive-coollist-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coollist-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coollist-doc + CHECK_RESULT $? 0 0 "install texlive-coollist-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coollist-doc + CHECK_RESULT $? 0 0 "remove texlive-coollist-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coollist.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coollist.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b8ba9f9ec2ea7c6893495170d5090c0bf53db69 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coollist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coollist | grep -v \.src | grep texlive-coollist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coollist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coollist + CHECK_RESULT $? 0 0 "install texlive-coollist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coollist + CHECK_RESULT $? 0 0 "remove texlive-coollist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolstr-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolstr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d6d99640fb0f92f65bd557bd29e1448e106d67c --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolstr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coolstr-doc | grep -v \.src | grep texlive-coolstr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coolstr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coolstr-doc + CHECK_RESULT $? 0 0 "install texlive-coolstr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coolstr-doc + CHECK_RESULT $? 0 0 "remove texlive-coolstr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolstr.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolstr.sh new file mode 100644 index 0000000000000000000000000000000000000000..916b90734eb56680b047c612b77f0aa67aa077d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolstr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coolstr | grep -v \.src | grep texlive-coolstr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coolstr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coolstr + CHECK_RESULT $? 0 0 "install texlive-coolstr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coolstr + CHECK_RESULT $? 0 0 "remove texlive-coolstr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolthms-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolthms-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..26c8fffd4d29e4d96751bb9ecf42b3396592fd01 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolthms-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coolthms-doc | grep -v \.src | grep texlive-coolthms-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coolthms-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coolthms-doc + CHECK_RESULT $? 0 0 "install texlive-coolthms-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coolthms-doc + CHECK_RESULT $? 0 0 "remove texlive-coolthms-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolthms.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolthms.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c227fc32c9fd2dceefe473b228bedcfb0dc88ed --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coolthms.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coolthms | grep -v \.src | grep texlive-coolthms + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coolthms" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coolthms + CHECK_RESULT $? 0 0 "install texlive-coolthms failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coolthms + CHECK_RESULT $? 0 0 "remove texlive-coolthms failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooltooltips-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooltooltips-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1fca25c8df26f1cf1983b42bda6bda72eedc0ea --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooltooltips-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cooltooltips-doc | grep -v \.src | grep texlive-cooltooltips-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cooltooltips-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cooltooltips-doc + CHECK_RESULT $? 0 0 "install texlive-cooltooltips-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cooltooltips-doc + CHECK_RESULT $? 0 0 "remove texlive-cooltooltips-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooltooltips.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooltooltips.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ee15aa338f4e07f3fb260405e5d876fd27c2589 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cooltooltips.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cooltooltips | grep -v \.src | grep texlive-cooltooltips + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cooltooltips" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cooltooltips + CHECK_RESULT $? 0 0 "install texlive-cooltooltips failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cooltooltips + CHECK_RESULT $? 0 0 "remove texlive-cooltooltips failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coordsys-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coordsys-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3707a5e97de27d549adba5286e8e9fc6f5bf3bf7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coordsys-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coordsys-doc | grep -v \.src | grep texlive-coordsys-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coordsys-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coordsys-doc + CHECK_RESULT $? 0 0 "install texlive-coordsys-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coordsys-doc + CHECK_RESULT $? 0 0 "remove texlive-coordsys-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coordsys.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coordsys.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba6b84e73739f0a0fc84f20aad51fc9570c32618 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coordsys.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coordsys | grep -v \.src | grep texlive-coordsys + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coordsys" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coordsys + CHECK_RESULT $? 0 0 "install texlive-coordsys failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coordsys + CHECK_RESULT $? 0 0 "remove texlive-coordsys failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyedit-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyedit-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b26da6d1a75bf1f02892e6a0fbe108e8c6407c5 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyedit-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-copyedit-doc | grep -v \.src | grep texlive-copyedit-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-copyedit-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-copyedit-doc + CHECK_RESULT $? 0 0 "install texlive-copyedit-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-copyedit-doc + CHECK_RESULT $? 0 0 "remove texlive-copyedit-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyedit.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyedit.sh new file mode 100644 index 0000000000000000000000000000000000000000..b378c97bd24b9426fbd469882252989390519e22 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyedit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-copyedit | grep -v \.src | grep texlive-copyedit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-copyedit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-copyedit + CHECK_RESULT $? 0 0 "install texlive-copyedit failed" + SLEEP_WAIT 1 + dnf remove -y texlive-copyedit + CHECK_RESULT $? 0 0 "remove texlive-copyedit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyrightbox-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyrightbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..502f46ce94cc4c620ce6304bb227be5565e3f81e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyrightbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-copyrightbox-doc | grep -v \.src | grep texlive-copyrightbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-copyrightbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-copyrightbox-doc + CHECK_RESULT $? 0 0 "install texlive-copyrightbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-copyrightbox-doc + CHECK_RESULT $? 0 0 "remove texlive-copyrightbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyrightbox.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyrightbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f5a0b56fb11561415c0c712f326c3f5277e8975 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-copyrightbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-copyrightbox | grep -v \.src | grep texlive-copyrightbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-copyrightbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-copyrightbox + CHECK_RESULT $? 0 0 "install texlive-copyrightbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-copyrightbox + CHECK_RESULT $? 0 0 "remove texlive-copyrightbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cormorantgaramond.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cormorantgaramond.sh new file mode 100644 index 0000000000000000000000000000000000000000..e80b467acec0b5808c8920c52aad3cda30aaa01b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-cormorantgaramond.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cormorantgaramond | grep -v \.src | grep texlive-cormorantgaramond + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cormorantgaramond" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cormorantgaramond + CHECK_RESULT $? 0 0 "install texlive-cormorantgaramond failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cormorantgaramond + CHECK_RESULT $? 0 0 "remove texlive-cormorantgaramond failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-correctmathalign.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-correctmathalign.sh new file mode 100644 index 0000000000000000000000000000000000000000..d05e32e268d6a28f8224c716a33a6c437a37f111 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-correctmathalign.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-correctmathalign | grep -v \.src | grep texlive-correctmathalign + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-correctmathalign" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-correctmathalign + CHECK_RESULT $? 0 0 "install texlive-correctmathalign failed" + SLEEP_WAIT 1 + dnf remove -y texlive-correctmathalign + CHECK_RESULT $? 0 0 "remove texlive-correctmathalign failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coseoul-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coseoul-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a79919f937330bc726995e882b4b347c99ad895 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coseoul-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coseoul-doc | grep -v \.src | grep texlive-coseoul-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coseoul-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coseoul-doc + CHECK_RESULT $? 0 0 "install texlive-coseoul-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coseoul-doc + CHECK_RESULT $? 0 0 "remove texlive-coseoul-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coseoul.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coseoul.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b35f436319706268a748a237f6a9859e389b013 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coseoul.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coseoul | grep -v \.src | grep texlive-coseoul + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coseoul" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coseoul + CHECK_RESULT $? 0 0 "install texlive-coseoul failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coseoul + CHECK_RESULT $? 0 0 "remove texlive-coseoul failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-countriesofeurope-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-countriesofeurope-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4576920b0e90042bb4f47d19f9708f838f1ea09f --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-countriesofeurope-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-countriesofeurope-doc | grep -v \.src | grep texlive-countriesofeurope-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-countriesofeurope-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-countriesofeurope-doc + CHECK_RESULT $? 0 0 "install texlive-countriesofeurope-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-countriesofeurope-doc + CHECK_RESULT $? 0 0 "remove texlive-countriesofeurope-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-countriesofeurope.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-countriesofeurope.sh new file mode 100644 index 0000000000000000000000000000000000000000..dba6eaf3e20356942c9698286b21199ec07b61ed --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-countriesofeurope.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-countriesofeurope | grep -v \.src | grep texlive-countriesofeurope + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-countriesofeurope" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-countriesofeurope + CHECK_RESULT $? 0 0 "install texlive-countriesofeurope failed" + SLEEP_WAIT 1 + dnf remove -y texlive-countriesofeurope + CHECK_RESULT $? 0 0 "remove texlive-countriesofeurope failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-counttexruns-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-counttexruns-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0348e0e616967110e7b0d2fbf3c72e85557dbac4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-counttexruns-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-counttexruns-doc | grep -v \.src | grep texlive-counttexruns-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-counttexruns-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-counttexruns-doc + CHECK_RESULT $? 0 0 "install texlive-counttexruns-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-counttexruns-doc + CHECK_RESULT $? 0 0 "remove texlive-counttexruns-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-counttexruns.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-counttexruns.sh new file mode 100644 index 0000000000000000000000000000000000000000..c577e487f584e24d9e1a525763f21a8ca12aa8e1 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-counttexruns.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-counttexruns | grep -v \.src | grep texlive-counttexruns + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-counttexruns" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-counttexruns + CHECK_RESULT $? 0 0 "install texlive-counttexruns failed" + SLEEP_WAIT 1 + dnf remove -y texlive-counttexruns + CHECK_RESULT $? 0 0 "remove texlive-counttexruns failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courier-scaled-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courier-scaled-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f71458d4ec27f8bf2f9642a9118df0e32c91cdba --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courier-scaled-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-courier-scaled-doc | grep -v \.src | grep texlive-courier-scaled-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-courier-scaled-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-courier-scaled-doc + CHECK_RESULT $? 0 0 "install texlive-courier-scaled-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-courier-scaled-doc + CHECK_RESULT $? 0 0 "remove texlive-courier-scaled-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courier-scaled.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courier-scaled.sh new file mode 100644 index 0000000000000000000000000000000000000000..344aa00ed841239e0933c6aea04f8b067eecb4a4 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courier-scaled.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-courier-scaled | grep -v \.src | grep texlive-courier-scaled + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-courier-scaled" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-courier-scaled + CHECK_RESULT $? 0 0 "install texlive-courier-scaled failed" + SLEEP_WAIT 1 + dnf remove -y texlive-courier-scaled + CHECK_RESULT $? 0 0 "remove texlive-courier-scaled failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courier.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courier.sh new file mode 100644 index 0000000000000000000000000000000000000000..64a98764e426e9e03fdeb6f51f453af5d5520ae9 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courier.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-courier | grep -v \.src | grep texlive-courier + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-courier" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-courier + CHECK_RESULT $? 0 0 "install texlive-courier failed" + SLEEP_WAIT 1 + dnf remove -y texlive-courier + CHECK_RESULT $? 0 0 "remove texlive-courier failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courseoutline-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courseoutline-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ed4edf5ddac319b279b6c0dad02ad32be502005 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courseoutline-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-courseoutline-doc | grep -v \.src | grep texlive-courseoutline-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-courseoutline-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-courseoutline-doc + CHECK_RESULT $? 0 0 "install texlive-courseoutline-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-courseoutline-doc + CHECK_RESULT $? 0 0 "remove texlive-courseoutline-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courseoutline.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courseoutline.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a5b0c6d42a1a906312420adae3d86f596b71738 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-courseoutline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-courseoutline | grep -v \.src | grep texlive-courseoutline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-courseoutline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-courseoutline + CHECK_RESULT $? 0 0 "install texlive-courseoutline failed" + SLEEP_WAIT 1 + dnf remove -y texlive-courseoutline + CHECK_RESULT $? 0 0 "remove texlive-courseoutline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coursepaper-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coursepaper-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6bb42561174a3b23d264978c8c0eef3623f2603 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coursepaper-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coursepaper-doc | grep -v \.src | grep texlive-coursepaper-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coursepaper-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coursepaper-doc + CHECK_RESULT $? 0 0 "install texlive-coursepaper-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coursepaper-doc + CHECK_RESULT $? 0 0 "remove texlive-coursepaper-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coursepaper.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coursepaper.sh new file mode 100644 index 0000000000000000000000000000000000000000..e06a3eb247f3d5d61c92e4e8321d5dbd6cf7f126 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coursepaper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coursepaper | grep -v \.src | grep texlive-coursepaper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coursepaper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coursepaper + CHECK_RESULT $? 0 0 "install texlive-coursepaper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coursepaper + CHECK_RESULT $? 0 0 "remove texlive-coursepaper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coverpage-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coverpage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..80e1af69e76f0f38d9d5c3572eef1f2efe9ecfd9 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coverpage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coverpage-doc | grep -v \.src | grep texlive-coverpage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coverpage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coverpage-doc + CHECK_RESULT $? 0 0 "install texlive-coverpage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coverpage-doc + CHECK_RESULT $? 0 0 "remove texlive-coverpage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coverpage.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coverpage.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0a0375ffdea3fcd20679578254a60f27ef8767b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-coverpage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coverpage | grep -v \.src | grep texlive-coverpage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coverpage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coverpage + CHECK_RESULT $? 0 0 "install texlive-coverpage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coverpage + CHECK_RESULT $? 0 0 "remove texlive-coverpage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-covington-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-covington-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..209fbae5042942cec3779f00a32dcc9444477b4b --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-covington-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-covington-doc | grep -v \.src | grep texlive-covington-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-covington-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-covington-doc + CHECK_RESULT $? 0 0 "install texlive-covington-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-covington-doc + CHECK_RESULT $? 0 0 "remove texlive-covington-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-covington.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-covington.sh new file mode 100644 index 0000000000000000000000000000000000000000..4fffa5d08a4388728514bef99356d3c7d59c6091 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-covington.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-covington | grep -v \.src | grep texlive-covington + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-covington" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-covington + CHECK_RESULT $? 0 0 "install texlive-covington failed" + SLEEP_WAIT 1 + dnf remove -y texlive-covington + CHECK_RESULT $? 0 0 "remove texlive-covington failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-lexikon-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-lexikon-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cc0b061170d188718e31db40f922c9f991b5672 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-lexikon-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lexikon-doc | grep -v \.src | grep texlive-lexikon-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lexikon-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lexikon-doc + CHECK_RESULT $? 0 0 "install texlive-lexikon-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lexikon-doc + CHECK_RESULT $? 0 0 "remove texlive-lexikon-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-lexikon.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-lexikon.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8b13e32e9691dfea98e9602bfa060dce48d8f7e --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-lexikon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lexikon | grep -v \.src | grep texlive-lexikon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lexikon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lexikon + CHECK_RESULT $? 0 0 "install texlive-lexikon failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lexikon + CHECK_RESULT $? 0 0 "remove texlive-lexikon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-split-e.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-split-e.sh new file mode 100644 index 0000000000000000000000000000000000000000..122c89a9f497f4276fe8874fc541be364e5a6b00 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-split-e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-e | grep -v \.src | grep texlive-split-e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-e + CHECK_RESULT $? 0 0 "install texlive-split-e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-e + CHECK_RESULT $? 0 0 "remove texlive-split-e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-venturisadf-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-venturisadf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b884951aabb53169966335352431fb9f7faca26 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-venturisadf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-venturisadf-doc | grep -v \.src | grep texlive-venturisadf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-venturisadf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-venturisadf-doc + CHECK_RESULT $? 0 0 "install texlive-venturisadf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-venturisadf-doc + CHECK_RESULT $? 0 0 "remove texlive-venturisadf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-venturisadf.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-venturisadf.sh new file mode 100644 index 0000000000000000000000000000000000000000..3444afe2bf3aaffdd13fef9536a8385a40cc4755 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-venturisadf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-venturisadf | grep -v \.src | grep texlive-venturisadf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-venturisadf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-venturisadf + CHECK_RESULT $? 0 0 "install texlive-venturisadf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-venturisadf + CHECK_RESULT $? 0 0 "remove texlive-venturisadf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-wsuipa-doc.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-wsuipa-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac8d4836a93eead201c59ecaf9cde691b6b2ffb7 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-wsuipa-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wsuipa-doc | grep -v \.src | grep texlive-wsuipa-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wsuipa-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wsuipa-doc + CHECK_RESULT $? 0 0 "install texlive-wsuipa-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wsuipa-doc + CHECK_RESULT $? 0 0 "remove texlive-wsuipa-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-wsuipa.sh b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-wsuipa.sh new file mode 100644 index 0000000000000000000000000000000000000000..98ebd3409a302ad0a658bc9028bcae18d16f6d67 --- /dev/null +++ b/testcases/cli-test/texlive-split-e/oe_test_texlive-split-e_install_and_remove_texlive-wsuipa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wsuipa | grep -v \.src | grep texlive-wsuipa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wsuipa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wsuipa + CHECK_RESULT $? 0 0 "install texlive-wsuipa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wsuipa + CHECK_RESULT $? 0 0 "remove texlive-wsuipa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-e-french-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-e-french-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdb58ef97e9f279a08c1c6243200acb5e8fa13c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-e-french-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-e-french-doc | grep -v \.src | grep texlive-e-french-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-e-french-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-e-french-doc + CHECK_RESULT $? 0 0 "install texlive-e-french-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-e-french-doc + CHECK_RESULT $? 0 0 "remove texlive-e-french-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-e-french.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-e-french.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3683e68707e1c8cf7412fdc88f99b83273a1b26 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-e-french.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-e-french | grep -v \.src | grep texlive-e-french + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-e-french" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-e-french + CHECK_RESULT $? 0 0 "install texlive-e-french failed" + SLEEP_WAIT 1 + dnf remove -y texlive-e-french + CHECK_RESULT $? 0 0 "remove texlive-e-french failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8f7ba5d189ed68186664b88b7803df5da0dc4d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ean-doc | grep -v \.src | grep texlive-ean-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ean-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ean-doc + CHECK_RESULT $? 0 0 "install texlive-ean-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ean-doc + CHECK_RESULT $? 0 0 "remove texlive-ean-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb85ad14ce6f0917a415ee03f6af7bc6dca492cf --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ean | grep -v \.src | grep texlive-ean + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ean" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ean + CHECK_RESULT $? 0 0 "install texlive-ean failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ean + CHECK_RESULT $? 0 0 "remove texlive-ean failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean13isbn-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean13isbn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f83ee9cee31ef5117f505cd3deb72594afdc26a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean13isbn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ean13isbn-doc | grep -v \.src | grep texlive-ean13isbn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ean13isbn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ean13isbn-doc + CHECK_RESULT $? 0 0 "install texlive-ean13isbn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ean13isbn-doc + CHECK_RESULT $? 0 0 "remove texlive-ean13isbn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean13isbn.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean13isbn.sh new file mode 100644 index 0000000000000000000000000000000000000000..9539bf5c2b9f51242bd8110ed45bc2e2c902035f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ean13isbn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ean13isbn | grep -v \.src | grep texlive-ean13isbn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ean13isbn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ean13isbn + CHECK_RESULT $? 0 0 "install texlive-ean13isbn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ean13isbn + CHECK_RESULT $? 0 0 "remove texlive-ean13isbn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ad8a310244b68e71572720fa46d54080b063070 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easy-doc | grep -v \.src | grep texlive-easy-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easy-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easy-doc + CHECK_RESULT $? 0 0 "install texlive-easy-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easy-doc + CHECK_RESULT $? 0 0 "remove texlive-easy-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy-todo-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy-todo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5812066c7f822b7b69a996711d8adf5b251b199 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy-todo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easy-todo-doc | grep -v \.src | grep texlive-easy-todo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easy-todo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easy-todo-doc + CHECK_RESULT $? 0 0 "install texlive-easy-todo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easy-todo-doc + CHECK_RESULT $? 0 0 "remove texlive-easy-todo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy-todo.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy-todo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ad4d80827a622055d62abb7dfe58fcd25e6eedc --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy-todo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easy-todo | grep -v \.src | grep texlive-easy-todo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easy-todo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easy-todo + CHECK_RESULT $? 0 0 "install texlive-easy-todo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easy-todo + CHECK_RESULT $? 0 0 "remove texlive-easy-todo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy.sh new file mode 100644 index 0000000000000000000000000000000000000000..634e85b8c80de85f6c73ae37e1dfeee78bdcf52b --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easy | grep -v \.src | grep texlive-easy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easy + CHECK_RESULT $? 0 0 "install texlive-easy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easy + CHECK_RESULT $? 0 0 "remove texlive-easy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyfig-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyfig-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5d5379110ee708db8d551ccbc82203a15d671d1 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyfig-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easyfig-doc | grep -v \.src | grep texlive-easyfig-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easyfig-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easyfig-doc + CHECK_RESULT $? 0 0 "install texlive-easyfig-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easyfig-doc + CHECK_RESULT $? 0 0 "remove texlive-easyfig-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyfig.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9c793885ad7afefc2a18a88ff7b3d8c3af32ca2 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easyfig | grep -v \.src | grep texlive-easyfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easyfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easyfig + CHECK_RESULT $? 0 0 "install texlive-easyfig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easyfig + CHECK_RESULT $? 0 0 "remove texlive-easyfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyformat.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyformat.sh new file mode 100644 index 0000000000000000000000000000000000000000..2aaccbbab1667c37af52052c9ffbcd003be6f43e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyformat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easyformat | grep -v \.src | grep texlive-easyformat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easyformat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easyformat + CHECK_RESULT $? 0 0 "install texlive-easyformat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easyformat + CHECK_RESULT $? 0 0 "remove texlive-easyformat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easylist-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easylist-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7033a2f5e10c9b615f666c14407fdb8073bea47e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easylist-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easylist-doc | grep -v \.src | grep texlive-easylist-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easylist-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easylist-doc + CHECK_RESULT $? 0 0 "install texlive-easylist-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easylist-doc + CHECK_RESULT $? 0 0 "remove texlive-easylist-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easylist.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easylist.sh new file mode 100644 index 0000000000000000000000000000000000000000..7097ff1492397ef6f7dc6f32db8dceb64038a8cc --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easylist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easylist | grep -v \.src | grep texlive-easylist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easylist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easylist + CHECK_RESULT $? 0 0 "install texlive-easylist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easylist + CHECK_RESULT $? 0 0 "remove texlive-easylist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyreview-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyreview-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5aecd7d9664450a5730153c3a22531add259aaa7 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyreview-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easyreview-doc | grep -v \.src | grep texlive-easyreview-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easyreview-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easyreview-doc + CHECK_RESULT $? 0 0 "install texlive-easyreview-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easyreview-doc + CHECK_RESULT $? 0 0 "remove texlive-easyreview-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyreview.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyreview.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7e29ae1c0f8e84e2871ce34cd492a7b3033dece --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-easyreview.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easyreview | grep -v \.src | grep texlive-easyreview + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easyreview" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easyreview + CHECK_RESULT $? 0 0 "install texlive-easyreview failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easyreview + CHECK_RESULT $? 0 0 "remove texlive-easyreview failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebezier-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebezier-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c69be00c0a7653c24fab8840f83e4223d0adeba --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebezier-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebezier-doc | grep -v \.src | grep texlive-ebezier-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebezier-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebezier-doc + CHECK_RESULT $? 0 0 "install texlive-ebezier-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebezier-doc + CHECK_RESULT $? 0 0 "remove texlive-ebezier-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebezier.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebezier.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d50c2e68019221d07a4fa5c37e21166cd73a4d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebezier.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebezier | grep -v \.src | grep texlive-ebezier + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebezier" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebezier + CHECK_RESULT $? 0 0 "install texlive-ebezier failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebezier + CHECK_RESULT $? 0 0 "remove texlive-ebezier failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..be151b0cbdd55d2bb9417dcd06b91155f613f19e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebgaramond-doc | grep -v \.src | grep texlive-ebgaramond-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebgaramond-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebgaramond-doc + CHECK_RESULT $? 0 0 "install texlive-ebgaramond-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebgaramond-doc + CHECK_RESULT $? 0 0 "remove texlive-ebgaramond-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-maths-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-maths-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..467b0da24eabbca1861909138a7321087d489c4a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-maths-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebgaramond-maths-doc | grep -v \.src | grep texlive-ebgaramond-maths-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebgaramond-maths-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebgaramond-maths-doc + CHECK_RESULT $? 0 0 "install texlive-ebgaramond-maths-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebgaramond-maths-doc + CHECK_RESULT $? 0 0 "remove texlive-ebgaramond-maths-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-maths.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-maths.sh new file mode 100644 index 0000000000000000000000000000000000000000..1655d51ad7de6a2e0f0abdb6921b4b86ef9cc3d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond-maths.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebgaramond-maths | grep -v \.src | grep texlive-ebgaramond-maths + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebgaramond-maths" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebgaramond-maths + CHECK_RESULT $? 0 0 "install texlive-ebgaramond-maths failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebgaramond-maths + CHECK_RESULT $? 0 0 "remove texlive-ebgaramond-maths failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond.sh new file mode 100644 index 0000000000000000000000000000000000000000..29cef16a9e091259338c6285e4c492ee7baa6a5c --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebgaramond.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebgaramond | grep -v \.src | grep texlive-ebgaramond + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebgaramond" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebgaramond + CHECK_RESULT $? 0 0 "install texlive-ebgaramond failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebgaramond + CHECK_RESULT $? 0 0 "remove texlive-ebgaramond failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebook-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebook-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8041c02cd28bfd839127bdc9c75b6b21ea78ab9e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebook-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebook-doc | grep -v \.src | grep texlive-ebook-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebook-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebook-doc + CHECK_RESULT $? 0 0 "install texlive-ebook-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebook-doc + CHECK_RESULT $? 0 0 "remove texlive-ebook-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebook.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebook.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb70d29d2a8a1bfddfadabe123fa8b2f04352e38 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebook | grep -v \.src | grep texlive-ebook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebook + CHECK_RESULT $? 0 0 "install texlive-ebook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebook + CHECK_RESULT $? 0 0 "remove texlive-ebook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebproof-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebproof-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa9e325047b4a49c56b6e569b56dcaae7b4e908a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebproof-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebproof-doc | grep -v \.src | grep texlive-ebproof-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebproof-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebproof-doc + CHECK_RESULT $? 0 0 "install texlive-ebproof-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebproof-doc + CHECK_RESULT $? 0 0 "remove texlive-ebproof-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebproof.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebproof.sh new file mode 100644 index 0000000000000000000000000000000000000000..06f598ec1193d975015fc6333177795dc14b528c --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebproof.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebproof | grep -v \.src | grep texlive-ebproof + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebproof" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebproof + CHECK_RESULT $? 0 0 "install texlive-ebproof failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebproof + CHECK_RESULT $? 0 0 "remove texlive-ebproof failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebsthesis-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebsthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f81ec7040182a4aa7b8165fe1e1ad02cf1065d87 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebsthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebsthesis-doc | grep -v \.src | grep texlive-ebsthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebsthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebsthesis-doc + CHECK_RESULT $? 0 0 "install texlive-ebsthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebsthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-ebsthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebsthesis.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebsthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b93aa43c767b02f5e0e8df4d2205985c7ef20cc --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ebsthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ebsthesis | grep -v \.src | grep texlive-ebsthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ebsthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ebsthesis + CHECK_RESULT $? 0 0 "install texlive-ebsthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ebsthesis + CHECK_RESULT $? 0 0 "remove texlive-ebsthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ec-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ec-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..36a825036efb8de6002f53589c197d08355f8bb5 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ec-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ec-doc | grep -v \.src | grep texlive-ec-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ec-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ec-doc + CHECK_RESULT $? 0 0 "install texlive-ec-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ec-doc + CHECK_RESULT $? 0 0 "remove texlive-ec-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ec.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ec.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecb77ba14e049e3b93c29a71e382b285501a396b --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ec | grep -v \.src | grep texlive-ec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ec + CHECK_RESULT $? 0 0 "install texlive-ec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ec + CHECK_RESULT $? 0 0 "remove texlive-ec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecc-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..10785d88c950772f73983362ebd8a4122e403423 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecc-doc | grep -v \.src | grep texlive-ecc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecc-doc + CHECK_RESULT $? 0 0 "install texlive-ecc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecc-doc + CHECK_RESULT $? 0 0 "remove texlive-ecc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c973ee23fda6500c90ae16111246d6e1dd5a5e2f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecc | grep -v \.src | grep texlive-ecc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecc + CHECK_RESULT $? 0 0 "install texlive-ecc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecc + CHECK_RESULT $? 0 0 "remove texlive-ecc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecclesiastic-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecclesiastic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcc91f68b7ec715c31bd3f0ec5146576dabbb8f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecclesiastic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecclesiastic-doc | grep -v \.src | grep texlive-ecclesiastic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecclesiastic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecclesiastic-doc + CHECK_RESULT $? 0 0 "install texlive-ecclesiastic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecclesiastic-doc + CHECK_RESULT $? 0 0 "remove texlive-ecclesiastic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecclesiastic.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecclesiastic.sh new file mode 100644 index 0000000000000000000000000000000000000000..945ff2d12a35fc559f998f0ceb4070c13221bf89 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecclesiastic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecclesiastic | grep -v \.src | grep texlive-ecclesiastic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecclesiastic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecclesiastic + CHECK_RESULT $? 0 0 "install texlive-ecclesiastic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecclesiastic + CHECK_RESULT $? 0 0 "remove texlive-ecclesiastic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecgdraw.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecgdraw.sh new file mode 100644 index 0000000000000000000000000000000000000000..9790c72801a4d3126507e26106a86ab20d67352f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecgdraw.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecgdraw | grep -v \.src | grep texlive-ecgdraw + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecgdraw" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecgdraw + CHECK_RESULT $? 0 0 "install texlive-ecgdraw failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecgdraw + CHECK_RESULT $? 0 0 "remove texlive-ecgdraw failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecltree-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecltree-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..73e00c2c0d28781831b2a681e4a7fbecdb69abc6 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecltree-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecltree-doc | grep -v \.src | grep texlive-ecltree-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecltree-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecltree-doc + CHECK_RESULT $? 0 0 "install texlive-ecltree-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecltree-doc + CHECK_RESULT $? 0 0 "remove texlive-ecltree-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecltree.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecltree.sh new file mode 100644 index 0000000000000000000000000000000000000000..9058fcc39a9a85afcc94ed5900abeb14154ee019 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecltree.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecltree | grep -v \.src | grep texlive-ecltree + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecltree" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecltree + CHECK_RESULT $? 0 0 "install texlive-ecltree failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecltree + CHECK_RESULT $? 0 0 "remove texlive-ecltree failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eco-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eco-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..28870543e274565c3c14ffc2c54261acb775c0e1 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eco-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eco-doc | grep -v \.src | grep texlive-eco-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eco-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eco-doc + CHECK_RESULT $? 0 0 "install texlive-eco-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eco-doc + CHECK_RESULT $? 0 0 "remove texlive-eco-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eco.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eco.sh new file mode 100644 index 0000000000000000000000000000000000000000..83741be0456f0a0d28eea7cf14a92d05e49eabc1 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eco.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eco | grep -v \.src | grep texlive-eco + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eco" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eco + CHECK_RESULT $? 0 0 "install texlive-eco failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eco + CHECK_RESULT $? 0 0 "remove texlive-eco failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecobiblatex-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecobiblatex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e6c4cbe8be604eb5ef26a6286c8b5dbae3fc489 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecobiblatex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecobiblatex-doc | grep -v \.src | grep texlive-ecobiblatex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecobiblatex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecobiblatex-doc + CHECK_RESULT $? 0 0 "install texlive-ecobiblatex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecobiblatex-doc + CHECK_RESULT $? 0 0 "remove texlive-ecobiblatex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecobiblatex.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecobiblatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b7df469d1e82011c7976e4457264cbd8e1fac61 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecobiblatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecobiblatex | grep -v \.src | grep texlive-ecobiblatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecobiblatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecobiblatex + CHECK_RESULT $? 0 0 "install texlive-ecobiblatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecobiblatex + CHECK_RESULT $? 0 0 "remove texlive-ecobiblatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-econometrics-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-econometrics-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1884542399986421fab6dccd7836d31abfcc4df5 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-econometrics-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-econometrics-doc | grep -v \.src | grep texlive-econometrics-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-econometrics-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-econometrics-doc + CHECK_RESULT $? 0 0 "install texlive-econometrics-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-econometrics-doc + CHECK_RESULT $? 0 0 "remove texlive-econometrics-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-econometrics.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-econometrics.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d016946a3f1b848d3b49265ee340d18c8508360 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-econometrics.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-econometrics | grep -v \.src | grep texlive-econometrics + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-econometrics" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-econometrics + CHECK_RESULT $? 0 0 "install texlive-econometrics failed" + SLEEP_WAIT 1 + dnf remove -y texlive-econometrics + CHECK_RESULT $? 0 0 "remove texlive-econometrics failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-economic-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-economic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc5f8e7659a4bbcd92d51d4b61536329e13a79f6 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-economic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-economic-doc | grep -v \.src | grep texlive-economic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-economic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-economic-doc + CHECK_RESULT $? 0 0 "install texlive-economic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-economic-doc + CHECK_RESULT $? 0 0 "remove texlive-economic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-economic.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-economic.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d2a1ffe624ccdb221b2523c297ee31689869e0d --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-economic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-economic | grep -v \.src | grep texlive-economic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-economic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-economic + CHECK_RESULT $? 0 0 "install texlive-economic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-economic + CHECK_RESULT $? 0 0 "remove texlive-economic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecv-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c804b7f6b41dd9cfd89119f5ec56aba60ba13918 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecv-doc | grep -v \.src | grep texlive-ecv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecv-doc + CHECK_RESULT $? 0 0 "install texlive-ecv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecv-doc + CHECK_RESULT $? 0 0 "remove texlive-ecv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecv.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecv.sh new file mode 100644 index 0000000000000000000000000000000000000000..898d5bacc36a3785cf9edf23e111e04c02c64170 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ecv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecv | grep -v \.src | grep texlive-ecv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecv + CHECK_RESULT $? 0 0 "install texlive-ecv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecv + CHECK_RESULT $? 0 0 "remove texlive-ecv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ed-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ed-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2cedf29175ec70c0eea544a919554a083a519ccd --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ed-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ed-doc | grep -v \.src | grep texlive-ed-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ed-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ed-doc + CHECK_RESULT $? 0 0 "install texlive-ed-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ed-doc + CHECK_RESULT $? 0 0 "remove texlive-ed-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ed.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ed.sh new file mode 100644 index 0000000000000000000000000000000000000000..53e76a891798008e6aea807366f0184f8ebfee69 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ed.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ed | grep -v \.src | grep texlive-ed + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ed" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ed + CHECK_RESULT $? 0 0 "install texlive-ed failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ed + CHECK_RESULT $? 0 0 "remove texlive-ed failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edfnotes-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edfnotes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ea8fca87b2c2e2101cec36bfb58e3c1b45a133e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edfnotes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-edfnotes-doc | grep -v \.src | grep texlive-edfnotes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-edfnotes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-edfnotes-doc + CHECK_RESULT $? 0 0 "install texlive-edfnotes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-edfnotes-doc + CHECK_RESULT $? 0 0 "remove texlive-edfnotes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edfnotes.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edfnotes.sh new file mode 100644 index 0000000000000000000000000000000000000000..f201cd61866c4f471d2c34114b2baa2bb7cc62cc --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edfnotes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-edfnotes | grep -v \.src | grep texlive-edfnotes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-edfnotes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-edfnotes + CHECK_RESULT $? 0 0 "install texlive-edfnotes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-edfnotes + CHECK_RESULT $? 0 0 "remove texlive-edfnotes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmac-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmac-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..abc6847495205422e3453bb00dae9b21dd3a1843 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmac-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-edmac-doc | grep -v \.src | grep texlive-edmac-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-edmac-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-edmac-doc + CHECK_RESULT $? 0 0 "install texlive-edmac-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-edmac-doc + CHECK_RESULT $? 0 0 "remove texlive-edmac-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmac.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmac.sh new file mode 100644 index 0000000000000000000000000000000000000000..460730b136ddff0f37f7fd4259071e44ed4d69c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-edmac | grep -v \.src | grep texlive-edmac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-edmac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-edmac + CHECK_RESULT $? 0 0 "install texlive-edmac failed" + SLEEP_WAIT 1 + dnf remove -y texlive-edmac + CHECK_RESULT $? 0 0 "remove texlive-edmac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmargin-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmargin-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..506f5b01cad2ed41fbd2f1b2ccd634b18e4a3ea9 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmargin-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-edmargin-doc | grep -v \.src | grep texlive-edmargin-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-edmargin-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-edmargin-doc + CHECK_RESULT $? 0 0 "install texlive-edmargin-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-edmargin-doc + CHECK_RESULT $? 0 0 "remove texlive-edmargin-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmargin.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmargin.sh new file mode 100644 index 0000000000000000000000000000000000000000..359e717b9f2fae8873616677ec6eb6d3e0d4cb0c --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-edmargin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-edmargin | grep -v \.src | grep texlive-edmargin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-edmargin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-edmargin + CHECK_RESULT $? 0 0 "install texlive-edmargin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-edmargin + CHECK_RESULT $? 0 0 "remove texlive-edmargin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ednotes-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ednotes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9bb13aa17bc2a78a40c27faf7bfdc6014b1e2fa --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ednotes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ednotes-doc | grep -v \.src | grep texlive-ednotes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ednotes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ednotes-doc + CHECK_RESULT $? 0 0 "install texlive-ednotes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ednotes-doc + CHECK_RESULT $? 0 0 "remove texlive-ednotes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ednotes.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ednotes.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c5a49c8547bab55c2593ba819a0e8e1d28415f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ednotes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ednotes | grep -v \.src | grep texlive-ednotes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ednotes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ednotes + CHECK_RESULT $? 0 0 "install texlive-ednotes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ednotes + CHECK_RESULT $? 0 0 "remove texlive-ednotes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eemeir-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eemeir-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a41544c28f83597b2681d8dc1b1830cfa1938019 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eemeir-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eemeir-doc | grep -v \.src | grep texlive-eemeir-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eemeir-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eemeir-doc + CHECK_RESULT $? 0 0 "install texlive-eemeir-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eemeir-doc + CHECK_RESULT $? 0 0 "remove texlive-eemeir-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eemeir.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eemeir.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c243f856869d444973b81ce80362a22ce397341 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eemeir.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eemeir | grep -v \.src | grep texlive-eemeir + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eemeir" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eemeir + CHECK_RESULT $? 0 0 "install texlive-eemeir failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eemeir + CHECK_RESULT $? 0 0 "remove texlive-eemeir failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eepic-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eepic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0da4d12d493be6779e921aa4b2660e2bbde2db93 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eepic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eepic-doc | grep -v \.src | grep texlive-eepic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eepic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eepic-doc + CHECK_RESULT $? 0 0 "install texlive-eepic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eepic-doc + CHECK_RESULT $? 0 0 "remove texlive-eepic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eepic.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eepic.sh new file mode 100644 index 0000000000000000000000000000000000000000..a07cf5d0ceabd6d05657fdfa1412af8f59c14654 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eepic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eepic | grep -v \.src | grep texlive-eepic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eepic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eepic + CHECK_RESULT $? 0 0 "install texlive-eepic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eepic + CHECK_RESULT $? 0 0 "remove texlive-eepic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-efbox-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-efbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..956ea9be62b766398ea02369e967a699b75553ff --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-efbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-efbox-doc | grep -v \.src | grep texlive-efbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-efbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-efbox-doc + CHECK_RESULT $? 0 0 "install texlive-efbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-efbox-doc + CHECK_RESULT $? 0 0 "remove texlive-efbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-efbox.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-efbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..eebabf58fc1949521ee7e2f9e8a5744ab059e2dc --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-efbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-efbox | grep -v \.src | grep texlive-efbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-efbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-efbox + CHECK_RESULT $? 0 0 "install texlive-efbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-efbox + CHECK_RESULT $? 0 0 "remove texlive-efbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egameps-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egameps-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6872ffafb98ad9e2fe659151fc65abfff230ff6 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egameps-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-egameps-doc | grep -v \.src | grep texlive-egameps-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-egameps-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-egameps-doc + CHECK_RESULT $? 0 0 "install texlive-egameps-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-egameps-doc + CHECK_RESULT $? 0 0 "remove texlive-egameps-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egameps.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egameps.sh new file mode 100644 index 0000000000000000000000000000000000000000..acbcf063e1d83a206510c6aca140b0c976ed25e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egameps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-egameps | grep -v \.src | grep texlive-egameps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-egameps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-egameps + CHECK_RESULT $? 0 0 "install texlive-egameps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-egameps + CHECK_RESULT $? 0 0 "remove texlive-egameps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egplot-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egplot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..08efbbaaa19e292ca86b0d3c9ac7e132c22b3bc0 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egplot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-egplot-doc | grep -v \.src | grep texlive-egplot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-egplot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-egplot-doc + CHECK_RESULT $? 0 0 "install texlive-egplot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-egplot-doc + CHECK_RESULT $? 0 0 "remove texlive-egplot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egplot.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egplot.sh new file mode 100644 index 0000000000000000000000000000000000000000..123a16148711d458c4462741e89757b958e1d1b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-egplot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-egplot | grep -v \.src | grep texlive-egplot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-egplot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-egplot + CHECK_RESULT $? 0 0 "install texlive-egplot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-egplot + CHECK_RESULT $? 0 0 "remove texlive-egplot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..35e2572cb13aaa27f6f24561e5b3b2bdfa54c281 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eiad-doc | grep -v \.src | grep texlive-eiad-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eiad-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eiad-doc + CHECK_RESULT $? 0 0 "install texlive-eiad-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eiad-doc + CHECK_RESULT $? 0 0 "remove texlive-eiad-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad-ltx-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad-ltx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..528cfc1d5c23ec52767ff2894eb8d63adcfa4297 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad-ltx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eiad-ltx-doc | grep -v \.src | grep texlive-eiad-ltx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eiad-ltx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eiad-ltx-doc + CHECK_RESULT $? 0 0 "install texlive-eiad-ltx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eiad-ltx-doc + CHECK_RESULT $? 0 0 "remove texlive-eiad-ltx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad-ltx.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad-ltx.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2c561ab30944f5a6efd66f351e6da9cd8ee0ad8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad-ltx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eiad-ltx | grep -v \.src | grep texlive-eiad-ltx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eiad-ltx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eiad-ltx + CHECK_RESULT $? 0 0 "install texlive-eiad-ltx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eiad-ltx + CHECK_RESULT $? 0 0 "remove texlive-eiad-ltx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2d80a1f1b2150d7fddeea58c4fcb21c6d34335f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eiad.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eiad | grep -v \.src | grep texlive-eiad + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eiad" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eiad + CHECK_RESULT $? 0 0 "install texlive-eiad failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eiad + CHECK_RESULT $? 0 0 "remove texlive-eiad failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eijkhout.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eijkhout.sh new file mode 100644 index 0000000000000000000000000000000000000000..f32a3d626bf1aeca6fe1f70b14e895a387a4578e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eijkhout.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eijkhout | grep -v \.src | grep texlive-eijkhout + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eijkhout" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eijkhout + CHECK_RESULT $? 0 0 "install texlive-eijkhout failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eijkhout + CHECK_RESULT $? 0 0 "remove texlive-eijkhout failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-einfuehrung-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-einfuehrung-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..515418794ad92f1725615c1a4ab88983f224e26f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-einfuehrung-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-einfuehrung-doc | grep -v \.src | grep texlive-einfuehrung-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-einfuehrung-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-einfuehrung-doc + CHECK_RESULT $? 0 0 "install texlive-einfuehrung-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-einfuehrung-doc + CHECK_RESULT $? 0 0 "remove texlive-einfuehrung-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-einfuehrung2-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-einfuehrung2-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..75d05a7be048bf2d91935833f6c8e1e935b34499 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-einfuehrung2-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-einfuehrung2-doc | grep -v \.src | grep texlive-einfuehrung2-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-einfuehrung2-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-einfuehrung2-doc + CHECK_RESULT $? 0 0 "install texlive-einfuehrung2-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-einfuehrung2-doc + CHECK_RESULT $? 0 0 "remove texlive-einfuehrung2-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ejpecp-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ejpecp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7a35537f9545f2cc24b9be8251110bfe404bd9c --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ejpecp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ejpecp-doc | grep -v \.src | grep texlive-ejpecp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ejpecp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ejpecp-doc + CHECK_RESULT $? 0 0 "install texlive-ejpecp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ejpecp-doc + CHECK_RESULT $? 0 0 "remove texlive-ejpecp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ejpecp.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ejpecp.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe56e8468f5c0a7821e471f37f688307e2603754 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ejpecp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ejpecp | grep -v \.src | grep texlive-ejpecp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ejpecp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ejpecp + CHECK_RESULT $? 0 0 "install texlive-ejpecp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ejpecp + CHECK_RESULT $? 0 0 "remove texlive-ejpecp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ekaia-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ekaia-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac7cdd32ddffba74476781a165dcb904b977a482 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ekaia-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ekaia-doc | grep -v \.src | grep texlive-ekaia-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ekaia-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ekaia-doc + CHECK_RESULT $? 0 0 "install texlive-ekaia-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ekaia-doc + CHECK_RESULT $? 0 0 "remove texlive-ekaia-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ekaia.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ekaia.sh new file mode 100644 index 0000000000000000000000000000000000000000..561b752b690ea1656bed7b8cf8a43884919ffd37 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ekaia.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ekaia | grep -v \.src | grep texlive-ekaia + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ekaia" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ekaia + CHECK_RESULT $? 0 0 "install texlive-ekaia failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ekaia + CHECK_RESULT $? 0 0 "remove texlive-ekaia failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elbioimp-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elbioimp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0aa9bd528a11afe097484c7a0261e337a611dcc7 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elbioimp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elbioimp-doc | grep -v \.src | grep texlive-elbioimp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elbioimp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elbioimp-doc + CHECK_RESULT $? 0 0 "install texlive-elbioimp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elbioimp-doc + CHECK_RESULT $? 0 0 "remove texlive-elbioimp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elbioimp.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elbioimp.sh new file mode 100644 index 0000000000000000000000000000000000000000..7495f72351eeb1634bb982e80111c86d37113dfd --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elbioimp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elbioimp | grep -v \.src | grep texlive-elbioimp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elbioimp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elbioimp + CHECK_RESULT $? 0 0 "install texlive-elbioimp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elbioimp + CHECK_RESULT $? 0 0 "remove texlive-elbioimp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-electrum-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-electrum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..193470c9b8f9d4f7c6e011ee5f34eae2e260dbeb --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-electrum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-electrum-doc | grep -v \.src | grep texlive-electrum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-electrum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-electrum-doc + CHECK_RESULT $? 0 0 "install texlive-electrum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-electrum-doc + CHECK_RESULT $? 0 0 "remove texlive-electrum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-electrum.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-electrum.sh new file mode 100644 index 0000000000000000000000000000000000000000..2270a743e94cac4d77c4f1dfb21867d880ea9830 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-electrum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-electrum | grep -v \.src | grep texlive-electrum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-electrum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-electrum + CHECK_RESULT $? 0 0 "install texlive-electrum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-electrum + CHECK_RESULT $? 0 0 "remove texlive-electrum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledform-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledform-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5374eddbebaefdf3e2284e68f36e18c5f6caaa82 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledform-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eledform-doc | grep -v \.src | grep texlive-eledform-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eledform-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eledform-doc + CHECK_RESULT $? 0 0 "install texlive-eledform-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eledform-doc + CHECK_RESULT $? 0 0 "remove texlive-eledform-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledform.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledform.sh new file mode 100644 index 0000000000000000000000000000000000000000..5123eb58d9d62104c703f74ae4ac8b1f64fb8fcd --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledform.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eledform | grep -v \.src | grep texlive-eledform + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eledform" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eledform + CHECK_RESULT $? 0 0 "install texlive-eledform failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eledform + CHECK_RESULT $? 0 0 "remove texlive-eledform failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledmac-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledmac-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..121953b8a2b6435e6a282d4fc5082ab93a2e7542 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledmac-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eledmac-doc | grep -v \.src | grep texlive-eledmac-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eledmac-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eledmac-doc + CHECK_RESULT $? 0 0 "install texlive-eledmac-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eledmac-doc + CHECK_RESULT $? 0 0 "remove texlive-eledmac-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledmac.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledmac.sh new file mode 100644 index 0000000000000000000000000000000000000000..027dde305e734eae441786a48eb3c60c590682c0 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eledmac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eledmac | grep -v \.src | grep texlive-eledmac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eledmac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eledmac + CHECK_RESULT $? 0 0 "install texlive-eledmac failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eledmac + CHECK_RESULT $? 0 0 "remove texlive-eledmac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elements-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elements-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..62f139b2f368fbdde2933621f781102380ecf28f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elements-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elements-doc | grep -v \.src | grep texlive-elements-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elements-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elements-doc + CHECK_RESULT $? 0 0 "install texlive-elements-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elements-doc + CHECK_RESULT $? 0 0 "remove texlive-elements-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elements.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elements.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1132dfa99d96608439bc7ea895998a8efe22157 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elements.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elements | grep -v \.src | grep texlive-elements + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elements" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elements + CHECK_RESULT $? 0 0 "install texlive-elements failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elements + CHECK_RESULT $? 0 0 "remove texlive-elements failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipse-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipse-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..30736d0a7dbdbafdae3246ec4392849510184035 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipse-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ellipse-doc | grep -v \.src | grep texlive-ellipse-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ellipse-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ellipse-doc + CHECK_RESULT $? 0 0 "install texlive-ellipse-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ellipse-doc + CHECK_RESULT $? 0 0 "remove texlive-ellipse-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipse.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipse.sh new file mode 100644 index 0000000000000000000000000000000000000000..d88904f7771021959d1b82609e71e4ad62328478 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipse.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ellipse | grep -v \.src | grep texlive-ellipse + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ellipse" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ellipse + CHECK_RESULT $? 0 0 "install texlive-ellipse failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ellipse + CHECK_RESULT $? 0 0 "remove texlive-ellipse failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipsis-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipsis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..975da60c2f7a0b90e25661be50ba951a4254693d --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipsis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ellipsis-doc | grep -v \.src | grep texlive-ellipsis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ellipsis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ellipsis-doc + CHECK_RESULT $? 0 0 "install texlive-ellipsis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ellipsis-doc + CHECK_RESULT $? 0 0 "remove texlive-ellipsis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipsis.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipsis.sh new file mode 100644 index 0000000000000000000000000000000000000000..6341f32298f9c75cab89d88c9ba73886f0589082 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ellipsis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ellipsis | grep -v \.src | grep texlive-ellipsis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ellipsis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ellipsis + CHECK_RESULT $? 0 0 "install texlive-ellipsis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ellipsis + CHECK_RESULT $? 0 0 "remove texlive-ellipsis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elmath-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elmath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbe54d20bef5853b288d9f2dbba518679b5eed5c --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elmath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elmath-doc | grep -v \.src | grep texlive-elmath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elmath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elmath-doc + CHECK_RESULT $? 0 0 "install texlive-elmath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elmath-doc + CHECK_RESULT $? 0 0 "remove texlive-elmath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elmath.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..18fced29c55ba6eaf9409a12f0b28fb9afd22281 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elmath | grep -v \.src | grep texlive-elmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elmath + CHECK_RESULT $? 0 0 "install texlive-elmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elmath + CHECK_RESULT $? 0 0 "remove texlive-elmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elocalloc-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elocalloc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..52e1e92982aef8efbdbc4758d1a531c9f189514d --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elocalloc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elocalloc-doc | grep -v \.src | grep texlive-elocalloc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elocalloc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elocalloc-doc + CHECK_RESULT $? 0 0 "install texlive-elocalloc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elocalloc-doc + CHECK_RESULT $? 0 0 "remove texlive-elocalloc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elocalloc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elocalloc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e016e090b9be4ab7786bb98d1b460db78ea081d --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elocalloc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elocalloc | grep -v \.src | grep texlive-elocalloc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elocalloc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elocalloc + CHECK_RESULT $? 0 0 "install texlive-elocalloc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elocalloc + CHECK_RESULT $? 0 0 "remove texlive-elocalloc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elpres-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elpres-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..98763b0caa372ef5afca118026f4cf7dd54f0142 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elpres-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elpres-doc | grep -v \.src | grep texlive-elpres-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elpres-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elpres-doc + CHECK_RESULT $? 0 0 "install texlive-elpres-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elpres-doc + CHECK_RESULT $? 0 0 "remove texlive-elpres-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elpres.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elpres.sh new file mode 100644 index 0000000000000000000000000000000000000000..a20519c5926c291594075da1d1e013339bdd75b5 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elpres.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elpres | grep -v \.src | grep texlive-elpres + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elpres" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elpres + CHECK_RESULT $? 0 0 "install texlive-elpres failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elpres + CHECK_RESULT $? 0 0 "remove texlive-elpres failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elsarticle-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elsarticle-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f27dd3868ab9abcd56a77685198bd0088f2d35c --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elsarticle-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elsarticle-doc | grep -v \.src | grep texlive-elsarticle-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elsarticle-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elsarticle-doc + CHECK_RESULT $? 0 0 "install texlive-elsarticle-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elsarticle-doc + CHECK_RESULT $? 0 0 "remove texlive-elsarticle-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elsarticle.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elsarticle.sh new file mode 100644 index 0000000000000000000000000000000000000000..59f88217052071d9ac2aa16b05550a78859e4f22 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elsarticle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elsarticle | grep -v \.src | grep texlive-elsarticle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elsarticle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elsarticle + CHECK_RESULT $? 0 0 "install texlive-elsarticle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elsarticle + CHECK_RESULT $? 0 0 "remove texlive-elsarticle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elteikthesis-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elteikthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1eee7096617b9fd773a34fe25423e279b4847912 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elteikthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elteikthesis-doc | grep -v \.src | grep texlive-elteikthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elteikthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elteikthesis-doc + CHECK_RESULT $? 0 0 "install texlive-elteikthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elteikthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-elteikthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elteikthesis.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elteikthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2b7c141aef38e374de179ccfe831a4bd73b49ed --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elteikthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elteikthesis | grep -v \.src | grep texlive-elteikthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elteikthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elteikthesis + CHECK_RESULT $? 0 0 "install texlive-elteikthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elteikthesis + CHECK_RESULT $? 0 0 "remove texlive-elteikthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eltex-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eltex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc27ec767c03371d704023c778a24a3afd6b42fc --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eltex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eltex-doc | grep -v \.src | grep texlive-eltex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eltex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eltex-doc + CHECK_RESULT $? 0 0 "install texlive-eltex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eltex-doc + CHECK_RESULT $? 0 0 "remove texlive-eltex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eltex.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eltex.sh new file mode 100644 index 0000000000000000000000000000000000000000..101644d9616ba6502faca82f456b4965293b30c4 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eltex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eltex | grep -v \.src | grep texlive-eltex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eltex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eltex + CHECK_RESULT $? 0 0 "install texlive-eltex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eltex + CHECK_RESULT $? 0 0 "remove texlive-eltex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elvish-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elvish-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b17ba028043cd51c86ab898b99d0e09b7f50f422 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elvish-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elvish-doc | grep -v \.src | grep texlive-elvish-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elvish-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elvish-doc + CHECK_RESULT $? 0 0 "install texlive-elvish-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elvish-doc + CHECK_RESULT $? 0 0 "remove texlive-elvish-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elvish.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elvish.sh new file mode 100644 index 0000000000000000000000000000000000000000..9408693f09fe09bc5d553a5976ece053af38ee87 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elvish.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elvish | grep -v \.src | grep texlive-elvish + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elvish" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elvish + CHECK_RESULT $? 0 0 "install texlive-elvish failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elvish + CHECK_RESULT $? 0 0 "remove texlive-elvish failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elzcards-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elzcards-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..794d9df3d75b111f1d3494a6646001db096ff862 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elzcards-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elzcards-doc | grep -v \.src | grep texlive-elzcards-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elzcards-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elzcards-doc + CHECK_RESULT $? 0 0 "install texlive-elzcards-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elzcards-doc + CHECK_RESULT $? 0 0 "remove texlive-elzcards-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elzcards.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elzcards.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ef1d4ff1bce884e9c9b241c8cdb56c25c6696a2 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-elzcards.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elzcards | grep -v \.src | grep texlive-elzcards + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elzcards" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elzcards + CHECK_RESULT $? 0 0 "install texlive-elzcards failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elzcards + CHECK_RESULT $? 0 0 "remove texlive-elzcards failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emarks-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emarks-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9a77d5db5416fd1a008ea10605d06c1a97238b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emarks-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emarks-doc | grep -v \.src | grep texlive-emarks-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emarks-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emarks-doc + CHECK_RESULT $? 0 0 "install texlive-emarks-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emarks-doc + CHECK_RESULT $? 0 0 "remove texlive-emarks-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emarks.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emarks.sh new file mode 100644 index 0000000000000000000000000000000000000000..5138a73f528a5591fd2235c86369384f50b94e70 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emarks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emarks | grep -v \.src | grep texlive-emarks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emarks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emarks + CHECK_RESULT $? 0 0 "install texlive-emarks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emarks + CHECK_RESULT $? 0 0 "remove texlive-emarks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embedall-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embedall-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4371bb90acc50e6f1eda565a3f94cbad9f945c2b --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embedall-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-embedall-doc | grep -v \.src | grep texlive-embedall-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-embedall-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-embedall-doc + CHECK_RESULT $? 0 0 "install texlive-embedall-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-embedall-doc + CHECK_RESULT $? 0 0 "remove texlive-embedall-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embedall.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embedall.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3b0c50cd6a31fac4f8ede86e0951b26175b622a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embedall.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-embedall | grep -v \.src | grep texlive-embedall + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-embedall" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-embedall + CHECK_RESULT $? 0 0 "install texlive-embedall failed" + SLEEP_WAIT 1 + dnf remove -y texlive-embedall + CHECK_RESULT $? 0 0 "remove texlive-embedall failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embrac-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embrac-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0618cbac5b5b78081ab6beda2aa4b497cfc577b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embrac-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-embrac-doc | grep -v \.src | grep texlive-embrac-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-embrac-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-embrac-doc + CHECK_RESULT $? 0 0 "install texlive-embrac-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-embrac-doc + CHECK_RESULT $? 0 0 "remove texlive-embrac-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embrac.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embrac.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1d9ad9382b5ebf713cd99b9b206b7f8d5a10409 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-embrac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-embrac | grep -v \.src | grep texlive-embrac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-embrac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-embrac + CHECK_RESULT $? 0 0 "install texlive-embrac failed" + SLEEP_WAIT 1 + dnf remove -y texlive-embrac + CHECK_RESULT $? 0 0 "remove texlive-embrac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emf.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emf.sh new file mode 100644 index 0000000000000000000000000000000000000000..661017fbc58183ebb39eef68119e4fe05a48e389 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emf | grep -v \.src | grep texlive-emf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emf + CHECK_RESULT $? 0 0 "install texlive-emf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emf + CHECK_RESULT $? 0 0 "remove texlive-emf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emisa-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emisa-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..34cb7fd59feaf4b98d45dfc50c43b3dc9c38e40d --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emisa-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emisa-doc | grep -v \.src | grep texlive-emisa-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emisa-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emisa-doc + CHECK_RESULT $? 0 0 "install texlive-emisa-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emisa-doc + CHECK_RESULT $? 0 0 "remove texlive-emisa-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emisa.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emisa.sh new file mode 100644 index 0000000000000000000000000000000000000000..395b043231c6370ce4100168b1c6159ba3111d58 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emisa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emisa | grep -v \.src | grep texlive-emisa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emisa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emisa + CHECK_RESULT $? 0 0 "install texlive-emisa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emisa + CHECK_RESULT $? 0 0 "remove texlive-emisa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emp-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0dac8ae911ae3236473adc4d025dd4ff19b349c6 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emp-doc | grep -v \.src | grep texlive-emp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emp-doc + CHECK_RESULT $? 0 0 "install texlive-emp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emp-doc + CHECK_RESULT $? 0 0 "remove texlive-emp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emp.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emp.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e4a4ce877f2c350ce22ab9ab609407403c5ed2e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emp | grep -v \.src | grep texlive-emp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emp + CHECK_RESULT $? 0 0 "install texlive-emp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emp + CHECK_RESULT $? 0 0 "remove texlive-emp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emptypage-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emptypage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cf5996042923ec44b74ec4554964c9468539878 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emptypage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emptypage-doc | grep -v \.src | grep texlive-emptypage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emptypage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emptypage-doc + CHECK_RESULT $? 0 0 "install texlive-emptypage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emptypage-doc + CHECK_RESULT $? 0 0 "remove texlive-emptypage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emptypage.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emptypage.sh new file mode 100644 index 0000000000000000000000000000000000000000..00480eb830789b245a8b1864a329d30a3e0aa7a6 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emptypage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emptypage | grep -v \.src | grep texlive-emptypage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emptypage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emptypage + CHECK_RESULT $? 0 0 "install texlive-emptypage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emptypage + CHECK_RESULT $? 0 0 "remove texlive-emptypage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emulateapj-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emulateapj-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2144ef069aa9542f98306c4db9a5206e266956ad --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emulateapj-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emulateapj-doc | grep -v \.src | grep texlive-emulateapj-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emulateapj-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emulateapj-doc + CHECK_RESULT $? 0 0 "install texlive-emulateapj-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emulateapj-doc + CHECK_RESULT $? 0 0 "remove texlive-emulateapj-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emulateapj.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emulateapj.sh new file mode 100644 index 0000000000000000000000000000000000000000..1bb7c13f8f5fdce229446562f75c32283f04a45c --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-emulateapj.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emulateapj | grep -v \.src | grep texlive-emulateapj + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emulateapj" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emulateapj + CHECK_RESULT $? 0 0 "install texlive-emulateapj failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emulateapj + CHECK_RESULT $? 0 0 "remove texlive-emulateapj failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enctex-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enctex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d95e5f9bad4d8782e0bf247bd7f9ec38f735d7ea --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enctex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-enctex-doc | grep -v \.src | grep texlive-enctex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-enctex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-enctex-doc + CHECK_RESULT $? 0 0 "install texlive-enctex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-enctex-doc + CHECK_RESULT $? 0 0 "remove texlive-enctex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enctex.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enctex.sh new file mode 100644 index 0000000000000000000000000000000000000000..0432d5fbb52a8047b5cb2e5dc89eede54db89e19 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enctex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-enctex | grep -v \.src | grep texlive-enctex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-enctex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-enctex + CHECK_RESULT $? 0 0 "install texlive-enctex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-enctex + CHECK_RESULT $? 0 0 "remove texlive-enctex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-encxvlna-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-encxvlna-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..11ae1f16723e61f34fb2a029d6bea36b114421f3 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-encxvlna-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-encxvlna-doc | grep -v \.src | grep texlive-encxvlna-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-encxvlna-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-encxvlna-doc + CHECK_RESULT $? 0 0 "install texlive-encxvlna-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-encxvlna-doc + CHECK_RESULT $? 0 0 "remove texlive-encxvlna-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-encxvlna.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-encxvlna.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9143400ae6b18b176e747bab1b2ac6feb0c2736 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-encxvlna.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-encxvlna | grep -v \.src | grep texlive-encxvlna + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-encxvlna" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-encxvlna + CHECK_RESULT $? 0 0 "install texlive-encxvlna failed" + SLEEP_WAIT 1 + dnf remove -y texlive-encxvlna + CHECK_RESULT $? 0 0 "remove texlive-encxvlna failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endfloat-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endfloat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..80e39dbe4835dafcc5c4e5f71676e855e82350e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endfloat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endfloat-doc | grep -v \.src | grep texlive-endfloat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endfloat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endfloat-doc + CHECK_RESULT $? 0 0 "install texlive-endfloat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endfloat-doc + CHECK_RESULT $? 0 0 "remove texlive-endfloat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endfloat.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..020cd4eb320c412cedf4f487a98433697eb92b0e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endfloat | grep -v \.src | grep texlive-endfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endfloat + CHECK_RESULT $? 0 0 "install texlive-endfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endfloat + CHECK_RESULT $? 0 0 "remove texlive-endfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endheads-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endheads-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e332f0cac76612f8ecbefbeca8745274a60e605 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endheads-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endheads-doc | grep -v \.src | grep texlive-endheads-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endheads-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endheads-doc + CHECK_RESULT $? 0 0 "install texlive-endheads-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endheads-doc + CHECK_RESULT $? 0 0 "remove texlive-endheads-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endheads.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endheads.sh new file mode 100644 index 0000000000000000000000000000000000000000..a99d7c8306f5913f6add58a6a1acc9b7d929bcc9 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endheads.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endheads | grep -v \.src | grep texlive-endheads + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endheads" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endheads + CHECK_RESULT $? 0 0 "install texlive-endheads failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endheads + CHECK_RESULT $? 0 0 "remove texlive-endheads failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endiagram-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endiagram-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d550a3d8d52c3875ef841c52ad0dcf7750cd3f9a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endiagram-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endiagram-doc | grep -v \.src | grep texlive-endiagram-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endiagram-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endiagram-doc + CHECK_RESULT $? 0 0 "install texlive-endiagram-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endiagram-doc + CHECK_RESULT $? 0 0 "remove texlive-endiagram-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endiagram.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endiagram.sh new file mode 100644 index 0000000000000000000000000000000000000000..f04f053d1b47273cd662b59b1871d669e4a540d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endiagram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endiagram | grep -v \.src | grep texlive-endiagram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endiagram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endiagram + CHECK_RESULT $? 0 0 "install texlive-endiagram failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endiagram + CHECK_RESULT $? 0 0 "remove texlive-endiagram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endnotes-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endnotes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b28b66dbefd42f07a4c257404c5f1414aecdbc3 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endnotes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endnotes-doc | grep -v \.src | grep texlive-endnotes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endnotes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endnotes-doc + CHECK_RESULT $? 0 0 "install texlive-endnotes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endnotes-doc + CHECK_RESULT $? 0 0 "remove texlive-endnotes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endnotes.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endnotes.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2dfb073860d1ea86a22b666c5985d64363dfd0a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endnotes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endnotes | grep -v \.src | grep texlive-endnotes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endnotes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endnotes + CHECK_RESULT $? 0 0 "install texlive-endnotes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endnotes + CHECK_RESULT $? 0 0 "remove texlive-endnotes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endnotesj.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endnotesj.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9f2099cd6609eaf728ef66e895baac50c66bd84 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endnotesj.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endnotesj | grep -v \.src | grep texlive-endnotesj + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endnotesj" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endnotesj + CHECK_RESULT $? 0 0 "install texlive-endnotesj failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endnotesj + CHECK_RESULT $? 0 0 "remove texlive-endnotesj failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endofproofwd.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endofproofwd.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1cdc0a3a92e54f28cd76e0ad47780baf2bf1515 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-endofproofwd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endofproofwd | grep -v \.src | grep texlive-endofproofwd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endofproofwd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endofproofwd + CHECK_RESULT $? 0 0 "install texlive-endofproofwd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endofproofwd + CHECK_RESULT $? 0 0 "remove texlive-endofproofwd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engpron-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engpron-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb5ba785b4e14e797eff2e11a2800219ee1adcef --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engpron-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-engpron-doc | grep -v \.src | grep texlive-engpron-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-engpron-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-engpron-doc + CHECK_RESULT $? 0 0 "install texlive-engpron-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-engpron-doc + CHECK_RESULT $? 0 0 "remove texlive-engpron-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engpron.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engpron.sh new file mode 100644 index 0000000000000000000000000000000000000000..63cd5eed527553e36753a18a338096156113c9cf --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engpron.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-engpron | grep -v \.src | grep texlive-engpron + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-engpron" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-engpron + CHECK_RESULT $? 0 0 "install texlive-engpron failed" + SLEEP_WAIT 1 + dnf remove -y texlive-engpron + CHECK_RESULT $? 0 0 "remove texlive-engpron failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engrec-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engrec-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aebadf6bfb31d40f18b6b6b219378dab16d9c893 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engrec-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-engrec-doc | grep -v \.src | grep texlive-engrec-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-engrec-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-engrec-doc + CHECK_RESULT $? 0 0 "install texlive-engrec-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-engrec-doc + CHECK_RESULT $? 0 0 "remove texlive-engrec-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engrec.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engrec.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec60d9680ff5978157ef73518c796572911d25cb --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engrec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-engrec | grep -v \.src | grep texlive-engrec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-engrec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-engrec + CHECK_RESULT $? 0 0 "install texlive-engrec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-engrec + CHECK_RESULT $? 0 0 "remove texlive-engrec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engtlc-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engtlc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f59297f8b687ee004c6da8af87cc9e38c27b5631 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engtlc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-engtlc-doc | grep -v \.src | grep texlive-engtlc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-engtlc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-engtlc-doc + CHECK_RESULT $? 0 0 "install texlive-engtlc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-engtlc-doc + CHECK_RESULT $? 0 0 "remove texlive-engtlc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engtlc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engtlc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3a3ab52e319ca75ecf21e49e473525d4cf7af3f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-engtlc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-engtlc | grep -v \.src | grep texlive-engtlc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-engtlc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-engtlc + CHECK_RESULT $? 0 0 "install texlive-engtlc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-engtlc + CHECK_RESULT $? 0 0 "remove texlive-engtlc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enigma-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enigma-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fe35bedb16bd25b2c77f8edae9cbb856b859e63 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enigma-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-enigma-doc | grep -v \.src | grep texlive-enigma-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-enigma-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-enigma-doc + CHECK_RESULT $? 0 0 "install texlive-enigma-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-enigma-doc + CHECK_RESULT $? 0 0 "remove texlive-enigma-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enigma.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enigma.sh new file mode 100644 index 0000000000000000000000000000000000000000..c76e8fcf5a77a7e2f92b9d3199431e1aac856169 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enigma.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-enigma | grep -v \.src | grep texlive-enigma + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-enigma" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-enigma + CHECK_RESULT $? 0 0 "install texlive-enigma failed" + SLEEP_WAIT 1 + dnf remove -y texlive-enigma + CHECK_RESULT $? 0 0 "remove texlive-enigma failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enotez-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enotez-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b20d4052877ddc5a173016f8db1459fc70145f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enotez-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-enotez-doc | grep -v \.src | grep texlive-enotez-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-enotez-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-enotez-doc + CHECK_RESULT $? 0 0 "install texlive-enotez-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-enotez-doc + CHECK_RESULT $? 0 0 "remove texlive-enotez-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enotez.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enotez.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1591f7e15ed2f2b4264b85a09e58d173ce36041 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enotez.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-enotez | grep -v \.src | grep texlive-enotez + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-enotez" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-enotez + CHECK_RESULT $? 0 0 "install texlive-enotez failed" + SLEEP_WAIT 1 + dnf remove -y texlive-enotez + CHECK_RESULT $? 0 0 "remove texlive-enotez failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7cb7a625fc4bee28ca629bcf1af9c71b3b44f57 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-enumitem-doc | grep -v \.src | grep texlive-enumitem-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-enumitem-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-enumitem-doc + CHECK_RESULT $? 0 0 "install texlive-enumitem-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-enumitem-doc + CHECK_RESULT $? 0 0 "remove texlive-enumitem-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem-zref-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem-zref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7caca4d5788d1ef7e39d82a5e22ecc420535020c --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem-zref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-enumitem-zref-doc | grep -v \.src | grep texlive-enumitem-zref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-enumitem-zref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-enumitem-zref-doc + CHECK_RESULT $? 0 0 "install texlive-enumitem-zref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-enumitem-zref-doc + CHECK_RESULT $? 0 0 "remove texlive-enumitem-zref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem-zref.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem-zref.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea04d10597601be386ede1a9aef9f0c6e04db977 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem-zref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-enumitem-zref | grep -v \.src | grep texlive-enumitem-zref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-enumitem-zref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-enumitem-zref + CHECK_RESULT $? 0 0 "install texlive-enumitem-zref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-enumitem-zref + CHECK_RESULT $? 0 0 "remove texlive-enumitem-zref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e6e7e931398a1887c123d0c82c50f238db48f84 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-enumitem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-enumitem | grep -v \.src | grep texlive-enumitem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-enumitem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-enumitem + CHECK_RESULT $? 0 0 "install texlive-enumitem failed" + SLEEP_WAIT 1 + dnf remove -y texlive-enumitem + CHECK_RESULT $? 0 0 "remove texlive-enumitem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envbig-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envbig-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4ef8f3a03aafbb557d6a42acaa3b4c9096aab37 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envbig-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-envbig-doc | grep -v \.src | grep texlive-envbig-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-envbig-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-envbig-doc + CHECK_RESULT $? 0 0 "install texlive-envbig-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-envbig-doc + CHECK_RESULT $? 0 0 "remove texlive-envbig-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envbig.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envbig.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ad875673a39fbff64d7f327eafb859abb058847 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envbig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-envbig | grep -v \.src | grep texlive-envbig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-envbig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-envbig + CHECK_RESULT $? 0 0 "install texlive-envbig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-envbig + CHECK_RESULT $? 0 0 "remove texlive-envbig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-environ-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-environ-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6eafdd060adc23f4740fd0e831793468a37c30e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-environ-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-environ-doc | grep -v \.src | grep texlive-environ-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-environ-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-environ-doc + CHECK_RESULT $? 0 0 "install texlive-environ-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-environ-doc + CHECK_RESULT $? 0 0 "remove texlive-environ-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-environ.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-environ.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a358ed72aaa15a75f08d12b25ed49cbfc931f1b --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-environ.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-environ | grep -v \.src | grep texlive-environ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-environ" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-environ + CHECK_RESULT $? 0 0 "install texlive-environ failed" + SLEEP_WAIT 1 + dnf remove -y texlive-environ + CHECK_RESULT $? 0 0 "remove texlive-environ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envlab-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envlab-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..03a3827a3229256c502549efa6ceea61f4f72e69 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envlab-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-envlab-doc | grep -v \.src | grep texlive-envlab-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-envlab-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-envlab-doc + CHECK_RESULT $? 0 0 "install texlive-envlab-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-envlab-doc + CHECK_RESULT $? 0 0 "remove texlive-envlab-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envlab.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envlab.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca842b3b242a6c41204762169fb8afe7bb78bc73 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-envlab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-envlab | grep -v \.src | grep texlive-envlab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-envlab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-envlab + CHECK_RESULT $? 0 0 "install texlive-envlab failed" + SLEEP_WAIT 1 + dnf remove -y texlive-envlab + CHECK_RESULT $? 0 0 "remove texlive-envlab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigrafica-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigrafica-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef3a8d96938514ac2ff82dd4e3fc0ad7fd16fd0f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigrafica-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epigrafica-doc | grep -v \.src | grep texlive-epigrafica-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epigrafica-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epigrafica-doc + CHECK_RESULT $? 0 0 "install texlive-epigrafica-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epigrafica-doc + CHECK_RESULT $? 0 0 "remove texlive-epigrafica-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigrafica.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigrafica.sh new file mode 100644 index 0000000000000000000000000000000000000000..e35e4b970af90c7c80c2eb65937a87332c514e7b --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigrafica.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epigrafica | grep -v \.src | grep texlive-epigrafica + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epigrafica" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epigrafica + CHECK_RESULT $? 0 0 "install texlive-epigrafica failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epigrafica + CHECK_RESULT $? 0 0 "remove texlive-epigrafica failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigram.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigram.sh new file mode 100644 index 0000000000000000000000000000000000000000..92416f502d90c28ab9466771de61b41c4eda43a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epigram | grep -v \.src | grep texlive-epigram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epigram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epigram + CHECK_RESULT $? 0 0 "install texlive-epigram failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epigram + CHECK_RESULT $? 0 0 "remove texlive-epigram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigraph-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigraph-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8009323c7c1e51f46559b41238dce702ebb31325 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigraph-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epigraph-doc | grep -v \.src | grep texlive-epigraph-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epigraph-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epigraph-doc + CHECK_RESULT $? 0 0 "install texlive-epigraph-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epigraph-doc + CHECK_RESULT $? 0 0 "remove texlive-epigraph-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigraph.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigraph.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d245776ef7ce5ce3babbb0b7fde5cd382ed0106 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epigraph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epigraph | grep -v \.src | grep texlive-epigraph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epigraph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epigraph + CHECK_RESULT $? 0 0 "install texlive-epigraph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epigraph + CHECK_RESULT $? 0 0 "remove texlive-epigraph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epiolmec-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epiolmec-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c79f911f9b5e2391f1932f395d69d418c169586 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epiolmec-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epiolmec-doc | grep -v \.src | grep texlive-epiolmec-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epiolmec-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epiolmec-doc + CHECK_RESULT $? 0 0 "install texlive-epiolmec-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epiolmec-doc + CHECK_RESULT $? 0 0 "remove texlive-epiolmec-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epiolmec.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epiolmec.sh new file mode 100644 index 0000000000000000000000000000000000000000..ffcadf32f55fd428346457158aed0ef5b6a36be3 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epiolmec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epiolmec | grep -v \.src | grep texlive-epiolmec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epiolmec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epiolmec + CHECK_RESULT $? 0 0 "install texlive-epiolmec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epiolmec + CHECK_RESULT $? 0 0 "remove texlive-epiolmec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsdice-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsdice-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..785d98431908c6681ba5e821d7d8051ae3066ebb --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsdice-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epsdice-doc | grep -v \.src | grep texlive-epsdice-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epsdice-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epsdice-doc + CHECK_RESULT $? 0 0 "install texlive-epsdice-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epsdice-doc + CHECK_RESULT $? 0 0 "remove texlive-epsdice-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsdice.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsdice.sh new file mode 100644 index 0000000000000000000000000000000000000000..791ae555c455ca4ec887a05bbf764df790fa1bc3 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsdice.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epsdice | grep -v \.src | grep texlive-epsdice + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epsdice" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epsdice + CHECK_RESULT $? 0 0 "install texlive-epsdice failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epsdice + CHECK_RESULT $? 0 0 "remove texlive-epsdice failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..57530952c24b5e2e2d91c1a04b37d10f1033c0d0 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epsf-doc | grep -v \.src | grep texlive-epsf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epsf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epsf-doc + CHECK_RESULT $? 0 0 "install texlive-epsf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epsf-doc + CHECK_RESULT $? 0 0 "remove texlive-epsf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf-dvipdfmx-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf-dvipdfmx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2eaa49da7cee30c548c8f2a478b75c753178c72 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf-dvipdfmx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epsf-dvipdfmx-doc | grep -v \.src | grep texlive-epsf-dvipdfmx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epsf-dvipdfmx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epsf-dvipdfmx-doc + CHECK_RESULT $? 0 0 "install texlive-epsf-dvipdfmx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epsf-dvipdfmx-doc + CHECK_RESULT $? 0 0 "remove texlive-epsf-dvipdfmx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf-dvipdfmx.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf-dvipdfmx.sh new file mode 100644 index 0000000000000000000000000000000000000000..39bbc607b9f800880065b1a7aa1c79406d2e68d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf-dvipdfmx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epsf-dvipdfmx | grep -v \.src | grep texlive-epsf-dvipdfmx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epsf-dvipdfmx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epsf-dvipdfmx + CHECK_RESULT $? 0 0 "install texlive-epsf-dvipdfmx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epsf-dvipdfmx + CHECK_RESULT $? 0 0 "remove texlive-epsf-dvipdfmx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b76a7da36bbbe70fa53cfd4c33e8f1dc92d72c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epsf | grep -v \.src | grep texlive-epsf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epsf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epsf + CHECK_RESULT $? 0 0 "install texlive-epsf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epsf + CHECK_RESULT $? 0 0 "remove texlive-epsf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsincl-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsincl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..424901977a161119b850ed403de56e2b410dc58d --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsincl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epsincl-doc | grep -v \.src | grep texlive-epsincl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epsincl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epsincl-doc + CHECK_RESULT $? 0 0 "install texlive-epsincl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epsincl-doc + CHECK_RESULT $? 0 0 "remove texlive-epsincl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsincl.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsincl.sh new file mode 100644 index 0000000000000000000000000000000000000000..e70d4d3947c4fffe7e66e66c67168b69106a058a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epsincl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epsincl | grep -v \.src | grep texlive-epsincl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epsincl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epsincl + CHECK_RESULT $? 0 0 "install texlive-epsincl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epsincl + CHECK_RESULT $? 0 0 "remove texlive-epsincl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epslatex-fr-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epslatex-fr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e18d4215da797fb8b858cf0542c02f4f46d2ae7f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epslatex-fr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epslatex-fr-doc | grep -v \.src | grep texlive-epslatex-fr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epslatex-fr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epslatex-fr-doc + CHECK_RESULT $? 0 0 "install texlive-epslatex-fr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epslatex-fr-doc + CHECK_RESULT $? 0 0 "remove texlive-epslatex-fr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epspdfconversion-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epspdfconversion-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b1623b53e657e68dbd35153c6d5fd2109729adf --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epspdfconversion-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epspdfconversion-doc | grep -v \.src | grep texlive-epspdfconversion-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epspdfconversion-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epspdfconversion-doc + CHECK_RESULT $? 0 0 "install texlive-epspdfconversion-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epspdfconversion-doc + CHECK_RESULT $? 0 0 "remove texlive-epspdfconversion-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epspdfconversion.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epspdfconversion.sh new file mode 100644 index 0000000000000000000000000000000000000000..64c70e25d0102a309359d5a89cce6aed58cc0a69 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-epspdfconversion.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epspdfconversion | grep -v \.src | grep texlive-epspdfconversion + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epspdfconversion" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epspdfconversion + CHECK_RESULT $? 0 0 "install texlive-epspdfconversion failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epspdfconversion + CHECK_RESULT $? 0 0 "remove texlive-epspdfconversion failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqell-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqell-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bed3d2b44564e92a14aa1693611d1be0fe6c41a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqell-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqell-doc | grep -v \.src | grep texlive-eqell-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqell-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqell-doc + CHECK_RESULT $? 0 0 "install texlive-eqell-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqell-doc + CHECK_RESULT $? 0 0 "remove texlive-eqell-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqell.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqell.sh new file mode 100644 index 0000000000000000000000000000000000000000..df42674a8b722a9cbb1230454ebe2f659f762600 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqell | grep -v \.src | grep texlive-eqell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqell + CHECK_RESULT $? 0 0 "install texlive-eqell failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqell + CHECK_RESULT $? 0 0 "remove texlive-eqell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqlist-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqlist-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2da0bf3b4651e3b9073c34879a8c267b082e4fc6 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqlist-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqlist-doc | grep -v \.src | grep texlive-eqlist-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqlist-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqlist-doc + CHECK_RESULT $? 0 0 "install texlive-eqlist-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqlist-doc + CHECK_RESULT $? 0 0 "remove texlive-eqlist-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqlist.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqlist.sh new file mode 100644 index 0000000000000000000000000000000000000000..91e5f146685059161ff7ed383815ec115c61744f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqlist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqlist | grep -v \.src | grep texlive-eqlist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqlist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqlist + CHECK_RESULT $? 0 0 "install texlive-eqlist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqlist + CHECK_RESULT $? 0 0 "remove texlive-eqlist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnalign.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnalign.sh new file mode 100644 index 0000000000000000000000000000000000000000..655be2ed0fdeff383ca4bcddcd8f71c43f9f3052 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnalign.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqnalign | grep -v \.src | grep texlive-eqnalign + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqnalign" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqnalign + CHECK_RESULT $? 0 0 "install texlive-eqnalign failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqnalign + CHECK_RESULT $? 0 0 "remove texlive-eqnalign failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqname.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqname.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5d4996631ef14451918019deb00ababc588f017 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqname.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqname | grep -v \.src | grep texlive-eqname + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqname" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqname + CHECK_RESULT $? 0 0 "install texlive-eqname failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqname + CHECK_RESULT $? 0 0 "remove texlive-eqname failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnarray-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnarray-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..45e78cd31e290f4b6d8735a98f9028394e1fe4ec --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnarray-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqnarray-doc | grep -v \.src | grep texlive-eqnarray-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqnarray-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqnarray-doc + CHECK_RESULT $? 0 0 "install texlive-eqnarray-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqnarray-doc + CHECK_RESULT $? 0 0 "remove texlive-eqnarray-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnarray.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnarray.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8f3f7ed968a1c98bc4910c312e72de272111086 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnarray.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqnarray | grep -v \.src | grep texlive-eqnarray + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqnarray" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqnarray + CHECK_RESULT $? 0 0 "install texlive-eqnarray failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqnarray + CHECK_RESULT $? 0 0 "remove texlive-eqnarray failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnnumwarn.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnnumwarn.sh new file mode 100644 index 0000000000000000000000000000000000000000..587cf5649f5e1161dd9f584877f10825ed904b2f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqnnumwarn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqnnumwarn | grep -v \.src | grep texlive-eqnnumwarn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqnnumwarn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqnnumwarn + CHECK_RESULT $? 0 0 "install texlive-eqnnumwarn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqnnumwarn + CHECK_RESULT $? 0 0 "remove texlive-eqnnumwarn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqparbox-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqparbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ea1a4686f95340cc878f4806884527b2e9e9d56 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqparbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqparbox-doc | grep -v \.src | grep texlive-eqparbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqparbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqparbox-doc + CHECK_RESULT $? 0 0 "install texlive-eqparbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqparbox-doc + CHECK_RESULT $? 0 0 "remove texlive-eqparbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqparbox.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqparbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..d004f626137234d696bfe19980a4411dc022dd65 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eqparbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqparbox | grep -v \.src | grep texlive-eqparbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqparbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqparbox + CHECK_RESULT $? 0 0 "install texlive-eqparbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqparbox + CHECK_RESULT $? 0 0 "remove texlive-eqparbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erdc-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erdc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e824a1c513fb2b12a113a98e33312beab5395d0e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erdc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-erdc-doc | grep -v \.src | grep texlive-erdc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-erdc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-erdc-doc + CHECK_RESULT $? 0 0 "install texlive-erdc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-erdc-doc + CHECK_RESULT $? 0 0 "remove texlive-erdc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erdc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erdc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2922c08ffd2b229e6ecdd28156cd4ed62b022e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erdc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-erdc | grep -v \.src | grep texlive-erdc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-erdc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-erdc + CHECK_RESULT $? 0 0 "install texlive-erdc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-erdc + CHECK_RESULT $? 0 0 "remove texlive-erdc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erewhon-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erewhon-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2eebbe1ba2abfea6d60d3b73183f9387ce4d6402 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erewhon-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-erewhon-doc | grep -v \.src | grep texlive-erewhon-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-erewhon-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-erewhon-doc + CHECK_RESULT $? 0 0 "install texlive-erewhon-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-erewhon-doc + CHECK_RESULT $? 0 0 "remove texlive-erewhon-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erewhon.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erewhon.sh new file mode 100644 index 0000000000000000000000000000000000000000..9101e2f72b6af1b5b2b9d922404acd7075bedec0 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erewhon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-erewhon | grep -v \.src | grep texlive-erewhon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-erewhon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-erewhon + CHECK_RESULT $? 0 0 "install texlive-erewhon failed" + SLEEP_WAIT 1 + dnf remove -y texlive-erewhon + CHECK_RESULT $? 0 0 "remove texlive-erewhon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-errata-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-errata-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cbbb2cf8666ac91bb8f860bbe7857c4bd6bc071 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-errata-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-errata-doc | grep -v \.src | grep texlive-errata-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-errata-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-errata-doc + CHECK_RESULT $? 0 0 "install texlive-errata-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-errata-doc + CHECK_RESULT $? 0 0 "remove texlive-errata-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-errata.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-errata.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2dd40570c26dd4bd5cf37e4e2bed9625d9cc6fc --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-errata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-errata | grep -v \.src | grep texlive-errata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-errata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-errata + CHECK_RESULT $? 0 0 "install texlive-errata failed" + SLEEP_WAIT 1 + dnf remove -y texlive-errata + CHECK_RESULT $? 0 0 "remove texlive-errata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erw-l3.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erw-l3.sh new file mode 100644 index 0000000000000000000000000000000000000000..618d30de3f3a7da1bf44a183047641049812ae23 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-erw-l3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-erw-l3 | grep -v \.src | grep texlive-erw-l3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-erw-l3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-erw-l3 + CHECK_RESULT $? 0 0 "install texlive-erw-l3 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-erw-l3 + CHECK_RESULT $? 0 0 "remove texlive-erw-l3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-es-tex-faq-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-es-tex-faq-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..59026c128eb52589dae5c1ef0d9fe9b83108af82 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-es-tex-faq-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-es-tex-faq-doc | grep -v \.src | grep texlive-es-tex-faq-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-es-tex-faq-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-es-tex-faq-doc + CHECK_RESULT $? 0 0 "install texlive-es-tex-faq-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-es-tex-faq-doc + CHECK_RESULT $? 0 0 "remove texlive-es-tex-faq-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esami-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esami-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..85e7bbb4dd7c266dbc5de45d3199c62d9adb124a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esami-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esami-doc | grep -v \.src | grep texlive-esami-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esami-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esami-doc + CHECK_RESULT $? 0 0 "install texlive-esami-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esami-doc + CHECK_RESULT $? 0 0 "remove texlive-esami-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esami.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esami.sh new file mode 100644 index 0000000000000000000000000000000000000000..733b3ceb192a5b6dc39e9b6869f7686643b46dca --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esami.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esami | grep -v \.src | grep texlive-esami + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esami" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esami + CHECK_RESULT $? 0 0 "install texlive-esami failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esami + CHECK_RESULT $? 0 0 "remove texlive-esami failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esdiff-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esdiff-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f668aaf171cd13a4335aeee6f1edc8616374f16a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esdiff-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esdiff-doc | grep -v \.src | grep texlive-esdiff-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esdiff-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esdiff-doc + CHECK_RESULT $? 0 0 "install texlive-esdiff-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esdiff-doc + CHECK_RESULT $? 0 0 "remove texlive-esdiff-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esdiff.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esdiff.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f441a67d6de60fcef6607fbb125cad7a502b944 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esdiff.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esdiff | grep -v \.src | grep texlive-esdiff + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esdiff" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esdiff + CHECK_RESULT $? 0 0 "install texlive-esdiff failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esdiff + CHECK_RESULT $? 0 0 "remove texlive-esdiff failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1bb94f91854144859b4b77595ccf7cd3e8b07fee --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esint-doc | grep -v \.src | grep texlive-esint-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esint-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esint-doc + CHECK_RESULT $? 0 0 "install texlive-esint-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esint-doc + CHECK_RESULT $? 0 0 "remove texlive-esint-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint-type1-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint-type1-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6df6c563b0ad7f3b7cbfff13a9059a570b139e1f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint-type1-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esint-type1-doc | grep -v \.src | grep texlive-esint-type1-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esint-type1-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esint-type1-doc + CHECK_RESULT $? 0 0 "install texlive-esint-type1-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esint-type1-doc + CHECK_RESULT $? 0 0 "remove texlive-esint-type1-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint-type1.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint-type1.sh new file mode 100644 index 0000000000000000000000000000000000000000..1acece0f23b18a66d161d71dfeed9717cd8badd8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint-type1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esint-type1 | grep -v \.src | grep texlive-esint-type1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esint-type1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esint-type1 + CHECK_RESULT $? 0 0 "install texlive-esint-type1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esint-type1 + CHECK_RESULT $? 0 0 "remove texlive-esint-type1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint.sh new file mode 100644 index 0000000000000000000000000000000000000000..709c330c39ac12883719a24bcd89860f4b95b3ee --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esint.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esint | grep -v \.src | grep texlive-esint + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esint" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esint + CHECK_RESULT $? 0 0 "install texlive-esint failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esint + CHECK_RESULT $? 0 0 "remove texlive-esint failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esk-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esk-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1179b5f916d54ac587dbbd3276e6606b564b5b26 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esk-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esk-doc | grep -v \.src | grep texlive-esk-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esk-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esk-doc + CHECK_RESULT $? 0 0 "install texlive-esk-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esk-doc + CHECK_RESULT $? 0 0 "remove texlive-esk-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esk.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esk.sh new file mode 100644 index 0000000000000000000000000000000000000000..efee35da9b5e33392733484d7311febad0cb61bc --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esk | grep -v \.src | grep texlive-esk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esk + CHECK_RESULT $? 0 0 "install texlive-esk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esk + CHECK_RESULT $? 0 0 "remove texlive-esk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskd-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a583cd64f92606116ec6495d789d75618bb6ba8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eskd-doc | grep -v \.src | grep texlive-eskd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eskd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eskd-doc + CHECK_RESULT $? 0 0 "install texlive-eskd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eskd-doc + CHECK_RESULT $? 0 0 "remove texlive-eskd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskd.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskd.sh new file mode 100644 index 0000000000000000000000000000000000000000..424c51020f98d9180c6d8485d95c424cd52caa6e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eskd | grep -v \.src | grep texlive-eskd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eskd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eskd + CHECK_RESULT $? 0 0 "install texlive-eskd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eskd + CHECK_RESULT $? 0 0 "remove texlive-eskd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskdx-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskdx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4354addf4a8242c37ee08fa60a5c1cdbd2272c8f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskdx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eskdx-doc | grep -v \.src | grep texlive-eskdx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eskdx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eskdx-doc + CHECK_RESULT $? 0 0 "install texlive-eskdx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eskdx-doc + CHECK_RESULT $? 0 0 "remove texlive-eskdx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskdx.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskdx.sh new file mode 100644 index 0000000000000000000000000000000000000000..e958e1165a164d1e5e20067d74da2146cd89ba5f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eskdx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eskdx | grep -v \.src | grep texlive-eskdx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eskdx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eskdx + CHECK_RESULT $? 0 0 "install texlive-eskdx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eskdx + CHECK_RESULT $? 0 0 "remove texlive-eskdx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eso-pic-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eso-pic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..67d25d83de38864f1f01f2ba730d99c814e2ce9e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eso-pic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eso-pic-doc | grep -v \.src | grep texlive-eso-pic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eso-pic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eso-pic-doc + CHECK_RESULT $? 0 0 "install texlive-eso-pic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eso-pic-doc + CHECK_RESULT $? 0 0 "remove texlive-eso-pic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eso-pic.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eso-pic.sh new file mode 100644 index 0000000000000000000000000000000000000000..4dfeb0767b349ebfc2337aef3a7b2447e6eca58e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eso-pic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eso-pic | grep -v \.src | grep texlive-eso-pic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eso-pic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eso-pic + CHECK_RESULT $? 0 0 "install texlive-eso-pic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eso-pic + CHECK_RESULT $? 0 0 "remove texlive-eso-pic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esrelation-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esrelation-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7349a52ee4edeecb896540c4b72836bd0936ea3e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esrelation-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esrelation-doc | grep -v \.src | grep texlive-esrelation-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esrelation-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esrelation-doc + CHECK_RESULT $? 0 0 "install texlive-esrelation-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esrelation-doc + CHECK_RESULT $? 0 0 "remove texlive-esrelation-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esrelation.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esrelation.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cbf71ea64132e1fd8d1609e8b4fca6fac428767 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esrelation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esrelation | grep -v \.src | grep texlive-esrelation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esrelation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esrelation + CHECK_RESULT $? 0 0 "install texlive-esrelation failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esrelation + CHECK_RESULT $? 0 0 "remove texlive-esrelation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esstix-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esstix-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2bdbbc9befc26d4c019752314d6187be1c962a0 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esstix-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esstix-doc | grep -v \.src | grep texlive-esstix-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esstix-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esstix-doc + CHECK_RESULT $? 0 0 "install texlive-esstix-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esstix-doc + CHECK_RESULT $? 0 0 "remove texlive-esstix-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esstix.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esstix.sh new file mode 100644 index 0000000000000000000000000000000000000000..1900e3df2b5ba9a0d9667a00c54be3d7cff7e08f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esstix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esstix | grep -v \.src | grep texlive-esstix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esstix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esstix + CHECK_RESULT $? 0 0 "install texlive-esstix failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esstix + CHECK_RESULT $? 0 0 "remove texlive-esstix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-estcpmm-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-estcpmm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c863a61ddd7d0beb3370a56cf9b141fe7d3eb06f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-estcpmm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-estcpmm-doc | grep -v \.src | grep texlive-estcpmm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-estcpmm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-estcpmm-doc + CHECK_RESULT $? 0 0 "install texlive-estcpmm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-estcpmm-doc + CHECK_RESULT $? 0 0 "remove texlive-estcpmm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-estcpmm.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-estcpmm.sh new file mode 100644 index 0000000000000000000000000000000000000000..d43e2227914111275673fae93584d2ca4bc867d1 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-estcpmm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-estcpmm | grep -v \.src | grep texlive-estcpmm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-estcpmm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-estcpmm + CHECK_RESULT $? 0 0 "install texlive-estcpmm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-estcpmm + CHECK_RESULT $? 0 0 "remove texlive-estcpmm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esvect-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esvect-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ddd9899143fdc4b8fb686015da265d9de14a45a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esvect-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esvect-doc | grep -v \.src | grep texlive-esvect-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esvect-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esvect-doc + CHECK_RESULT $? 0 0 "install texlive-esvect-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esvect-doc + CHECK_RESULT $? 0 0 "remove texlive-esvect-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esvect.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esvect.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f2f0a4b61fc510e9e0fa73f3aa4540a536af7be --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-esvect.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esvect | grep -v \.src | grep texlive-esvect + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esvect" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esvect + CHECK_RESULT $? 0 0 "install texlive-esvect failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esvect + CHECK_RESULT $? 0 0 "remove texlive-esvect failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etaremune-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etaremune-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7e9605b69758830e8bfb4fbb905229bbe26c170 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etaremune-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etaremune-doc | grep -v \.src | grep texlive-etaremune-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etaremune-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etaremune-doc + CHECK_RESULT $? 0 0 "install texlive-etaremune-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etaremune-doc + CHECK_RESULT $? 0 0 "remove texlive-etaremune-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etaremune.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etaremune.sh new file mode 100644 index 0000000000000000000000000000000000000000..e02b2fce51a01c557252aed908652b5936ee53f9 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etaremune.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etaremune | grep -v \.src | grep texlive-etaremune + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etaremune" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etaremune + CHECK_RESULT $? 0 0 "install texlive-etaremune failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etaremune + CHECK_RESULT $? 0 0 "remove texlive-etaremune failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etdipa-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etdipa-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b642775d5f8f2187f3e5297cfeb3f4251a52d664 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etdipa-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etdipa-doc | grep -v \.src | grep texlive-etdipa-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etdipa-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etdipa-doc + CHECK_RESULT $? 0 0 "install texlive-etdipa-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etdipa-doc + CHECK_RESULT $? 0 0 "remove texlive-etdipa-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..487d34f2a6036699ec991a5d21c8edc20297344f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etex-doc | grep -v \.src | grep texlive-etex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etex-doc + CHECK_RESULT $? 0 0 "install texlive-etex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etex-doc + CHECK_RESULT $? 0 0 "remove texlive-etex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex-pkg-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex-pkg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d90f16589fce9825c675e2f152e20b403394a3b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex-pkg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etex-pkg-doc | grep -v \.src | grep texlive-etex-pkg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etex-pkg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etex-pkg-doc + CHECK_RESULT $? 0 0 "install texlive-etex-pkg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etex-pkg-doc + CHECK_RESULT $? 0 0 "remove texlive-etex-pkg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex-pkg.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex-pkg.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f01d5d99eafc04750dcdb40235547f705d60364 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex-pkg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etex-pkg | grep -v \.src | grep texlive-etex-pkg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etex-pkg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etex-pkg + CHECK_RESULT $? 0 0 "install texlive-etex-pkg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etex-pkg + CHECK_RESULT $? 0 0 "remove texlive-etex-pkg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex.sh new file mode 100644 index 0000000000000000000000000000000000000000..6511fa4ba75ca00735b4bd4ed4f0993cef5c28ff --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etex | grep -v \.src | grep texlive-etex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etex + CHECK_RESULT $? 0 0 "install texlive-etex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etex + CHECK_RESULT $? 0 0 "remove texlive-etex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etextools-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etextools-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f850dbfc1c365d29dd5886f1c80968a2a9a42975 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etextools-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etextools-doc | grep -v \.src | grep texlive-etextools-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etextools-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etextools-doc + CHECK_RESULT $? 0 0 "install texlive-etextools-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etextools-doc + CHECK_RESULT $? 0 0 "remove texlive-etextools-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etextools.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etextools.sh new file mode 100644 index 0000000000000000000000000000000000000000..330b40f73ed42391339f50779892f42545bc0759 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etextools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etextools | grep -v \.src | grep texlive-etextools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etextools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etextools + CHECK_RESULT $? 0 0 "install texlive-etextools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etextools + CHECK_RESULT $? 0 0 "remove texlive-etextools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..86a6eb5908e7525739761655a902d68fb15a49df --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ethiop-doc | grep -v \.src | grep texlive-ethiop-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ethiop-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ethiop-doc + CHECK_RESULT $? 0 0 "install texlive-ethiop-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ethiop-doc + CHECK_RESULT $? 0 0 "remove texlive-ethiop-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop-t1-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop-t1-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7aad97186379fd88887991cd7e09dfc0bab79ebe --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop-t1-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ethiop-t1-doc | grep -v \.src | grep texlive-ethiop-t1-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ethiop-t1-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ethiop-t1-doc + CHECK_RESULT $? 0 0 "install texlive-ethiop-t1-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ethiop-t1-doc + CHECK_RESULT $? 0 0 "remove texlive-ethiop-t1-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop-t1.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop-t1.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d42ff78ed95dccf97cc404ba1a5351d68afaf14 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop-t1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ethiop-t1 | grep -v \.src | grep texlive-ethiop-t1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ethiop-t1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ethiop-t1 + CHECK_RESULT $? 0 0 "install texlive-ethiop-t1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ethiop-t1 + CHECK_RESULT $? 0 0 "remove texlive-ethiop-t1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop.sh new file mode 100644 index 0000000000000000000000000000000000000000..c70d3144d72d47c715be881a0d331bdff98d44a1 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-ethiop.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ethiop | grep -v \.src | grep texlive-ethiop + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ethiop" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ethiop + CHECK_RESULT $? 0 0 "install texlive-ethiop failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ethiop + CHECK_RESULT $? 0 0 "remove texlive-ethiop failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoc-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..19e79215d7330517faa1be7f03a3c9efc15042f2 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etoc-doc | grep -v \.src | grep texlive-etoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etoc-doc + CHECK_RESULT $? 0 0 "install texlive-etoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etoc-doc + CHECK_RESULT $? 0 0 "remove texlive-etoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd04cb158c918fe15a8515c17d9fe2c91ce61b55 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etoc | grep -v \.src | grep texlive-etoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etoc + CHECK_RESULT $? 0 0 "install texlive-etoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etoc + CHECK_RESULT $? 0 0 "remove texlive-etoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoolbox-de-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoolbox-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..82d38e97eedabee86dcef815ba0986d8f14f296b --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoolbox-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etoolbox-de-doc | grep -v \.src | grep texlive-etoolbox-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etoolbox-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etoolbox-de-doc + CHECK_RESULT $? 0 0 "install texlive-etoolbox-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etoolbox-de-doc + CHECK_RESULT $? 0 0 "remove texlive-etoolbox-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoolbox-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoolbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a83b2a27c349a9ac778bd77bdcc733a592a42411 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoolbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etoolbox-doc | grep -v \.src | grep texlive-etoolbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etoolbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etoolbox-doc + CHECK_RESULT $? 0 0 "install texlive-etoolbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etoolbox-doc + CHECK_RESULT $? 0 0 "remove texlive-etoolbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoolbox.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoolbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..a37eeadf03290d473c5824b04ef50cf4b24eccab --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etoolbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etoolbox | grep -v \.src | grep texlive-etoolbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etoolbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etoolbox + CHECK_RESULT $? 0 0 "install texlive-etoolbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etoolbox + CHECK_RESULT $? 0 0 "remove texlive-etoolbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etsvthor.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etsvthor.sh new file mode 100644 index 0000000000000000000000000000000000000000..3520b8a470c9009a696006e78813a4dda78406a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-etsvthor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etsvthor | grep -v \.src | grep texlive-etsvthor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etsvthor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etsvthor + CHECK_RESULT $? 0 0 "install texlive-etsvthor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etsvthor + CHECK_RESULT $? 0 0 "remove texlive-etsvthor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euenc-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euenc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d145a7ce4bb98e0b9525b5edc6441a18a8ddb30a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euenc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-euenc-doc | grep -v \.src | grep texlive-euenc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-euenc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-euenc-doc + CHECK_RESULT $? 0 0 "install texlive-euenc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-euenc-doc + CHECK_RESULT $? 0 0 "remove texlive-euenc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euenc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euenc.sh new file mode 100644 index 0000000000000000000000000000000000000000..002b816cfe50da9c9d688462594ea01a6a8a42d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euenc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-euenc | grep -v \.src | grep texlive-euenc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-euenc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-euenc + CHECK_RESULT $? 0 0 "install texlive-euenc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-euenc + CHECK_RESULT $? 0 0 "remove texlive-euenc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eukdate-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eukdate-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..209796739556bb757b5954f5f333ab2983e80a31 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eukdate-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eukdate-doc | grep -v \.src | grep texlive-eukdate-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eukdate-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eukdate-doc + CHECK_RESULT $? 0 0 "install texlive-eukdate-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eukdate-doc + CHECK_RESULT $? 0 0 "remove texlive-eukdate-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eukdate.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eukdate.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a12042ff7f7dd1a3cc8b6a299c8e7abcb92a1c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eukdate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eukdate | grep -v \.src | grep texlive-eukdate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eukdate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eukdate + CHECK_RESULT $? 0 0 "install texlive-eukdate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eukdate + CHECK_RESULT $? 0 0 "remove texlive-eukdate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euler-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euler-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a42bd739aa81c0ae69824b197bd2fc01884612af --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euler-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-euler-doc | grep -v \.src | grep texlive-euler-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-euler-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-euler-doc + CHECK_RESULT $? 0 0 "install texlive-euler-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-euler-doc + CHECK_RESULT $? 0 0 "remove texlive-euler-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euler.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euler.sh new file mode 100644 index 0000000000000000000000000000000000000000..c127fb136a4afc8ced4a114b89dcc5221d47e244 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euler.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-euler | grep -v \.src | grep texlive-euler + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-euler" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-euler + CHECK_RESULT $? 0 0 "install texlive-euler failed" + SLEEP_WAIT 1 + dnf remove -y texlive-euler + CHECK_RESULT $? 0 0 "remove texlive-euler failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eulerpx.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eulerpx.sh new file mode 100644 index 0000000000000000000000000000000000000000..f90f20970f7124c00f8fe41f279944c01a24701a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eulerpx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eulerpx | grep -v \.src | grep texlive-eulerpx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eulerpx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eulerpx + CHECK_RESULT $? 0 0 "install texlive-eulerpx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eulerpx + CHECK_RESULT $? 0 0 "remove texlive-eulerpx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eulervm-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eulervm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a8af0ffc17b365a3d5392e439c15e86651a574e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eulervm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eulervm-doc | grep -v \.src | grep texlive-eulervm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eulervm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eulervm-doc + CHECK_RESULT $? 0 0 "install texlive-eulervm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eulervm-doc + CHECK_RESULT $? 0 0 "remove texlive-eulervm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eulervm.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eulervm.sh new file mode 100644 index 0000000000000000000000000000000000000000..f690dd09202e742e94ae449305bba5ecce7bfe96 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eulervm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eulervm | grep -v \.src | grep texlive-eulervm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eulervm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eulervm + CHECK_RESULT $? 0 0 "install texlive-eulervm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eulervm + CHECK_RESULT $? 0 0 "remove texlive-eulervm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euro-ce.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euro-ce.sh new file mode 100644 index 0000000000000000000000000000000000000000..650e10001276aba8edd5c559ed834d4ec61c9f6e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euro-ce.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-euro-ce | grep -v \.src | grep texlive-euro-ce + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-euro-ce" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-euro-ce + CHECK_RESULT $? 0 0 "install texlive-euro-ce failed" + SLEEP_WAIT 1 + dnf remove -y texlive-euro-ce + CHECK_RESULT $? 0 0 "remove texlive-euro-ce failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euro-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euro-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcd3c04a854f9e7276d038f828c5460cc62cae79 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euro-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-euro-doc | grep -v \.src | grep texlive-euro-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-euro-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-euro-doc + CHECK_RESULT $? 0 0 "install texlive-euro-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-euro-doc + CHECK_RESULT $? 0 0 "remove texlive-euro-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euro.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euro.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b158ad5c0dd10f972c06248274c36d47a861562 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-euro | grep -v \.src | grep texlive-euro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-euro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-euro + CHECK_RESULT $? 0 0 "install texlive-euro failed" + SLEEP_WAIT 1 + dnf remove -y texlive-euro + CHECK_RESULT $? 0 0 "remove texlive-euro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europasscv-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europasscv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dfcfba6951d46810617b674a6c14901e565d68b --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europasscv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-europasscv-doc | grep -v \.src | grep texlive-europasscv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-europasscv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-europasscv-doc + CHECK_RESULT $? 0 0 "install texlive-europasscv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-europasscv-doc + CHECK_RESULT $? 0 0 "remove texlive-europasscv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europasscv.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europasscv.sh new file mode 100644 index 0000000000000000000000000000000000000000..db87643ac53cc97bba3671aad94bb3869bc1b90d --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europasscv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-europasscv | grep -v \.src | grep texlive-europasscv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-europasscv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-europasscv + CHECK_RESULT $? 0 0 "install texlive-europasscv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-europasscv + CHECK_RESULT $? 0 0 "remove texlive-europasscv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europecv-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europecv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4aa7b130fb79c8d24722550fd9219d9fff9a45d1 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europecv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-europecv-doc | grep -v \.src | grep texlive-europecv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-europecv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-europecv-doc + CHECK_RESULT $? 0 0 "install texlive-europecv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-europecv-doc + CHECK_RESULT $? 0 0 "remove texlive-europecv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europecv.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europecv.sh new file mode 100644 index 0000000000000000000000000000000000000000..676f31714ec277191a5ea3b1fe4975dbbdfcc637 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-europecv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-europecv | grep -v \.src | grep texlive-europecv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-europecv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-europecv + CHECK_RESULT $? 0 0 "install texlive-europecv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-europecv + CHECK_RESULT $? 0 0 "remove texlive-europecv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eurosym-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eurosym-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4af3adc8ff0e81f441b78d506a026bafd9bfca6 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eurosym-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eurosym-doc | grep -v \.src | grep texlive-eurosym-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eurosym-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eurosym-doc + CHECK_RESULT $? 0 0 "install texlive-eurosym-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eurosym-doc + CHECK_RESULT $? 0 0 "remove texlive-eurosym-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eurosym.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eurosym.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dbf21b3a529084b5e8ba5e2b766f96c70e31225 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-eurosym.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eurosym | grep -v \.src | grep texlive-eurosym + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eurosym" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eurosym + CHECK_RESULT $? 0 0 "install texlive-eurosym failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eurosym + CHECK_RESULT $? 0 0 "remove texlive-eurosym failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euxm.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euxm.sh new file mode 100644 index 0000000000000000000000000000000000000000..b45541a88083e7a48483336649ef6b81794e3c2b --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-euxm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-euxm | grep -v \.src | grep texlive-euxm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-euxm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-euxm + CHECK_RESULT $? 0 0 "install texlive-euxm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-euxm + CHECK_RESULT $? 0 0 "remove texlive-euxm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everyhook-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everyhook-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..19e8c6fc2506514768cd12e060a3f00305b26f05 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everyhook-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-everyhook-doc | grep -v \.src | grep texlive-everyhook-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-everyhook-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-everyhook-doc + CHECK_RESULT $? 0 0 "install texlive-everyhook-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-everyhook-doc + CHECK_RESULT $? 0 0 "remove texlive-everyhook-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everyhook.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everyhook.sh new file mode 100644 index 0000000000000000000000000000000000000000..1261d5162c6a6651697b6912fce0ed9b05986b49 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everyhook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-everyhook | grep -v \.src | grep texlive-everyhook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-everyhook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-everyhook + CHECK_RESULT $? 0 0 "install texlive-everyhook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-everyhook + CHECK_RESULT $? 0 0 "remove texlive-everyhook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everypage-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everypage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..86aee92118a4db968d584ad294b03ddd53213964 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everypage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-everypage-doc | grep -v \.src | grep texlive-everypage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-everypage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-everypage-doc + CHECK_RESULT $? 0 0 "install texlive-everypage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-everypage-doc + CHECK_RESULT $? 0 0 "remove texlive-everypage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everypage.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everypage.sh new file mode 100644 index 0000000000000000000000000000000000000000..4215b2a631ff16891e2044f55b64816b1db855d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-everypage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-everypage | grep -v \.src | grep texlive-everypage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-everypage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-everypage + CHECK_RESULT $? 0 0 "install texlive-everypage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-everypage + CHECK_RESULT $? 0 0 "remove texlive-everypage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b4544c76d8bf82213bf38f6f80e1be178726c3b --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exam-doc | grep -v \.src | grep texlive-exam-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exam-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exam-doc + CHECK_RESULT $? 0 0 "install texlive-exam-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exam-doc + CHECK_RESULT $? 0 0 "remove texlive-exam-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam-n-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam-n-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..74fa29452c0aeff54cfb8607c809fa01ac6d6432 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam-n-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exam-n-doc | grep -v \.src | grep texlive-exam-n-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exam-n-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exam-n-doc + CHECK_RESULT $? 0 0 "install texlive-exam-n-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exam-n-doc + CHECK_RESULT $? 0 0 "remove texlive-exam-n-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam-n.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam-n.sh new file mode 100644 index 0000000000000000000000000000000000000000..10525129d437140c97b72f8cfd177633b415b0c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam-n.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exam-n | grep -v \.src | grep texlive-exam-n + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exam-n" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exam-n + CHECK_RESULT $? 0 0 "install texlive-exam-n failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exam-n + CHECK_RESULT $? 0 0 "remove texlive-exam-n failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam.sh new file mode 100644 index 0000000000000000000000000000000000000000..53401180338938a23c06cdecb3435f690bd06323 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exam.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exam | grep -v \.src | grep texlive-exam + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exam" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exam + CHECK_RESULT $? 0 0 "install texlive-exam failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exam + CHECK_RESULT $? 0 0 "remove texlive-exam failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examdesign-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examdesign-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d346305bef9c07f622164bc9bcc7078ede603c86 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examdesign-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-examdesign-doc | grep -v \.src | grep texlive-examdesign-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-examdesign-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-examdesign-doc + CHECK_RESULT $? 0 0 "install texlive-examdesign-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-examdesign-doc + CHECK_RESULT $? 0 0 "remove texlive-examdesign-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examdesign.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examdesign.sh new file mode 100644 index 0000000000000000000000000000000000000000..9db52da38a62aa0076cddd0ce22195f2b5e36937 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examdesign.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-examdesign | grep -v \.src | grep texlive-examdesign + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-examdesign" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-examdesign + CHECK_RESULT $? 0 0 "install texlive-examdesign failed" + SLEEP_WAIT 1 + dnf remove -y texlive-examdesign + CHECK_RESULT $? 0 0 "remove texlive-examdesign failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-example.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-example.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ddc76488809b789019082a590348b259d1840e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-example.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-example | grep -v \.src | grep texlive-example + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-example" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-example + CHECK_RESULT $? 0 0 "install texlive-example failed" + SLEEP_WAIT 1 + dnf remove -y texlive-example + CHECK_RESULT $? 0 0 "remove texlive-example failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examplep-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examplep-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8433c484c521256624d72345f2336a4953da917a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examplep-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-examplep-doc | grep -v \.src | grep texlive-examplep-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-examplep-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-examplep-doc + CHECK_RESULT $? 0 0 "install texlive-examplep-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-examplep-doc + CHECK_RESULT $? 0 0 "remove texlive-examplep-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examplep.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examplep.sh new file mode 100644 index 0000000000000000000000000000000000000000..c31cb4ddb8316a2725454c1b2461d53896a73830 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-examplep.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-examplep | grep -v \.src | grep texlive-examplep + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-examplep" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-examplep + CHECK_RESULT $? 0 0 "install texlive-examplep failed" + SLEEP_WAIT 1 + dnf remove -y texlive-examplep + CHECK_RESULT $? 0 0 "remove texlive-examplep failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-excludeonly-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-excludeonly-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..82dc0e917974b98b63d197bd9d7dd0657bfca089 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-excludeonly-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-excludeonly-doc | grep -v \.src | grep texlive-excludeonly-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-excludeonly-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-excludeonly-doc + CHECK_RESULT $? 0 0 "install texlive-excludeonly-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-excludeonly-doc + CHECK_RESULT $? 0 0 "remove texlive-excludeonly-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-excludeonly.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-excludeonly.sh new file mode 100644 index 0000000000000000000000000000000000000000..1876e5f12143a250c79b0f73acd06bb5207b9bf8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-excludeonly.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-excludeonly | grep -v \.src | grep texlive-excludeonly + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-excludeonly" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-excludeonly + CHECK_RESULT $? 0 0 "install texlive-excludeonly failed" + SLEEP_WAIT 1 + dnf remove -y texlive-excludeonly + CHECK_RESULT $? 0 0 "remove texlive-excludeonly failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercise-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercise-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..93f95e9fe01131d4deb6064fa1ecedf3b607cd71 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercise-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exercise-doc | grep -v \.src | grep texlive-exercise-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exercise-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exercise-doc + CHECK_RESULT $? 0 0 "install texlive-exercise-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exercise-doc + CHECK_RESULT $? 0 0 "remove texlive-exercise-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercise.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercise.sh new file mode 100644 index 0000000000000000000000000000000000000000..800cc779f7288dfa432bab389dbc3debf5c65347 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercise.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exercise | grep -v \.src | grep texlive-exercise + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exercise" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exercise + CHECK_RESULT $? 0 0 "install texlive-exercise failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exercise + CHECK_RESULT $? 0 0 "remove texlive-exercise failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercisebank.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercisebank.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4b5ac929b0bd77623e2646651047fa6dcd6d0fd --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercisebank.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exercisebank | grep -v \.src | grep texlive-exercisebank + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exercisebank" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exercisebank + CHECK_RESULT $? 0 0 "install texlive-exercisebank failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exercisebank + CHECK_RESULT $? 0 0 "remove texlive-exercisebank failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercises-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercises-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d3efd4b294bf7205a2225e8f5dde9c753259b7e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercises-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exercises-doc | grep -v \.src | grep texlive-exercises-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exercises-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exercises-doc + CHECK_RESULT $? 0 0 "install texlive-exercises-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exercises-doc + CHECK_RESULT $? 0 0 "remove texlive-exercises-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercises.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercises.sh new file mode 100644 index 0000000000000000000000000000000000000000..bede2a02b5afcf7d02ac95ee45ff0711b7a6007c --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exercises.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exercises | grep -v \.src | grep texlive-exercises + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exercises" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exercises + CHECK_RESULT $? 0 0 "install texlive-exercises failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exercises + CHECK_RESULT $? 0 0 "remove texlive-exercises failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exp-testopt-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exp-testopt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0749f774c57ebaa7b8181f618b2080a0642c6960 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exp-testopt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exp-testopt-doc | grep -v \.src | grep texlive-exp-testopt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exp-testopt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exp-testopt-doc + CHECK_RESULT $? 0 0 "install texlive-exp-testopt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exp-testopt-doc + CHECK_RESULT $? 0 0 "remove texlive-exp-testopt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exp-testopt.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exp-testopt.sh new file mode 100644 index 0000000000000000000000000000000000000000..eebc886b61df820d75c6662790a6c1862925ab5a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exp-testopt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exp-testopt | grep -v \.src | grep texlive-exp-testopt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exp-testopt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exp-testopt + CHECK_RESULT $? 0 0 "install texlive-exp-testopt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exp-testopt + CHECK_RESULT $? 0 0 "remove texlive-exp-testopt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expdlist-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expdlist-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..320bc5506e40757a73d680e7ad1469f3d60cb31e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expdlist-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expdlist-doc | grep -v \.src | grep texlive-expdlist-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expdlist-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expdlist-doc + CHECK_RESULT $? 0 0 "install texlive-expdlist-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expdlist-doc + CHECK_RESULT $? 0 0 "remove texlive-expdlist-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expdlist.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expdlist.sh new file mode 100644 index 0000000000000000000000000000000000000000..523eb2d26999e4a2ddb54a140a6c43f0be47a731 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expdlist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expdlist | grep -v \.src | grep texlive-expdlist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expdlist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expdlist + CHECK_RESULT $? 0 0 "install texlive-expdlist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expdlist + CHECK_RESULT $? 0 0 "remove texlive-expdlist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expex-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..51ae7cd070e3439c0e95e003332c0842ba69e919 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expex-doc | grep -v \.src | grep texlive-expex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expex-doc + CHECK_RESULT $? 0 0 "install texlive-expex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expex-doc + CHECK_RESULT $? 0 0 "remove texlive-expex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expex.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expex.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef7f588de2cbe7288ef6a7f49a72515b59604c60 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expex | grep -v \.src | grep texlive-expex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expex + CHECK_RESULT $? 0 0 "install texlive-expex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expex + CHECK_RESULT $? 0 0 "remove texlive-expex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-export-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-export-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..215ade1fcb31a11220b63bcc5dc62b0724ab4c64 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-export-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-export-doc | grep -v \.src | grep texlive-export-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-export-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-export-doc + CHECK_RESULT $? 0 0 "install texlive-export-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-export-doc + CHECK_RESULT $? 0 0 "remove texlive-export-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-export.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-export.sh new file mode 100644 index 0000000000000000000000000000000000000000..1147f7c91a5936e8ca43d19de02cded00c9763fd --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-export.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-export | grep -v \.src | grep texlive-export + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-export" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-export + CHECK_RESULT $? 0 0 "install texlive-export failed" + SLEEP_WAIT 1 + dnf remove -y texlive-export + CHECK_RESULT $? 0 0 "remove texlive-export failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expressg-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expressg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3c7c24545aa83cae7d5d15c5d51c596c042f20a --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expressg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expressg-doc | grep -v \.src | grep texlive-expressg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expressg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expressg-doc + CHECK_RESULT $? 0 0 "install texlive-expressg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expressg-doc + CHECK_RESULT $? 0 0 "remove texlive-expressg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expressg.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expressg.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5a25372f75b9848a3f7bd27b22825e743ccdf4b --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-expressg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expressg | grep -v \.src | grep texlive-expressg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expressg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expressg + CHECK_RESULT $? 0 0 "install texlive-expressg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expressg + CHECK_RESULT $? 0 0 "remove texlive-expressg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsheets-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsheets-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6faddcdc86c4c30c68a4dbf7ff73cc1450f868e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsheets-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exsheets-doc | grep -v \.src | grep texlive-exsheets-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exsheets-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exsheets-doc + CHECK_RESULT $? 0 0 "install texlive-exsheets-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exsheets-doc + CHECK_RESULT $? 0 0 "remove texlive-exsheets-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsheets.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsheets.sh new file mode 100644 index 0000000000000000000000000000000000000000..ffb8091ee322cdaa0c38924b799418f9730ebc9e --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsheets.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exsheets | grep -v \.src | grep texlive-exsheets + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exsheets" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exsheets + CHECK_RESULT $? 0 0 "install texlive-exsheets failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exsheets + CHECK_RESULT $? 0 0 "remove texlive-exsheets failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsol-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsol-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5645b2025eece5faa8c0c9dabbcfe0cbeb6cb16 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsol-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exsol-doc | grep -v \.src | grep texlive-exsol-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exsol-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exsol-doc + CHECK_RESULT $? 0 0 "install texlive-exsol-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exsol-doc + CHECK_RESULT $? 0 0 "remove texlive-exsol-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsol.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsol.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c7117ae972b22cc99efa2fe486946d95caf928f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exsol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exsol | grep -v \.src | grep texlive-exsol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exsol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exsol + CHECK_RESULT $? 0 0 "install texlive-exsol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exsol + CHECK_RESULT $? 0 0 "remove texlive-exsol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extarrows-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extarrows-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9fd8d032ef5576f576e283fbe059b4723954bd7 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extarrows-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-extarrows-doc | grep -v \.src | grep texlive-extarrows-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-extarrows-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-extarrows-doc + CHECK_RESULT $? 0 0 "install texlive-extarrows-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-extarrows-doc + CHECK_RESULT $? 0 0 "remove texlive-extarrows-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extarrows.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extarrows.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c1c1543715681afc8131a2ebbde948a7ceebf0f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extarrows.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-extarrows | grep -v \.src | grep texlive-extarrows + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-extarrows" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-extarrows + CHECK_RESULT $? 0 0 "install texlive-extarrows failed" + SLEEP_WAIT 1 + dnf remove -y texlive-extarrows + CHECK_RESULT $? 0 0 "remove texlive-extarrows failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exteps-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exteps-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..64911c67363d0fff28fb5d4d908d1ae6b5f4b4d0 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exteps-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exteps-doc | grep -v \.src | grep texlive-exteps-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exteps-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exteps-doc + CHECK_RESULT $? 0 0 "install texlive-exteps-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exteps-doc + CHECK_RESULT $? 0 0 "remove texlive-exteps-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exteps.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exteps.sh new file mode 100644 index 0000000000000000000000000000000000000000..12a990265841e6e569b876fa58fb1b3d46626dd3 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-exteps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exteps | grep -v \.src | grep texlive-exteps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exteps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exteps + CHECK_RESULT $? 0 0 "install texlive-exteps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exteps + CHECK_RESULT $? 0 0 "remove texlive-exteps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extpfeil-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extpfeil-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6669fdad4211fc48e678efbd84bf4a36c4032dba --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extpfeil-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-extpfeil-doc | grep -v \.src | grep texlive-extpfeil-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-extpfeil-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-extpfeil-doc + CHECK_RESULT $? 0 0 "install texlive-extpfeil-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-extpfeil-doc + CHECK_RESULT $? 0 0 "remove texlive-extpfeil-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extpfeil.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extpfeil.sh new file mode 100644 index 0000000000000000000000000000000000000000..718b2306651eff28d35bb9af32469ca14e94effa --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extpfeil.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-extpfeil | grep -v \.src | grep texlive-extpfeil + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-extpfeil" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-extpfeil + CHECK_RESULT $? 0 0 "install texlive-extpfeil failed" + SLEEP_WAIT 1 + dnf remove -y texlive-extpfeil + CHECK_RESULT $? 0 0 "remove texlive-extpfeil failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extract-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extract-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..16f6af5d55c5e4604f02e6bd3b3710c120d6dcc5 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extract-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-extract-doc | grep -v \.src | grep texlive-extract-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-extract-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-extract-doc + CHECK_RESULT $? 0 0 "install texlive-extract-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-extract-doc + CHECK_RESULT $? 0 0 "remove texlive-extract-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extract.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extract.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4cf0cf094f6277b44dd4f78edb85080ca891ab5 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extract.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-extract | grep -v \.src | grep texlive-extract + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-extract" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-extract + CHECK_RESULT $? 0 0 "install texlive-extract failed" + SLEEP_WAIT 1 + dnf remove -y texlive-extract + CHECK_RESULT $? 0 0 "remove texlive-extract failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extsizes-doc.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extsizes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c85b08e5df5ebab07b7885e571034cb9c9e203f --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extsizes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-extsizes-doc | grep -v \.src | grep texlive-extsizes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-extsizes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-extsizes-doc + CHECK_RESULT $? 0 0 "install texlive-extsizes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-extsizes-doc + CHECK_RESULT $? 0 0 "remove texlive-extsizes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extsizes.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extsizes.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f646c80e34fefb538f3e89e1d2ef2a72a7bccc8 --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-extsizes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-extsizes | grep -v \.src | grep texlive-extsizes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-extsizes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-extsizes + CHECK_RESULT $? 0 0 "install texlive-extsizes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-extsizes + CHECK_RESULT $? 0 0 "remove texlive-extsizes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-split-h.sh b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-split-h.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cd4823a96d7c7702284dc1c30c425b0872a06fc --- /dev/null +++ b/testcases/cli-test/texlive-split-h/oe_test_texlive-split-h_install_and_remove_texlive-split-h.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-h +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-h | grep -v \.src | grep texlive-split-h + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-h" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-h + CHECK_RESULT $? 0 0 "install texlive-split-h failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-h + CHECK_RESULT $? 0 0 "remove texlive-split-h failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-FAQ-en-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-FAQ-en-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8844394b87669975fab5e70b3ebfe8fcaa583f8a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-FAQ-en-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-FAQ-en-doc | grep -v \.src | grep texlive-FAQ-en-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-FAQ-en-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-FAQ-en-doc + CHECK_RESULT $? 0 0 "install texlive-FAQ-en-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-FAQ-en-doc + CHECK_RESULT $? 0 0 "remove texlive-FAQ-en-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facsimile-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facsimile-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d0843df78b6a31080a91c6e10ec51fcdc30bb1f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facsimile-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-facsimile-doc | grep -v \.src | grep texlive-facsimile-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-facsimile-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-facsimile-doc + CHECK_RESULT $? 0 0 "install texlive-facsimile-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-facsimile-doc + CHECK_RESULT $? 0 0 "remove texlive-facsimile-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facsimile.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facsimile.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb6bf5c6dcc6d8ac0f42b4bc09f4a73316984951 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facsimile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-facsimile | grep -v \.src | grep texlive-facsimile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-facsimile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-facsimile + CHECK_RESULT $? 0 0 "install texlive-facsimile failed" + SLEEP_WAIT 1 + dnf remove -y texlive-facsimile + CHECK_RESULT $? 0 0 "remove texlive-facsimile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-factura-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-factura-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b39679f29f0ab3b8447173bac7f4005d0ddb96e7 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-factura-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-factura-doc | grep -v \.src | grep texlive-factura-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-factura-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-factura-doc + CHECK_RESULT $? 0 0 "install texlive-factura-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-factura-doc + CHECK_RESULT $? 0 0 "remove texlive-factura-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-factura.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-factura.sh new file mode 100644 index 0000000000000000000000000000000000000000..0dfcb9f2942695af0b9a17e39401cc7533a99b74 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-factura.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-factura | grep -v \.src | grep texlive-factura + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-factura" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-factura + CHECK_RESULT $? 0 0 "install texlive-factura failed" + SLEEP_WAIT 1 + dnf remove -y texlive-factura + CHECK_RESULT $? 0 0 "remove texlive-factura failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facture-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facture-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..922c6fa17c9cd12a02b5340c9200005e111f2d8e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facture-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-facture-doc | grep -v \.src | grep texlive-facture-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-facture-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-facture-doc + CHECK_RESULT $? 0 0 "install texlive-facture-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-facture-doc + CHECK_RESULT $? 0 0 "remove texlive-facture-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facture.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facture.sh new file mode 100644 index 0000000000000000000000000000000000000000..821470606aa3a208945af0e7e4bde09f30a1fe29 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-facture.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-facture | grep -v \.src | grep texlive-facture + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-facture" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-facture + CHECK_RESULT $? 0 0 "install texlive-facture failed" + SLEEP_WAIT 1 + dnf remove -y texlive-facture + CHECK_RESULT $? 0 0 "remove texlive-facture failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-faktor-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-faktor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..90fc9352c9b86bdafb3be6c62c7c48fdf2c97152 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-faktor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-faktor-doc | grep -v \.src | grep texlive-faktor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-faktor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-faktor-doc + CHECK_RESULT $? 0 0 "install texlive-faktor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-faktor-doc + CHECK_RESULT $? 0 0 "remove texlive-faktor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-faktor.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-faktor.sh new file mode 100644 index 0000000000000000000000000000000000000000..eddefb739f68a307f8cacbb019d32d838fdc64d0 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-faktor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-faktor | grep -v \.src | grep texlive-faktor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-faktor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-faktor + CHECK_RESULT $? 0 0 "install texlive-faktor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-faktor + CHECK_RESULT $? 0 0 "remove texlive-faktor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancybox-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancybox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7785d3c4ae697d624c55b28ff6c5d4feb9a34c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancybox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancybox-doc | grep -v \.src | grep texlive-fancybox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancybox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancybox-doc + CHECK_RESULT $? 0 0 "install texlive-fancybox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancybox-doc + CHECK_RESULT $? 0 0 "remove texlive-fancybox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancybox.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancybox.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb87fb176b67897743ad1ebcb4e24e705c1f602a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancybox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancybox | grep -v \.src | grep texlive-fancybox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancybox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancybox + CHECK_RESULT $? 0 0 "install texlive-fancybox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancybox + CHECK_RESULT $? 0 0 "remove texlive-fancybox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e9f600e0e60d7f8dc5c4ea5003211816baa6afc --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancyhdr-doc | grep -v \.src | grep texlive-fancyhdr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancyhdr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancyhdr-doc + CHECK_RESULT $? 0 0 "install texlive-fancyhdr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancyhdr-doc + CHECK_RESULT $? 0 0 "remove texlive-fancyhdr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr-it-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr-it-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb5fececc08a727163f61d6e57706fc60edd3cdb --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr-it-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancyhdr-it-doc | grep -v \.src | grep texlive-fancyhdr-it-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancyhdr-it-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancyhdr-it-doc + CHECK_RESULT $? 0 0 "install texlive-fancyhdr-it-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancyhdr-it-doc + CHECK_RESULT $? 0 0 "remove texlive-fancyhdr-it-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr.sh new file mode 100644 index 0000000000000000000000000000000000000000..d338d3c7f82a8ba58001a6ac4f1adebb6d675fe5 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyhdr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancyhdr | grep -v \.src | grep texlive-fancyhdr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancyhdr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancyhdr + CHECK_RESULT $? 0 0 "install texlive-fancyhdr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancyhdr + CHECK_RESULT $? 0 0 "remove texlive-fancyhdr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancylabel-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancylabel-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c22dc400229b743621931dc1ca86289024578d2e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancylabel-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancylabel-doc | grep -v \.src | grep texlive-fancylabel-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancylabel-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancylabel-doc + CHECK_RESULT $? 0 0 "install texlive-fancylabel-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancylabel-doc + CHECK_RESULT $? 0 0 "remove texlive-fancylabel-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancylabel.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancylabel.sh new file mode 100644 index 0000000000000000000000000000000000000000..98c27afce1810992c50463e94fb1724067068f65 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancylabel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancylabel | grep -v \.src | grep texlive-fancylabel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancylabel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancylabel + CHECK_RESULT $? 0 0 "install texlive-fancylabel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancylabel + CHECK_RESULT $? 0 0 "remove texlive-fancylabel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancynum-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancynum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f8a6c82b65d5cd66b9b40c435c61febfbade09b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancynum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancynum-doc | grep -v \.src | grep texlive-fancynum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancynum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancynum-doc + CHECK_RESULT $? 0 0 "install texlive-fancynum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancynum-doc + CHECK_RESULT $? 0 0 "remove texlive-fancynum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancynum.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancynum.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a5584f13b141d92761bdbdde7332036f443cfb8 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancynum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancynum | grep -v \.src | grep texlive-fancynum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancynum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancynum + CHECK_RESULT $? 0 0 "install texlive-fancynum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancynum + CHECK_RESULT $? 0 0 "remove texlive-fancynum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancypar-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancypar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..08a760851deb61cffee14be992e3c50d1a4832df --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancypar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancypar-doc | grep -v \.src | grep texlive-fancypar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancypar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancypar-doc + CHECK_RESULT $? 0 0 "install texlive-fancypar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancypar-doc + CHECK_RESULT $? 0 0 "remove texlive-fancypar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancypar.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancypar.sh new file mode 100644 index 0000000000000000000000000000000000000000..f706b8e944cd0d01c7641e69bef075fcac8516f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancypar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancypar | grep -v \.src | grep texlive-fancypar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancypar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancypar + CHECK_RESULT $? 0 0 "install texlive-fancypar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancypar + CHECK_RESULT $? 0 0 "remove texlive-fancypar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyref-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa532ccd059a7334786883c1a4e74e82b8007c63 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancyref-doc | grep -v \.src | grep texlive-fancyref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancyref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancyref-doc + CHECK_RESULT $? 0 0 "install texlive-fancyref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancyref-doc + CHECK_RESULT $? 0 0 "remove texlive-fancyref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyref.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyref.sh new file mode 100644 index 0000000000000000000000000000000000000000..c67f1429ad3cc6a4ae432fe9c005b7ebb2561c8f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancyref | grep -v \.src | grep texlive-fancyref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancyref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancyref + CHECK_RESULT $? 0 0 "install texlive-fancyref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancyref + CHECK_RESULT $? 0 0 "remove texlive-fancyref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyslides-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyslides-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..408838762944cb608374cf41d2c9b1c95b21e0e1 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyslides-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancyslides-doc | grep -v \.src | grep texlive-fancyslides-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancyslides-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancyslides-doc + CHECK_RESULT $? 0 0 "install texlive-fancyslides-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancyslides-doc + CHECK_RESULT $? 0 0 "remove texlive-fancyslides-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyslides.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyslides.sh new file mode 100644 index 0000000000000000000000000000000000000000..5630be0ce70f3a188137bb731a31faf1e856f749 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyslides.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancyslides | grep -v \.src | grep texlive-fancyslides + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancyslides" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancyslides + CHECK_RESULT $? 0 0 "install texlive-fancyslides failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancyslides + CHECK_RESULT $? 0 0 "remove texlive-fancyslides failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytabs-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytabs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0c88722410091fb5b6b39a538060faf1a255805 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytabs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancytabs-doc | grep -v \.src | grep texlive-fancytabs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancytabs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancytabs-doc + CHECK_RESULT $? 0 0 "install texlive-fancytabs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancytabs-doc + CHECK_RESULT $? 0 0 "remove texlive-fancytabs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytabs.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytabs.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce15720d7789c0ccd82c2de172320f013c85e2c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytabs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancytabs | grep -v \.src | grep texlive-fancytabs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancytabs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancytabs + CHECK_RESULT $? 0 0 "install texlive-fancytabs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancytabs + CHECK_RESULT $? 0 0 "remove texlive-fancytabs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytooltips-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytooltips-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..db073ce69dcca0fdc92ed0f58c8ad3989b7c0dcd --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytooltips-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancytooltips-doc | grep -v \.src | grep texlive-fancytooltips-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancytooltips-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancytooltips-doc + CHECK_RESULT $? 0 0 "install texlive-fancytooltips-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancytooltips-doc + CHECK_RESULT $? 0 0 "remove texlive-fancytooltips-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytooltips.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytooltips.sh new file mode 100644 index 0000000000000000000000000000000000000000..5aa0941ff9e64c427363450dd78008c5ad1244f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancytooltips.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancytooltips | grep -v \.src | grep texlive-fancytooltips + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancytooltips" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancytooltips + CHECK_RESULT $? 0 0 "install texlive-fancytooltips failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancytooltips + CHECK_RESULT $? 0 0 "remove texlive-fancytooltips failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyvrb-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyvrb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6abf71468a4d82118b87d5d05dd1155307d6a52a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyvrb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancyvrb-doc | grep -v \.src | grep texlive-fancyvrb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancyvrb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancyvrb-doc + CHECK_RESULT $? 0 0 "install texlive-fancyvrb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancyvrb-doc + CHECK_RESULT $? 0 0 "remove texlive-fancyvrb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyvrb.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyvrb.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e472fcffba3ffe44d76235a8847b2485dc3b437 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fancyvrb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancyvrb | grep -v \.src | grep texlive-fancyvrb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancyvrb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancyvrb + CHECK_RESULT $? 0 0 "install texlive-fancyvrb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancyvrb + CHECK_RESULT $? 0 0 "remove texlive-fancyvrb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fandol-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fandol-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f78a3e9eddabf497230e1148132ecda94d479df --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fandol-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fandol-doc | grep -v \.src | grep texlive-fandol-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fandol-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fandol-doc + CHECK_RESULT $? 0 0 "install texlive-fandol-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fandol-doc + CHECK_RESULT $? 0 0 "remove texlive-fandol-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fandol.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fandol.sh new file mode 100644 index 0000000000000000000000000000000000000000..c74338c8e25dcda21bd4b4cc3d133958e518014a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fandol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fandol | grep -v \.src | grep texlive-fandol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fandol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fandol + CHECK_RESULT $? 0 0 "install texlive-fandol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fandol + CHECK_RESULT $? 0 0 "remove texlive-fandol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fast-diagram-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fast-diagram-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..68c10ac9f3ccaf32e2e605edaca9e32992ea710f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fast-diagram-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fast-diagram-doc | grep -v \.src | grep texlive-fast-diagram-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fast-diagram-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fast-diagram-doc + CHECK_RESULT $? 0 0 "install texlive-fast-diagram-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fast-diagram-doc + CHECK_RESULT $? 0 0 "remove texlive-fast-diagram-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fast-diagram.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fast-diagram.sh new file mode 100644 index 0000000000000000000000000000000000000000..33ea2307846f995f8e2e3dc4e4fe8ed29723a745 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fast-diagram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fast-diagram | grep -v \.src | grep texlive-fast-diagram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fast-diagram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fast-diagram + CHECK_RESULT $? 0 0 "install texlive-fast-diagram failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fast-diagram + CHECK_RESULT $? 0 0 "remove texlive-fast-diagram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbb-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..75eb00a0cfbb531685b1e3f45c680f9607bfe11f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fbb-doc | grep -v \.src | grep texlive-fbb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fbb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fbb-doc + CHECK_RESULT $? 0 0 "install texlive-fbb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fbb-doc + CHECK_RESULT $? 0 0 "remove texlive-fbb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbb.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbb.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e51607ff2d6ca9d28c94845cd3fc26904c722d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fbb | grep -v \.src | grep texlive-fbb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fbb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fbb + CHECK_RESULT $? 0 0 "install texlive-fbb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fbb + CHECK_RESULT $? 0 0 "remove texlive-fbb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbithesis-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbithesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a1b309202b011199b56cefebaab2458a9ca5d10 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbithesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fbithesis-doc | grep -v \.src | grep texlive-fbithesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fbithesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fbithesis-doc + CHECK_RESULT $? 0 0 "install texlive-fbithesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fbithesis-doc + CHECK_RESULT $? 0 0 "remove texlive-fbithesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbithesis.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbithesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..32e86e1830527ea63c3118ca5133991acb908933 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbithesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fbithesis | grep -v \.src | grep texlive-fbithesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fbithesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fbithesis + CHECK_RESULT $? 0 0 "install texlive-fbithesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fbithesis + CHECK_RESULT $? 0 0 "remove texlive-fbithesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbs.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbs.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc41fa73dc1a2c7f423a96f8e1ee22c7e7c827b3 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fbs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fbs | grep -v \.src | grep texlive-fbs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fbs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fbs + CHECK_RESULT $? 0 0 "install texlive-fbs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fbs + CHECK_RESULT $? 0 0 "remove texlive-fbs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fc-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..77a4d12c3a91e01cb11e9ad5c79e9d28defd481e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fc-doc | grep -v \.src | grep texlive-fc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fc-doc + CHECK_RESULT $? 0 0 "install texlive-fc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fc-doc + CHECK_RESULT $? 0 0 "remove texlive-fc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fc.sh new file mode 100644 index 0000000000000000000000000000000000000000..60e8a716a9ab6d255570b7a7b4e46acb711ab2f6 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fc | grep -v \.src | grep texlive-fc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fc + CHECK_RESULT $? 0 0 "install texlive-fc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fc + CHECK_RESULT $? 0 0 "remove texlive-fc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcavtex-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcavtex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..96c380e112faf10816540d1b92e14a34d5bbef54 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcavtex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fcavtex-doc | grep -v \.src | grep texlive-fcavtex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fcavtex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fcavtex-doc + CHECK_RESULT $? 0 0 "install texlive-fcavtex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fcavtex-doc + CHECK_RESULT $? 0 0 "remove texlive-fcavtex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcavtex.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcavtex.sh new file mode 100644 index 0000000000000000000000000000000000000000..76ef572456180dfa87968de95b2bed30527b859a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcavtex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fcavtex | grep -v \.src | grep texlive-fcavtex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fcavtex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fcavtex + CHECK_RESULT $? 0 0 "install texlive-fcavtex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fcavtex + CHECK_RESULT $? 0 0 "remove texlive-fcavtex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcltxdoc-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcltxdoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..45d861c71fb368f235c3ace3b736e4c2c22a7e79 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcltxdoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fcltxdoc-doc | grep -v \.src | grep texlive-fcltxdoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fcltxdoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fcltxdoc-doc + CHECK_RESULT $? 0 0 "install texlive-fcltxdoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fcltxdoc-doc + CHECK_RESULT $? 0 0 "remove texlive-fcltxdoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcltxdoc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcltxdoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba9fd6d0fc58ddb9692cce70292fae68ab3ce247 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcltxdoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fcltxdoc | grep -v \.src | grep texlive-fcltxdoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fcltxdoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fcltxdoc + CHECK_RESULT $? 0 0 "install texlive-fcltxdoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fcltxdoc + CHECK_RESULT $? 0 0 "remove texlive-fcltxdoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcolumn-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcolumn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e021043d7476c4f77d3527de7ec4279d51d17e55 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcolumn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fcolumn-doc | grep -v \.src | grep texlive-fcolumn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fcolumn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fcolumn-doc + CHECK_RESULT $? 0 0 "install texlive-fcolumn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fcolumn-doc + CHECK_RESULT $? 0 0 "remove texlive-fcolumn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcolumn.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcolumn.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e0a50f5145234289df87e6939626a91daf26047 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fcolumn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fcolumn | grep -v \.src | grep texlive-fcolumn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fcolumn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fcolumn + CHECK_RESULT $? 0 0 "install texlive-fcolumn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fcolumn + CHECK_RESULT $? 0 0 "remove texlive-fcolumn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fdsymbol-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fdsymbol-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..116b4a410dcf8641a96146ddd059c735f904ef9e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fdsymbol-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fdsymbol-doc | grep -v \.src | grep texlive-fdsymbol-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fdsymbol-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fdsymbol-doc + CHECK_RESULT $? 0 0 "install texlive-fdsymbol-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fdsymbol-doc + CHECK_RESULT $? 0 0 "remove texlive-fdsymbol-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fdsymbol.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fdsymbol.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fc99413123622dceeb447229f185fb8fe8cb6df --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fdsymbol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fdsymbol | grep -v \.src | grep texlive-fdsymbol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fdsymbol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fdsymbol + CHECK_RESULT $? 0 0 "install texlive-fdsymbol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fdsymbol + CHECK_RESULT $? 0 0 "remove texlive-fdsymbol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fduthesis.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fduthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b15e1f977b79713e09e20baf8f38033523b0760 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fduthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fduthesis | grep -v \.src | grep texlive-fduthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fduthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fduthesis + CHECK_RESULT $? 0 0 "install texlive-fduthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fduthesis + CHECK_RESULT $? 0 0 "remove texlive-fduthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-featpost-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-featpost-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..72746e4527d281baf757b875f719471c233a0df5 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-featpost-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-featpost-doc | grep -v \.src | grep texlive-featpost-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-featpost-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-featpost-doc + CHECK_RESULT $? 0 0 "install texlive-featpost-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-featpost-doc + CHECK_RESULT $? 0 0 "remove texlive-featpost-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-featpost.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-featpost.sh new file mode 100644 index 0000000000000000000000000000000000000000..0752d4a2a695823f2fc7f479bc4073e7b4dcf881 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-featpost.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-featpost | grep -v \.src | grep texlive-featpost + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-featpost" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-featpost + CHECK_RESULT $? 0 0 "install texlive-featpost failed" + SLEEP_WAIT 1 + dnf remove -y texlive-featpost + CHECK_RESULT $? 0 0 "remove texlive-featpost failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fei-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fei-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..26f4f7f3469e927c70a6044ac24e0b94e5b0f773 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fei-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fei-doc | grep -v \.src | grep texlive-fei-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fei-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fei-doc + CHECK_RESULT $? 0 0 "install texlive-fei-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fei-doc + CHECK_RESULT $? 0 0 "remove texlive-fei-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fei.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fei.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b386db52d8d76b25fc310144dfa0b47e7febaac --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fei.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fei | grep -v \.src | grep texlive-fei + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fei" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fei + CHECK_RESULT $? 0 0 "install texlive-fei failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fei + CHECK_RESULT $? 0 0 "remove texlive-fei failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fenixpar-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fenixpar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..578d0476fce18302d1d5e24c0bcebdcb54caa7f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fenixpar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fenixpar-doc | grep -v \.src | grep texlive-fenixpar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fenixpar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fenixpar-doc + CHECK_RESULT $? 0 0 "install texlive-fenixpar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fenixpar-doc + CHECK_RESULT $? 0 0 "remove texlive-fenixpar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fenixpar.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fenixpar.sh new file mode 100644 index 0000000000000000000000000000000000000000..32a079635acc5c7d2150b031bfde3a94a8ba7ba1 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fenixpar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fenixpar | grep -v \.src | grep texlive-fenixpar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fenixpar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fenixpar + CHECK_RESULT $? 0 0 "install texlive-fenixpar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fenixpar + CHECK_RESULT $? 0 0 "remove texlive-fenixpar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fetamont-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fetamont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..70e920e0e84dca04ecf4a0cadb880205bd6a6de3 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fetamont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fetamont-doc | grep -v \.src | grep texlive-fetamont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fetamont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fetamont-doc + CHECK_RESULT $? 0 0 "install texlive-fetamont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fetamont-doc + CHECK_RESULT $? 0 0 "remove texlive-fetamont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fetamont.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fetamont.sh new file mode 100644 index 0000000000000000000000000000000000000000..b02a84997e83a7f3e9cd203bb32ebde93c16ac4e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fetamont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fetamont | grep -v \.src | grep texlive-fetamont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fetamont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fetamont + CHECK_RESULT $? 0 0 "install texlive-fetamont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fetamont + CHECK_RESULT $? 0 0 "remove texlive-fetamont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fetchcls.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fetchcls.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e6c0f744247cb7c6509cd253b12754a7056d729 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fetchcls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fetchcls | grep -v \.src | grep texlive-fetchcls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fetchcls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fetchcls + CHECK_RESULT $? 0 0 "install texlive-fetchcls failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fetchcls + CHECK_RESULT $? 0 0 "remove texlive-fetchcls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feupphdteses-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feupphdteses-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..be442727908a00853c06175add0f122dd3ed8af8 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feupphdteses-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-feupphdteses-doc | grep -v \.src | grep texlive-feupphdteses-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-feupphdteses-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-feupphdteses-doc + CHECK_RESULT $? 0 0 "install texlive-feupphdteses-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-feupphdteses-doc + CHECK_RESULT $? 0 0 "remove texlive-feupphdteses-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feupphdteses.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feupphdteses.sh new file mode 100644 index 0000000000000000000000000000000000000000..831d6adb14e6dfa24ed08e940ed1a5d71cf27184 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feupphdteses.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-feupphdteses | grep -v \.src | grep texlive-feupphdteses + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-feupphdteses" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-feupphdteses + CHECK_RESULT $? 0 0 "install texlive-feupphdteses failed" + SLEEP_WAIT 1 + dnf remove -y texlive-feupphdteses + CHECK_RESULT $? 0 0 "remove texlive-feupphdteses failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feyn-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feyn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9cbcd2009b3806d67fcaec7f6c98475916ab3f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feyn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-feyn-doc | grep -v \.src | grep texlive-feyn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-feyn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-feyn-doc + CHECK_RESULT $? 0 0 "install texlive-feyn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-feyn-doc + CHECK_RESULT $? 0 0 "remove texlive-feyn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feyn.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feyn.sh new file mode 100644 index 0000000000000000000000000000000000000000..aad227da67d2f23ca40fc72382c089c97c1ba037 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feyn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-feyn | grep -v \.src | grep texlive-feyn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-feyn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-feyn + CHECK_RESULT $? 0 0 "install texlive-feyn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-feyn + CHECK_RESULT $? 0 0 "remove texlive-feyn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmf-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..404b33a83bfc28be8f31415501979ca60b33f257 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-feynmf-doc | grep -v \.src | grep texlive-feynmf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-feynmf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-feynmf-doc + CHECK_RESULT $? 0 0 "install texlive-feynmf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-feynmf-doc + CHECK_RESULT $? 0 0 "remove texlive-feynmf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmf.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmf.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c12380502a7aecbe712cbdad4c354df4c43881a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-feynmf | grep -v \.src | grep texlive-feynmf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-feynmf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-feynmf + CHECK_RESULT $? 0 0 "install texlive-feynmf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-feynmf + CHECK_RESULT $? 0 0 "remove texlive-feynmf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmp-auto-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmp-auto-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb081a6da49c52d675021c075d946d3f17589fd8 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmp-auto-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-feynmp-auto-doc | grep -v \.src | grep texlive-feynmp-auto-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-feynmp-auto-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-feynmp-auto-doc + CHECK_RESULT $? 0 0 "install texlive-feynmp-auto-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-feynmp-auto-doc + CHECK_RESULT $? 0 0 "remove texlive-feynmp-auto-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmp-auto.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmp-auto.sh new file mode 100644 index 0000000000000000000000000000000000000000..017eeb2b0fa4635e39190caca8da505728986950 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-feynmp-auto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-feynmp-auto | grep -v \.src | grep texlive-feynmp-auto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-feynmp-auto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-feynmp-auto + CHECK_RESULT $? 0 0 "install texlive-feynmp-auto failed" + SLEEP_WAIT 1 + dnf remove -y texlive-feynmp-auto + CHECK_RESULT $? 0 0 "remove texlive-feynmp-auto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ffslides-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ffslides-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6944aca4090bff8fef8b498def4c3aa1f9a218e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ffslides-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ffslides-doc | grep -v \.src | grep texlive-ffslides-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ffslides-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ffslides-doc + CHECK_RESULT $? 0 0 "install texlive-ffslides-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ffslides-doc + CHECK_RESULT $? 0 0 "remove texlive-ffslides-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ffslides.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ffslides.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca50a0c19aaec838dc979409fc1a5f2eaf03908f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ffslides.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ffslides | grep -v \.src | grep texlive-ffslides + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ffslides" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ffslides + CHECK_RESULT $? 0 0 "install texlive-ffslides failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ffslides + CHECK_RESULT $? 0 0 "remove texlive-ffslides failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fge-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fge-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3382746051f76ce83bc10c929d44364ad6c0fed3 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fge-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fge-doc | grep -v \.src | grep texlive-fge-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fge-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fge-doc + CHECK_RESULT $? 0 0 "install texlive-fge-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fge-doc + CHECK_RESULT $? 0 0 "remove texlive-fge-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fge.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fge.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ce6996e70c9391785f7502a7493e8c796191150 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fge.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fge | grep -v \.src | grep texlive-fge + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fge" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fge + CHECK_RESULT $? 0 0 "install texlive-fge failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fge + CHECK_RESULT $? 0 0 "remove texlive-fge failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fgruler.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fgruler.sh new file mode 100644 index 0000000000000000000000000000000000000000..8be452877a73fb28891de2f8835e7026901d7b73 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fgruler.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fgruler | grep -v \.src | grep texlive-fgruler + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fgruler" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fgruler + CHECK_RESULT $? 0 0 "install texlive-fgruler failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fgruler + CHECK_RESULT $? 0 0 "remove texlive-fgruler failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fibeamer-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fibeamer-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ccdcd79f250fb3faceaeecfaefe1fff456a3763 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fibeamer-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fibeamer-doc | grep -v \.src | grep texlive-fibeamer-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fibeamer-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fibeamer-doc + CHECK_RESULT $? 0 0 "install texlive-fibeamer-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fibeamer-doc + CHECK_RESULT $? 0 0 "remove texlive-fibeamer-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fibeamer.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fibeamer.sh new file mode 100644 index 0000000000000000000000000000000000000000..c86d0a3247b730e5a679c3ce151a6d13638da385 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fibeamer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fibeamer | grep -v \.src | grep texlive-fibeamer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fibeamer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fibeamer + CHECK_RESULT $? 0 0 "install texlive-fibeamer failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fibeamer + CHECK_RESULT $? 0 0 "remove texlive-fibeamer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fifinddo-info-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fifinddo-info-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2eb5a462038b84dcaf6d740f49c5f254699951f2 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fifinddo-info-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fifinddo-info-doc | grep -v \.src | grep texlive-fifinddo-info-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fifinddo-info-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fifinddo-info-doc + CHECK_RESULT $? 0 0 "install texlive-fifinddo-info-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fifinddo-info-doc + CHECK_RESULT $? 0 0 "remove texlive-fifinddo-info-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fifo-stack-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fifo-stack-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..861cdd5491f94ee192ff85210949171428139d76 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fifo-stack-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fifo-stack-doc | grep -v \.src | grep texlive-fifo-stack-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fifo-stack-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fifo-stack-doc + CHECK_RESULT $? 0 0 "install texlive-fifo-stack-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fifo-stack-doc + CHECK_RESULT $? 0 0 "remove texlive-fifo-stack-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fifo-stack.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fifo-stack.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf1e3f1f2f53f9cb8b67cafd98c149f8d1ad988b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fifo-stack.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fifo-stack | grep -v \.src | grep texlive-fifo-stack + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fifo-stack" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fifo-stack + CHECK_RESULT $? 0 0 "install texlive-fifo-stack failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fifo-stack + CHECK_RESULT $? 0 0 "remove texlive-fifo-stack failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbas-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbas-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f11f48ace3ab1efff31a3fb9cf4f4dec6c2eb2b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbas-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-figbas-doc | grep -v \.src | grep texlive-figbas-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-figbas-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-figbas-doc + CHECK_RESULT $? 0 0 "install texlive-figbas-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-figbas-doc + CHECK_RESULT $? 0 0 "remove texlive-figbas-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbas.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbas.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b2e61383d68ccd44750483fdc939bb91cfe46ce --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbas.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-figbas | grep -v \.src | grep texlive-figbas + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-figbas" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-figbas + CHECK_RESULT $? 0 0 "install texlive-figbas failed" + SLEEP_WAIT 1 + dnf remove -y texlive-figbas + CHECK_RESULT $? 0 0 "remove texlive-figbas failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbib-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..27f11ece646d02dcbe3423f286c79a99149d55fd --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-figbib-doc | grep -v \.src | grep texlive-figbib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-figbib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-figbib-doc + CHECK_RESULT $? 0 0 "install texlive-figbib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-figbib-doc + CHECK_RESULT $? 0 0 "remove texlive-figbib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbib.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbib.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2b6ec30cfdf25eff40e5d29494c3d6475974b70 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figbib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-figbib | grep -v \.src | grep texlive-figbib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-figbib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-figbib + CHECK_RESULT $? 0 0 "install texlive-figbib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-figbib + CHECK_RESULT $? 0 0 "remove texlive-figbib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figflow-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figflow-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..03800e1af197d7f9956999141085342f7505df32 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figflow-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-figflow-doc | grep -v \.src | grep texlive-figflow-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-figflow-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-figflow-doc + CHECK_RESULT $? 0 0 "install texlive-figflow-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-figflow-doc + CHECK_RESULT $? 0 0 "remove texlive-figflow-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figflow.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figflow.sh new file mode 100644 index 0000000000000000000000000000000000000000..510c33defc49b66be9e3f07cfe013d64045cf83e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figflow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-figflow | grep -v \.src | grep texlive-figflow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-figflow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-figflow + CHECK_RESULT $? 0 0 "install texlive-figflow failed" + SLEEP_WAIT 1 + dnf remove -y texlive-figflow + CHECK_RESULT $? 0 0 "remove texlive-figflow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figsize-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figsize-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2747e8a09fb29d2a5dfdac77b2350d495b2c655e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figsize-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-figsize-doc | grep -v \.src | grep texlive-figsize-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-figsize-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-figsize-doc + CHECK_RESULT $? 0 0 "install texlive-figsize-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-figsize-doc + CHECK_RESULT $? 0 0 "remove texlive-figsize-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figsize.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figsize.sh new file mode 100644 index 0000000000000000000000000000000000000000..eadd24f02f411b8c33fca1250b6d61464133c5ca --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-figsize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-figsize | grep -v \.src | grep texlive-figsize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-figsize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-figsize + CHECK_RESULT $? 0 0 "install texlive-figsize failed" + SLEEP_WAIT 1 + dnf remove -y texlive-figsize + CHECK_RESULT $? 0 0 "remove texlive-figsize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filecontents-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filecontents-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..405dc3da6c2d2ed046cbcadb59e7bdc9534440b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filecontents-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-filecontents-doc | grep -v \.src | grep texlive-filecontents-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-filecontents-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-filecontents-doc + CHECK_RESULT $? 0 0 "install texlive-filecontents-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-filecontents-doc + CHECK_RESULT $? 0 0 "remove texlive-filecontents-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filecontents.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filecontents.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ee2030594325118c0d9d6e3620fb287d4a52520 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filecontents.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-filecontents | grep -v \.src | grep texlive-filecontents + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-filecontents" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-filecontents + CHECK_RESULT $? 0 0 "install texlive-filecontents failed" + SLEEP_WAIT 1 + dnf remove -y texlive-filecontents + CHECK_RESULT $? 0 0 "remove texlive-filecontents failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filecontentsdef.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filecontentsdef.sh new file mode 100644 index 0000000000000000000000000000000000000000..00952d182277f89394cb250bcc9de7f7f92df5fb --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filecontentsdef.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-filecontentsdef | grep -v \.src | grep texlive-filecontentsdef + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-filecontentsdef" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-filecontentsdef + CHECK_RESULT $? 0 0 "install texlive-filecontentsdef failed" + SLEEP_WAIT 1 + dnf remove -y texlive-filecontentsdef + CHECK_RESULT $? 0 0 "remove texlive-filecontentsdef failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filedate-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filedate-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..39d846a18a50a14f764fa834c45bd5d9f60af93c --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filedate-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-filedate-doc | grep -v \.src | grep texlive-filedate-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-filedate-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-filedate-doc + CHECK_RESULT $? 0 0 "install texlive-filedate-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-filedate-doc + CHECK_RESULT $? 0 0 "remove texlive-filedate-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filedate.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filedate.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6471ce8dc23b09391fef0d789c8e06a8a148ece --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filedate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-filedate | grep -v \.src | grep texlive-filedate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-filedate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-filedate + CHECK_RESULT $? 0 0 "install texlive-filedate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-filedate + CHECK_RESULT $? 0 0 "remove texlive-filedate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filehook-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filehook-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c51cac0e7708bece17503622e5224252593d7e3b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filehook-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-filehook-doc | grep -v \.src | grep texlive-filehook-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-filehook-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-filehook-doc + CHECK_RESULT $? 0 0 "install texlive-filehook-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-filehook-doc + CHECK_RESULT $? 0 0 "remove texlive-filehook-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filehook.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filehook.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fa9c23e47032fbadfcf6cfbba2584a9bc78dfad --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filehook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-filehook | grep -v \.src | grep texlive-filehook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-filehook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-filehook + CHECK_RESULT $? 0 0 "install texlive-filehook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-filehook + CHECK_RESULT $? 0 0 "remove texlive-filehook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fileinfo-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fileinfo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ffbd26909034bd9df0dddedeb332eaa73fcec4ee --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fileinfo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fileinfo-doc | grep -v \.src | grep texlive-fileinfo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fileinfo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fileinfo-doc + CHECK_RESULT $? 0 0 "install texlive-fileinfo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fileinfo-doc + CHECK_RESULT $? 0 0 "remove texlive-fileinfo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fileinfo.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fileinfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..df077939140be2be229a2417de46491f76cc306a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fileinfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fileinfo | grep -v \.src | grep texlive-fileinfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fileinfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fileinfo + CHECK_RESULT $? 0 0 "install texlive-fileinfo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fileinfo + CHECK_RESULT $? 0 0 "remove texlive-fileinfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filemod-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filemod-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd05b9dbe0bbe47ea670e64ed2a5f9b4f813bfdd --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filemod-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-filemod-doc | grep -v \.src | grep texlive-filemod-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-filemod-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-filemod-doc + CHECK_RESULT $? 0 0 "install texlive-filemod-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-filemod-doc + CHECK_RESULT $? 0 0 "remove texlive-filemod-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filemod.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filemod.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2786872c9a42457a183ea60f92c1d5a1eb90a35 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-filemod.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-filemod | grep -v \.src | grep texlive-filemod + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-filemod" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-filemod + CHECK_RESULT $? 0 0 "install texlive-filemod failed" + SLEEP_WAIT 1 + dnf remove -y texlive-filemod + CHECK_RESULT $? 0 0 "remove texlive-filemod failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-finbib.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-finbib.sh new file mode 100644 index 0000000000000000000000000000000000000000..c63f049f0bc25052827102e98913d1e0d9d9f926 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-finbib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-finbib | grep -v \.src | grep texlive-finbib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-finbib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-finbib + CHECK_RESULT $? 0 0 "install texlive-finbib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-finbib + CHECK_RESULT $? 0 0 "remove texlive-finbib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fink-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fink-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a59cafe836605971aa8e4eb9aaf45f010671fbe9 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fink-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fink-doc | grep -v \.src | grep texlive-fink-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fink-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fink-doc + CHECK_RESULT $? 0 0 "install texlive-fink-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fink-doc + CHECK_RESULT $? 0 0 "remove texlive-fink-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fink.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fink.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f05ef7b0fc3fdfc19989b6ba1d8b73f4a3daa13 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fink.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fink | grep -v \.src | grep texlive-fink + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fink" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fink + CHECK_RESULT $? 0 0 "install texlive-fink failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fink + CHECK_RESULT $? 0 0 "remove texlive-fink failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-finstrut-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-finstrut-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7369ce153ec92714fedafca0fe985a10ac6c875 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-finstrut-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-finstrut-doc | grep -v \.src | grep texlive-finstrut-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-finstrut-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-finstrut-doc + CHECK_RESULT $? 0 0 "install texlive-finstrut-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-finstrut-doc + CHECK_RESULT $? 0 0 "remove texlive-finstrut-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-finstrut.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-finstrut.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfa71fc4ae7d12c390b411e0eb1e278dc8a5e32a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-finstrut.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-finstrut | grep -v \.src | grep texlive-finstrut + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-finstrut" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-finstrut + CHECK_RESULT $? 0 0 "install texlive-finstrut failed" + SLEEP_WAIT 1 + dnf remove -y texlive-finstrut + CHECK_RESULT $? 0 0 "remove texlive-finstrut failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fira-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fira-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..50cf9be2fca7624822969123b0c88fa51deb9029 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fira-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fira-doc | grep -v \.src | grep texlive-fira-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fira-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fira-doc + CHECK_RESULT $? 0 0 "install texlive-fira-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fira-doc + CHECK_RESULT $? 0 0 "remove texlive-fira-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fira.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fira.sh new file mode 100644 index 0000000000000000000000000000000000000000..6089a902f7bc528aeb22b2d2b6949f814ec65976 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fira.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fira | grep -v \.src | grep texlive-fira + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fira" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fira + CHECK_RESULT $? 0 0 "install texlive-fira failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fira + CHECK_RESULT $? 0 0 "remove texlive-fira failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-first-latex-doc-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-first-latex-doc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f216d1f2d84788e779fbd6688cfa500ee552e821 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-first-latex-doc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-first-latex-doc-doc | grep -v \.src | grep texlive-first-latex-doc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-first-latex-doc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-first-latex-doc-doc + CHECK_RESULT $? 0 0 "install texlive-first-latex-doc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-first-latex-doc-doc + CHECK_RESULT $? 0 0 "remove texlive-first-latex-doc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fitbox-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fitbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b350072078cd1644cde4583025d1bb13c5800cdb --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fitbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fitbox-doc | grep -v \.src | grep texlive-fitbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fitbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fitbox-doc + CHECK_RESULT $? 0 0 "install texlive-fitbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fitbox-doc + CHECK_RESULT $? 0 0 "remove texlive-fitbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fitbox.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fitbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ed5277172c7d7e4b24507d8f338a76e79cc277a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fitbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fitbox | grep -v \.src | grep texlive-fitbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fitbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fitbox + CHECK_RESULT $? 0 0 "install texlive-fitbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fitbox + CHECK_RESULT $? 0 0 "remove texlive-fitbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fithesis-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fithesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3a24641e173b7c80ff9df9d6e37b79d8839ba00 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fithesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fithesis-doc | grep -v \.src | grep texlive-fithesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fithesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fithesis-doc + CHECK_RESULT $? 0 0 "install texlive-fithesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fithesis-doc + CHECK_RESULT $? 0 0 "remove texlive-fithesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fithesis.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fithesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca1503923a28ecfbd9e015d04ac879b0c495d6c3 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fithesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fithesis | grep -v \.src | grep texlive-fithesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fithesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fithesis + CHECK_RESULT $? 0 0 "install texlive-fithesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fithesis + CHECK_RESULT $? 0 0 "remove texlive-fithesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fix2col-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fix2col-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2720b3778c5b3a539e7cd6307dc13329d65bd6a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fix2col-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fix2col-doc | grep -v \.src | grep texlive-fix2col-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fix2col-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fix2col-doc + CHECK_RESULT $? 0 0 "install texlive-fix2col-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fix2col-doc + CHECK_RESULT $? 0 0 "remove texlive-fix2col-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fix2col.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fix2col.sh new file mode 100644 index 0000000000000000000000000000000000000000..b71c8d91d594b64bcddf17937b1b68900dc3ad09 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fix2col.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fix2col | grep -v \.src | grep texlive-fix2col + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fix2col" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fix2col + CHECK_RESULT $? 0 0 "install texlive-fix2col failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fix2col + CHECK_RESULT $? 0 0 "remove texlive-fix2col failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixcmex-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixcmex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2e0594ec2657731ee9eabdde2c11e0f2108375e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixcmex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixcmex-doc | grep -v \.src | grep texlive-fixcmex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixcmex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixcmex-doc + CHECK_RESULT $? 0 0 "install texlive-fixcmex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixcmex-doc + CHECK_RESULT $? 0 0 "remove texlive-fixcmex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixcmex.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixcmex.sh new file mode 100644 index 0000000000000000000000000000000000000000..316f15e2a069c66121882815a2402a00c163fac8 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixcmex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixcmex | grep -v \.src | grep texlive-fixcmex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixcmex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixcmex + CHECK_RESULT $? 0 0 "install texlive-fixcmex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixcmex + CHECK_RESULT $? 0 0 "remove texlive-fixcmex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixfoot-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixfoot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab2790bc8aeb822fc594a087c6e561c965ec7bea --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixfoot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixfoot-doc | grep -v \.src | grep texlive-fixfoot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixfoot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixfoot-doc + CHECK_RESULT $? 0 0 "install texlive-fixfoot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixfoot-doc + CHECK_RESULT $? 0 0 "remove texlive-fixfoot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixfoot.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixfoot.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5570b9000c9fef76282b261dde55d9e8ca444d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixfoot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixfoot | grep -v \.src | grep texlive-fixfoot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixfoot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixfoot + CHECK_RESULT $? 0 0 "install texlive-fixfoot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixfoot + CHECK_RESULT $? 0 0 "remove texlive-fixfoot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixjfm.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixjfm.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d88c844bc7e520a5dd44eecd5fe2bbb9199f737 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixjfm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixjfm | grep -v \.src | grep texlive-fixjfm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixjfm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixjfm + CHECK_RESULT $? 0 0 "install texlive-fixjfm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixjfm + CHECK_RESULT $? 0 0 "remove texlive-fixjfm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixlatvian-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixlatvian-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..088d82471cf0686d80623d846225274ad1d35161 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixlatvian-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixlatvian-doc | grep -v \.src | grep texlive-fixlatvian-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixlatvian-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixlatvian-doc + CHECK_RESULT $? 0 0 "install texlive-fixlatvian-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixlatvian-doc + CHECK_RESULT $? 0 0 "remove texlive-fixlatvian-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixlatvian.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixlatvian.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f24d158b1384140713a0667b19a42673551231b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixlatvian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixlatvian | grep -v \.src | grep texlive-fixlatvian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixlatvian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixlatvian + CHECK_RESULT $? 0 0 "install texlive-fixlatvian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixlatvian + CHECK_RESULT $? 0 0 "remove texlive-fixlatvian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixltxhyph-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixltxhyph-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..910115152aee0480afce886e61ec3825adb91db7 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixltxhyph-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixltxhyph-doc | grep -v \.src | grep texlive-fixltxhyph-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixltxhyph-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixltxhyph-doc + CHECK_RESULT $? 0 0 "install texlive-fixltxhyph-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixltxhyph-doc + CHECK_RESULT $? 0 0 "remove texlive-fixltxhyph-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixltxhyph.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixltxhyph.sh new file mode 100644 index 0000000000000000000000000000000000000000..80e3707de49f2cff6dec6a3df3e25a892ad6c9ef --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixltxhyph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixltxhyph | grep -v \.src | grep texlive-fixltxhyph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixltxhyph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixltxhyph + CHECK_RESULT $? 0 0 "install texlive-fixltxhyph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixltxhyph + CHECK_RESULT $? 0 0 "remove texlive-fixltxhyph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixme-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixme-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..252c81dbf86aa872ae07f0e44f3d623f18d65197 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixme-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixme-doc | grep -v \.src | grep texlive-fixme-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixme-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixme-doc + CHECK_RESULT $? 0 0 "install texlive-fixme-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixme-doc + CHECK_RESULT $? 0 0 "remove texlive-fixme-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixme.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixme.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd4ca2b0fcbc12a10c881fd4c3b40f691cb742a0 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixme | grep -v \.src | grep texlive-fixme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixme + CHECK_RESULT $? 0 0 "install texlive-fixme failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixme + CHECK_RESULT $? 0 0 "remove texlive-fixme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixmetodonotes-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixmetodonotes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd1329a9bb0f057541c2533b7974df99eaad5271 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixmetodonotes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixmetodonotes-doc | grep -v \.src | grep texlive-fixmetodonotes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixmetodonotes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixmetodonotes-doc + CHECK_RESULT $? 0 0 "install texlive-fixmetodonotes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixmetodonotes-doc + CHECK_RESULT $? 0 0 "remove texlive-fixmetodonotes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixmetodonotes.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixmetodonotes.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc37e0d523b2d223df1d974546b060c46d524663 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixmetodonotes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixmetodonotes | grep -v \.src | grep texlive-fixmetodonotes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixmetodonotes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixmetodonotes + CHECK_RESULT $? 0 0 "install texlive-fixmetodonotes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixmetodonotes + CHECK_RESULT $? 0 0 "remove texlive-fixmetodonotes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixpdfmag.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixpdfmag.sh new file mode 100644 index 0000000000000000000000000000000000000000..3012b854149b9dc1bb8dd6705e89cf7addc616c6 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fixpdfmag.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fixpdfmag | grep -v \.src | grep texlive-fixpdfmag + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fixpdfmag" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fixpdfmag + CHECK_RESULT $? 0 0 "install texlive-fixpdfmag failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fixpdfmag + CHECK_RESULT $? 0 0 "remove texlive-fixpdfmag failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fjodor-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fjodor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e298692e2dc343f4eb392d051ac2af828ff50697 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fjodor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fjodor-doc | grep -v \.src | grep texlive-fjodor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fjodor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fjodor-doc + CHECK_RESULT $? 0 0 "install texlive-fjodor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fjodor-doc + CHECK_RESULT $? 0 0 "remove texlive-fjodor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fjodor.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fjodor.sh new file mode 100644 index 0000000000000000000000000000000000000000..e10e1cd386385cf8f86b3299887e69bc919c8a23 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fjodor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fjodor | grep -v \.src | grep texlive-fjodor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fjodor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fjodor + CHECK_RESULT $? 0 0 "install texlive-fjodor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fjodor + CHECK_RESULT $? 0 0 "remove texlive-fjodor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flabels-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flabels-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f553e8a5c17d41edf6ff7788c5edc6fdbeb7987 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flabels-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flabels-doc | grep -v \.src | grep texlive-flabels-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flabels-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flabels-doc + CHECK_RESULT $? 0 0 "install texlive-flabels-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flabels-doc + CHECK_RESULT $? 0 0 "remove texlive-flabels-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flabels.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flabels.sh new file mode 100644 index 0000000000000000000000000000000000000000..d15d3dff54219c8a8e51effeb38a6aeb23d731c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flabels.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flabels | grep -v \.src | grep texlive-flabels + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flabels" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flabels + CHECK_RESULT $? 0 0 "install texlive-flabels failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flabels + CHECK_RESULT $? 0 0 "remove texlive-flabels failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flacards-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flacards-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..37c0a8be2dbdb0dc59e70759cdfb7f693259d403 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flacards-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flacards-doc | grep -v \.src | grep texlive-flacards-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flacards-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flacards-doc + CHECK_RESULT $? 0 0 "install texlive-flacards-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flacards-doc + CHECK_RESULT $? 0 0 "remove texlive-flacards-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flacards.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flacards.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a8240cfa93470cb5a32308fdd672b89f50b35d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flacards.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flacards | grep -v \.src | grep texlive-flacards + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flacards" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flacards + CHECK_RESULT $? 0 0 "install texlive-flacards failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flacards + CHECK_RESULT $? 0 0 "remove texlive-flacards failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flagderiv-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flagderiv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..045361470be3ed2e975e301c7b0a459ea307af1d --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flagderiv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flagderiv-doc | grep -v \.src | grep texlive-flagderiv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flagderiv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flagderiv-doc + CHECK_RESULT $? 0 0 "install texlive-flagderiv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flagderiv-doc + CHECK_RESULT $? 0 0 "remove texlive-flagderiv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flagderiv.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flagderiv.sh new file mode 100644 index 0000000000000000000000000000000000000000..93536e3786aa963b815ab174555db9d246e213db --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flagderiv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flagderiv | grep -v \.src | grep texlive-flagderiv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flagderiv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flagderiv + CHECK_RESULT $? 0 0 "install texlive-flagderiv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flagderiv + CHECK_RESULT $? 0 0 "remove texlive-flagderiv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashcards-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashcards-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1170e3c0de6a112476a00ba1f5fb7c7407e7f217 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashcards-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flashcards-doc | grep -v \.src | grep texlive-flashcards-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flashcards-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flashcards-doc + CHECK_RESULT $? 0 0 "install texlive-flashcards-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flashcards-doc + CHECK_RESULT $? 0 0 "remove texlive-flashcards-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashcards.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashcards.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c9d540fedea43e0bb9dacce94d02e6992b03c07 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashcards.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flashcards | grep -v \.src | grep texlive-flashcards + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flashcards" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flashcards + CHECK_RESULT $? 0 0 "install texlive-flashcards failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flashcards + CHECK_RESULT $? 0 0 "remove texlive-flashcards failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashmovie-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashmovie-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..76b1c9eb35f1f6dae1211e2bcf7daedffce74e48 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashmovie-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flashmovie-doc | grep -v \.src | grep texlive-flashmovie-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flashmovie-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flashmovie-doc + CHECK_RESULT $? 0 0 "install texlive-flashmovie-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flashmovie-doc + CHECK_RESULT $? 0 0 "remove texlive-flashmovie-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashmovie.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashmovie.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f6ac738e9a0acd3e523f1f95539e2006cc03afd --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flashmovie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flashmovie | grep -v \.src | grep texlive-flashmovie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flashmovie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flashmovie + CHECK_RESULT $? 0 0 "install texlive-flashmovie failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flashmovie + CHECK_RESULT $? 0 0 "remove texlive-flashmovie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flipbook-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flipbook-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1559b301b60f8d9d3594e7914d888921f3b5402 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flipbook-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flipbook-doc | grep -v \.src | grep texlive-flipbook-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flipbook-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flipbook-doc + CHECK_RESULT $? 0 0 "install texlive-flipbook-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flipbook-doc + CHECK_RESULT $? 0 0 "remove texlive-flipbook-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flipbook.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flipbook.sh new file mode 100644 index 0000000000000000000000000000000000000000..44c597d528916c1284c2177872b6df8aed5fa46b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flipbook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flipbook | grep -v \.src | grep texlive-flipbook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flipbook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flipbook + CHECK_RESULT $? 0 0 "install texlive-flipbook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flipbook + CHECK_RESULT $? 0 0 "remove texlive-flipbook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flippdf-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flippdf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..316d508edbcc2776566bea1e7ccb7e01a0c7b46d --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flippdf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flippdf-doc | grep -v \.src | grep texlive-flippdf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flippdf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flippdf-doc + CHECK_RESULT $? 0 0 "install texlive-flippdf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flippdf-doc + CHECK_RESULT $? 0 0 "remove texlive-flippdf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flippdf.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flippdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..70b202362ef47163147aa3404a2edefc68c73472 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flippdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flippdf | grep -v \.src | grep texlive-flippdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flippdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flippdf + CHECK_RESULT $? 0 0 "install texlive-flippdf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flippdf + CHECK_RESULT $? 0 0 "remove texlive-flippdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-float-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-float-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e21516a6f013c0ce52a2f62a032436d234401f09 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-float-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-float-doc | grep -v \.src | grep texlive-float-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-float-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-float-doc + CHECK_RESULT $? 0 0 "install texlive-float-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-float-doc + CHECK_RESULT $? 0 0 "remove texlive-float-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-float.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-float.sh new file mode 100644 index 0000000000000000000000000000000000000000..a32d6e9e34cb0c27b8849c041f459a7edc40b406 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-float.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-float | grep -v \.src | grep texlive-float + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-float" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-float + CHECK_RESULT $? 0 0 "install texlive-float failed" + SLEEP_WAIT 1 + dnf remove -y texlive-float + CHECK_RESULT $? 0 0 "remove texlive-float failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatflt-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatflt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b41335699b43f8e3f08126ac3b459289fec894d1 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatflt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-floatflt-doc | grep -v \.src | grep texlive-floatflt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-floatflt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-floatflt-doc + CHECK_RESULT $? 0 0 "install texlive-floatflt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-floatflt-doc + CHECK_RESULT $? 0 0 "remove texlive-floatflt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatflt.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatflt.sh new file mode 100644 index 0000000000000000000000000000000000000000..fac0771ce11f92d3e606852213b58bf172461281 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatflt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-floatflt | grep -v \.src | grep texlive-floatflt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-floatflt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-floatflt + CHECK_RESULT $? 0 0 "install texlive-floatflt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-floatflt + CHECK_RESULT $? 0 0 "remove texlive-floatflt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatrow-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatrow-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..14900f6a916aa924ce971d8b57469bb1be76b3e5 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatrow-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-floatrow-doc | grep -v \.src | grep texlive-floatrow-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-floatrow-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-floatrow-doc + CHECK_RESULT $? 0 0 "install texlive-floatrow-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-floatrow-doc + CHECK_RESULT $? 0 0 "remove texlive-floatrow-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatrow.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatrow.sh new file mode 100644 index 0000000000000000000000000000000000000000..62ac95c3d6128be92e59ab4557388e564a960cce --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-floatrow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-floatrow | grep -v \.src | grep texlive-floatrow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-floatrow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-floatrow + CHECK_RESULT $? 0 0 "install texlive-floatrow failed" + SLEEP_WAIT 1 + dnf remove -y texlive-floatrow + CHECK_RESULT $? 0 0 "remove texlive-floatrow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowchart-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowchart-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..438164b36d85bdebc31dc9fbd0da8d52f6e9f48a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowchart-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flowchart-doc | grep -v \.src | grep texlive-flowchart-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flowchart-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flowchart-doc + CHECK_RESULT $? 0 0 "install texlive-flowchart-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flowchart-doc + CHECK_RESULT $? 0 0 "remove texlive-flowchart-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowchart.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowchart.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bef3317d8fc6a08d8114795a882a32e2c5c7251 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowchart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flowchart | grep -v \.src | grep texlive-flowchart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flowchart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flowchart + CHECK_RESULT $? 0 0 "install texlive-flowchart failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flowchart + CHECK_RESULT $? 0 0 "remove texlive-flowchart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowfram-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowfram-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..380cbbab2c8e226c7e99bfe90f41e574f08a0df1 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowfram-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flowfram-doc | grep -v \.src | grep texlive-flowfram-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flowfram-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flowfram-doc + CHECK_RESULT $? 0 0 "install texlive-flowfram-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flowfram-doc + CHECK_RESULT $? 0 0 "remove texlive-flowfram-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowfram.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowfram.sh new file mode 100644 index 0000000000000000000000000000000000000000..f62312e417c8ad770c6591392b22184d82fcf207 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-flowfram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-flowfram | grep -v \.src | grep texlive-flowfram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-flowfram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-flowfram + CHECK_RESULT $? 0 0 "install texlive-flowfram failed" + SLEEP_WAIT 1 + dnf remove -y texlive-flowfram + CHECK_RESULT $? 0 0 "remove texlive-flowfram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fltpoint-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fltpoint-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..041d999ead13c8de189a44010053afc5c495eb42 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fltpoint-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fltpoint-doc | grep -v \.src | grep texlive-fltpoint-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fltpoint-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fltpoint-doc + CHECK_RESULT $? 0 0 "install texlive-fltpoint-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fltpoint-doc + CHECK_RESULT $? 0 0 "remove texlive-fltpoint-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fltpoint.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fltpoint.sh new file mode 100644 index 0000000000000000000000000000000000000000..dba828298c6898723674a8e738bbd700c98bc3a8 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fltpoint.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fltpoint | grep -v \.src | grep texlive-fltpoint + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fltpoint" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fltpoint + CHECK_RESULT $? 0 0 "install texlive-fltpoint failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fltpoint + CHECK_RESULT $? 0 0 "remove texlive-fltpoint failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmp-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a81db5d2007c8481c440f55c16af270c74e73c6c --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fmp-doc | grep -v \.src | grep texlive-fmp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fmp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fmp-doc + CHECK_RESULT $? 0 0 "install texlive-fmp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fmp-doc + CHECK_RESULT $? 0 0 "remove texlive-fmp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmp.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmp.sh new file mode 100644 index 0000000000000000000000000000000000000000..2be9ecfa73a2067e292e6e99d978ca57263a5faf --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fmp | grep -v \.src | grep texlive-fmp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fmp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fmp + CHECK_RESULT $? 0 0 "install texlive-fmp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fmp + CHECK_RESULT $? 0 0 "remove texlive-fmp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmtcount-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmtcount-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c81e6007159c7e10c9c348cb8e36e20a81cba0b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmtcount-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fmtcount-doc | grep -v \.src | grep texlive-fmtcount-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fmtcount-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fmtcount-doc + CHECK_RESULT $? 0 0 "install texlive-fmtcount-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fmtcount-doc + CHECK_RESULT $? 0 0 "remove texlive-fmtcount-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmtcount.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmtcount.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9a5adf057f814aacfb6ccb9ba1d236547a51944 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fmtcount.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fmtcount | grep -v \.src | grep texlive-fmtcount + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fmtcount" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fmtcount + CHECK_RESULT $? 0 0 "install texlive-fmtcount failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fmtcount + CHECK_RESULT $? 0 0 "remove texlive-fmtcount failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fn2end-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fn2end-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2873d2789fc4b5884ea89c72fc68b7bcbccde260 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fn2end-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fn2end-doc | grep -v \.src | grep texlive-fn2end-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fn2end-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fn2end-doc + CHECK_RESULT $? 0 0 "install texlive-fn2end-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fn2end-doc + CHECK_RESULT $? 0 0 "remove texlive-fn2end-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fn2end.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fn2end.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a9941bb70975a830f72f65466d824d2d53bd7ce --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fn2end.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fn2end | grep -v \.src | grep texlive-fn2end + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fn2end" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fn2end + CHECK_RESULT $? 0 0 "install texlive-fn2end failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fn2end + CHECK_RESULT $? 0 0 "remove texlive-fn2end failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnbreak-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnbreak-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6146cf5d62c4e5335c8a7eebe8c42184a14efa2 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnbreak-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fnbreak-doc | grep -v \.src | grep texlive-fnbreak-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fnbreak-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fnbreak-doc + CHECK_RESULT $? 0 0 "install texlive-fnbreak-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fnbreak-doc + CHECK_RESULT $? 0 0 "remove texlive-fnbreak-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnbreak.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnbreak.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c760ac695e264eecd7348c0aaeec833d41da89e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnbreak.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fnbreak | grep -v \.src | grep texlive-fnbreak + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fnbreak" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fnbreak + CHECK_RESULT $? 0 0 "install texlive-fnbreak failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fnbreak + CHECK_RESULT $? 0 0 "remove texlive-fnbreak failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncychap-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncychap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b5d13a7c6542b0351b41fdff65c9693bf62f8f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncychap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fncychap-doc | grep -v \.src | grep texlive-fncychap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fncychap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fncychap-doc + CHECK_RESULT $? 0 0 "install texlive-fncychap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fncychap-doc + CHECK_RESULT $? 0 0 "remove texlive-fncychap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncychap.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncychap.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c0b39e1e1befc3e9ee139b0843acc655bd10e61 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncychap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fncychap | grep -v \.src | grep texlive-fncychap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fncychap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fncychap + CHECK_RESULT $? 0 0 "install texlive-fncychap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fncychap + CHECK_RESULT $? 0 0 "remove texlive-fncychap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncylab-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncylab-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b535cd22e1448f0d1bb6e07849d6aef0cdc4d270 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncylab-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fncylab-doc | grep -v \.src | grep texlive-fncylab-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fncylab-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fncylab-doc + CHECK_RESULT $? 0 0 "install texlive-fncylab-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fncylab-doc + CHECK_RESULT $? 0 0 "remove texlive-fncylab-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncylab.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncylab.sh new file mode 100644 index 0000000000000000000000000000000000000000..bff139386357676132c6c6c97e9dd47e6c20aa0c --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fncylab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fncylab | grep -v \.src | grep texlive-fncylab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fncylab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fncylab + CHECK_RESULT $? 0 0 "install texlive-fncylab failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fncylab + CHECK_RESULT $? 0 0 "remove texlive-fncylab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpara-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpara-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c1773f0c0d25bbcc02f274d741e01fda69a74b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpara-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fnpara-doc | grep -v \.src | grep texlive-fnpara-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fnpara-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fnpara-doc + CHECK_RESULT $? 0 0 "install texlive-fnpara-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fnpara-doc + CHECK_RESULT $? 0 0 "remove texlive-fnpara-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpara.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpara.sh new file mode 100644 index 0000000000000000000000000000000000000000..527546698369b909fc420e3655a897d14939d65d --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpara.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fnpara | grep -v \.src | grep texlive-fnpara + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fnpara" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fnpara + CHECK_RESULT $? 0 0 "install texlive-fnpara failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fnpara + CHECK_RESULT $? 0 0 "remove texlive-fnpara failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpct-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpct-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..277478cc10fc8d7d162c86ba0c3d855b265993ce --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpct-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fnpct-doc | grep -v \.src | grep texlive-fnpct-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fnpct-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fnpct-doc + CHECK_RESULT $? 0 0 "install texlive-fnpct-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fnpct-doc + CHECK_RESULT $? 0 0 "remove texlive-fnpct-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpct.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpct.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a27494da9d8fda99b7a696b6c3948056c2f45fb --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnpct.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fnpct | grep -v \.src | grep texlive-fnpct + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fnpct" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fnpct + CHECK_RESULT $? 0 0 "install texlive-fnpct failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fnpct + CHECK_RESULT $? 0 0 "remove texlive-fnpct failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnspe.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnspe.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec505a52e8ea2e092374220751ffe8e6f6492b90 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnspe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fnspe | grep -v \.src | grep texlive-fnspe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fnspe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fnspe + CHECK_RESULT $? 0 0 "install texlive-fnspe failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fnspe + CHECK_RESULT $? 0 0 "remove texlive-fnspe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fntproof-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fntproof-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecf54f6e777e29506d5218dee80a61b2d814acec --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fntproof-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fntproof-doc | grep -v \.src | grep texlive-fntproof-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fntproof-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fntproof-doc + CHECK_RESULT $? 0 0 "install texlive-fntproof-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fntproof-doc + CHECK_RESULT $? 0 0 "remove texlive-fntproof-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fntproof.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fntproof.sh new file mode 100644 index 0000000000000000000000000000000000000000..609a562ab848923eef4c65b9900113ea10bf825b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fntproof.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fntproof | grep -v \.src | grep texlive-fntproof + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fntproof" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fntproof + CHECK_RESULT $? 0 0 "install texlive-fntproof failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fntproof + CHECK_RESULT $? 0 0 "remove texlive-fntproof failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnumprint-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnumprint-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..308cae45cb702bb389590f364c4bea63c9a76ef2 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnumprint-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fnumprint-doc | grep -v \.src | grep texlive-fnumprint-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fnumprint-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fnumprint-doc + CHECK_RESULT $? 0 0 "install texlive-fnumprint-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fnumprint-doc + CHECK_RESULT $? 0 0 "remove texlive-fnumprint-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnumprint.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnumprint.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5879046d9941574e08ea300ddf3a5eddb568072 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fnumprint.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fnumprint | grep -v \.src | grep texlive-fnumprint + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fnumprint" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fnumprint + CHECK_RESULT $? 0 0 "install texlive-fnumprint failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fnumprint + CHECK_RESULT $? 0 0 "remove texlive-fnumprint failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foekfont-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foekfont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c758443c55cb05d7b0b29f16af4ceebfb8984da --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foekfont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-foekfont-doc | grep -v \.src | grep texlive-foekfont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-foekfont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-foekfont-doc + CHECK_RESULT $? 0 0 "install texlive-foekfont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-foekfont-doc + CHECK_RESULT $? 0 0 "remove texlive-foekfont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foekfont.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foekfont.sh new file mode 100644 index 0000000000000000000000000000000000000000..810154d1147917de4f32ee108a73f5d021f4dcef --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foekfont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-foekfont | grep -v \.src | grep texlive-foekfont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-foekfont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-foekfont + CHECK_RESULT $? 0 0 "install texlive-foekfont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-foekfont + CHECK_RESULT $? 0 0 "remove texlive-foekfont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foilhtml-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foilhtml-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a88fb19dcfdecc9319b2b7a26ecee51a9634c2a6 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foilhtml-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-foilhtml-doc | grep -v \.src | grep texlive-foilhtml-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-foilhtml-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-foilhtml-doc + CHECK_RESULT $? 0 0 "install texlive-foilhtml-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-foilhtml-doc + CHECK_RESULT $? 0 0 "remove texlive-foilhtml-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foilhtml.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foilhtml.sh new file mode 100644 index 0000000000000000000000000000000000000000..508aa67e4169b2a35cb1274df147b05b2d432442 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foilhtml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-foilhtml | grep -v \.src | grep texlive-foilhtml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-foilhtml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-foilhtml + CHECK_RESULT $? 0 0 "install texlive-foilhtml failed" + SLEEP_WAIT 1 + dnf remove -y texlive-foilhtml + CHECK_RESULT $? 0 0 "remove texlive-foilhtml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonetika-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonetika-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..766d32bd426b56b26015af7281082cf40d603f8d --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonetika-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fonetika-doc | grep -v \.src | grep texlive-fonetika-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fonetika-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fonetika-doc + CHECK_RESULT $? 0 0 "install texlive-fonetika-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fonetika-doc + CHECK_RESULT $? 0 0 "remove texlive-fonetika-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonetika.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonetika.sh new file mode 100644 index 0000000000000000000000000000000000000000..c79e11524c57f5c0a7d37c882a52e9b8b173ea73 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonetika.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fonetika | grep -v \.src | grep texlive-fonetika + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fonetika" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fonetika + CHECK_RESULT $? 0 0 "install texlive-fonetika failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fonetika + CHECK_RESULT $? 0 0 "remove texlive-fonetika failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..446e030594e3f895eb3dcae6ce407819dffdf388 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-font-change-doc | grep -v \.src | grep texlive-font-change-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-font-change-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-font-change-doc + CHECK_RESULT $? 0 0 "install texlive-font-change-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-font-change-doc + CHECK_RESULT $? 0 0 "remove texlive-font-change-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change-xetex-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change-xetex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9936beb07440973a601fd570e01117c6729c0c4d --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change-xetex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-font-change-xetex-doc | grep -v \.src | grep texlive-font-change-xetex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-font-change-xetex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-font-change-xetex-doc + CHECK_RESULT $? 0 0 "install texlive-font-change-xetex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-font-change-xetex-doc + CHECK_RESULT $? 0 0 "remove texlive-font-change-xetex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change-xetex.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change-xetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6e3476f07ef91f447f88e200754466068b30f0a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change-xetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-font-change-xetex | grep -v \.src | grep texlive-font-change-xetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-font-change-xetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-font-change-xetex + CHECK_RESULT $? 0 0 "install texlive-font-change-xetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-font-change-xetex + CHECK_RESULT $? 0 0 "remove texlive-font-change-xetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change.sh new file mode 100644 index 0000000000000000000000000000000000000000..83e728b38c73aa25e19ac4dbe26f07d1fec0e453 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-font-change.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-font-change | grep -v \.src | grep texlive-font-change + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-font-change" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-font-change + CHECK_RESULT $? 0 0 "install texlive-font-change failed" + SLEEP_WAIT 1 + dnf remove -y texlive-font-change + CHECK_RESULT $? 0 0 "remove texlive-font-change failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontawesome-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontawesome-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb7a00b14ff4b4aa4919b47986acae2424bc018c --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontawesome-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontawesome-doc | grep -v \.src | grep texlive-fontawesome-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontawesome-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontawesome-doc + CHECK_RESULT $? 0 0 "install texlive-fontawesome-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontawesome-doc + CHECK_RESULT $? 0 0 "remove texlive-fontawesome-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontawesome.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontawesome.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecd05b8fb5781a9c507b1278564a41fd3811f32c --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontawesome.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontawesome | grep -v \.src | grep texlive-fontawesome + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontawesome" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontawesome + CHECK_RESULT $? 0 0 "install texlive-fontawesome failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontawesome + CHECK_RESULT $? 0 0 "remove texlive-fontawesome failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontawesome5.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontawesome5.sh new file mode 100644 index 0000000000000000000000000000000000000000..a81e5c26ea7d9f6e7502daa263ac226ffd8b2726 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontawesome5.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontawesome5 | grep -v \.src | grep texlive-fontawesome5 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontawesome5" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontawesome5 + CHECK_RESULT $? 0 0 "install texlive-fontawesome5 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontawesome5 + CHECK_RESULT $? 0 0 "remove texlive-fontawesome5 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontaxes-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontaxes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4cb454e8cc5639a5bd684f303e5e21d1a4004b19 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontaxes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontaxes-doc | grep -v \.src | grep texlive-fontaxes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontaxes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontaxes-doc + CHECK_RESULT $? 0 0 "install texlive-fontaxes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontaxes-doc + CHECK_RESULT $? 0 0 "remove texlive-fontaxes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontaxes.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontaxes.sh new file mode 100644 index 0000000000000000000000000000000000000000..7734f65b00cce2e9d24e8a853b28184d96f3c040 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontaxes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontaxes | grep -v \.src | grep texlive-fontaxes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontaxes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontaxes + CHECK_RESULT $? 0 0 "install texlive-fontaxes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontaxes + CHECK_RESULT $? 0 0 "remove texlive-fontaxes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontbook-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontbook-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ecab35fd59911cb9d796afc0cca8984ece25acb --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontbook-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontbook-doc | grep -v \.src | grep texlive-fontbook-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontbook-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontbook-doc + CHECK_RESULT $? 0 0 "install texlive-fontbook-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontbook-doc + CHECK_RESULT $? 0 0 "remove texlive-fontbook-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontbook.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontbook.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9a0df0d176501283e3c0f5f9a9633c0192b3f33 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontbook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontbook | grep -v \.src | grep texlive-fontbook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontbook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontbook + CHECK_RESULT $? 0 0 "install texlive-fontbook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontbook + CHECK_RESULT $? 0 0 "remove texlive-fontbook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontch-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontch-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..98cf1eec90214d89450b73b11c7cc7a4c1e76662 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontch-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontch-doc | grep -v \.src | grep texlive-fontch-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontch-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontch-doc + CHECK_RESULT $? 0 0 "install texlive-fontch-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontch-doc + CHECK_RESULT $? 0 0 "remove texlive-fontch-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontch.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontch.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e86395e98ac81cf0cede31cd3d296b8dde5655e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontch | grep -v \.src | grep texlive-fontch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontch + CHECK_RESULT $? 0 0 "install texlive-fontch failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontch + CHECK_RESULT $? 0 0 "remove texlive-fontch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontloader-luaotfload.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontloader-luaotfload.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3729f243f80b34ba610607e544900f6a7b6113b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontloader-luaotfload.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontloader-luaotfload | grep -v \.src | grep texlive-fontloader-luaotfload + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontloader-luaotfload" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontloader-luaotfload + CHECK_RESULT $? 0 0 "install texlive-fontloader-luaotfload failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontloader-luaotfload + CHECK_RESULT $? 0 0 "remove texlive-fontloader-luaotfload failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontmfizz-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontmfizz-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb10007546d983fad34d3ad570e73ef1750eaa3b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontmfizz-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontmfizz-doc | grep -v \.src | grep texlive-fontmfizz-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontmfizz-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontmfizz-doc + CHECK_RESULT $? 0 0 "install texlive-fontmfizz-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontmfizz-doc + CHECK_RESULT $? 0 0 "remove texlive-fontmfizz-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontmfizz.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontmfizz.sh new file mode 100644 index 0000000000000000000000000000000000000000..85f8d223abf78dcb9dabaf821bd7eff4564615e0 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontmfizz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontmfizz | grep -v \.src | grep texlive-fontmfizz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontmfizz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontmfizz + CHECK_RESULT $? 0 0 "install texlive-fontmfizz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontmfizz + CHECK_RESULT $? 0 0 "remove texlive-fontmfizz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontname-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontname-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..90a89408c6860a61f767078015cd3f1f3f0b4300 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontname-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontname-doc | grep -v \.src | grep texlive-fontname-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontname-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontname-doc + CHECK_RESULT $? 0 0 "install texlive-fontname-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontname-doc + CHECK_RESULT $? 0 0 "remove texlive-fontname-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontname.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontname.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe4d146af9037b582e226cdedf9295e7891e9324 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontname.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontname | grep -v \.src | grep texlive-fontname + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontname" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontname + CHECK_RESULT $? 0 0 "install texlive-fontname failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontname + CHECK_RESULT $? 0 0 "remove texlive-fontname failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-churchslavonic-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-churchslavonic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..85ce7e386663d2d393c3545af3be81bbe9a5e01e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-churchslavonic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fonts-churchslavonic-doc | grep -v \.src | grep texlive-fonts-churchslavonic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fonts-churchslavonic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fonts-churchslavonic-doc + CHECK_RESULT $? 0 0 "install texlive-fonts-churchslavonic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fonts-churchslavonic-doc + CHECK_RESULT $? 0 0 "remove texlive-fonts-churchslavonic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-churchslavonic.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-churchslavonic.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb64844787cac06ce7da4c561e139b9da491aece --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-churchslavonic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fonts-churchslavonic | grep -v \.src | grep texlive-fonts-churchslavonic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fonts-churchslavonic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fonts-churchslavonic + CHECK_RESULT $? 0 0 "install texlive-fonts-churchslavonic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fonts-churchslavonic + CHECK_RESULT $? 0 0 "remove texlive-fonts-churchslavonic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-tlwg-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-tlwg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..183412a79b887e6afc7aeef8e9c787a4dfc19a7b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-tlwg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fonts-tlwg-doc | grep -v \.src | grep texlive-fonts-tlwg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fonts-tlwg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fonts-tlwg-doc + CHECK_RESULT $? 0 0 "install texlive-fonts-tlwg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fonts-tlwg-doc + CHECK_RESULT $? 0 0 "remove texlive-fonts-tlwg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-tlwg.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-tlwg.sh new file mode 100644 index 0000000000000000000000000000000000000000..a70ad9b588d58a19db3bd7e9ca6d7e4d3f54bad8 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonts-tlwg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fonts-tlwg | grep -v \.src | grep texlive-fonts-tlwg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fonts-tlwg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fonts-tlwg + CHECK_RESULT $? 0 0 "install texlive-fonts-tlwg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fonts-tlwg + CHECK_RESULT $? 0 0 "remove texlive-fonts-tlwg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontspec-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontspec-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..979cfecf7360e7ec5981d59ade5e4b76930adf3b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontspec-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontspec-doc | grep -v \.src | grep texlive-fontspec-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontspec-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontspec-doc + CHECK_RESULT $? 0 0 "install texlive-fontspec-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontspec-doc + CHECK_RESULT $? 0 0 "remove texlive-fontspec-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontspec.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontspec.sh new file mode 100644 index 0000000000000000000000000000000000000000..320ec373ee00c4b87aef018842095192a671e3b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontspec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontspec | grep -v \.src | grep texlive-fontspec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontspec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontspec + CHECK_RESULT $? 0 0 "install texlive-fontspec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontspec + CHECK_RESULT $? 0 0 "remove texlive-fontspec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonttable-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonttable-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c55e935db1df9348c02ca115fb8f83c1518a000 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonttable-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fonttable-doc | grep -v \.src | grep texlive-fonttable-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fonttable-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fonttable-doc + CHECK_RESULT $? 0 0 "install texlive-fonttable-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fonttable-doc + CHECK_RESULT $? 0 0 "remove texlive-fonttable-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonttable.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonttable.sh new file mode 100644 index 0000000000000000000000000000000000000000..d876012e4dc894e826be9bf6f486ff042db399e3 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fonttable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fonttable | grep -v \.src | grep texlive-fonttable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fonttable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fonttable + CHECK_RESULT $? 0 0 "install texlive-fonttable failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fonttable + CHECK_RESULT $? 0 0 "remove texlive-fonttable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontwrap-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontwrap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a28d64c5b5c7db83f028c8399ae7673fed4d16eb --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontwrap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontwrap-doc | grep -v \.src | grep texlive-fontwrap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontwrap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontwrap-doc + CHECK_RESULT $? 0 0 "install texlive-fontwrap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontwrap-doc + CHECK_RESULT $? 0 0 "remove texlive-fontwrap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontwrap.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontwrap.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b6f6626b3f29a946938516c3742a84285e5a22f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fontwrap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontwrap | grep -v \.src | grep texlive-fontwrap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontwrap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontwrap + CHECK_RESULT $? 0 0 "install texlive-fontwrap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontwrap + CHECK_RESULT $? 0 0 "remove texlive-fontwrap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footbib-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footbib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..34e191b86a6a210555e5efdbaf4961a7f0172e83 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footbib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footbib-doc | grep -v \.src | grep texlive-footbib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footbib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footbib-doc + CHECK_RESULT $? 0 0 "install texlive-footbib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footbib-doc + CHECK_RESULT $? 0 0 "remove texlive-footbib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footbib.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footbib.sh new file mode 100644 index 0000000000000000000000000000000000000000..71e43db47a1b0db596b298f272a5402d007603ea --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footbib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footbib | grep -v \.src | grep texlive-footbib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footbib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footbib + CHECK_RESULT $? 0 0 "install texlive-footbib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footbib + CHECK_RESULT $? 0 0 "remove texlive-footbib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footmisc-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footmisc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0333497e2161b45a4cd1f7e768c57853ca603c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footmisc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footmisc-doc | grep -v \.src | grep texlive-footmisc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footmisc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footmisc-doc + CHECK_RESULT $? 0 0 "install texlive-footmisc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footmisc-doc + CHECK_RESULT $? 0 0 "remove texlive-footmisc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footmisc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footmisc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f8a0586953535be84d55b9475124f04a56bac22 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footmisc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footmisc | grep -v \.src | grep texlive-footmisc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footmisc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footmisc + CHECK_RESULT $? 0 0 "install texlive-footmisc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footmisc + CHECK_RESULT $? 0 0 "remove texlive-footmisc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footmisx.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footmisx.sh new file mode 100644 index 0000000000000000000000000000000000000000..fce4ec6509ae7872659071af1f211674b4090106 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footmisx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footmisx | grep -v \.src | grep texlive-footmisx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footmisx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footmisx + CHECK_RESULT $? 0 0 "install texlive-footmisx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footmisx + CHECK_RESULT $? 0 0 "remove texlive-footmisx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotebackref-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotebackref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7787ce1c04bb72c06fda4e6854040333d619fa1f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotebackref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footnotebackref-doc | grep -v \.src | grep texlive-footnotebackref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footnotebackref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footnotebackref-doc + CHECK_RESULT $? 0 0 "install texlive-footnotebackref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footnotebackref-doc + CHECK_RESULT $? 0 0 "remove texlive-footnotebackref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotebackref.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotebackref.sh new file mode 100644 index 0000000000000000000000000000000000000000..7602bddd452a8817d38411c94cd2245d7d8d3549 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotebackref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footnotebackref | grep -v \.src | grep texlive-footnotebackref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footnotebackref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footnotebackref + CHECK_RESULT $? 0 0 "install texlive-footnotebackref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footnotebackref + CHECK_RESULT $? 0 0 "remove texlive-footnotebackref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotehyper-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotehyper-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6171b8db16652d06158e5d87838a1609e9d87df --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotehyper-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footnotehyper-doc | grep -v \.src | grep texlive-footnotehyper-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footnotehyper-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footnotehyper-doc + CHECK_RESULT $? 0 0 "install texlive-footnotehyper-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footnotehyper-doc + CHECK_RESULT $? 0 0 "remove texlive-footnotehyper-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotehyper.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotehyper.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf2ed3570c21ee267ae3c54f71737442194e2fa2 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnotehyper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footnotehyper | grep -v \.src | grep texlive-footnotehyper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footnotehyper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footnotehyper + CHECK_RESULT $? 0 0 "install texlive-footnotehyper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footnotehyper + CHECK_RESULT $? 0 0 "remove texlive-footnotehyper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnoterange-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnoterange-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..01e3651076051bd99aa81df5be71d9c488f0d690 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnoterange-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footnoterange-doc | grep -v \.src | grep texlive-footnoterange-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footnoterange-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footnoterange-doc + CHECK_RESULT $? 0 0 "install texlive-footnoterange-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footnoterange-doc + CHECK_RESULT $? 0 0 "remove texlive-footnoterange-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnoterange.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnoterange.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c7ab469e5501eea57c45f34fcc19683f18e993b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnoterange.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footnoterange | grep -v \.src | grep texlive-footnoterange + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footnoterange" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footnoterange + CHECK_RESULT $? 0 0 "install texlive-footnoterange failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footnoterange + CHECK_RESULT $? 0 0 "remove texlive-footnoterange failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnpag-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnpag-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..27f3ddd20ac7b928446ac48155148fa6da1fbac2 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnpag-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footnpag-doc | grep -v \.src | grep texlive-footnpag-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footnpag-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footnpag-doc + CHECK_RESULT $? 0 0 "install texlive-footnpag-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footnpag-doc + CHECK_RESULT $? 0 0 "remove texlive-footnpag-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnpag.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnpag.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fffb45a1f0d228060dce89af05639f2c8f30701 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-footnpag.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-footnpag | grep -v \.src | grep texlive-footnpag + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-footnpag" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-footnpag + CHECK_RESULT $? 0 0 "install texlive-footnpag failed" + SLEEP_WAIT 1 + dnf remove -y texlive-footnpag + CHECK_RESULT $? 0 0 "remove texlive-footnpag failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forarray-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forarray-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..544536b0ce8308f887c0ee3b94e993299102e94b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forarray-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-forarray-doc | grep -v \.src | grep texlive-forarray-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-forarray-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-forarray-doc + CHECK_RESULT $? 0 0 "install texlive-forarray-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-forarray-doc + CHECK_RESULT $? 0 0 "remove texlive-forarray-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forarray.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forarray.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9fa8ef5e3da7dc6463449a3e63f6c0c500fe8cd --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forarray.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-forarray | grep -v \.src | grep texlive-forarray + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-forarray" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-forarray + CHECK_RESULT $? 0 0 "install texlive-forarray failed" + SLEEP_WAIT 1 + dnf remove -y texlive-forarray + CHECK_RESULT $? 0 0 "remove texlive-forarray failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foreign-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foreign-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d57e03af4743db682db7712f13a05a198c796b5 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foreign-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-foreign-doc | grep -v \.src | grep texlive-foreign-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-foreign-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-foreign-doc + CHECK_RESULT $? 0 0 "install texlive-foreign-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-foreign-doc + CHECK_RESULT $? 0 0 "remove texlive-foreign-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foreign.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foreign.sh new file mode 100644 index 0000000000000000000000000000000000000000..349b165816186145a9244dd7f746cfd75bce3ff5 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-foreign.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-foreign | grep -v \.src | grep texlive-foreign + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-foreign" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-foreign + CHECK_RESULT $? 0 0 "install texlive-foreign failed" + SLEEP_WAIT 1 + dnf remove -y texlive-foreign + CHECK_RESULT $? 0 0 "remove texlive-foreign failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forest-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forest-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0773ff043160d6e51885f20fc97fbf2536e703f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forest-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-forest-doc | grep -v \.src | grep texlive-forest-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-forest-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-forest-doc + CHECK_RESULT $? 0 0 "install texlive-forest-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-forest-doc + CHECK_RESULT $? 0 0 "remove texlive-forest-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forest-quickstart-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forest-quickstart-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ffc2eda7f73115f62870b3bb9db5e3902078faa --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forest-quickstart-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-forest-quickstart-doc | grep -v \.src | grep texlive-forest-quickstart-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-forest-quickstart-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-forest-quickstart-doc + CHECK_RESULT $? 0 0 "install texlive-forest-quickstart-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-forest-quickstart-doc + CHECK_RESULT $? 0 0 "remove texlive-forest-quickstart-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forest.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forest.sh new file mode 100644 index 0000000000000000000000000000000000000000..52daedf651a21d2ebca67ccd3fe756c5581b90a4 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forest.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-forest | grep -v \.src | grep texlive-forest + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-forest" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-forest + CHECK_RESULT $? 0 0 "install texlive-forest failed" + SLEEP_WAIT 1 + dnf remove -y texlive-forest + CHECK_RESULT $? 0 0 "remove texlive-forest failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forloop-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forloop-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac5a75a8429fbb22e8e17c9c4d007a0290b48e45 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forloop-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-forloop-doc | grep -v \.src | grep texlive-forloop-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-forloop-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-forloop-doc + CHECK_RESULT $? 0 0 "install texlive-forloop-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-forloop-doc + CHECK_RESULT $? 0 0 "remove texlive-forloop-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forloop.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forloop.sh new file mode 100644 index 0000000000000000000000000000000000000000..75879ae5bb520e906ace3ae60828b265c2fccf5a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forloop.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-forloop | grep -v \.src | grep texlive-forloop + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-forloop" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-forloop + CHECK_RESULT $? 0 0 "install texlive-forloop failed" + SLEEP_WAIT 1 + dnf remove -y texlive-forloop + CHECK_RESULT $? 0 0 "remove texlive-forloop failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formation-latex-ul.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formation-latex-ul.sh new file mode 100644 index 0000000000000000000000000000000000000000..27a0b0b377e7946121358968f6e989947e11b723 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formation-latex-ul.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-formation-latex-ul | grep -v \.src | grep texlive-formation-latex-ul + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-formation-latex-ul" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-formation-latex-ul + CHECK_RESULT $? 0 0 "install texlive-formation-latex-ul failed" + SLEEP_WAIT 1 + dnf remove -y texlive-formation-latex-ul + CHECK_RESULT $? 0 0 "remove texlive-formation-latex-ul failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formlett-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formlett-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e7ab079c748ab2229c89949e4e60b94c371c581 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formlett-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-formlett-doc | grep -v \.src | grep texlive-formlett-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-formlett-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-formlett-doc + CHECK_RESULT $? 0 0 "install texlive-formlett-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-formlett-doc + CHECK_RESULT $? 0 0 "remove texlive-formlett-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formlett.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formlett.sh new file mode 100644 index 0000000000000000000000000000000000000000..ddaf770d32f0e11b495526c09a5baa12d4ba27f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formlett.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-formlett | grep -v \.src | grep texlive-formlett + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-formlett" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-formlett + CHECK_RESULT $? 0 0 "install texlive-formlett failed" + SLEEP_WAIT 1 + dnf remove -y texlive-formlett + CHECK_RESULT $? 0 0 "remove texlive-formlett failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forms16be.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forms16be.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d18a14646f328417fc23f26d81c1dfc2585f5f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-forms16be.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-forms16be | grep -v \.src | grep texlive-forms16be + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-forms16be" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-forms16be + CHECK_RESULT $? 0 0 "install texlive-forms16be failed" + SLEEP_WAIT 1 + dnf remove -y texlive-forms16be + CHECK_RESULT $? 0 0 "remove texlive-forms16be failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formular-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formular-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..51eaf99b4be41fec544a078ae24e8f2c04ccb938 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formular-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-formular-doc | grep -v \.src | grep texlive-formular-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-formular-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-formular-doc + CHECK_RESULT $? 0 0 "install texlive-formular-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-formular-doc + CHECK_RESULT $? 0 0 "remove texlive-formular-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formular.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formular.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c496b8478589a4baaa7b814d0d02e4df658995c --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-formular.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-formular | grep -v \.src | grep texlive-formular + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-formular" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-formular + CHECK_RESULT $? 0 0 "install texlive-formular failed" + SLEEP_WAIT 1 + dnf remove -y texlive-formular + CHECK_RESULT $? 0 0 "remove texlive-formular failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouridx-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouridx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..739cac5917d35b3c2e8a86d5e644ad54b435eec8 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouridx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fouridx-doc | grep -v \.src | grep texlive-fouridx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fouridx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fouridx-doc + CHECK_RESULT $? 0 0 "install texlive-fouridx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fouridx-doc + CHECK_RESULT $? 0 0 "remove texlive-fouridx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouridx.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouridx.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c544f7a094f65b10dfd4fc527e538e39bbb23d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouridx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fouridx | grep -v \.src | grep texlive-fouridx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fouridx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fouridx + CHECK_RESULT $? 0 0 "install texlive-fouridx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fouridx + CHECK_RESULT $? 0 0 "remove texlive-fouridx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fourier-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fourier-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..feed8d1ddf9364620fd7e2ccea0d9b59c9181572 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fourier-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fourier-doc | grep -v \.src | grep texlive-fourier-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fourier-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fourier-doc + CHECK_RESULT $? 0 0 "install texlive-fourier-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fourier-doc + CHECK_RESULT $? 0 0 "remove texlive-fourier-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fourier.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fourier.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f2d715b6a23ebefe2c5b2a59a6d9c3d8458065c --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fourier.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fourier | grep -v \.src | grep texlive-fourier + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fourier" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fourier + CHECK_RESULT $? 0 0 "install texlive-fourier failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fourier + CHECK_RESULT $? 0 0 "remove texlive-fourier failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouriernc-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouriernc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f50d2eb28ebd566a7fa0adb29a38ec9e0d30437e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouriernc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fouriernc-doc | grep -v \.src | grep texlive-fouriernc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fouriernc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fouriernc-doc + CHECK_RESULT $? 0 0 "install texlive-fouriernc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fouriernc-doc + CHECK_RESULT $? 0 0 "remove texlive-fouriernc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouriernc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouriernc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d732848c6d0e8d173bcca2ef78145b92a44f1c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fouriernc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fouriernc | grep -v \.src | grep texlive-fouriernc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fouriernc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fouriernc + CHECK_RESULT $? 0 0 "install texlive-fouriernc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fouriernc + CHECK_RESULT $? 0 0 "remove texlive-fouriernc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fp-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..97774958c4973a402793f334d52de5aa3cd515f9 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fp-doc | grep -v \.src | grep texlive-fp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fp-doc + CHECK_RESULT $? 0 0 "install texlive-fp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fp-doc + CHECK_RESULT $? 0 0 "remove texlive-fp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fp.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fp.sh new file mode 100644 index 0000000000000000000000000000000000000000..3730e0600e634996b044d445bd5cac78fc89a28c --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fp | grep -v \.src | grep texlive-fp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fp + CHECK_RESULT $? 0 0 "install texlive-fp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fp + CHECK_RESULT $? 0 0 "remove texlive-fp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fpl-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fpl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..095d81ede235866e8802f1ac1748b8360045f6db --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fpl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fpl-doc | grep -v \.src | grep texlive-fpl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fpl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fpl-doc + CHECK_RESULT $? 0 0 "install texlive-fpl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fpl-doc + CHECK_RESULT $? 0 0 "remove texlive-fpl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fpl.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fpl.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd1d8ef94d61c739a67699e6d02c49ec40609d2e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fpl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fpl | grep -v \.src | grep texlive-fpl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fpl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fpl + CHECK_RESULT $? 0 0 "install texlive-fpl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fpl + CHECK_RESULT $? 0 0 "remove texlive-fpl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fragments-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fragments-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c491981bbd3bf460201e0df8ee2920fbd5f17dcd --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fragments-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fragments-doc | grep -v \.src | grep texlive-fragments-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fragments-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fragments-doc + CHECK_RESULT $? 0 0 "install texlive-fragments-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fragments-doc + CHECK_RESULT $? 0 0 "remove texlive-fragments-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fragments.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fragments.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6fe83020fab43f53b5e351b36c8e0ab1ba27eae --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fragments.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fragments | grep -v \.src | grep texlive-fragments + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fragments" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fragments + CHECK_RESULT $? 0 0 "install texlive-fragments failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fragments + CHECK_RESULT $? 0 0 "remove texlive-fragments failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frame-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frame-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5c830236b37d1589b28d448f39401c9c4b911a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frame-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frame-doc | grep -v \.src | grep texlive-frame-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frame-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frame-doc + CHECK_RESULT $? 0 0 "install texlive-frame-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frame-doc + CHECK_RESULT $? 0 0 "remove texlive-frame-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frame.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frame.sh new file mode 100644 index 0000000000000000000000000000000000000000..dad6101b0c46ead486b1adf7da9ab2dbadc90e23 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frame.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frame | grep -v \.src | grep texlive-frame + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frame" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frame + CHECK_RESULT $? 0 0 "install texlive-frame failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frame + CHECK_RESULT $? 0 0 "remove texlive-frame failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-framed-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-framed-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..863e852a1f3522b934388737ca460d305362f11d --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-framed-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-framed-doc | grep -v \.src | grep texlive-framed-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-framed-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-framed-doc + CHECK_RESULT $? 0 0 "install texlive-framed-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-framed-doc + CHECK_RESULT $? 0 0 "remove texlive-framed-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-framed.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-framed.sh new file mode 100644 index 0000000000000000000000000000000000000000..aed160cf525a0d3110e9dabf833721fedeed79b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-framed.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-framed | grep -v \.src | grep texlive-framed + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-framed" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-framed + CHECK_RESULT $? 0 0 "install texlive-framed failed" + SLEEP_WAIT 1 + dnf remove -y texlive-framed + CHECK_RESULT $? 0 0 "remove texlive-framed failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-francais-bst-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-francais-bst-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f79bf0790879587b9086b7f751d245d251f27a76 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-francais-bst-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-francais-bst-doc | grep -v \.src | grep texlive-francais-bst-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-francais-bst-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-francais-bst-doc + CHECK_RESULT $? 0 0 "install texlive-francais-bst-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-francais-bst-doc + CHECK_RESULT $? 0 0 "remove texlive-francais-bst-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-francais-bst.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-francais-bst.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d4c9b051f867446101f0549e89893312c93f0c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-francais-bst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-francais-bst | grep -v \.src | grep texlive-francais-bst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-francais-bst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-francais-bst + CHECK_RESULT $? 0 0 "install texlive-francais-bst failed" + SLEEP_WAIT 1 + dnf remove -y texlive-francais-bst + CHECK_RESULT $? 0 0 "remove texlive-francais-bst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frankenstein-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frankenstein-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4eeab9339f1fff777b3557dd9bb1405f05de6ead --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frankenstein-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frankenstein-doc | grep -v \.src | grep texlive-frankenstein-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frankenstein-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frankenstein-doc + CHECK_RESULT $? 0 0 "install texlive-frankenstein-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frankenstein-doc + CHECK_RESULT $? 0 0 "remove texlive-frankenstein-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frankenstein.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frankenstein.sh new file mode 100644 index 0000000000000000000000000000000000000000..233bdedb7e7b6c90bb9f166bb8cc442b845bfb31 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frankenstein.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frankenstein | grep -v \.src | grep texlive-frankenstein + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frankenstein" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frankenstein + CHECK_RESULT $? 0 0 "install texlive-frankenstein failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frankenstein + CHECK_RESULT $? 0 0 "remove texlive-frankenstein failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frcursive-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frcursive-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..754c33782d9fd4d1ca39ddad6f2b0ea7e39f39b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frcursive-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frcursive-doc | grep -v \.src | grep texlive-frcursive-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frcursive-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frcursive-doc + CHECK_RESULT $? 0 0 "install texlive-frcursive-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frcursive-doc + CHECK_RESULT $? 0 0 "remove texlive-frcursive-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frcursive.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frcursive.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae48cdab445f6851a7743fd9642790e56050ec61 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frcursive.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frcursive | grep -v \.src | grep texlive-frcursive + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frcursive" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frcursive + CHECK_RESULT $? 0 0 "install texlive-frcursive failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frcursive + CHECK_RESULT $? 0 0 "remove texlive-frcursive failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frederika2016.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frederika2016.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b7f2facb9e0ff41321a920b33aaaafa9970d92a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frederika2016.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frederika2016 | grep -v \.src | grep texlive-frederika2016 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frederika2016" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frederika2016 + CHECK_RESULT $? 0 0 "install texlive-frederika2016 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frederika2016 + CHECK_RESULT $? 0 0 "remove texlive-frederika2016 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frege-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frege-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5184a04d45629327b2c92ca86882a5ccfbb3767 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frege-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frege-doc | grep -v \.src | grep texlive-frege-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frege-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frege-doc + CHECK_RESULT $? 0 0 "install texlive-frege-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frege-doc + CHECK_RESULT $? 0 0 "remove texlive-frege-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frege.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frege.sh new file mode 100644 index 0000000000000000000000000000000000000000..0eaba165f8681adf869f99a00900d346a5f5c29f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frege.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frege | grep -v \.src | grep texlive-frege + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frege" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frege + CHECK_RESULT $? 0 0 "install texlive-frege failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frege + CHECK_RESULT $? 0 0 "remove texlive-frege failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frletter-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frletter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..de1ad35cffb4d9174d9972aef7b39129663debef --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frletter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frletter-doc | grep -v \.src | grep texlive-frletter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frletter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frletter-doc + CHECK_RESULT $? 0 0 "install texlive-frletter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frletter-doc + CHECK_RESULT $? 0 0 "remove texlive-frletter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frletter.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frletter.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b5fe4d4cc95f2314a2d6bc9e16a28ca94ea64b0 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frletter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frletter | grep -v \.src | grep texlive-frletter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frletter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frletter + CHECK_RESULT $? 0 0 "install texlive-frletter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frletter + CHECK_RESULT $? 0 0 "remove texlive-frletter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frontespizio-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frontespizio-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..68e13a55b42246392f199437f6b742d732dfe96f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frontespizio-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frontespizio-doc | grep -v \.src | grep texlive-frontespizio-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frontespizio-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frontespizio-doc + CHECK_RESULT $? 0 0 "install texlive-frontespizio-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frontespizio-doc + CHECK_RESULT $? 0 0 "remove texlive-frontespizio-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frontespizio.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frontespizio.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7d24671547c2b287d2b80b50bc8cfef5682f67c --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-frontespizio.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frontespizio | grep -v \.src | grep texlive-frontespizio + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frontespizio" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frontespizio + CHECK_RESULT $? 0 0 "install texlive-frontespizio failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frontespizio + CHECK_RESULT $? 0 0 "remove texlive-frontespizio failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftcap-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftcap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f89979b8e574f8dd2073a95dee1ac99915986fe --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftcap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ftcap-doc | grep -v \.src | grep texlive-ftcap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ftcap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ftcap-doc + CHECK_RESULT $? 0 0 "install texlive-ftcap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ftcap-doc + CHECK_RESULT $? 0 0 "remove texlive-ftcap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftcap.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftcap.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ce5419c143d5bcb32d4c1e08fb7e4198d75229a --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftcap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ftcap | grep -v \.src | grep texlive-ftcap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ftcap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ftcap + CHECK_RESULT $? 0 0 "install texlive-ftcap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ftcap + CHECK_RESULT $? 0 0 "remove texlive-ftcap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftnxtra-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftnxtra-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..754ed63da4ffe2ac4ea60a66f0f403c714162dcd --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftnxtra-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ftnxtra-doc | grep -v \.src | grep texlive-ftnxtra-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ftnxtra-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ftnxtra-doc + CHECK_RESULT $? 0 0 "install texlive-ftnxtra-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ftnxtra-doc + CHECK_RESULT $? 0 0 "remove texlive-ftnxtra-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftnxtra.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftnxtra.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bb1b87594be556b91df07e849c6b016e260d2f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-ftnxtra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ftnxtra | grep -v \.src | grep texlive-ftnxtra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ftnxtra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ftnxtra + CHECK_RESULT $? 0 0 "install texlive-ftnxtra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ftnxtra + CHECK_RESULT $? 0 0 "remove texlive-ftnxtra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullblck-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullblck-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fead8749a251ed33ebcca651f6b49d03cf65996d --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullblck-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fullblck-doc | grep -v \.src | grep texlive-fullblck-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fullblck-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fullblck-doc + CHECK_RESULT $? 0 0 "install texlive-fullblck-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fullblck-doc + CHECK_RESULT $? 0 0 "remove texlive-fullblck-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullblck.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullblck.sh new file mode 100644 index 0000000000000000000000000000000000000000..23877b450ec51c94fad01f51cc977a641564bd66 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullblck.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fullblck | grep -v \.src | grep texlive-fullblck + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fullblck" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fullblck + CHECK_RESULT $? 0 0 "install texlive-fullblck failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fullblck + CHECK_RESULT $? 0 0 "remove texlive-fullblck failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullminipage-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullminipage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..43a85b03bfc969423b5665026bc704c6d3d40557 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullminipage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fullminipage-doc | grep -v \.src | grep texlive-fullminipage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fullminipage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fullminipage-doc + CHECK_RESULT $? 0 0 "install texlive-fullminipage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fullminipage-doc + CHECK_RESULT $? 0 0 "remove texlive-fullminipage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullminipage.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullminipage.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a2ad73e4ddf1bb149f7e3eb64a9afd40678fcc5 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullminipage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fullminipage | grep -v \.src | grep texlive-fullminipage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fullminipage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fullminipage + CHECK_RESULT $? 0 0 "install texlive-fullminipage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fullminipage + CHECK_RESULT $? 0 0 "remove texlive-fullminipage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullwidth-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullwidth-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e1e67fd4d2399b9e65a310112ec058cde6d6109 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullwidth-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fullwidth-doc | grep -v \.src | grep texlive-fullwidth-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fullwidth-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fullwidth-doc + CHECK_RESULT $? 0 0 "install texlive-fullwidth-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fullwidth-doc + CHECK_RESULT $? 0 0 "remove texlive-fullwidth-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullwidth.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullwidth.sh new file mode 100644 index 0000000000000000000000000000000000000000..26cb40c86082266cbef280a807ccc893a0067a17 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fullwidth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fullwidth | grep -v \.src | grep texlive-fullwidth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fullwidth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fullwidth + CHECK_RESULT $? 0 0 "install texlive-fullwidth failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fullwidth + CHECK_RESULT $? 0 0 "remove texlive-fullwidth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-functan-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-functan-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1ecab0a0ffdc5b4fa5dbe10cabd5670ca36a309 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-functan-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-functan-doc | grep -v \.src | grep texlive-functan-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-functan-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-functan-doc + CHECK_RESULT $? 0 0 "install texlive-functan-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-functan-doc + CHECK_RESULT $? 0 0 "remove texlive-functan-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-functan.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-functan.sh new file mode 100644 index 0000000000000000000000000000000000000000..49f2a036b1bd9d8a56719da99bef12f0a7e25410 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-functan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-functan | grep -v \.src | grep texlive-functan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-functan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-functan + CHECK_RESULT $? 0 0 "install texlive-functan failed" + SLEEP_WAIT 1 + dnf remove -y texlive-functan + CHECK_RESULT $? 0 0 "remove texlive-functan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-calligra-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-calligra-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..081250c044d9d1c9115e7594d1eec1223b1e6d3f --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-calligra-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fundus-calligra-doc | grep -v \.src | grep texlive-fundus-calligra-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fundus-calligra-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fundus-calligra-doc + CHECK_RESULT $? 0 0 "install texlive-fundus-calligra-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fundus-calligra-doc + CHECK_RESULT $? 0 0 "remove texlive-fundus-calligra-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-calligra.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-calligra.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa02c6b2edfded2d448bd09c7e0a48b6f39e293e --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-calligra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fundus-calligra | grep -v \.src | grep texlive-fundus-calligra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fundus-calligra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fundus-calligra + CHECK_RESULT $? 0 0 "install texlive-fundus-calligra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fundus-calligra + CHECK_RESULT $? 0 0 "remove texlive-fundus-calligra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-cyr.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-cyr.sh new file mode 100644 index 0000000000000000000000000000000000000000..e63b8b525ec197c785a349c1a247103c2faedb9c --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-cyr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fundus-cyr | grep -v \.src | grep texlive-fundus-cyr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fundus-cyr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fundus-cyr + CHECK_RESULT $? 0 0 "install texlive-fundus-cyr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fundus-cyr + CHECK_RESULT $? 0 0 "remove texlive-fundus-cyr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-sueterlin-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-sueterlin-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a4b869ffc93ea40ea8461988f7a51b420a549b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-sueterlin-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fundus-sueterlin-doc | grep -v \.src | grep texlive-fundus-sueterlin-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fundus-sueterlin-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fundus-sueterlin-doc + CHECK_RESULT $? 0 0 "install texlive-fundus-sueterlin-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fundus-sueterlin-doc + CHECK_RESULT $? 0 0 "remove texlive-fundus-sueterlin-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-sueterlin.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-sueterlin.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f3b428762d55053e584163a3dc4568a2a9e28f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fundus-sueterlin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fundus-sueterlin | grep -v \.src | grep texlive-fundus-sueterlin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fundus-sueterlin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fundus-sueterlin + CHECK_RESULT $? 0 0 "install texlive-fundus-sueterlin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fundus-sueterlin + CHECK_RESULT $? 0 0 "remove texlive-fundus-sueterlin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fvextra.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fvextra.sh new file mode 100644 index 0000000000000000000000000000000000000000..215a7b9516df7baa650ca3d3a932d6b60b212811 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fvextra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fvextra | grep -v \.src | grep texlive-fvextra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fvextra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fvextra + CHECK_RESULT $? 0 0 "install texlive-fvextra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fvextra + CHECK_RESULT $? 0 0 "remove texlive-fvextra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fwlw-doc.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fwlw-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bd223132ec7859ae48464c5c3400a55d6009f73 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fwlw-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fwlw-doc | grep -v \.src | grep texlive-fwlw-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fwlw-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fwlw-doc + CHECK_RESULT $? 0 0 "install texlive-fwlw-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fwlw-doc + CHECK_RESULT $? 0 0 "remove texlive-fwlw-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fwlw.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fwlw.sh new file mode 100644 index 0000000000000000000000000000000000000000..d326f410255e324cfdfb26912e56407fed8c3d8b --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-fwlw.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fwlw | grep -v \.src | grep texlive-fwlw + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fwlw" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fwlw + CHECK_RESULT $? 0 0 "install texlive-fwlw failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fwlw + CHECK_RESULT $? 0 0 "remove texlive-fwlw failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-split-i.sh b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-split-i.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3ab8c03168a20e9a94f554d7289c8b7f4ce2169 --- /dev/null +++ b/testcases/cli-test/texlive-split-i/oe_test_texlive-split-i_install_and_remove_texlive-split-i.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-i +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-i | grep -v \.src | grep texlive-split-i + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-i" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-i + CHECK_RESULT $? 0 0 "install texlive-split-i failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-i + CHECK_RESULT $? 0 0 "remove texlive-split-i failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-h2020proposal-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-h2020proposal-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7ab3ff856f783d8215e3ce6601e65dea0f50a00 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-h2020proposal-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-h2020proposal-doc | grep -v \.src | grep texlive-h2020proposal-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-h2020proposal-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-h2020proposal-doc + CHECK_RESULT $? 0 0 "install texlive-h2020proposal-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-h2020proposal-doc + CHECK_RESULT $? 0 0 "remove texlive-h2020proposal-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-h2020proposal.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-h2020proposal.sh new file mode 100644 index 0000000000000000000000000000000000000000..be79ba2184433e9cf0ad04c8ce2c81563bd243ef --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-h2020proposal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-h2020proposal | grep -v \.src | grep texlive-h2020proposal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-h2020proposal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-h2020proposal + CHECK_RESULT $? 0 0 "install texlive-h2020proposal failed" + SLEEP_WAIT 1 + dnf remove -y texlive-h2020proposal + CHECK_RESULT $? 0 0 "remove texlive-h2020proposal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hackthefootline.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hackthefootline.sh new file mode 100644 index 0000000000000000000000000000000000000000..1215a0da5d32d1f45ddfd70f16e3dd542db25fe7 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hackthefootline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hackthefootline | grep -v \.src | grep texlive-hackthefootline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hackthefootline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hackthefootline + CHECK_RESULT $? 0 0 "install texlive-hackthefootline failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hackthefootline + CHECK_RESULT $? 0 0 "remove texlive-hackthefootline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hacm-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hacm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..030f3bdc97f317df02e5ed9b7d2befb5ea47054f --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hacm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hacm-doc | grep -v \.src | grep texlive-hacm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hacm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hacm-doc + CHECK_RESULT $? 0 0 "install texlive-hacm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hacm-doc + CHECK_RESULT $? 0 0 "remove texlive-hacm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hacm.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hacm.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ef9ce21e95efe08a9ca0918ea9755cf6625c274 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hacm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hacm | grep -v \.src | grep texlive-hacm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hacm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hacm + CHECK_RESULT $? 0 0 "install texlive-hacm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hacm + CHECK_RESULT $? 0 0 "remove texlive-hacm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hagenberg-thesis.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hagenberg-thesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..0edc3f3b56b07d875c57f5d5b0c8a9b3f2360838 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hagenberg-thesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hagenberg-thesis | grep -v \.src | grep texlive-hagenberg-thesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hagenberg-thesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hagenberg-thesis + CHECK_RESULT $? 0 0 "install texlive-hagenberg-thesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hagenberg-thesis + CHECK_RESULT $? 0 0 "remove texlive-hagenberg-thesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-halloweenmath.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-halloweenmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d1bc7ecde70c110a0768f4f9d44532fa20997c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-halloweenmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-halloweenmath | grep -v \.src | grep texlive-halloweenmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-halloweenmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-halloweenmath + CHECK_RESULT $? 0 0 "install texlive-halloweenmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-halloweenmath + CHECK_RESULT $? 0 0 "remove texlive-halloweenmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-handin.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-handin.sh new file mode 100644 index 0000000000000000000000000000000000000000..c177573cf7daf14a95bfd2e6b114b9bac8e665f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-handin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-handin | grep -v \.src | grep texlive-handin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-handin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-handin + CHECK_RESULT $? 0 0 "install texlive-handin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-handin + CHECK_RESULT $? 0 0 "remove texlive-handin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-handout-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-handout-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f281ae2f4aa8fa6f6b3ba5b9e6ed83fe1bfcdaf --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-handout-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-handout-doc | grep -v \.src | grep texlive-handout-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-handout-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-handout-doc + CHECK_RESULT $? 0 0 "install texlive-handout-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-handout-doc + CHECK_RESULT $? 0 0 "remove texlive-handout-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-handout.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-handout.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a7d1fecee846431e614eb0fcd5c846ab9a63991 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-handout.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-handout | grep -v \.src | grep texlive-handout + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-handout" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-handout + CHECK_RESULT $? 0 0 "install texlive-handout failed" + SLEEP_WAIT 1 + dnf remove -y texlive-handout + CHECK_RESULT $? 0 0 "remove texlive-handout failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hands.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hands.sh new file mode 100644 index 0000000000000000000000000000000000000000..24ff0fb6f37980392a41c478e71574f08602b335 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hands.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hands | grep -v \.src | grep texlive-hands + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hands" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hands + CHECK_RESULT $? 0 0 "install texlive-hands failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hands + CHECK_RESULT $? 0 0 "remove texlive-hands failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hang-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hang-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8eeec29b3ffee7cddfe03df8b07c8125dd7cc002 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hang-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hang-doc | grep -v \.src | grep texlive-hang-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hang-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hang-doc + CHECK_RESULT $? 0 0 "install texlive-hang-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hang-doc + CHECK_RESULT $? 0 0 "remove texlive-hang-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hang.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hang.sh new file mode 100644 index 0000000000000000000000000000000000000000..41f4e07a54c9608598b3f9fe827009c93f6b1c8c --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hang.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hang | grep -v \.src | grep texlive-hang + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hang" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hang + CHECK_RESULT $? 0 0 "install texlive-hang failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hang + CHECK_RESULT $? 0 0 "remove texlive-hang failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hanging-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hanging-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed16189bf53715dafdf2e0fbc1c9e8ec47a56f74 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hanging-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hanging-doc | grep -v \.src | grep texlive-hanging-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hanging-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hanging-doc + CHECK_RESULT $? 0 0 "install texlive-hanging-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hanging-doc + CHECK_RESULT $? 0 0 "remove texlive-hanging-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hanging.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hanging.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a90f7368798fe4519b3bdcfa5c991a95f3e10ea --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hanging.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hanging | grep -v \.src | grep texlive-hanging + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hanging" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hanging + CHECK_RESULT $? 0 0 "install texlive-hanging failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hanging + CHECK_RESULT $? 0 0 "remove texlive-hanging failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hanoi.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hanoi.sh new file mode 100644 index 0000000000000000000000000000000000000000..a100122fbe9dcbf66060a615be6e93fab6e476c4 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hanoi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hanoi | grep -v \.src | grep texlive-hanoi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hanoi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hanoi + CHECK_RESULT $? 0 0 "install texlive-hanoi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hanoi + CHECK_RESULT $? 0 0 "remove texlive-hanoi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-happy4th-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-happy4th-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c3fedcbd1c4253c2da21db96782c6358feb9c61 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-happy4th-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-happy4th-doc | grep -v \.src | grep texlive-happy4th-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-happy4th-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-happy4th-doc + CHECK_RESULT $? 0 0 "install texlive-happy4th-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-happy4th-doc + CHECK_RESULT $? 0 0 "remove texlive-happy4th-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-har2nat-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-har2nat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b8b087be01497bed80fc8e813c1a33a5a6d9cb9 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-har2nat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-har2nat-doc | grep -v \.src | grep texlive-har2nat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-har2nat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-har2nat-doc + CHECK_RESULT $? 0 0 "install texlive-har2nat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-har2nat-doc + CHECK_RESULT $? 0 0 "remove texlive-har2nat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-har2nat.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-har2nat.sh new file mode 100644 index 0000000000000000000000000000000000000000..afd091bd2b04b96311632f6be8453f0388cb7a98 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-har2nat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-har2nat | grep -v \.src | grep texlive-har2nat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-har2nat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-har2nat + CHECK_RESULT $? 0 0 "install texlive-har2nat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-har2nat + CHECK_RESULT $? 0 0 "remove texlive-har2nat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hardwrap-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hardwrap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad96c4455886d3b6ca159346234d41973efb985a --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hardwrap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hardwrap-doc | grep -v \.src | grep texlive-hardwrap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hardwrap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hardwrap-doc + CHECK_RESULT $? 0 0 "install texlive-hardwrap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hardwrap-doc + CHECK_RESULT $? 0 0 "remove texlive-hardwrap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hardwrap.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hardwrap.sh new file mode 100644 index 0000000000000000000000000000000000000000..9377ff8bf057763f5f24c265e590c676fb66032d --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hardwrap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hardwrap | grep -v \.src | grep texlive-hardwrap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hardwrap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hardwrap + CHECK_RESULT $? 0 0 "install texlive-hardwrap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hardwrap + CHECK_RESULT $? 0 0 "remove texlive-hardwrap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harmony-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harmony-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7774f7ccccd3298248fdf14e4dfeb5dea19200d --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harmony-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harmony-doc | grep -v \.src | grep texlive-harmony-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harmony-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harmony-doc + CHECK_RESULT $? 0 0 "install texlive-harmony-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harmony-doc + CHECK_RESULT $? 0 0 "remove texlive-harmony-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harmony.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harmony.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef3f4eb55be31047ec958ee943308b72c7f3b61c --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harmony.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harmony | grep -v \.src | grep texlive-harmony + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harmony" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harmony + CHECK_RESULT $? 0 0 "install texlive-harmony failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harmony + CHECK_RESULT $? 0 0 "remove texlive-harmony failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harnon-cv-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harnon-cv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3efc54611b6b2fadc345b92fb932c5ae3473906 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harnon-cv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harnon-cv-doc | grep -v \.src | grep texlive-harnon-cv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harnon-cv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harnon-cv-doc + CHECK_RESULT $? 0 0 "install texlive-harnon-cv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harnon-cv-doc + CHECK_RESULT $? 0 0 "remove texlive-harnon-cv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harnon-cv.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harnon-cv.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb806abc0f3840d31ebd18e3053f4e045752052c --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harnon-cv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harnon-cv | grep -v \.src | grep texlive-harnon-cv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harnon-cv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harnon-cv + CHECK_RESULT $? 0 0 "install texlive-harnon-cv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harnon-cv + CHECK_RESULT $? 0 0 "remove texlive-harnon-cv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harpoon-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harpoon-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3b346daf751f9bc238afd19531ec346f442ee8e --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harpoon-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harpoon-doc | grep -v \.src | grep texlive-harpoon-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harpoon-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harpoon-doc + CHECK_RESULT $? 0 0 "install texlive-harpoon-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harpoon-doc + CHECK_RESULT $? 0 0 "remove texlive-harpoon-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harpoon.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harpoon.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5d59fb4e88342a0673790065f92769786d6f618 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harpoon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harpoon | grep -v \.src | grep texlive-harpoon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harpoon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harpoon + CHECK_RESULT $? 0 0 "install texlive-harpoon failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harpoon + CHECK_RESULT $? 0 0 "remove texlive-harpoon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvard-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvard-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb6967a35dbf6dcb65503c0b06b34c6d9bf48ca0 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvard-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harvard-doc | grep -v \.src | grep texlive-harvard-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harvard-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harvard-doc + CHECK_RESULT $? 0 0 "install texlive-harvard-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harvard-doc + CHECK_RESULT $? 0 0 "remove texlive-harvard-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvard.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvard.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fb0a7ec28275baa0fdb0346b3ea8d583ecaba3b --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvard.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harvard | grep -v \.src | grep texlive-harvard + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harvard" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harvard + CHECK_RESULT $? 0 0 "install texlive-harvard failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harvard + CHECK_RESULT $? 0 0 "remove texlive-harvard failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harveyballs-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harveyballs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b7503393fb351cdd200d2bd0fec378f92503747 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harveyballs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harveyballs-doc | grep -v \.src | grep texlive-harveyballs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harveyballs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harveyballs-doc + CHECK_RESULT $? 0 0 "install texlive-harveyballs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harveyballs-doc + CHECK_RESULT $? 0 0 "remove texlive-harveyballs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harveyballs.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harveyballs.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d6f2612efc986280ad5ba0bfe37f6c9d2fdffd7 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harveyballs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harveyballs | grep -v \.src | grep texlive-harveyballs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harveyballs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harveyballs + CHECK_RESULT $? 0 0 "install texlive-harveyballs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harveyballs + CHECK_RESULT $? 0 0 "remove texlive-harveyballs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvmac-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvmac-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..486480d7eb0f4041e3b6f7a1397818cc9afc0221 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvmac-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harvmac-doc | grep -v \.src | grep texlive-harvmac-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harvmac-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harvmac-doc + CHECK_RESULT $? 0 0 "install texlive-harvmac-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harvmac-doc + CHECK_RESULT $? 0 0 "remove texlive-harvmac-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvmac.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvmac.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef2d5f928d2944965b9eafc4b459283ef3e8da8c --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-harvmac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-harvmac | grep -v \.src | grep texlive-harvmac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-harvmac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-harvmac + CHECK_RESULT $? 0 0 "install texlive-harvmac failed" + SLEEP_WAIT 1 + dnf remove -y texlive-harvmac + CHECK_RESULT $? 0 0 "remove texlive-harvmac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hatching-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hatching-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..edff71965eb6b620f35f06b3663cc1f593c75cc1 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hatching-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hatching-doc | grep -v \.src | grep texlive-hatching-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hatching-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hatching-doc + CHECK_RESULT $? 0 0 "install texlive-hatching-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hatching-doc + CHECK_RESULT $? 0 0 "remove texlive-hatching-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hatching.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hatching.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3a6708ce8e4d9db71232b28ed2262febf3b49bf --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hatching.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hatching | grep -v \.src | grep texlive-hatching + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hatching" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hatching + CHECK_RESULT $? 0 0 "install texlive-hatching failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hatching + CHECK_RESULT $? 0 0 "remove texlive-hatching failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hausarbeit-jura-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hausarbeit-jura-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..591cb3dc33bfe0f24cfc546c4fd1df8ad3ba5d28 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hausarbeit-jura-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hausarbeit-jura-doc | grep -v \.src | grep texlive-hausarbeit-jura-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hausarbeit-jura-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hausarbeit-jura-doc + CHECK_RESULT $? 0 0 "install texlive-hausarbeit-jura-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hausarbeit-jura-doc + CHECK_RESULT $? 0 0 "remove texlive-hausarbeit-jura-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hausarbeit-jura.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hausarbeit-jura.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6c46a1cd3ecba4ef6ed0750824e43bf924b4a39 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hausarbeit-jura.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hausarbeit-jura | grep -v \.src | grep texlive-hausarbeit-jura + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hausarbeit-jura" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hausarbeit-jura + CHECK_RESULT $? 0 0 "install texlive-hausarbeit-jura failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hausarbeit-jura + CHECK_RESULT $? 0 0 "remove texlive-hausarbeit-jura failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-havannah-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-havannah-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1d1572272a47e05ac89bb1899bbe1b82f9e63c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-havannah-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-havannah-doc | grep -v \.src | grep texlive-havannah-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-havannah-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-havannah-doc + CHECK_RESULT $? 0 0 "install texlive-havannah-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-havannah-doc + CHECK_RESULT $? 0 0 "remove texlive-havannah-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-havannah.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-havannah.sh new file mode 100644 index 0000000000000000000000000000000000000000..57f26df111fc2c15c32113637d04e3dbf6ad7613 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-havannah.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-havannah | grep -v \.src | grep texlive-havannah + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-havannah" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-havannah + CHECK_RESULT $? 0 0 "install texlive-havannah failed" + SLEEP_WAIT 1 + dnf remove -y texlive-havannah + CHECK_RESULT $? 0 0 "remove texlive-havannah failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hc-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..36f432d5151399bf84df43c40ebaac9a95bf3c41 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hc-doc | grep -v \.src | grep texlive-hc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hc-doc + CHECK_RESULT $? 0 0 "install texlive-hc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hc-doc + CHECK_RESULT $? 0 0 "remove texlive-hc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8d51b0f521c178abf92e377198089ea3f97b7c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hc | grep -v \.src | grep texlive-hc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hc + CHECK_RESULT $? 0 0 "install texlive-hc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hc + CHECK_RESULT $? 0 0 "remove texlive-hc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-he-she-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-he-she-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..09f62d7aec7c8bdae45328c7cd988ec797d3e5b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-he-she-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-he-she-doc | grep -v \.src | grep texlive-he-she-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-he-she-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-he-she-doc + CHECK_RESULT $? 0 0 "install texlive-he-she-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-he-she-doc + CHECK_RESULT $? 0 0 "remove texlive-he-she-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-he-she.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-he-she.sh new file mode 100644 index 0000000000000000000000000000000000000000..267ec5bfeeba7de46fe00330aec42899b3b7a78c --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-he-she.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-he-she | grep -v \.src | grep texlive-he-she + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-he-she" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-he-she + CHECK_RESULT $? 0 0 "install texlive-he-she failed" + SLEEP_WAIT 1 + dnf remove -y texlive-he-she + CHECK_RESULT $? 0 0 "remove texlive-he-she failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hecthese.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hecthese.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e66954f608a34a02f6c6d0c030edc4b65c1b371 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hecthese.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hecthese | grep -v \.src | grep texlive-hecthese + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hecthese" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hecthese + CHECK_RESULT $? 0 0 "install texlive-hecthese failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hecthese + CHECK_RESULT $? 0 0 "remove texlive-hecthese failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-helvetic.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-helvetic.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa7d1a7baa0e8950a32cdf5c9784fbfee8bb802e --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-helvetic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-helvetic | grep -v \.src | grep texlive-helvetic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-helvetic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-helvetic + CHECK_RESULT $? 0 0 "install texlive-helvetic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-helvetic + CHECK_RESULT $? 0 0 "remove texlive-helvetic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hep-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hep-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..44bbacee14a4bc8941ed2433ebcc3813104d8d80 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hep-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hep-doc | grep -v \.src | grep texlive-hep-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hep-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hep-doc + CHECK_RESULT $? 0 0 "install texlive-hep-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hep-doc + CHECK_RESULT $? 0 0 "remove texlive-hep-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hep.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hep.sh new file mode 100644 index 0000000000000000000000000000000000000000..d53d984c20e98eda52d9906c821571f92a4764d1 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hep.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hep | grep -v \.src | grep texlive-hep + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hep" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hep + CHECK_RESULT $? 0 0 "install texlive-hep failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hep + CHECK_RESULT $? 0 0 "remove texlive-hep failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepnames-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepnames-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc635f1837a5e401ebb73e3b1771cc030009686f --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepnames-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hepnames-doc | grep -v \.src | grep texlive-hepnames-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hepnames-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hepnames-doc + CHECK_RESULT $? 0 0 "install texlive-hepnames-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hepnames-doc + CHECK_RESULT $? 0 0 "remove texlive-hepnames-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepnames.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepnames.sh new file mode 100644 index 0000000000000000000000000000000000000000..09d2f99f798c903406e60adc6d1ebba3c2a7e5f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepnames.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hepnames | grep -v \.src | grep texlive-hepnames + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hepnames" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hepnames + CHECK_RESULT $? 0 0 "install texlive-hepnames failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hepnames + CHECK_RESULT $? 0 0 "remove texlive-hepnames failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepparticles-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepparticles-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9a0e08df261b527d35d08eb55987f427ffaddb3 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepparticles-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hepparticles-doc | grep -v \.src | grep texlive-hepparticles-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hepparticles-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hepparticles-doc + CHECK_RESULT $? 0 0 "install texlive-hepparticles-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hepparticles-doc + CHECK_RESULT $? 0 0 "remove texlive-hepparticles-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepparticles.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepparticles.sh new file mode 100644 index 0000000000000000000000000000000000000000..c09cacebf336e28ecc6ad3c9d41d6ec46a13285e --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepparticles.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hepparticles | grep -v \.src | grep texlive-hepparticles + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hepparticles" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hepparticles + CHECK_RESULT $? 0 0 "install texlive-hepparticles failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hepparticles + CHECK_RESULT $? 0 0 "remove texlive-hepparticles failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepthesis-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..062a843ed3388bdb368cf7df76e72bf6985de9ab --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hepthesis-doc | grep -v \.src | grep texlive-hepthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hepthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hepthesis-doc + CHECK_RESULT $? 0 0 "install texlive-hepthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hepthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-hepthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepthesis.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..e68ca57c301ec9b2fbb9d8482ab35e91cb7e1277 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hepthesis | grep -v \.src | grep texlive-hepthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hepthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hepthesis + CHECK_RESULT $? 0 0 "install texlive-hepthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hepthesis + CHECK_RESULT $? 0 0 "remove texlive-hepthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepunits-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepunits-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0764c4e3358d3ea8659c51b5985296f4701b007a --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepunits-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hepunits-doc | grep -v \.src | grep texlive-hepunits-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hepunits-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hepunits-doc + CHECK_RESULT $? 0 0 "install texlive-hepunits-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hepunits-doc + CHECK_RESULT $? 0 0 "remove texlive-hepunits-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepunits.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepunits.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1f2d469b37e7517619b6f852bccd33002794601 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hepunits.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hepunits | grep -v \.src | grep texlive-hepunits + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hepunits" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hepunits + CHECK_RESULT $? 0 0 "install texlive-hepunits failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hepunits + CHECK_RESULT $? 0 0 "remove texlive-hepunits failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-here-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-here-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..063429a1b6df6532f2252c0c5650806499578e99 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-here-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-here-doc | grep -v \.src | grep texlive-here-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-here-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-here-doc + CHECK_RESULT $? 0 0 "install texlive-here-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-here-doc + CHECK_RESULT $? 0 0 "remove texlive-here-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-here.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-here.sh new file mode 100644 index 0000000000000000000000000000000000000000..2130d7ad29579f5ab541292e1dbb5f987ecc53f2 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-here.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-here | grep -v \.src | grep texlive-here + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-here" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-here + CHECK_RESULT $? 0 0 "install texlive-here failed" + SLEEP_WAIT 1 + dnf remove -y texlive-here + CHECK_RESULT $? 0 0 "remove texlive-here failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-heuristica-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-heuristica-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcff9fa94b243a4732cf34819b6fcb783fa2fcbb --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-heuristica-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-heuristica-doc | grep -v \.src | grep texlive-heuristica-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-heuristica-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-heuristica-doc + CHECK_RESULT $? 0 0 "install texlive-heuristica-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-heuristica-doc + CHECK_RESULT $? 0 0 "remove texlive-heuristica-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-heuristica.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-heuristica.sh new file mode 100644 index 0000000000000000000000000000000000000000..865b18d59ce85ec56b3c52acd4579161a9c81478 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-heuristica.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-heuristica | grep -v \.src | grep texlive-heuristica + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-heuristica" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-heuristica + CHECK_RESULT $? 0 0 "install texlive-heuristica failed" + SLEEP_WAIT 1 + dnf remove -y texlive-heuristica + CHECK_RESULT $? 0 0 "remove texlive-heuristica failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hexgame-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hexgame-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0acea3b7a36bf2fcdd4ec7c8c767595eed8a06af --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hexgame-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hexgame-doc | grep -v \.src | grep texlive-hexgame-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hexgame-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hexgame-doc + CHECK_RESULT $? 0 0 "install texlive-hexgame-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hexgame-doc + CHECK_RESULT $? 0 0 "remove texlive-hexgame-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hexgame.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hexgame.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c1af969c76f9f66a906286bbc1359123b73cdde --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hexgame.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hexgame | grep -v \.src | grep texlive-hexgame + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hexgame" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hexgame + CHECK_RESULT $? 0 0 "install texlive-hexgame failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hexgame + CHECK_RESULT $? 0 0 "remove texlive-hexgame failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hf-tikz-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hf-tikz-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7404848cc87afe75923321d279dd635935bed630 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hf-tikz-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hf-tikz-doc | grep -v \.src | grep texlive-hf-tikz-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hf-tikz-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hf-tikz-doc + CHECK_RESULT $? 0 0 "install texlive-hf-tikz-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hf-tikz-doc + CHECK_RESULT $? 0 0 "remove texlive-hf-tikz-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hf-tikz.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hf-tikz.sh new file mode 100644 index 0000000000000000000000000000000000000000..047d9a4a21dc6d2503f51c39503922f277d71312 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hf-tikz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hf-tikz | grep -v \.src | grep texlive-hf-tikz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hf-tikz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hf-tikz + CHECK_RESULT $? 0 0 "install texlive-hf-tikz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hf-tikz + CHECK_RESULT $? 0 0 "remove texlive-hf-tikz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfbright-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfbright-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f271cb889f650f5a98676d4972382e8a481c57fb --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfbright-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hfbright-doc | grep -v \.src | grep texlive-hfbright-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hfbright-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hfbright-doc + CHECK_RESULT $? 0 0 "install texlive-hfbright-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hfbright-doc + CHECK_RESULT $? 0 0 "remove texlive-hfbright-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfbright.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfbright.sh new file mode 100644 index 0000000000000000000000000000000000000000..7acbdf26c28a59355690221854c3d1dfbcb3384e --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfbright.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hfbright | grep -v \.src | grep texlive-hfbright + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hfbright" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hfbright + CHECK_RESULT $? 0 0 "install texlive-hfbright failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hfbright + CHECK_RESULT $? 0 0 "remove texlive-hfbright failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfoldsty-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfoldsty-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ca87e8d2ade5992035a45ed1f7a1d4813157a3a --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfoldsty-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hfoldsty-doc | grep -v \.src | grep texlive-hfoldsty-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hfoldsty-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hfoldsty-doc + CHECK_RESULT $? 0 0 "install texlive-hfoldsty-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hfoldsty-doc + CHECK_RESULT $? 0 0 "remove texlive-hfoldsty-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfoldsty.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfoldsty.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e1219b3a93b3e287fa93f5bd2d49d9ed31fc781 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hfoldsty.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hfoldsty | grep -v \.src | grep texlive-hfoldsty + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hfoldsty" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hfoldsty + CHECK_RESULT $? 0 0 "install texlive-hfoldsty failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hfoldsty + CHECK_RESULT $? 0 0 "remove texlive-hfoldsty failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hhtensor-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hhtensor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f2a6119792e4c2f25944ada333756f7b86df7c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hhtensor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hhtensor-doc | grep -v \.src | grep texlive-hhtensor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hhtensor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hhtensor-doc + CHECK_RESULT $? 0 0 "install texlive-hhtensor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hhtensor-doc + CHECK_RESULT $? 0 0 "remove texlive-hhtensor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hhtensor.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hhtensor.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7048fc29d7f35cb8bee308f60ec8c74d74e7c7c --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hhtensor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hhtensor | grep -v \.src | grep texlive-hhtensor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hhtensor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hhtensor + CHECK_RESULT $? 0 0 "install texlive-hhtensor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hhtensor + CHECK_RESULT $? 0 0 "remove texlive-hhtensor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-histogr-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-histogr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d2f4d922d26146104bdd7f8fe3c3aa968d13019 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-histogr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-histogr-doc | grep -v \.src | grep texlive-histogr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-histogr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-histogr-doc + CHECK_RESULT $? 0 0 "install texlive-histogr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-histogr-doc + CHECK_RESULT $? 0 0 "remove texlive-histogr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-histogr.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-histogr.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c12d58f514874ecfd7c0085959bd918de55cf8b --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-histogr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-histogr | grep -v \.src | grep texlive-histogr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-histogr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-histogr + CHECK_RESULT $? 0 0 "install texlive-histogr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-histogr + CHECK_RESULT $? 0 0 "remove texlive-histogr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-historische-zeitschrift-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-historische-zeitschrift-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d508ee8c91c262009ee9af5e93d842e67745cae --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-historische-zeitschrift-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-historische-zeitschrift-doc | grep -v \.src | grep texlive-historische-zeitschrift-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-historische-zeitschrift-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-historische-zeitschrift-doc + CHECK_RESULT $? 0 0 "install texlive-historische-zeitschrift-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-historische-zeitschrift-doc + CHECK_RESULT $? 0 0 "remove texlive-historische-zeitschrift-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-historische-zeitschrift.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-historische-zeitschrift.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fa54679308eec974d90d3ca1692b1af753e53a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-historische-zeitschrift.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-historische-zeitschrift | grep -v \.src | grep texlive-historische-zeitschrift + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-historische-zeitschrift" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-historische-zeitschrift + CHECK_RESULT $? 0 0 "install texlive-historische-zeitschrift failed" + SLEEP_WAIT 1 + dnf remove -y texlive-historische-zeitschrift + CHECK_RESULT $? 0 0 "remove texlive-historische-zeitschrift failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hitec-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hitec-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..df8c94098a0b0c79ad4f9b611e3cf446be01d578 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hitec-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hitec-doc | grep -v \.src | grep texlive-hitec-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hitec-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hitec-doc + CHECK_RESULT $? 0 0 "install texlive-hitec-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hitec-doc + CHECK_RESULT $? 0 0 "remove texlive-hitec-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hitec.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hitec.sh new file mode 100644 index 0000000000000000000000000000000000000000..779e4a15fa8d996e1e6bd512e98510b2f635bcbe --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hitec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hitec | grep -v \.src | grep texlive-hitec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hitec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hitec + CHECK_RESULT $? 0 0 "install texlive-hitec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hitec + CHECK_RESULT $? 0 0 "remove texlive-hitec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hithesis.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hithesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b02afedea912f6a1d1863c77058fc261b20cf29 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hithesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hithesis | grep -v \.src | grep texlive-hithesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hithesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hithesis + CHECK_RESULT $? 0 0 "install texlive-hithesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hithesis + CHECK_RESULT $? 0 0 "remove texlive-hithesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hletter-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hletter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c318a7104cb164632881485c1e94e3fae0ac96f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hletter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hletter-doc | grep -v \.src | grep texlive-hletter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hletter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hletter-doc + CHECK_RESULT $? 0 0 "install texlive-hletter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hletter-doc + CHECK_RESULT $? 0 0 "remove texlive-hletter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hletter.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hletter.sh new file mode 100644 index 0000000000000000000000000000000000000000..dff3c9099cf30ac05d76bfe6240c98098615bb15 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hletter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hletter | grep -v \.src | grep texlive-hletter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hletter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hletter + CHECK_RESULT $? 0 0 "install texlive-hletter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hletter + CHECK_RESULT $? 0 0 "remove texlive-hletter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hlist.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hlist.sh new file mode 100644 index 0000000000000000000000000000000000000000..a325a0f1c5fe33a4760f785c0205b1df9368fefa --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hlist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hlist | grep -v \.src | grep texlive-hlist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hlist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hlist + CHECK_RESULT $? 0 0 "install texlive-hlist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hlist + CHECK_RESULT $? 0 0 "remove texlive-hlist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobby-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobby-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4773d5e904bb61d50664eccbe712fc5bd4f05c62 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobby-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hobby-doc | grep -v \.src | grep texlive-hobby-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hobby-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hobby-doc + CHECK_RESULT $? 0 0 "install texlive-hobby-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hobby-doc + CHECK_RESULT $? 0 0 "remove texlive-hobby-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobby.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobby.sh new file mode 100644 index 0000000000000000000000000000000000000000..016eb1b91b918430425636d6c391b6b270e98e5c --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobby.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hobby | grep -v \.src | grep texlive-hobby + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hobby" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hobby + CHECK_RESULT $? 0 0 "install texlive-hobby failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hobby + CHECK_RESULT $? 0 0 "remove texlive-hobby failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobete-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobete-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c3249d8611af1aaab9de7ea2fc8373c12d9764c --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobete-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hobete-doc | grep -v \.src | grep texlive-hobete-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hobete-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hobete-doc + CHECK_RESULT $? 0 0 "install texlive-hobete-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hobete-doc + CHECK_RESULT $? 0 0 "remove texlive-hobete-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobete.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobete.sh new file mode 100644 index 0000000000000000000000000000000000000000..082e185f6f476647ae18e59ff666eca2b1cac712 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hobete.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hobete | grep -v \.src | grep texlive-hobete + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hobete" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hobete + CHECK_RESULT $? 0 0 "install texlive-hobete failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hobete + CHECK_RESULT $? 0 0 "remove texlive-hobete failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hook-pre-commit-pkg-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hook-pre-commit-pkg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..61bcebcdd161141be3e7c02bbff2cc6dbd1cf52e --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hook-pre-commit-pkg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hook-pre-commit-pkg-doc | grep -v \.src | grep texlive-hook-pre-commit-pkg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hook-pre-commit-pkg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hook-pre-commit-pkg-doc + CHECK_RESULT $? 0 0 "install texlive-hook-pre-commit-pkg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hook-pre-commit-pkg-doc + CHECK_RESULT $? 0 0 "remove texlive-hook-pre-commit-pkg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-horoscop-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-horoscop-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..20e8d9ebd435826d671f7abeadf26f0ff8c50a40 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-horoscop-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-horoscop-doc | grep -v \.src | grep texlive-horoscop-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-horoscop-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-horoscop-doc + CHECK_RESULT $? 0 0 "install texlive-horoscop-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-horoscop-doc + CHECK_RESULT $? 0 0 "remove texlive-horoscop-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-horoscop.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-horoscop.sh new file mode 100644 index 0000000000000000000000000000000000000000..f27f9b675660ab0df6853d143f019f9770c745ab --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-horoscop.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-horoscop | grep -v \.src | grep texlive-horoscop + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-horoscop" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-horoscop + CHECK_RESULT $? 0 0 "install texlive-horoscop failed" + SLEEP_WAIT 1 + dnf remove -y texlive-horoscop + CHECK_RESULT $? 0 0 "remove texlive-horoscop failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hpsdiss-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hpsdiss-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..264a03ca8d2032c1adc9c2e1db93107597671af1 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hpsdiss-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hpsdiss-doc | grep -v \.src | grep texlive-hpsdiss-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hpsdiss-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hpsdiss-doc + CHECK_RESULT $? 0 0 "install texlive-hpsdiss-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hpsdiss-doc + CHECK_RESULT $? 0 0 "remove texlive-hpsdiss-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hpsdiss.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hpsdiss.sh new file mode 100644 index 0000000000000000000000000000000000000000..44e99c5b9e132bc1d99948cd75f6993b2067453c --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hpsdiss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hpsdiss | grep -v \.src | grep texlive-hpsdiss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hpsdiss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hpsdiss + CHECK_RESULT $? 0 0 "install texlive-hpsdiss failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hpsdiss + CHECK_RESULT $? 0 0 "remove texlive-hpsdiss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrefhide-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrefhide-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..766fd645cd2a96d36b3b80d56f29638c76614881 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrefhide-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hrefhide-doc | grep -v \.src | grep texlive-hrefhide-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hrefhide-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hrefhide-doc + CHECK_RESULT $? 0 0 "install texlive-hrefhide-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hrefhide-doc + CHECK_RESULT $? 0 0 "remove texlive-hrefhide-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrefhide.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrefhide.sh new file mode 100644 index 0000000000000000000000000000000000000000..892c155acd5fe1d872b3302eebb583136d87b195 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrefhide.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hrefhide | grep -v \.src | grep texlive-hrefhide + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hrefhide" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hrefhide + CHECK_RESULT $? 0 0 "install texlive-hrefhide failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hrefhide + CHECK_RESULT $? 0 0 "remove texlive-hrefhide failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrlatex-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrlatex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c41fee7bc09246cde6ef789176b8223e90ed42c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrlatex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hrlatex-doc | grep -v \.src | grep texlive-hrlatex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hrlatex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hrlatex-doc + CHECK_RESULT $? 0 0 "install texlive-hrlatex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hrlatex-doc + CHECK_RESULT $? 0 0 "remove texlive-hrlatex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrlatex.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrlatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..645dfb8939a9da70b166111bcac06dd8ccfe624a --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hrlatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hrlatex | grep -v \.src | grep texlive-hrlatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hrlatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hrlatex + CHECK_RESULT $? 0 0 "install texlive-hrlatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hrlatex + CHECK_RESULT $? 0 0 "remove texlive-hrlatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hulipsum.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hulipsum.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c343d8cd45da0cd110026936a464be7923c8d82 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hulipsum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hulipsum | grep -v \.src | grep texlive-hulipsum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hulipsum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hulipsum + CHECK_RESULT $? 0 0 "install texlive-hulipsum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hulipsum + CHECK_RESULT $? 0 0 "remove texlive-hulipsum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hustthesis.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hustthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9d3489d044b0f67e8675be8054d19109c983743 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hustthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hustthesis | grep -v \.src | grep texlive-hustthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hustthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hustthesis + CHECK_RESULT $? 0 0 "install texlive-hustthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hustthesis + CHECK_RESULT $? 0 0 "remove texlive-hustthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvfloat-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvfloat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7933e1bad6954ffcdb9ff7c8dd915a11ccd8c5e --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvfloat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hvfloat-doc | grep -v \.src | grep texlive-hvfloat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hvfloat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hvfloat-doc + CHECK_RESULT $? 0 0 "install texlive-hvfloat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hvfloat-doc + CHECK_RESULT $? 0 0 "remove texlive-hvfloat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvfloat.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ed97d9beb82107ff1126eb8a4e6c9c025fcba55 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hvfloat | grep -v \.src | grep texlive-hvfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hvfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hvfloat + CHECK_RESULT $? 0 0 "install texlive-hvfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hvfloat + CHECK_RESULT $? 0 0 "remove texlive-hvfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvindex-doc.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvindex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f32fe2c8bf83e75a6174bb14666d0be0b17cf4aa --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvindex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hvindex-doc | grep -v \.src | grep texlive-hvindex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hvindex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hvindex-doc + CHECK_RESULT $? 0 0 "install texlive-hvindex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hvindex-doc + CHECK_RESULT $? 0 0 "remove texlive-hvindex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvindex.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..c228da1545d022bc150de8122fd7781b1d589213 --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-hvindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hvindex | grep -v \.src | grep texlive-hvindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hvindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hvindex + CHECK_RESULT $? 0 0 "install texlive-hvindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hvindex + CHECK_RESULT $? 0 0 "remove texlive-hvindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-split-k.sh b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-split-k.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a9ddb270163ae34b7ca9fbacb5ce93f3ce1dd1a --- /dev/null +++ b/testcases/cli-test/texlive-split-k/oe_test_texlive-split-k_install_and_remove_texlive-split-k.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-k +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-k | grep -v \.src | grep texlive-split-k + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-k" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-k + CHECK_RESULT $? 0 0 "install texlive-split-k failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-k + CHECK_RESULT $? 0 0 "remove texlive-split-k failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iscram.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iscram.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca44976aede2037308fa253b81bf0e9292084823 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iscram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-iscram | grep -v \.src | grep texlive-iscram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-iscram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-iscram + CHECK_RESULT $? 0 0 "install texlive-iscram failed" + SLEEP_WAIT 1 + dnf remove -y texlive-iscram + CHECK_RESULT $? 0 0 "remove texlive-iscram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..452988adc37b0d55cdf8fe0d49c7cee1f599617d --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-iso-doc | grep -v \.src | grep texlive-iso-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-iso-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-iso-doc + CHECK_RESULT $? 0 0 "install texlive-iso-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-iso-doc + CHECK_RESULT $? 0 0 "remove texlive-iso-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso.sh new file mode 100644 index 0000000000000000000000000000000000000000..862880e53df5e75774634639eccbffefc8a988ed --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-iso | grep -v \.src | grep texlive-iso + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-iso" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-iso + CHECK_RESULT $? 0 0 "install texlive-iso failed" + SLEEP_WAIT 1 + dnf remove -y texlive-iso + CHECK_RESULT $? 0 0 "remove texlive-iso failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso10303-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso10303-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e060f9fdaffb50d484b636e6631e7a97f97a7a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso10303-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-iso10303-doc | grep -v \.src | grep texlive-iso10303-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-iso10303-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-iso10303-doc + CHECK_RESULT $? 0 0 "install texlive-iso10303-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-iso10303-doc + CHECK_RESULT $? 0 0 "remove texlive-iso10303-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso10303.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso10303.sh new file mode 100644 index 0000000000000000000000000000000000000000..b67a7499a94f4edc354b64cb1d82a0dbf349b09a --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iso10303.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-iso10303 | grep -v \.src | grep texlive-iso10303 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-iso10303" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-iso10303 + CHECK_RESULT $? 0 0 "install texlive-iso10303 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-iso10303 + CHECK_RESULT $? 0 0 "remove texlive-iso10303 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodate-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodate-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ddb7eba2ba4a248bdd5f5d5040c9843200b23d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodate-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isodate-doc | grep -v \.src | grep texlive-isodate-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isodate-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isodate-doc + CHECK_RESULT $? 0 0 "install texlive-isodate-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isodate-doc + CHECK_RESULT $? 0 0 "remove texlive-isodate-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodate.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodate.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba6852ec9c40afbfb43c1fa08fb296b3c9ce8d37 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isodate | grep -v \.src | grep texlive-isodate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isodate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isodate + CHECK_RESULT $? 0 0 "install texlive-isodate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isodate + CHECK_RESULT $? 0 0 "remove texlive-isodate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodoc-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..93a0d97921fdbbb2fd1c43d30ad4e5abcb3c6572 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isodoc-doc | grep -v \.src | grep texlive-isodoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isodoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isodoc-doc + CHECK_RESULT $? 0 0 "install texlive-isodoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isodoc-doc + CHECK_RESULT $? 0 0 "remove texlive-isodoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodoc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc73f17c6545e8596156928eb6d4a65a7860224d --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isodoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isodoc | grep -v \.src | grep texlive-isodoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isodoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isodoc + CHECK_RESULT $? 0 0 "install texlive-isodoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isodoc + CHECK_RESULT $? 0 0 "remove texlive-isodoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isomath-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isomath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4f8ecb628f8b95c3330f95c9990f490140b2d6b --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isomath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isomath-doc | grep -v \.src | grep texlive-isomath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isomath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isomath-doc + CHECK_RESULT $? 0 0 "install texlive-isomath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isomath-doc + CHECK_RESULT $? 0 0 "remove texlive-isomath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isomath.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isomath.sh new file mode 100644 index 0000000000000000000000000000000000000000..22500fcde46ea7d972323337a9c8520f5348c391 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isomath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isomath | grep -v \.src | grep texlive-isomath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isomath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isomath + CHECK_RESULT $? 0 0 "install texlive-isomath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isomath + CHECK_RESULT $? 0 0 "remove texlive-isomath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isonums-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isonums-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7b33e828c941a24dd9c4cc1eb2217eac15457a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isonums-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isonums-doc | grep -v \.src | grep texlive-isonums-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isonums-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isonums-doc + CHECK_RESULT $? 0 0 "install texlive-isonums-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isonums-doc + CHECK_RESULT $? 0 0 "remove texlive-isonums-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isonums.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isonums.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9213eb2e63e021878f8ba0b904eb8e7e4fd83a1 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isonums.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isonums | grep -v \.src | grep texlive-isonums + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isonums" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isonums + CHECK_RESULT $? 0 0 "install texlive-isonums failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isonums + CHECK_RESULT $? 0 0 "remove texlive-isonums failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isopt.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isopt.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a7b364a7b8970e4a7a099ec19c77f8f952e73f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isopt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isopt | grep -v \.src | grep texlive-isopt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isopt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isopt + CHECK_RESULT $? 0 0 "install texlive-isopt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isopt + CHECK_RESULT $? 0 0 "remove texlive-isopt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isorot-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isorot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5408f98ee7e63690b3aec85df8da713ebfdc659e --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isorot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isorot-doc | grep -v \.src | grep texlive-isorot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isorot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isorot-doc + CHECK_RESULT $? 0 0 "install texlive-isorot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isorot-doc + CHECK_RESULT $? 0 0 "remove texlive-isorot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isorot.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isorot.sh new file mode 100644 index 0000000000000000000000000000000000000000..bdc530cc3f53b92e7468d85dd89391638409adef --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isorot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isorot | grep -v \.src | grep texlive-isorot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isorot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isorot + CHECK_RESULT $? 0 0 "install texlive-isorot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isorot + CHECK_RESULT $? 0 0 "remove texlive-isorot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isotope-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isotope-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d75b249db84dff36fafeed31a316d27cf67e3074 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isotope-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isotope-doc | grep -v \.src | grep texlive-isotope-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isotope-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isotope-doc + CHECK_RESULT $? 0 0 "install texlive-isotope-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isotope-doc + CHECK_RESULT $? 0 0 "remove texlive-isotope-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isotope.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isotope.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c6fed14047b366bd575297b6f61b4c1b845919c --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-isotope.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-isotope | grep -v \.src | grep texlive-isotope + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-isotope" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-isotope + CHECK_RESULT $? 0 0 "install texlive-isotope failed" + SLEEP_WAIT 1 + dnf remove -y texlive-isotope + CHECK_RESULT $? 0 0 "remove texlive-isotope failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-issuulinks-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-issuulinks-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe67b8e95d86941724c905a44ede04aa1191e384 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-issuulinks-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-issuulinks-doc | grep -v \.src | grep texlive-issuulinks-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-issuulinks-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-issuulinks-doc + CHECK_RESULT $? 0 0 "install texlive-issuulinks-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-issuulinks-doc + CHECK_RESULT $? 0 0 "remove texlive-issuulinks-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-issuulinks.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-issuulinks.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a18fa6a5f2b85baa61e42c4cc02e71044cfebb1 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-issuulinks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-issuulinks | grep -v \.src | grep texlive-issuulinks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-issuulinks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-issuulinks + CHECK_RESULT $? 0 0 "install texlive-issuulinks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-issuulinks + CHECK_RESULT $? 0 0 "remove texlive-issuulinks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-istgame.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-istgame.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab2b360f64584cda5b7c785dd8acc3b20b808f72 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-istgame.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-istgame | grep -v \.src | grep texlive-istgame + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-istgame" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-istgame + CHECK_RESULT $? 0 0 "install texlive-istgame failed" + SLEEP_WAIT 1 + dnf remove -y texlive-istgame + CHECK_RESULT $? 0 0 "remove texlive-istgame failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-itnumpar-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-itnumpar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..af318fa9df26d0442370348f3c14b6fe44a94787 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-itnumpar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-itnumpar-doc | grep -v \.src | grep texlive-itnumpar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-itnumpar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-itnumpar-doc + CHECK_RESULT $? 0 0 "install texlive-itnumpar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-itnumpar-doc + CHECK_RESULT $? 0 0 "remove texlive-itnumpar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-itnumpar.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-itnumpar.sh new file mode 100644 index 0000000000000000000000000000000000000000..c20658383ef0ad3a8af09f23e41e71f273887314 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-itnumpar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-itnumpar | grep -v \.src | grep texlive-itnumpar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-itnumpar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-itnumpar + CHECK_RESULT $? 0 0 "install texlive-itnumpar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-itnumpar + CHECK_RESULT $? 0 0 "remove texlive-itnumpar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwhdp-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwhdp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..227b73be9f5ab1b2d62b5101705ee7ad14fd39c1 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwhdp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-iwhdp-doc | grep -v \.src | grep texlive-iwhdp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-iwhdp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-iwhdp-doc + CHECK_RESULT $? 0 0 "install texlive-iwhdp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-iwhdp-doc + CHECK_RESULT $? 0 0 "remove texlive-iwhdp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwhdp.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwhdp.sh new file mode 100644 index 0000000000000000000000000000000000000000..c88f3da42a73b6843bcdb319bb988dd63456c720 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwhdp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-iwhdp | grep -v \.src | grep texlive-iwhdp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-iwhdp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-iwhdp + CHECK_RESULT $? 0 0 "install texlive-iwhdp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-iwhdp + CHECK_RESULT $? 0 0 "remove texlive-iwhdp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwona-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwona-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce459bf0961d0881dd94d3daf1ae046248c98343 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwona-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-iwona-doc | grep -v \.src | grep texlive-iwona-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-iwona-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-iwona-doc + CHECK_RESULT $? 0 0 "install texlive-iwona-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-iwona-doc + CHECK_RESULT $? 0 0 "remove texlive-iwona-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwona.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwona.sh new file mode 100644 index 0000000000000000000000000000000000000000..c19abee62995e565f2833b556e5deb5acc3eba2b --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-iwona.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-iwona | grep -v \.src | grep texlive-iwona + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-iwona" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-iwona + CHECK_RESULT $? 0 0 "install texlive-iwona failed" + SLEEP_WAIT 1 + dnf remove -y texlive-iwona + CHECK_RESULT $? 0 0 "remove texlive-iwona failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jablantile-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jablantile-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..742462859ae967eb9fccaa5201fa78c8c2f52d48 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jablantile-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jablantile-doc | grep -v \.src | grep texlive-jablantile-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jablantile-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jablantile-doc + CHECK_RESULT $? 0 0 "install texlive-jablantile-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jablantile-doc + CHECK_RESULT $? 0 0 "remove texlive-jablantile-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jablantile.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jablantile.sh new file mode 100644 index 0000000000000000000000000000000000000000..c47db2e61858822034fe41e473e6e41f7556fa10 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jablantile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jablantile | grep -v \.src | grep texlive-jablantile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jablantile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jablantile + CHECK_RESULT $? 0 0 "install texlive-jablantile failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jablantile + CHECK_RESULT $? 0 0 "remove texlive-jablantile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jacow-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jacow-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a31f1686537c9e5a90536a36ccc1ee13f85c131 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jacow-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jacow-doc | grep -v \.src | grep texlive-jacow-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jacow-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jacow-doc + CHECK_RESULT $? 0 0 "install texlive-jacow-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jacow-doc + CHECK_RESULT $? 0 0 "remove texlive-jacow-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jacow.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jacow.sh new file mode 100644 index 0000000000000000000000000000000000000000..0be259cbdef5ec84ee6395eb54aa051a31436370 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jacow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jacow | grep -v \.src | grep texlive-jacow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jacow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jacow + CHECK_RESULT $? 0 0 "install texlive-jacow failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jacow + CHECK_RESULT $? 0 0 "remove texlive-jacow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jamtimes-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jamtimes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce80115150ba6671df20b6a1f01d110bdbc4d2dd --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jamtimes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jamtimes-doc | grep -v \.src | grep texlive-jamtimes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jamtimes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jamtimes-doc + CHECK_RESULT $? 0 0 "install texlive-jamtimes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jamtimes-doc + CHECK_RESULT $? 0 0 "remove texlive-jamtimes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jamtimes.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jamtimes.sh new file mode 100644 index 0000000000000000000000000000000000000000..55d359b57c0850fa516cd386800e58a6578da852 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jamtimes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jamtimes | grep -v \.src | grep texlive-jamtimes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jamtimes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jamtimes + CHECK_RESULT $? 0 0 "install texlive-jamtimes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jamtimes + CHECK_RESULT $? 0 0 "remove texlive-jamtimes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8850649bed1328b3c85a1fe62de7261e6af7af5e --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-japanese-otf-doc | grep -v \.src | grep texlive-japanese-otf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-japanese-otf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-japanese-otf-doc + CHECK_RESULT $? 0 0 "install texlive-japanese-otf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-japanese-otf-doc + CHECK_RESULT $? 0 0 "remove texlive-japanese-otf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-uptex-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-uptex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fbb5ec78902b289182541300bfc1006cd8ffacd --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-uptex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-japanese-otf-uptex-doc | grep -v \.src | grep texlive-japanese-otf-uptex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-japanese-otf-uptex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-japanese-otf-uptex-doc + CHECK_RESULT $? 0 0 "install texlive-japanese-otf-uptex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-japanese-otf-uptex-doc + CHECK_RESULT $? 0 0 "remove texlive-japanese-otf-uptex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-uptex.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-uptex.sh new file mode 100644 index 0000000000000000000000000000000000000000..19d46bcd2e72cf7386fd5fb02b126a4e82e10c49 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf-uptex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-japanese-otf-uptex | grep -v \.src | grep texlive-japanese-otf-uptex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-japanese-otf-uptex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-japanese-otf-uptex + CHECK_RESULT $? 0 0 "install texlive-japanese-otf-uptex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-japanese-otf-uptex + CHECK_RESULT $? 0 0 "remove texlive-japanese-otf-uptex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf.sh new file mode 100644 index 0000000000000000000000000000000000000000..26080354b9eef2e3ecc7e8c18c882c917d1feac2 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-japanese-otf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-japanese-otf | grep -v \.src | grep texlive-japanese-otf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-japanese-otf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-japanese-otf + CHECK_RESULT $? 0 0 "install texlive-japanese-otf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-japanese-otf + CHECK_RESULT $? 0 0 "remove texlive-japanese-otf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jknapltx-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jknapltx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..917ea125ad9c3f2384afdfb69d125183c5f84d56 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jknapltx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jknapltx-doc | grep -v \.src | grep texlive-jknapltx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jknapltx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jknapltx-doc + CHECK_RESULT $? 0 0 "install texlive-jknapltx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jknapltx-doc + CHECK_RESULT $? 0 0 "remove texlive-jknapltx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jknapltx.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jknapltx.sh new file mode 100644 index 0000000000000000000000000000000000000000..3037aed1b17214dd037b0649f6170903eda7b55c --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jknapltx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jknapltx | grep -v \.src | grep texlive-jknapltx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jknapltx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jknapltx + CHECK_RESULT $? 0 0 "install texlive-jknapltx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jknapltx + CHECK_RESULT $? 0 0 "remove texlive-jknapltx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jlabels-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jlabels-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d04bfc329fc7f7a738f4762fae02ec1bcc18ebd --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jlabels-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jlabels-doc | grep -v \.src | grep texlive-jlabels-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jlabels-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jlabels-doc + CHECK_RESULT $? 0 0 "install texlive-jlabels-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jlabels-doc + CHECK_RESULT $? 0 0 "remove texlive-jlabels-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jlabels.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jlabels.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7f1bd8331aea3245b968021b16248e4e0efba95 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jlabels.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jlabels | grep -v \.src | grep texlive-jlabels + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jlabels" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jlabels + CHECK_RESULT $? 0 0 "install texlive-jlabels failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jlabels + CHECK_RESULT $? 0 0 "remove texlive-jlabels failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jlreq.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jlreq.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfa90baea381bdb8b24204d6e8b54a5c68e5f1a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jlreq.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jlreq | grep -v \.src | grep texlive-jlreq + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jlreq" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jlreq + CHECK_RESULT $? 0 0 "install texlive-jlreq failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jlreq + CHECK_RESULT $? 0 0 "remove texlive-jlreq failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jmlr-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jmlr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4754b9e085cffb02b302517f2cec6ac3ebf3408 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jmlr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jmlr-doc | grep -v \.src | grep texlive-jmlr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jmlr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jmlr-doc + CHECK_RESULT $? 0 0 "install texlive-jmlr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jmlr-doc + CHECK_RESULT $? 0 0 "remove texlive-jmlr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jmlr.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jmlr.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ba71fd32c10e893e610d5acfd57a4165840b725 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jmlr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jmlr | grep -v \.src | grep texlive-jmlr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jmlr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jmlr + CHECK_RESULT $? 0 0 "install texlive-jmlr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jmlr + CHECK_RESULT $? 0 0 "remove texlive-jmlr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jmn.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jmn.sh new file mode 100644 index 0000000000000000000000000000000000000000..854c82ef2573a79da88e18d862853edaa00bbb69 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jmn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jmn | grep -v \.src | grep texlive-jmn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jmn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jmn + CHECK_RESULT $? 0 0 "install texlive-jmn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jmn + CHECK_RESULT $? 0 0 "remove texlive-jmn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jneurosci-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jneurosci-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..02d4713e3dac3f57b9035e559310a5e729bd6062 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jneurosci-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jneurosci-doc | grep -v \.src | grep texlive-jneurosci-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jneurosci-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jneurosci-doc + CHECK_RESULT $? 0 0 "install texlive-jneurosci-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jneurosci-doc + CHECK_RESULT $? 0 0 "remove texlive-jneurosci-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jneurosci.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jneurosci.sh new file mode 100644 index 0000000000000000000000000000000000000000..35de91de9474c441ecaff45eee2b2a7f4c30b3fb --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jneurosci.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jneurosci | grep -v \.src | grep texlive-jneurosci + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jneurosci" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jneurosci + CHECK_RESULT $? 0 0 "install texlive-jneurosci failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jneurosci + CHECK_RESULT $? 0 0 "remove texlive-jneurosci failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jnuexam.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jnuexam.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf237ec905f45dea7e96f552454f9e66afd372de --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jnuexam.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jnuexam | grep -v \.src | grep texlive-jnuexam + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jnuexam" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jnuexam + CHECK_RESULT $? 0 0 "install texlive-jnuexam failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jnuexam + CHECK_RESULT $? 0 0 "remove texlive-jnuexam failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jpsj-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jpsj-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b2365666b0a22e44cae9d32c8334e0e80efc079 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jpsj-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jpsj-doc | grep -v \.src | grep texlive-jpsj-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jpsj-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jpsj-doc + CHECK_RESULT $? 0 0 "install texlive-jpsj-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jpsj-doc + CHECK_RESULT $? 0 0 "remove texlive-jpsj-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jpsj.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jpsj.sh new file mode 100644 index 0000000000000000000000000000000000000000..75c44278ec90eba6f2975c0f4b1f4ed8e43c9a8f --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jpsj.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jpsj | grep -v \.src | grep texlive-jpsj + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jpsj" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jpsj + CHECK_RESULT $? 0 0 "install texlive-jpsj failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jpsj + CHECK_RESULT $? 0 0 "remove texlive-jpsj failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-js-misc-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-js-misc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7e61b19ceb1d556c510b862cf514943c95462ae --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-js-misc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-js-misc-doc | grep -v \.src | grep texlive-js-misc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-js-misc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-js-misc-doc + CHECK_RESULT $? 0 0 "install texlive-js-misc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-js-misc-doc + CHECK_RESULT $? 0 0 "remove texlive-js-misc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-js-misc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-js-misc.sh new file mode 100644 index 0000000000000000000000000000000000000000..559b59361305c2f7f6f892492fa2586609c59bb7 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-js-misc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-js-misc | grep -v \.src | grep texlive-js-misc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-js-misc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-js-misc + CHECK_RESULT $? 0 0 "install texlive-js-misc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-js-misc + CHECK_RESULT $? 0 0 "remove texlive-js-misc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jsclasses-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jsclasses-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..92c3ab45d22bac7486e5088ea06f6bfcc52a2d44 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jsclasses-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jsclasses-doc | grep -v \.src | grep texlive-jsclasses-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jsclasses-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jsclasses-doc + CHECK_RESULT $? 0 0 "install texlive-jsclasses-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jsclasses-doc + CHECK_RESULT $? 0 0 "remove texlive-jsclasses-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jsclasses.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jsclasses.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0e77abf423588d6ff080d2bd6f3089ae07640a8 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jsclasses.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jsclasses | grep -v \.src | grep texlive-jsclasses + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jsclasses" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jsclasses + CHECK_RESULT $? 0 0 "install texlive-jsclasses failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jsclasses + CHECK_RESULT $? 0 0 "remove texlive-jsclasses failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jslectureplanner-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jslectureplanner-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..84218aab243c0897fae67fff51188fd902ff5e68 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jslectureplanner-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jslectureplanner-doc | grep -v \.src | grep texlive-jslectureplanner-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jslectureplanner-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jslectureplanner-doc + CHECK_RESULT $? 0 0 "install texlive-jslectureplanner-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jslectureplanner-doc + CHECK_RESULT $? 0 0 "remove texlive-jslectureplanner-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jslectureplanner.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jslectureplanner.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b6ab47021b02dfe0784c902954c2aa8ef0ef969 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jslectureplanner.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jslectureplanner | grep -v \.src | grep texlive-jslectureplanner + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jslectureplanner" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jslectureplanner + CHECK_RESULT $? 0 0 "install texlive-jslectureplanner failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jslectureplanner + CHECK_RESULT $? 0 0 "remove texlive-jslectureplanner failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jumplines-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jumplines-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2869fededd562099b864b30cca64fe4453d8743e --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jumplines-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jumplines-doc | grep -v \.src | grep texlive-jumplines-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jumplines-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jumplines-doc + CHECK_RESULT $? 0 0 "install texlive-jumplines-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jumplines-doc + CHECK_RESULT $? 0 0 "remove texlive-jumplines-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jumplines.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jumplines.sh new file mode 100644 index 0000000000000000000000000000000000000000..3722123c4019e4d62f506cd66246ea8237e965f2 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jumplines.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jumplines | grep -v \.src | grep texlive-jumplines + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jumplines" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jumplines + CHECK_RESULT $? 0 0 "install texlive-jumplines failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jumplines + CHECK_RESULT $? 0 0 "remove texlive-jumplines failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-junicode-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-junicode-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0253bdd27c22b4275967f57adfb33908a30357e --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-junicode-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-junicode-doc | grep -v \.src | grep texlive-junicode-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-junicode-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-junicode-doc + CHECK_RESULT $? 0 0 "install texlive-junicode-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-junicode-doc + CHECK_RESULT $? 0 0 "remove texlive-junicode-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-junicode.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-junicode.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4b535ea6559f3dc55460580ef27d2ac59c21d9a --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-junicode.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-junicode | grep -v \.src | grep texlive-junicode + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-junicode" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-junicode + CHECK_RESULT $? 0 0 "install texlive-junicode failed" + SLEEP_WAIT 1 + dnf remove -y texlive-junicode + CHECK_RESULT $? 0 0 "remove texlive-junicode failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jura-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jura-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9d500a2f6f8ee5da6015b152af2d9a29ad84b0d --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jura-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jura-doc | grep -v \.src | grep texlive-jura-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jura-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jura-doc + CHECK_RESULT $? 0 0 "install texlive-jura-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jura-doc + CHECK_RESULT $? 0 0 "remove texlive-jura-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jura.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jura.sh new file mode 100644 index 0000000000000000000000000000000000000000..c76d03849b2329b01eccac507de5a5dce49d2213 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jura.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jura | grep -v \.src | grep texlive-jura + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jura" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jura + CHECK_RESULT $? 0 0 "install texlive-jura failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jura + CHECK_RESULT $? 0 0 "remove texlive-jura failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juraabbrev-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juraabbrev-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ea49be0e1ff5b163d1a58f5e39ee45553f1fa45 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juraabbrev-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-juraabbrev-doc | grep -v \.src | grep texlive-juraabbrev-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-juraabbrev-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-juraabbrev-doc + CHECK_RESULT $? 0 0 "install texlive-juraabbrev-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-juraabbrev-doc + CHECK_RESULT $? 0 0 "remove texlive-juraabbrev-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juraabbrev.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juraabbrev.sh new file mode 100644 index 0000000000000000000000000000000000000000..8470fc0769f373bd1016fd36f485c0a891638179 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juraabbrev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-juraabbrev | grep -v \.src | grep texlive-juraabbrev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-juraabbrev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-juraabbrev + CHECK_RESULT $? 0 0 "install texlive-juraabbrev failed" + SLEEP_WAIT 1 + dnf remove -y texlive-juraabbrev + CHECK_RESULT $? 0 0 "remove texlive-juraabbrev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurabib-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurabib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f6faa531ce59e71fb0eba39840ed24f96d79d45 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurabib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jurabib-doc | grep -v \.src | grep texlive-jurabib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jurabib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jurabib-doc + CHECK_RESULT $? 0 0 "install texlive-jurabib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jurabib-doc + CHECK_RESULT $? 0 0 "remove texlive-jurabib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurabib.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurabib.sh new file mode 100644 index 0000000000000000000000000000000000000000..ddf7d64f10b1f65d2eadddddb43ad675c1616f97 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurabib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jurabib | grep -v \.src | grep texlive-jurabib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jurabib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jurabib + CHECK_RESULT $? 0 0 "install texlive-jurabib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jurabib + CHECK_RESULT $? 0 0 "remove texlive-jurabib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juramisc-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juramisc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8dccc74f53fc5fd7f42a2c30d0a93db6eb95aeb --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juramisc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-juramisc-doc | grep -v \.src | grep texlive-juramisc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-juramisc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-juramisc-doc + CHECK_RESULT $? 0 0 "install texlive-juramisc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-juramisc-doc + CHECK_RESULT $? 0 0 "remove texlive-juramisc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juramisc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juramisc.sh new file mode 100644 index 0000000000000000000000000000000000000000..800f519b876962499071ef5c3b6e5cea0b1d9621 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-juramisc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-juramisc | grep -v \.src | grep texlive-juramisc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-juramisc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-juramisc + CHECK_RESULT $? 0 0 "install texlive-juramisc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-juramisc + CHECK_RESULT $? 0 0 "remove texlive-juramisc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurarsp-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurarsp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..145f4b5035edad39c269dd067a4995094eef9469 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurarsp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jurarsp-doc | grep -v \.src | grep texlive-jurarsp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jurarsp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jurarsp-doc + CHECK_RESULT $? 0 0 "install texlive-jurarsp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jurarsp-doc + CHECK_RESULT $? 0 0 "remove texlive-jurarsp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurarsp.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurarsp.sh new file mode 100644 index 0000000000000000000000000000000000000000..04cd79cda7dd10f89f9b8fd32f17a7dfe90b5e58 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jurarsp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jurarsp | grep -v \.src | grep texlive-jurarsp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jurarsp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jurarsp + CHECK_RESULT $? 0 0 "install texlive-jurarsp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jurarsp + CHECK_RESULT $? 0 0 "remove texlive-jurarsp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jvlisting-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jvlisting-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c1fa1ac9e4c247dea77b77b23ec24697c85f8fe --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jvlisting-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jvlisting-doc | grep -v \.src | grep texlive-jvlisting-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jvlisting-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jvlisting-doc + CHECK_RESULT $? 0 0 "install texlive-jvlisting-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jvlisting-doc + CHECK_RESULT $? 0 0 "remove texlive-jvlisting-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jvlisting.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jvlisting.sh new file mode 100644 index 0000000000000000000000000000000000000000..4627135c1e8565d3f219610eb8a5324b417de798 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-jvlisting.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jvlisting | grep -v \.src | grep texlive-jvlisting + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jvlisting" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jvlisting + CHECK_RESULT $? 0 0 "install texlive-jvlisting failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jvlisting + CHECK_RESULT $? 0 0 "remove texlive-jvlisting failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kanaparser.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kanaparser.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac8213569a6c0b7516db7ae6fe0cd879850af39f --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kanaparser.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kanaparser | grep -v \.src | grep texlive-kanaparser + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kanaparser" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kanaparser + CHECK_RESULT $? 0 0 "install texlive-kanaparser failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kanaparser + CHECK_RESULT $? 0 0 "remove texlive-kanaparser failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kantlipsum-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kantlipsum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d302293648f6ae91e26fdc3614c8facaa44b7d16 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kantlipsum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kantlipsum-doc | grep -v \.src | grep texlive-kantlipsum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kantlipsum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kantlipsum-doc + CHECK_RESULT $? 0 0 "install texlive-kantlipsum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kantlipsum-doc + CHECK_RESULT $? 0 0 "remove texlive-kantlipsum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kantlipsum.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kantlipsum.sh new file mode 100644 index 0000000000000000000000000000000000000000..d66b1d10d8b5d60b36b21f19d4f5a99d022b6b93 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kantlipsum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kantlipsum | grep -v \.src | grep texlive-kantlipsum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kantlipsum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kantlipsum + CHECK_RESULT $? 0 0 "install texlive-kantlipsum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kantlipsum + CHECK_RESULT $? 0 0 "remove texlive-kantlipsum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaugh-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaugh-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..017b89bdd10e5f525d9e21a3087446436ed4546e --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaugh-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-karnaugh-doc | grep -v \.src | grep texlive-karnaugh-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-karnaugh-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-karnaugh-doc + CHECK_RESULT $? 0 0 "install texlive-karnaugh-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-karnaugh-doc + CHECK_RESULT $? 0 0 "remove texlive-karnaugh-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaugh-map.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaugh-map.sh new file mode 100644 index 0000000000000000000000000000000000000000..941b3360e5f0a468555eb420c786d78d2efa465b --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaugh-map.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-karnaugh-map | grep -v \.src | grep texlive-karnaugh-map + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-karnaugh-map" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-karnaugh-map + CHECK_RESULT $? 0 0 "install texlive-karnaugh-map failed" + SLEEP_WAIT 1 + dnf remove -y texlive-karnaugh-map + CHECK_RESULT $? 0 0 "remove texlive-karnaugh-map failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaugh.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaugh.sh new file mode 100644 index 0000000000000000000000000000000000000000..2004b81e8df652be9aed9e6dfe128a0e3c38b23a --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaugh.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-karnaugh | grep -v \.src | grep texlive-karnaugh + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-karnaugh" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-karnaugh + CHECK_RESULT $? 0 0 "install texlive-karnaugh failed" + SLEEP_WAIT 1 + dnf remove -y texlive-karnaugh + CHECK_RESULT $? 0 0 "remove texlive-karnaugh failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaughmap-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaughmap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..38a720d94658be0c86596221ffa7cc3adbbc0f57 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaughmap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-karnaughmap-doc | grep -v \.src | grep texlive-karnaughmap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-karnaughmap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-karnaughmap-doc + CHECK_RESULT $? 0 0 "install texlive-karnaughmap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-karnaughmap-doc + CHECK_RESULT $? 0 0 "remove texlive-karnaughmap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaughmap.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaughmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..69b52ed707f1d15800849b0876a437f7374f190a --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-karnaughmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-karnaughmap | grep -v \.src | grep texlive-karnaughmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-karnaughmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-karnaughmap + CHECK_RESULT $? 0 0 "install texlive-karnaughmap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-karnaughmap + CHECK_RESULT $? 0 0 "remove texlive-karnaughmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kastrup-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kastrup-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e47f62d9e3e21e2ebd4f70866fd7761a20eebb2 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kastrup-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kastrup-doc | grep -v \.src | grep texlive-kastrup-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kastrup-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kastrup-doc + CHECK_RESULT $? 0 0 "install texlive-kastrup-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kastrup-doc + CHECK_RESULT $? 0 0 "remove texlive-kastrup-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kastrup.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kastrup.sh new file mode 100644 index 0000000000000000000000000000000000000000..97b933c9a34dba7036357368928d3eee8d98dfa9 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kastrup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kastrup | grep -v \.src | grep texlive-kastrup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kastrup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kastrup + CHECK_RESULT $? 0 0 "install texlive-kastrup failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kastrup + CHECK_RESULT $? 0 0 "remove texlive-kastrup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kdgdocs-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kdgdocs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9638c8e0c5f04b19c2ccff372b1191ea8885c26e --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kdgdocs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kdgdocs-doc | grep -v \.src | grep texlive-kdgdocs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kdgdocs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kdgdocs-doc + CHECK_RESULT $? 0 0 "install texlive-kdgdocs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kdgdocs-doc + CHECK_RESULT $? 0 0 "remove texlive-kdgdocs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kdgdocs.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kdgdocs.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4b524c64230e7034012b12c42a33a1e7fd11126 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kdgdocs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kdgdocs | grep -v \.src | grep texlive-kdgdocs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kdgdocs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kdgdocs + CHECK_RESULT $? 0 0 "install texlive-kdgdocs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kdgdocs + CHECK_RESULT $? 0 0 "remove texlive-kdgdocs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerkis-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerkis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ceabfc9c1c6957f69765454fe1f0240d6ade469 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerkis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kerkis-doc | grep -v \.src | grep texlive-kerkis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kerkis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kerkis-doc + CHECK_RESULT $? 0 0 "install texlive-kerkis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kerkis-doc + CHECK_RESULT $? 0 0 "remove texlive-kerkis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerkis.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerkis.sh new file mode 100644 index 0000000000000000000000000000000000000000..349d3ff786711a53a711d42d04a9a94268c9c338 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerkis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kerkis | grep -v \.src | grep texlive-kerkis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kerkis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kerkis + CHECK_RESULT $? 0 0 "install texlive-kerkis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kerkis + CHECK_RESULT $? 0 0 "remove texlive-kerkis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerntest-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerntest-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..68f84b32bc76c310adffe01f03265b2fb105e51f --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerntest-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kerntest-doc | grep -v \.src | grep texlive-kerntest-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kerntest-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kerntest-doc + CHECK_RESULT $? 0 0 "install texlive-kerntest-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kerntest-doc + CHECK_RESULT $? 0 0 "remove texlive-kerntest-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerntest.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerntest.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca502614dbc630b5e07699ad4a4d791beb0f8837 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kerntest.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kerntest | grep -v \.src | grep texlive-kerntest + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kerntest" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kerntest + CHECK_RESULT $? 0 0 "install texlive-kerntest failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kerntest + CHECK_RESULT $? 0 0 "remove texlive-kerntest failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keycommand-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keycommand-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b08ef8387abd61a43dad9d62feb8a7ec6d03bcc0 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keycommand-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keycommand-doc | grep -v \.src | grep texlive-keycommand-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keycommand-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keycommand-doc + CHECK_RESULT $? 0 0 "install texlive-keycommand-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keycommand-doc + CHECK_RESULT $? 0 0 "remove texlive-keycommand-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keycommand.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keycommand.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3d7a87ef7822b2ab7b3e67f34399b6450f99e4a --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keycommand.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keycommand | grep -v \.src | grep texlive-keycommand + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keycommand" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keycommand + CHECK_RESULT $? 0 0 "install texlive-keycommand failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keycommand + CHECK_RESULT $? 0 0 "remove texlive-keycommand failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyfloat.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..5228063b72a7605dabb14e6be221dbced02d4789 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keyfloat | grep -v \.src | grep texlive-keyfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keyfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keyfloat + CHECK_RESULT $? 0 0 "install texlive-keyfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keyfloat + CHECK_RESULT $? 0 0 "remove texlive-keyfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyreader-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyreader-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..21b9a2f7e84330c04b78288d614f34b13f808e0d --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyreader-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keyreader-doc | grep -v \.src | grep texlive-keyreader-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keyreader-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keyreader-doc + CHECK_RESULT $? 0 0 "install texlive-keyreader-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keyreader-doc + CHECK_RESULT $? 0 0 "remove texlive-keyreader-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyreader.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyreader.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5d4c5394de0ff12aabf79e329cce4f1a6c2a6f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyreader.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keyreader | grep -v \.src | grep texlive-keyreader + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keyreader" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keyreader + CHECK_RESULT $? 0 0 "install texlive-keyreader failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keyreader + CHECK_RESULT $? 0 0 "remove texlive-keyreader failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keystroke-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keystroke-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..07443b7d92cffa7aa366f86247bfe32abc867e68 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keystroke-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keystroke-doc | grep -v \.src | grep texlive-keystroke-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keystroke-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keystroke-doc + CHECK_RESULT $? 0 0 "install texlive-keystroke-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keystroke-doc + CHECK_RESULT $? 0 0 "remove texlive-keystroke-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keystroke.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keystroke.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a0432e82f9de5cefa988edcf76f983487fa8bcb --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keystroke.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keystroke | grep -v \.src | grep texlive-keystroke + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keystroke" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keystroke + CHECK_RESULT $? 0 0 "install texlive-keystroke failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keystroke + CHECK_RESULT $? 0 0 "remove texlive-keystroke failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyval2e-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyval2e-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d8032561b5e3fbd1883192f05eb16cecf2f9a11 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyval2e-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keyval2e-doc | grep -v \.src | grep texlive-keyval2e-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keyval2e-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keyval2e-doc + CHECK_RESULT $? 0 0 "install texlive-keyval2e-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keyval2e-doc + CHECK_RESULT $? 0 0 "remove texlive-keyval2e-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyval2e.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyval2e.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ec2630f6f5186af57127f3431302e542bdfb9a0 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyval2e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keyval2e | grep -v \.src | grep texlive-keyval2e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keyval2e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keyval2e + CHECK_RESULT $? 0 0 "install texlive-keyval2e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keyval2e + CHECK_RESULT $? 0 0 "remove texlive-keyval2e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyvaltable-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyvaltable-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..59094a3987764c2f4f64ed56617387eddfc4a7db --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyvaltable-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keyvaltable-doc | grep -v \.src | grep texlive-keyvaltable-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keyvaltable-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keyvaltable-doc + CHECK_RESULT $? 0 0 "install texlive-keyvaltable-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keyvaltable-doc + CHECK_RESULT $? 0 0 "remove texlive-keyvaltable-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyvaltable.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyvaltable.sh new file mode 100644 index 0000000000000000000000000000000000000000..88eafa4887e89909c1ce1d3c5cc8cd279369ad8a --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-keyvaltable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keyvaltable | grep -v \.src | grep texlive-keyvaltable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keyvaltable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keyvaltable + CHECK_RESULT $? 0 0 "install texlive-keyvaltable failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keyvaltable + CHECK_RESULT $? 0 0 "remove texlive-keyvaltable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kix-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kix-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f314f413f473a487e82e1671547e6d143450fc3c --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kix-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kix-doc | grep -v \.src | grep texlive-kix-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kix-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kix-doc + CHECK_RESULT $? 0 0 "install texlive-kix-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kix-doc + CHECK_RESULT $? 0 0 "remove texlive-kix-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kix.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kix.sh new file mode 100644 index 0000000000000000000000000000000000000000..632d56eac887e36ad249ea4e8e7c25e8a3761aac --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kix | grep -v \.src | grep texlive-kix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kix + CHECK_RESULT $? 0 0 "install texlive-kix failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kix + CHECK_RESULT $? 0 0 "remove texlive-kix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kixfont-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kixfont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5dbaa01b8fac891373b8204e1f80e7f88ca16799 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kixfont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kixfont-doc | grep -v \.src | grep texlive-kixfont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kixfont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kixfont-doc + CHECK_RESULT $? 0 0 "install texlive-kixfont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kixfont-doc + CHECK_RESULT $? 0 0 "remove texlive-kixfont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kixfont.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kixfont.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e889d2dccd1d84c96099e923b1b674303706253 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kixfont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kixfont | grep -v \.src | grep texlive-kixfont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kixfont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kixfont + CHECK_RESULT $? 0 0 "install texlive-kixfont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kixfont + CHECK_RESULT $? 0 0 "remove texlive-kixfont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kluwer-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kluwer-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b59d246841c1e6127861f988c8c4aba384437538 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kluwer-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kluwer-doc | grep -v \.src | grep texlive-kluwer-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kluwer-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kluwer-doc + CHECK_RESULT $? 0 0 "install texlive-kluwer-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kluwer-doc + CHECK_RESULT $? 0 0 "remove texlive-kluwer-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kluwer.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kluwer.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cc2b1a66486c75e3bd29ac7340a39710cfbd05b --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kluwer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kluwer | grep -v \.src | grep texlive-kluwer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kluwer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kluwer + CHECK_RESULT $? 0 0 "install texlive-kluwer failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kluwer + CHECK_RESULT $? 0 0 "remove texlive-kluwer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knitting-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knitting-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb187e574a88e80b17fecf6353831bc5f8fe8ad5 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knitting-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-knitting-doc | grep -v \.src | grep texlive-knitting-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-knitting-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-knitting-doc + CHECK_RESULT $? 0 0 "install texlive-knitting-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-knitting-doc + CHECK_RESULT $? 0 0 "remove texlive-knitting-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knitting.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knitting.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd3a1a60794abddf51710d5c003d6d7ac7c90eaa --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knitting.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-knitting | grep -v \.src | grep texlive-knitting + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-knitting" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-knitting + CHECK_RESULT $? 0 0 "install texlive-knitting failed" + SLEEP_WAIT 1 + dnf remove -y texlive-knitting + CHECK_RESULT $? 0 0 "remove texlive-knitting failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knittingpattern-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knittingpattern-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..afe1b69bb1b0186d20d93b07f2258f7f969228e7 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knittingpattern-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-knittingpattern-doc | grep -v \.src | grep texlive-knittingpattern-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-knittingpattern-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-knittingpattern-doc + CHECK_RESULT $? 0 0 "install texlive-knittingpattern-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-knittingpattern-doc + CHECK_RESULT $? 0 0 "remove texlive-knittingpattern-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knittingpattern.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knittingpattern.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc1e2eb9bdbfe6d3de868f369ff475d399ffa6a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knittingpattern.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-knittingpattern | grep -v \.src | grep texlive-knittingpattern + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-knittingpattern" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-knittingpattern + CHECK_RESULT $? 0 0 "install texlive-knittingpattern failed" + SLEEP_WAIT 1 + dnf remove -y texlive-knittingpattern + CHECK_RESULT $? 0 0 "remove texlive-knittingpattern failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knowledge.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knowledge.sh new file mode 100644 index 0000000000000000000000000000000000000000..07e56bc19861f7d521eff95619058c32fb347110 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knowledge.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-knowledge | grep -v \.src | grep texlive-knowledge + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-knowledge" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-knowledge + CHECK_RESULT $? 0 0 "install texlive-knowledge failed" + SLEEP_WAIT 1 + dnf remove -y texlive-knowledge + CHECK_RESULT $? 0 0 "remove texlive-knowledge failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knuth-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knuth-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b907f5fa5f82560456ed72db96e136d26356875 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knuth-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-knuth-doc | grep -v \.src | grep texlive-knuth-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-knuth-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-knuth-doc + CHECK_RESULT $? 0 0 "install texlive-knuth-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-knuth-doc + CHECK_RESULT $? 0 0 "remove texlive-knuth-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knuth-lib.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knuth-lib.sh new file mode 100644 index 0000000000000000000000000000000000000000..09feee564786cde60a4dd61cf0d99ae864de90ab --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knuth-lib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-knuth-lib | grep -v \.src | grep texlive-knuth-lib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-knuth-lib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-knuth-lib + CHECK_RESULT $? 0 0 "install texlive-knuth-lib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-knuth-lib + CHECK_RESULT $? 0 0 "remove texlive-knuth-lib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knuth-local.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knuth-local.sh new file mode 100644 index 0000000000000000000000000000000000000000..580b3612b0645b706922da1ec9d6866523d32af2 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-knuth-local.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-knuth-local | grep -v \.src | grep texlive-knuth-local + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-knuth-local" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-knuth-local + CHECK_RESULT $? 0 0 "install texlive-knuth-local failed" + SLEEP_WAIT 1 + dnf remove -y texlive-knuth-local + CHECK_RESULT $? 0 0 "remove texlive-knuth-local failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-moderncvclassic-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-moderncvclassic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..db3c62608105aa193d0d69f9d60fa76652667c28 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-moderncvclassic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-koma-moderncvclassic-doc | grep -v \.src | grep texlive-koma-moderncvclassic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-koma-moderncvclassic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-koma-moderncvclassic-doc + CHECK_RESULT $? 0 0 "install texlive-koma-moderncvclassic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-koma-moderncvclassic-doc + CHECK_RESULT $? 0 0 "remove texlive-koma-moderncvclassic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-moderncvclassic.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-moderncvclassic.sh new file mode 100644 index 0000000000000000000000000000000000000000..37ce23ed984dcfcb0433f995a8415001c050f63d --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-moderncvclassic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-koma-moderncvclassic | grep -v \.src | grep texlive-koma-moderncvclassic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-koma-moderncvclassic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-koma-moderncvclassic + CHECK_RESULT $? 0 0 "install texlive-koma-moderncvclassic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-koma-moderncvclassic + CHECK_RESULT $? 0 0 "remove texlive-koma-moderncvclassic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script-examples-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script-examples-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d3138034f5ce2dc35d9e52e89afda381690f7a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script-examples-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-koma-script-examples-doc | grep -v \.src | grep texlive-koma-script-examples-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-koma-script-examples-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-koma-script-examples-doc + CHECK_RESULT $? 0 0 "install texlive-koma-script-examples-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-koma-script-examples-doc + CHECK_RESULT $? 0 0 "remove texlive-koma-script-examples-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script-sfs-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script-sfs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..11d8157c8636922c0c46554bb29224c626827455 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script-sfs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-koma-script-sfs-doc | grep -v \.src | grep texlive-koma-script-sfs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-koma-script-sfs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-koma-script-sfs-doc + CHECK_RESULT $? 0 0 "install texlive-koma-script-sfs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-koma-script-sfs-doc + CHECK_RESULT $? 0 0 "remove texlive-koma-script-sfs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script-sfs.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script-sfs.sh new file mode 100644 index 0000000000000000000000000000000000000000..5750423bef2d6783a0cdd28a0c249912652b39f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script-sfs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-koma-script-sfs | grep -v \.src | grep texlive-koma-script-sfs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-koma-script-sfs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-koma-script-sfs + CHECK_RESULT $? 0 0 "install texlive-koma-script-sfs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-koma-script-sfs + CHECK_RESULT $? 0 0 "remove texlive-koma-script-sfs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script.sh new file mode 100644 index 0000000000000000000000000000000000000000..72419c8205554174ce875b5ba621e6973df86d24 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-koma-script.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-koma-script | grep -v \.src | grep texlive-koma-script + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-koma-script" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-koma-script + CHECK_RESULT $? 0 0 "install texlive-koma-script failed" + SLEEP_WAIT 1 + dnf remove -y texlive-koma-script + CHECK_RESULT $? 0 0 "remove texlive-koma-script failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-komacv-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-komacv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aac34144ba9e69f0e4ed0f32bd46b4fa0f109af7 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-komacv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-komacv-doc | grep -v \.src | grep texlive-komacv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-komacv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-komacv-doc + CHECK_RESULT $? 0 0 "install texlive-komacv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-komacv-doc + CHECK_RESULT $? 0 0 "remove texlive-komacv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-komacv-rg.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-komacv-rg.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c9714a966f49a5dfd296c9420a3b000e5b69909 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-komacv-rg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-komacv-rg | grep -v \.src | grep texlive-komacv-rg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-komacv-rg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-komacv-rg + CHECK_RESULT $? 0 0 "install texlive-komacv-rg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-komacv-rg + CHECK_RESULT $? 0 0 "remove texlive-komacv-rg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-komacv.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-komacv.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfa964496e0eac4185907dd64837d00d14cda663 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-komacv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-komacv | grep -v \.src | grep texlive-komacv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-komacv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-komacv + CHECK_RESULT $? 0 0 "install texlive-komacv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-komacv + CHECK_RESULT $? 0 0 "remove texlive-komacv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-oblivoir-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-oblivoir-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0458145013c9baa08d1546bce1b3133c7a3bee05 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-oblivoir-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kotex-oblivoir-doc | grep -v \.src | grep texlive-kotex-oblivoir-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kotex-oblivoir-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kotex-oblivoir-doc + CHECK_RESULT $? 0 0 "install texlive-kotex-oblivoir-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kotex-oblivoir-doc + CHECK_RESULT $? 0 0 "remove texlive-kotex-oblivoir-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-oblivoir.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-oblivoir.sh new file mode 100644 index 0000000000000000000000000000000000000000..eecf733f454ce7f6975e0e5fa59370f406a8a959 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-oblivoir.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kotex-oblivoir | grep -v \.src | grep texlive-kotex-oblivoir + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kotex-oblivoir" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kotex-oblivoir + CHECK_RESULT $? 0 0 "install texlive-kotex-oblivoir failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kotex-oblivoir + CHECK_RESULT $? 0 0 "remove texlive-kotex-oblivoir failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-plain-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-plain-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..354b9441b28de69fb410c5a826c1f16be2cc7e7c --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-plain-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kotex-plain-doc | grep -v \.src | grep texlive-kotex-plain-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kotex-plain-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kotex-plain-doc + CHECK_RESULT $? 0 0 "install texlive-kotex-plain-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kotex-plain-doc + CHECK_RESULT $? 0 0 "remove texlive-kotex-plain-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-plain.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-plain.sh new file mode 100644 index 0000000000000000000000000000000000000000..766a0b7813aa28c90d26cd29bb58ab76339f5903 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-plain.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kotex-plain | grep -v \.src | grep texlive-kotex-plain + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kotex-plain" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kotex-plain + CHECK_RESULT $? 0 0 "install texlive-kotex-plain failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kotex-plain + CHECK_RESULT $? 0 0 "remove texlive-kotex-plain failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-utf-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-utf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1505ff6f8933cd6d51bc25d23686f2957a52e560 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-utf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kotex-utf-doc | grep -v \.src | grep texlive-kotex-utf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kotex-utf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kotex-utf-doc + CHECK_RESULT $? 0 0 "install texlive-kotex-utf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kotex-utf-doc + CHECK_RESULT $? 0 0 "remove texlive-kotex-utf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-utf.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-utf.sh new file mode 100644 index 0000000000000000000000000000000000000000..abf535431329d5373724f4453596b3feecf9a176 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kotex-utf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kotex-utf | grep -v \.src | grep texlive-kotex-utf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kotex-utf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kotex-utf + CHECK_RESULT $? 0 0 "install texlive-kotex-utf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kotex-utf + CHECK_RESULT $? 0 0 "remove texlive-kotex-utf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kpfonts-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kpfonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..29327a31f13ac6119d56ed25bde2bf2e9fa31b5d --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kpfonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kpfonts-doc | grep -v \.src | grep texlive-kpfonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kpfonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kpfonts-doc + CHECK_RESULT $? 0 0 "install texlive-kpfonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kpfonts-doc + CHECK_RESULT $? 0 0 "remove texlive-kpfonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kpfonts.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kpfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..5840a4caaa41680eb6c3eb1fcea2037f74c1c854 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kpfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kpfonts | grep -v \.src | grep texlive-kpfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kpfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kpfonts + CHECK_RESULT $? 0 0 "install texlive-kpfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kpfonts + CHECK_RESULT $? 0 0 "remove texlive-kpfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ksfh_nat.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ksfh_nat.sh new file mode 100644 index 0000000000000000000000000000000000000000..e238b7170f5cc80148f5ae2c768e122894fbe676 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ksfh_nat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ksfh_nat | grep -v \.src | grep texlive-ksfh_nat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ksfh_nat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ksfh_nat + CHECK_RESULT $? 0 0 "install texlive-ksfh_nat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ksfh_nat + CHECK_RESULT $? 0 0 "remove texlive-ksfh_nat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ksp-thesis-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ksp-thesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d684d7e24a903f2eeef2be860d08e8e495ebd85d --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ksp-thesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ksp-thesis-doc | grep -v \.src | grep texlive-ksp-thesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ksp-thesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ksp-thesis-doc + CHECK_RESULT $? 0 0 "install texlive-ksp-thesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ksp-thesis-doc + CHECK_RESULT $? 0 0 "remove texlive-ksp-thesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ksp-thesis.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ksp-thesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..12cbe29f7056010d463f3994ee26c24c360075b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ksp-thesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ksp-thesis | grep -v \.src | grep texlive-ksp-thesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ksp-thesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ksp-thesis + CHECK_RESULT $? 0 0 "install texlive-ksp-thesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ksp-thesis + CHECK_RESULT $? 0 0 "remove texlive-ksp-thesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ktv-texdata-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ktv-texdata-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..107fefef176b67cea81ff11b54dbc8e13fd565a6 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ktv-texdata-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ktv-texdata-doc | grep -v \.src | grep texlive-ktv-texdata-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ktv-texdata-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ktv-texdata-doc + CHECK_RESULT $? 0 0 "install texlive-ktv-texdata-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ktv-texdata-doc + CHECK_RESULT $? 0 0 "remove texlive-ktv-texdata-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ktv-texdata.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ktv-texdata.sh new file mode 100644 index 0000000000000000000000000000000000000000..1302b7169b788e8d52cd57483636087edccc2695 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ktv-texdata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ktv-texdata | grep -v \.src | grep texlive-ktv-texdata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ktv-texdata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ktv-texdata + CHECK_RESULT $? 0 0 "install texlive-ktv-texdata failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ktv-texdata + CHECK_RESULT $? 0 0 "remove texlive-ktv-texdata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ku-template.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ku-template.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9c3c1001906530f189076ddec1520647beea910 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-ku-template.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ku-template | grep -v \.src | grep texlive-ku-template + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ku-template" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ku-template + CHECK_RESULT $? 0 0 "install texlive-ku-template failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ku-template + CHECK_RESULT $? 0 0 "remove texlive-ku-template failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kurdishlipsum.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kurdishlipsum.sh new file mode 100644 index 0000000000000000000000000000000000000000..1abad0c2663bdfdbf2073eec7cbaec00c5898b99 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kurdishlipsum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kurdishlipsum | grep -v \.src | grep texlive-kurdishlipsum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kurdishlipsum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kurdishlipsum + CHECK_RESULT $? 0 0 "install texlive-kurdishlipsum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kurdishlipsum + CHECK_RESULT $? 0 0 "remove texlive-kurdishlipsum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kurier-doc.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kurier-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff6ac12ca15dc8aee4c5cbdc0c9482bb7ff4f158 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kurier-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kurier-doc | grep -v \.src | grep texlive-kurier-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kurier-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kurier-doc + CHECK_RESULT $? 0 0 "install texlive-kurier-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kurier-doc + CHECK_RESULT $? 0 0 "remove texlive-kurier-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kurier.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kurier.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac1032d3bd2483a4c4eeee9139a8ad0189a787b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-kurier.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kurier | grep -v \.src | grep texlive-kurier + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kurier" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kurier + CHECK_RESULT $? 0 0 "install texlive-kurier failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kurier + CHECK_RESULT $? 0 0 "remove texlive-kurier failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-split-m.sh b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-split-m.sh new file mode 100644 index 0000000000000000000000000000000000000000..46f9e768f3bf9a6ceeb67ace4c52d0516d33c3a6 --- /dev/null +++ b/testcases/cli-test/texlive-split-m/oe_test_texlive-split-m_install_and_remove_texlive-split-m.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-m +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-m | grep -v \.src | grep texlive-split-m + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-m" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-m + CHECK_RESULT $? 0 0 "install texlive-split-m failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-m + CHECK_RESULT $? 0 0 "remove texlive-split-m failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderncv-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderncv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fec3d511b2be0a094e7f121565a7f15705ed317 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderncv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moderncv-doc | grep -v \.src | grep texlive-moderncv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moderncv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moderncv-doc + CHECK_RESULT $? 0 0 "install texlive-moderncv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moderncv-doc + CHECK_RESULT $? 0 0 "remove texlive-moderncv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderncv.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderncv.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1fb6a7cc9f258c9e2841c27cbe1599365bc4d88 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderncv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moderncv | grep -v \.src | grep texlive-moderncv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moderncv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moderncv + CHECK_RESULT $? 0 0 "install texlive-moderncv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moderncv + CHECK_RESULT $? 0 0 "remove texlive-moderncv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modernposter.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modernposter.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad43f33607e311b5c45ece003351d285a6e51f88 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modernposter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modernposter | grep -v \.src | grep texlive-modernposter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modernposter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modernposter + CHECK_RESULT $? 0 0 "install texlive-modernposter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modernposter + CHECK_RESULT $? 0 0 "remove texlive-modernposter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderntimeline-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderntimeline-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..90123eeaac20600f3d9f162be2ffe29e750027ea --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderntimeline-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moderntimeline-doc | grep -v \.src | grep texlive-moderntimeline-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moderntimeline-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moderntimeline-doc + CHECK_RESULT $? 0 0 "install texlive-moderntimeline-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moderntimeline-doc + CHECK_RESULT $? 0 0 "remove texlive-moderntimeline-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderntimeline.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderntimeline.sh new file mode 100644 index 0000000000000000000000000000000000000000..018fe5bd24dfe2ed20c56938ff60d0bcc488bb1f --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moderntimeline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moderntimeline | grep -v \.src | grep texlive-moderntimeline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moderntimeline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moderntimeline + CHECK_RESULT $? 0 0 "install texlive-moderntimeline failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moderntimeline + CHECK_RESULT $? 0 0 "remove texlive-moderntimeline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modiagram-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modiagram-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4585d235d4277bdf98a430e6d152672d225d2db4 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modiagram-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modiagram-doc | grep -v \.src | grep texlive-modiagram-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modiagram-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modiagram-doc + CHECK_RESULT $? 0 0 "install texlive-modiagram-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modiagram-doc + CHECK_RESULT $? 0 0 "remove texlive-modiagram-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modiagram.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modiagram.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b5bebc1f58a77ea236349f937fa50b3f7481f0f --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modiagram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modiagram | grep -v \.src | grep texlive-modiagram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modiagram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modiagram + CHECK_RESULT $? 0 0 "install texlive-modiagram failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modiagram + CHECK_RESULT $? 0 0 "remove texlive-modiagram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modref-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca53fa9c1874c4510d138ab3b68a00f4fa614d55 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modref-doc | grep -v \.src | grep texlive-modref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modref-doc + CHECK_RESULT $? 0 0 "install texlive-modref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modref-doc + CHECK_RESULT $? 0 0 "remove texlive-modref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modref.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modref.sh new file mode 100644 index 0000000000000000000000000000000000000000..44af154fb7efdd8b092f0dc23e044f75190cc540 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modref | grep -v \.src | grep texlive-modref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modref + CHECK_RESULT $? 0 0 "install texlive-modref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modref + CHECK_RESULT $? 0 0 "remove texlive-modref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modroman-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modroman-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef83b6542bc3ba8779ffbb9dc60551603e0ecc73 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modroman-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modroman-doc | grep -v \.src | grep texlive-modroman-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modroman-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modroman-doc + CHECK_RESULT $? 0 0 "install texlive-modroman-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modroman-doc + CHECK_RESULT $? 0 0 "remove texlive-modroman-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modroman.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modroman.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b5157af6785c28975fa20ed77f352d81384cd6a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modroman.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modroman | grep -v \.src | grep texlive-modroman + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modroman" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modroman + CHECK_RESULT $? 0 0 "install texlive-modroman failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modroman + CHECK_RESULT $? 0 0 "remove texlive-modroman failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modular.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modular.sh new file mode 100644 index 0000000000000000000000000000000000000000..c64bfcce4e5abce97f5c5c95e4d9433debe2ba77 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modular.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modular | grep -v \.src | grep texlive-modular + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modular" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modular + CHECK_RESULT $? 0 0 "install texlive-modular failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modular + CHECK_RESULT $? 0 0 "remove texlive-modular failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modulus.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modulus.sh new file mode 100644 index 0000000000000000000000000000000000000000..05fdc9e3fd1b1d908400da9de5fb9ab4a7e0b6c0 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-modulus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modulus | grep -v \.src | grep texlive-modulus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modulus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modulus + CHECK_RESULT $? 0 0 "install texlive-modulus failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modulus + CHECK_RESULT $? 0 0 "remove texlive-modulus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mongolian-babel-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mongolian-babel-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3871d88ab98bfae7c02b44343b1db002414ffa55 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mongolian-babel-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mongolian-babel-doc | grep -v \.src | grep texlive-mongolian-babel-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mongolian-babel-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mongolian-babel-doc + CHECK_RESULT $? 0 0 "install texlive-mongolian-babel-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mongolian-babel-doc + CHECK_RESULT $? 0 0 "remove texlive-mongolian-babel-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mongolian-babel.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mongolian-babel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b4ab089a8d4d1b25fd19ab3e8965a4e406c4a6f --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mongolian-babel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mongolian-babel | grep -v \.src | grep texlive-mongolian-babel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mongolian-babel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mongolian-babel + CHECK_RESULT $? 0 0 "install texlive-mongolian-babel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mongolian-babel + CHECK_RESULT $? 0 0 "remove texlive-mongolian-babel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-monofill-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-monofill-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6c53beca36dd364437b6dddb486a8777ba6ba82 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-monofill-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-monofill-doc | grep -v \.src | grep texlive-monofill-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-monofill-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-monofill-doc + CHECK_RESULT $? 0 0 "install texlive-monofill-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-monofill-doc + CHECK_RESULT $? 0 0 "remove texlive-monofill-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-monofill.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-monofill.sh new file mode 100644 index 0000000000000000000000000000000000000000..45e666d8a656daa6506b2c59e803836318cf160b --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-monofill.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-monofill | grep -v \.src | grep texlive-monofill + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-monofill" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-monofill + CHECK_RESULT $? 0 0 "install texlive-monofill failed" + SLEEP_WAIT 1 + dnf remove -y texlive-monofill + CHECK_RESULT $? 0 0 "remove texlive-monofill failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-montex-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-montex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a281dc9ed3198aac9fd45d74b285b9123460a568 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-montex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-montex-doc | grep -v \.src | grep texlive-montex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-montex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-montex-doc + CHECK_RESULT $? 0 0 "install texlive-montex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-montex-doc + CHECK_RESULT $? 0 0 "remove texlive-montex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-montex.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-montex.sh new file mode 100644 index 0000000000000000000000000000000000000000..299e6e43487514b9d959a4bd438a8d1172ea2dfa --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-montex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-montex | grep -v \.src | grep texlive-montex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-montex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-montex + CHECK_RESULT $? 0 0 "install texlive-montex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-montex + CHECK_RESULT $? 0 0 "remove texlive-montex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-montserrat.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-montserrat.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2b37e4ba8a8040708aa594b948a2bb545c92829 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-montserrat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-montserrat | grep -v \.src | grep texlive-montserrat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-montserrat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-montserrat + CHECK_RESULT $? 0 0 "install texlive-montserrat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-montserrat + CHECK_RESULT $? 0 0 "remove texlive-montserrat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moodle-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moodle-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd251f2b49ba444dcf615808da299e18b5da62df --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moodle-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moodle-doc | grep -v \.src | grep texlive-moodle-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moodle-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moodle-doc + CHECK_RESULT $? 0 0 "install texlive-moodle-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moodle-doc + CHECK_RESULT $? 0 0 "remove texlive-moodle-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moodle.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moodle.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2ee9b20ccf9d807307f48d87b7891856cc03e55 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moodle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moodle | grep -v \.src | grep texlive-moodle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moodle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moodle + CHECK_RESULT $? 0 0 "install texlive-moodle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moodle + CHECK_RESULT $? 0 0 "remove texlive-moodle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreenum-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreenum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1171d87e6e94563a31f9dff0da60de3908cd831 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreenum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moreenum-doc | grep -v \.src | grep texlive-moreenum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moreenum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moreenum-doc + CHECK_RESULT $? 0 0 "install texlive-moreenum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moreenum-doc + CHECK_RESULT $? 0 0 "remove texlive-moreenum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreenum.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreenum.sh new file mode 100644 index 0000000000000000000000000000000000000000..efbb8b2321cca620a0eed4ab971b8ba1a3ee7f58 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreenum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moreenum | grep -v \.src | grep texlive-moreenum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moreenum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moreenum + CHECK_RESULT $? 0 0 "install texlive-moreenum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moreenum + CHECK_RESULT $? 0 0 "remove texlive-moreenum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morefloats-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morefloats-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f117f5af157ed068f04d3f2020ad24c5fcf8ac15 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morefloats-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-morefloats-doc | grep -v \.src | grep texlive-morefloats-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-morefloats-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-morefloats-doc + CHECK_RESULT $? 0 0 "install texlive-morefloats-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-morefloats-doc + CHECK_RESULT $? 0 0 "remove texlive-morefloats-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morefloats.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morefloats.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3af3c0c89166cd9b7aadffa53776e7628dbe28f --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morefloats.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-morefloats | grep -v \.src | grep texlive-morefloats + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-morefloats" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-morefloats + CHECK_RESULT $? 0 0 "install texlive-morefloats failed" + SLEEP_WAIT 1 + dnf remove -y texlive-morefloats + CHECK_RESULT $? 0 0 "remove texlive-morefloats failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morehype-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morehype-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..77fa6acb6b65c6ab26ec5c8fb0a9d7b72106144f --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morehype-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-morehype-doc | grep -v \.src | grep texlive-morehype-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-morehype-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-morehype-doc + CHECK_RESULT $? 0 0 "install texlive-morehype-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-morehype-doc + CHECK_RESULT $? 0 0 "remove texlive-morehype-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morehype.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morehype.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fb95b865057905cc37999486f884e11cea6558e --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morehype.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-morehype | grep -v \.src | grep texlive-morehype + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-morehype" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-morehype + CHECK_RESULT $? 0 0 "install texlive-morehype failed" + SLEEP_WAIT 1 + dnf remove -y texlive-morehype + CHECK_RESULT $? 0 0 "remove texlive-morehype failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moresize-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moresize-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c1adf7bebe5f3bb5f154070c1f1946518d213d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moresize-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moresize-doc | grep -v \.src | grep texlive-moresize-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moresize-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moresize-doc + CHECK_RESULT $? 0 0 "install texlive-moresize-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moresize-doc + CHECK_RESULT $? 0 0 "remove texlive-moresize-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moresize.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moresize.sh new file mode 100644 index 0000000000000000000000000000000000000000..32c42ac6ac679372e27bd18549bbc948c88fd2cc --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moresize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moresize | grep -v \.src | grep texlive-moresize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moresize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moresize + CHECK_RESULT $? 0 0 "install texlive-moresize failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moresize + CHECK_RESULT $? 0 0 "remove texlive-moresize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreverb-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreverb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f651a7706dfe5970bbed3e1f89a55b5dbe97ba64 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreverb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moreverb-doc | grep -v \.src | grep texlive-moreverb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moreverb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moreverb-doc + CHECK_RESULT $? 0 0 "install texlive-moreverb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moreverb-doc + CHECK_RESULT $? 0 0 "remove texlive-moreverb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreverb.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreverb.sh new file mode 100644 index 0000000000000000000000000000000000000000..2daae806c7d4750466f99c92d6144a07b51437a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-moreverb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-moreverb | grep -v \.src | grep texlive-moreverb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-moreverb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-moreverb + CHECK_RESULT $? 0 0 "install texlive-moreverb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-moreverb + CHECK_RESULT $? 0 0 "remove texlive-moreverb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morewrites-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morewrites-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c74a5a85d654fad376db687414020366249bdac --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morewrites-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-morewrites-doc | grep -v \.src | grep texlive-morewrites-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-morewrites-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-morewrites-doc + CHECK_RESULT $? 0 0 "install texlive-morewrites-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-morewrites-doc + CHECK_RESULT $? 0 0 "remove texlive-morewrites-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morewrites.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morewrites.sh new file mode 100644 index 0000000000000000000000000000000000000000..20a31882b9018ace438c2a3891dde2187f88d4ac --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morewrites.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-morewrites | grep -v \.src | grep texlive-morewrites + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-morewrites" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-morewrites + CHECK_RESULT $? 0 0 "install texlive-morewrites failed" + SLEEP_WAIT 1 + dnf remove -y texlive-morewrites + CHECK_RESULT $? 0 0 "remove texlive-morewrites failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morisawa.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morisawa.sh new file mode 100644 index 0000000000000000000000000000000000000000..c977a2dcd22e8cec6226ba9805871263a04c80ea --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-morisawa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-morisawa | grep -v \.src | grep texlive-morisawa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-morisawa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-morisawa + CHECK_RESULT $? 0 0 "install texlive-morisawa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-morisawa + CHECK_RESULT $? 0 0 "remove texlive-morisawa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mp3d-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mp3d-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..999a2a8f13fb726ce77a881f0e38f0335b40c9ef --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mp3d-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mp3d-doc | grep -v \.src | grep texlive-mp3d-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mp3d-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mp3d-doc + CHECK_RESULT $? 0 0 "install texlive-mp3d-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mp3d-doc + CHECK_RESULT $? 0 0 "remove texlive-mp3d-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mp3d.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mp3d.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d08e673b95cf79dac62b2b1a4aca68ef1c29e3b --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mp3d.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mp3d | grep -v \.src | grep texlive-mp3d + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mp3d" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mp3d + CHECK_RESULT $? 0 0 "install texlive-mp3d failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mp3d + CHECK_RESULT $? 0 0 "remove texlive-mp3d failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparhack-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparhack-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca504274a934a904d1e76160c4012b61b4924c90 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparhack-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mparhack-doc | grep -v \.src | grep texlive-mparhack-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mparhack-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mparhack-doc + CHECK_RESULT $? 0 0 "install texlive-mparhack-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mparhack-doc + CHECK_RESULT $? 0 0 "remove texlive-mparhack-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparhack.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparhack.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6bb2a68a1816d10e02146cb47e7317900e45a48 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparhack.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mparhack | grep -v \.src | grep texlive-mparhack + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mparhack" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mparhack + CHECK_RESULT $? 0 0 "install texlive-mparhack failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mparhack + CHECK_RESULT $? 0 0 "remove texlive-mparhack failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparrows-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparrows-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..00a882c92979c264a6fab4e58c5076b28a722023 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparrows-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mparrows-doc | grep -v \.src | grep texlive-mparrows-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mparrows-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mparrows-doc + CHECK_RESULT $? 0 0 "install texlive-mparrows-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mparrows-doc + CHECK_RESULT $? 0 0 "remove texlive-mparrows-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparrows.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparrows.sh new file mode 100644 index 0000000000000000000000000000000000000000..965dc2153c3f8569d760b20de983e4b29a748a35 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mparrows.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mparrows | grep -v \.src | grep texlive-mparrows + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mparrows" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mparrows + CHECK_RESULT $? 0 0 "install texlive-mparrows failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mparrows + CHECK_RESULT $? 0 0 "remove texlive-mparrows failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpattern-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpattern-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..521ed86da5b14f14f9b4d6913ec2d6798a21ce41 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpattern-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mpattern-doc | grep -v \.src | grep texlive-mpattern-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mpattern-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mpattern-doc + CHECK_RESULT $? 0 0 "install texlive-mpattern-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mpattern-doc + CHECK_RESULT $? 0 0 "remove texlive-mpattern-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpattern.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpattern.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c64bda84c8d19f21ba16646dc78fdc1193fa7de --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpattern.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mpattern | grep -v \.src | grep texlive-mpattern + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mpattern" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mpattern + CHECK_RESULT $? 0 0 "install texlive-mpattern failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mpattern + CHECK_RESULT $? 0 0 "remove texlive-mpattern failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpcolornames-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpcolornames-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..72ea8dc766328ded610c3ac67f3b6028f016001c --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpcolornames-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mpcolornames-doc | grep -v \.src | grep texlive-mpcolornames-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mpcolornames-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mpcolornames-doc + CHECK_RESULT $? 0 0 "install texlive-mpcolornames-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mpcolornames-doc + CHECK_RESULT $? 0 0 "remove texlive-mpcolornames-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpcolornames.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpcolornames.sh new file mode 100644 index 0000000000000000000000000000000000000000..84cea30662a53fe0aa41b6a567b6a4e3ecc76788 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpcolornames.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mpcolornames | grep -v \.src | grep texlive-mpcolornames + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mpcolornames" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mpcolornames + CHECK_RESULT $? 0 0 "install texlive-mpcolornames failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mpcolornames + CHECK_RESULT $? 0 0 "remove texlive-mpcolornames failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpgraphics-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpgraphics-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..26424e0c162cf284acd3a1b630c98f95c9fbc9e5 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpgraphics-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mpgraphics-doc | grep -v \.src | grep texlive-mpgraphics-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mpgraphics-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mpgraphics-doc + CHECK_RESULT $? 0 0 "install texlive-mpgraphics-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mpgraphics-doc + CHECK_RESULT $? 0 0 "remove texlive-mpgraphics-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpgraphics.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpgraphics.sh new file mode 100644 index 0000000000000000000000000000000000000000..00fe4d9f17850579debb0ed61abd501ff0feed63 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpgraphics.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mpgraphics | grep -v \.src | grep texlive-mpgraphics + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mpgraphics" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mpgraphics + CHECK_RESULT $? 0 0 "install texlive-mpgraphics failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mpgraphics + CHECK_RESULT $? 0 0 "remove texlive-mpgraphics failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpman-ru-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpman-ru-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bae0f71162af227c75972c5fc9d74cd1217fbeb8 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpman-ru-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mpman-ru-doc | grep -v \.src | grep texlive-mpman-ru-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mpman-ru-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mpman-ru-doc + CHECK_RESULT $? 0 0 "install texlive-mpman-ru-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mpman-ru-doc + CHECK_RESULT $? 0 0 "remove texlive-mpman-ru-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpostinl.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpostinl.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d50c483f49bb6532afa4bab0fc16c3dd4130c2c --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mpostinl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mpostinl | grep -v \.src | grep texlive-mpostinl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mpostinl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mpostinl + CHECK_RESULT $? 0 0 "install texlive-mpostinl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mpostinl + CHECK_RESULT $? 0 0 "remove texlive-mpostinl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mptrees.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mptrees.sh new file mode 100644 index 0000000000000000000000000000000000000000..7fcba0698a2b1a199be7d642a4a66bb61ac043d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mptrees.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mptrees | grep -v \.src | grep texlive-mptrees + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mptrees" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mptrees + CHECK_RESULT $? 0 0 "install texlive-mptrees failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mptrees + CHECK_RESULT $? 0 0 "remove texlive-mptrees failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ms-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ms-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d65bd7f80cb90ab7e9fa5146a8cb8b129577be9 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ms-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ms-doc | grep -v \.src | grep texlive-ms-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ms-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ms-doc + CHECK_RESULT $? 0 0 "install texlive-ms-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ms-doc + CHECK_RESULT $? 0 0 "remove texlive-ms-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ms.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ms.sh new file mode 100644 index 0000000000000000000000000000000000000000..15d9cf5fbf62c62285530131b75151635472000f --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ms.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ms | grep -v \.src | grep texlive-ms + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ms" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ms + CHECK_RESULT $? 0 0 "install texlive-ms failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ms + CHECK_RESULT $? 0 0 "remove texlive-ms failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msc-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd5cdda162f3f46b336934608c21a3714393c6e6 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-msc-doc | grep -v \.src | grep texlive-msc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-msc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-msc-doc + CHECK_RESULT $? 0 0 "install texlive-msc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-msc-doc + CHECK_RESULT $? 0 0 "remove texlive-msc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msc.sh new file mode 100644 index 0000000000000000000000000000000000000000..22230802f671cbb777953b6f26f2259b6b2656ac --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-msc | grep -v \.src | grep texlive-msc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-msc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-msc + CHECK_RESULT $? 0 0 "install texlive-msc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-msc + CHECK_RESULT $? 0 0 "remove texlive-msc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msg-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aeaa531feac5856227774ee9938ba541fb1193b3 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-msg-doc | grep -v \.src | grep texlive-msg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-msg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-msg-doc + CHECK_RESULT $? 0 0 "install texlive-msg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-msg-doc + CHECK_RESULT $? 0 0 "remove texlive-msg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msg.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msg.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c17ea14ec83fbdced4c5aa2c77bfaa2c196703d --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-msg | grep -v \.src | grep texlive-msg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-msg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-msg + CHECK_RESULT $? 0 0 "install texlive-msg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-msg + CHECK_RESULT $? 0 0 "remove texlive-msg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mslapa-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mslapa-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8ab8b9e896a3fcb6571c589986d42a1152ff08e --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mslapa-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mslapa-doc | grep -v \.src | grep texlive-mslapa-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mslapa-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mslapa-doc + CHECK_RESULT $? 0 0 "install texlive-mslapa-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mslapa-doc + CHECK_RESULT $? 0 0 "remove texlive-mslapa-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mslapa.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mslapa.sh new file mode 100644 index 0000000000000000000000000000000000000000..d707cf42b7857bf16676ee9052246481b8474c07 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mslapa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mslapa | grep -v \.src | grep texlive-mslapa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mslapa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mslapa + CHECK_RESULT $? 0 0 "install texlive-mslapa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mslapa + CHECK_RESULT $? 0 0 "remove texlive-mslapa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msu-thesis-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msu-thesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb18dc0df87a951152dc8693e4be825426dbb3a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msu-thesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-msu-thesis-doc | grep -v \.src | grep texlive-msu-thesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-msu-thesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-msu-thesis-doc + CHECK_RESULT $? 0 0 "install texlive-msu-thesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-msu-thesis-doc + CHECK_RESULT $? 0 0 "remove texlive-msu-thesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msu-thesis.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msu-thesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..c36a9dd7eeb64efb2189c388309a8b80b84eb0a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-msu-thesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-msu-thesis | grep -v \.src | grep texlive-msu-thesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-msu-thesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-msu-thesis + CHECK_RESULT $? 0 0 "install texlive-msu-thesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-msu-thesis + CHECK_RESULT $? 0 0 "remove texlive-msu-thesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mtgreek-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mtgreek-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..67bfc0a8d2a1fbb0659679698649354175da1ce4 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mtgreek-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mtgreek-doc | grep -v \.src | grep texlive-mtgreek-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mtgreek-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mtgreek-doc + CHECK_RESULT $? 0 0 "install texlive-mtgreek-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mtgreek-doc + CHECK_RESULT $? 0 0 "remove texlive-mtgreek-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mtgreek.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mtgreek.sh new file mode 100644 index 0000000000000000000000000000000000000000..732cb8f22184cb229a41adb76a60deb5208cfc91 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mtgreek.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mtgreek | grep -v \.src | grep texlive-mtgreek + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mtgreek" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mtgreek + CHECK_RESULT $? 0 0 "install texlive-mtgreek failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mtgreek + CHECK_RESULT $? 0 0 "remove texlive-mtgreek failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mucproc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mucproc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bf6cf200a72883459564025085ef41fe9647d51 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mucproc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mucproc | grep -v \.src | grep texlive-mucproc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mucproc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mucproc + CHECK_RESULT $? 0 0 "install texlive-mucproc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mucproc + CHECK_RESULT $? 0 0 "remove texlive-mucproc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mugsthesis-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mugsthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a9297efc52476285bac9920d8c6f87c46cc1848 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mugsthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mugsthesis-doc | grep -v \.src | grep texlive-mugsthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mugsthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mugsthesis-doc + CHECK_RESULT $? 0 0 "install texlive-mugsthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mugsthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-mugsthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mugsthesis.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mugsthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..88d8f68a1a1a549646a66f90e5e875b83df64d0f --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mugsthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mugsthesis | grep -v \.src | grep texlive-mugsthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mugsthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mugsthesis + CHECK_RESULT $? 0 0 "install texlive-mugsthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mugsthesis + CHECK_RESULT $? 0 0 "remove texlive-mugsthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multenum-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multenum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4edfd6364482a581edf06508a0280c2e73b35cb8 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multenum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multenum-doc | grep -v \.src | grep texlive-multenum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multenum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multenum-doc + CHECK_RESULT $? 0 0 "install texlive-multenum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multenum-doc + CHECK_RESULT $? 0 0 "remove texlive-multenum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multenum.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multenum.sh new file mode 100644 index 0000000000000000000000000000000000000000..956d019694eba9952131fc2364a91809b6bab03e --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multenum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multenum | grep -v \.src | grep texlive-multenum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multenum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multenum + CHECK_RESULT $? 0 0 "install texlive-multenum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multenum + CHECK_RESULT $? 0 0 "remove texlive-multenum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiaudience-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiaudience-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b79abd3730f58027cab74481189c4f4a3937d47 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiaudience-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multiaudience-doc | grep -v \.src | grep texlive-multiaudience-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multiaudience-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multiaudience-doc + CHECK_RESULT $? 0 0 "install texlive-multiaudience-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multiaudience-doc + CHECK_RESULT $? 0 0 "remove texlive-multiaudience-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiaudience.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiaudience.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d8d85962d4de4916e8f05dac6e764bd06f06973 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiaudience.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multiaudience | grep -v \.src | grep texlive-multiaudience + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multiaudience" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multiaudience + CHECK_RESULT $? 0 0 "install texlive-multiaudience failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multiaudience + CHECK_RESULT $? 0 0 "remove texlive-multiaudience failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibbl-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibbl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dcf07a7e1237e8de5720e8bde1702a2744f72fc9 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibbl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multibbl-doc | grep -v \.src | grep texlive-multibbl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multibbl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multibbl-doc + CHECK_RESULT $? 0 0 "install texlive-multibbl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multibbl-doc + CHECK_RESULT $? 0 0 "remove texlive-multibbl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibbl.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibbl.sh new file mode 100644 index 0000000000000000000000000000000000000000..49bff2eb82360eb95d733b2271558bbd909cc15a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibbl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multibbl | grep -v \.src | grep texlive-multibbl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multibbl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multibbl + CHECK_RESULT $? 0 0 "install texlive-multibbl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multibbl + CHECK_RESULT $? 0 0 "remove texlive-multibbl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibib-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d58e6abba4fb1c0a570e7a1595bd02f01b1185f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multibib-doc | grep -v \.src | grep texlive-multibib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multibib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multibib-doc + CHECK_RESULT $? 0 0 "install texlive-multibib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multibib-doc + CHECK_RESULT $? 0 0 "remove texlive-multibib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibib.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibib.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fc08307d6078c359a3905108ecdb6fced304f66 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multibib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multibib | grep -v \.src | grep texlive-multibib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multibib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multibib + CHECK_RESULT $? 0 0 "install texlive-multibib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multibib + CHECK_RESULT $? 0 0 "remove texlive-multibib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multicap-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multicap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd90ef0cac3ca488485ad31812f1ffc18b4c7ce7 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multicap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multicap-doc | grep -v \.src | grep texlive-multicap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multicap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multicap-doc + CHECK_RESULT $? 0 0 "install texlive-multicap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multicap-doc + CHECK_RESULT $? 0 0 "remove texlive-multicap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multicap.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multicap.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ddc1b64eeb2fdb4f6d91b927fd6c684cb390edc --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multicap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multicap | grep -v \.src | grep texlive-multicap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multicap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multicap + CHECK_RESULT $? 0 0 "install texlive-multicap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multicap + CHECK_RESULT $? 0 0 "remove texlive-multicap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multidef-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multidef-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..82eec83a9827caad6fd84628d7590ff531a47d4c --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multidef-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multidef-doc | grep -v \.src | grep texlive-multidef-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multidef-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multidef-doc + CHECK_RESULT $? 0 0 "install texlive-multidef-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multidef-doc + CHECK_RESULT $? 0 0 "remove texlive-multidef-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multidef.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multidef.sh new file mode 100644 index 0000000000000000000000000000000000000000..de96ebd46baf57afc9439c8b916439e472ad9c46 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multidef.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multidef | grep -v \.src | grep texlive-multidef + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multidef" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multidef + CHECK_RESULT $? 0 0 "install texlive-multidef failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multidef + CHECK_RESULT $? 0 0 "remove texlive-multidef failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multido-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multido-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a35a072504f5eb57852a260eb35fef76381ac25b --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multido-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multido-doc | grep -v \.src | grep texlive-multido-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multido-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multido-doc + CHECK_RESULT $? 0 0 "install texlive-multido-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multido-doc + CHECK_RESULT $? 0 0 "remove texlive-multido-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multido.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multido.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c409c9d29b678e3583f004236f1568ec896d7fd --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multido.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multido | grep -v \.src | grep texlive-multido + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multido" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multido + CHECK_RESULT $? 0 0 "install texlive-multido failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multido + CHECK_RESULT $? 0 0 "remove texlive-multido failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multienv-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multienv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b20ef2b11e14052fbf294e6bd8ff595e7758911c --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multienv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multienv-doc | grep -v \.src | grep texlive-multienv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multienv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multienv-doc + CHECK_RESULT $? 0 0 "install texlive-multienv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multienv-doc + CHECK_RESULT $? 0 0 "remove texlive-multienv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multienv.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multienv.sh new file mode 100644 index 0000000000000000000000000000000000000000..79d3a9c5154573cb5616ca8b371f3a20d3ef969e --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multienv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multienv | grep -v \.src | grep texlive-multienv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multienv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multienv + CHECK_RESULT $? 0 0 "install texlive-multienv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multienv + CHECK_RESULT $? 0 0 "remove texlive-multienv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiexpand-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiexpand-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..47cf1446e27116326ec2017cfc813661e4d0f6f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiexpand-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multiexpand-doc | grep -v \.src | grep texlive-multiexpand-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multiexpand-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multiexpand-doc + CHECK_RESULT $? 0 0 "install texlive-multiexpand-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multiexpand-doc + CHECK_RESULT $? 0 0 "remove texlive-multiexpand-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiexpand.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiexpand.sh new file mode 100644 index 0000000000000000000000000000000000000000..85e961762d20c4e6727485042555c627f6945788 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiexpand.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multiexpand | grep -v \.src | grep texlive-multiexpand + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multiexpand" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multiexpand + CHECK_RESULT $? 0 0 "install texlive-multiexpand failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multiexpand + CHECK_RESULT $? 0 0 "remove texlive-multiexpand failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multilang.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multilang.sh new file mode 100644 index 0000000000000000000000000000000000000000..586c686e6c7cb72f760fa77da4189a54c428383e --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multilang.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multilang | grep -v \.src | grep texlive-multilang + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multilang" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multilang + CHECK_RESULT $? 0 0 "install texlive-multilang failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multilang + CHECK_RESULT $? 0 0 "remove texlive-multilang failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiobjective-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiobjective-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b82b079c3e63553b8df8ff43986a47482affdd0 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiobjective-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multiobjective-doc | grep -v \.src | grep texlive-multiobjective-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multiobjective-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multiobjective-doc + CHECK_RESULT $? 0 0 "install texlive-multiobjective-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multiobjective-doc + CHECK_RESULT $? 0 0 "remove texlive-multiobjective-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiobjective.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiobjective.sh new file mode 100644 index 0000000000000000000000000000000000000000..96007f8676a784a0cb9a325d587439d3bdd0e8ac --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multiobjective.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multiobjective | grep -v \.src | grep texlive-multiobjective + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multiobjective" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multiobjective + CHECK_RESULT $? 0 0 "install texlive-multiobjective failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multiobjective + CHECK_RESULT $? 0 0 "remove texlive-multiobjective failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multirow-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multirow-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..319af6caafc506269926c79e27575c8c7c06dda2 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multirow-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multirow-doc | grep -v \.src | grep texlive-multirow-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multirow-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multirow-doc + CHECK_RESULT $? 0 0 "install texlive-multirow-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multirow-doc + CHECK_RESULT $? 0 0 "remove texlive-multirow-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multirow.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multirow.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4dfbb0b06f80c3712fb937259f112d13d5f39b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-multirow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multirow | grep -v \.src | grep texlive-multirow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multirow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multirow + CHECK_RESULT $? 0 0 "install texlive-multirow failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multirow + CHECK_RESULT $? 0 0 "remove texlive-multirow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-munich-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-munich-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0e44c15000cae82e5849a24bea0c52fde923b9a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-munich-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-munich-doc | grep -v \.src | grep texlive-munich-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-munich-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-munich-doc + CHECK_RESULT $? 0 0 "install texlive-munich-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-munich-doc + CHECK_RESULT $? 0 0 "remove texlive-munich-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-munich.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-munich.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3c807546d3ba218c63a1fd1b17530fd4bd14d24 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-munich.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-munich | grep -v \.src | grep texlive-munich + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-munich" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-munich + CHECK_RESULT $? 0 0 "install texlive-munich failed" + SLEEP_WAIT 1 + dnf remove -y texlive-munich + CHECK_RESULT $? 0 0 "remove texlive-munich failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musicography.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musicography.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b6254fd565ea2aada3cad64efa5cc9f2c30d15c --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musicography.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musicography | grep -v \.src | grep texlive-musicography + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musicography" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musicography + CHECK_RESULT $? 0 0 "install texlive-musicography failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musicography + CHECK_RESULT $? 0 0 "remove texlive-musicography failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musikui.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musikui.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ef76daefd4ff44d07cee239a8c3826b39715eb1 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musikui.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musikui | grep -v \.src | grep texlive-musikui + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musikui" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musikui + CHECK_RESULT $? 0 0 "install texlive-musikui failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musikui + CHECK_RESULT $? 0 0 "remove texlive-musikui failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixguit-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixguit-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff40ffc7b98ccdbc72fd561086ed5f162d2d358f --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixguit-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musixguit-doc | grep -v \.src | grep texlive-musixguit-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musixguit-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musixguit-doc + CHECK_RESULT $? 0 0 "install texlive-musixguit-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musixguit-doc + CHECK_RESULT $? 0 0 "remove texlive-musixguit-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixguit.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixguit.sh new file mode 100644 index 0000000000000000000000000000000000000000..5bdc364eb8acf4fdcae463cfd08bedd414c0c418 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixguit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musixguit | grep -v \.src | grep texlive-musixguit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musixguit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musixguit + CHECK_RESULT $? 0 0 "install texlive-musixguit failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musixguit + CHECK_RESULT $? 0 0 "remove texlive-musixguit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixtex-fonts-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixtex-fonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..181c599e10dfcb27fb4f7a3999430f6cded06858 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixtex-fonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musixtex-fonts-doc | grep -v \.src | grep texlive-musixtex-fonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musixtex-fonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musixtex-fonts-doc + CHECK_RESULT $? 0 0 "install texlive-musixtex-fonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musixtex-fonts-doc + CHECK_RESULT $? 0 0 "remove texlive-musixtex-fonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixtex-fonts.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixtex-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..b04f6149938499e275ccd6983753479cacc7700a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musixtex-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musixtex-fonts | grep -v \.src | grep texlive-musixtex-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musixtex-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musixtex-fonts + CHECK_RESULT $? 0 0 "install texlive-musixtex-fonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musixtex-fonts + CHECK_RESULT $? 0 0 "remove texlive-musixtex-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musuos-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musuos-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..11363594242e3fa64c7eccd1de7fc567eb164e7a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musuos-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musuos-doc | grep -v \.src | grep texlive-musuos-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musuos-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musuos-doc + CHECK_RESULT $? 0 0 "install texlive-musuos-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musuos-doc + CHECK_RESULT $? 0 0 "remove texlive-musuos-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musuos.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musuos.sh new file mode 100644 index 0000000000000000000000000000000000000000..20308eb1c62e19ffd9ee798f9a83e475b8526cdc --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-musuos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musuos | grep -v \.src | grep texlive-musuos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musuos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musuos + CHECK_RESULT $? 0 0 "install texlive-musuos failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musuos + CHECK_RESULT $? 0 0 "remove texlive-musuos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-muthesis-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-muthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..50ded370b92c4bc3068de86f4777f1b23c7d5100 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-muthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-muthesis-doc | grep -v \.src | grep texlive-muthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-muthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-muthesis-doc + CHECK_RESULT $? 0 0 "install texlive-muthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-muthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-muthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-muthesis.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-muthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..d95240907aab2d9bbc7cd048a1b1e4874ea4908c --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-muthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-muthesis | grep -v \.src | grep texlive-muthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-muthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-muthesis + CHECK_RESULT $? 0 0 "install texlive-muthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-muthesis + CHECK_RESULT $? 0 0 "remove texlive-muthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mversion-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mversion-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..88bd39ab9a3affd51fd0811480c5ecd87e10c725 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mversion-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mversion-doc | grep -v \.src | grep texlive-mversion-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mversion-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mversion-doc + CHECK_RESULT $? 0 0 "install texlive-mversion-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mversion-doc + CHECK_RESULT $? 0 0 "remove texlive-mversion-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mversion.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mversion.sh new file mode 100644 index 0000000000000000000000000000000000000000..da8baa5f1aac80877602e1695837a12b2040231b --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mversion.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mversion | grep -v \.src | grep texlive-mversion + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mversion" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mversion + CHECK_RESULT $? 0 0 "install texlive-mversion failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mversion + CHECK_RESULT $? 0 0 "remove texlive-mversion failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwcls-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwcls-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcc0d0638406099c3a92a254fcd371a632e23791 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwcls-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mwcls-doc | grep -v \.src | grep texlive-mwcls-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mwcls-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mwcls-doc + CHECK_RESULT $? 0 0 "install texlive-mwcls-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mwcls-doc + CHECK_RESULT $? 0 0 "remove texlive-mwcls-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwcls.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwcls.sh new file mode 100644 index 0000000000000000000000000000000000000000..e691b1b611bfc2ef39dfaa0fec60d3b83ab80b8c --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwcls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mwcls | grep -v \.src | grep texlive-mwcls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mwcls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mwcls + CHECK_RESULT $? 0 0 "install texlive-mwcls failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mwcls + CHECK_RESULT $? 0 0 "remove texlive-mwcls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwe-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwe-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e21192db45e5079e210c90b7d9a6e566add9360 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwe-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mwe-doc | grep -v \.src | grep texlive-mwe-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mwe-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mwe-doc + CHECK_RESULT $? 0 0 "install texlive-mwe-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mwe-doc + CHECK_RESULT $? 0 0 "remove texlive-mwe-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwe.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwe.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fc4c56af672096c1176f52ee230016a6f44bb59 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mwe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mwe | grep -v \.src | grep texlive-mwe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mwe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mwe + CHECK_RESULT $? 0 0 "install texlive-mwe failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mwe + CHECK_RESULT $? 0 0 "remove texlive-mwe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mweights-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mweights-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..468ac57db3d4a596a0c001c70462e10f3c55c1a2 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mweights-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mweights-doc | grep -v \.src | grep texlive-mweights-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mweights-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mweights-doc + CHECK_RESULT $? 0 0 "install texlive-mweights-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mweights-doc + CHECK_RESULT $? 0 0 "remove texlive-mweights-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mweights.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mweights.sh new file mode 100644 index 0000000000000000000000000000000000000000..07d7b5a1a3c6e6221bd086f8044e828cfe20ff39 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mweights.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mweights | grep -v \.src | grep texlive-mweights + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mweights" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mweights + CHECK_RESULT $? 0 0 "install texlive-mweights failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mweights + CHECK_RESULT $? 0 0 "remove texlive-mweights failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mxedruli-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mxedruli-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc84b16c677e9dc49843eb1b7c92dd4953e8ce59 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mxedruli-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mxedruli-doc | grep -v \.src | grep texlive-mxedruli-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mxedruli-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mxedruli-doc + CHECK_RESULT $? 0 0 "install texlive-mxedruli-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mxedruli-doc + CHECK_RESULT $? 0 0 "remove texlive-mxedruli-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mxedruli.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mxedruli.sh new file mode 100644 index 0000000000000000000000000000000000000000..9bdb60277a4be5a28e76cf9a96ee01cdd9901c01 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mxedruli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mxedruli | grep -v \.src | grep texlive-mxedruli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mxedruli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mxedruli + CHECK_RESULT $? 0 0 "install texlive-mxedruli failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mxedruli + CHECK_RESULT $? 0 0 "remove texlive-mxedruli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mychemistry-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mychemistry-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..16c6740dec26f3ddcd6973e45c8365df37348082 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mychemistry-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mychemistry-doc | grep -v \.src | grep texlive-mychemistry-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mychemistry-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mychemistry-doc + CHECK_RESULT $? 0 0 "install texlive-mychemistry-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mychemistry-doc + CHECK_RESULT $? 0 0 "remove texlive-mychemistry-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mychemistry.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mychemistry.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e61bf1542e91970dac44681e32dad2001462d9b --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mychemistry.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mychemistry | grep -v \.src | grep texlive-mychemistry + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mychemistry" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mychemistry + CHECK_RESULT $? 0 0 "install texlive-mychemistry failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mychemistry + CHECK_RESULT $? 0 0 "remove texlive-mychemistry failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mycv-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mycv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..09e6c76ab8de8e3bee0cc2de24f508a6525dcf12 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mycv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mycv-doc | grep -v \.src | grep texlive-mycv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mycv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mycv-doc + CHECK_RESULT $? 0 0 "install texlive-mycv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mycv-doc + CHECK_RESULT $? 0 0 "remove texlive-mycv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mycv.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mycv.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f7c37928032d81e7707d65933f492e58f0d1ecc --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mycv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mycv | grep -v \.src | grep texlive-mycv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mycv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mycv + CHECK_RESULT $? 0 0 "install texlive-mycv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mycv + CHECK_RESULT $? 0 0 "remove texlive-mycv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mylatexformat-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mylatexformat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea0f90aec6ed0b7cd889be8144e2fd1d7797a76d --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mylatexformat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mylatexformat-doc | grep -v \.src | grep texlive-mylatexformat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mylatexformat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mylatexformat-doc + CHECK_RESULT $? 0 0 "install texlive-mylatexformat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mylatexformat-doc + CHECK_RESULT $? 0 0 "remove texlive-mylatexformat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mylatexformat.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mylatexformat.sh new file mode 100644 index 0000000000000000000000000000000000000000..9eeace67c01edcc8707f76482bcc27749b53ade0 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mylatexformat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mylatexformat | grep -v \.src | grep texlive-mylatexformat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mylatexformat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mylatexformat + CHECK_RESULT $? 0 0 "install texlive-mylatexformat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mylatexformat + CHECK_RESULT $? 0 0 "remove texlive-mylatexformat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mynsfc-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mynsfc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c5133a7f70f4aa8334a9bb016f75e31e2947f3a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mynsfc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mynsfc-doc | grep -v \.src | grep texlive-mynsfc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mynsfc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mynsfc-doc + CHECK_RESULT $? 0 0 "install texlive-mynsfc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mynsfc-doc + CHECK_RESULT $? 0 0 "remove texlive-mynsfc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mynsfc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mynsfc.sh new file mode 100644 index 0000000000000000000000000000000000000000..36b01cee797e4c3d05e46ac2e2df92ce5956d11d --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-mynsfc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mynsfc | grep -v \.src | grep texlive-mynsfc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mynsfc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mynsfc + CHECK_RESULT $? 0 0 "install texlive-mynsfc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mynsfc + CHECK_RESULT $? 0 0 "remove texlive-mynsfc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-na-box.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-na-box.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8e4af02b2728e82317a56108c962f7923288631 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-na-box.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-na-box | grep -v \.src | grep texlive-na-box + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-na-box" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-na-box + CHECK_RESULT $? 0 0 "install texlive-na-box failed" + SLEEP_WAIT 1 + dnf remove -y texlive-na-box + CHECK_RESULT $? 0 0 "remove texlive-na-box failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-na-position.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-na-position.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e23005fdb733979492e3cfc46e230d46b0bbdc2 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-na-position.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-na-position | grep -v \.src | grep texlive-na-position + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-na-position" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-na-position + CHECK_RESULT $? 0 0 "install texlive-na-position failed" + SLEEP_WAIT 1 + dnf remove -y texlive-na-position + CHECK_RESULT $? 0 0 "remove texlive-na-position failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nag-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nag-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ee0e6437cb4139be817782b3c387f751a9feb1a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nag-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nag-doc | grep -v \.src | grep texlive-nag-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nag-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nag-doc + CHECK_RESULT $? 0 0 "install texlive-nag-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nag-doc + CHECK_RESULT $? 0 0 "remove texlive-nag-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nag.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nag.sh new file mode 100644 index 0000000000000000000000000000000000000000..10ff51bc84cc14d89eb0c9cce0e5b357014abb60 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nag.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nag | grep -v \.src | grep texlive-nag + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nag" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nag + CHECK_RESULT $? 0 0 "install texlive-nag failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nag + CHECK_RESULT $? 0 0 "remove texlive-nag failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nameauth-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nameauth-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..343343342c8fadcc8a6d9dc0711a12e91071e86a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nameauth-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nameauth-doc | grep -v \.src | grep texlive-nameauth-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nameauth-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nameauth-doc + CHECK_RESULT $? 0 0 "install texlive-nameauth-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nameauth-doc + CHECK_RESULT $? 0 0 "remove texlive-nameauth-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nameauth.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nameauth.sh new file mode 100644 index 0000000000000000000000000000000000000000..c014ba441704d5170f4b75d918d4f6e1f0d217cd --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nameauth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nameauth | grep -v \.src | grep texlive-nameauth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nameauth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nameauth + CHECK_RESULT $? 0 0 "install texlive-nameauth failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nameauth + CHECK_RESULT $? 0 0 "remove texlive-nameauth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-namespc-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-namespc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8eeae750d124c4adc5f6d63b75a6a3bd66b0cd17 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-namespc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-namespc-doc | grep -v \.src | grep texlive-namespc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-namespc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-namespc-doc + CHECK_RESULT $? 0 0 "install texlive-namespc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-namespc-doc + CHECK_RESULT $? 0 0 "remove texlive-namespc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-namespc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-namespc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1e5595cd4edbdd6dfaf1197a0d762dd00e8d49d --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-namespc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-namespc | grep -v \.src | grep texlive-namespc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-namespc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-namespc + CHECK_RESULT $? 0 0 "install texlive-namespc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-namespc + CHECK_RESULT $? 0 0 "remove texlive-namespc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nanumtype1-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nanumtype1-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a13ede0f7e27241c27fa687cfa90133c68c433e --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nanumtype1-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nanumtype1-doc | grep -v \.src | grep texlive-nanumtype1-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nanumtype1-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nanumtype1-doc + CHECK_RESULT $? 0 0 "install texlive-nanumtype1-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nanumtype1-doc + CHECK_RESULT $? 0 0 "remove texlive-nanumtype1-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nanumtype1.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nanumtype1.sh new file mode 100644 index 0000000000000000000000000000000000000000..1165b76204b5827363e07e2e1f85c5aa9c62f3d1 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nanumtype1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nanumtype1 | grep -v \.src | grep texlive-nanumtype1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nanumtype1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nanumtype1 + CHECK_RESULT $? 0 0 "install texlive-nanumtype1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nanumtype1 + CHECK_RESULT $? 0 0 "remove texlive-nanumtype1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nar.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nar.sh new file mode 100644 index 0000000000000000000000000000000000000000..565247cf458ff4bdeefdc7bd256a3e61dc3fd60a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nar | grep -v \.src | grep texlive-nar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nar + CHECK_RESULT $? 0 0 "install texlive-nar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nar + CHECK_RESULT $? 0 0 "remove texlive-nar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natbib-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natbib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6ab1380142bee74b85a864b9502b24f312c1321 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natbib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-natbib-doc | grep -v \.src | grep texlive-natbib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-natbib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-natbib-doc + CHECK_RESULT $? 0 0 "install texlive-natbib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-natbib-doc + CHECK_RESULT $? 0 0 "remove texlive-natbib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natbib.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natbib.sh new file mode 100644 index 0000000000000000000000000000000000000000..dddb1627e745f31bba60ac706f2bcd525d5bf763 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natbib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-natbib | grep -v \.src | grep texlive-natbib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-natbib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-natbib + CHECK_RESULT $? 0 0 "install texlive-natbib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-natbib + CHECK_RESULT $? 0 0 "remove texlive-natbib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natded-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natded-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb89711c41d94dba8e4bac4af3983e22adbca0dc --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natded-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-natded-doc | grep -v \.src | grep texlive-natded-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-natded-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-natded-doc + CHECK_RESULT $? 0 0 "install texlive-natded-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-natded-doc + CHECK_RESULT $? 0 0 "remove texlive-natded-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natded.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natded.sh new file mode 100644 index 0000000000000000000000000000000000000000..4466b252e459783d6ddc0245ccd846553e098737 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-natded.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-natded | grep -v \.src | grep texlive-natded + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-natded" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-natded + CHECK_RESULT $? 0 0 "install texlive-natded failed" + SLEEP_WAIT 1 + dnf remove -y texlive-natded + CHECK_RESULT $? 0 0 "remove texlive-natded failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nath-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9c100537806fea3562691669c05421d434cc39c --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nath-doc | grep -v \.src | grep texlive-nath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nath-doc + CHECK_RESULT $? 0 0 "install texlive-nath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nath-doc + CHECK_RESULT $? 0 0 "remove texlive-nath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nath.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nath.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4da22e1903ebd37d187534dd01bcb27b7d1b2fb --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nath | grep -v \.src | grep texlive-nath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nath + CHECK_RESULT $? 0 0 "install texlive-nath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nath + CHECK_RESULT $? 0 0 "remove texlive-nath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nature-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nature-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..92d44313efb8fca09fa60fda0b4ec2a0ed499b93 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nature-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nature-doc | grep -v \.src | grep texlive-nature-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nature-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nature-doc + CHECK_RESULT $? 0 0 "install texlive-nature-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nature-doc + CHECK_RESULT $? 0 0 "remove texlive-nature-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nature.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nature.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b145843af54ba1bcc84b438334a3252b23547e7 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nature.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nature | grep -v \.src | grep texlive-nature + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nature" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nature + CHECK_RESULT $? 0 0 "install texlive-nature failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nature + CHECK_RESULT $? 0 0 "remove texlive-nature failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-navigator-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-navigator-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c8cf38bfd2d7a8ac1813ad8ff8e5ed62a7ef1fc --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-navigator-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-navigator-doc | grep -v \.src | grep texlive-navigator-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-navigator-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-navigator-doc + CHECK_RESULT $? 0 0 "install texlive-navigator-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-navigator-doc + CHECK_RESULT $? 0 0 "remove texlive-navigator-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-navigator.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-navigator.sh new file mode 100644 index 0000000000000000000000000000000000000000..9462e9021179ed961fe18b2fff3824a0a1b5da50 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-navigator.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-navigator | grep -v \.src | grep texlive-navigator + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-navigator" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-navigator + CHECK_RESULT $? 0 0 "install texlive-navigator failed" + SLEEP_WAIT 1 + dnf remove -y texlive-navigator + CHECK_RESULT $? 0 0 "remove texlive-navigator failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-navydocs.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-navydocs.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec38ce76c3159f43b981d0101caac1fc48527756 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-navydocs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-navydocs | grep -v \.src | grep texlive-navydocs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-navydocs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-navydocs + CHECK_RESULT $? 0 0 "install texlive-navydocs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-navydocs + CHECK_RESULT $? 0 0 "remove texlive-navydocs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncclatex-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncclatex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b786cbc637a741a81fea38fa8e8e45ac27e5ff86 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncclatex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ncclatex-doc | grep -v \.src | grep texlive-ncclatex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ncclatex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ncclatex-doc + CHECK_RESULT $? 0 0 "install texlive-ncclatex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ncclatex-doc + CHECK_RESULT $? 0 0 "remove texlive-ncclatex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncclatex.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncclatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b7b8b291ed258e40fbf8175aea3cb5f01f79580 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncclatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ncclatex | grep -v \.src | grep texlive-ncclatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ncclatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ncclatex + CHECK_RESULT $? 0 0 "install texlive-ncclatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ncclatex + CHECK_RESULT $? 0 0 "remove texlive-ncclatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncctools-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncctools-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..98c4e9446a099175a841d9dbb5cb23f665baef8d --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncctools-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ncctools-doc | grep -v \.src | grep texlive-ncctools-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ncctools-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ncctools-doc + CHECK_RESULT $? 0 0 "install texlive-ncctools-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ncctools-doc + CHECK_RESULT $? 0 0 "remove texlive-ncctools-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncctools.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncctools.sh new file mode 100644 index 0000000000000000000000000000000000000000..599dea4aae7f1abfb6713e59deef37de4561533a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncctools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ncctools | grep -v \.src | grep texlive-ncctools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ncctools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ncctools + CHECK_RESULT $? 0 0 "install texlive-ncctools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ncctools + CHECK_RESULT $? 0 0 "remove texlive-ncctools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncntrsbk.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncntrsbk.sh new file mode 100644 index 0000000000000000000000000000000000000000..b806331aa46628fcecd381edeac0c99e707cb44f --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ncntrsbk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ncntrsbk | grep -v \.src | grep texlive-ncntrsbk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ncntrsbk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ncntrsbk + CHECK_RESULT $? 0 0 "install texlive-ncntrsbk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ncntrsbk + CHECK_RESULT $? 0 0 "remove texlive-ncntrsbk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nddiss-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nddiss-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c04002b82b68b7a5f5254a8b87e35ef72fcf8ee9 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nddiss-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nddiss-doc | grep -v \.src | grep texlive-nddiss-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nddiss-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nddiss-doc + CHECK_RESULT $? 0 0 "install texlive-nddiss-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nddiss-doc + CHECK_RESULT $? 0 0 "remove texlive-nddiss-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nddiss.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nddiss.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbee7f8e5967b18039dea38d320ba0eda125960e --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nddiss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nddiss | grep -v \.src | grep texlive-nddiss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nddiss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nddiss + CHECK_RESULT $? 0 0 "install texlive-nddiss failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nddiss + CHECK_RESULT $? 0 0 "remove texlive-nddiss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ndsu-thesis-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ndsu-thesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea4f9ca2bd371dd9304be2e977d20ef958ca2bca --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ndsu-thesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ndsu-thesis-doc | grep -v \.src | grep texlive-ndsu-thesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ndsu-thesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ndsu-thesis-doc + CHECK_RESULT $? 0 0 "install texlive-ndsu-thesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ndsu-thesis-doc + CHECK_RESULT $? 0 0 "remove texlive-ndsu-thesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ndsu-thesis.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ndsu-thesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e099ad0c1ff1c06cbd9c5f2310edcb3bd4ecc31 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-ndsu-thesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ndsu-thesis | grep -v \.src | grep texlive-ndsu-thesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ndsu-thesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ndsu-thesis + CHECK_RESULT $? 0 0 "install texlive-ndsu-thesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ndsu-thesis + CHECK_RESULT $? 0 0 "remove texlive-ndsu-thesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-needspace-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-needspace-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..65b05f231e6dfe2ebaa1c4f1bc86c11be7cdbadd --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-needspace-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-needspace-doc | grep -v \.src | grep texlive-needspace-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-needspace-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-needspace-doc + CHECK_RESULT $? 0 0 "install texlive-needspace-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-needspace-doc + CHECK_RESULT $? 0 0 "remove texlive-needspace-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-needspace.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-needspace.sh new file mode 100644 index 0000000000000000000000000000000000000000..f66f266145cd70e862eea9effb4cf3fceea750ba --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-needspace.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-needspace | grep -v \.src | grep texlive-needspace + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-needspace" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-needspace + CHECK_RESULT $? 0 0 "install texlive-needspace failed" + SLEEP_WAIT 1 + dnf remove -y texlive-needspace + CHECK_RESULT $? 0 0 "remove texlive-needspace failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nestquot.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nestquot.sh new file mode 100644 index 0000000000000000000000000000000000000000..9834d1342effc3f4bcf4caaf2dfe04cd58f772f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nestquot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nestquot | grep -v \.src | grep texlive-nestquot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nestquot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nestquot + CHECK_RESULT $? 0 0 "install texlive-nestquot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nestquot + CHECK_RESULT $? 0 0 "remove texlive-nestquot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-neuralnetwork-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-neuralnetwork-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..65db3066e3369d23f3551826032b25195e808559 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-neuralnetwork-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-neuralnetwork-doc | grep -v \.src | grep texlive-neuralnetwork-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-neuralnetwork-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-neuralnetwork-doc + CHECK_RESULT $? 0 0 "install texlive-neuralnetwork-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-neuralnetwork-doc + CHECK_RESULT $? 0 0 "remove texlive-neuralnetwork-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-neuralnetwork.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-neuralnetwork.sh new file mode 100644 index 0000000000000000000000000000000000000000..82ad60b5feb38888c772ebfdd9d18dd374df07d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-neuralnetwork.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-neuralnetwork | grep -v \.src | grep texlive-neuralnetwork + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-neuralnetwork" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-neuralnetwork + CHECK_RESULT $? 0 0 "install texlive-neuralnetwork failed" + SLEEP_WAIT 1 + dnf remove -y texlive-neuralnetwork + CHECK_RESULT $? 0 0 "remove texlive-neuralnetwork failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nevelok-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nevelok-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..022d4abe7a7f3d208d58b92ee3d3274cfaae0b6c --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nevelok-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nevelok-doc | grep -v \.src | grep texlive-nevelok-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nevelok-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nevelok-doc + CHECK_RESULT $? 0 0 "install texlive-nevelok-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nevelok-doc + CHECK_RESULT $? 0 0 "remove texlive-nevelok-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nevelok.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nevelok.sh new file mode 100644 index 0000000000000000000000000000000000000000..582ecb0fedbaf98a2c6a3292421aadf113cb8f09 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nevelok.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nevelok | grep -v \.src | grep texlive-nevelok + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nevelok" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nevelok + CHECK_RESULT $? 0 0 "install texlive-nevelok failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nevelok + CHECK_RESULT $? 0 0 "remove texlive-nevelok failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newcommand-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newcommand-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae9e63cf3ba89444ae0b4fb4b36ba20f32a6aa92 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newcommand-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newcommand-doc | grep -v \.src | grep texlive-newcommand-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newcommand-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newcommand-doc + CHECK_RESULT $? 0 0 "install texlive-newcommand-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newcommand-doc + CHECK_RESULT $? 0 0 "remove texlive-newcommand-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newenviron-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newenviron-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d02a0e05bd08a8efe36c02427d3c6f0f06d64ebf --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newenviron-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newenviron-doc | grep -v \.src | grep texlive-newenviron-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newenviron-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newenviron-doc + CHECK_RESULT $? 0 0 "install texlive-newenviron-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newenviron-doc + CHECK_RESULT $? 0 0 "remove texlive-newenviron-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newenviron.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newenviron.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f4bb06bf468a8082008bb5f90b3a2d95d40ad3d --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newenviron.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newenviron | grep -v \.src | grep texlive-newenviron + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newenviron" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newenviron + CHECK_RESULT $? 0 0 "install texlive-newenviron failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newenviron + CHECK_RESULT $? 0 0 "remove texlive-newenviron failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newfile-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newfile-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..79b17205b6b2d793ac55c9ebd330e56291aeb5f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newfile-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newfile-doc | grep -v \.src | grep texlive-newfile-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newfile-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newfile-doc + CHECK_RESULT $? 0 0 "install texlive-newfile-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newfile-doc + CHECK_RESULT $? 0 0 "remove texlive-newfile-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newfile.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newfile.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6a5feb503639588b0d8f6ac788bdb1b455853cf --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newfile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newfile | grep -v \.src | grep texlive-newfile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newfile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newfile + CHECK_RESULT $? 0 0 "install texlive-newfile failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newfile + CHECK_RESULT $? 0 0 "remove texlive-newfile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newlfm-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newlfm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..48b8d1a37ffc8f61a3228854225dec4cf12e078b --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newlfm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newlfm-doc | grep -v \.src | grep texlive-newlfm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newlfm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newlfm-doc + CHECK_RESULT $? 0 0 "install texlive-newlfm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newlfm-doc + CHECK_RESULT $? 0 0 "remove texlive-newlfm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newlfm.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newlfm.sh new file mode 100644 index 0000000000000000000000000000000000000000..a1a135b1e406ba36ad00b39bedfb45a79691d6c3 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newlfm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newlfm | grep -v \.src | grep texlive-newlfm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newlfm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newlfm + CHECK_RESULT $? 0 0 "install texlive-newlfm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newlfm + CHECK_RESULT $? 0 0 "remove texlive-newlfm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newpx-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newpx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..004b6f65eac6d4d682adc314da46146efb098b70 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newpx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newpx-doc | grep -v \.src | grep texlive-newpx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newpx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newpx-doc + CHECK_RESULT $? 0 0 "install texlive-newpx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newpx-doc + CHECK_RESULT $? 0 0 "remove texlive-newpx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newpx.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newpx.sh new file mode 100644 index 0000000000000000000000000000000000000000..77a5bda0450f89d4a9713d9da1e0c3d69fff8ce0 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newpx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newpx | grep -v \.src | grep texlive-newpx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newpx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newpx + CHECK_RESULT $? 0 0 "install texlive-newpx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newpx + CHECK_RESULT $? 0 0 "remove texlive-newpx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newsletr-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newsletr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..49ae3dc06da37d7f300bcb03cf926f1fe38deb1b --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newsletr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newsletr-doc | grep -v \.src | grep texlive-newsletr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newsletr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newsletr-doc + CHECK_RESULT $? 0 0 "install texlive-newsletr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newsletr-doc + CHECK_RESULT $? 0 0 "remove texlive-newsletr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newsletr.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newsletr.sh new file mode 100644 index 0000000000000000000000000000000000000000..352621f2ba96321a72628a284dc436eac6fe9b16 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newsletr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newsletr | grep -v \.src | grep texlive-newsletr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newsletr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newsletr + CHECK_RESULT $? 0 0 "install texlive-newsletr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newsletr + CHECK_RESULT $? 0 0 "remove texlive-newsletr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newspaper-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newspaper-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6c4b9760aa775d2239754d4b8d2e8a7d59721d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newspaper-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newspaper-doc | grep -v \.src | grep texlive-newspaper-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newspaper-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newspaper-doc + CHECK_RESULT $? 0 0 "install texlive-newspaper-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newspaper-doc + CHECK_RESULT $? 0 0 "remove texlive-newspaper-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newspaper.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newspaper.sh new file mode 100644 index 0000000000000000000000000000000000000000..72e5d7525ae894ef090446790729bf7d0db8c792 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newspaper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newspaper | grep -v \.src | grep texlive-newspaper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newspaper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newspaper + CHECK_RESULT $? 0 0 "install texlive-newspaper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newspaper + CHECK_RESULT $? 0 0 "remove texlive-newspaper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtx-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..691a6a403be59cd6261320c86399b512490870c4 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newtx-doc | grep -v \.src | grep texlive-newtx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newtx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newtx-doc + CHECK_RESULT $? 0 0 "install texlive-newtx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newtx-doc + CHECK_RESULT $? 0 0 "remove texlive-newtx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtx.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtx.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fd911dd0eb6b52f28b683c99ab7b4f3b5ef88be --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newtx | grep -v \.src | grep texlive-newtx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newtx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newtx + CHECK_RESULT $? 0 0 "install texlive-newtx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newtx + CHECK_RESULT $? 0 0 "remove texlive-newtx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxsf-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxsf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b661cbb88c8a4ef02560dd51ba03684fc4212ef6 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxsf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newtxsf-doc | grep -v \.src | grep texlive-newtxsf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newtxsf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newtxsf-doc + CHECK_RESULT $? 0 0 "install texlive-newtxsf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newtxsf-doc + CHECK_RESULT $? 0 0 "remove texlive-newtxsf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxsf.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxsf.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4f50b9a1bba885e7c589102fa665254a880e6cc --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxsf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newtxsf | grep -v \.src | grep texlive-newtxsf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newtxsf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newtxsf + CHECK_RESULT $? 0 0 "install texlive-newtxsf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newtxsf + CHECK_RESULT $? 0 0 "remove texlive-newtxsf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxtt-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxtt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..88ab0826d2b42f234ba364be49972c8842dafc76 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxtt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newtxtt-doc | grep -v \.src | grep texlive-newtxtt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newtxtt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newtxtt-doc + CHECK_RESULT $? 0 0 "install texlive-newtxtt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newtxtt-doc + CHECK_RESULT $? 0 0 "remove texlive-newtxtt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxtt.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxtt.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b4955d742d9aceec617aef682b2adb745211ecd --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newtxtt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newtxtt | grep -v \.src | grep texlive-newtxtt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newtxtt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newtxtt + CHECK_RESULT $? 0 0 "install texlive-newtxtt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newtxtt + CHECK_RESULT $? 0 0 "remove texlive-newtxtt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newunicodechar-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newunicodechar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b60bff82902883a7d4ae056dd693b454a5c2917 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newunicodechar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newunicodechar-doc | grep -v \.src | grep texlive-newunicodechar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newunicodechar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newunicodechar-doc + CHECK_RESULT $? 0 0 "install texlive-newunicodechar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newunicodechar-doc + CHECK_RESULT $? 0 0 "remove texlive-newunicodechar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newunicodechar.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newunicodechar.sh new file mode 100644 index 0000000000000000000000000000000000000000..c07ae3a73751ff4ff10882d3379abb9bb17e61be --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newunicodechar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newunicodechar | grep -v \.src | grep texlive-newunicodechar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newunicodechar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newunicodechar + CHECK_RESULT $? 0 0 "install texlive-newunicodechar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newunicodechar + CHECK_RESULT $? 0 0 "remove texlive-newunicodechar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newvbtm-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newvbtm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2729a61c7b253d7a1c9c2979cd9ad57ebe8c126 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newvbtm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newvbtm-doc | grep -v \.src | grep texlive-newvbtm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newvbtm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newvbtm-doc + CHECK_RESULT $? 0 0 "install texlive-newvbtm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newvbtm-doc + CHECK_RESULT $? 0 0 "remove texlive-newvbtm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newvbtm.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newvbtm.sh new file mode 100644 index 0000000000000000000000000000000000000000..31667008d98c03847eadc9d5bfd55974402365c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newvbtm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newvbtm | grep -v \.src | grep texlive-newvbtm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newvbtm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newvbtm + CHECK_RESULT $? 0 0 "install texlive-newvbtm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newvbtm + CHECK_RESULT $? 0 0 "remove texlive-newvbtm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newverbs-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newverbs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a877dc8dcaf89e7d1b6ac8a56420a9e9d1d30097 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newverbs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newverbs-doc | grep -v \.src | grep texlive-newverbs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newverbs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newverbs-doc + CHECK_RESULT $? 0 0 "install texlive-newverbs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newverbs-doc + CHECK_RESULT $? 0 0 "remove texlive-newverbs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newverbs.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newverbs.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b15944f5b0278857de4ba8301d01ead46cf4e5a --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-newverbs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newverbs | grep -v \.src | grep texlive-newverbs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newverbs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newverbs + CHECK_RESULT $? 0 0 "install texlive-newverbs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newverbs + CHECK_RESULT $? 0 0 "remove texlive-newverbs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nextpage.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nextpage.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6e37db855e35dc2da8561280080239d1838f4c1 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nextpage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nextpage | grep -v \.src | grep texlive-nextpage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nextpage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nextpage + CHECK_RESULT $? 0 0 "install texlive-nextpage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nextpage + CHECK_RESULT $? 0 0 "remove texlive-nextpage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nfssext-cfr-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nfssext-cfr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f334447ed184fc496dcbbcc9b98963745b6ac800 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nfssext-cfr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nfssext-cfr-doc | grep -v \.src | grep texlive-nfssext-cfr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nfssext-cfr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nfssext-cfr-doc + CHECK_RESULT $? 0 0 "install texlive-nfssext-cfr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nfssext-cfr-doc + CHECK_RESULT $? 0 0 "remove texlive-nfssext-cfr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nfssext-cfr.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nfssext-cfr.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dce5be7d11e1236a581e7b4e98ead2139a6d7ed --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nfssext-cfr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nfssext-cfr | grep -v \.src | grep texlive-nfssext-cfr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nfssext-cfr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nfssext-cfr + CHECK_RESULT $? 0 0 "install texlive-nfssext-cfr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nfssext-cfr + CHECK_RESULT $? 0 0 "remove texlive-nfssext-cfr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicefilelist-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicefilelist-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad096e41396c18a353dfd09ef25727b5b9ca06a2 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicefilelist-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nicefilelist-doc | grep -v \.src | grep texlive-nicefilelist-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nicefilelist-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nicefilelist-doc + CHECK_RESULT $? 0 0 "install texlive-nicefilelist-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nicefilelist-doc + CHECK_RESULT $? 0 0 "remove texlive-nicefilelist-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicefilelist.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicefilelist.sh new file mode 100644 index 0000000000000000000000000000000000000000..94411dda20c13766558ec806980dea0962c34ab4 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicefilelist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nicefilelist | grep -v \.src | grep texlive-nicefilelist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nicefilelist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nicefilelist + CHECK_RESULT $? 0 0 "install texlive-nicefilelist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nicefilelist + CHECK_RESULT $? 0 0 "remove texlive-nicefilelist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-niceframe-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-niceframe-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..345eab4868c52d79aa1b5d00854c3985e67850f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-niceframe-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-niceframe-doc | grep -v \.src | grep texlive-niceframe-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-niceframe-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-niceframe-doc + CHECK_RESULT $? 0 0 "install texlive-niceframe-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-niceframe-doc + CHECK_RESULT $? 0 0 "remove texlive-niceframe-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-niceframe-type1.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-niceframe-type1.sh new file mode 100644 index 0000000000000000000000000000000000000000..256d1511b4553b949f808e7a139d67bfd9e0b202 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-niceframe-type1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-niceframe-type1 | grep -v \.src | grep texlive-niceframe-type1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-niceframe-type1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-niceframe-type1 + CHECK_RESULT $? 0 0 "install texlive-niceframe-type1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-niceframe-type1 + CHECK_RESULT $? 0 0 "remove texlive-niceframe-type1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-niceframe.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-niceframe.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a00ab6fdf10c26ad531a68ea99a4f885cc4c1ee --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-niceframe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-niceframe | grep -v \.src | grep texlive-niceframe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-niceframe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-niceframe + CHECK_RESULT $? 0 0 "install texlive-niceframe failed" + SLEEP_WAIT 1 + dnf remove -y texlive-niceframe + CHECK_RESULT $? 0 0 "remove texlive-niceframe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicematrix.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicematrix.sh new file mode 100644 index 0000000000000000000000000000000000000000..72af052d48951f7be58793a6001dfdccfb9fc8c3 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicematrix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nicematrix | grep -v \.src | grep texlive-nicematrix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nicematrix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nicematrix + CHECK_RESULT $? 0 0 "install texlive-nicematrix failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nicematrix + CHECK_RESULT $? 0 0 "remove texlive-nicematrix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicetext-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicetext-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d53467780ada8768d5f01ed14d82724abb7c67e2 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicetext-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nicetext-doc | grep -v \.src | grep texlive-nicetext-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nicetext-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nicetext-doc + CHECK_RESULT $? 0 0 "install texlive-nicetext-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nicetext-doc + CHECK_RESULT $? 0 0 "remove texlive-nicetext-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicetext.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicetext.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c6f78c941c256b0a74fb1789891327f93c416a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nicetext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nicetext | grep -v \.src | grep texlive-nicetext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nicetext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nicetext + CHECK_RESULT $? 0 0 "install texlive-nicetext failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nicetext + CHECK_RESULT $? 0 0 "remove texlive-nicetext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nidanfloat.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nidanfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbe28d28bec7f65a70ffbd15d65ed6b548a0bdf6 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nidanfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nidanfloat | grep -v \.src | grep texlive-nidanfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nidanfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nidanfloat + CHECK_RESULT $? 0 0 "install texlive-nidanfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nidanfloat + CHECK_RESULT $? 0 0 "remove texlive-nidanfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nih-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nih-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fbdcff1b23c850944a1a61eee676ce90c067531 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nih-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nih-doc | grep -v \.src | grep texlive-nih-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nih-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nih-doc + CHECK_RESULT $? 0 0 "install texlive-nih-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nih-doc + CHECK_RESULT $? 0 0 "remove texlive-nih-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nih.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nih.sh new file mode 100644 index 0000000000000000000000000000000000000000..c25b683ff3acdfdda9f6bbca1921a4b68527f4a6 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nih.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nih | grep -v \.src | grep texlive-nih + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nih" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nih + CHECK_RESULT $? 0 0 "install texlive-nih failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nih + CHECK_RESULT $? 0 0 "remove texlive-nih failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nihbiosketch-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nihbiosketch-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3e9f9214c02eeb01a592b59da1bee9833c16748 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nihbiosketch-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nihbiosketch-doc | grep -v \.src | grep texlive-nihbiosketch-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nihbiosketch-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nihbiosketch-doc + CHECK_RESULT $? 0 0 "install texlive-nihbiosketch-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nihbiosketch-doc + CHECK_RESULT $? 0 0 "remove texlive-nihbiosketch-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nihbiosketch.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nihbiosketch.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd06f11b12cd50ea727feb31f24cc59fbf6bcae3 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nihbiosketch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nihbiosketch | grep -v \.src | grep texlive-nihbiosketch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nihbiosketch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nihbiosketch + CHECK_RESULT $? 0 0 "install texlive-nihbiosketch failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nihbiosketch + CHECK_RESULT $? 0 0 "remove texlive-nihbiosketch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nimbus15-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nimbus15-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..32c6775c2777e9edac6ee9f02470593466835de3 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nimbus15-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nimbus15-doc | grep -v \.src | grep texlive-nimbus15-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nimbus15-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nimbus15-doc + CHECK_RESULT $? 0 0 "install texlive-nimbus15-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nimbus15-doc + CHECK_RESULT $? 0 0 "remove texlive-nimbus15-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nimbus15.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nimbus15.sh new file mode 100644 index 0000000000000000000000000000000000000000..4703b7bd6ca7ecbaeeeb73bed4fe48b1845e011c --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nimbus15.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nimbus15 | grep -v \.src | grep texlive-nimbus15 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nimbus15" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nimbus15 + CHECK_RESULT $? 0 0 "install texlive-nimbus15 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nimbus15 + CHECK_RESULT $? 0 0 "remove texlive-nimbus15 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nkarta-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nkarta-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec222c00633f2df7698a342370b1bf707633c301 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nkarta-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nkarta-doc | grep -v \.src | grep texlive-nkarta-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nkarta-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nkarta-doc + CHECK_RESULT $? 0 0 "install texlive-nkarta-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nkarta-doc + CHECK_RESULT $? 0 0 "remove texlive-nkarta-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nkarta.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nkarta.sh new file mode 100644 index 0000000000000000000000000000000000000000..75ca13006d2857a4a6a8aae342cc71a0a8ce7ab0 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nkarta.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nkarta | grep -v \.src | grep texlive-nkarta + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nkarta" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nkarta + CHECK_RESULT $? 0 0 "install texlive-nkarta failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nkarta + CHECK_RESULT $? 0 0 "remove texlive-nkarta failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nlctdoc-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nlctdoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..261692641381898d121fdbdb9ec024a200c83c59 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nlctdoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nlctdoc-doc | grep -v \.src | grep texlive-nlctdoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nlctdoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nlctdoc-doc + CHECK_RESULT $? 0 0 "install texlive-nlctdoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nlctdoc-doc + CHECK_RESULT $? 0 0 "remove texlive-nlctdoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nlctdoc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nlctdoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..29085e8a2453622ed301e435cee61edf330ea761 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nlctdoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nlctdoc | grep -v \.src | grep texlive-nlctdoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nlctdoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nlctdoc + CHECK_RESULT $? 0 0 "install texlive-nlctdoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nlctdoc + CHECK_RESULT $? 0 0 "remove texlive-nlctdoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nmbib-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nmbib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d05d2e013c584bf3661f481c6c84c69fd63ca920 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nmbib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nmbib-doc | grep -v \.src | grep texlive-nmbib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nmbib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nmbib-doc + CHECK_RESULT $? 0 0 "install texlive-nmbib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nmbib-doc + CHECK_RESULT $? 0 0 "remove texlive-nmbib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nmbib.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nmbib.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba3f40a73234eb3a41174bad267b1348e8f961b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-nmbib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nmbib | grep -v \.src | grep texlive-nmbib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nmbib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nmbib + CHECK_RESULT $? 0 0 "install texlive-nmbib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nmbib + CHECK_RESULT $? 0 0 "remove texlive-nmbib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-numericplots-doc.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-numericplots-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..369fd17a7ca05b7a7e82ea77130f7eaef8519075 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-numericplots-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numericplots-doc | grep -v \.src | grep texlive-numericplots-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numericplots-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numericplots-doc + CHECK_RESULT $? 0 0 "install texlive-numericplots-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numericplots-doc + CHECK_RESULT $? 0 0 "remove texlive-numericplots-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-numericplots.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-numericplots.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0e978dd3eec3dca22d8217ae39e246417461ca2 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-numericplots.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numericplots | grep -v \.src | grep texlive-numericplots + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numericplots" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numericplots + CHECK_RESULT $? 0 0 "install texlive-numericplots failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numericplots + CHECK_RESULT $? 0 0 "remove texlive-numericplots failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-split-p.sh b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-split-p.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf45f4089be897698677b03d8c3677d077635650 --- /dev/null +++ b/testcases/cli-test/texlive-split-p/oe_test_texlive-split-p_install_and_remove_texlive-split-p.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-p | grep -v \.src | grep texlive-split-p + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-p" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-p + CHECK_RESULT $? 0 0 "install texlive-split-p failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-p + CHECK_RESULT $? 0 0 "remove texlive-split-p failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noconflict-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noconflict-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d48c270c72f3ba961d56032896ee95e8dd3c699 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noconflict-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-noconflict-doc | grep -v \.src | grep texlive-noconflict-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-noconflict-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-noconflict-doc + CHECK_RESULT $? 0 0 "install texlive-noconflict-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-noconflict-doc + CHECK_RESULT $? 0 0 "remove texlive-noconflict-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noconflict.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noconflict.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6d9373a037df011f98aaea430b6b9db8f340cf9 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noconflict.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-noconflict | grep -v \.src | grep texlive-noconflict + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-noconflict" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-noconflict + CHECK_RESULT $? 0 0 "install texlive-noconflict failed" + SLEEP_WAIT 1 + dnf remove -y texlive-noconflict + CHECK_RESULT $? 0 0 "remove texlive-noconflict failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nodetree.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nodetree.sh new file mode 100644 index 0000000000000000000000000000000000000000..15e4743242d74edd195b9b99b5c6d5ba5971edd5 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nodetree.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nodetree | grep -v \.src | grep texlive-nodetree + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nodetree" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nodetree + CHECK_RESULT $? 0 0 "install texlive-nodetree failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nodetree + CHECK_RESULT $? 0 0 "remove texlive-nodetree failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noindentafter-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noindentafter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c74f94c3a68127feb8c6c033c93c79c0bf8d0524 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noindentafter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-noindentafter-doc | grep -v \.src | grep texlive-noindentafter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-noindentafter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-noindentafter-doc + CHECK_RESULT $? 0 0 "install texlive-noindentafter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-noindentafter-doc + CHECK_RESULT $? 0 0 "remove texlive-noindentafter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noindentafter.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noindentafter.sh new file mode 100644 index 0000000000000000000000000000000000000000..2de92363f04e58bdf4e933e1c26c9aa0301c86bd --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noindentafter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-noindentafter | grep -v \.src | grep texlive-noindentafter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-noindentafter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-noindentafter + CHECK_RESULT $? 0 0 "install texlive-noindentafter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-noindentafter + CHECK_RESULT $? 0 0 "remove texlive-noindentafter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noitcrul-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noitcrul-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3675b2561b03bbcb85dfb50003e3f97154f32779 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noitcrul-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-noitcrul-doc | grep -v \.src | grep texlive-noitcrul-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-noitcrul-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-noitcrul-doc + CHECK_RESULT $? 0 0 "install texlive-noitcrul-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-noitcrul-doc + CHECK_RESULT $? 0 0 "remove texlive-noitcrul-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noitcrul.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noitcrul.sh new file mode 100644 index 0000000000000000000000000000000000000000..61dddb823016e06519625e11a504422feba0681f --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noitcrul.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-noitcrul | grep -v \.src | grep texlive-noitcrul + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-noitcrul" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-noitcrul + CHECK_RESULT $? 0 0 "install texlive-noitcrul failed" + SLEEP_WAIT 1 + dnf remove -y texlive-noitcrul + CHECK_RESULT $? 0 0 "remove texlive-noitcrul failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nolbreaks-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nolbreaks-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..eca185fff32d8c8332f975a9cf698cb57cc102d5 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nolbreaks-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nolbreaks-doc | grep -v \.src | grep texlive-nolbreaks-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nolbreaks-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nolbreaks-doc + CHECK_RESULT $? 0 0 "install texlive-nolbreaks-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nolbreaks-doc + CHECK_RESULT $? 0 0 "remove texlive-nolbreaks-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nolbreaks.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nolbreaks.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7b597384e870c9a46b517a9d732d489d4939df4 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nolbreaks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nolbreaks | grep -v \.src | grep texlive-nolbreaks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nolbreaks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nolbreaks + CHECK_RESULT $? 0 0 "install texlive-nolbreaks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nolbreaks + CHECK_RESULT $? 0 0 "remove texlive-nolbreaks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomencl-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomencl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9155b1f1ac335009e9c9d60d71ee8327d47ab8f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomencl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nomencl-doc | grep -v \.src | grep texlive-nomencl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nomencl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nomencl-doc + CHECK_RESULT $? 0 0 "install texlive-nomencl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nomencl-doc + CHECK_RESULT $? 0 0 "remove texlive-nomencl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomencl.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomencl.sh new file mode 100644 index 0000000000000000000000000000000000000000..35b45b2c36e98831e9a127c69ccce728f826d7a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomencl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nomencl | grep -v \.src | grep texlive-nomencl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nomencl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nomencl + CHECK_RESULT $? 0 0 "install texlive-nomencl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nomencl + CHECK_RESULT $? 0 0 "remove texlive-nomencl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomentbl-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomentbl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..97d4c3cf4c45d883cc9c2a32e8577b92fc90f83b --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomentbl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nomentbl-doc | grep -v \.src | grep texlive-nomentbl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nomentbl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nomentbl-doc + CHECK_RESULT $? 0 0 "install texlive-nomentbl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nomentbl-doc + CHECK_RESULT $? 0 0 "remove texlive-nomentbl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomentbl.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomentbl.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a72fde6e5f97aac57cba475d2da811934cd4883 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nomentbl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nomentbl | grep -v \.src | grep texlive-nomentbl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nomentbl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nomentbl + CHECK_RESULT $? 0 0 "install texlive-nomentbl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nomentbl + CHECK_RESULT $? 0 0 "remove texlive-nomentbl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonfloat-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonfloat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7aaa59bfea9f69a20f58a1f83fa8965eab5631d --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonfloat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nonfloat-doc | grep -v \.src | grep texlive-nonfloat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nonfloat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nonfloat-doc + CHECK_RESULT $? 0 0 "install texlive-nonfloat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nonfloat-doc + CHECK_RESULT $? 0 0 "remove texlive-nonfloat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonfloat.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5aae370f5de4b3479ad43db1603ecd6545899f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nonfloat | grep -v \.src | grep texlive-nonfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nonfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nonfloat + CHECK_RESULT $? 0 0 "install texlive-nonfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nonfloat + CHECK_RESULT $? 0 0 "remove texlive-nonfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonumonpart-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonumonpart-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..84b588fcec4100cb47ca0b44d300e1949a3c67bf --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonumonpart-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nonumonpart-doc | grep -v \.src | grep texlive-nonumonpart-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nonumonpart-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nonumonpart-doc + CHECK_RESULT $? 0 0 "install texlive-nonumonpart-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nonumonpart-doc + CHECK_RESULT $? 0 0 "remove texlive-nonumonpart-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonumonpart.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonumonpart.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2e0f5a1eacfe180e16b7070a52f178984f8ecd4 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nonumonpart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nonumonpart | grep -v \.src | grep texlive-nonumonpart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nonumonpart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nonumonpart + CHECK_RESULT $? 0 0 "install texlive-nonumonpart failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nonumonpart + CHECK_RESULT $? 0 0 "remove texlive-nonumonpart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nopageno-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nopageno-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3005ace6023e18ba3080a44b866af556d487398 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nopageno-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nopageno-doc | grep -v \.src | grep texlive-nopageno-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nopageno-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nopageno-doc + CHECK_RESULT $? 0 0 "install texlive-nopageno-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nopageno-doc + CHECK_RESULT $? 0 0 "remove texlive-nopageno-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nopageno.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nopageno.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7afc6fea4645d10c9d887443d617ce67f52da0f --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nopageno.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nopageno | grep -v \.src | grep texlive-nopageno + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nopageno" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nopageno + CHECK_RESULT $? 0 0 "install texlive-nopageno failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nopageno + CHECK_RESULT $? 0 0 "remove texlive-nopageno failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-norasi-c90.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-norasi-c90.sh new file mode 100644 index 0000000000000000000000000000000000000000..974d74dbe4f881675e8bc1ab6eec0d60c1d5307e --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-norasi-c90.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-norasi-c90 | grep -v \.src | grep texlive-norasi-c90 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-norasi-c90" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-norasi-c90 + CHECK_RESULT $? 0 0 "install texlive-norasi-c90 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-norasi-c90 + CHECK_RESULT $? 0 0 "remove texlive-norasi-c90 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-normalcolor-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-normalcolor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b6d8e5df79ee4830383396fd9a3cc48594009c8 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-normalcolor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-normalcolor-doc | grep -v \.src | grep texlive-normalcolor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-normalcolor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-normalcolor-doc + CHECK_RESULT $? 0 0 "install texlive-normalcolor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-normalcolor-doc + CHECK_RESULT $? 0 0 "remove texlive-normalcolor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-normalcolor.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-normalcolor.sh new file mode 100644 index 0000000000000000000000000000000000000000..401e74a74b4fbc979849603dddcab919312f5a64 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-normalcolor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-normalcolor | grep -v \.src | grep texlive-normalcolor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-normalcolor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-normalcolor + CHECK_RESULT $? 0 0 "install texlive-normalcolor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-normalcolor + CHECK_RESULT $? 0 0 "remove texlive-normalcolor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nostarch-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nostarch-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a787c687aa7aee40a53462516a3fcad694d0152 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nostarch-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nostarch-doc | grep -v \.src | grep texlive-nostarch-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nostarch-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nostarch-doc + CHECK_RESULT $? 0 0 "install texlive-nostarch-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nostarch-doc + CHECK_RESULT $? 0 0 "remove texlive-nostarch-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nostarch.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nostarch.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf8c62f591780aecd90436657133a7002bcb3f16 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nostarch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nostarch | grep -v \.src | grep texlive-nostarch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nostarch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nostarch + CHECK_RESULT $? 0 0 "install texlive-nostarch failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nostarch + CHECK_RESULT $? 0 0 "remove texlive-nostarch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e2aead427d280b777e8b3a572580c4f66c700f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-notes-doc | grep -v \.src | grep texlive-notes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-notes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-notes-doc + CHECK_RESULT $? 0 0 "install texlive-notes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-notes-doc + CHECK_RESULT $? 0 0 "remove texlive-notes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes.sh new file mode 100644 index 0000000000000000000000000000000000000000..b29e9250399b66af0ff9a44d5a998ef642b1b5da --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-notes | grep -v \.src | grep texlive-notes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-notes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-notes + CHECK_RESULT $? 0 0 "install texlive-notes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-notes + CHECK_RESULT $? 0 0 "remove texlive-notes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes2bib-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes2bib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..81e07478a15cc1e75da0ad5de4460f8ef902f635 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes2bib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-notes2bib-doc | grep -v \.src | grep texlive-notes2bib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-notes2bib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-notes2bib-doc + CHECK_RESULT $? 0 0 "install texlive-notes2bib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-notes2bib-doc + CHECK_RESULT $? 0 0 "remove texlive-notes2bib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes2bib.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes2bib.sh new file mode 100644 index 0000000000000000000000000000000000000000..c53d129ee2457ace045d42214d0df7ef47d99030 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notes2bib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-notes2bib | grep -v \.src | grep texlive-notes2bib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-notes2bib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-notes2bib + CHECK_RESULT $? 0 0 "install texlive-notes2bib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-notes2bib + CHECK_RESULT $? 0 0 "remove texlive-notes2bib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notespages.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notespages.sh new file mode 100644 index 0000000000000000000000000000000000000000..e464636d844a6cd1e29169c0527e9b800bac4ba9 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notespages.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-notespages | grep -v \.src | grep texlive-notespages + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-notespages" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-notespages + CHECK_RESULT $? 0 0 "install texlive-notespages failed" + SLEEP_WAIT 1 + dnf remove -y texlive-notespages + CHECK_RESULT $? 0 0 "remove texlive-notespages failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notestex.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notestex.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7de8d6472623f98baa18db2ab10f7a587a2c476 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notestex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-notestex | grep -v \.src | grep texlive-notestex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-notestex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-notestex + CHECK_RESULT $? 0 0 "install texlive-notestex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-notestex + CHECK_RESULT $? 0 0 "remove texlive-notestex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notex-bst.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notex-bst.sh new file mode 100644 index 0000000000000000000000000000000000000000..532e7cf11ea3c8c56ef839d93675fc8fd7a93f56 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notex-bst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-notex-bst | grep -v \.src | grep texlive-notex-bst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-notex-bst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-notex-bst + CHECK_RESULT $? 0 0 "install texlive-notex-bst failed" + SLEEP_WAIT 1 + dnf remove -y texlive-notex-bst + CHECK_RESULT $? 0 0 "remove texlive-notex-bst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noto-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noto-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a64c10ad7d4f28cabd702cfe5828b8ed1f4b166 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noto-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-noto-doc | grep -v \.src | grep texlive-noto-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-noto-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-noto-doc + CHECK_RESULT $? 0 0 "install texlive-noto-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-noto-doc + CHECK_RESULT $? 0 0 "remove texlive-noto-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noto.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noto.sh new file mode 100644 index 0000000000000000000000000000000000000000..93bdc2893e30e0763ff4863548f123d5e36e1141 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-noto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-noto | grep -v \.src | grep texlive-noto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-noto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-noto + CHECK_RESULT $? 0 0 "install texlive-noto failed" + SLEEP_WAIT 1 + dnf remove -y texlive-noto + CHECK_RESULT $? 0 0 "remove texlive-noto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notoccite-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notoccite-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..35db140a45b3f04fc2c4f6ab33e329e08aeaaaf6 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notoccite-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-notoccite-doc | grep -v \.src | grep texlive-notoccite-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-notoccite-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-notoccite-doc + CHECK_RESULT $? 0 0 "install texlive-notoccite-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-notoccite-doc + CHECK_RESULT $? 0 0 "remove texlive-notoccite-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notoccite.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notoccite.sh new file mode 100644 index 0000000000000000000000000000000000000000..b03769c01b614c8551ad835a12bda341ce4ef80e --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-notoccite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-notoccite | grep -v \.src | grep texlive-notoccite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-notoccite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-notoccite + CHECK_RESULT $? 0 0 "install texlive-notoccite failed" + SLEEP_WAIT 1 + dnf remove -y texlive-notoccite + CHECK_RESULT $? 0 0 "remove texlive-notoccite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-novel.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-novel.sh new file mode 100644 index 0000000000000000000000000000000000000000..4245a3d720149b214db6d070abfcea8f8265915d --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-novel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-novel | grep -v \.src | grep texlive-novel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-novel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-novel + CHECK_RESULT $? 0 0 "install texlive-novel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-novel + CHECK_RESULT $? 0 0 "remove texlive-novel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nowidow-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nowidow-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa00dd5e26e096ee9bcfd7a23a2e177fdd73ba20 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nowidow-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nowidow-doc | grep -v \.src | grep texlive-nowidow-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nowidow-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nowidow-doc + CHECK_RESULT $? 0 0 "install texlive-nowidow-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nowidow-doc + CHECK_RESULT $? 0 0 "remove texlive-nowidow-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nowidow.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nowidow.sh new file mode 100644 index 0000000000000000000000000000000000000000..613af8bb84a1c80144ab6f34b2b19ee1a2784549 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nowidow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nowidow | grep -v \.src | grep texlive-nowidow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nowidow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nowidow + CHECK_RESULT $? 0 0 "install texlive-nowidow failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nowidow + CHECK_RESULT $? 0 0 "remove texlive-nowidow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nox-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1142dddb4c7553fead554ff425b256a921898599 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nox-doc | grep -v \.src | grep texlive-nox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nox-doc + CHECK_RESULT $? 0 0 "install texlive-nox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nox-doc + CHECK_RESULT $? 0 0 "remove texlive-nox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nox.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nox.sh new file mode 100644 index 0000000000000000000000000000000000000000..61168226c800a302c9aacef6c3d72eb1a2d9bbe4 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nox | grep -v \.src | grep texlive-nox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nox + CHECK_RESULT $? 0 0 "install texlive-nox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nox + CHECK_RESULT $? 0 0 "remove texlive-nox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nrc-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nrc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c587fd7e3dd715275a6ef944ce1323bdd6e25f8d --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nrc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nrc-doc | grep -v \.src | grep texlive-nrc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nrc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nrc-doc + CHECK_RESULT $? 0 0 "install texlive-nrc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nrc-doc + CHECK_RESULT $? 0 0 "remove texlive-nrc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nrc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nrc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bb8e7fdcb8897c564c345e91b857f38115a03f3 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nrc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nrc | grep -v \.src | grep texlive-nrc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nrc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nrc + CHECK_RESULT $? 0 0 "install texlive-nrc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nrc + CHECK_RESULT $? 0 0 "remove texlive-nrc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntgclass-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntgclass-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f4bba61fcb593cf086fb544b815ca92cc89cb21 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntgclass-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ntgclass-doc | grep -v \.src | grep texlive-ntgclass-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ntgclass-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ntgclass-doc + CHECK_RESULT $? 0 0 "install texlive-ntgclass-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ntgclass-doc + CHECK_RESULT $? 0 0 "remove texlive-ntgclass-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntgclass.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntgclass.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f488082076214c2610983650e62bcf80da6b4a6 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntgclass.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ntgclass | grep -v \.src | grep texlive-ntgclass + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ntgclass" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ntgclass + CHECK_RESULT $? 0 0 "install texlive-ntgclass failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ntgclass + CHECK_RESULT $? 0 0 "remove texlive-ntgclass failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntheorem-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntheorem-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2416444891a1cda00fb12e9eacb7ed0c9af3cb02 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntheorem-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ntheorem-doc | grep -v \.src | grep texlive-ntheorem-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ntheorem-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ntheorem-doc + CHECK_RESULT $? 0 0 "install texlive-ntheorem-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ntheorem-doc + CHECK_RESULT $? 0 0 "remove texlive-ntheorem-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntheorem-vn-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntheorem-vn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a116ca82fe5766cf3bcc69e7a9dac571878256a --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntheorem-vn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ntheorem-vn-doc | grep -v \.src | grep texlive-ntheorem-vn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ntheorem-vn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ntheorem-vn-doc + CHECK_RESULT $? 0 0 "install texlive-ntheorem-vn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ntheorem-vn-doc + CHECK_RESULT $? 0 0 "remove texlive-ntheorem-vn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntheorem.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntheorem.sh new file mode 100644 index 0000000000000000000000000000000000000000..db2a9bc6f929f36b566afd4854c110e2de758653 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ntheorem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ntheorem | grep -v \.src | grep texlive-ntheorem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ntheorem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ntheorem + CHECK_RESULT $? 0 0 "install texlive-ntheorem failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ntheorem + CHECK_RESULT $? 0 0 "remove texlive-ntheorem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nuc-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nuc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6941a397915ee348342640656622118e3bc8d449 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nuc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nuc-doc | grep -v \.src | grep texlive-nuc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nuc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nuc-doc + CHECK_RESULT $? 0 0 "install texlive-nuc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nuc-doc + CHECK_RESULT $? 0 0 "remove texlive-nuc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nuc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nuc.sh new file mode 100644 index 0000000000000000000000000000000000000000..493b04889589346de59036074d9380255b1bb021 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nuc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nuc | grep -v \.src | grep texlive-nuc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nuc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nuc + CHECK_RESULT $? 0 0 "install texlive-nuc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nuc + CHECK_RESULT $? 0 0 "remove texlive-nuc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nucleardata-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nucleardata-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5112166ad258285f25fe305f3f738f129c4e02c --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nucleardata-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nucleardata-doc | grep -v \.src | grep texlive-nucleardata-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nucleardata-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nucleardata-doc + CHECK_RESULT $? 0 0 "install texlive-nucleardata-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nucleardata-doc + CHECK_RESULT $? 0 0 "remove texlive-nucleardata-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nucleardata.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nucleardata.sh new file mode 100644 index 0000000000000000000000000000000000000000..978ea9b2046400f7fab3134f9d577d3e94c8a279 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nucleardata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nucleardata | grep -v \.src | grep texlive-nucleardata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nucleardata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nucleardata + CHECK_RESULT $? 0 0 "install texlive-nucleardata failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nucleardata + CHECK_RESULT $? 0 0 "remove texlive-nucleardata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numberedblock-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numberedblock-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..01c7fc58361e79a8e3bee706eada5971de15c634 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numberedblock-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numberedblock-doc | grep -v \.src | grep texlive-numberedblock-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numberedblock-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numberedblock-doc + CHECK_RESULT $? 0 0 "install texlive-numberedblock-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numberedblock-doc + CHECK_RESULT $? 0 0 "remove texlive-numberedblock-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numberedblock.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numberedblock.sh new file mode 100644 index 0000000000000000000000000000000000000000..d60455f197731396bbe87d5172a7188c5a2960dd --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numberedblock.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numberedblock | grep -v \.src | grep texlive-numberedblock + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numberedblock" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numberedblock + CHECK_RESULT $? 0 0 "install texlive-numberedblock failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numberedblock + CHECK_RESULT $? 0 0 "remove texlive-numberedblock failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numericplots-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numericplots-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..921372b841e8d2840c509de110dfe7ffcf892624 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numericplots-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numericplots-doc | grep -v \.src | grep texlive-numericplots-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numericplots-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numericplots-doc + CHECK_RESULT $? 0 0 "install texlive-numericplots-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numericplots-doc + CHECK_RESULT $? 0 0 "remove texlive-numericplots-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numericplots.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numericplots.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5811585d6f8e1d04226810f395cec8d4c71af96 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numericplots.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numericplots | grep -v \.src | grep texlive-numericplots + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numericplots" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numericplots + CHECK_RESULT $? 0 0 "install texlive-numericplots failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numericplots + CHECK_RESULT $? 0 0 "remove texlive-numericplots failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numname-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numname-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b20ec6f813d45b2f13b283949a35ed604ca4194 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numname-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numname-doc | grep -v \.src | grep texlive-numname-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numname-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numname-doc + CHECK_RESULT $? 0 0 "install texlive-numname-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numname-doc + CHECK_RESULT $? 0 0 "remove texlive-numname-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numname.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numname.sh new file mode 100644 index 0000000000000000000000000000000000000000..9da8c9a7d4ffa76e5b670b9cbadd5bee54afc3b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numname.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numname | grep -v \.src | grep texlive-numname + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numname" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numname + CHECK_RESULT $? 0 0 "install texlive-numname failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numname + CHECK_RESULT $? 0 0 "remove texlive-numname failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numnameru.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numnameru.sh new file mode 100644 index 0000000000000000000000000000000000000000..161e0549f1b0a7c80180a61e1cab0aa72dac99fb --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numnameru.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numnameru | grep -v \.src | grep texlive-numnameru + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numnameru" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numnameru + CHECK_RESULT $? 0 0 "install texlive-numnameru failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numnameru + CHECK_RESULT $? 0 0 "remove texlive-numnameru failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numprint-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numprint-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0aef0c6dba547c12d6bac8019b94d0fc683ed7bc --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numprint-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numprint-doc | grep -v \.src | grep texlive-numprint-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numprint-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numprint-doc + CHECK_RESULT $? 0 0 "install texlive-numprint-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numprint-doc + CHECK_RESULT $? 0 0 "remove texlive-numprint-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numprint.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numprint.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fc016c5c859c8271b4c03cd0fb9a4d9cf69d9e7 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numprint.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numprint | grep -v \.src | grep texlive-numprint + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numprint" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numprint + CHECK_RESULT $? 0 0 "install texlive-numprint failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numprint + CHECK_RESULT $? 0 0 "remove texlive-numprint failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numspell.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numspell.sh new file mode 100644 index 0000000000000000000000000000000000000000..22980dba45dadebb1547d9118d2cf9f69f98d655 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-numspell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numspell | grep -v \.src | grep texlive-numspell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numspell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numspell + CHECK_RESULT $? 0 0 "install texlive-numspell failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numspell + CHECK_RESULT $? 0 0 "remove texlive-numspell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nwejm-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nwejm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8cb118dbbab49c1be520c458ee48f7c7e2e9449 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nwejm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nwejm-doc | grep -v \.src | grep texlive-nwejm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nwejm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nwejm-doc + CHECK_RESULT $? 0 0 "install texlive-nwejm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nwejm-doc + CHECK_RESULT $? 0 0 "remove texlive-nwejm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nwejm.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nwejm.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0d71958d1edfb8ba9d26091bb1a8199d2572439 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-nwejm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nwejm | grep -v \.src | grep texlive-nwejm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nwejm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nwejm + CHECK_RESULT $? 0 0 "install texlive-nwejm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nwejm + CHECK_RESULT $? 0 0 "remove texlive-nwejm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-objectz-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-objectz-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5d5871834a01915c3e4c093e410e183f368921c --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-objectz-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-objectz-doc | grep -v \.src | grep texlive-objectz-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-objectz-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-objectz-doc + CHECK_RESULT $? 0 0 "install texlive-objectz-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-objectz-doc + CHECK_RESULT $? 0 0 "remove texlive-objectz-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-objectz.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-objectz.sh new file mode 100644 index 0000000000000000000000000000000000000000..292e35f0498150399deed235ab49950f1f3905c4 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-objectz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-objectz | grep -v \.src | grep texlive-objectz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-objectz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-objectz + CHECK_RESULT $? 0 0 "install texlive-objectz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-objectz + CHECK_RESULT $? 0 0 "remove texlive-objectz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-obnov-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-obnov-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..07cb40227a5baab0c4c033c509f4986910092963 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-obnov-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-obnov-doc | grep -v \.src | grep texlive-obnov-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-obnov-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-obnov-doc + CHECK_RESULT $? 0 0 "install texlive-obnov-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-obnov-doc + CHECK_RESULT $? 0 0 "remove texlive-obnov-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-obnov.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-obnov.sh new file mode 100644 index 0000000000000000000000000000000000000000..f791714312ffa99d4d77051780fcd1d7e1336dd1 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-obnov.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-obnov | grep -v \.src | grep texlive-obnov + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-obnov" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-obnov + CHECK_RESULT $? 0 0 "install texlive-obnov failed" + SLEEP_WAIT 1 + dnf remove -y texlive-obnov + CHECK_RESULT $? 0 0 "remove texlive-obnov failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-obsolete.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-obsolete.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f7a93ff6fa5a27ef0e86f38beed9093fa994eb1 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-obsolete.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-obsolete | grep -v \.src | grep texlive-obsolete + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-obsolete" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-obsolete + CHECK_RESULT $? 0 0 "install texlive-obsolete failed" + SLEEP_WAIT 1 + dnf remove -y texlive-obsolete + CHECK_RESULT $? 0 0 "remove texlive-obsolete failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocg-p-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocg-p-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c042e5775d72e70bb8075ac9a3441585511622e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocg-p-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocg-p-doc | grep -v \.src | grep texlive-ocg-p-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocg-p-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocg-p-doc + CHECK_RESULT $? 0 0 "install texlive-ocg-p-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocg-p-doc + CHECK_RESULT $? 0 0 "remove texlive-ocg-p-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocg-p.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocg-p.sh new file mode 100644 index 0000000000000000000000000000000000000000..d43327f0771b1cd062ad5f93119c9437eb8d1d68 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocg-p.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocg-p | grep -v \.src | grep texlive-ocg-p + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocg-p" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocg-p + CHECK_RESULT $? 0 0 "install texlive-ocg-p failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocg-p + CHECK_RESULT $? 0 0 "remove texlive-ocg-p failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f167b6ecdc70bca79e6079919ae16142a3803c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocgx-doc | grep -v \.src | grep texlive-ocgx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocgx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocgx-doc + CHECK_RESULT $? 0 0 "install texlive-ocgx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocgx-doc + CHECK_RESULT $? 0 0 "remove texlive-ocgx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx.sh new file mode 100644 index 0000000000000000000000000000000000000000..d127e577e7ac8f3ed74552f46017d1d593cfc2dd --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocgx | grep -v \.src | grep texlive-ocgx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocgx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocgx + CHECK_RESULT $? 0 0 "install texlive-ocgx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocgx + CHECK_RESULT $? 0 0 "remove texlive-ocgx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx2-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx2-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c286c66f5faa1c41063c7241acd4f40b6d544b02 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx2-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocgx2-doc | grep -v \.src | grep texlive-ocgx2-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocgx2-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocgx2-doc + CHECK_RESULT $? 0 0 "install texlive-ocgx2-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocgx2-doc + CHECK_RESULT $? 0 0 "remove texlive-ocgx2-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx2.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx2.sh new file mode 100644 index 0000000000000000000000000000000000000000..09e540b9e49106105d08a7fea16b4b6309f3e81c --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocgx2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocgx2 | grep -v \.src | grep texlive-ocgx2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocgx2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocgx2 + CHECK_RESULT $? 0 0 "install texlive-ocgx2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocgx2 + CHECK_RESULT $? 0 0 "remove texlive-ocgx2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocherokee-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocherokee-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..def4e4b4b81f78ca0fec2ffa371a0ca2a4f193ae --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocherokee-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocherokee-doc | grep -v \.src | grep texlive-ocherokee-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocherokee-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocherokee-doc + CHECK_RESULT $? 0 0 "install texlive-ocherokee-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocherokee-doc + CHECK_RESULT $? 0 0 "remove texlive-ocherokee-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocherokee.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocherokee.sh new file mode 100644 index 0000000000000000000000000000000000000000..3706a44c794750b7531bd855d4cda8f9ccc43a34 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocherokee.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocherokee | grep -v \.src | grep texlive-ocherokee + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocherokee" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocherokee + CHECK_RESULT $? 0 0 "install texlive-ocherokee failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocherokee + CHECK_RESULT $? 0 0 "remove texlive-ocherokee failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..caee4bbdbfbd3a28d80a6c9f27dfacb8ee7b411a --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocr-b-doc | grep -v \.src | grep texlive-ocr-b-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocr-b-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocr-b-doc + CHECK_RESULT $? 0 0 "install texlive-ocr-b-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocr-b-doc + CHECK_RESULT $? 0 0 "remove texlive-ocr-b-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-outline-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-outline-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..64da6bd723f0c2baa3e5ad5633b80dff37e7ee38 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-outline-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocr-b-outline-doc | grep -v \.src | grep texlive-ocr-b-outline-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocr-b-outline-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocr-b-outline-doc + CHECK_RESULT $? 0 0 "install texlive-ocr-b-outline-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocr-b-outline-doc + CHECK_RESULT $? 0 0 "remove texlive-ocr-b-outline-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-outline.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-outline.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbdb87108f520ae6daa2957ebdbde9ba055153d0 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b-outline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocr-b-outline | grep -v \.src | grep texlive-ocr-b-outline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocr-b-outline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocr-b-outline + CHECK_RESULT $? 0 0 "install texlive-ocr-b-outline failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocr-b-outline + CHECK_RESULT $? 0 0 "remove texlive-ocr-b-outline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b.sh new file mode 100644 index 0000000000000000000000000000000000000000..06a34eacda6b4f300afc72d92ecd622104c6800e --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-b.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocr-b | grep -v \.src | grep texlive-ocr-b + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocr-b" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocr-b + CHECK_RESULT $? 0 0 "install texlive-ocr-b failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocr-b + CHECK_RESULT $? 0 0 "remove texlive-ocr-b failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-latex-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-latex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cbb5e3b6ce9516ad4e899e44085ce863890cccd --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-latex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocr-latex-doc | grep -v \.src | grep texlive-ocr-latex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocr-latex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocr-latex-doc + CHECK_RESULT $? 0 0 "install texlive-ocr-latex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocr-latex-doc + CHECK_RESULT $? 0 0 "remove texlive-ocr-latex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-latex.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-latex.sh new file mode 100644 index 0000000000000000000000000000000000000000..1906ed17de262fffbefe7f651087ae364d9fcb2f --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ocr-latex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ocr-latex | grep -v \.src | grep texlive-ocr-latex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ocr-latex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ocr-latex + CHECK_RESULT $? 0 0 "install texlive-ocr-latex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ocr-latex + CHECK_RESULT $? 0 0 "remove texlive-ocr-latex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-octave.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-octave.sh new file mode 100644 index 0000000000000000000000000000000000000000..1836a724cb106b0aec9e17b3f48a57efea2e2478 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-octave.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-octave | grep -v \.src | grep texlive-octave + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-octave" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-octave + CHECK_RESULT $? 0 0 "install texlive-octave failed" + SLEEP_WAIT 1 + dnf remove -y texlive-octave + CHECK_RESULT $? 0 0 "remove texlive-octave failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-octavo-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-octavo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..da9769cece75cf7039336301ca223265a216895b --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-octavo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-octavo-doc | grep -v \.src | grep texlive-octavo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-octavo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-octavo-doc + CHECK_RESULT $? 0 0 "install texlive-octavo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-octavo-doc + CHECK_RESULT $? 0 0 "remove texlive-octavo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-octavo.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-octavo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f23c7bb549d2f06954236a8929085a04bc2fb1a --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-octavo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-octavo | grep -v \.src | grep texlive-octavo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-octavo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-octavo + CHECK_RESULT $? 0 0 "install texlive-octavo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-octavo + CHECK_RESULT $? 0 0 "remove texlive-octavo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-odsfile-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-odsfile-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..809b06fae42fcb4eddc291bce2947fb75a54bca0 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-odsfile-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-odsfile-doc | grep -v \.src | grep texlive-odsfile-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-odsfile-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-odsfile-doc + CHECK_RESULT $? 0 0 "install texlive-odsfile-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-odsfile-doc + CHECK_RESULT $? 0 0 "remove texlive-odsfile-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-odsfile.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-odsfile.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5845362d1be76e8b6ccc0692b282dbf31f6a5d5 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-odsfile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-odsfile | grep -v \.src | grep texlive-odsfile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-odsfile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-odsfile + CHECK_RESULT $? 0 0 "install texlive-odsfile failed" + SLEEP_WAIT 1 + dnf remove -y texlive-odsfile + CHECK_RESULT $? 0 0 "remove texlive-odsfile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ofs-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ofs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ce1edbb296ae82a29ae0654b1f1b03bb9a76173 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ofs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ofs-doc | grep -v \.src | grep texlive-ofs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ofs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ofs-doc + CHECK_RESULT $? 0 0 "install texlive-ofs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ofs-doc + CHECK_RESULT $? 0 0 "remove texlive-ofs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ofs.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ofs.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a2c3febeab97d838db5de91610d3fe8d9a155a4 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ofs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ofs | grep -v \.src | grep texlive-ofs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ofs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ofs + CHECK_RESULT $? 0 0 "install texlive-ofs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ofs + CHECK_RESULT $? 0 0 "remove texlive-ofs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ogham-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ogham-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b3e0cd4659d042a5b99cd9c61eac975c1c65dab --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ogham-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ogham-doc | grep -v \.src | grep texlive-ogham-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ogham-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ogham-doc + CHECK_RESULT $? 0 0 "install texlive-ogham-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ogham-doc + CHECK_RESULT $? 0 0 "remove texlive-ogham-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ogham.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ogham.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5c5634a99dd2ecffb40f2626743afbd2f4f5b83 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ogham.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ogham | grep -v \.src | grep texlive-ogham + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ogham" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ogham + CHECK_RESULT $? 0 0 "install texlive-ogham failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ogham + CHECK_RESULT $? 0 0 "remove texlive-ogham failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oinuit-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oinuit-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e680326b24e411569a6f7200e326999a08b44e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oinuit-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oinuit-doc | grep -v \.src | grep texlive-oinuit-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oinuit-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oinuit-doc + CHECK_RESULT $? 0 0 "install texlive-oinuit-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oinuit-doc + CHECK_RESULT $? 0 0 "remove texlive-oinuit-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oinuit.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oinuit.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b2937ab69667a457b89f906919d7358a1c323da --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oinuit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oinuit | grep -v \.src | grep texlive-oinuit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oinuit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oinuit + CHECK_RESULT $? 0 0 "install texlive-oinuit failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oinuit + CHECK_RESULT $? 0 0 "remove texlive-oinuit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-old-arrows-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-old-arrows-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fd102c004cbab10e9243208a3ff160979d41e70 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-old-arrows-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-old-arrows-doc | grep -v \.src | grep texlive-old-arrows-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-old-arrows-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-old-arrows-doc + CHECK_RESULT $? 0 0 "install texlive-old-arrows-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-old-arrows-doc + CHECK_RESULT $? 0 0 "remove texlive-old-arrows-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-old-arrows.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-old-arrows.sh new file mode 100644 index 0000000000000000000000000000000000000000..63e7fbcd8637cf122729b34541dba343068d29f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-old-arrows.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-old-arrows | grep -v \.src | grep texlive-old-arrows + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-old-arrows" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-old-arrows + CHECK_RESULT $? 0 0 "install texlive-old-arrows failed" + SLEEP_WAIT 1 + dnf remove -y texlive-old-arrows + CHECK_RESULT $? 0 0 "remove texlive-old-arrows failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldlatin-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldlatin-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..00385b17be6ebf690f11ecd79cd328e9fbe089ae --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldlatin-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oldlatin-doc | grep -v \.src | grep texlive-oldlatin-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oldlatin-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oldlatin-doc + CHECK_RESULT $? 0 0 "install texlive-oldlatin-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oldlatin-doc + CHECK_RESULT $? 0 0 "remove texlive-oldlatin-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldlatin.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldlatin.sh new file mode 100644 index 0000000000000000000000000000000000000000..9124b447de089082f27cb145907ffcf9bee3b5a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldlatin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oldlatin | grep -v \.src | grep texlive-oldlatin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oldlatin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oldlatin + CHECK_RESULT $? 0 0 "install texlive-oldlatin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oldlatin + CHECK_RESULT $? 0 0 "remove texlive-oldlatin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstandard-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstandard-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..799f61fadfbc0c4a3d69a1831584307611994470 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstandard-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oldstandard-doc | grep -v \.src | grep texlive-oldstandard-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oldstandard-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oldstandard-doc + CHECK_RESULT $? 0 0 "install texlive-oldstandard-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oldstandard-doc + CHECK_RESULT $? 0 0 "remove texlive-oldstandard-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstandard.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstandard.sh new file mode 100644 index 0000000000000000000000000000000000000000..06b7157244e8f466bbb079db1cf3cca9417abecb --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstandard.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oldstandard | grep -v \.src | grep texlive-oldstandard + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oldstandard" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oldstandard + CHECK_RESULT $? 0 0 "install texlive-oldstandard failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oldstandard + CHECK_RESULT $? 0 0 "remove texlive-oldstandard failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstyle-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstyle-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..36b76e87fb80685fb4b3084883514a6f7c62d824 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstyle-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oldstyle-doc | grep -v \.src | grep texlive-oldstyle-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oldstyle-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oldstyle-doc + CHECK_RESULT $? 0 0 "install texlive-oldstyle-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oldstyle-doc + CHECK_RESULT $? 0 0 "remove texlive-oldstyle-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstyle.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstyle.sh new file mode 100644 index 0000000000000000000000000000000000000000..af2a3d636fa79720383c34881d412d44464f580f --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oldstyle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oldstyle | grep -v \.src | grep texlive-oldstyle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oldstyle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oldstyle + CHECK_RESULT $? 0 0 "install texlive-oldstyle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oldstyle + CHECK_RESULT $? 0 0 "remove texlive-oldstyle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-olsak-misc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-olsak-misc.sh new file mode 100644 index 0000000000000000000000000000000000000000..db4536837b22b9bd2af572013528d11b787cf460 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-olsak-misc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-olsak-misc | grep -v \.src | grep texlive-olsak-misc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-olsak-misc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-olsak-misc + CHECK_RESULT $? 0 0 "install texlive-olsak-misc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-olsak-misc + CHECK_RESULT $? 0 0 "remove texlive-olsak-misc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-omega-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-omega-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f6094fd28512d3c8acbb6d08f7e54ed45b5112f --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-omega-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-omega-doc | grep -v \.src | grep texlive-omega-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-omega-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-omega-doc + CHECK_RESULT $? 0 0 "install texlive-omega-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-omega-doc + CHECK_RESULT $? 0 0 "remove texlive-omega-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-omega.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-omega.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f8f54583c38eb929f8f1041e8bc62232bd38abf --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-omega.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-omega | grep -v \.src | grep texlive-omega + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-omega" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-omega + CHECK_RESULT $? 0 0 "install texlive-omega failed" + SLEEP_WAIT 1 + dnf remove -y texlive-omega + CHECK_RESULT $? 0 0 "remove texlive-omega failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onedown.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onedown.sh new file mode 100644 index 0000000000000000000000000000000000000000..542ce089d23c6ed5e8ce4f442f6297e582ea28d0 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onedown.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-onedown | grep -v \.src | grep texlive-onedown + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-onedown" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-onedown + CHECK_RESULT $? 0 0 "install texlive-onedown failed" + SLEEP_WAIT 1 + dnf remove -y texlive-onedown + CHECK_RESULT $? 0 0 "remove texlive-onedown failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onlyamsmath-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onlyamsmath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..65d39268acfa4c88ce2ae30bb972193f10b3e39b --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onlyamsmath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-onlyamsmath-doc | grep -v \.src | grep texlive-onlyamsmath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-onlyamsmath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-onlyamsmath-doc + CHECK_RESULT $? 0 0 "install texlive-onlyamsmath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-onlyamsmath-doc + CHECK_RESULT $? 0 0 "remove texlive-onlyamsmath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onlyamsmath.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onlyamsmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..776475438c30430b133cd05d9712b7ec3334fcda --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onlyamsmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-onlyamsmath | grep -v \.src | grep texlive-onlyamsmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-onlyamsmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-onlyamsmath + CHECK_RESULT $? 0 0 "install texlive-onlyamsmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-onlyamsmath + CHECK_RESULT $? 0 0 "remove texlive-onlyamsmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onrannual-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onrannual-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d0e97a86187cb1c0ae30d27a23fb0ae0098ec33 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onrannual-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-onrannual-doc | grep -v \.src | grep texlive-onrannual-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-onrannual-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-onrannual-doc + CHECK_RESULT $? 0 0 "install texlive-onrannual-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-onrannual-doc + CHECK_RESULT $? 0 0 "remove texlive-onrannual-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onrannual.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onrannual.sh new file mode 100644 index 0000000000000000000000000000000000000000..6567d1da0c375ba541d5228236c139d1da0856c4 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-onrannual.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-onrannual | grep -v \.src | grep texlive-onrannual + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-onrannual" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-onrannual + CHECK_RESULT $? 0 0 "install texlive-onrannual failed" + SLEEP_WAIT 1 + dnf remove -y texlive-onrannual + CHECK_RESULT $? 0 0 "remove texlive-onrannual failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opcit-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opcit-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..da29264f25f4be0e74a2d40e67bc9c26152c6c54 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opcit-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-opcit-doc | grep -v \.src | grep texlive-opcit-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-opcit-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-opcit-doc + CHECK_RESULT $? 0 0 "install texlive-opcit-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-opcit-doc + CHECK_RESULT $? 0 0 "remove texlive-opcit-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opcit.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opcit.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1ddb0e08eea3d22ca0a85286c445ebc634f1a0b --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opcit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-opcit | grep -v \.src | grep texlive-opcit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-opcit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-opcit + CHECK_RESULT $? 0 0 "install texlive-opcit failed" + SLEEP_WAIT 1 + dnf remove -y texlive-opcit + CHECK_RESULT $? 0 0 "remove texlive-opcit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opensans-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opensans-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a660205d599c9a1d8ca34d9ca43255c6a19c27a3 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opensans-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-opensans-doc | grep -v \.src | grep texlive-opensans-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-opensans-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-opensans-doc + CHECK_RESULT $? 0 0 "install texlive-opensans-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-opensans-doc + CHECK_RESULT $? 0 0 "remove texlive-opensans-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opensans.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opensans.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5970b02a8662185902f01af3aa33d3b8a23c100 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opensans.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-opensans | grep -v \.src | grep texlive-opensans + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-opensans" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-opensans + CHECK_RESULT $? 0 0 "install texlive-opensans failed" + SLEEP_WAIT 1 + dnf remove -y texlive-opensans + CHECK_RESULT $? 0 0 "remove texlive-opensans failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oplotsymbl.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oplotsymbl.sh new file mode 100644 index 0000000000000000000000000000000000000000..d023d1112615399bd97bd897a69b1f27994af75e --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oplotsymbl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oplotsymbl | grep -v \.src | grep texlive-oplotsymbl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oplotsymbl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oplotsymbl + CHECK_RESULT $? 0 0 "install texlive-oplotsymbl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oplotsymbl + CHECK_RESULT $? 0 0 "remove texlive-oplotsymbl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opteng-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opteng-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e21283087308781f0dcbd6a4841577eb4c91f87b --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opteng-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-opteng-doc | grep -v \.src | grep texlive-opteng-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-opteng-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-opteng-doc + CHECK_RESULT $? 0 0 "install texlive-opteng-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-opteng-doc + CHECK_RESULT $? 0 0 "remove texlive-opteng-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opteng.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opteng.sh new file mode 100644 index 0000000000000000000000000000000000000000..823239686664c1e04b80770d485d04ec61dcdfd0 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-opteng.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-opteng | grep -v \.src | grep texlive-opteng + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-opteng" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-opteng + CHECK_RESULT $? 0 0 "install texlive-opteng failed" + SLEEP_WAIT 1 + dnf remove -y texlive-opteng + CHECK_RESULT $? 0 0 "remove texlive-opteng failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optidef-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optidef-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..35326e7e461e1b3dc9f17fc369f4e58bdfa58f24 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optidef-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-optidef-doc | grep -v \.src | grep texlive-optidef-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-optidef-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-optidef-doc + CHECK_RESULT $? 0 0 "install texlive-optidef-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-optidef-doc + CHECK_RESULT $? 0 0 "remove texlive-optidef-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optidef.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optidef.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb7568f5fe103d763e6f20e61d0558fae3eb3bc5 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optidef.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-optidef | grep -v \.src | grep texlive-optidef + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-optidef" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-optidef + CHECK_RESULT $? 0 0 "install texlive-optidef failed" + SLEEP_WAIT 1 + dnf remove -y texlive-optidef + CHECK_RESULT $? 0 0 "remove texlive-optidef failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optional-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optional-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ad11a75e3704d70cbac7ca337b421f4cfe7fb15 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optional-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-optional-doc | grep -v \.src | grep texlive-optional-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-optional-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-optional-doc + CHECK_RESULT $? 0 0 "install texlive-optional-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-optional-doc + CHECK_RESULT $? 0 0 "remove texlive-optional-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optional.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optional.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad4c1962d7ebe13dc60b013919aecad889cba108 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-optional.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-optional | grep -v \.src | grep texlive-optional + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-optional" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-optional + CHECK_RESULT $? 0 0 "install texlive-optional failed" + SLEEP_WAIT 1 + dnf remove -y texlive-optional + CHECK_RESULT $? 0 0 "remove texlive-optional failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-options-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-options-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..33544b43a91f0b0a596502abda0a882fba4e11b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-options-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-options-doc | grep -v \.src | grep texlive-options-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-options-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-options-doc + CHECK_RESULT $? 0 0 "install texlive-options-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-options-doc + CHECK_RESULT $? 0 0 "remove texlive-options-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-options.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-options.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f2a3d457db3fe35773bab587281200ea05af490 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-options.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-options | grep -v \.src | grep texlive-options + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-options" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-options + CHECK_RESULT $? 0 0 "install texlive-options failed" + SLEEP_WAIT 1 + dnf remove -y texlive-options + CHECK_RESULT $? 0 0 "remove texlive-options failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ordinalpt-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ordinalpt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d76a3d6a51128e3f03085c047e33368a34c6b15a --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ordinalpt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ordinalpt-doc | grep -v \.src | grep texlive-ordinalpt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ordinalpt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ordinalpt-doc + CHECK_RESULT $? 0 0 "install texlive-ordinalpt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ordinalpt-doc + CHECK_RESULT $? 0 0 "remove texlive-ordinalpt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ordinalpt.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ordinalpt.sh new file mode 100644 index 0000000000000000000000000000000000000000..013977ef2ee0ba1e08dccd12b88f1e4dcc7772e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ordinalpt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ordinalpt | grep -v \.src | grep texlive-ordinalpt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ordinalpt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ordinalpt + CHECK_RESULT $? 0 0 "install texlive-ordinalpt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ordinalpt + CHECK_RESULT $? 0 0 "remove texlive-ordinalpt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-orkhun-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-orkhun-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3c021f77b88d29b43349ccc4853121fff4d2f8e --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-orkhun-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-orkhun-doc | grep -v \.src | grep texlive-orkhun-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-orkhun-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-orkhun-doc + CHECK_RESULT $? 0 0 "install texlive-orkhun-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-orkhun-doc + CHECK_RESULT $? 0 0 "remove texlive-orkhun-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-orkhun.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-orkhun.sh new file mode 100644 index 0000000000000000000000000000000000000000..1159b62ddd9e19d065e70b0f2954251dd96e1765 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-orkhun.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-orkhun | grep -v \.src | grep texlive-orkhun + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-orkhun" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-orkhun + CHECK_RESULT $? 0 0 "install texlive-orkhun failed" + SLEEP_WAIT 1 + dnf remove -y texlive-orkhun + CHECK_RESULT $? 0 0 "remove texlive-orkhun failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oscola-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oscola-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bdaa0d489e4330f2d01e5bc80d1b47b46d9c52ab --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oscola-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oscola-doc | grep -v \.src | grep texlive-oscola-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oscola-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oscola-doc + CHECK_RESULT $? 0 0 "install texlive-oscola-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oscola-doc + CHECK_RESULT $? 0 0 "remove texlive-oscola-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oscola.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oscola.sh new file mode 100644 index 0000000000000000000000000000000000000000..fac069c3fe5591aa026f2fdb18c37ed7d7190933 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oscola.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oscola | grep -v \.src | grep texlive-oscola + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oscola" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oscola + CHECK_RESULT $? 0 0 "install texlive-oscola failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oscola + CHECK_RESULT $? 0 0 "remove texlive-oscola failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ot-tableau-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ot-tableau-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee98d6c96dc8de94c47c543a09c3dc2b884572bd --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ot-tableau-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ot-tableau-doc | grep -v \.src | grep texlive-ot-tableau-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ot-tableau-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ot-tableau-doc + CHECK_RESULT $? 0 0 "install texlive-ot-tableau-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ot-tableau-doc + CHECK_RESULT $? 0 0 "remove texlive-ot-tableau-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ot-tableau.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ot-tableau.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba9965de7fb631d10558d8b750dd5b294e2873f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-ot-tableau.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ot-tableau | grep -v \.src | grep texlive-ot-tableau + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ot-tableau" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ot-tableau + CHECK_RESULT $? 0 0 "install texlive-ot-tableau failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ot-tableau + CHECK_RESULT $? 0 0 "remove texlive-ot-tableau failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othello-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othello-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bc78d032b479bcf5c9cd6a9d0f3829157ed8d69 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othello-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-othello-doc | grep -v \.src | grep texlive-othello-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-othello-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-othello-doc + CHECK_RESULT $? 0 0 "install texlive-othello-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-othello-doc + CHECK_RESULT $? 0 0 "remove texlive-othello-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othello.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othello.sh new file mode 100644 index 0000000000000000000000000000000000000000..05d9af13a4f77755458fe73fd5831258197628ad --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othello.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-othello | grep -v \.src | grep texlive-othello + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-othello" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-othello + CHECK_RESULT $? 0 0 "install texlive-othello failed" + SLEEP_WAIT 1 + dnf remove -y texlive-othello + CHECK_RESULT $? 0 0 "remove texlive-othello failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othelloboard-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othelloboard-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..180d5398e89ae50be51bc7e8168f956445bdf252 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othelloboard-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-othelloboard-doc | grep -v \.src | grep texlive-othelloboard-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-othelloboard-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-othelloboard-doc + CHECK_RESULT $? 0 0 "install texlive-othelloboard-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-othelloboard-doc + CHECK_RESULT $? 0 0 "remove texlive-othelloboard-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othelloboard.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othelloboard.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2468d3c616c593484fc88e82c67380210495358 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-othelloboard.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-othelloboard | grep -v \.src | grep texlive-othelloboard + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-othelloboard" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-othelloboard + CHECK_RESULT $? 0 0 "install texlive-othelloboard failed" + SLEEP_WAIT 1 + dnf remove -y texlive-othelloboard + CHECK_RESULT $? 0 0 "remove texlive-othelloboard failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-otibet-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-otibet-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e8229aa6848e720cc60bf99db495183e4033ea1 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-otibet-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-otibet-doc | grep -v \.src | grep texlive-otibet-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-otibet-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-otibet-doc + CHECK_RESULT $? 0 0 "install texlive-otibet-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-otibet-doc + CHECK_RESULT $? 0 0 "remove texlive-otibet-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-otibet.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-otibet.sh new file mode 100644 index 0000000000000000000000000000000000000000..feca11e207f11f560c6ac81287ee4ee27be7f5fe --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-otibet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-otibet | grep -v \.src | grep texlive-otibet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-otibet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-otibet + CHECK_RESULT $? 0 0 "install texlive-otibet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-otibet + CHECK_RESULT $? 0 0 "remove texlive-otibet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oubraces-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oubraces-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fdd1245ed63feedba74ee196f2c9f6c3b0bc7788 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oubraces-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oubraces-doc | grep -v \.src | grep texlive-oubraces-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oubraces-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oubraces-doc + CHECK_RESULT $? 0 0 "install texlive-oubraces-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oubraces-doc + CHECK_RESULT $? 0 0 "remove texlive-oubraces-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oubraces.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oubraces.sh new file mode 100644 index 0000000000000000000000000000000000000000..811b440d74c8e766b7e4578e639c4a3144986634 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-oubraces.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oubraces | grep -v \.src | grep texlive-oubraces + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oubraces" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oubraces + CHECK_RESULT $? 0 0 "install texlive-oubraces failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oubraces + CHECK_RESULT $? 0 0 "remove texlive-oubraces failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outline-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outline-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6066b6ba0424bd68187277e5e0f1419852c31ebb --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outline-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-outline-doc | grep -v \.src | grep texlive-outline-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-outline-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-outline-doc + CHECK_RESULT $? 0 0 "install texlive-outline-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-outline-doc + CHECK_RESULT $? 0 0 "remove texlive-outline-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outline.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outline.sh new file mode 100644 index 0000000000000000000000000000000000000000..de287dcb75a999d5f262e92ece9572d5289dbf09 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-outline | grep -v \.src | grep texlive-outline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-outline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-outline + CHECK_RESULT $? 0 0 "install texlive-outline failed" + SLEEP_WAIT 1 + dnf remove -y texlive-outline + CHECK_RESULT $? 0 0 "remove texlive-outline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outliner-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outliner-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..06afee5f68c4fadccbc4bf0474141d110189c41c --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outliner-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-outliner-doc | grep -v \.src | grep texlive-outliner-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-outliner-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-outliner-doc + CHECK_RESULT $? 0 0 "install texlive-outliner-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-outliner-doc + CHECK_RESULT $? 0 0 "remove texlive-outliner-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outliner.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outliner.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c1d4fd94f142e40b8fa23bcf50e463618f2b274 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outliner.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-outliner | grep -v \.src | grep texlive-outliner + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-outliner" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-outliner + CHECK_RESULT $? 0 0 "install texlive-outliner failed" + SLEEP_WAIT 1 + dnf remove -y texlive-outliner + CHECK_RESULT $? 0 0 "remove texlive-outliner failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outlines-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outlines-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a828afdc1f237350c85967fa32c1a6b5ffbbd3e9 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outlines-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-outlines-doc | grep -v \.src | grep texlive-outlines-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-outlines-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-outlines-doc + CHECK_RESULT $? 0 0 "install texlive-outlines-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-outlines-doc + CHECK_RESULT $? 0 0 "remove texlive-outlines-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outlines.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outlines.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d948d9c2d53fe8db0d63f21553bebf66e7b99b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outlines.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-outlines | grep -v \.src | grep texlive-outlines + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-outlines" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-outlines + CHECK_RESULT $? 0 0 "install texlive-outlines failed" + SLEEP_WAIT 1 + dnf remove -y texlive-outlines + CHECK_RESULT $? 0 0 "remove texlive-outlines failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outlining.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outlining.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3e454c09b422153283f55483bb24c7de57fe950 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-outlining.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-outlining | grep -v \.src | grep texlive-outlining + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-outlining" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-outlining + CHECK_RESULT $? 0 0 "install texlive-outlining failed" + SLEEP_WAIT 1 + dnf remove -y texlive-outlining + CHECK_RESULT $? 0 0 "remove texlive-outlining failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overlays.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overlays.sh new file mode 100644 index 0000000000000000000000000000000000000000..15e36fc94e96c952a949e5905efca8d737758052 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overlays.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-overlays | grep -v \.src | grep texlive-overlays + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-overlays" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-overlays + CHECK_RESULT $? 0 0 "install texlive-overlays failed" + SLEEP_WAIT 1 + dnf remove -y texlive-overlays + CHECK_RESULT $? 0 0 "remove texlive-overlays failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overlock-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overlock-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..37a972e4f230e429d7571b001cc0c5cdbb2766a6 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overlock-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-overlock-doc | grep -v \.src | grep texlive-overlock-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-overlock-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-overlock-doc + CHECK_RESULT $? 0 0 "install texlive-overlock-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-overlock-doc + CHECK_RESULT $? 0 0 "remove texlive-overlock-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overlock.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overlock.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f703e936e6b5c9c13cda9e239bea70a18461174 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overlock.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-overlock | grep -v \.src | grep texlive-overlock + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-overlock" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-overlock + CHECK_RESULT $? 0 0 "install texlive-overlock failed" + SLEEP_WAIT 1 + dnf remove -y texlive-overlock + CHECK_RESULT $? 0 0 "remove texlive-overlock failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overpic-doc.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overpic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8b270c606db2f52496cbf859ec54de5ba0b2cd0 --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overpic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-overpic-doc | grep -v \.src | grep texlive-overpic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-overpic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-overpic-doc + CHECK_RESULT $? 0 0 "install texlive-overpic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-overpic-doc + CHECK_RESULT $? 0 0 "remove texlive-overpic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overpic.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overpic.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd79a0f6115baea8ab374242173e1c4b616004ae --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-overpic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-overpic | grep -v \.src | grep texlive-overpic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-overpic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-overpic + CHECK_RESULT $? 0 0 "install texlive-overpic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-overpic + CHECK_RESULT $? 0 0 "remove texlive-overpic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-split-q.sh b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-split-q.sh new file mode 100644 index 0000000000000000000000000000000000000000..9885091196c64cf11b28a67f4f2b363aa5a6d86c --- /dev/null +++ b/testcases/cli-test/texlive-split-q/oe_test_texlive-split-q_install_and_remove_texlive-split-q.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-q +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-q | grep -v \.src | grep texlive-split-q + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-q" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-q + CHECK_RESULT $? 0 0 "install texlive-split-q failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-q + CHECK_RESULT $? 0 0 "remove texlive-split-q failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pacioli-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pacioli-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b98a88458f2ec362fb9395de0ef5ede663e13a5d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pacioli-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pacioli-doc | grep -v \.src | grep texlive-pacioli-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pacioli-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pacioli-doc + CHECK_RESULT $? 0 0 "install texlive-pacioli-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pacioli-doc + CHECK_RESULT $? 0 0 "remove texlive-pacioli-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pacioli.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pacioli.sh new file mode 100644 index 0000000000000000000000000000000000000000..34a7166c27fb70e230d5966d5f21503559a6db15 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pacioli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pacioli | grep -v \.src | grep texlive-pacioli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pacioli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pacioli + CHECK_RESULT $? 0 0 "install texlive-pacioli failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pacioli + CHECK_RESULT $? 0 0 "remove texlive-pacioli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-padauk.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-padauk.sh new file mode 100644 index 0000000000000000000000000000000000000000..34e298a303fb07f00e46435c0f8b9be3c8379e52 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-padauk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-padauk | grep -v \.src | grep texlive-padauk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-padauk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-padauk + CHECK_RESULT $? 0 0 "install texlive-padauk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-padauk + CHECK_RESULT $? 0 0 "remove texlive-padauk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-padcount.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-padcount.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ad82f722dc4a010296fbb8882c3a7f966044860 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-padcount.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-padcount | grep -v \.src | grep texlive-padcount + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-padcount" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-padcount + CHECK_RESULT $? 0 0 "install texlive-padcount failed" + SLEEP_WAIT 1 + dnf remove -y texlive-padcount + CHECK_RESULT $? 0 0 "remove texlive-padcount failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecolor-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecolor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e186d95029d1ea49003ba41544ad9a5daced145 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecolor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pagecolor-doc | grep -v \.src | grep texlive-pagecolor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pagecolor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pagecolor-doc + CHECK_RESULT $? 0 0 "install texlive-pagecolor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pagecolor-doc + CHECK_RESULT $? 0 0 "remove texlive-pagecolor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecolor.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecolor.sh new file mode 100644 index 0000000000000000000000000000000000000000..0dac0bea6d242fdfc61d03d8bd1baa68bd1bb774 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecolor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pagecolor | grep -v \.src | grep texlive-pagecolor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pagecolor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pagecolor + CHECK_RESULT $? 0 0 "install texlive-pagecolor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pagecolor + CHECK_RESULT $? 0 0 "remove texlive-pagecolor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecont-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..413a20350b28ad88b3ac551516c91fb3cd679ca1 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pagecont-doc | grep -v \.src | grep texlive-pagecont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pagecont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pagecont-doc + CHECK_RESULT $? 0 0 "install texlive-pagecont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pagecont-doc + CHECK_RESULT $? 0 0 "remove texlive-pagecont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecont.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecont.sh new file mode 100644 index 0000000000000000000000000000000000000000..830f9e14fb349c34ae6b0703bde3f3d3b4bd0cd8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagecont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pagecont | grep -v \.src | grep texlive-pagecont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pagecont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pagecont + CHECK_RESULT $? 0 0 "install texlive-pagecont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pagecont + CHECK_RESULT $? 0 0 "remove texlive-pagecont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagenote-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagenote-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ffa5591cfee94a2fbe105626287df261c090927d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagenote-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pagenote-doc | grep -v \.src | grep texlive-pagenote-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pagenote-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pagenote-doc + CHECK_RESULT $? 0 0 "install texlive-pagenote-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pagenote-doc + CHECK_RESULT $? 0 0 "remove texlive-pagenote-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagenote.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagenote.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4aea97e38a8022f3a398df9f75f13f95a74abde --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagenote.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pagenote | grep -v \.src | grep texlive-pagenote + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pagenote" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pagenote + CHECK_RESULT $? 0 0 "install texlive-pagenote failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pagenote + CHECK_RESULT $? 0 0 "remove texlive-pagenote failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagerange-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagerange-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a3540521757ef82f202738238dfe742e5b72594 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagerange-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pagerange-doc | grep -v \.src | grep texlive-pagerange-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pagerange-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pagerange-doc + CHECK_RESULT $? 0 0 "install texlive-pagerange-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pagerange-doc + CHECK_RESULT $? 0 0 "remove texlive-pagerange-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagerange.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagerange.sh new file mode 100644 index 0000000000000000000000000000000000000000..b041e8bab9335ac2b04c38ac04fdb6760b15c6fb --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pagerange.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pagerange | grep -v \.src | grep texlive-pagerange + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pagerange" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pagerange + CHECK_RESULT $? 0 0 "install texlive-pagerange failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pagerange + CHECK_RESULT $? 0 0 "remove texlive-pagerange failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pageslts-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pageslts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c0d40278266795210f6c8809f53752270d72f22 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pageslts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pageslts-doc | grep -v \.src | grep texlive-pageslts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pageslts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pageslts-doc + CHECK_RESULT $? 0 0 "install texlive-pageslts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pageslts-doc + CHECK_RESULT $? 0 0 "remove texlive-pageslts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pageslts.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pageslts.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f027b4efa64b6ca39f396120115fe1f4a321ff5 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pageslts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pageslts | grep -v \.src | grep texlive-pageslts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pageslts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pageslts + CHECK_RESULT $? 0 0 "install texlive-pageslts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pageslts + CHECK_RESULT $? 0 0 "remove texlive-pageslts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-palatino.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-palatino.sh new file mode 100644 index 0000000000000000000000000000000000000000..046f7baeefeab47e6bc8cc0435f525b9f1cdf90e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-palatino.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-palatino | grep -v \.src | grep texlive-palatino + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-palatino" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-palatino + CHECK_RESULT $? 0 0 "install texlive-palatino failed" + SLEEP_WAIT 1 + dnf remove -y texlive-palatino + CHECK_RESULT $? 0 0 "remove texlive-palatino failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paper-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paper-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d549382b43bf15ffe76dd7830dda0bc2c4fc774 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paper-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-paper-doc | grep -v \.src | grep texlive-paper-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-paper-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-paper-doc + CHECK_RESULT $? 0 0 "install texlive-paper-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-paper-doc + CHECK_RESULT $? 0 0 "remove texlive-paper-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paper.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paper.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fda993171dc40da49367c9fb46a9c4a69a4420c --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-paper | grep -v \.src | grep texlive-paper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-paper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-paper + CHECK_RESULT $? 0 0 "install texlive-paper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-paper + CHECK_RESULT $? 0 0 "remove texlive-paper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papercdcase-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papercdcase-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..41e7615b8124c81eff5393e831bfb9d619821bc6 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papercdcase-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-papercdcase-doc | grep -v \.src | grep texlive-papercdcase-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-papercdcase-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-papercdcase-doc + CHECK_RESULT $? 0 0 "install texlive-papercdcase-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-papercdcase-doc + CHECK_RESULT $? 0 0 "remove texlive-papercdcase-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papercdcase.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papercdcase.sh new file mode 100644 index 0000000000000000000000000000000000000000..de60e7175a1f79fd8e1648849d9b25dc28d98bf4 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papercdcase.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-papercdcase | grep -v \.src | grep texlive-papercdcase + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-papercdcase" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-papercdcase + CHECK_RESULT $? 0 0 "install texlive-papercdcase failed" + SLEEP_WAIT 1 + dnf remove -y texlive-papercdcase + CHECK_RESULT $? 0 0 "remove texlive-papercdcase failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papermas-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papermas-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..585be3da2ae9f11dd3bbdce3a58509c4c6377b24 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papermas-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-papermas-doc | grep -v \.src | grep texlive-papermas-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-papermas-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-papermas-doc + CHECK_RESULT $? 0 0 "install texlive-papermas-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-papermas-doc + CHECK_RESULT $? 0 0 "remove texlive-papermas-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papermas.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papermas.sh new file mode 100644 index 0000000000000000000000000000000000000000..5da413a175d2f68944ef150e1d7f2a74f55c4e17 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papermas.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-papermas | grep -v \.src | grep texlive-papermas + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-papermas" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-papermas + CHECK_RESULT $? 0 0 "install texlive-papermas failed" + SLEEP_WAIT 1 + dnf remove -y texlive-papermas + CHECK_RESULT $? 0 0 "remove texlive-papermas failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papertex-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papertex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e09037473c3e01d28b1a976ed4181d5a33dd1f01 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papertex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-papertex-doc | grep -v \.src | grep texlive-papertex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-papertex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-papertex-doc + CHECK_RESULT $? 0 0 "install texlive-papertex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-papertex-doc + CHECK_RESULT $? 0 0 "remove texlive-papertex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papertex.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papertex.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e0c51964d265bdaf5e8172b17cfe03793ee71c8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-papertex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-papertex | grep -v \.src | grep texlive-papertex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-papertex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-papertex + CHECK_RESULT $? 0 0 "install texlive-papertex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-papertex + CHECK_RESULT $? 0 0 "remove texlive-papertex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paracol-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paracol-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f5231e4db2e78d0ccf23ec5e57a16e33c74349b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paracol-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-paracol-doc | grep -v \.src | grep texlive-paracol-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-paracol-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-paracol-doc + CHECK_RESULT $? 0 0 "install texlive-paracol-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-paracol-doc + CHECK_RESULT $? 0 0 "remove texlive-paracol-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paracol.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paracol.sh new file mode 100644 index 0000000000000000000000000000000000000000..a93357918c109f97cacc6783bac2ae14d12040e2 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paracol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-paracol | grep -v \.src | grep texlive-paracol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-paracol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-paracol + CHECK_RESULT $? 0 0 "install texlive-paracol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-paracol + CHECK_RESULT $? 0 0 "remove texlive-paracol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parades-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parades-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e49a913761b0dc8e3276a890e17ae655e5c7a2e2 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parades-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parades-doc | grep -v \.src | grep texlive-parades-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parades-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parades-doc + CHECK_RESULT $? 0 0 "install texlive-parades-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parades-doc + CHECK_RESULT $? 0 0 "remove texlive-parades-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parades.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parades.sh new file mode 100644 index 0000000000000000000000000000000000000000..4548ac69e7444080de406aee911bfc4a44feb8df --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parades.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parades | grep -v \.src | grep texlive-parades + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parades" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parades + CHECK_RESULT $? 0 0 "install texlive-parades failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parades + CHECK_RESULT $? 0 0 "remove texlive-parades failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paralist-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paralist-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea64d85e094c7db79b89aee67986afff5fff85a2 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paralist-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-paralist-doc | grep -v \.src | grep texlive-paralist-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-paralist-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-paralist-doc + CHECK_RESULT $? 0 0 "install texlive-paralist-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-paralist-doc + CHECK_RESULT $? 0 0 "remove texlive-paralist-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paralist.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paralist.sh new file mode 100644 index 0000000000000000000000000000000000000000..e05ce126eacd7c0c2e46e47e89b79edf2ff844a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paralist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-paralist | grep -v \.src | grep texlive-paralist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-paralist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-paralist + CHECK_RESULT $? 0 0 "install texlive-paralist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-paralist + CHECK_RESULT $? 0 0 "remove texlive-paralist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parallel-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parallel-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..734ae78837ab2ad4f6eea41a5aea78586b682868 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parallel-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parallel-doc | grep -v \.src | grep texlive-parallel-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parallel-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parallel-doc + CHECK_RESULT $? 0 0 "install texlive-parallel-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parallel-doc + CHECK_RESULT $? 0 0 "remove texlive-parallel-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parallel.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parallel.sh new file mode 100644 index 0000000000000000000000000000000000000000..85ff21675c210466a076f5fc22490330d9e67d3e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parallel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parallel | grep -v \.src | grep texlive-parallel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parallel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parallel + CHECK_RESULT $? 0 0 "install texlive-parallel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parallel + CHECK_RESULT $? 0 0 "remove texlive-parallel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paratype-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paratype-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..900566c0e5df1d82ba015ac088e8f1a8bf556f54 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paratype-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-paratype-doc | grep -v \.src | grep texlive-paratype-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-paratype-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-paratype-doc + CHECK_RESULT $? 0 0 "install texlive-paratype-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-paratype-doc + CHECK_RESULT $? 0 0 "remove texlive-paratype-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paratype.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paratype.sh new file mode 100644 index 0000000000000000000000000000000000000000..887c60ab0e9e15a73cf361e2a7b8d6ea5128036f --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paratype.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-paratype | grep -v \.src | grep texlive-paratype + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-paratype" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-paratype + CHECK_RESULT $? 0 0 "install texlive-paratype failed" + SLEEP_WAIT 1 + dnf remove -y texlive-paratype + CHECK_RESULT $? 0 0 "remove texlive-paratype failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paresse-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paresse-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..947b347e35ec9b7f4683d1d1997430926d228aea --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paresse-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-paresse-doc | grep -v \.src | grep texlive-paresse-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-paresse-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-paresse-doc + CHECK_RESULT $? 0 0 "install texlive-paresse-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-paresse-doc + CHECK_RESULT $? 0 0 "remove texlive-paresse-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paresse.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paresse.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f6900901767add578256b0e7e0d80a628076e8e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-paresse.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-paresse | grep -v \.src | grep texlive-paresse + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-paresse" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-paresse + CHECK_RESULT $? 0 0 "install texlive-paresse failed" + SLEEP_WAIT 1 + dnf remove -y texlive-paresse + CHECK_RESULT $? 0 0 "remove texlive-paresse failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parnotes-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parnotes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d70b8dc34daa632f9f71dcf81eda67856994b516 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parnotes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parnotes-doc | grep -v \.src | grep texlive-parnotes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parnotes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parnotes-doc + CHECK_RESULT $? 0 0 "install texlive-parnotes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parnotes-doc + CHECK_RESULT $? 0 0 "remove texlive-parnotes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parnotes.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parnotes.sh new file mode 100644 index 0000000000000000000000000000000000000000..c889f25c45f65903d89cd2d0b4094ebedbe1011a --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parnotes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parnotes | grep -v \.src | grep texlive-parnotes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parnotes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parnotes + CHECK_RESULT $? 0 0 "install texlive-parnotes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parnotes + CHECK_RESULT $? 0 0 "remove texlive-parnotes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parrun-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parrun-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0277d72ae55d0f3d2dc2b660877c99b49b17bad8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parrun-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parrun-doc | grep -v \.src | grep texlive-parrun-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parrun-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parrun-doc + CHECK_RESULT $? 0 0 "install texlive-parrun-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parrun-doc + CHECK_RESULT $? 0 0 "remove texlive-parrun-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parrun.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parrun.sh new file mode 100644 index 0000000000000000000000000000000000000000..413320a6da154e68a7195192f1d892e376ccbf22 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parrun.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parrun | grep -v \.src | grep texlive-parrun + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parrun" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parrun + CHECK_RESULT $? 0 0 "install texlive-parrun failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parrun + CHECK_RESULT $? 0 0 "remove texlive-parrun failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parselines-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parselines-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2658e43fd5660264ed0e0e44ce422d5468fdb3d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parselines-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parselines-doc | grep -v \.src | grep texlive-parselines-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parselines-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parselines-doc + CHECK_RESULT $? 0 0 "install texlive-parselines-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parselines-doc + CHECK_RESULT $? 0 0 "remove texlive-parselines-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parselines.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parselines.sh new file mode 100644 index 0000000000000000000000000000000000000000..43c87d39918d75adb2f4c77065d1936e12a00c7d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parselines.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parselines | grep -v \.src | grep texlive-parselines + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parselines" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parselines + CHECK_RESULT $? 0 0 "install texlive-parselines failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parselines + CHECK_RESULT $? 0 0 "remove texlive-parselines failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parskip-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parskip-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c886311133d0faf16c3407693dfadb2245a273d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parskip-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parskip-doc | grep -v \.src | grep texlive-parskip-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parskip-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parskip-doc + CHECK_RESULT $? 0 0 "install texlive-parskip-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parskip-doc + CHECK_RESULT $? 0 0 "remove texlive-parskip-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parskip.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parskip.sh new file mode 100644 index 0000000000000000000000000000000000000000..5901c9f5eda34b3319b41ba2fd81132ac4c4fec9 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-parskip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parskip | grep -v \.src | grep texlive-parskip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parskip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parskip + CHECK_RESULT $? 0 0 "install texlive-parskip failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parskip + CHECK_RESULT $? 0 0 "remove texlive-parskip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cours-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cours-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6a4f747e31739d6fd45cf3650692e51637e1003 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cours-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pas-cours-doc | grep -v \.src | grep texlive-pas-cours-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pas-cours-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pas-cours-doc + CHECK_RESULT $? 0 0 "install texlive-pas-cours-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pas-cours-doc + CHECK_RESULT $? 0 0 "remove texlive-pas-cours-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cours.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cours.sh new file mode 100644 index 0000000000000000000000000000000000000000..24c4f360c355928859c7d34ca1a0081468837d33 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cours.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pas-cours | grep -v \.src | grep texlive-pas-cours + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pas-cours" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pas-cours + CHECK_RESULT $? 0 0 "install texlive-pas-cours failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pas-cours + CHECK_RESULT $? 0 0 "remove texlive-pas-cours failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-crosswords-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-crosswords-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5adb5fa44a7fef22a6bb5cf7019d304474f1a3db --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-crosswords-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pas-crosswords-doc | grep -v \.src | grep texlive-pas-crosswords-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pas-crosswords-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pas-crosswords-doc + CHECK_RESULT $? 0 0 "install texlive-pas-crosswords-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pas-crosswords-doc + CHECK_RESULT $? 0 0 "remove texlive-pas-crosswords-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-crosswords.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-crosswords.sh new file mode 100644 index 0000000000000000000000000000000000000000..3acdf21cbc786131448e6c9a7c43fb14bd252f5d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-crosswords.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pas-crosswords | grep -v \.src | grep texlive-pas-crosswords + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pas-crosswords" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pas-crosswords + CHECK_RESULT $? 0 0 "install texlive-pas-crosswords failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pas-crosswords + CHECK_RESULT $? 0 0 "remove texlive-pas-crosswords failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cv-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..65eaa2423470f8f5afca81d3c8edc6027c2a0903 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pas-cv-doc | grep -v \.src | grep texlive-pas-cv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pas-cv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pas-cv-doc + CHECK_RESULT $? 0 0 "install texlive-pas-cv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pas-cv-doc + CHECK_RESULT $? 0 0 "remove texlive-pas-cv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cv.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cv.sh new file mode 100644 index 0000000000000000000000000000000000000000..36909d307063177e69e7955226fbeb758637f7ad --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-cv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pas-cv | grep -v \.src | grep texlive-pas-cv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pas-cv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pas-cv + CHECK_RESULT $? 0 0 "install texlive-pas-cv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pas-cv + CHECK_RESULT $? 0 0 "remove texlive-pas-cv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-tableur-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-tableur-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..66b1ec844f787bf5780a084b406d5f1ce4dac992 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-tableur-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pas-tableur-doc | grep -v \.src | grep texlive-pas-tableur-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pas-tableur-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pas-tableur-doc + CHECK_RESULT $? 0 0 "install texlive-pas-tableur-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pas-tableur-doc + CHECK_RESULT $? 0 0 "remove texlive-pas-tableur-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-tableur.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-tableur.sh new file mode 100644 index 0000000000000000000000000000000000000000..c65c6d03fe2475672cfa8a7df12f8055ed7f8ddf --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pas-tableur.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pas-tableur | grep -v \.src | grep texlive-pas-tableur + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pas-tableur" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pas-tableur + CHECK_RESULT $? 0 0 "install texlive-pas-tableur failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pas-tableur + CHECK_RESULT $? 0 0 "remove texlive-pas-tableur failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-passivetex.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-passivetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..02e281a8a1231605fb14f74814f4607208e062d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-passivetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-passivetex | grep -v \.src | grep texlive-passivetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-passivetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-passivetex + CHECK_RESULT $? 0 0 "install texlive-passivetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-passivetex + CHECK_RESULT $? 0 0 "remove texlive-passivetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-patchcmd-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-patchcmd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc568c00342302b33abebfa506ae2779e16cf0a1 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-patchcmd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-patchcmd-doc | grep -v \.src | grep texlive-patchcmd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-patchcmd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-patchcmd-doc + CHECK_RESULT $? 0 0 "install texlive-patchcmd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-patchcmd-doc + CHECK_RESULT $? 0 0 "remove texlive-patchcmd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-patchcmd.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-patchcmd.sh new file mode 100644 index 0000000000000000000000000000000000000000..6dd8c49da6351fc880c9ff9b92aec116c473c409 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-patchcmd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-patchcmd | grep -v \.src | grep texlive-patchcmd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-patchcmd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-patchcmd + CHECK_RESULT $? 0 0 "install texlive-patchcmd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-patchcmd + CHECK_RESULT $? 0 0 "remove texlive-patchcmd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-patgen2-tutorial-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-patgen2-tutorial-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8173c1d46837a7a6c5b8161c34d5f9e308d3752 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-patgen2-tutorial-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-patgen2-tutorial-doc | grep -v \.src | grep texlive-patgen2-tutorial-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-patgen2-tutorial-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-patgen2-tutorial-doc + CHECK_RESULT $? 0 0 "install texlive-patgen2-tutorial-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-patgen2-tutorial-doc + CHECK_RESULT $? 0 0 "remove texlive-patgen2-tutorial-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-path-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-path-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec382264e36ec37a84b0d68b030090563cf92af4 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-path-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-path-doc | grep -v \.src | grep texlive-path-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-path-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-path-doc + CHECK_RESULT $? 0 0 "install texlive-path-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-path-doc + CHECK_RESULT $? 0 0 "remove texlive-path-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-path.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-path.sh new file mode 100644 index 0000000000000000000000000000000000000000..43c4bee5fcebdd69f28140b42e27a41207085dca --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-path.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-path | grep -v \.src | grep texlive-path + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-path" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-path + CHECK_RESULT $? 0 0 "install texlive-path failed" + SLEEP_WAIT 1 + dnf remove -y texlive-path + CHECK_RESULT $? 0 0 "remove texlive-path failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pauldoc-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pauldoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd3252da2db152487e86f59bb035037b51450521 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pauldoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pauldoc-doc | grep -v \.src | grep texlive-pauldoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pauldoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pauldoc-doc + CHECK_RESULT $? 0 0 "install texlive-pauldoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pauldoc-doc + CHECK_RESULT $? 0 0 "remove texlive-pauldoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pauldoc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pauldoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c83d2eadc900f75e8793b21d00187adbf5c009fe --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pauldoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pauldoc | grep -v \.src | grep texlive-pauldoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pauldoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pauldoc + CHECK_RESULT $? 0 0 "install texlive-pauldoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pauldoc + CHECK_RESULT $? 0 0 "remove texlive-pauldoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pawpict-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pawpict-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a47209128c31a69d8c300977e9d126b0894020a6 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pawpict-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pawpict-doc | grep -v \.src | grep texlive-pawpict-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pawpict-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pawpict-doc + CHECK_RESULT $? 0 0 "install texlive-pawpict-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pawpict-doc + CHECK_RESULT $? 0 0 "remove texlive-pawpict-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pawpict.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pawpict.sh new file mode 100644 index 0000000000000000000000000000000000000000..d72934749419de7d228b0be364ab77f764359e66 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pawpict.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pawpict | grep -v \.src | grep texlive-pawpict + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pawpict" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pawpict + CHECK_RESULT $? 0 0 "install texlive-pawpict failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pawpict + CHECK_RESULT $? 0 0 "remove texlive-pawpict failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pb-diagram-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pb-diagram-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..90f17a9d8e713131868b0a70ca378b99a566ba1e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pb-diagram-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pb-diagram-doc | grep -v \.src | grep texlive-pb-diagram-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pb-diagram-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pb-diagram-doc + CHECK_RESULT $? 0 0 "install texlive-pb-diagram-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pb-diagram-doc + CHECK_RESULT $? 0 0 "remove texlive-pb-diagram-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pb-diagram.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pb-diagram.sh new file mode 100644 index 0000000000000000000000000000000000000000..18bdc457247452a340d23e89c6dcedab29e0e531 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pb-diagram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pb-diagram | grep -v \.src | grep texlive-pb-diagram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pb-diagram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pb-diagram + CHECK_RESULT $? 0 0 "install texlive-pb-diagram failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pb-diagram + CHECK_RESULT $? 0 0 "remove texlive-pb-diagram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbibtex-base-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbibtex-base-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dde8ea8b3bb76aa482882440620871c9e8dbcfc2 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbibtex-base-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pbibtex-base-doc | grep -v \.src | grep texlive-pbibtex-base-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pbibtex-base-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pbibtex-base-doc + CHECK_RESULT $? 0 0 "install texlive-pbibtex-base-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pbibtex-base-doc + CHECK_RESULT $? 0 0 "remove texlive-pbibtex-base-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbibtex-base.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbibtex-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..c034c021ddbeb2c2be620842cb7e61e2820bca48 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbibtex-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pbibtex-base | grep -v \.src | grep texlive-pbibtex-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pbibtex-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pbibtex-base + CHECK_RESULT $? 0 0 "install texlive-pbibtex-base failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pbibtex-base + CHECK_RESULT $? 0 0 "remove texlive-pbibtex-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbox-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef1b37332e64a77ffc09491110c5418b1b285d37 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pbox-doc | grep -v \.src | grep texlive-pbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pbox-doc + CHECK_RESULT $? 0 0 "install texlive-pbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pbox-doc + CHECK_RESULT $? 0 0 "remove texlive-pbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbox.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e4fbaf5d31362a80e15df1c844cf1562d849fba --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pbox | grep -v \.src | grep texlive-pbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pbox + CHECK_RESULT $? 0 0 "install texlive-pbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pbox + CHECK_RESULT $? 0 0 "remove texlive-pbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbsheet-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbsheet-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..afb25928e45edc461b76ffbe434dc8724e5c8b79 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbsheet-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pbsheet-doc | grep -v \.src | grep texlive-pbsheet-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pbsheet-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pbsheet-doc + CHECK_RESULT $? 0 0 "install texlive-pbsheet-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pbsheet-doc + CHECK_RESULT $? 0 0 "remove texlive-pbsheet-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbsheet.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbsheet.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d8d7d84fec3ca134766255f1394b482d5c6e6cc --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pbsheet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pbsheet | grep -v \.src | grep texlive-pbsheet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pbsheet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pbsheet + CHECK_RESULT $? 0 0 "install texlive-pbsheet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pbsheet + CHECK_RESULT $? 0 0 "remove texlive-pbsheet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf-trans-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf-trans-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d62076f71bc9f7fced6cf7e242ed844bf7620ddb --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf-trans-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdf-trans-doc | grep -v \.src | grep texlive-pdf-trans-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdf-trans-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdf-trans-doc + CHECK_RESULT $? 0 0 "install texlive-pdf-trans-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdf-trans-doc + CHECK_RESULT $? 0 0 "remove texlive-pdf-trans-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf-trans.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf-trans.sh new file mode 100644 index 0000000000000000000000000000000000000000..382ee9375b4375f9709f755f5753eb14fe0d7c93 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf-trans.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdf-trans | grep -v \.src | grep texlive-pdf-trans + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdf-trans" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdf-trans + CHECK_RESULT $? 0 0 "install texlive-pdf-trans failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdf-trans + CHECK_RESULT $? 0 0 "remove texlive-pdf-trans failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf14-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf14-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c58cf5dd2035d921b2d1d9f8d796beddc8fa3a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf14-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdf14-doc | grep -v \.src | grep texlive-pdf14-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdf14-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdf14-doc + CHECK_RESULT $? 0 0 "install texlive-pdf14-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdf14-doc + CHECK_RESULT $? 0 0 "remove texlive-pdf14-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf14.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf14.sh new file mode 100644 index 0000000000000000000000000000000000000000..f16d98e25ee55bbafbb5a53440b1083af6dcfcdc --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdf14.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdf14 | grep -v \.src | grep texlive-pdf14 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdf14" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdf14 + CHECK_RESULT $? 0 0 "install texlive-pdf14 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdf14 + CHECK_RESULT $? 0 0 "remove texlive-pdf14 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcomment-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcomment-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2afeced2250ee85e9d89b1a9e302685ef1a0ce3 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcomment-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfcomment-doc | grep -v \.src | grep texlive-pdfcomment-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfcomment-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfcomment-doc + CHECK_RESULT $? 0 0 "install texlive-pdfcomment-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfcomment-doc + CHECK_RESULT $? 0 0 "remove texlive-pdfcomment-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcomment.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcomment.sh new file mode 100644 index 0000000000000000000000000000000000000000..a584f6fc1a06a357482033bf813bc8b3b383c4f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcomment.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfcomment | grep -v \.src | grep texlive-pdfcomment + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfcomment" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfcomment + CHECK_RESULT $? 0 0 "install texlive-pdfcomment failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfcomment + CHECK_RESULT $? 0 0 "remove texlive-pdfcomment failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcprot-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcprot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9de426ddd8d2d2f58023d188b1cf78d83e44830 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcprot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfcprot-doc | grep -v \.src | grep texlive-pdfcprot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfcprot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfcprot-doc + CHECK_RESULT $? 0 0 "install texlive-pdfcprot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfcprot-doc + CHECK_RESULT $? 0 0 "remove texlive-pdfcprot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcprot.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcprot.sh new file mode 100644 index 0000000000000000000000000000000000000000..91d71ef5a11a7428e71f89807f52a58900a67ddc --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfcprot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfcprot | grep -v \.src | grep texlive-pdfcprot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfcprot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfcprot + CHECK_RESULT $? 0 0 "install texlive-pdfcprot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfcprot + CHECK_RESULT $? 0 0 "remove texlive-pdfcprot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfmarginpar-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfmarginpar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b45719f3e2c359df81689a30cd3bfe499992cd64 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfmarginpar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfmarginpar-doc | grep -v \.src | grep texlive-pdfmarginpar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfmarginpar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfmarginpar-doc + CHECK_RESULT $? 0 0 "install texlive-pdfmarginpar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfmarginpar-doc + CHECK_RESULT $? 0 0 "remove texlive-pdfmarginpar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfmarginpar.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfmarginpar.sh new file mode 100644 index 0000000000000000000000000000000000000000..63ff732c27ce6055b9d8a05294f792a45a430f30 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfmarginpar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfmarginpar | grep -v \.src | grep texlive-pdfmarginpar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfmarginpar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfmarginpar + CHECK_RESULT $? 0 0 "install texlive-pdfmarginpar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfmarginpar + CHECK_RESULT $? 0 0 "remove texlive-pdfmarginpar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfoverlay.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfoverlay.sh new file mode 100644 index 0000000000000000000000000000000000000000..5497684985aa868c02a524f081c1459a0f1cc12b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfoverlay.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfoverlay | grep -v \.src | grep texlive-pdfoverlay + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfoverlay" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfoverlay + CHECK_RESULT $? 0 0 "install texlive-pdfoverlay failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfoverlay + CHECK_RESULT $? 0 0 "remove texlive-pdfoverlay failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpagediff-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpagediff-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7562d5526199ec9f070c5d4b92ab899f2c7bf53a --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpagediff-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfpagediff-doc | grep -v \.src | grep texlive-pdfpagediff-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfpagediff-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfpagediff-doc + CHECK_RESULT $? 0 0 "install texlive-pdfpagediff-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfpagediff-doc + CHECK_RESULT $? 0 0 "remove texlive-pdfpagediff-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpagediff.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpagediff.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed5efd1edec3c3dfe44457482d690e92462aaccc --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpagediff.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfpagediff | grep -v \.src | grep texlive-pdfpagediff + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfpagediff" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfpagediff + CHECK_RESULT $? 0 0 "install texlive-pdfpagediff failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfpagediff + CHECK_RESULT $? 0 0 "remove texlive-pdfpagediff failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpages-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpages-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..23aee22ff61c8335b7c6a2e25527dfa188da8309 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpages-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfpages-doc | grep -v \.src | grep texlive-pdfpages-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfpages-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfpages-doc + CHECK_RESULT $? 0 0 "install texlive-pdfpages-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfpages-doc + CHECK_RESULT $? 0 0 "remove texlive-pdfpages-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpages.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpages.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d6eadbe29914f236133e0c0b0eb54ae6de4d385 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpages.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfpages | grep -v \.src | grep texlive-pdfpages + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfpages" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfpages + CHECK_RESULT $? 0 0 "install texlive-pdfpages failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfpages + CHECK_RESULT $? 0 0 "remove texlive-pdfpages failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpc-movie.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpc-movie.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1e2a3f14b7eca6d1ca2f5ed670cc76c665fd0ed --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfpc-movie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfpc-movie | grep -v \.src | grep texlive-pdfpc-movie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfpc-movie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfpc-movie + CHECK_RESULT $? 0 0 "install texlive-pdfpc-movie failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfpc-movie + CHECK_RESULT $? 0 0 "remove texlive-pdfpc-movie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfprivacy.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfprivacy.sh new file mode 100644 index 0000000000000000000000000000000000000000..86adcc14ad11c81a818fa7964a74fe881e740cc6 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfprivacy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfprivacy | grep -v \.src | grep texlive-pdfprivacy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfprivacy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfprivacy + CHECK_RESULT $? 0 0 "install texlive-pdfprivacy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfprivacy + CHECK_RESULT $? 0 0 "remove texlive-pdfprivacy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfreview.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfreview.sh new file mode 100644 index 0000000000000000000000000000000000000000..66019d7c897db64ac3f21b1d9076946cbe36a574 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfreview.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfreview | grep -v \.src | grep texlive-pdfreview + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfreview" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfreview + CHECK_RESULT $? 0 0 "install texlive-pdfreview failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfreview + CHECK_RESULT $? 0 0 "remove texlive-pdfreview failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfscreen-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfscreen-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0b0bf44fc2ebee3b0aa2441f4943422db2e9872 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfscreen-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfscreen-doc | grep -v \.src | grep texlive-pdfscreen-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfscreen-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfscreen-doc + CHECK_RESULT $? 0 0 "install texlive-pdfscreen-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfscreen-doc + CHECK_RESULT $? 0 0 "remove texlive-pdfscreen-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfscreen.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfscreen.sh new file mode 100644 index 0000000000000000000000000000000000000000..3abeb98f48e1db185992459b69e20f4a30a686f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfscreen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfscreen | grep -v \.src | grep texlive-pdfscreen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfscreen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfscreen + CHECK_RESULT $? 0 0 "install texlive-pdfscreen failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfscreen + CHECK_RESULT $? 0 0 "remove texlive-pdfscreen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfslide-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfslide-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d448752261034f566003d24fa2dd5057a910ae13 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfslide-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfslide-doc | grep -v \.src | grep texlive-pdfslide-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfslide-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfslide-doc + CHECK_RESULT $? 0 0 "install texlive-pdfslide-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfslide-doc + CHECK_RESULT $? 0 0 "remove texlive-pdfslide-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfslide.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfslide.sh new file mode 100644 index 0000000000000000000000000000000000000000..62f580ee41101f4c7120434fdbafe5fc69206fdd --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfslide.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfslide | grep -v \.src | grep texlive-pdfslide + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfslide" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfslide + CHECK_RESULT $? 0 0 "install texlive-pdfslide failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfslide + CHECK_RESULT $? 0 0 "remove texlive-pdfslide failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfsync-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfsync-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8536b8a6a548a48290089f23a49b3d4ba646e759 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfsync-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfsync-doc | grep -v \.src | grep texlive-pdfsync-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfsync-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfsync-doc + CHECK_RESULT $? 0 0 "install texlive-pdfsync-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfsync-doc + CHECK_RESULT $? 0 0 "remove texlive-pdfsync-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfsync.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfsync.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea2d6fef75c0475ff2d6a1bc65e3ba3e97ab12c8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfsync.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfsync | grep -v \.src | grep texlive-pdfsync + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfsync" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfsync + CHECK_RESULT $? 0 0 "install texlive-pdfsync failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfsync + CHECK_RESULT $? 0 0 "remove texlive-pdfsync failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0107826455ca070ea3b7d448dc5a805dd2529394 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdftricks-doc | grep -v \.src | grep texlive-pdftricks-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdftricks-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdftricks-doc + CHECK_RESULT $? 0 0 "install texlive-pdftricks-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdftricks-doc + CHECK_RESULT $? 0 0 "remove texlive-pdftricks-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks.sh new file mode 100644 index 0000000000000000000000000000000000000000..db3d6ef4a90ac42764697c31ea4d7e83c9debbc6 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdftricks | grep -v \.src | grep texlive-pdftricks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdftricks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdftricks + CHECK_RESULT $? 0 0 "install texlive-pdftricks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdftricks + CHECK_RESULT $? 0 0 "remove texlive-pdftricks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks2-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks2-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..784d0c0023778950652cf848087bcc062e65c38b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks2-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdftricks2-doc | grep -v \.src | grep texlive-pdftricks2-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdftricks2-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdftricks2-doc + CHECK_RESULT $? 0 0 "install texlive-pdftricks2-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdftricks2-doc + CHECK_RESULT $? 0 0 "remove texlive-pdftricks2-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks2.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks2.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed6cae19d55646015b991669c080020f772db067 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdftricks2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdftricks2 | grep -v \.src | grep texlive-pdftricks2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdftricks2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdftricks2 + CHECK_RESULT $? 0 0 "install texlive-pdftricks2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdftricks2 + CHECK_RESULT $? 0 0 "remove texlive-pdftricks2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfwin-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfwin-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..52b79551015c8a7cf3ea478071ad6804f4fcbd42 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfwin-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfwin-doc | grep -v \.src | grep texlive-pdfwin-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfwin-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfwin-doc + CHECK_RESULT $? 0 0 "install texlive-pdfwin-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfwin-doc + CHECK_RESULT $? 0 0 "remove texlive-pdfwin-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfwin.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfwin.sh new file mode 100644 index 0000000000000000000000000000000000000000..3af328401b70797e15c90d64604d03d5e6f2885c --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfwin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfwin | grep -v \.src | grep texlive-pdfwin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfwin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfwin + CHECK_RESULT $? 0 0 "install texlive-pdfwin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfwin + CHECK_RESULT $? 0 0 "remove texlive-pdfwin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfx-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9097d8042dd5a7c0aae15e25bdb9429cd9e5e851 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfx-doc | grep -v \.src | grep texlive-pdfx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfx-doc + CHECK_RESULT $? 0 0 "install texlive-pdfx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfx-doc + CHECK_RESULT $? 0 0 "remove texlive-pdfx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfx.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfx.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb558d742c0cf79af1fe0f682a400a730f10dd82 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pdfx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfx | grep -v \.src | grep texlive-pdfx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfx + CHECK_RESULT $? 0 0 "install texlive-pdfx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfx + CHECK_RESULT $? 0 0 "remove texlive-pdfx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pecha-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pecha-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c4656ca4b18ef8b0b8653b120153e58dbdb405e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pecha-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pecha-doc | grep -v \.src | grep texlive-pecha-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pecha-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pecha-doc + CHECK_RESULT $? 0 0 "install texlive-pecha-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pecha-doc + CHECK_RESULT $? 0 0 "remove texlive-pecha-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pecha.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pecha.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ab9b165e6807fcec709cf5a5842071d584221a2 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pecha.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pecha | grep -v \.src | grep texlive-pecha + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pecha" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pecha + CHECK_RESULT $? 0 0 "install texlive-pecha failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pecha + CHECK_RESULT $? 0 0 "remove texlive-pecha failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-penrose.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-penrose.sh new file mode 100644 index 0000000000000000000000000000000000000000..af46dcd03d3e11f947201fb5fa66b3bbb3d728b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-penrose.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-penrose | grep -v \.src | grep texlive-penrose + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-penrose" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-penrose + CHECK_RESULT $? 0 0 "install texlive-penrose failed" + SLEEP_WAIT 1 + dnf remove -y texlive-penrose + CHECK_RESULT $? 0 0 "remove texlive-penrose failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perception-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perception-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..81093c5017bc37712a2e819a5f0cc151255391f6 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perception-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-perception-doc | grep -v \.src | grep texlive-perception-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-perception-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-perception-doc + CHECK_RESULT $? 0 0 "install texlive-perception-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-perception-doc + CHECK_RESULT $? 0 0 "remove texlive-perception-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perception.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perception.sh new file mode 100644 index 0000000000000000000000000000000000000000..73d6cf3ee43b99ab2ea33c5d45939ee7bb0f3b34 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perception.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-perception | grep -v \.src | grep texlive-perception + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-perception" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-perception + CHECK_RESULT $? 0 0 "install texlive-perception failed" + SLEEP_WAIT 1 + dnf remove -y texlive-perception + CHECK_RESULT $? 0 0 "remove texlive-perception failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perfectcut-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perfectcut-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa6aa1d2d9af0e2118055dcc5134ae625d7f9de5 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perfectcut-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-perfectcut-doc | grep -v \.src | grep texlive-perfectcut-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-perfectcut-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-perfectcut-doc + CHECK_RESULT $? 0 0 "install texlive-perfectcut-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-perfectcut-doc + CHECK_RESULT $? 0 0 "remove texlive-perfectcut-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perfectcut.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perfectcut.sh new file mode 100644 index 0000000000000000000000000000000000000000..62f9ec3f8c94809545fd21265b861d3505bc14f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-perfectcut.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-perfectcut | grep -v \.src | grep texlive-perfectcut + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-perfectcut" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-perfectcut + CHECK_RESULT $? 0 0 "install texlive-perfectcut failed" + SLEEP_WAIT 1 + dnf remove -y texlive-perfectcut + CHECK_RESULT $? 0 0 "remove texlive-perfectcut failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-permute-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-permute-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f90c1427b581d022c88f42958b7d8cf99876a87f --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-permute-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-permute-doc | grep -v \.src | grep texlive-permute-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-permute-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-permute-doc + CHECK_RESULT $? 0 0 "install texlive-permute-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-permute-doc + CHECK_RESULT $? 0 0 "remove texlive-permute-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-permute.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-permute.sh new file mode 100644 index 0000000000000000000000000000000000000000..24fff91952ae0ae77461b2a9202dddeeca73ac1e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-permute.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-permute | grep -v \.src | grep texlive-permute + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-permute" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-permute + CHECK_RESULT $? 0 0 "install texlive-permute failed" + SLEEP_WAIT 1 + dnf remove -y texlive-permute + CHECK_RESULT $? 0 0 "remove texlive-permute failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-persian-bib-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-persian-bib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..698c4f0b881d0432b26c96f65e0685c4120539bb --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-persian-bib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-persian-bib-doc | grep -v \.src | grep texlive-persian-bib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-persian-bib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-persian-bib-doc + CHECK_RESULT $? 0 0 "install texlive-persian-bib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-persian-bib-doc + CHECK_RESULT $? 0 0 "remove texlive-persian-bib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-persian-bib.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-persian-bib.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d4f9b4ad6bbca6d1b5be83b749f423af084823d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-persian-bib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-persian-bib | grep -v \.src | grep texlive-persian-bib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-persian-bib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-persian-bib + CHECK_RESULT $? 0 0 "install texlive-persian-bib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-persian-bib + CHECK_RESULT $? 0 0 "remove texlive-persian-bib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-petiteannonce-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-petiteannonce-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc8b574d70b59ea8f65c702c34e914cfefa5cb3d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-petiteannonce-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-petiteannonce-doc | grep -v \.src | grep texlive-petiteannonce-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-petiteannonce-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-petiteannonce-doc + CHECK_RESULT $? 0 0 "install texlive-petiteannonce-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-petiteannonce-doc + CHECK_RESULT $? 0 0 "remove texlive-petiteannonce-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-petiteannonce.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-petiteannonce.sh new file mode 100644 index 0000000000000000000000000000000000000000..09b8b0803479d348d588f457a4ad6afdba5bff07 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-petiteannonce.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-petiteannonce | grep -v \.src | grep texlive-petiteannonce + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-petiteannonce" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-petiteannonce + CHECK_RESULT $? 0 0 "install texlive-petiteannonce failed" + SLEEP_WAIT 1 + dnf remove -y texlive-petiteannonce + CHECK_RESULT $? 0 0 "remove texlive-petiteannonce failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-blur-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-blur-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9de79dd3ad0b0bca147ac016d446ebca1e0eedce --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-blur-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-blur-doc | grep -v \.src | grep texlive-pgf-blur-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-blur-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-blur-doc + CHECK_RESULT $? 0 0 "install texlive-pgf-blur-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-blur-doc + CHECK_RESULT $? 0 0 "remove texlive-pgf-blur-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-blur.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-blur.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3ba60fc06f5d671fbb3123e8fbfb5dba4892399 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-blur.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-blur | grep -v \.src | grep texlive-pgf-blur + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-blur" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-blur + CHECK_RESULT $? 0 0 "install texlive-pgf-blur failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-blur + CHECK_RESULT $? 0 0 "remove texlive-pgf-blur failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8dbfff1fc34a72bd787b0fb7af4f7630021d6d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-doc | grep -v \.src | grep texlive-pgf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-doc + CHECK_RESULT $? 0 0 "install texlive-pgf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-doc + CHECK_RESULT $? 0 0 "remove texlive-pgf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-soroban-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-soroban-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..34415a91e1785ef0abb7f8654eb6b07c257618f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-soroban-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-soroban-doc | grep -v \.src | grep texlive-pgf-soroban-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-soroban-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-soroban-doc + CHECK_RESULT $? 0 0 "install texlive-pgf-soroban-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-soroban-doc + CHECK_RESULT $? 0 0 "remove texlive-pgf-soroban-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-soroban.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-soroban.sh new file mode 100644 index 0000000000000000000000000000000000000000..754abc1666e34ed4390fb502ef9c1a0b0ce7cfe8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-soroban.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-soroban | grep -v \.src | grep texlive-pgf-soroban + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-soroban" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-soroban + CHECK_RESULT $? 0 0 "install texlive-pgf-soroban failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-soroban + CHECK_RESULT $? 0 0 "remove texlive-pgf-soroban failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-spectra-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-spectra-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..679f8fd1a8a6ed8f072ce27f88dcd493e8772560 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-spectra-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-spectra-doc | grep -v \.src | grep texlive-pgf-spectra-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-spectra-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-spectra-doc + CHECK_RESULT $? 0 0 "install texlive-pgf-spectra-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-spectra-doc + CHECK_RESULT $? 0 0 "remove texlive-pgf-spectra-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-spectra.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-spectra.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d3c7529129d6c20d010aebc67488194ea6bf9fd --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-spectra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-spectra | grep -v \.src | grep texlive-pgf-spectra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-spectra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-spectra + CHECK_RESULT $? 0 0 "install texlive-pgf-spectra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-spectra + CHECK_RESULT $? 0 0 "remove texlive-pgf-spectra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlcd-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlcd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d075604429a9fe71db80208884c0b0a40e4bf2f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlcd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-umlcd-doc | grep -v \.src | grep texlive-pgf-umlcd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-umlcd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-umlcd-doc + CHECK_RESULT $? 0 0 "install texlive-pgf-umlcd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-umlcd-doc + CHECK_RESULT $? 0 0 "remove texlive-pgf-umlcd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlcd.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlcd.sh new file mode 100644 index 0000000000000000000000000000000000000000..53238b923abe291a9391a5094794f23770e538ed --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlcd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-umlcd | grep -v \.src | grep texlive-pgf-umlcd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-umlcd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-umlcd + CHECK_RESULT $? 0 0 "install texlive-pgf-umlcd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-umlcd + CHECK_RESULT $? 0 0 "remove texlive-pgf-umlcd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlsd-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlsd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9062df014ce0e626c432e51950efc6736bb6d27 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlsd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-umlsd-doc | grep -v \.src | grep texlive-pgf-umlsd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-umlsd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-umlsd-doc + CHECK_RESULT $? 0 0 "install texlive-pgf-umlsd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-umlsd-doc + CHECK_RESULT $? 0 0 "remove texlive-pgf-umlsd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlsd.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlsd.sh new file mode 100644 index 0000000000000000000000000000000000000000..15b8ac77da915afa6317d153b85b95b28dfa9a09 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf-umlsd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-umlsd | grep -v \.src | grep texlive-pgf-umlsd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-umlsd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-umlsd + CHECK_RESULT $? 0 0 "install texlive-pgf-umlsd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-umlsd + CHECK_RESULT $? 0 0 "remove texlive-pgf-umlsd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf.sh new file mode 100644 index 0000000000000000000000000000000000000000..c68ae808fd7359389b2a12f228d23c291ee918d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf | grep -v \.src | grep texlive-pgf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf + CHECK_RESULT $? 0 0 "install texlive-pgf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf + CHECK_RESULT $? 0 0 "remove texlive-pgf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfgantt-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfgantt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9e90ebedcb166b25a1c7bf70a7000bca97ba1d5 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfgantt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfgantt-doc | grep -v \.src | grep texlive-pgfgantt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfgantt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfgantt-doc + CHECK_RESULT $? 0 0 "install texlive-pgfgantt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfgantt-doc + CHECK_RESULT $? 0 0 "remove texlive-pgfgantt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfgantt.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfgantt.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f78616b3da02e9ecb34fdfbe7019cd5538c9d88 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfgantt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfgantt | grep -v \.src | grep texlive-pgfgantt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfgantt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfgantt + CHECK_RESULT $? 0 0 "install texlive-pgfgantt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfgantt + CHECK_RESULT $? 0 0 "remove texlive-pgfgantt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfkeyx-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfkeyx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f5af773d70a2ca979c6b70e968b591b1db13b01 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfkeyx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfkeyx-doc | grep -v \.src | grep texlive-pgfkeyx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfkeyx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfkeyx-doc + CHECK_RESULT $? 0 0 "install texlive-pgfkeyx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfkeyx-doc + CHECK_RESULT $? 0 0 "remove texlive-pgfkeyx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfkeyx.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfkeyx.sh new file mode 100644 index 0000000000000000000000000000000000000000..74ddda44db68c421615305f5ef4166719941e7a0 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfkeyx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfkeyx | grep -v \.src | grep texlive-pgfkeyx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfkeyx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfkeyx + CHECK_RESULT $? 0 0 "install texlive-pgfkeyx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfkeyx + CHECK_RESULT $? 0 0 "remove texlive-pgfkeyx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfmolbio-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfmolbio-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c8d5d25ae58732aba74cd6d22a600ec98037f6f --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfmolbio-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfmolbio-doc | grep -v \.src | grep texlive-pgfmolbio-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfmolbio-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfmolbio-doc + CHECK_RESULT $? 0 0 "install texlive-pgfmolbio-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfmolbio-doc + CHECK_RESULT $? 0 0 "remove texlive-pgfmolbio-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfmolbio.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfmolbio.sh new file mode 100644 index 0000000000000000000000000000000000000000..727f4d5789e7b96a5afc36b114567e325374c63c --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfmolbio.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfmolbio | grep -v \.src | grep texlive-pgfmolbio + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfmolbio" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfmolbio + CHECK_RESULT $? 0 0 "install texlive-pgfmolbio failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfmolbio + CHECK_RESULT $? 0 0 "remove texlive-pgfmolbio failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfopts-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfopts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e631287dc23a09170712e45cb5b69a857e3f04d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfopts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfopts-doc | grep -v \.src | grep texlive-pgfopts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfopts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfopts-doc + CHECK_RESULT $? 0 0 "install texlive-pgfopts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfopts-doc + CHECK_RESULT $? 0 0 "remove texlive-pgfopts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfopts.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfopts.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5b20304986a7d82640a944eee1fb76aa3ba9f98 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfopts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfopts | grep -v \.src | grep texlive-pgfopts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfopts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfopts + CHECK_RESULT $? 0 0 "install texlive-pgfopts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfopts + CHECK_RESULT $? 0 0 "remove texlive-pgfopts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfornament-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfornament-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..81f81a87134cd885334116a0f773607023929c04 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfornament-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfornament-doc | grep -v \.src | grep texlive-pgfornament-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfornament-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfornament-doc + CHECK_RESULT $? 0 0 "install texlive-pgfornament-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfornament-doc + CHECK_RESULT $? 0 0 "remove texlive-pgfornament-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfornament-han.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfornament-han.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b3a2d345c9b449fab7e0d565a707a0c74dba1b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfornament-han.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfornament-han | grep -v \.src | grep texlive-pgfornament-han + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfornament-han" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfornament-han + CHECK_RESULT $? 0 0 "install texlive-pgfornament-han failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfornament-han + CHECK_RESULT $? 0 0 "remove texlive-pgfornament-han failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfornament.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfornament.sh new file mode 100644 index 0000000000000000000000000000000000000000..11b814fa6fa1dda4420574ddfa48782a581d0065 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfornament.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfornament | grep -v \.src | grep texlive-pgfornament + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfornament" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfornament + CHECK_RESULT $? 0 0 "install texlive-pgfornament failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfornament + CHECK_RESULT $? 0 0 "remove texlive-pgfornament failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfplots-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfplots-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..31f073b57b7395f595d670066638f4e2508113f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfplots-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfplots-doc | grep -v \.src | grep texlive-pgfplots-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfplots-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfplots-doc + CHECK_RESULT $? 0 0 "install texlive-pgfplots-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfplots-doc + CHECK_RESULT $? 0 0 "remove texlive-pgfplots-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfplots.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfplots.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a79a4474a3225f95dbd8b3fe790ec70f5d7554b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pgfplots.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfplots | grep -v \.src | grep texlive-pgfplots + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfplots" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfplots + CHECK_RESULT $? 0 0 "install texlive-pgfplots failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfplots + CHECK_RESULT $? 0 0 "remove texlive-pgfplots failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phaistos-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phaistos-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f14ab68bede0206ea13668508f858c0924184b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phaistos-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phaistos-doc | grep -v \.src | grep texlive-phaistos-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phaistos-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phaistos-doc + CHECK_RESULT $? 0 0 "install texlive-phaistos-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phaistos-doc + CHECK_RESULT $? 0 0 "remove texlive-phaistos-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phaistos.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phaistos.sh new file mode 100644 index 0000000000000000000000000000000000000000..c20d8ddc9828a827c2942c7e71f18f03c159e561 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phaistos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phaistos | grep -v \.src | grep texlive-phaistos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phaistos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phaistos + CHECK_RESULT $? 0 0 "install texlive-phaistos failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phaistos + CHECK_RESULT $? 0 0 "remove texlive-phaistos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phffullpagefigure.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phffullpagefigure.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea163473590a1dccfb4f12e2c2752f4b38736e8d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phffullpagefigure.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phffullpagefigure | grep -v \.src | grep texlive-phffullpagefigure + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phffullpagefigure" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phffullpagefigure + CHECK_RESULT $? 0 0 "install texlive-phffullpagefigure failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phffullpagefigure + CHECK_RESULT $? 0 0 "remove texlive-phffullpagefigure failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfnote.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfnote.sh new file mode 100644 index 0000000000000000000000000000000000000000..223d115e79b2955c9b0653cb4e521f7635280abf --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfnote.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phfnote | grep -v \.src | grep texlive-phfnote + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phfnote" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phfnote + CHECK_RESULT $? 0 0 "install texlive-phfnote failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phfnote + CHECK_RESULT $? 0 0 "remove texlive-phfnote failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfparen.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfparen.sh new file mode 100644 index 0000000000000000000000000000000000000000..49574b0c04348fa79a601a87ff851e8d06a06c8e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfparen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phfparen | grep -v \.src | grep texlive-phfparen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phfparen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phfparen + CHECK_RESULT $? 0 0 "install texlive-phfparen failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phfparen + CHECK_RESULT $? 0 0 "remove texlive-phfparen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfqit.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfqit.sh new file mode 100644 index 0000000000000000000000000000000000000000..5539ca11a4b0b3ea343622638f6cf3cddcd548d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfqit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phfqit | grep -v \.src | grep texlive-phfqit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phfqit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phfqit + CHECK_RESULT $? 0 0 "install texlive-phfqit failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phfqit + CHECK_RESULT $? 0 0 "remove texlive-phfqit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfquotetext.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfquotetext.sh new file mode 100644 index 0000000000000000000000000000000000000000..e47313d52eedca27b6e6831d84d2be8ed2c572c3 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfquotetext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phfquotetext | grep -v \.src | grep texlive-phfquotetext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phfquotetext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phfquotetext + CHECK_RESULT $? 0 0 "install texlive-phfquotetext failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phfquotetext + CHECK_RESULT $? 0 0 "remove texlive-phfquotetext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfsvnwatermark.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfsvnwatermark.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7173eecf0be06275f54d5054bd5d70c393f3a9d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfsvnwatermark.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phfsvnwatermark | grep -v \.src | grep texlive-phfsvnwatermark + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phfsvnwatermark" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phfsvnwatermark + CHECK_RESULT $? 0 0 "install texlive-phfsvnwatermark failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phfsvnwatermark + CHECK_RESULT $? 0 0 "remove texlive-phfsvnwatermark failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfthm.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfthm.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7e4c3aefdfd2d34d21f25c35202189df643cf47 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phfthm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phfthm | grep -v \.src | grep texlive-phfthm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phfthm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phfthm + CHECK_RESULT $? 0 0 "install texlive-phfthm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phfthm + CHECK_RESULT $? 0 0 "remove texlive-phfthm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philex-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..58178da6cd4834efad70e49e2423fe69faf07eaa --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-philex-doc | grep -v \.src | grep texlive-philex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-philex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-philex-doc + CHECK_RESULT $? 0 0 "install texlive-philex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-philex-doc + CHECK_RESULT $? 0 0 "remove texlive-philex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philex.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philex.sh new file mode 100644 index 0000000000000000000000000000000000000000..469834123d6f80a8dd8682e0c029fb247cf50674 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-philex | grep -v \.src | grep texlive-philex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-philex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-philex + CHECK_RESULT $? 0 0 "install texlive-philex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-philex + CHECK_RESULT $? 0 0 "remove texlive-philex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philokalia-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philokalia-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e4c1645a65e1b2282d84d609a8dd61b02ba4d18 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philokalia-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-philokalia-doc | grep -v \.src | grep texlive-philokalia-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-philokalia-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-philokalia-doc + CHECK_RESULT $? 0 0 "install texlive-philokalia-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-philokalia-doc + CHECK_RESULT $? 0 0 "remove texlive-philokalia-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philokalia.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philokalia.sh new file mode 100644 index 0000000000000000000000000000000000000000..b243ea801557c5ac4f182e09c33d3d8c8f142888 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philokalia.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-philokalia | grep -v \.src | grep texlive-philokalia + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-philokalia" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-philokalia + CHECK_RESULT $? 0 0 "install texlive-philokalia failed" + SLEEP_WAIT 1 + dnf remove -y texlive-philokalia + CHECK_RESULT $? 0 0 "remove texlive-philokalia failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philosophersimprint-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philosophersimprint-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fee24d3593685411f8ebfd9c2b0aadea9834f99b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philosophersimprint-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-philosophersimprint-doc | grep -v \.src | grep texlive-philosophersimprint-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-philosophersimprint-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-philosophersimprint-doc + CHECK_RESULT $? 0 0 "install texlive-philosophersimprint-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-philosophersimprint-doc + CHECK_RESULT $? 0 0 "remove texlive-philosophersimprint-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philosophersimprint.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philosophersimprint.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3cfd9410619e522aa63cb917f0f3992c57e44df --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-philosophersimprint.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-philosophersimprint | grep -v \.src | grep texlive-philosophersimprint + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-philosophersimprint" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-philosophersimprint + CHECK_RESULT $? 0 0 "install texlive-philosophersimprint failed" + SLEEP_WAIT 1 + dnf remove -y texlive-philosophersimprint + CHECK_RESULT $? 0 0 "remove texlive-philosophersimprint failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonenumbers.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonenumbers.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8b94e52678265865d3cf4d06ae374b5ac3eaa03 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonenumbers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phonenumbers | grep -v \.src | grep texlive-phonenumbers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phonenumbers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phonenumbers + CHECK_RESULT $? 0 0 "install texlive-phonenumbers failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phonenumbers + CHECK_RESULT $? 0 0 "remove texlive-phonenumbers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonetic-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonetic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..32a2515500632bfb86b3ddd1795069b2f63b4884 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonetic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phonetic-doc | grep -v \.src | grep texlive-phonetic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phonetic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phonetic-doc + CHECK_RESULT $? 0 0 "install texlive-phonetic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phonetic-doc + CHECK_RESULT $? 0 0 "remove texlive-phonetic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonetic.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonetic.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2c74c36e8f54008f19397510c306a9b2753200b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonetic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phonetic | grep -v \.src | grep texlive-phonetic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phonetic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phonetic + CHECK_RESULT $? 0 0 "install texlive-phonetic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phonetic + CHECK_RESULT $? 0 0 "remove texlive-phonetic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonrule-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonrule-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a47fa70ea1b622cc76efb7db5dc88f25a5f22c51 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonrule-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phonrule-doc | grep -v \.src | grep texlive-phonrule-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phonrule-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phonrule-doc + CHECK_RESULT $? 0 0 "install texlive-phonrule-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phonrule-doc + CHECK_RESULT $? 0 0 "remove texlive-phonrule-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonrule.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonrule.sh new file mode 100644 index 0000000000000000000000000000000000000000..66e04489e82b835f79ef5add36f39a249fd1f08b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-phonrule.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-phonrule | grep -v \.src | grep texlive-phonrule + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-phonrule" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-phonrule + CHECK_RESULT $? 0 0 "install texlive-phonrule failed" + SLEEP_WAIT 1 + dnf remove -y texlive-phonrule + CHECK_RESULT $? 0 0 "remove texlive-phonrule failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-photo-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-photo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..707b502d8ede4546ca4aa6392a94529fe95bfd1a --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-photo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-photo-doc | grep -v \.src | grep texlive-photo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-photo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-photo-doc + CHECK_RESULT $? 0 0 "install texlive-photo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-photo-doc + CHECK_RESULT $? 0 0 "remove texlive-photo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-photo.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-photo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c77f7dae36caae5deefededbd88531e370c392cb --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-photo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-photo | grep -v \.src | grep texlive-photo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-photo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-photo + CHECK_RESULT $? 0 0 "install texlive-photo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-photo + CHECK_RESULT $? 0 0 "remove texlive-photo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-physics-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-physics-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..027aed4485925fe2dcf4b800b6f5ea9c290fb176 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-physics-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-physics-doc | grep -v \.src | grep texlive-physics-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-physics-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-physics-doc + CHECK_RESULT $? 0 0 "install texlive-physics-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-physics-doc + CHECK_RESULT $? 0 0 "remove texlive-physics-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-physics.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-physics.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cbde87fc5b314bc9c8734f3ab901cd34e59bb35 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-physics.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-physics | grep -v \.src | grep texlive-physics + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-physics" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-physics + CHECK_RESULT $? 0 0 "install texlive-physics failed" + SLEEP_WAIT 1 + dnf remove -y texlive-physics + CHECK_RESULT $? 0 0 "remove texlive-physics failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piano-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piano-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4e2c23724e038645042cfb195c503d01ee4a3fb --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piano-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-piano-doc | grep -v \.src | grep texlive-piano-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-piano-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-piano-doc + CHECK_RESULT $? 0 0 "install texlive-piano-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-piano-doc + CHECK_RESULT $? 0 0 "remove texlive-piano-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piano.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piano.sh new file mode 100644 index 0000000000000000000000000000000000000000..385c2341ede3d09aaba790edbbef57f4c2d012c1 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piano.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-piano | grep -v \.src | grep texlive-piano + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-piano" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-piano + CHECK_RESULT $? 0 0 "install texlive-piano failed" + SLEEP_WAIT 1 + dnf remove -y texlive-piano + CHECK_RESULT $? 0 0 "remove texlive-piano failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-picinpar-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-picinpar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7592bda00e031e3411eaae04e810872e6044d7b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-picinpar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-picinpar-doc | grep -v \.src | grep texlive-picinpar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-picinpar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-picinpar-doc + CHECK_RESULT $? 0 0 "install texlive-picinpar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-picinpar-doc + CHECK_RESULT $? 0 0 "remove texlive-picinpar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-picinpar.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-picinpar.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d35942ba956740f2b9c6b713bc0acc2bdbed384 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-picinpar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-picinpar | grep -v \.src | grep texlive-picinpar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-picinpar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-picinpar + CHECK_RESULT $? 0 0 "install texlive-picinpar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-picinpar + CHECK_RESULT $? 0 0 "remove texlive-picinpar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pict2e-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pict2e-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa147ca30fc6c1102ac091c2d19d6a235dedc522 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pict2e-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pict2e-doc | grep -v \.src | grep texlive-pict2e-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pict2e-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pict2e-doc + CHECK_RESULT $? 0 0 "install texlive-pict2e-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pict2e-doc + CHECK_RESULT $? 0 0 "remove texlive-pict2e-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pict2e.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pict2e.sh new file mode 100644 index 0000000000000000000000000000000000000000..936130b19be4f7579bd05e15243412f70d86097e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pict2e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pict2e | grep -v \.src | grep texlive-pict2e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pict2e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pict2e + CHECK_RESULT $? 0 0 "install texlive-pict2e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pict2e + CHECK_RESULT $? 0 0 "remove texlive-pict2e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictex-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ad288ffd858cc1975ba41b7b332c3af5615b738 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pictex-doc | grep -v \.src | grep texlive-pictex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pictex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pictex-doc + CHECK_RESULT $? 0 0 "install texlive-pictex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pictex-doc + CHECK_RESULT $? 0 0 "remove texlive-pictex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictex.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictex.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbeaee45b6988a12eb63a4eb8dba10064d3f5169 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pictex | grep -v \.src | grep texlive-pictex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pictex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pictex + CHECK_RESULT $? 0 0 "install texlive-pictex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pictex + CHECK_RESULT $? 0 0 "remove texlive-pictex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictex2.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictex2.sh new file mode 100644 index 0000000000000000000000000000000000000000..979b45639548f5d8d77343d1c63c53c9766b0af9 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictex2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pictex2 | grep -v \.src | grep texlive-pictex2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pictex2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pictex2 + CHECK_RESULT $? 0 0 "install texlive-pictex2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pictex2 + CHECK_RESULT $? 0 0 "remove texlive-pictex2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictexsum-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictexsum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8e3af34931dde93d764d26526f6fd00b0d85d8a --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pictexsum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pictexsum-doc | grep -v \.src | grep texlive-pictexsum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pictexsum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pictexsum-doc + CHECK_RESULT $? 0 0 "install texlive-pictexsum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pictexsum-doc + CHECK_RESULT $? 0 0 "remove texlive-pictexsum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piechartmp-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piechartmp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0314cad2c51fa3d9431a279b65c198ecf3c8b27 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piechartmp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-piechartmp-doc | grep -v \.src | grep texlive-piechartmp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-piechartmp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-piechartmp-doc + CHECK_RESULT $? 0 0 "install texlive-piechartmp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-piechartmp-doc + CHECK_RESULT $? 0 0 "remove texlive-piechartmp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piechartmp.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piechartmp.sh new file mode 100644 index 0000000000000000000000000000000000000000..14c1095056420f5a1dee459b2081520bc2b76abb --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piechartmp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-piechartmp | grep -v \.src | grep texlive-piechartmp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-piechartmp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-piechartmp + CHECK_RESULT $? 0 0 "install texlive-piechartmp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-piechartmp + CHECK_RESULT $? 0 0 "remove texlive-piechartmp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piff-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piff-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f420030a17c32b35bcce53e12afa64f7f56023d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piff-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-piff-doc | grep -v \.src | grep texlive-piff-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-piff-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-piff-doc + CHECK_RESULT $? 0 0 "install texlive-piff-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-piff-doc + CHECK_RESULT $? 0 0 "remove texlive-piff-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piff.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piff.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0898dc490bd222b3f04846221e435d147a785e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-piff.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-piff | grep -v \.src | grep texlive-piff + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-piff" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-piff + CHECK_RESULT $? 0 0 "install texlive-piff failed" + SLEEP_WAIT 1 + dnf remove -y texlive-piff + CHECK_RESULT $? 0 0 "remove texlive-piff failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pigpen-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pigpen-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc281ae47b518b00a2c73fb9b974c1e920a6d320 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pigpen-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pigpen-doc | grep -v \.src | grep texlive-pigpen-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pigpen-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pigpen-doc + CHECK_RESULT $? 0 0 "install texlive-pigpen-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pigpen-doc + CHECK_RESULT $? 0 0 "remove texlive-pigpen-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pigpen.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pigpen.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2cac8f993380d3a1c157ba011cc6978a3e2a00d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pigpen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pigpen | grep -v \.src | grep texlive-pigpen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pigpen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pigpen + CHECK_RESULT $? 0 0 "install texlive-pigpen failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pigpen + CHECK_RESULT $? 0 0 "remove texlive-pigpen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pinlabel-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pinlabel-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e13c1b816322eac528cd7953ffd2f232f1abeb2f --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pinlabel-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pinlabel-doc | grep -v \.src | grep texlive-pinlabel-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pinlabel-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pinlabel-doc + CHECK_RESULT $? 0 0 "install texlive-pinlabel-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pinlabel-doc + CHECK_RESULT $? 0 0 "remove texlive-pinlabel-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pinlabel.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pinlabel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce141a5535eff7ad0990310bb8c77170e2413e3e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pinlabel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pinlabel | grep -v \.src | grep texlive-pinlabel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pinlabel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pinlabel + CHECK_RESULT $? 0 0 "install texlive-pinlabel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pinlabel + CHECK_RESULT $? 0 0 "remove texlive-pinlabel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pitex-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pitex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d92eb7cd0dab43d667331889f6714cd7c5e7988 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pitex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pitex-doc | grep -v \.src | grep texlive-pitex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pitex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pitex-doc + CHECK_RESULT $? 0 0 "install texlive-pitex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pitex-doc + CHECK_RESULT $? 0 0 "remove texlive-pitex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pitex.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pitex.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8a98aaa7587c3b264b6bad858ad8d63b7e0967c --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pitex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pitex | grep -v \.src | grep texlive-pitex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pitex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pitex + CHECK_RESULT $? 0 0 "install texlive-pitex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pitex + CHECK_RESULT $? 0 0 "remove texlive-pitex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pittetd-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pittetd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbac8de07d9d7753c1ac3a29b80cd5bc689184d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pittetd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pittetd-doc | grep -v \.src | grep texlive-pittetd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pittetd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pittetd-doc + CHECK_RESULT $? 0 0 "install texlive-pittetd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pittetd-doc + CHECK_RESULT $? 0 0 "remove texlive-pittetd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pittetd.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pittetd.sh new file mode 100644 index 0000000000000000000000000000000000000000..f450e523b04ca793d70a9d6af5bba12f16f828a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pittetd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pittetd | grep -v \.src | grep texlive-pittetd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pittetd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pittetd + CHECK_RESULT $? 0 0 "install texlive-pittetd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pittetd + CHECK_RESULT $? 0 0 "remove texlive-pittetd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pixelart.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pixelart.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6957c6a1b61a4229c2abd88fb706ad64dc50b38 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pixelart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pixelart | grep -v \.src | grep texlive-pixelart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pixelart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pixelart + CHECK_RESULT $? 0 0 "install texlive-pixelart failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pixelart + CHECK_RESULT $? 0 0 "remove texlive-pixelart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkgloader-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkgloader-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..39f9c62836d1651a62a616eecfd03b0db6070119 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkgloader-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pkgloader-doc | grep -v \.src | grep texlive-pkgloader-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pkgloader-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pkgloader-doc + CHECK_RESULT $? 0 0 "install texlive-pkgloader-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pkgloader-doc + CHECK_RESULT $? 0 0 "remove texlive-pkgloader-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkgloader.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkgloader.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e9508747c886520511bcfd2d04ad0ecb1d4754d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkgloader.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pkgloader | grep -v \.src | grep texlive-pkgloader + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pkgloader" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pkgloader + CHECK_RESULT $? 0 0 "install texlive-pkgloader failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pkgloader + CHECK_RESULT $? 0 0 "remove texlive-pkgloader failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkuthss-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkuthss-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab57313df2c5980eb0cb905625d2c8cd330f2065 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkuthss-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pkuthss-doc | grep -v \.src | grep texlive-pkuthss-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pkuthss-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pkuthss-doc + CHECK_RESULT $? 0 0 "install texlive-pkuthss-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pkuthss-doc + CHECK_RESULT $? 0 0 "remove texlive-pkuthss-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkuthss.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkuthss.sh new file mode 100644 index 0000000000000000000000000000000000000000..f079ae8507889809caaa07f62fddb39c9bd76de5 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pkuthss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pkuthss | grep -v \.src | grep texlive-pkuthss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pkuthss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pkuthss + CHECK_RESULT $? 0 0 "install texlive-pkuthss failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pkuthss + CHECK_RESULT $? 0 0 "remove texlive-pkuthss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pl-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ebf973dc786a4ce28032c429e9c32979689d34c --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pl-doc | grep -v \.src | grep texlive-pl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pl-doc + CHECK_RESULT $? 0 0 "install texlive-pl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pl-doc + CHECK_RESULT $? 0 0 "remove texlive-pl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pl.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pl.sh new file mode 100644 index 0000000000000000000000000000000000000000..9be96829e90f8d475afcf5d09c3e819974503bd7 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pl | grep -v \.src | grep texlive-pl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pl + CHECK_RESULT $? 0 0 "install texlive-pl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pl + CHECK_RESULT $? 0 0 "remove texlive-pl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeat-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a79385737443e59d6e004b7649ced50c991bfbc2 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-placeat-doc | grep -v \.src | grep texlive-placeat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-placeat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-placeat-doc + CHECK_RESULT $? 0 0 "install texlive-placeat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-placeat-doc + CHECK_RESULT $? 0 0 "remove texlive-placeat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeat.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeat.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb448a3a53fd15a8603b2187bdbf872d2ab16500 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-placeat | grep -v \.src | grep texlive-placeat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-placeat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-placeat + CHECK_RESULT $? 0 0 "install texlive-placeat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-placeat + CHECK_RESULT $? 0 0 "remove texlive-placeat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeins-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeins-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..09030b6c137cc7e45582c102211efddc504b2320 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeins-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-placeins-doc | grep -v \.src | grep texlive-placeins-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-placeins-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-placeins-doc + CHECK_RESULT $? 0 0 "install texlive-placeins-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-placeins-doc + CHECK_RESULT $? 0 0 "remove texlive-placeins-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeins-plain.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeins-plain.sh new file mode 100644 index 0000000000000000000000000000000000000000..39b435bf869a02c31899d9eef0410590d741cc51 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeins-plain.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-placeins-plain | grep -v \.src | grep texlive-placeins-plain + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-placeins-plain" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-placeins-plain + CHECK_RESULT $? 0 0 "install texlive-placeins-plain failed" + SLEEP_WAIT 1 + dnf remove -y texlive-placeins-plain + CHECK_RESULT $? 0 0 "remove texlive-placeins-plain failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeins.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeins.sh new file mode 100644 index 0000000000000000000000000000000000000000..5721b1335be55a76a462aaefe414ef928324b76e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-placeins.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-placeins | grep -v \.src | grep texlive-placeins + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-placeins" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-placeins + CHECK_RESULT $? 0 0 "install texlive-placeins failed" + SLEEP_WAIT 1 + dnf remove -y texlive-placeins + CHECK_RESULT $? 0 0 "remove texlive-placeins failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plain-doc-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plain-doc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..abbf056cde9512d138656fd31eec83d0bfbd2036 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plain-doc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plain-doc-doc | grep -v \.src | grep texlive-plain-doc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plain-doc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plain-doc-doc + CHECK_RESULT $? 0 0 "install texlive-plain-doc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plain-doc-doc + CHECK_RESULT $? 0 0 "remove texlive-plain-doc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plain.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plain.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c8d4da9bb7179aedd649d9b0a87d930de37858d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plain.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plain | grep -v \.src | grep texlive-plain + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plain" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plain + CHECK_RESULT $? 0 0 "install texlive-plain failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plain + CHECK_RESULT $? 0 0 "remove texlive-plain failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plainpkg-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plainpkg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd08c1c29a37dc01934a2e39953864de9c37ed03 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plainpkg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plainpkg-doc | grep -v \.src | grep texlive-plainpkg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plainpkg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plainpkg-doc + CHECK_RESULT $? 0 0 "install texlive-plainpkg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plainpkg-doc + CHECK_RESULT $? 0 0 "remove texlive-plainpkg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plainpkg.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plainpkg.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a1d386ed28aab8f3be15477d0c0be74e650cd9b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plainpkg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plainpkg | grep -v \.src | grep texlive-plainpkg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plainpkg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plainpkg + CHECK_RESULT $? 0 0 "install texlive-plainpkg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plainpkg + CHECK_RESULT $? 0 0 "remove texlive-plainpkg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plantslabels-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plantslabels-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4701a32821729d7b8e555d7616d41d73c4ceaf0 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plantslabels-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plantslabels-doc | grep -v \.src | grep texlive-plantslabels-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plantslabels-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plantslabels-doc + CHECK_RESULT $? 0 0 "install texlive-plantslabels-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plantslabels-doc + CHECK_RESULT $? 0 0 "remove texlive-plantslabels-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plantslabels.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plantslabels.sh new file mode 100644 index 0000000000000000000000000000000000000000..56d3ec6ab0c5d452ef38824cd5bfc8d08c48de91 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plantslabels.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plantslabels | grep -v \.src | grep texlive-plantslabels + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plantslabels" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plantslabels + CHECK_RESULT $? 0 0 "install texlive-plantslabels failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plantslabels + CHECK_RESULT $? 0 0 "remove texlive-plantslabels failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plantuml.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plantuml.sh new file mode 100644 index 0000000000000000000000000000000000000000..46f6de448c2905efe74e548617d5b2b19ad4857a --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plantuml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plantuml | grep -v \.src | grep texlive-plantuml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plantuml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plantuml + CHECK_RESULT $? 0 0 "install texlive-plantuml failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plantuml + CHECK_RESULT $? 0 0 "remove texlive-plantuml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plari-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plari-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ae0bfcd228607089c2223fd7955dd409a50731d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plari-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plari-doc | grep -v \.src | grep texlive-plari-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plari-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plari-doc + CHECK_RESULT $? 0 0 "install texlive-plari-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plari-doc + CHECK_RESULT $? 0 0 "remove texlive-plari-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plari.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plari.sh new file mode 100644 index 0000000000000000000000000000000000000000..112e36a9407504b9620eedcc6837308271bc38b7 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plari.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plari | grep -v \.src | grep texlive-plari + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plari" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plari + CHECK_RESULT $? 0 0 "install texlive-plari failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plari + CHECK_RESULT $? 0 0 "remove texlive-plari failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plates-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plates-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2f1e291ae21401ac2f2937371e6c841eee543b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plates-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plates-doc | grep -v \.src | grep texlive-plates-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plates-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plates-doc + CHECK_RESULT $? 0 0 "install texlive-plates-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plates-doc + CHECK_RESULT $? 0 0 "remove texlive-plates-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plates.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plates.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9b7eab29a69890749344af28639986f43bfb3cf --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plates.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plates | grep -v \.src | grep texlive-plates + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plates" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plates + CHECK_RESULT $? 0 0 "install texlive-plates failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plates + CHECK_RESULT $? 0 0 "remove texlive-plates failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platex-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d7b92dbbbf4351664f3f61e11af233d0d7210eb --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-platex-doc | grep -v \.src | grep texlive-platex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-platex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-platex-doc + CHECK_RESULT $? 0 0 "install texlive-platex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-platex-doc + CHECK_RESULT $? 0 0 "remove texlive-platex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platex-tools.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platex-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8f2cbd7cd20dbbda69d0ed5f382df610cf3775b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platex-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-platex-tools | grep -v \.src | grep texlive-platex-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-platex-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-platex-tools + CHECK_RESULT $? 0 0 "install texlive-platex-tools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-platex-tools + CHECK_RESULT $? 0 0 "remove texlive-platex-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platex.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platex.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8c1f4f12d2bfe123cdb57664863cc922968e99e --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-platex | grep -v \.src | grep texlive-platex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-platex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-platex + CHECK_RESULT $? 0 0 "install texlive-platex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-platex + CHECK_RESULT $? 0 0 "remove texlive-platex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platexcheat-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platexcheat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfe6f3ba7a671b995883071b5c6ffd03e885a49d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-platexcheat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-platexcheat-doc | grep -v \.src | grep texlive-platexcheat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-platexcheat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-platexcheat-doc + CHECK_RESULT $? 0 0 "install texlive-platexcheat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-platexcheat-doc + CHECK_RESULT $? 0 0 "remove texlive-platexcheat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-play-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-play-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4442427dca87e7c843671cbaa7ab705af71292d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-play-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-play-doc | grep -v \.src | grep texlive-play-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-play-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-play-doc + CHECK_RESULT $? 0 0 "install texlive-play-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-play-doc + CHECK_RESULT $? 0 0 "remove texlive-play-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-play.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-play.sh new file mode 100644 index 0000000000000000000000000000000000000000..973c4aae46cece8a4b6e046cf6a905077f4e8bb9 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-play.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-play | grep -v \.src | grep texlive-play + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-play" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-play + CHECK_RESULT $? 0 0 "install texlive-play failed" + SLEEP_WAIT 1 + dnf remove -y texlive-play + CHECK_RESULT $? 0 0 "remove texlive-play failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-playfair-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-playfair-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d528a4848c7be8a49c930df6609443566e63c658 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-playfair-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-playfair-doc | grep -v \.src | grep texlive-playfair-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-playfair-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-playfair-doc + CHECK_RESULT $? 0 0 "install texlive-playfair-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-playfair-doc + CHECK_RESULT $? 0 0 "remove texlive-playfair-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-playfair.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-playfair.sh new file mode 100644 index 0000000000000000000000000000000000000000..624897828ee4d488b1efe49385597ac3f58f4efd --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-playfair.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-playfair | grep -v \.src | grep texlive-playfair + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-playfair" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-playfair + CHECK_RESULT $? 0 0 "install texlive-playfair failed" + SLEEP_WAIT 1 + dnf remove -y texlive-playfair + CHECK_RESULT $? 0 0 "remove texlive-playfair failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plex-otf.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plex-otf.sh new file mode 100644 index 0000000000000000000000000000000000000000..d16f6b9a7a0173838f7466a8e031f72c3760a3dc --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plex-otf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plex-otf | grep -v \.src | grep texlive-plex-otf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plex-otf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plex-otf + CHECK_RESULT $? 0 0 "install texlive-plex-otf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plex-otf + CHECK_RESULT $? 0 0 "remove texlive-plex-otf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plex.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plex.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ad12106fac8d62cbf1be06b06ab0aee0e7a72b3 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plex | grep -v \.src | grep texlive-plex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plex + CHECK_RESULT $? 0 0 "install texlive-plex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plex + CHECK_RESULT $? 0 0 "remove texlive-plex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plipsum-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plipsum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a2d7d8b8c95fda98e893decb611ea2fdecec5f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plipsum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plipsum-doc | grep -v \.src | grep texlive-plipsum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plipsum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plipsum-doc + CHECK_RESULT $? 0 0 "install texlive-plipsum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plipsum-doc + CHECK_RESULT $? 0 0 "remove texlive-plipsum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plipsum.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plipsum.sh new file mode 100644 index 0000000000000000000000000000000000000000..57964004195329a09c48dc518497f87068c2dcda --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plipsum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plipsum | grep -v \.src | grep texlive-plipsum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plipsum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plipsum + CHECK_RESULT $? 0 0 "install texlive-plipsum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plipsum + CHECK_RESULT $? 0 0 "remove texlive-plipsum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plnfss-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plnfss-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc236253e19fbd08d5118bc169460d01bc15ee7b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plnfss-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plnfss-doc | grep -v \.src | grep texlive-plnfss-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plnfss-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plnfss-doc + CHECK_RESULT $? 0 0 "install texlive-plnfss-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plnfss-doc + CHECK_RESULT $? 0 0 "remove texlive-plnfss-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plnfss.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plnfss.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f6f8cf06a34d815d1667164673d1d44f1ea9415 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plnfss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plnfss | grep -v \.src | grep texlive-plnfss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plnfss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plnfss + CHECK_RESULT $? 0 0 "install texlive-plnfss failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plnfss + CHECK_RESULT $? 0 0 "remove texlive-plnfss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plstmary-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plstmary-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ce6e64862b12e4c28a667e6aee3d83d71538488 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plstmary-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plstmary-doc | grep -v \.src | grep texlive-plstmary-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plstmary-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plstmary-doc + CHECK_RESULT $? 0 0 "install texlive-plstmary-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plstmary-doc + CHECK_RESULT $? 0 0 "remove texlive-plstmary-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plstmary.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plstmary.sh new file mode 100644 index 0000000000000000000000000000000000000000..20acdd36289760155cc84468ce4cbd9b8c66d54d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plstmary.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plstmary | grep -v \.src | grep texlive-plstmary + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plstmary" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plstmary + CHECK_RESULT $? 0 0 "install texlive-plstmary failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plstmary + CHECK_RESULT $? 0 0 "remove texlive-plstmary failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plweb-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plweb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fb6321f65944b7d98c85660bbd5fba2f790f1e1 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plweb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plweb-doc | grep -v \.src | grep texlive-plweb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plweb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plweb-doc + CHECK_RESULT $? 0 0 "install texlive-plweb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plweb-doc + CHECK_RESULT $? 0 0 "remove texlive-plweb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plweb.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plweb.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a39c1514a69db5e44aa4894ae497cb0b425e039 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-plweb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plweb | grep -v \.src | grep texlive-plweb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plweb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plweb + CHECK_RESULT $? 0 0 "install texlive-plweb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plweb + CHECK_RESULT $? 0 0 "remove texlive-plweb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pm-isomath.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pm-isomath.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb6273479e2ed8f5e8dff4ef1385419f39ddb525 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pm-isomath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pm-isomath | grep -v \.src | grep texlive-pm-isomath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pm-isomath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pm-isomath + CHECK_RESULT $? 0 0 "install texlive-pm-isomath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pm-isomath + CHECK_RESULT $? 0 0 "remove texlive-pm-isomath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pmgraph-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pmgraph-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..497f41b882eb9de2a01e4365f28735c0a66880e0 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pmgraph-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pmgraph-doc | grep -v \.src | grep texlive-pmgraph-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pmgraph-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pmgraph-doc + CHECK_RESULT $? 0 0 "install texlive-pmgraph-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pmgraph-doc + CHECK_RESULT $? 0 0 "remove texlive-pmgraph-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pmgraph.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pmgraph.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba4a316ed9ce68490e9f61a458c22bf4517e390c --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pmgraph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pmgraph | grep -v \.src | grep texlive-pmgraph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pmgraph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pmgraph + CHECK_RESULT $? 0 0 "install texlive-pmgraph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pmgraph + CHECK_RESULT $? 0 0 "remove texlive-pmgraph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pnas2009.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pnas2009.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3d74c56fa61969ec619c60506d86ab09d726ff1 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pnas2009.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pnas2009 | grep -v \.src | grep texlive-pnas2009 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pnas2009" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pnas2009 + CHECK_RESULT $? 0 0 "install texlive-pnas2009 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pnas2009 + CHECK_RESULT $? 0 0 "remove texlive-pnas2009 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poemscol-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poemscol-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..90c68c5a4e03434e8bbce6d92c0ed361386314a0 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poemscol-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poemscol-doc | grep -v \.src | grep texlive-poemscol-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poemscol-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poemscol-doc + CHECK_RESULT $? 0 0 "install texlive-poemscol-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poemscol-doc + CHECK_RESULT $? 0 0 "remove texlive-poemscol-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poemscol.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poemscol.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b124fd1da1488d4ee7fc15c5905d9bd474e60a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poemscol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poemscol | grep -v \.src | grep texlive-poemscol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poemscol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poemscol + CHECK_RESULT $? 0 0 "install texlive-poemscol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poemscol + CHECK_RESULT $? 0 0 "remove texlive-poemscol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poetry.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poetry.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a1e25ebb22ee5b8665cd4532304aef8182d2f4b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poetry.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poetry | grep -v \.src | grep texlive-poetry + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poetry" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poetry + CHECK_RESULT $? 0 0 "install texlive-poetry failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poetry + CHECK_RESULT $? 0 0 "remove texlive-poetry failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poetrytex-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poetrytex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..730d15109d86c7f1fefbc33075678fe7944a29e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poetrytex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poetrytex-doc | grep -v \.src | grep texlive-poetrytex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poetrytex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poetrytex-doc + CHECK_RESULT $? 0 0 "install texlive-poetrytex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poetrytex-doc + CHECK_RESULT $? 0 0 "remove texlive-poetrytex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poetrytex.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poetrytex.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb5cde035955e87cb9c39b938edbbfcd7e360616 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poetrytex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poetrytex | grep -v \.src | grep texlive-poetrytex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poetrytex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poetrytex + CHECK_RESULT $? 0 0 "install texlive-poetrytex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poetrytex + CHECK_RESULT $? 0 0 "remove texlive-poetrytex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polexpr.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polexpr.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ed6b2df2297c29a09b1f066e709ffa7879cbfe9 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polexpr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polexpr | grep -v \.src | grep texlive-polexpr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polexpr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polexpr + CHECK_RESULT $? 0 0 "install texlive-polexpr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polexpr + CHECK_RESULT $? 0 0 "remove texlive-polexpr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polski-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polski-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f504d8c27c2e085a6f3ca89ec130bd0d904be8d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polski-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polski-doc | grep -v \.src | grep texlive-polski-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polski-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polski-doc + CHECK_RESULT $? 0 0 "install texlive-polski-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polski-doc + CHECK_RESULT $? 0 0 "remove texlive-polski-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polski.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polski.sh new file mode 100644 index 0000000000000000000000000000000000000000..05dcc17db6b39e4c0070ad830fa83f74ed0f8fb5 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polski.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polski | grep -v \.src | grep texlive-polski + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polski" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polski + CHECK_RESULT $? 0 0 "install texlive-polski failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polski + CHECK_RESULT $? 0 0 "remove texlive-polski failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poltawski-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poltawski-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbf6e680e3ca12abf6e5994189689bd7c862fa9b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poltawski-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poltawski-doc | grep -v \.src | grep texlive-poltawski-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poltawski-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poltawski-doc + CHECK_RESULT $? 0 0 "install texlive-poltawski-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poltawski-doc + CHECK_RESULT $? 0 0 "remove texlive-poltawski-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poltawski.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poltawski.sh new file mode 100644 index 0000000000000000000000000000000000000000..52a704e40858b917b29c4712e3ecd2f32a776f5b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poltawski.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poltawski | grep -v \.src | grep texlive-poltawski + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poltawski" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poltawski + CHECK_RESULT $? 0 0 "install texlive-poltawski failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poltawski + CHECK_RESULT $? 0 0 "remove texlive-poltawski failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polyglossia-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polyglossia-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cf3d11070341f3f1aaa9cfd9f6b50d39757cdcb --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polyglossia-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polyglossia-doc | grep -v \.src | grep texlive-polyglossia-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polyglossia-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polyglossia-doc + CHECK_RESULT $? 0 0 "install texlive-polyglossia-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polyglossia-doc + CHECK_RESULT $? 0 0 "remove texlive-polyglossia-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polyglossia.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polyglossia.sh new file mode 100644 index 0000000000000000000000000000000000000000..86cf8d2379fef15b2bd86c64b4bbd7f292ac2125 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polyglossia.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polyglossia | grep -v \.src | grep texlive-polyglossia + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polyglossia" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polyglossia + CHECK_RESULT $? 0 0 "install texlive-polyglossia failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polyglossia + CHECK_RESULT $? 0 0 "remove texlive-polyglossia failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynom-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynom-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..15f20006069d3c971d7e624352d01219d49de69b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynom-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polynom-doc | grep -v \.src | grep texlive-polynom-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polynom-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polynom-doc + CHECK_RESULT $? 0 0 "install texlive-polynom-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polynom-doc + CHECK_RESULT $? 0 0 "remove texlive-polynom-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynom.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynom.sh new file mode 100644 index 0000000000000000000000000000000000000000..08bd91006f7c3c6d4bf3d9623a0ce4e6ab4efa6a --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynom.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polynom | grep -v \.src | grep texlive-polynom + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polynom" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polynom + CHECK_RESULT $? 0 0 "install texlive-polynom failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polynom + CHECK_RESULT $? 0 0 "remove texlive-polynom failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynomial-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynomial-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6500cfa00325952d55c0ad75e38f46030cd8369 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynomial-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polynomial-doc | grep -v \.src | grep texlive-polynomial-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polynomial-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polynomial-doc + CHECK_RESULT $? 0 0 "install texlive-polynomial-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polynomial-doc + CHECK_RESULT $? 0 0 "remove texlive-polynomial-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynomial.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynomial.sh new file mode 100644 index 0000000000000000000000000000000000000000..23321e25d700c002793d0980059041c413d110ab --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polynomial.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polynomial | grep -v \.src | grep texlive-polynomial + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polynomial" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polynomial + CHECK_RESULT $? 0 0 "install texlive-polynomial failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polynomial + CHECK_RESULT $? 0 0 "remove texlive-polynomial failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polytable-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polytable-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..57376a350e3a0b1f4a0dc3baed0eccb3a9dbb041 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polytable-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polytable-doc | grep -v \.src | grep texlive-polytable-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polytable-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polytable-doc + CHECK_RESULT $? 0 0 "install texlive-polytable-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polytable-doc + CHECK_RESULT $? 0 0 "remove texlive-polytable-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polytable.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polytable.sh new file mode 100644 index 0000000000000000000000000000000000000000..c926ca33c82553c9a3ed11c53d594d7503e3949c --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-polytable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-polytable | grep -v \.src | grep texlive-polytable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-polytable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-polytable + CHECK_RESULT $? 0 0 "install texlive-polytable failed" + SLEEP_WAIT 1 + dnf remove -y texlive-polytable + CHECK_RESULT $? 0 0 "remove texlive-polytable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-postage.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-postage.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef901e073fbf6b179217cd8b8e6c78e4d5b597a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-postage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-postage | grep -v \.src | grep texlive-postage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-postage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-postage + CHECK_RESULT $? 0 0 "install texlive-postage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-postage + CHECK_RESULT $? 0 0 "remove texlive-postage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-postcards-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-postcards-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f299e4265a56da2730a957992e81437d1342fefb --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-postcards-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-postcards-doc | grep -v \.src | grep texlive-postcards-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-postcards-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-postcards-doc + CHECK_RESULT $? 0 0 "install texlive-postcards-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-postcards-doc + CHECK_RESULT $? 0 0 "remove texlive-postcards-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-postcards.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-postcards.sh new file mode 100644 index 0000000000000000000000000000000000000000..d283037c27cc6a54847d4269c91a79e8bbe010b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-postcards.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-postcards | grep -v \.src | grep texlive-postcards + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-postcards" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-postcards + CHECK_RESULT $? 0 0 "install texlive-postcards failed" + SLEEP_WAIT 1 + dnf remove -y texlive-postcards + CHECK_RESULT $? 0 0 "remove texlive-postcards failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poster-mac-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poster-mac-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1ecf18e9cd536ab8af5e7e0f66757ba695b9a14 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poster-mac-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poster-mac-doc | grep -v \.src | grep texlive-poster-mac-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poster-mac-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poster-mac-doc + CHECK_RESULT $? 0 0 "install texlive-poster-mac-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poster-mac-doc + CHECK_RESULT $? 0 0 "remove texlive-poster-mac-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poster-mac.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poster-mac.sh new file mode 100644 index 0000000000000000000000000000000000000000..5584e913a359c31d291645edb6280ca0612bc4a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-poster-mac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poster-mac | grep -v \.src | grep texlive-poster-mac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poster-mac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poster-mac + CHECK_RESULT $? 0 0 "install texlive-poster-mac failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poster-mac + CHECK_RESULT $? 0 0 "remove texlive-poster-mac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-FUBerlin-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-FUBerlin-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a61c96339b234fced52f47171a71c87d250aaa3 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-FUBerlin-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-powerdot-FUBerlin-doc | grep -v \.src | grep texlive-powerdot-FUBerlin-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-powerdot-FUBerlin-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-powerdot-FUBerlin-doc + CHECK_RESULT $? 0 0 "install texlive-powerdot-FUBerlin-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-powerdot-FUBerlin-doc + CHECK_RESULT $? 0 0 "remove texlive-powerdot-FUBerlin-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d664bf3eeb3d91ad02854c5ffd78a29a1a6e030 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-powerdot-doc | grep -v \.src | grep texlive-powerdot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-powerdot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-powerdot-doc + CHECK_RESULT $? 0 0 "install texlive-powerdot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-powerdot-doc + CHECK_RESULT $? 0 0 "remove texlive-powerdot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-fuberlin.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-fuberlin.sh new file mode 100644 index 0000000000000000000000000000000000000000..dedd0c7b6b50714b6253c65fd6663e742051ba32 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-fuberlin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-powerdot-fuberlin | grep -v \.src | grep texlive-powerdot-fuberlin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-powerdot-fuberlin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-powerdot-fuberlin + CHECK_RESULT $? 0 0 "install texlive-powerdot-fuberlin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-powerdot-fuberlin + CHECK_RESULT $? 0 0 "remove texlive-powerdot-fuberlin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-tuliplab.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-tuliplab.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d62b8928f1b7b8c0e20b5fcca7f266fcaa20834 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot-tuliplab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-powerdot-tuliplab | grep -v \.src | grep texlive-powerdot-tuliplab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-powerdot-tuliplab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-powerdot-tuliplab + CHECK_RESULT $? 0 0 "install texlive-powerdot-tuliplab failed" + SLEEP_WAIT 1 + dnf remove -y texlive-powerdot-tuliplab + CHECK_RESULT $? 0 0 "remove texlive-powerdot-tuliplab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc5f94dc0424f2611e1436eb4fbd5b0c4cbfa592 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-powerdot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-powerdot | grep -v \.src | grep texlive-powerdot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-powerdot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-powerdot + CHECK_RESULT $? 0 0 "install texlive-powerdot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-powerdot + CHECK_RESULT $? 0 0 "remove texlive-powerdot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-ppr-prv-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-ppr-prv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..76737ba734b895168424da59bfb83b33e06fb6bd --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-ppr-prv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ppr-prv-doc | grep -v \.src | grep texlive-ppr-prv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ppr-prv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ppr-prv-doc + CHECK_RESULT $? 0 0 "install texlive-ppr-prv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ppr-prv-doc + CHECK_RESULT $? 0 0 "remove texlive-ppr-prv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-ppr-prv.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-ppr-prv.sh new file mode 100644 index 0000000000000000000000000000000000000000..d56af111ca772602e98202e72e3e8b7e7d8807f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-ppr-prv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ppr-prv | grep -v \.src | grep texlive-ppr-prv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ppr-prv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ppr-prv + CHECK_RESULT $? 0 0 "install texlive-ppr-prv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ppr-prv + CHECK_RESULT $? 0 0 "remove texlive-ppr-prv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psfrag-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psfrag-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0067e64225b5b711a120dece1ac2cd0857eb434 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psfrag-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-psfrag-doc | grep -v \.src | grep texlive-psfrag-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-psfrag-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-psfrag-doc + CHECK_RESULT $? 0 0 "install texlive-psfrag-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-psfrag-doc + CHECK_RESULT $? 0 0 "remove texlive-psfrag-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psfrag.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psfrag.sh new file mode 100644 index 0000000000000000000000000000000000000000..4627aeca738edc53076bdb22bc3504db65879755 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psfrag.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-psfrag | grep -v \.src | grep texlive-psfrag + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-psfrag" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-psfrag + CHECK_RESULT $? 0 0 "install texlive-psfrag failed" + SLEEP_WAIT 1 + dnf remove -y texlive-psfrag + CHECK_RESULT $? 0 0 "remove texlive-psfrag failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psgo-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psgo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6832e0e297967b9bde8dab6aebf28b41f435cd6d --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psgo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-psgo-doc | grep -v \.src | grep texlive-psgo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-psgo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-psgo-doc + CHECK_RESULT $? 0 0 "install texlive-psgo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-psgo-doc + CHECK_RESULT $? 0 0 "remove texlive-psgo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psgo.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psgo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5391f22ee1542b7efafdab67d8dfffedf8c5efa5 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psgo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-psgo | grep -v \.src | grep texlive-psgo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-psgo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-psgo + CHECK_RESULT $? 0 0 "install texlive-psgo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-psgo + CHECK_RESULT $? 0 0 "remove texlive-psgo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pslatex.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pslatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..db58c44874528269734bf99069cb6d212a538a3b --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pslatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pslatex | grep -v \.src | grep texlive-pslatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pslatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pslatex + CHECK_RESULT $? 0 0 "install texlive-pslatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pslatex + CHECK_RESULT $? 0 0 "remove texlive-pslatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psnfss-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psnfss-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0476e4949bd6d0e35f3dbfa89790710fc38db7da --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psnfss-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-psnfss-doc | grep -v \.src | grep texlive-psnfss-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-psnfss-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-psnfss-doc + CHECK_RESULT $? 0 0 "install texlive-psnfss-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-psnfss-doc + CHECK_RESULT $? 0 0 "remove texlive-psnfss-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psnfss.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psnfss.sh new file mode 100644 index 0000000000000000000000000000000000000000..fad59afeca47bb66d06bef98fd7042949e6c4a18 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-psnfss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-psnfss | grep -v \.src | grep texlive-psnfss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-psnfss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-psnfss + CHECK_RESULT $? 0 0 "install texlive-psnfss failed" + SLEEP_WAIT 1 + dnf remove -y texlive-psnfss + CHECK_RESULT $? 0 0 "remove texlive-psnfss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pspicture-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pspicture-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa8f14433ca61fa3edd4f0ca0573cb278a45d296 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pspicture-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pspicture-doc | grep -v \.src | grep texlive-pspicture-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pspicture-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pspicture-doc + CHECK_RESULT $? 0 0 "install texlive-pspicture-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pspicture-doc + CHECK_RESULT $? 0 0 "remove texlive-pspicture-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pspicture.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pspicture.sh new file mode 100644 index 0000000000000000000000000000000000000000..932cd67d026102da43f4a6e26b2d4760f3612a95 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pspicture.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pspicture | grep -v \.src | grep texlive-pspicture + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pspicture" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pspicture + CHECK_RESULT $? 0 0 "install texlive-pspicture failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pspicture + CHECK_RESULT $? 0 0 "remove texlive-pspicture failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pst-eucl-translation-bg-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pst-eucl-translation-bg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f17d959424a97b3bd965c0d29630f34ae93673dd --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pst-eucl-translation-bg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pst-eucl-translation-bg-doc | grep -v \.src | grep texlive-pst-eucl-translation-bg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pst-eucl-translation-bg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pst-eucl-translation-bg-doc + CHECK_RESULT $? 0 0 "install texlive-pst-eucl-translation-bg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pst-eucl-translation-bg-doc + CHECK_RESULT $? 0 0 "remove texlive-pst-eucl-translation-bg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pxfonts-doc.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pxfonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..60bc64dff1ebe3de6159f3e028feee370b79c3a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pxfonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pxfonts-doc | grep -v \.src | grep texlive-pxfonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pxfonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pxfonts-doc + CHECK_RESULT $? 0 0 "install texlive-pxfonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pxfonts-doc + CHECK_RESULT $? 0 0 "remove texlive-pxfonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pxfonts.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pxfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a6a393ba93debdbc56ef1ba97c52479de03f654 --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-pxfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pxfonts | grep -v \.src | grep texlive-pxfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pxfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pxfonts + CHECK_RESULT $? 0 0 "install texlive-pxfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pxfonts + CHECK_RESULT $? 0 0 "remove texlive-pxfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-split-r.sh b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-split-r.sh new file mode 100644 index 0000000000000000000000000000000000000000..03950ac189a7c50e43672a18b0c37ba533177bdd --- /dev/null +++ b/testcases/cli-test/texlive-split-r/oe_test_texlive-split-r_install_and_remove_texlive-split-r.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-r | grep -v \.src | grep texlive-split-r + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-r" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-r + CHECK_RESULT $? 0 0 "install texlive-split-r failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-r + CHECK_RESULT $? 0 0 "remove texlive-split-r failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-r_und_s-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-r_und_s-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f9b3ef0b7575119af202b326f9748dbd907455a --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-r_und_s-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-r_und_s-doc | grep -v \.src | grep texlive-r_und_s-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-r_und_s-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-r_und_s-doc + CHECK_RESULT $? 0 0 "install texlive-r_und_s-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-r_und_s-doc + CHECK_RESULT $? 0 0 "remove texlive-r_und_s-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-r_und_s.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-r_und_s.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e9c4224c7d49b8e5087bcdbcf60a67bf055a22f --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-r_und_s.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-r_und_s | grep -v \.src | grep texlive-r_und_s + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-r_und_s" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-r_und_s + CHECK_RESULT $? 0 0 "install texlive-r_und_s failed" + SLEEP_WAIT 1 + dnf remove -y texlive-r_und_s + CHECK_RESULT $? 0 0 "remove texlive-r_und_s failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roboto-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roboto-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e15693040004baf1327f77ab3b47002fe86bcfc --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roboto-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-roboto-doc | grep -v \.src | grep texlive-roboto-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-roboto-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-roboto-doc + CHECK_RESULT $? 0 0 "install texlive-roboto-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-roboto-doc + CHECK_RESULT $? 0 0 "remove texlive-roboto-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roboto.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roboto.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6e1b6930c95b3043e13b6130bafc59fa2b93f11 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roboto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-roboto | grep -v \.src | grep texlive-roboto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-roboto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-roboto + CHECK_RESULT $? 0 0 "install texlive-roboto failed" + SLEEP_WAIT 1 + dnf remove -y texlive-roboto + CHECK_RESULT $? 0 0 "remove texlive-roboto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustcommand-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustcommand-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..63675b4c668f5f28219a728ce40cc12d01a5659b --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustcommand-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-robustcommand-doc | grep -v \.src | grep texlive-robustcommand-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-robustcommand-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-robustcommand-doc + CHECK_RESULT $? 0 0 "install texlive-robustcommand-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-robustcommand-doc + CHECK_RESULT $? 0 0 "remove texlive-robustcommand-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustcommand.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustcommand.sh new file mode 100644 index 0000000000000000000000000000000000000000..42102ca9fdb99951e016b935018ebf82295746d5 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustcommand.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-robustcommand | grep -v \.src | grep texlive-robustcommand + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-robustcommand" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-robustcommand + CHECK_RESULT $? 0 0 "install texlive-robustcommand failed" + SLEEP_WAIT 1 + dnf remove -y texlive-robustcommand + CHECK_RESULT $? 0 0 "remove texlive-robustcommand failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustindex-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustindex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..243a32ec5cfcf3910a4d2d17e33a5b811cc23ea0 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustindex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-robustindex-doc | grep -v \.src | grep texlive-robustindex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-robustindex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-robustindex-doc + CHECK_RESULT $? 0 0 "install texlive-robustindex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-robustindex-doc + CHECK_RESULT $? 0 0 "remove texlive-robustindex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustindex.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..8225e6b3d975c576d099a4448aebc8e60156de05 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-robustindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-robustindex | grep -v \.src | grep texlive-robustindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-robustindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-robustindex + CHECK_RESULT $? 0 0 "install texlive-robustindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-robustindex + CHECK_RESULT $? 0 0 "remove texlive-robustindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roex.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roex.sh new file mode 100644 index 0000000000000000000000000000000000000000..f29636a6b221198d6914301361e72b98ed83b9e5 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-roex | grep -v \.src | grep texlive-roex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-roex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-roex + CHECK_RESULT $? 0 0 "install texlive-roex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-roex + CHECK_RESULT $? 0 0 "remove texlive-roex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbar-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..580ed8af8994e78fb39ff32794c56119f56e00a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-romanbar-doc | grep -v \.src | grep texlive-romanbar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-romanbar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-romanbar-doc + CHECK_RESULT $? 0 0 "install texlive-romanbar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-romanbar-doc + CHECK_RESULT $? 0 0 "remove texlive-romanbar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbar.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbar.sh new file mode 100644 index 0000000000000000000000000000000000000000..405a76ba4452fa914f5ef776437bbbf2360e866b --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-romanbar | grep -v \.src | grep texlive-romanbar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-romanbar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-romanbar + CHECK_RESULT $? 0 0 "install texlive-romanbar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-romanbar + CHECK_RESULT $? 0 0 "remove texlive-romanbar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbarpagenumber-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbarpagenumber-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..25c89e67d58a0d8edb08523c8553d55065db171c --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbarpagenumber-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-romanbarpagenumber-doc | grep -v \.src | grep texlive-romanbarpagenumber-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-romanbarpagenumber-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-romanbarpagenumber-doc + CHECK_RESULT $? 0 0 "install texlive-romanbarpagenumber-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-romanbarpagenumber-doc + CHECK_RESULT $? 0 0 "remove texlive-romanbarpagenumber-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbarpagenumber.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbarpagenumber.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8131dabe686a0d3d2afcba99859d6a29725accd --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanbarpagenumber.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-romanbarpagenumber | grep -v \.src | grep texlive-romanbarpagenumber + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-romanbarpagenumber" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-romanbarpagenumber + CHECK_RESULT $? 0 0 "install texlive-romanbarpagenumber failed" + SLEEP_WAIT 1 + dnf remove -y texlive-romanbarpagenumber + CHECK_RESULT $? 0 0 "remove texlive-romanbarpagenumber failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romande-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romande-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac39eac4c534bf24eb424f6e22dac3e8df016b60 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romande-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-romande-doc | grep -v \.src | grep texlive-romande-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-romande-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-romande-doc + CHECK_RESULT $? 0 0 "install texlive-romande-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-romande-doc + CHECK_RESULT $? 0 0 "remove texlive-romande-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romande.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romande.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3300efa9583d1027fe2375865e953a37f792fd3 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romande.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-romande | grep -v \.src | grep texlive-romande + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-romande" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-romande + CHECK_RESULT $? 0 0 "install texlive-romande failed" + SLEEP_WAIT 1 + dnf remove -y texlive-romande + CHECK_RESULT $? 0 0 "remove texlive-romande failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanneg-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanneg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7ca293d33197413df4e2c0e46091cb6e3f45a71 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanneg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-romanneg-doc | grep -v \.src | grep texlive-romanneg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-romanneg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-romanneg-doc + CHECK_RESULT $? 0 0 "install texlive-romanneg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-romanneg-doc + CHECK_RESULT $? 0 0 "remove texlive-romanneg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanneg.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanneg.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b8bf5ed84e8188928aff05dde90ff594caa2648 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romanneg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-romanneg | grep -v \.src | grep texlive-romanneg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-romanneg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-romanneg + CHECK_RESULT $? 0 0 "install texlive-romanneg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-romanneg + CHECK_RESULT $? 0 0 "remove texlive-romanneg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romannum-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romannum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e439dfcff4a90a0b02fa7dab859988dd36fe569f --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romannum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-romannum-doc | grep -v \.src | grep texlive-romannum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-romannum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-romannum-doc + CHECK_RESULT $? 0 0 "install texlive-romannum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-romannum-doc + CHECK_RESULT $? 0 0 "remove texlive-romannum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romannum.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romannum.sh new file mode 100644 index 0000000000000000000000000000000000000000..36bc0c4778a33835f5c481aeda3d95219f7a3777 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-romannum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-romannum | grep -v \.src | grep texlive-romannum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-romannum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-romannum + CHECK_RESULT $? 0 0 "install texlive-romannum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-romannum + CHECK_RESULT $? 0 0 "remove texlive-romannum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rosario-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rosario-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcadee13d93df573ea190d6da7b4ba0ca32ad1d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rosario-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rosario-doc | grep -v \.src | grep texlive-rosario-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rosario-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rosario-doc + CHECK_RESULT $? 0 0 "install texlive-rosario-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rosario-doc + CHECK_RESULT $? 0 0 "remove texlive-rosario-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rosario.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rosario.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e3bae33e3eceaedf89d0dbb9b7404e17294a0c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rosario.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rosario | grep -v \.src | grep texlive-rosario + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rosario" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rosario + CHECK_RESULT $? 0 0 "install texlive-rosario failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rosario + CHECK_RESULT $? 0 0 "remove texlive-rosario failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotfloat-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotfloat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a143b343ee5b931ecbce433817bf080007f19b18 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotfloat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rotfloat-doc | grep -v \.src | grep texlive-rotfloat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rotfloat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rotfloat-doc + CHECK_RESULT $? 0 0 "install texlive-rotfloat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rotfloat-doc + CHECK_RESULT $? 0 0 "remove texlive-rotfloat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotfloat.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca697dd448a461d452acb815b2e6bd4b133d2896 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rotfloat | grep -v \.src | grep texlive-rotfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rotfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rotfloat + CHECK_RESULT $? 0 0 "install texlive-rotfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rotfloat + CHECK_RESULT $? 0 0 "remove texlive-rotfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotpages-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotpages-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..af2fda61dc261355381d4e3a3d9b98869c7a8315 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotpages-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rotpages-doc | grep -v \.src | grep texlive-rotpages-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rotpages-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rotpages-doc + CHECK_RESULT $? 0 0 "install texlive-rotpages-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rotpages-doc + CHECK_RESULT $? 0 0 "remove texlive-rotpages-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotpages.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotpages.sh new file mode 100644 index 0000000000000000000000000000000000000000..05385dd4987a9e2fbfa19d8e9e4e97c6295c3873 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rotpages.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rotpages | grep -v \.src | grep texlive-rotpages + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rotpages" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rotpages + CHECK_RESULT $? 0 0 "install texlive-rotpages failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rotpages + CHECK_RESULT $? 0 0 "remove texlive-rotpages failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundbox-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2179e0bfd880418777d3e77d50e7dbe836385f7c --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-roundbox-doc | grep -v \.src | grep texlive-roundbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-roundbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-roundbox-doc + CHECK_RESULT $? 0 0 "install texlive-roundbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-roundbox-doc + CHECK_RESULT $? 0 0 "remove texlive-roundbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundbox.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..baad4e545286ca90b52cfaa2458f33f387b20b56 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-roundbox | grep -v \.src | grep texlive-roundbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-roundbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-roundbox + CHECK_RESULT $? 0 0 "install texlive-roundbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-roundbox + CHECK_RESULT $? 0 0 "remove texlive-roundbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundrect-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundrect-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a04dfffe4d71d022b858dac4a0d16b32a236c9d --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundrect-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-roundrect-doc | grep -v \.src | grep texlive-roundrect-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-roundrect-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-roundrect-doc + CHECK_RESULT $? 0 0 "install texlive-roundrect-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-roundrect-doc + CHECK_RESULT $? 0 0 "remove texlive-roundrect-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundrect.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundrect.sh new file mode 100644 index 0000000000000000000000000000000000000000..78eeda174a1461da8f47843a30d294d2c3df6dae --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-roundrect.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-roundrect | grep -v \.src | grep texlive-roundrect + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-roundrect" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-roundrect + CHECK_RESULT $? 0 0 "install texlive-roundrect failed" + SLEEP_WAIT 1 + dnf remove -y texlive-roundrect + CHECK_RESULT $? 0 0 "remove texlive-roundrect failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rrgtrees-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rrgtrees-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0dd0051b484cda8ed289f69874a408125787c49 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rrgtrees-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rrgtrees-doc | grep -v \.src | grep texlive-rrgtrees-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rrgtrees-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rrgtrees-doc + CHECK_RESULT $? 0 0 "install texlive-rrgtrees-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rrgtrees-doc + CHECK_RESULT $? 0 0 "remove texlive-rrgtrees-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rrgtrees.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rrgtrees.sh new file mode 100644 index 0000000000000000000000000000000000000000..49af03516735ca51d56c65998a089c475cb81701 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rrgtrees.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rrgtrees | grep -v \.src | grep texlive-rrgtrees + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rrgtrees" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rrgtrees + CHECK_RESULT $? 0 0 "install texlive-rrgtrees failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rrgtrees + CHECK_RESULT $? 0 0 "remove texlive-rrgtrees failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsc-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3ab4d30e289a36081703117d51bc7d3e1cd58ef --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rsc-doc | grep -v \.src | grep texlive-rsc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rsc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rsc-doc + CHECK_RESULT $? 0 0 "install texlive-rsc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rsc-doc + CHECK_RESULT $? 0 0 "remove texlive-rsc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsc.sh new file mode 100644 index 0000000000000000000000000000000000000000..db6670268789ab05c83f0cf7e934734c3c7889c3 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rsc | grep -v \.src | grep texlive-rsc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rsc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rsc + CHECK_RESULT $? 0 0 "install texlive-rsc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rsc + CHECK_RESULT $? 0 0 "remove texlive-rsc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfs-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f207a90959dc8396de6f723a3142fb8aa5a31ff2 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rsfs-doc | grep -v \.src | grep texlive-rsfs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rsfs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rsfs-doc + CHECK_RESULT $? 0 0 "install texlive-rsfs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rsfs-doc + CHECK_RESULT $? 0 0 "remove texlive-rsfs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfs.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfs.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e619b1be5e9236650cffbbedb697424f77cfa54 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rsfs | grep -v \.src | grep texlive-rsfs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rsfs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rsfs + CHECK_RESULT $? 0 0 "install texlive-rsfs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rsfs + CHECK_RESULT $? 0 0 "remove texlive-rsfs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfso-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfso-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2efa3c0f727c324a71d5089ca455861dafe9ce1d --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfso-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rsfso-doc | grep -v \.src | grep texlive-rsfso-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rsfso-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rsfso-doc + CHECK_RESULT $? 0 0 "install texlive-rsfso-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rsfso-doc + CHECK_RESULT $? 0 0 "remove texlive-rsfso-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfso.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfso.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cc9f6058011674cb1b5b1af06ba190a89216124 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rsfso.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rsfso | grep -v \.src | grep texlive-rsfso + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rsfso" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rsfso + CHECK_RESULT $? 0 0 "install texlive-rsfso failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rsfso + CHECK_RESULT $? 0 0 "remove texlive-rsfso failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rterface-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rterface-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a44b4773bed58d2728dbec0c497888b5a5ede732 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rterface-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rterface-doc | grep -v \.src | grep texlive-rterface-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rterface-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rterface-doc + CHECK_RESULT $? 0 0 "install texlive-rterface-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rterface-doc + CHECK_RESULT $? 0 0 "remove texlive-rterface-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rterface.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rterface.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b83b765960d5f6652c364cf3c251ef7b914eab2 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rterface.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rterface | grep -v \.src | grep texlive-rterface + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rterface" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rterface + CHECK_RESULT $? 0 0 "install texlive-rterface failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rterface + CHECK_RESULT $? 0 0 "remove texlive-rterface failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtkinenc-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtkinenc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f47eec373061a40cb8ca51afa432fc221c9dc88 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtkinenc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rtkinenc-doc | grep -v \.src | grep texlive-rtkinenc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rtkinenc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rtkinenc-doc + CHECK_RESULT $? 0 0 "install texlive-rtkinenc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rtkinenc-doc + CHECK_RESULT $? 0 0 "remove texlive-rtkinenc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtkinenc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtkinenc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5d5fa21cc349b86500cb4c5cb66d68cc260b8e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtkinenc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rtkinenc | grep -v \.src | grep texlive-rtkinenc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rtkinenc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rtkinenc + CHECK_RESULT $? 0 0 "install texlive-rtkinenc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rtkinenc + CHECK_RESULT $? 0 0 "remove texlive-rtkinenc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtklage-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtklage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a10cdfe793fa4f06b35f734b9028f33b22bdd113 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtklage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rtklage-doc | grep -v \.src | grep texlive-rtklage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rtklage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rtklage-doc + CHECK_RESULT $? 0 0 "install texlive-rtklage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rtklage-doc + CHECK_RESULT $? 0 0 "remove texlive-rtklage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtklage.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtklage.sh new file mode 100644 index 0000000000000000000000000000000000000000..168a3b54fa124f8584b7eb3c41c382cd064f3e49 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rtklage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rtklage | grep -v \.src | grep texlive-rtklage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rtklage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rtklage + CHECK_RESULT $? 0 0 "install texlive-rtklage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rtklage + CHECK_RESULT $? 0 0 "remove texlive-rtklage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-ruhyphen.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-ruhyphen.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc7fe7dc37a85d36b5e1f875f6808541212fa119 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-ruhyphen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ruhyphen | grep -v \.src | grep texlive-ruhyphen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ruhyphen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ruhyphen + CHECK_RESULT $? 0 0 "install texlive-ruhyphen failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ruhyphen + CHECK_RESULT $? 0 0 "remove texlive-ruhyphen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rulercompass-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rulercompass-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ffbc61f0ec95d2cfc52d1919f4d8e0644abf4465 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rulercompass-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rulercompass-doc | grep -v \.src | grep texlive-rulercompass-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rulercompass-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rulercompass-doc + CHECK_RESULT $? 0 0 "install texlive-rulercompass-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rulercompass-doc + CHECK_RESULT $? 0 0 "remove texlive-rulercompass-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rulercompass.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rulercompass.sh new file mode 100644 index 0000000000000000000000000000000000000000..17c5d1f1d2f12615e14c212070318b7c10b5ab05 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rulercompass.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rulercompass | grep -v \.src | grep texlive-rulercompass + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rulercompass" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rulercompass + CHECK_RESULT $? 0 0 "install texlive-rulercompass failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rulercompass + CHECK_RESULT $? 0 0 "remove texlive-rulercompass failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-russ-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-russ-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..97bed2a4cd7145780fc8ff0b165b3b4498871ceb --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-russ-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-russ-doc | grep -v \.src | grep texlive-russ-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-russ-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-russ-doc + CHECK_RESULT $? 0 0 "install texlive-russ-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-russ-doc + CHECK_RESULT $? 0 0 "remove texlive-russ-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-russ.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-russ.sh new file mode 100644 index 0000000000000000000000000000000000000000..87b144e423f3d247a7798cb08624dd5cc7c1038b --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-russ.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-russ | grep -v \.src | grep texlive-russ + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-russ" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-russ + CHECK_RESULT $? 0 0 "install texlive-russ failed" + SLEEP_WAIT 1 + dnf remove -y texlive-russ + CHECK_RESULT $? 0 0 "remove texlive-russ failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rutitlepage.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rutitlepage.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4cf5e65c8cf5f2382a38116e4bc0fe27da34c90 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rutitlepage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rutitlepage | grep -v \.src | grep texlive-rutitlepage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rutitlepage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rutitlepage + CHECK_RESULT $? 0 0 "install texlive-rutitlepage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rutitlepage + CHECK_RESULT $? 0 0 "remove texlive-rutitlepage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rviewport-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rviewport-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..08cd207b9cfdae23d9162c80530292c89d5e55e5 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rviewport-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rviewport-doc | grep -v \.src | grep texlive-rviewport-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rviewport-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rviewport-doc + CHECK_RESULT $? 0 0 "install texlive-rviewport-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rviewport-doc + CHECK_RESULT $? 0 0 "remove texlive-rviewport-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rviewport.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rviewport.sh new file mode 100644 index 0000000000000000000000000000000000000000..7fb69a735bd4bea3a450566af0c84b6b0feb0f55 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rviewport.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rviewport | grep -v \.src | grep texlive-rviewport + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rviewport" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rviewport + CHECK_RESULT $? 0 0 "install texlive-rviewport failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rviewport + CHECK_RESULT $? 0 0 "remove texlive-rviewport failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rvwrite-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rvwrite-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..09fe2eefecc1c72d4fac1890ca2a6ca7e9323b46 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rvwrite-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rvwrite-doc | grep -v \.src | grep texlive-rvwrite-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rvwrite-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rvwrite-doc + CHECK_RESULT $? 0 0 "install texlive-rvwrite-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rvwrite-doc + CHECK_RESULT $? 0 0 "remove texlive-rvwrite-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rvwrite.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rvwrite.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c63468a040e007bcab4c445caaec099041bcf4d --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-rvwrite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rvwrite | grep -v \.src | grep texlive-rvwrite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rvwrite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rvwrite + CHECK_RESULT $? 0 0 "install texlive-rvwrite failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rvwrite + CHECK_RESULT $? 0 0 "remove texlive-rvwrite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-ryethesis-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-ryethesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..da7cc77f9d690d5615da08f8e8775998fbb08b1a --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-ryethesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ryethesis-doc | grep -v \.src | grep texlive-ryethesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ryethesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ryethesis-doc + CHECK_RESULT $? 0 0 "install texlive-ryethesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ryethesis-doc + CHECK_RESULT $? 0 0 "remove texlive-ryethesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-ryethesis.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-ryethesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..6444b93949d645e1c07c8fde857fab7107313a8a --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-ryethesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ryethesis | grep -v \.src | grep texlive-ryethesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ryethesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ryethesis + CHECK_RESULT $? 0 0 "install texlive-ryethesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ryethesis + CHECK_RESULT $? 0 0 "remove texlive-ryethesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sa-tikz-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sa-tikz-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..41fbcb0ce93eb56fd8b7c0402c1b112693266186 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sa-tikz-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sa-tikz-doc | grep -v \.src | grep texlive-sa-tikz-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sa-tikz-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sa-tikz-doc + CHECK_RESULT $? 0 0 "install texlive-sa-tikz-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sa-tikz-doc + CHECK_RESULT $? 0 0 "remove texlive-sa-tikz-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sa-tikz.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sa-tikz.sh new file mode 100644 index 0000000000000000000000000000000000000000..d81f939aebe240afe37f5f104a5819ee882a7dbe --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sa-tikz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sa-tikz | grep -v \.src | grep texlive-sa-tikz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sa-tikz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sa-tikz + CHECK_RESULT $? 0 0 "install texlive-sa-tikz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sa-tikz + CHECK_RESULT $? 0 0 "remove texlive-sa-tikz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sageep-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sageep-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e20868f0defbaa74d105418d46056689d376c7d5 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sageep-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sageep-doc | grep -v \.src | grep texlive-sageep-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sageep-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sageep-doc + CHECK_RESULT $? 0 0 "install texlive-sageep-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sageep-doc + CHECK_RESULT $? 0 0 "remove texlive-sageep-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sageep.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sageep.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc1eaa403332790a5f5a3e2e2dd487fcc965cc25 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sageep.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sageep | grep -v \.src | grep texlive-sageep + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sageep" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sageep + CHECK_RESULT $? 0 0 "install texlive-sageep failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sageep + CHECK_RESULT $? 0 0 "remove texlive-sageep failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanitize-umlaut-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanitize-umlaut-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f583255ba6019b7b7c68374e9fd8542d674a446a --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanitize-umlaut-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sanitize-umlaut-doc | grep -v \.src | grep texlive-sanitize-umlaut-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sanitize-umlaut-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sanitize-umlaut-doc + CHECK_RESULT $? 0 0 "install texlive-sanitize-umlaut-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sanitize-umlaut-doc + CHECK_RESULT $? 0 0 "remove texlive-sanitize-umlaut-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanitize-umlaut.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanitize-umlaut.sh new file mode 100644 index 0000000000000000000000000000000000000000..9eaf245a33fccad55d9b19da5f9ad30ef07745d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanitize-umlaut.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sanitize-umlaut | grep -v \.src | grep texlive-sanitize-umlaut + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sanitize-umlaut" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sanitize-umlaut + CHECK_RESULT $? 0 0 "install texlive-sanitize-umlaut failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sanitize-umlaut + CHECK_RESULT $? 0 0 "remove texlive-sanitize-umlaut failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..048e956f3fc83d830ac38e1398cfca661dd328b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sanskrit-doc | grep -v \.src | grep texlive-sanskrit-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sanskrit-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sanskrit-doc + CHECK_RESULT $? 0 0 "install texlive-sanskrit-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sanskrit-doc + CHECK_RESULT $? 0 0 "remove texlive-sanskrit-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-t1-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-t1-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6d80d0e7cda654d80f803ce45188199bf9aa467 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-t1-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sanskrit-t1-doc | grep -v \.src | grep texlive-sanskrit-t1-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sanskrit-t1-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sanskrit-t1-doc + CHECK_RESULT $? 0 0 "install texlive-sanskrit-t1-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sanskrit-t1-doc + CHECK_RESULT $? 0 0 "remove texlive-sanskrit-t1-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-t1.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-t1.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b9de958aa8ab8611d6a2831caae5303b6cd3097 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit-t1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sanskrit-t1 | grep -v \.src | grep texlive-sanskrit-t1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sanskrit-t1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sanskrit-t1 + CHECK_RESULT $? 0 0 "install texlive-sanskrit-t1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sanskrit-t1 + CHECK_RESULT $? 0 0 "remove texlive-sanskrit-t1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6edf46ce2ac77cf326b57cd8e60d7bd25e5599b --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sanskrit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sanskrit | grep -v \.src | grep texlive-sanskrit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sanskrit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sanskrit + CHECK_RESULT $? 0 0 "install texlive-sanskrit failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sanskrit + CHECK_RESULT $? 0 0 "remove texlive-sanskrit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmath-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3843768ac066ad2b9c7328d14d9d46de0a04763f --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sansmath-doc | grep -v \.src | grep texlive-sansmath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sansmath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sansmath-doc + CHECK_RESULT $? 0 0 "install texlive-sansmath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sansmath-doc + CHECK_RESULT $? 0 0 "remove texlive-sansmath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmath.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..7121c50bb7d5339b6dff09da5b5c288b0938fff3 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sansmath | grep -v \.src | grep texlive-sansmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sansmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sansmath + CHECK_RESULT $? 0 0 "install texlive-sansmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sansmath + CHECK_RESULT $? 0 0 "remove texlive-sansmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathaccent-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathaccent-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..128553370b084a9d7829e6a601a103b0ed3ba0ed --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathaccent-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sansmathaccent-doc | grep -v \.src | grep texlive-sansmathaccent-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sansmathaccent-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sansmathaccent-doc + CHECK_RESULT $? 0 0 "install texlive-sansmathaccent-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sansmathaccent-doc + CHECK_RESULT $? 0 0 "remove texlive-sansmathaccent-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathaccent.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathaccent.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bdccd2cace7805c11cb721b724c9f62df826a0b --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathaccent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sansmathaccent | grep -v \.src | grep texlive-sansmathaccent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sansmathaccent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sansmathaccent + CHECK_RESULT $? 0 0 "install texlive-sansmathaccent failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sansmathaccent + CHECK_RESULT $? 0 0 "remove texlive-sansmathaccent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathfonts-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathfonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..db950c5fe4187091c0264b4380b2de761be4e435 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathfonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sansmathfonts-doc | grep -v \.src | grep texlive-sansmathfonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sansmathfonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sansmathfonts-doc + CHECK_RESULT $? 0 0 "install texlive-sansmathfonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sansmathfonts-doc + CHECK_RESULT $? 0 0 "remove texlive-sansmathfonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathfonts.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..17d380422d93cf96f03a98909f47bcdb0ba69ea7 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sansmathfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sansmathfonts | grep -v \.src | grep texlive-sansmathfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sansmathfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sansmathfonts + CHECK_RESULT $? 0 0 "install texlive-sansmathfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sansmathfonts + CHECK_RESULT $? 0 0 "remove texlive-sansmathfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sapthesis-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sapthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd259721ef5b76cc9fe63f2ee2ddfd3a8a49667c --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sapthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sapthesis-doc | grep -v \.src | grep texlive-sapthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sapthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sapthesis-doc + CHECK_RESULT $? 0 0 "install texlive-sapthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sapthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-sapthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sapthesis.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sapthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee3b7682495a06c45349206dbcd688f271576687 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sapthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sapthesis | grep -v \.src | grep texlive-sapthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sapthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sapthesis + CHECK_RESULT $? 0 0 "install texlive-sapthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sapthesis + CHECK_RESULT $? 0 0 "remove texlive-sapthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sasnrdisplay-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sasnrdisplay-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ee5442ce48db403aa71a341f9d590536c05424f --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sasnrdisplay-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sasnrdisplay-doc | grep -v \.src | grep texlive-sasnrdisplay-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sasnrdisplay-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sasnrdisplay-doc + CHECK_RESULT $? 0 0 "install texlive-sasnrdisplay-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sasnrdisplay-doc + CHECK_RESULT $? 0 0 "remove texlive-sasnrdisplay-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sasnrdisplay.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sasnrdisplay.sh new file mode 100644 index 0000000000000000000000000000000000000000..609cb51cd4418ea40cf4e40708bb585922b851c3 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sasnrdisplay.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sasnrdisplay | grep -v \.src | grep texlive-sasnrdisplay + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sasnrdisplay" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sasnrdisplay + CHECK_RESULT $? 0 0 "install texlive-sasnrdisplay failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sasnrdisplay + CHECK_RESULT $? 0 0 "remove texlive-sasnrdisplay failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauerj-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauerj-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f616d9972034c2313b4332434c54720e3c902d97 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauerj-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sauerj-doc | grep -v \.src | grep texlive-sauerj-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sauerj-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sauerj-doc + CHECK_RESULT $? 0 0 "install texlive-sauerj-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sauerj-doc + CHECK_RESULT $? 0 0 "remove texlive-sauerj-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauerj.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauerj.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c4c576679a33dd48115275be4d5ff4087d372bd --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauerj.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sauerj | grep -v \.src | grep texlive-sauerj + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sauerj" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sauerj + CHECK_RESULT $? 0 0 "install texlive-sauerj failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sauerj + CHECK_RESULT $? 0 0 "remove texlive-sauerj failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauter.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauter.sh new file mode 100644 index 0000000000000000000000000000000000000000..987631560ec624a1bece5f282078d61db13bc639 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sauter | grep -v \.src | grep texlive-sauter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sauter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sauter + CHECK_RESULT $? 0 0 "install texlive-sauter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sauter + CHECK_RESULT $? 0 0 "remove texlive-sauter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauterfonts-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauterfonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0886794bdd38a287610d74f2b005937a59120948 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauterfonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sauterfonts-doc | grep -v \.src | grep texlive-sauterfonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sauterfonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sauterfonts-doc + CHECK_RESULT $? 0 0 "install texlive-sauterfonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sauterfonts-doc + CHECK_RESULT $? 0 0 "remove texlive-sauterfonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauterfonts.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauterfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5293eb9cefc6b890c1a77b779381eac21eba846 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sauterfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sauterfonts | grep -v \.src | grep texlive-sauterfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sauterfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sauterfonts + CHECK_RESULT $? 0 0 "install texlive-sauterfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sauterfonts + CHECK_RESULT $? 0 0 "remove texlive-sauterfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savefnmark-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savefnmark-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5adaf654f80a6b46f1790854f69b6d2556f80cfa --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savefnmark-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-savefnmark-doc | grep -v \.src | grep texlive-savefnmark-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-savefnmark-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-savefnmark-doc + CHECK_RESULT $? 0 0 "install texlive-savefnmark-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-savefnmark-doc + CHECK_RESULT $? 0 0 "remove texlive-savefnmark-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savefnmark.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savefnmark.sh new file mode 100644 index 0000000000000000000000000000000000000000..2334f5209f798271dc22c600ff07b4cd8dadea44 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savefnmark.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-savefnmark | grep -v \.src | grep texlive-savefnmark + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-savefnmark" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-savefnmark + CHECK_RESULT $? 0 0 "install texlive-savefnmark failed" + SLEEP_WAIT 1 + dnf remove -y texlive-savefnmark + CHECK_RESULT $? 0 0 "remove texlive-savefnmark failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savesym.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savesym.sh new file mode 100644 index 0000000000000000000000000000000000000000..2eccea3fe53e02822714c1efb40edeaf0d4447d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savesym.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-savesym | grep -v \.src | grep texlive-savesym + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-savesym" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-savesym + CHECK_RESULT $? 0 0 "install texlive-savesym failed" + SLEEP_WAIT 1 + dnf remove -y texlive-savesym + CHECK_RESULT $? 0 0 "remove texlive-savesym failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savetrees-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savetrees-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ac2ebfe64ae97cb5a14f29b74775ad3f9005ce5 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savetrees-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-savetrees-doc | grep -v \.src | grep texlive-savetrees-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-savetrees-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-savetrees-doc + CHECK_RESULT $? 0 0 "install texlive-savetrees-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-savetrees-doc + CHECK_RESULT $? 0 0 "remove texlive-savetrees-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savetrees.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savetrees.sh new file mode 100644 index 0000000000000000000000000000000000000000..6640962dae7239833aee0b9348222b52fd997b1e --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-savetrees.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-savetrees | grep -v \.src | grep texlive-savetrees + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-savetrees" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-savetrees + CHECK_RESULT $? 0 0 "install texlive-savetrees failed" + SLEEP_WAIT 1 + dnf remove -y texlive-savetrees + CHECK_RESULT $? 0 0 "remove texlive-savetrees failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scale-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scale-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f234dce1d67b95c36dfe1022b6c5d2c355792afc --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scale-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scale-doc | grep -v \.src | grep texlive-scale-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scale-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scale-doc + CHECK_RESULT $? 0 0 "install texlive-scale-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scale-doc + CHECK_RESULT $? 0 0 "remove texlive-scale-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scale.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scale.sh new file mode 100644 index 0000000000000000000000000000000000000000..6174800e118e06421e5660baabd0f441ded75728 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scale.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scale | grep -v \.src | grep texlive-scale + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scale" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scale + CHECK_RESULT $? 0 0 "install texlive-scale failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scale + CHECK_RESULT $? 0 0 "remove texlive-scale failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalebar-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalebar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f5be6d0a8cef3871bbfaaa56fe674e3f18a9e7c --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalebar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scalebar-doc | grep -v \.src | grep texlive-scalebar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scalebar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scalebar-doc + CHECK_RESULT $? 0 0 "install texlive-scalebar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scalebar-doc + CHECK_RESULT $? 0 0 "remove texlive-scalebar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalebar.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalebar.sh new file mode 100644 index 0000000000000000000000000000000000000000..8453ff199d7db08e16e7fed5e0840d343641e2e6 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalebar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scalebar | grep -v \.src | grep texlive-scalebar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scalebar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scalebar + CHECK_RESULT $? 0 0 "install texlive-scalebar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scalebar + CHECK_RESULT $? 0 0 "remove texlive-scalebar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalerel-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalerel-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ca69757abfdf9b7bc6b0eb1565c27d15d075851 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalerel-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scalerel-doc | grep -v \.src | grep texlive-scalerel-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scalerel-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scalerel-doc + CHECK_RESULT $? 0 0 "install texlive-scalerel-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scalerel-doc + CHECK_RESULT $? 0 0 "remove texlive-scalerel-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalerel.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalerel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f137cb26fb89b2bc176294a4e4a3b6f466d80a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scalerel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scalerel | grep -v \.src | grep texlive-scalerel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scalerel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scalerel + CHECK_RESULT $? 0 0 "install texlive-scalerel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scalerel + CHECK_RESULT $? 0 0 "remove texlive-scalerel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scanpages-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scanpages-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..54a87a6fd1236763039f963a95b2646f524db636 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scanpages-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scanpages-doc | grep -v \.src | grep texlive-scanpages-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scanpages-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scanpages-doc + CHECK_RESULT $? 0 0 "install texlive-scanpages-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scanpages-doc + CHECK_RESULT $? 0 0 "remove texlive-scanpages-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scanpages.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scanpages.sh new file mode 100644 index 0000000000000000000000000000000000000000..7edabd199cded12e99df2305a0de4270c85504d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scanpages.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scanpages | grep -v \.src | grep texlive-scanpages + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scanpages" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scanpages + CHECK_RESULT $? 0 0 "install texlive-scanpages failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scanpages + CHECK_RESULT $? 0 0 "remove texlive-scanpages failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemabloc-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemabloc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..02b9cbbc5fda76ec067716ef14ca35a6d23c622a --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemabloc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schemabloc-doc | grep -v \.src | grep texlive-schemabloc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schemabloc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schemabloc-doc + CHECK_RESULT $? 0 0 "install texlive-schemabloc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schemabloc-doc + CHECK_RESULT $? 0 0 "remove texlive-schemabloc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemabloc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemabloc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b3f5dc231470cd4ebc86d510ce128a9ea6b8302 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemabloc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schemabloc | grep -v \.src | grep texlive-schemabloc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schemabloc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schemabloc + CHECK_RESULT $? 0 0 "install texlive-schemabloc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schemabloc + CHECK_RESULT $? 0 0 "remove texlive-schemabloc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemata-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemata-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..de48524de80271821549eff48066ca2d1ccdb697 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemata-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schemata-doc | grep -v \.src | grep texlive-schemata-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schemata-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schemata-doc + CHECK_RESULT $? 0 0 "install texlive-schemata-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schemata-doc + CHECK_RESULT $? 0 0 "remove texlive-schemata-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemata.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemata.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce1d088f911c7b65d5a18dfb4ecc414644a3e153 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schemata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schemata | grep -v \.src | grep texlive-schemata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schemata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schemata + CHECK_RESULT $? 0 0 "install texlive-schemata failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schemata + CHECK_RESULT $? 0 0 "remove texlive-schemata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-basic.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-basic.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fde80e06387333669c450cc9c2679d415757feb --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-basic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-basic | grep -v \.src | grep texlive-scheme-basic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-basic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-basic + CHECK_RESULT $? 0 0 "install texlive-scheme-basic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-basic + CHECK_RESULT $? 0 0 "remove texlive-scheme-basic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-context.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-context.sh new file mode 100644 index 0000000000000000000000000000000000000000..91b67826e615ad5584e1a1a5553b6778c07c728c --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-context.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-context | grep -v \.src | grep texlive-scheme-context + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-context" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-context + CHECK_RESULT $? 0 0 "install texlive-scheme-context failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-context + CHECK_RESULT $? 0 0 "remove texlive-scheme-context failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-full.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-full.sh new file mode 100644 index 0000000000000000000000000000000000000000..735101c94d2dadf6fa4502f74102e941a07370c0 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-full.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-full | grep -v \.src | grep texlive-scheme-full + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-full" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-full + CHECK_RESULT $? 0 0 "install texlive-scheme-full failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-full + CHECK_RESULT $? 0 0 "remove texlive-scheme-full failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-gust.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-gust.sh new file mode 100644 index 0000000000000000000000000000000000000000..242bc0380f92a3e884cbeae53326f11b0cb3c476 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-gust.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-gust | grep -v \.src | grep texlive-scheme-gust + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-gust" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-gust + CHECK_RESULT $? 0 0 "install texlive-scheme-gust failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-gust + CHECK_RESULT $? 0 0 "remove texlive-scheme-gust failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-medium.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-medium.sh new file mode 100644 index 0000000000000000000000000000000000000000..594edbc06eb63829584cf76135c549a8ec29cb5a --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-medium.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-medium | grep -v \.src | grep texlive-scheme-medium + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-medium" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-medium + CHECK_RESULT $? 0 0 "install texlive-scheme-medium failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-medium + CHECK_RESULT $? 0 0 "remove texlive-scheme-medium failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-minimal.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-minimal.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ef67c00c2802c7e284aa649e97f95e989712849 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-minimal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-minimal | grep -v \.src | grep texlive-scheme-minimal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-minimal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-minimal + CHECK_RESULT $? 0 0 "install texlive-scheme-minimal failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-minimal + CHECK_RESULT $? 0 0 "remove texlive-scheme-minimal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-small.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-small.sh new file mode 100644 index 0000000000000000000000000000000000000000..330d237375d53e7c2ecba5426d47a99381c0dd24 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-small.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-small | grep -v \.src | grep texlive-scheme-small + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-small" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-small + CHECK_RESULT $? 0 0 "install texlive-scheme-small failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-small + CHECK_RESULT $? 0 0 "remove texlive-scheme-small failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-tetex.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-tetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c2f3816f9b7d4b59463cdca26a144c577356201 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scheme-tetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scheme-tetex | grep -v \.src | grep texlive-scheme-tetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scheme-tetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scheme-tetex + CHECK_RESULT $? 0 0 "install texlive-scheme-tetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scheme-tetex + CHECK_RESULT $? 0 0 "remove texlive-scheme-tetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schule-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schule-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce33be162996015e2aa00d9e2a8d386a902f3e72 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schule-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schule-doc | grep -v \.src | grep texlive-schule-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schule-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schule-doc + CHECK_RESULT $? 0 0 "install texlive-schule-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schule-doc + CHECK_RESULT $? 0 0 "remove texlive-schule-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schule.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schule.sh new file mode 100644 index 0000000000000000000000000000000000000000..a07ad246f7272f5efeb724cefd612aefca12a76f --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schule.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schule | grep -v \.src | grep texlive-schule + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schule" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schule + CHECK_RESULT $? 0 0 "install texlive-schule failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schule + CHECK_RESULT $? 0 0 "remove texlive-schule failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schulschriften-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schulschriften-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2c68c3ba0aa78bad69e86cef72bbaa4debaaf09 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schulschriften-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schulschriften-doc | grep -v \.src | grep texlive-schulschriften-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schulschriften-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schulschriften-doc + CHECK_RESULT $? 0 0 "install texlive-schulschriften-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schulschriften-doc + CHECK_RESULT $? 0 0 "remove texlive-schulschriften-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schulschriften.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schulschriften.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a0427982bdc016d25c295896f9e0e850203a6af --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schulschriften.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schulschriften | grep -v \.src | grep texlive-schulschriften + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schulschriften" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schulschriften + CHECK_RESULT $? 0 0 "install texlive-schulschriften failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schulschriften + CHECK_RESULT $? 0 0 "remove texlive-schulschriften failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schwalbe-chess-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schwalbe-chess-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..67919eb178847e9e74aeb473688b098e22d2efe3 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schwalbe-chess-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schwalbe-chess-doc | grep -v \.src | grep texlive-schwalbe-chess-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schwalbe-chess-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schwalbe-chess-doc + CHECK_RESULT $? 0 0 "install texlive-schwalbe-chess-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schwalbe-chess-doc + CHECK_RESULT $? 0 0 "remove texlive-schwalbe-chess-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schwalbe-chess.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schwalbe-chess.sh new file mode 100644 index 0000000000000000000000000000000000000000..88fa02f5dd5e9bd1e09a8d7ca86a00f59f4592af --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-schwalbe-chess.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schwalbe-chess | grep -v \.src | grep texlive-schwalbe-chess + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schwalbe-chess" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schwalbe-chess + CHECK_RESULT $? 0 0 "install texlive-schwalbe-chess failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schwalbe-chess + CHECK_RESULT $? 0 0 "remove texlive-schwalbe-chess failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scientific-thesis-cover.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scientific-thesis-cover.sh new file mode 100644 index 0000000000000000000000000000000000000000..836e1267cb656f9258bc4df3b9eb9fe7c0613c67 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scientific-thesis-cover.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scientific-thesis-cover | grep -v \.src | grep texlive-scientific-thesis-cover + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scientific-thesis-cover" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scientific-thesis-cover + CHECK_RESULT $? 0 0 "install texlive-scientific-thesis-cover failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scientific-thesis-cover + CHECK_RESULT $? 0 0 "remove texlive-scientific-thesis-cover failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sciposter-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sciposter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..258a8493e005ccd0d603612760b987404d231f65 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sciposter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sciposter-doc | grep -v \.src | grep texlive-sciposter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sciposter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sciposter-doc + CHECK_RESULT $? 0 0 "install texlive-sciposter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sciposter-doc + CHECK_RESULT $? 0 0 "remove texlive-sciposter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sciposter.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sciposter.sh new file mode 100644 index 0000000000000000000000000000000000000000..12f650114fd94e23f3d7acd43c750aa2eb167e4d --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sciposter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sciposter | grep -v \.src | grep texlive-sciposter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sciposter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sciposter + CHECK_RESULT $? 0 0 "install texlive-sciposter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sciposter + CHECK_RESULT $? 0 0 "remove texlive-sciposter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sclang-prettifier-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sclang-prettifier-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..375f2047935e503cb3872a113dad73d77201f2aa --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sclang-prettifier-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sclang-prettifier-doc | grep -v \.src | grep texlive-sclang-prettifier-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sclang-prettifier-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sclang-prettifier-doc + CHECK_RESULT $? 0 0 "install texlive-sclang-prettifier-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sclang-prettifier-doc + CHECK_RESULT $? 0 0 "remove texlive-sclang-prettifier-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sclang-prettifier.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sclang-prettifier.sh new file mode 100644 index 0000000000000000000000000000000000000000..70d5128ba7f1054544719ad3f37be100a0b1c618 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sclang-prettifier.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sclang-prettifier | grep -v \.src | grep texlive-sclang-prettifier + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sclang-prettifier" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sclang-prettifier + CHECK_RESULT $? 0 0 "install texlive-sclang-prettifier failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sclang-prettifier + CHECK_RESULT $? 0 0 "remove texlive-sclang-prettifier failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scratch.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scratch.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d97f3c2391506fa3d8341bf3fa3861a1fc46f91 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scratch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scratch | grep -v \.src | grep texlive-scratch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scratch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scratch + CHECK_RESULT $? 0 0 "install texlive-scratch failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scratch + CHECK_RESULT $? 0 0 "remove texlive-scratch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scratchx.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scratchx.sh new file mode 100644 index 0000000000000000000000000000000000000000..f728fd10bc5debb9905406ac151d1a74691cf991 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scratchx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scratchx | grep -v \.src | grep texlive-scratchx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scratchx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scratchx + CHECK_RESULT $? 0 0 "install texlive-scratchx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scratchx + CHECK_RESULT $? 0 0 "remove texlive-scratchx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed2f0e53fde2bd59c37aed96c87cd87ea1f9629c --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-screenplay-doc | grep -v \.src | grep texlive-screenplay-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-screenplay-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-screenplay-doc + CHECK_RESULT $? 0 0 "install texlive-screenplay-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-screenplay-doc + CHECK_RESULT $? 0 0 "remove texlive-screenplay-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay-pkg-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay-pkg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..75a1f7aba19bf33405a18e833c326c5bd1b2c351 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay-pkg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-screenplay-pkg-doc | grep -v \.src | grep texlive-screenplay-pkg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-screenplay-pkg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-screenplay-pkg-doc + CHECK_RESULT $? 0 0 "install texlive-screenplay-pkg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-screenplay-pkg-doc + CHECK_RESULT $? 0 0 "remove texlive-screenplay-pkg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay-pkg.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay-pkg.sh new file mode 100644 index 0000000000000000000000000000000000000000..4adaa72f1cb14f02f4d0ea45d02af9c5aee63aef --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay-pkg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-screenplay-pkg | grep -v \.src | grep texlive-screenplay-pkg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-screenplay-pkg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-screenplay-pkg + CHECK_RESULT $? 0 0 "install texlive-screenplay-pkg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-screenplay-pkg + CHECK_RESULT $? 0 0 "remove texlive-screenplay-pkg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay.sh new file mode 100644 index 0000000000000000000000000000000000000000..55d2d7f0ed2a435333afe32379911172350fcab6 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-screenplay.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-screenplay | grep -v \.src | grep texlive-screenplay + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-screenplay" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-screenplay + CHECK_RESULT $? 0 0 "install texlive-screenplay failed" + SLEEP_WAIT 1 + dnf remove -y texlive-screenplay + CHECK_RESULT $? 0 0 "remove texlive-screenplay failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrjrnl-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrjrnl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..55b5b9782b1f09f0e4a65c94fbf928a150eba124 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrjrnl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scrjrnl-doc | grep -v \.src | grep texlive-scrjrnl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scrjrnl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scrjrnl-doc + CHECK_RESULT $? 0 0 "install texlive-scrjrnl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scrjrnl-doc + CHECK_RESULT $? 0 0 "remove texlive-scrjrnl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrjrnl.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrjrnl.sh new file mode 100644 index 0000000000000000000000000000000000000000..83d1d6c0f0f4be6d3d1c97025e99ea3ad06dd1ee --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrjrnl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scrjrnl | grep -v \.src | grep texlive-scrjrnl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scrjrnl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scrjrnl + CHECK_RESULT $? 0 0 "install texlive-scrjrnl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scrjrnl + CHECK_RESULT $? 0 0 "remove texlive-scrjrnl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrlttr2copy-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrlttr2copy-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..45dd9d60abc5e461326c4c27cd8362b11641d68c --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrlttr2copy-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scrlttr2copy-doc | grep -v \.src | grep texlive-scrlttr2copy-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scrlttr2copy-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scrlttr2copy-doc + CHECK_RESULT $? 0 0 "install texlive-scrlttr2copy-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scrlttr2copy-doc + CHECK_RESULT $? 0 0 "remove texlive-scrlttr2copy-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrlttr2copy.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrlttr2copy.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d331c38d31b1f41ac85f1afc72ba5124bb99a89 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scrlttr2copy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scrlttr2copy | grep -v \.src | grep texlive-scrlttr2copy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scrlttr2copy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scrlttr2copy + CHECK_RESULT $? 0 0 "install texlive-scrlttr2copy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scrlttr2copy + CHECK_RESULT $? 0 0 "remove texlive-scrlttr2copy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scsnowman.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scsnowman.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4a46645abcaba7099e95b178068bb9c11cf463f --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-scsnowman.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scsnowman | grep -v \.src | grep texlive-scsnowman + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scsnowman" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scsnowman + CHECK_RESULT $? 0 0 "install texlive-scsnowman failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scsnowman + CHECK_RESULT $? 0 0 "remove texlive-scsnowman failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sdrt-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sdrt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bb67a28449d894b6b26e9c267333c4e87ece163 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sdrt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sdrt-doc | grep -v \.src | grep texlive-sdrt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sdrt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sdrt-doc + CHECK_RESULT $? 0 0 "install texlive-sdrt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sdrt-doc + CHECK_RESULT $? 0 0 "remove texlive-sdrt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sdrt.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sdrt.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c5bafbfab4fe3ae5af42ac88e7f0647640f20ff --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sdrt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sdrt | grep -v \.src | grep texlive-sdrt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sdrt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sdrt + CHECK_RESULT $? 0 0 "install texlive-sdrt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sdrt + CHECK_RESULT $? 0 0 "remove texlive-sdrt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sduthesis-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sduthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d54701256ff31e236ffdafdcd414be860e7c386 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sduthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sduthesis-doc | grep -v \.src | grep texlive-sduthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sduthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sduthesis-doc + CHECK_RESULT $? 0 0 "install texlive-sduthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sduthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-sduthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sduthesis.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sduthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e572b6cf85dfdfc16892684453b227cb5bd6b2b --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sduthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sduthesis | grep -v \.src | grep texlive-sduthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sduthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sduthesis + CHECK_RESULT $? 0 0 "install texlive-sduthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sduthesis + CHECK_RESULT $? 0 0 "remove texlive-sduthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-secdot-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-secdot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..33b292173868938879f9d7e1987da54be2f8d125 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-secdot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-secdot-doc | grep -v \.src | grep texlive-secdot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-secdot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-secdot-doc + CHECK_RESULT $? 0 0 "install texlive-secdot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-secdot-doc + CHECK_RESULT $? 0 0 "remove texlive-secdot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-secdot.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-secdot.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc24bf3d72bc5c45d85b9ff25f8ab4bcc0576a6a --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-secdot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-secdot | grep -v \.src | grep texlive-secdot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-secdot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-secdot + CHECK_RESULT $? 0 0 "install texlive-secdot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-secdot + CHECK_RESULT $? 0 0 "remove texlive-secdot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-section-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-section-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..76f081905c38f04077e47dcbe1b16df23ae21fc2 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-section-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-section-doc | grep -v \.src | grep texlive-section-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-section-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-section-doc + CHECK_RESULT $? 0 0 "install texlive-section-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-section-doc + CHECK_RESULT $? 0 0 "remove texlive-section-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-section.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-section.sh new file mode 100644 index 0000000000000000000000000000000000000000..49001b266b20a83525037509ff2a0854991471cb --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-section.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-section | grep -v \.src | grep texlive-section + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-section" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-section + CHECK_RESULT $? 0 0 "install texlive-section failed" + SLEEP_WAIT 1 + dnf remove -y texlive-section + CHECK_RESULT $? 0 0 "remove texlive-section failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectionbox-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectionbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcbcf00f566cb2101b06db9f2f4c1cf8910a403c --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectionbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sectionbox-doc | grep -v \.src | grep texlive-sectionbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sectionbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sectionbox-doc + CHECK_RESULT $? 0 0 "install texlive-sectionbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sectionbox-doc + CHECK_RESULT $? 0 0 "remove texlive-sectionbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectionbox.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectionbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..44668dd5e5ac429776f3823aa778d78103f3632a --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectionbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sectionbox | grep -v \.src | grep texlive-sectionbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sectionbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sectionbox + CHECK_RESULT $? 0 0 "install texlive-sectionbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sectionbox + CHECK_RESULT $? 0 0 "remove texlive-sectionbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectionbreak.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectionbreak.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f25de73b5fbf20d97716b0e09df234c00071373 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectionbreak.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sectionbreak | grep -v \.src | grep texlive-sectionbreak + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sectionbreak" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sectionbreak + CHECK_RESULT $? 0 0 "install texlive-sectionbreak failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sectionbreak + CHECK_RESULT $? 0 0 "remove texlive-sectionbreak failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectsty-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectsty-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1f68f0e4e93ff5965d6e832b0d4bc677fd38af0 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectsty-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sectsty-doc | grep -v \.src | grep texlive-sectsty-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sectsty-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sectsty-doc + CHECK_RESULT $? 0 0 "install texlive-sectsty-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sectsty-doc + CHECK_RESULT $? 0 0 "remove texlive-sectsty-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectsty.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectsty.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5a54233845c7904247917611addeef91cd5eb3e --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sectsty.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sectsty | grep -v \.src | grep texlive-sectsty + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sectsty" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sectsty + CHECK_RESULT $? 0 0 "install texlive-sectsty failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sectsty + CHECK_RESULT $? 0 0 "remove texlive-sectsty failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seealso-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seealso-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9951f8afcc45beb47b4c57b72ea6bb2514577405 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seealso-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seealso-doc | grep -v \.src | grep texlive-seealso-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seealso-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seealso-doc + CHECK_RESULT $? 0 0 "install texlive-seealso-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seealso-doc + CHECK_RESULT $? 0 0 "remove texlive-seealso-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seealso.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seealso.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac37e07161396e534a72719e774928fb6db95627 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seealso.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seealso | grep -v \.src | grep texlive-seealso + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seealso" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seealso + CHECK_RESULT $? 0 0 "install texlive-seealso failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seealso + CHECK_RESULT $? 0 0 "remove texlive-seealso failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selectp-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selectp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea500733bcb0e64215bfc739b957ae7aec5cc7eb --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selectp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-selectp-doc | grep -v \.src | grep texlive-selectp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-selectp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-selectp-doc + CHECK_RESULT $? 0 0 "install texlive-selectp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-selectp-doc + CHECK_RESULT $? 0 0 "remove texlive-selectp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selectp.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selectp.sh new file mode 100644 index 0000000000000000000000000000000000000000..4385f4eebf3c1703bf984dc5e7d01f5427869231 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selectp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-selectp | grep -v \.src | grep texlive-selectp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-selectp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-selectp + CHECK_RESULT $? 0 0 "install texlive-selectp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-selectp + CHECK_RESULT $? 0 0 "remove texlive-selectp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selnolig-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selnolig-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..82ccb01f44682530ac15309864ba11a206a97053 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selnolig-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-selnolig-doc | grep -v \.src | grep texlive-selnolig-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-selnolig-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-selnolig-doc + CHECK_RESULT $? 0 0 "install texlive-selnolig-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-selnolig-doc + CHECK_RESULT $? 0 0 "remove texlive-selnolig-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selnolig.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selnolig.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bb72a59624d687b7b2a0beff56c0ac2f7e5cb4d --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-selnolig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-selnolig | grep -v \.src | grep texlive-selnolig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-selnolig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-selnolig + CHECK_RESULT $? 0 0 "install texlive-selnolig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-selnolig + CHECK_RESULT $? 0 0 "remove texlive-selnolig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semantic-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semantic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d73c3f46a20153d3447a261cb2af5c753a454fbb --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semantic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semantic-doc | grep -v \.src | grep texlive-semantic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semantic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semantic-doc + CHECK_RESULT $? 0 0 "install texlive-semantic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semantic-doc + CHECK_RESULT $? 0 0 "remove texlive-semantic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semantic-markup.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semantic-markup.sh new file mode 100644 index 0000000000000000000000000000000000000000..e353d46b77005d238b0254264443d53ff8083732 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semantic-markup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semantic-markup | grep -v \.src | grep texlive-semantic-markup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semantic-markup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semantic-markup + CHECK_RESULT $? 0 0 "install texlive-semantic-markup failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semantic-markup + CHECK_RESULT $? 0 0 "remove texlive-semantic-markup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semantic.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semantic.sh new file mode 100644 index 0000000000000000000000000000000000000000..74486fb4da0e00786c5687bd07aba91c30f1e96e --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semantic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semantic | grep -v \.src | grep texlive-semantic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semantic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semantic + CHECK_RESULT $? 0 0 "install texlive-semantic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semantic + CHECK_RESULT $? 0 0 "remove texlive-semantic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semaphor-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semaphor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cf815c9c94de4a3f0aa90d97c4c9aad685f79df --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semaphor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semaphor-doc | grep -v \.src | grep texlive-semaphor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semaphor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semaphor-doc + CHECK_RESULT $? 0 0 "install texlive-semaphor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semaphor-doc + CHECK_RESULT $? 0 0 "remove texlive-semaphor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semaphor.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semaphor.sh new file mode 100644 index 0000000000000000000000000000000000000000..146d87d92fbc8295990ad9577c11f80a9af70fb1 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semaphor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semaphor | grep -v \.src | grep texlive-semaphor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semaphor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semaphor + CHECK_RESULT $? 0 0 "install texlive-semaphor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semaphor + CHECK_RESULT $? 0 0 "remove texlive-semaphor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seminar-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seminar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..098314867d5adaaa479bbc7e7bfe7ba8624f0a13 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seminar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seminar-doc | grep -v \.src | grep texlive-seminar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seminar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seminar-doc + CHECK_RESULT $? 0 0 "install texlive-seminar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seminar-doc + CHECK_RESULT $? 0 0 "remove texlive-seminar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seminar.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seminar.sh new file mode 100644 index 0000000000000000000000000000000000000000..43029618c53bc88948a5df4f65e2166a4d4ef7e3 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seminar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seminar | grep -v \.src | grep texlive-seminar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seminar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seminar + CHECK_RESULT $? 0 0 "install texlive-seminar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seminar + CHECK_RESULT $? 0 0 "remove texlive-seminar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semioneside-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semioneside-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..db22550622d488721f5b113e78cea2e3ab2883ff --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semioneside-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semioneside-doc | grep -v \.src | grep texlive-semioneside-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semioneside-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semioneside-doc + CHECK_RESULT $? 0 0 "install texlive-semioneside-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semioneside-doc + CHECK_RESULT $? 0 0 "remove texlive-semioneside-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semioneside.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semioneside.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7b65638d7db12c4b2de71501f7d57cd4fbd163e --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semioneside.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semioneside | grep -v \.src | grep texlive-semioneside + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semioneside" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semioneside + CHECK_RESULT $? 0 0 "install texlive-semioneside failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semioneside + CHECK_RESULT $? 0 0 "remove texlive-semioneside failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semproc-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semproc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..97611b1b8d01b082cc8949e330e87915e5ee0cb6 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semproc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semproc-doc | grep -v \.src | grep texlive-semproc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semproc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semproc-doc + CHECK_RESULT $? 0 0 "install texlive-semproc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semproc-doc + CHECK_RESULT $? 0 0 "remove texlive-semproc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semproc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semproc.sh new file mode 100644 index 0000000000000000000000000000000000000000..47e0508db524f7e52baf9815d46f1a8a72cdc914 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-semproc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semproc | grep -v \.src | grep texlive-semproc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semproc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semproc + CHECK_RESULT $? 0 0 "install texlive-semproc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semproc + CHECK_RESULT $? 0 0 "remove texlive-semproc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepfootnotes-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepfootnotes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5e3de0c54dcc9d30c6b9b4fa4dcad62d2b299ee --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepfootnotes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sepfootnotes-doc | grep -v \.src | grep texlive-sepfootnotes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sepfootnotes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sepfootnotes-doc + CHECK_RESULT $? 0 0 "install texlive-sepfootnotes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sepfootnotes-doc + CHECK_RESULT $? 0 0 "remove texlive-sepfootnotes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepfootnotes.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepfootnotes.sh new file mode 100644 index 0000000000000000000000000000000000000000..126c469f0ec550190140780f49d59c68b5d1dc36 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepfootnotes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sepfootnotes | grep -v \.src | grep texlive-sepfootnotes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sepfootnotes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sepfootnotes + CHECK_RESULT $? 0 0 "install texlive-sepfootnotes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sepfootnotes + CHECK_RESULT $? 0 0 "remove texlive-sepfootnotes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepnum-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepnum-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c50fb8e61771222b2eebc692384e85c4a4697b4a --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepnum-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sepnum-doc | grep -v \.src | grep texlive-sepnum-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sepnum-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sepnum-doc + CHECK_RESULT $? 0 0 "install texlive-sepnum-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sepnum-doc + CHECK_RESULT $? 0 0 "remove texlive-sepnum-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepnum.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepnum.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd913552079f6d583b62971699214ada5c3cb69e --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sepnum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sepnum | grep -v \.src | grep texlive-sepnum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sepnum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sepnum + CHECK_RESULT $? 0 0 "install texlive-sepnum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sepnum + CHECK_RESULT $? 0 0 "remove texlive-sepnum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seqsplit-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seqsplit-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f719f794daa7de33aa6b16a565f3941f3a27111 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seqsplit-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seqsplit-doc | grep -v \.src | grep texlive-seqsplit-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seqsplit-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seqsplit-doc + CHECK_RESULT $? 0 0 "install texlive-seqsplit-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seqsplit-doc + CHECK_RESULT $? 0 0 "remove texlive-seqsplit-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seqsplit.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seqsplit.sh new file mode 100644 index 0000000000000000000000000000000000000000..355d89f8bee0178f8b8dd24729764c9847be3e99 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seqsplit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seqsplit | grep -v \.src | grep texlive-seqsplit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seqsplit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seqsplit + CHECK_RESULT $? 0 0 "install texlive-seqsplit failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seqsplit + CHECK_RESULT $? 0 0 "remove texlive-seqsplit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-apostrophe-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-apostrophe-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..449b44f84ba45a89e9cf075e2478df187f541fd0 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-apostrophe-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-serbian-apostrophe-doc | grep -v \.src | grep texlive-serbian-apostrophe-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-serbian-apostrophe-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-serbian-apostrophe-doc + CHECK_RESULT $? 0 0 "install texlive-serbian-apostrophe-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-serbian-apostrophe-doc + CHECK_RESULT $? 0 0 "remove texlive-serbian-apostrophe-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-apostrophe.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-apostrophe.sh new file mode 100644 index 0000000000000000000000000000000000000000..66cd4a1c1fde1e94259b5debbffd39e96620fb73 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-apostrophe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-serbian-apostrophe | grep -v \.src | grep texlive-serbian-apostrophe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-serbian-apostrophe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-serbian-apostrophe + CHECK_RESULT $? 0 0 "install texlive-serbian-apostrophe failed" + SLEEP_WAIT 1 + dnf remove -y texlive-serbian-apostrophe + CHECK_RESULT $? 0 0 "remove texlive-serbian-apostrophe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-date-lat-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-date-lat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3445f6f51b8afd7adfa50ebc2417e63f34511afe --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-date-lat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-serbian-date-lat-doc | grep -v \.src | grep texlive-serbian-date-lat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-serbian-date-lat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-serbian-date-lat-doc + CHECK_RESULT $? 0 0 "install texlive-serbian-date-lat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-serbian-date-lat-doc + CHECK_RESULT $? 0 0 "remove texlive-serbian-date-lat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-date-lat.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-date-lat.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c361a7af5e386867e48b4f6c92e6d92c463a6d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-date-lat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-serbian-date-lat | grep -v \.src | grep texlive-serbian-date-lat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-serbian-date-lat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-serbian-date-lat + CHECK_RESULT $? 0 0 "install texlive-serbian-date-lat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-serbian-date-lat + CHECK_RESULT $? 0 0 "remove texlive-serbian-date-lat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-def-cyr-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-def-cyr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d15d5c8a47847748427384cbb6b3bef4a0222e63 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-def-cyr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-serbian-def-cyr-doc | grep -v \.src | grep texlive-serbian-def-cyr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-serbian-def-cyr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-serbian-def-cyr-doc + CHECK_RESULT $? 0 0 "install texlive-serbian-def-cyr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-serbian-def-cyr-doc + CHECK_RESULT $? 0 0 "remove texlive-serbian-def-cyr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-def-cyr.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-def-cyr.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6101e26a73103c22882bd9fcb7f9467768cbbe8 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-def-cyr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-serbian-def-cyr | grep -v \.src | grep texlive-serbian-def-cyr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-serbian-def-cyr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-serbian-def-cyr + CHECK_RESULT $? 0 0 "install texlive-serbian-def-cyr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-serbian-def-cyr + CHECK_RESULT $? 0 0 "remove texlive-serbian-def-cyr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-lig-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-lig-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9708bbf8c9cc3edf602e79148da3d52fca30c7c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-lig-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-serbian-lig-doc | grep -v \.src | grep texlive-serbian-lig-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-serbian-lig-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-serbian-lig-doc + CHECK_RESULT $? 0 0 "install texlive-serbian-lig-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-serbian-lig-doc + CHECK_RESULT $? 0 0 "remove texlive-serbian-lig-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-lig.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-lig.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4e6a18cf1fdbcc39a6568b2d60c0c92267ef077 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-serbian-lig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-serbian-lig | grep -v \.src | grep texlive-serbian-lig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-serbian-lig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-serbian-lig + CHECK_RESULT $? 0 0 "install texlive-serbian-lig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-serbian-lig + CHECK_RESULT $? 0 0 "remove texlive-serbian-lig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sesamanuel-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sesamanuel-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..21a332e04a95c3be40015e4ee7f8c08c73b211d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sesamanuel-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sesamanuel-doc | grep -v \.src | grep texlive-sesamanuel-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sesamanuel-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sesamanuel-doc + CHECK_RESULT $? 0 0 "install texlive-sesamanuel-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sesamanuel-doc + CHECK_RESULT $? 0 0 "remove texlive-sesamanuel-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sesamanuel.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sesamanuel.sh new file mode 100644 index 0000000000000000000000000000000000000000..476619fcad20a05b1b0087a6384dce9b8e91f6aa --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sesamanuel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sesamanuel | grep -v \.src | grep texlive-sesamanuel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sesamanuel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sesamanuel + CHECK_RESULT $? 0 0 "install texlive-sesamanuel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sesamanuel + CHECK_RESULT $? 0 0 "remove texlive-sesamanuel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sesstime.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sesstime.sh new file mode 100644 index 0000000000000000000000000000000000000000..63a3c71f330a64f5ec7688a8d0a519a2c47a84c6 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sesstime.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sesstime | grep -v \.src | grep texlive-sesstime + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sesstime" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sesstime + CHECK_RESULT $? 0 0 "install texlive-sesstime failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sesstime + CHECK_RESULT $? 0 0 "remove texlive-sesstime failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setdeck-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setdeck-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd9e1a4cdc4e96035a28ae5acb5697cb9b356e5c --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setdeck-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-setdeck-doc | grep -v \.src | grep texlive-setdeck-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-setdeck-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-setdeck-doc + CHECK_RESULT $? 0 0 "install texlive-setdeck-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-setdeck-doc + CHECK_RESULT $? 0 0 "remove texlive-setdeck-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setdeck.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setdeck.sh new file mode 100644 index 0000000000000000000000000000000000000000..78d6a5db3e02257138f54f3bc359fb24a348ad7b --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setdeck.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-setdeck | grep -v \.src | grep texlive-setdeck + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-setdeck" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-setdeck + CHECK_RESULT $? 0 0 "install texlive-setdeck failed" + SLEEP_WAIT 1 + dnf remove -y texlive-setdeck + CHECK_RESULT $? 0 0 "remove texlive-setdeck failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setspace-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setspace-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7467bd3a2f5f448f74afc494930fefcf567b6ba8 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setspace-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-setspace-doc | grep -v \.src | grep texlive-setspace-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-setspace-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-setspace-doc + CHECK_RESULT $? 0 0 "install texlive-setspace-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-setspace-doc + CHECK_RESULT $? 0 0 "remove texlive-setspace-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setspace.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setspace.sh new file mode 100644 index 0000000000000000000000000000000000000000..45c6a88f4af09f8451bb8ce163952d21efdf5c1f --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-setspace.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-setspace | grep -v \.src | grep texlive-setspace + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-setspace" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-setspace + CHECK_RESULT $? 0 0 "install texlive-setspace failed" + SLEEP_WAIT 1 + dnf remove -y texlive-setspace + CHECK_RESULT $? 0 0 "remove texlive-setspace failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesis-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0772d6ef4b0cc5f960ea7692815e0d02da07b314 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seuthesis-doc | grep -v \.src | grep texlive-seuthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seuthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seuthesis-doc + CHECK_RESULT $? 0 0 "install texlive-seuthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seuthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-seuthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesis.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f19aa813c6927124c0c1b0311387068a2813847 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seuthesis | grep -v \.src | grep texlive-seuthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seuthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seuthesis + CHECK_RESULT $? 0 0 "install texlive-seuthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seuthesis + CHECK_RESULT $? 0 0 "remove texlive-seuthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesix-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesix-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4c734f4cc3bf02b0e6b69b51fdd5c382edf2a0e --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesix-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seuthesix-doc | grep -v \.src | grep texlive-seuthesix-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seuthesix-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seuthesix-doc + CHECK_RESULT $? 0 0 "install texlive-seuthesix-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seuthesix-doc + CHECK_RESULT $? 0 0 "remove texlive-seuthesix-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesix.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesix.sh new file mode 100644 index 0000000000000000000000000000000000000000..65e40817e44edfad61576a2f07e0de71779a880a --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-seuthesix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-seuthesix | grep -v \.src | grep texlive-seuthesix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-seuthesix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-seuthesix + CHECK_RESULT $? 0 0 "install texlive-seuthesix failed" + SLEEP_WAIT 1 + dnf remove -y texlive-seuthesix + CHECK_RESULT $? 0 0 "remove texlive-seuthesix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sexam.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sexam.sh new file mode 100644 index 0000000000000000000000000000000000000000..d225fecabea713125686c23a54c03c383ecb94e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sexam.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sexam | grep -v \.src | grep texlive-sexam + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sexam" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sexam + CHECK_RESULT $? 0 0 "install texlive-sexam failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sexam + CHECK_RESULT $? 0 0 "remove texlive-sexam failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sf298-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sf298-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f58c6c7be8930e30ca5a7ab1fab80d7268ae2fb --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sf298-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sf298-doc | grep -v \.src | grep texlive-sf298-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sf298-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sf298-doc + CHECK_RESULT $? 0 0 "install texlive-sf298-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sf298-doc + CHECK_RESULT $? 0 0 "remove texlive-sf298-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sf298.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sf298.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d74dd62262d3649dc79146a814edf94b1aa69b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sf298.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sf298 | grep -v \.src | grep texlive-sf298 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sf298" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sf298 + CHECK_RESULT $? 0 0 "install texlive-sf298 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sf298 + CHECK_RESULT $? 0 0 "remove texlive-sf298 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sffms-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sffms-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..589126ffcb9a526842d254c66ba8b6eaedeeb4dd --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sffms-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sffms-doc | grep -v \.src | grep texlive-sffms-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sffms-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sffms-doc + CHECK_RESULT $? 0 0 "install texlive-sffms-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sffms-doc + CHECK_RESULT $? 0 0 "remove texlive-sffms-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sffms.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sffms.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f222d65aa984b74904216d90cba8f8995f56526 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sffms.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sffms | grep -v \.src | grep texlive-sffms + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sffms" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sffms + CHECK_RESULT $? 0 0 "install texlive-sffms failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sffms + CHECK_RESULT $? 0 0 "remove texlive-sffms failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sfg-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sfg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ded6340e22e8d0a22acd776ebb115b8b325dfcb5 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sfg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sfg-doc | grep -v \.src | grep texlive-sfg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sfg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sfg-doc + CHECK_RESULT $? 0 0 "install texlive-sfg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sfg-doc + CHECK_RESULT $? 0 0 "remove texlive-sfg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sfg.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sfg.sh new file mode 100644 index 0000000000000000000000000000000000000000..518600cbfb3b1fdf976e9d19aec7727fce465a7f --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sfg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sfg | grep -v \.src | grep texlive-sfg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sfg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sfg + CHECK_RESULT $? 0 0 "install texlive-sfg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sfg + CHECK_RESULT $? 0 0 "remove texlive-sfg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sfmath.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sfmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1e5add549759b26ca90590cffe16295d9ac3494 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sfmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sfmath | grep -v \.src | grep texlive-sfmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sfmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sfmath + CHECK_RESULT $? 0 0 "install texlive-sfmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sfmath + CHECK_RESULT $? 0 0 "remove texlive-sfmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sgame-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sgame-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..171711d1b00a2e5b47bbc244232021f244e5ea64 --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sgame-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sgame-doc | grep -v \.src | grep texlive-sgame-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sgame-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sgame-doc + CHECK_RESULT $? 0 0 "install texlive-sgame-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sgame-doc + CHECK_RESULT $? 0 0 "remove texlive-sgame-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sgame.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sgame.sh new file mode 100644 index 0000000000000000000000000000000000000000..03e42fae0a4e70cb6dc1bbde2228452ab7e122fd --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-sgame.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sgame | grep -v \.src | grep texlive-sgame + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sgame" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sgame + CHECK_RESULT $? 0 0 "install texlive-sgame failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sgame + CHECK_RESULT $? 0 0 "remove texlive-sgame failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-siunitx-doc.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-siunitx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad22ee48750e684e396bd9db24db249aad8fbc6b --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-siunitx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-siunitx-doc | grep -v \.src | grep texlive-siunitx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-siunitx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-siunitx-doc + CHECK_RESULT $? 0 0 "install texlive-siunitx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-siunitx-doc + CHECK_RESULT $? 0 0 "remove texlive-siunitx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-siunitx.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-siunitx.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9cb0a4b1df937d00255d8b8c36a458ba0df45de --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-siunitx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-siunitx | grep -v \.src | grep texlive-siunitx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-siunitx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-siunitx + CHECK_RESULT $? 0 0 "install texlive-siunitx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-siunitx + CHECK_RESULT $? 0 0 "remove texlive-siunitx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-split-u.sh b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-split-u.sh new file mode 100644 index 0000000000000000000000000000000000000000..c70a1ae6ae8174b90c098a8bbc5e5db06bd5ea2e --- /dev/null +++ b/testcases/cli-test/texlive-split-u/oe_test_texlive-split-u_install_and_remove_texlive-split-u.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-u +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-u | grep -v \.src | grep texlive-split-u + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-u" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-u + CHECK_RESULT $? 0 0 "install texlive-split-u failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-u + CHECK_RESULT $? 0 0 "remove texlive-split-u failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shade-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shade-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d57a03318dfe8d94363e9bddc2fc1c7db2edd8b5 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shade-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shade-doc | grep -v \.src | grep texlive-shade-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shade-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shade-doc + CHECK_RESULT $? 0 0 "install texlive-shade-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shade-doc + CHECK_RESULT $? 0 0 "remove texlive-shade-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shade.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shade.sh new file mode 100644 index 0000000000000000000000000000000000000000..e17004229fc621f359bed0f85bbcfc407681e81a --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shade.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shade | grep -v \.src | grep texlive-shade + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shade" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shade + CHECK_RESULT $? 0 0 "install texlive-shade failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shade + CHECK_RESULT $? 0 0 "remove texlive-shade failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadethm-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadethm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8caaf63ce9be267809acd52c88709c358833452 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadethm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shadethm-doc | grep -v \.src | grep texlive-shadethm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shadethm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shadethm-doc + CHECK_RESULT $? 0 0 "install texlive-shadethm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shadethm-doc + CHECK_RESULT $? 0 0 "remove texlive-shadethm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadethm.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadethm.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d74c4c6aee3d82b103fde404d8e293979a32c2d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadethm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shadethm | grep -v \.src | grep texlive-shadethm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shadethm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shadethm + CHECK_RESULT $? 0 0 "install texlive-shadethm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shadethm + CHECK_RESULT $? 0 0 "remove texlive-shadethm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadow-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadow-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b0214daea42057d4f7ab9c7988cc503a51c59dd --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadow-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shadow-doc | grep -v \.src | grep texlive-shadow-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shadow-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shadow-doc + CHECK_RESULT $? 0 0 "install texlive-shadow-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shadow-doc + CHECK_RESULT $? 0 0 "remove texlive-shadow-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadow.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadow.sh new file mode 100644 index 0000000000000000000000000000000000000000..715a5c3ebc0d13955116c4a30e4ef32c7a21b612 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shadow | grep -v \.src | grep texlive-shadow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shadow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shadow + CHECK_RESULT $? 0 0 "install texlive-shadow failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shadow + CHECK_RESULT $? 0 0 "remove texlive-shadow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadowtext-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadowtext-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..221cd7776d09a725791c3a9cb4d5a5bb4d02ef26 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadowtext-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shadowtext-doc | grep -v \.src | grep texlive-shadowtext-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shadowtext-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shadowtext-doc + CHECK_RESULT $? 0 0 "install texlive-shadowtext-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shadowtext-doc + CHECK_RESULT $? 0 0 "remove texlive-shadowtext-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadowtext.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadowtext.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6bd5447a1578a0fd86288db7d4edb584f635d63 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shadowtext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shadowtext | grep -v \.src | grep texlive-shadowtext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shadowtext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shadowtext + CHECK_RESULT $? 0 0 "install texlive-shadowtext failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shadowtext + CHECK_RESULT $? 0 0 "remove texlive-shadowtext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapepar-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapepar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f78bf2fca6865615c9fd292625b11c5a3a785b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapepar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shapepar-doc | grep -v \.src | grep texlive-shapepar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shapepar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shapepar-doc + CHECK_RESULT $? 0 0 "install texlive-shapepar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shapepar-doc + CHECK_RESULT $? 0 0 "remove texlive-shapepar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapepar.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapepar.sh new file mode 100644 index 0000000000000000000000000000000000000000..f65dfff8f06f3732e611d01e9656c3afe94e7ce9 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapepar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shapepar | grep -v \.src | grep texlive-shapepar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shapepar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shapepar + CHECK_RESULT $? 0 0 "install texlive-shapepar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shapepar + CHECK_RESULT $? 0 0 "remove texlive-shapepar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapes-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c678052bafb4ba248f4b76d28e9badb9a3ede22 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shapes-doc | grep -v \.src | grep texlive-shapes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shapes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shapes-doc + CHECK_RESULT $? 0 0 "install texlive-shapes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shapes-doc + CHECK_RESULT $? 0 0 "remove texlive-shapes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapes.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapes.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea2f31771c1f96cef5839273a1a173a9d8339dc4 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shapes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shapes | grep -v \.src | grep texlive-shapes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shapes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shapes + CHECK_RESULT $? 0 0 "install texlive-shapes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shapes + CHECK_RESULT $? 0 0 "remove texlive-shapes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shdoc-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shdoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..809f182554a4eea5242673b3a9370f27b902c6b0 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shdoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shdoc-doc | grep -v \.src | grep texlive-shdoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shdoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shdoc-doc + CHECK_RESULT $? 0 0 "install texlive-shdoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shdoc-doc + CHECK_RESULT $? 0 0 "remove texlive-shdoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shdoc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shdoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c363a77a19b55f6d7311a13303428de91891fa84 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shdoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shdoc | grep -v \.src | grep texlive-shdoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shdoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shdoc + CHECK_RESULT $? 0 0 "install texlive-shdoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shdoc + CHECK_RESULT $? 0 0 "remove texlive-shdoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shipunov-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shipunov-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d1467e3cd25acc775b8a3456c6260efd6b37a84 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shipunov-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shipunov-doc | grep -v \.src | grep texlive-shipunov-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shipunov-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shipunov-doc + CHECK_RESULT $? 0 0 "install texlive-shipunov-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shipunov-doc + CHECK_RESULT $? 0 0 "remove texlive-shipunov-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shipunov.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shipunov.sh new file mode 100644 index 0000000000000000000000000000000000000000..70a92241c770e831c5a8b1022803d99d17ce314f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shipunov.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shipunov | grep -v \.src | grep texlive-shipunov + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shipunov" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shipunov + CHECK_RESULT $? 0 0 "install texlive-shipunov failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shipunov + CHECK_RESULT $? 0 0 "remove texlive-shipunov failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shobhika.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shobhika.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d1abfc986eb14210ce7f3c62c31f05a0909f8f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shobhika.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shobhika | grep -v \.src | grep texlive-shobhika + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shobhika" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shobhika + CHECK_RESULT $? 0 0 "install texlive-shobhika failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shobhika + CHECK_RESULT $? 0 0 "remove texlive-shobhika failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-short-math-guide.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-short-math-guide.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f1fc39cb86d68d0e95c56e30286e13520722b83 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-short-math-guide.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-short-math-guide | grep -v \.src | grep texlive-short-math-guide + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-short-math-guide" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-short-math-guide + CHECK_RESULT $? 0 0 "install texlive-short-math-guide failed" + SLEEP_WAIT 1 + dnf remove -y texlive-short-math-guide + CHECK_RESULT $? 0 0 "remove texlive-short-math-guide failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shorttoc-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shorttoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..99a701363f831c10be46fd276ea68d0b5bd88ee2 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shorttoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shorttoc-doc | grep -v \.src | grep texlive-shorttoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shorttoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shorttoc-doc + CHECK_RESULT $? 0 0 "install texlive-shorttoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shorttoc-doc + CHECK_RESULT $? 0 0 "remove texlive-shorttoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shorttoc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shorttoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d430041e51846fbd00766af358ebc44c40bfc912 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shorttoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shorttoc | grep -v \.src | grep texlive-shorttoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shorttoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shorttoc + CHECK_RESULT $? 0 0 "install texlive-shorttoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shorttoc + CHECK_RESULT $? 0 0 "remove texlive-shorttoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-show2e-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-show2e-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e124b8220141b43a9cc210b891883978adc8048f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-show2e-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-show2e-doc | grep -v \.src | grep texlive-show2e-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-show2e-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-show2e-doc + CHECK_RESULT $? 0 0 "install texlive-show2e-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-show2e-doc + CHECK_RESULT $? 0 0 "remove texlive-show2e-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-show2e.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-show2e.sh new file mode 100644 index 0000000000000000000000000000000000000000..e677f760f55604bc79d991d6357f26a3d94e6c01 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-show2e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-show2e | grep -v \.src | grep texlive-show2e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-show2e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-show2e + CHECK_RESULT $? 0 0 "install texlive-show2e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-show2e + CHECK_RESULT $? 0 0 "remove texlive-show2e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showcharinbox-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showcharinbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8decb0a2bf98b89cbd41cd14a8888a577a804520 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showcharinbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showcharinbox-doc | grep -v \.src | grep texlive-showcharinbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showcharinbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showcharinbox-doc + CHECK_RESULT $? 0 0 "install texlive-showcharinbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showcharinbox-doc + CHECK_RESULT $? 0 0 "remove texlive-showcharinbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showcharinbox.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showcharinbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..56688eda5f7752b23afc7095dd83ab1120721c88 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showcharinbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showcharinbox | grep -v \.src | grep texlive-showcharinbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showcharinbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showcharinbox + CHECK_RESULT $? 0 0 "install texlive-showcharinbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showcharinbox + CHECK_RESULT $? 0 0 "remove texlive-showcharinbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showdim-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showdim-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f7f5d73529d12e434b1e58da8ae011a8cebe660 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showdim-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showdim-doc | grep -v \.src | grep texlive-showdim-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showdim-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showdim-doc + CHECK_RESULT $? 0 0 "install texlive-showdim-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showdim-doc + CHECK_RESULT $? 0 0 "remove texlive-showdim-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showdim.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showdim.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca0a663e83ab5f9c0f4729664e65aab0ab888b8b --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showdim.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showdim | grep -v \.src | grep texlive-showdim + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showdim" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showdim + CHECK_RESULT $? 0 0 "install texlive-showdim failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showdim + CHECK_RESULT $? 0 0 "remove texlive-showdim failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showexpl-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showexpl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9bd1643add832a7039f40f6f3f73f4308e7927d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showexpl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showexpl-doc | grep -v \.src | grep texlive-showexpl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showexpl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showexpl-doc + CHECK_RESULT $? 0 0 "install texlive-showexpl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showexpl-doc + CHECK_RESULT $? 0 0 "remove texlive-showexpl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showexpl.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showexpl.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ebbff471da878ffcb0b024f698a83ee60f4197d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showexpl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showexpl | grep -v \.src | grep texlive-showexpl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showexpl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showexpl + CHECK_RESULT $? 0 0 "install texlive-showexpl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showexpl + CHECK_RESULT $? 0 0 "remove texlive-showexpl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showhyphens-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showhyphens-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d110b30c77dabd22cadb8a3e4da972d5a261e7d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showhyphens-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showhyphens-doc | grep -v \.src | grep texlive-showhyphens-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showhyphens-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showhyphens-doc + CHECK_RESULT $? 0 0 "install texlive-showhyphens-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showhyphens-doc + CHECK_RESULT $? 0 0 "remove texlive-showhyphens-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showhyphens.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showhyphens.sh new file mode 100644 index 0000000000000000000000000000000000000000..517daa5ef3865583b0a1f4ac8e71ead9df78d1df --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showhyphens.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showhyphens | grep -v \.src | grep texlive-showhyphens + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showhyphens" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showhyphens + CHECK_RESULT $? 0 0 "install texlive-showhyphens failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showhyphens + CHECK_RESULT $? 0 0 "remove texlive-showhyphens failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showlabels-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showlabels-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8b9880c65e0e1bda7a16c98596145ae35c1a64f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showlabels-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showlabels-doc | grep -v \.src | grep texlive-showlabels-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showlabels-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showlabels-doc + CHECK_RESULT $? 0 0 "install texlive-showlabels-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showlabels-doc + CHECK_RESULT $? 0 0 "remove texlive-showlabels-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showlabels.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showlabels.sh new file mode 100644 index 0000000000000000000000000000000000000000..9927f14b1f6a74cb64a6ee3fe1ee3c3e863fd575 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showlabels.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showlabels | grep -v \.src | grep texlive-showlabels + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showlabels" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showlabels + CHECK_RESULT $? 0 0 "install texlive-showlabels failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showlabels + CHECK_RESULT $? 0 0 "remove texlive-showlabels failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showtags-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showtags-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..25836e1baac440a604e454f195d14b183314ae12 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showtags-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showtags-doc | grep -v \.src | grep texlive-showtags-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showtags-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showtags-doc + CHECK_RESULT $? 0 0 "install texlive-showtags-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showtags-doc + CHECK_RESULT $? 0 0 "remove texlive-showtags-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showtags.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showtags.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6c7d266f3897bcc22bf80908ddfa4c75bb442c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-showtags.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-showtags | grep -v \.src | grep texlive-showtags + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-showtags" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-showtags + CHECK_RESULT $? 0 0 "install texlive-showtags failed" + SLEEP_WAIT 1 + dnf remove -y texlive-showtags + CHECK_RESULT $? 0 0 "remove texlive-showtags failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shuffle-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shuffle-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5bde78d500e0546182a749d66f62aa835d0f9100 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shuffle-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shuffle-doc | grep -v \.src | grep texlive-shuffle-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shuffle-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shuffle-doc + CHECK_RESULT $? 0 0 "install texlive-shuffle-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shuffle-doc + CHECK_RESULT $? 0 0 "remove texlive-shuffle-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shuffle.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shuffle.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8f0dcb31383e9e15d941ceb55a949f3cce97672 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-shuffle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shuffle | grep -v \.src | grep texlive-shuffle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shuffle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shuffle + CHECK_RESULT $? 0 0 "install texlive-shuffle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shuffle + CHECK_RESULT $? 0 0 "remove texlive-shuffle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidecap-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidecap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5f00bf2c0f8a3863a2ed0eb8d68b003c9061810 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidecap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sidecap-doc | grep -v \.src | grep texlive-sidecap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sidecap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sidecap-doc + CHECK_RESULT $? 0 0 "install texlive-sidecap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sidecap-doc + CHECK_RESULT $? 0 0 "remove texlive-sidecap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidecap.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidecap.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e72e6c56629f0f7a42fc8dfb09a00515ea3085b --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidecap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sidecap | grep -v \.src | grep texlive-sidecap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sidecap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sidecap + CHECK_RESULT $? 0 0 "install texlive-sidecap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sidecap + CHECK_RESULT $? 0 0 "remove texlive-sidecap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidenotes-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidenotes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..22470172e541c2392510ffb00f2af2aad8866e89 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidenotes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sidenotes-doc | grep -v \.src | grep texlive-sidenotes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sidenotes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sidenotes-doc + CHECK_RESULT $? 0 0 "install texlive-sidenotes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sidenotes-doc + CHECK_RESULT $? 0 0 "remove texlive-sidenotes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidenotes.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidenotes.sh new file mode 100644 index 0000000000000000000000000000000000000000..abeca564efb7614a2ef3a0b6334803950a783cbe --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sidenotes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sidenotes | grep -v \.src | grep texlive-sidenotes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sidenotes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sidenotes + CHECK_RESULT $? 0 0 "install texlive-sidenotes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sidenotes + CHECK_RESULT $? 0 0 "remove texlive-sidenotes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sides-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sides-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8403b9b1c429a9c5ede22163a3a6723e8f8d18b0 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sides-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sides-doc | grep -v \.src | grep texlive-sides-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sides-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sides-doc + CHECK_RESULT $? 0 0 "install texlive-sides-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sides-doc + CHECK_RESULT $? 0 0 "remove texlive-sides-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sides.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sides.sh new file mode 100644 index 0000000000000000000000000000000000000000..be7f193c307257e3a81e6655676c161734024bc8 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sides.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sides | grep -v \.src | grep texlive-sides + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sides" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sides + CHECK_RESULT $? 0 0 "install texlive-sides failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sides + CHECK_RESULT $? 0 0 "remove texlive-sides failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-signchart-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-signchart-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf2df07d995e13534231aaaf0f8898564e7ca591 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-signchart-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-signchart-doc | grep -v \.src | grep texlive-signchart-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-signchart-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-signchart-doc + CHECK_RESULT $? 0 0 "install texlive-signchart-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-signchart-doc + CHECK_RESULT $? 0 0 "remove texlive-signchart-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-signchart.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-signchart.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5a3c5c55a277ce6e57e3c86c483d248d801ac7a --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-signchart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-signchart | grep -v \.src | grep texlive-signchart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-signchart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-signchart + CHECK_RESULT $? 0 0 "install texlive-signchart failed" + SLEEP_WAIT 1 + dnf remove -y texlive-signchart + CHECK_RESULT $? 0 0 "remove texlive-signchart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-silence-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-silence-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac6fd394894c31b3f3a74fb705b70a790c6deb0d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-silence-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-silence-doc | grep -v \.src | grep texlive-silence-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-silence-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-silence-doc + CHECK_RESULT $? 0 0 "install texlive-silence-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-silence-doc + CHECK_RESULT $? 0 0 "remove texlive-silence-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-silence.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-silence.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c7efee1b8f0d95e0128577bb1b27388297046da --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-silence.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-silence | grep -v \.src | grep texlive-silence + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-silence" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-silence + CHECK_RESULT $? 0 0 "install texlive-silence failed" + SLEEP_WAIT 1 + dnf remove -y texlive-silence + CHECK_RESULT $? 0 0 "remove texlive-silence failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simple-resume-cv.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simple-resume-cv.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9bfaf3017dd3ce8c20fb4a6088e8132c5acba98 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simple-resume-cv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simple-resume-cv | grep -v \.src | grep texlive-simple-resume-cv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simple-resume-cv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simple-resume-cv + CHECK_RESULT $? 0 0 "install texlive-simple-resume-cv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simple-resume-cv + CHECK_RESULT $? 0 0 "remove texlive-simple-resume-cv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simple-thesis-dissertation.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simple-thesis-dissertation.sh new file mode 100644 index 0000000000000000000000000000000000000000..3506b23053294b7370c6bf65845f1a43fb913b31 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simple-thesis-dissertation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simple-thesis-dissertation | grep -v \.src | grep texlive-simple-thesis-dissertation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simple-thesis-dissertation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simple-thesis-dissertation + CHECK_RESULT $? 0 0 "install texlive-simple-thesis-dissertation failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simple-thesis-dissertation + CHECK_RESULT $? 0 0 "remove texlive-simple-thesis-dissertation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecd-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..12912729e8733289ec37b5f6ab9c231f2a7d1b60 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simplecd-doc | grep -v \.src | grep texlive-simplecd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simplecd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simplecd-doc + CHECK_RESULT $? 0 0 "install texlive-simplecd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simplecd-doc + CHECK_RESULT $? 0 0 "remove texlive-simplecd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecd.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecd.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6a4626a4a935c7e5959bb272a9c48f3762ebcb4 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simplecd | grep -v \.src | grep texlive-simplecd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simplecd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simplecd + CHECK_RESULT $? 0 0 "install texlive-simplecd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simplecd + CHECK_RESULT $? 0 0 "remove texlive-simplecd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecv-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf4f8c984659e986f682cccdf5dd313955a73099 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simplecv-doc | grep -v \.src | grep texlive-simplecv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simplecv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simplecv-doc + CHECK_RESULT $? 0 0 "install texlive-simplecv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simplecv-doc + CHECK_RESULT $? 0 0 "remove texlive-simplecv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecv.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecv.sh new file mode 100644 index 0000000000000000000000000000000000000000..be01674ad435890937407d62308ba2bf8ef00f60 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplecv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simplecv | grep -v \.src | grep texlive-simplecv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simplecv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simplecv + CHECK_RESULT $? 0 0 "install texlive-simplecv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simplecv + CHECK_RESULT $? 0 0 "remove texlive-simplecv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simpleinvoice.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simpleinvoice.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc7c2da210f9c7632af42c8d9c5d8de0e885b62e --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simpleinvoice.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simpleinvoice | grep -v \.src | grep texlive-simpleinvoice + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simpleinvoice" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simpleinvoice + CHECK_RESULT $? 0 0 "install texlive-simpleinvoice failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simpleinvoice + CHECK_RESULT $? 0 0 "remove texlive-simpleinvoice failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplekv.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplekv.sh new file mode 100644 index 0000000000000000000000000000000000000000..0911d43d307e1eed32280e78943b599e9356ba47 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplekv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simplekv | grep -v \.src | grep texlive-simplekv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simplekv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simplekv + CHECK_RESULT $? 0 0 "install texlive-simplekv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simplekv + CHECK_RESULT $? 0 0 "remove texlive-simplekv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simpler-wick-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simpler-wick-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa5e3e60558d31330ea02e8e16429b76f000abba --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simpler-wick-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simpler-wick-doc | grep -v \.src | grep texlive-simpler-wick-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simpler-wick-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simpler-wick-doc + CHECK_RESULT $? 0 0 "install texlive-simpler-wick-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simpler-wick-doc + CHECK_RESULT $? 0 0 "remove texlive-simpler-wick-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simpler-wick.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simpler-wick.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e74133a2c2c8819e922d61d5e744d197ad77ca4 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simpler-wick.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simpler-wick | grep -v \.src | grep texlive-simpler-wick + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simpler-wick" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simpler-wick + CHECK_RESULT $? 0 0 "install texlive-simpler-wick failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simpler-wick + CHECK_RESULT $? 0 0 "remove texlive-simpler-wick failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplewick-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplewick-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9eb3fe39489791756fa36ce61e7fdb2874a54f54 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplewick-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simplewick-doc | grep -v \.src | grep texlive-simplewick-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simplewick-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simplewick-doc + CHECK_RESULT $? 0 0 "install texlive-simplewick-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simplewick-doc + CHECK_RESULT $? 0 0 "remove texlive-simplewick-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplewick.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplewick.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c17029accae1e6bbffc351e66d3c1781c7020e1 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplewick.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simplewick | grep -v \.src | grep texlive-simplewick + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simplewick" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simplewick + CHECK_RESULT $? 0 0 "install texlive-simplewick failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simplewick + CHECK_RESULT $? 0 0 "remove texlive-simplewick failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplified-latex-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplified-latex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..326cdb095e5072621ec0599d7290bfa3a43f367d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simplified-latex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simplified-latex-doc | grep -v \.src | grep texlive-simplified-latex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simplified-latex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simplified-latex-doc + CHECK_RESULT $? 0 0 "install texlive-simplified-latex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simplified-latex-doc + CHECK_RESULT $? 0 0 "remove texlive-simplified-latex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simurgh-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simurgh-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b93b29e923ec9715144ce0dbbc37191f09b993c --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simurgh-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simurgh-doc | grep -v \.src | grep texlive-simurgh-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simurgh-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simurgh-doc + CHECK_RESULT $? 0 0 "install texlive-simurgh-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simurgh-doc + CHECK_RESULT $? 0 0 "remove texlive-simurgh-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simurgh.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simurgh.sh new file mode 100644 index 0000000000000000000000000000000000000000..47d878f37f488d558a8d3052deeefc69d5e2e129 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-simurgh.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simurgh | grep -v \.src | grep texlive-simurgh + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simurgh" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simurgh + CHECK_RESULT $? 0 0 "install texlive-simurgh failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simurgh + CHECK_RESULT $? 0 0 "remove texlive-simurgh failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sitem-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sitem-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb4dbbd63a05b337404613af17a65696a09e314c --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sitem-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sitem-doc | grep -v \.src | grep texlive-sitem-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sitem-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sitem-doc + CHECK_RESULT $? 0 0 "install texlive-sitem-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sitem-doc + CHECK_RESULT $? 0 0 "remove texlive-sitem-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sitem.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sitem.sh new file mode 100644 index 0000000000000000000000000000000000000000..09f8641485e7aa19620fe8a5e3ac5d4e49dafe63 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sitem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sitem | grep -v \.src | grep texlive-sitem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sitem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sitem + CHECK_RESULT $? 0 0 "install texlive-sitem failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sitem + CHECK_RESULT $? 0 0 "remove texlive-sitem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-siunitx-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-siunitx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..144f093347291c6fd30494d48356fb368339ab49 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-siunitx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-siunitx-doc | grep -v \.src | grep texlive-siunitx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-siunitx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-siunitx-doc + CHECK_RESULT $? 0 0 "install texlive-siunitx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-siunitx-doc + CHECK_RESULT $? 0 0 "remove texlive-siunitx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-siunitx.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-siunitx.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3b2527176f563abfd33dde622dc542f797e05a4 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-siunitx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-siunitx | grep -v \.src | grep texlive-siunitx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-siunitx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-siunitx + CHECK_RESULT $? 0 0 "install texlive-siunitx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-siunitx + CHECK_RESULT $? 0 0 "remove texlive-siunitx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skak-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skak-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ea390d7fea9aea097a8e434af7dcc8d56219a35 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skak-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skak-doc | grep -v \.src | grep texlive-skak-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skak-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skak-doc + CHECK_RESULT $? 0 0 "install texlive-skak-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skak-doc + CHECK_RESULT $? 0 0 "remove texlive-skak-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skak.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skak.sh new file mode 100644 index 0000000000000000000000000000000000000000..8789896554c387de70f93379e235bd84d727efae --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skak.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skak | grep -v \.src | grep texlive-skak + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skak" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skak + CHECK_RESULT $? 0 0 "install texlive-skak failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skak + CHECK_RESULT $? 0 0 "remove texlive-skak failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skaknew-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skaknew-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a1415b12cc508f04dd47776d132ad863833e184f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skaknew-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skaknew-doc | grep -v \.src | grep texlive-skaknew-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skaknew-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skaknew-doc + CHECK_RESULT $? 0 0 "install texlive-skaknew-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skaknew-doc + CHECK_RESULT $? 0 0 "remove texlive-skaknew-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skaknew.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skaknew.sh new file mode 100644 index 0000000000000000000000000000000000000000..1acaa4dfe80c07782245b21d0bb195d5159292dc --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skaknew.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skaknew | grep -v \.src | grep texlive-skaknew + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skaknew" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skaknew + CHECK_RESULT $? 0 0 "install texlive-skaknew failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skaknew + CHECK_RESULT $? 0 0 "remove texlive-skaknew failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skb-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..48f44c0eb489b4e3f93c361fa4b66a7b7b476cb6 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skb-doc | grep -v \.src | grep texlive-skb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skb-doc + CHECK_RESULT $? 0 0 "install texlive-skb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skb-doc + CHECK_RESULT $? 0 0 "remove texlive-skb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skb.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skb.sh new file mode 100644 index 0000000000000000000000000000000000000000..27da10968758182606b5f637b38a389a4b0346ac --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skb | grep -v \.src | grep texlive-skb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skb + CHECK_RESULT $? 0 0 "install texlive-skb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skb + CHECK_RESULT $? 0 0 "remove texlive-skb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skdoc-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skdoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e80a21172dd1c7af2d54a1c203c0d06858be9ab7 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skdoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skdoc-doc | grep -v \.src | grep texlive-skdoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skdoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skdoc-doc + CHECK_RESULT $? 0 0 "install texlive-skdoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skdoc-doc + CHECK_RESULT $? 0 0 "remove texlive-skdoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skdoc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skdoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4fd90fd96bc93ce3a1d3f76ebbc7ef95fbc56587 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skdoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skdoc | grep -v \.src | grep texlive-skdoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skdoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skdoc + CHECK_RESULT $? 0 0 "install texlive-skdoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skdoc + CHECK_RESULT $? 0 0 "remove texlive-skdoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeycommand-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeycommand-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6ee8ccc65a001f3a5ce17ee6ca01701206e9ef1 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeycommand-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skeycommand-doc | grep -v \.src | grep texlive-skeycommand-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skeycommand-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skeycommand-doc + CHECK_RESULT $? 0 0 "install texlive-skeycommand-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skeycommand-doc + CHECK_RESULT $? 0 0 "remove texlive-skeycommand-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeycommand.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeycommand.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b4c3ec124f688ed9ca8ad80df325ca7b357f14e --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeycommand.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skeycommand | grep -v \.src | grep texlive-skeycommand + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skeycommand" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skeycommand + CHECK_RESULT $? 0 0 "install texlive-skeycommand failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skeycommand + CHECK_RESULT $? 0 0 "remove texlive-skeycommand failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeyval-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeyval-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..78567a37203c43769c64900e73a7f56d3ce3b696 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeyval-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skeyval-doc | grep -v \.src | grep texlive-skeyval-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skeyval-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skeyval-doc + CHECK_RESULT $? 0 0 "install texlive-skeyval-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skeyval-doc + CHECK_RESULT $? 0 0 "remove texlive-skeyval-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeyval.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeyval.sh new file mode 100644 index 0000000000000000000000000000000000000000..d853375746ef19d844fcecaee254d550b29c4b46 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skeyval.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skeyval | grep -v \.src | grep texlive-skeyval + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skeyval" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skeyval + CHECK_RESULT $? 0 0 "install texlive-skeyval failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skeyval + CHECK_RESULT $? 0 0 "remove texlive-skeyval failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skmath-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skmath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..deb904778a71ef1b48605e11881fa6f3b875249a --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skmath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skmath-doc | grep -v \.src | grep texlive-skmath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skmath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skmath-doc + CHECK_RESULT $? 0 0 "install texlive-skmath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skmath-doc + CHECK_RESULT $? 0 0 "remove texlive-skmath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skmath.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..1746632b54e858f65c1f60bec6a946f82d95894d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skmath | grep -v \.src | grep texlive-skmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skmath + CHECK_RESULT $? 0 0 "install texlive-skmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skmath + CHECK_RESULT $? 0 0 "remove texlive-skmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skrapport-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skrapport-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3fa462402ca603fe0bd1ecb4d9ffc73971d1296 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skrapport-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skrapport-doc | grep -v \.src | grep texlive-skrapport-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skrapport-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skrapport-doc + CHECK_RESULT $? 0 0 "install texlive-skrapport-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skrapport-doc + CHECK_RESULT $? 0 0 "remove texlive-skrapport-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skrapport.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skrapport.sh new file mode 100644 index 0000000000000000000000000000000000000000..7fd3c2ffedbb1b11d96272cdc1c91d8ad5f12fa2 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skrapport.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skrapport | grep -v \.src | grep texlive-skrapport + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skrapport" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skrapport + CHECK_RESULT $? 0 0 "install texlive-skrapport failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skrapport + CHECK_RESULT $? 0 0 "remove texlive-skrapport failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skull.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skull.sh new file mode 100644 index 0000000000000000000000000000000000000000..90a11ab2956c60d48a7dba4c30b7c61e5aef833d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-skull.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skull | grep -v \.src | grep texlive-skull + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skull" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skull + CHECK_RESULT $? 0 0 "install texlive-skull failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skull + CHECK_RESULT $? 0 0 "remove texlive-skull failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slantsc-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slantsc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1322d0ae63048d1f1b2f90427620d3d2b84ac067 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slantsc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-slantsc-doc | grep -v \.src | grep texlive-slantsc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-slantsc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-slantsc-doc + CHECK_RESULT $? 0 0 "install texlive-slantsc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-slantsc-doc + CHECK_RESULT $? 0 0 "remove texlive-slantsc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slantsc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slantsc.sh new file mode 100644 index 0000000000000000000000000000000000000000..909d7651608a7f7a9fa93835147f66cab34c9835 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slantsc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-slantsc | grep -v \.src | grep texlive-slantsc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-slantsc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-slantsc + CHECK_RESULT $? 0 0 "install texlive-slantsc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-slantsc + CHECK_RESULT $? 0 0 "remove texlive-slantsc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slideshow-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slideshow-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e1be183271d4b7861603eee92e3d86bcace06fb --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slideshow-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-slideshow-doc | grep -v \.src | grep texlive-slideshow-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-slideshow-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-slideshow-doc + CHECK_RESULT $? 0 0 "install texlive-slideshow-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-slideshow-doc + CHECK_RESULT $? 0 0 "remove texlive-slideshow-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slideshow.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slideshow.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a737b8fe1d2254a7ff38f33d2c98472d02c0d22 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-slideshow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-slideshow | grep -v \.src | grep texlive-slideshow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-slideshow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-slideshow + CHECK_RESULT $? 0 0 "install texlive-slideshow failed" + SLEEP_WAIT 1 + dnf remove -y texlive-slideshow + CHECK_RESULT $? 0 0 "remove texlive-slideshow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smalltableof-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smalltableof-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..22fb6968fe62876d9e7e52357c97ed54959f758d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smalltableof-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-smalltableof-doc | grep -v \.src | grep texlive-smalltableof-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-smalltableof-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-smalltableof-doc + CHECK_RESULT $? 0 0 "install texlive-smalltableof-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-smalltableof-doc + CHECK_RESULT $? 0 0 "remove texlive-smalltableof-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smalltableof.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smalltableof.sh new file mode 100644 index 0000000000000000000000000000000000000000..099431de38b9e30dc21d106bcf169953e3516450 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smalltableof.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-smalltableof | grep -v \.src | grep texlive-smalltableof + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-smalltableof" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-smalltableof + CHECK_RESULT $? 0 0 "install texlive-smalltableof failed" + SLEEP_WAIT 1 + dnf remove -y texlive-smalltableof + CHECK_RESULT $? 0 0 "remove texlive-smalltableof failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartdiagram-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartdiagram-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cce2f2a683cbd2c7d09d776ea2ec2b21440af3bc --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartdiagram-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-smartdiagram-doc | grep -v \.src | grep texlive-smartdiagram-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-smartdiagram-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-smartdiagram-doc + CHECK_RESULT $? 0 0 "install texlive-smartdiagram-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-smartdiagram-doc + CHECK_RESULT $? 0 0 "remove texlive-smartdiagram-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartdiagram.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartdiagram.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a933cd3aa33055c358b769a0d7246c055e265d0 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartdiagram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-smartdiagram | grep -v \.src | grep texlive-smartdiagram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-smartdiagram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-smartdiagram + CHECK_RESULT $? 0 0 "install texlive-smartdiagram failed" + SLEEP_WAIT 1 + dnf remove -y texlive-smartdiagram + CHECK_RESULT $? 0 0 "remove texlive-smartdiagram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartref-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..04fa356361e87e1aa760f8a56ae7a739b3ea5188 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-smartref-doc | grep -v \.src | grep texlive-smartref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-smartref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-smartref-doc + CHECK_RESULT $? 0 0 "install texlive-smartref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-smartref-doc + CHECK_RESULT $? 0 0 "remove texlive-smartref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartref.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartref.sh new file mode 100644 index 0000000000000000000000000000000000000000..030de919ebc63fc05950166871810314550c322e --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-smartref | grep -v \.src | grep texlive-smartref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-smartref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-smartref + CHECK_RESULT $? 0 0 "install texlive-smartref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-smartref + CHECK_RESULT $? 0 0 "remove texlive-smartref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartunits-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartunits-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa4cfbc65ee7215095929fdf4fb89cc6987225d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartunits-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-smartunits-doc | grep -v \.src | grep texlive-smartunits-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-smartunits-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-smartunits-doc + CHECK_RESULT $? 0 0 "install texlive-smartunits-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-smartunits-doc + CHECK_RESULT $? 0 0 "remove texlive-smartunits-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartunits.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartunits.sh new file mode 100644 index 0000000000000000000000000000000000000000..46bb52041fadac47479c00cc203c5bcb7cde9592 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-smartunits.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-smartunits | grep -v \.src | grep texlive-smartunits + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-smartunits" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-smartunits + CHECK_RESULT $? 0 0 "install texlive-smartunits failed" + SLEEP_WAIT 1 + dnf remove -y texlive-smartunits + CHECK_RESULT $? 0 0 "remove texlive-smartunits failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snapshot-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snapshot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6c4d467b7080458fd71df17244fbd95325bbd99 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snapshot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-snapshot-doc | grep -v \.src | grep texlive-snapshot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-snapshot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-snapshot-doc + CHECK_RESULT $? 0 0 "install texlive-snapshot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-snapshot-doc + CHECK_RESULT $? 0 0 "remove texlive-snapshot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snapshot.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snapshot.sh new file mode 100644 index 0000000000000000000000000000000000000000..0eb197f643dadcaad054c130a85eab8d59937022 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snapshot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-snapshot | grep -v \.src | grep texlive-snapshot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-snapshot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-snapshot + CHECK_RESULT $? 0 0 "install texlive-snapshot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-snapshot + CHECK_RESULT $? 0 0 "remove texlive-snapshot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snotez-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snotez-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae7021a3072f43a6070e8fae14da974fe79a26a0 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snotez-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-snotez-doc | grep -v \.src | grep texlive-snotez-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-snotez-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-snotez-doc + CHECK_RESULT $? 0 0 "install texlive-snotez-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-snotez-doc + CHECK_RESULT $? 0 0 "remove texlive-snotez-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snotez.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snotez.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb2fb50b256e102e2de9d9d41e025458ee1d2247 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-snotez.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-snotez | grep -v \.src | grep texlive-snotez + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-snotez" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-snotez + CHECK_RESULT $? 0 0 "install texlive-snotez failed" + SLEEP_WAIT 1 + dnf remove -y texlive-snotez + CHECK_RESULT $? 0 0 "remove texlive-snotez failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songbook-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songbook-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dd6bdf35e5532032b4270a4ad490936938065ed --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songbook-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-songbook-doc | grep -v \.src | grep texlive-songbook-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-songbook-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-songbook-doc + CHECK_RESULT $? 0 0 "install texlive-songbook-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-songbook-doc + CHECK_RESULT $? 0 0 "remove texlive-songbook-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songbook.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songbook.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9431acd7f18e232a38675efe4dbc3c4114ab4ac --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songbook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-songbook | grep -v \.src | grep texlive-songbook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-songbook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-songbook + CHECK_RESULT $? 0 0 "install texlive-songbook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-songbook + CHECK_RESULT $? 0 0 "remove texlive-songbook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songs-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6166b6eaecc51d31cc5061eee54ebaad9ae42751 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-songs-doc | grep -v \.src | grep texlive-songs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-songs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-songs-doc + CHECK_RESULT $? 0 0 "install texlive-songs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-songs-doc + CHECK_RESULT $? 0 0 "remove texlive-songs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songs.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songs.sh new file mode 100644 index 0000000000000000000000000000000000000000..2eff7bdf899c0850e249eb3c3f4f56662cad8e6f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-songs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-songs | grep -v \.src | grep texlive-songs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-songs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-songs + CHECK_RESULT $? 0 0 "install texlive-songs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-songs + CHECK_RESULT $? 0 0 "remove texlive-songs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sort-by-letters-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sort-by-letters-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d28b6cefe27c748a145bf4f8144c0bedbb114cf5 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sort-by-letters-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sort-by-letters-doc | grep -v \.src | grep texlive-sort-by-letters-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sort-by-letters-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sort-by-letters-doc + CHECK_RESULT $? 0 0 "install texlive-sort-by-letters-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sort-by-letters-doc + CHECK_RESULT $? 0 0 "remove texlive-sort-by-letters-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sort-by-letters.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sort-by-letters.sh new file mode 100644 index 0000000000000000000000000000000000000000..7015ed827e05adb37b22a9040b8613ff60d88334 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sort-by-letters.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sort-by-letters | grep -v \.src | grep texlive-sort-by-letters + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sort-by-letters" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sort-by-letters + CHECK_RESULT $? 0 0 "install texlive-sort-by-letters failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sort-by-letters + CHECK_RESULT $? 0 0 "remove texlive-sort-by-letters failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soton-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soton-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..087c72fa6fb44b109ddf4e3bf672aa218c9b665c --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soton-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-soton-doc | grep -v \.src | grep texlive-soton-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-soton-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-soton-doc + CHECK_RESULT $? 0 0 "install texlive-soton-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-soton-doc + CHECK_RESULT $? 0 0 "remove texlive-soton-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soton.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soton.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2c96a3cdd79f3cb8fc1d9ad168a9e7e9c92d1c5 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soton.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-soton | grep -v \.src | grep texlive-soton + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-soton" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-soton + CHECK_RESULT $? 0 0 "install texlive-soton failed" + SLEEP_WAIT 1 + dnf remove -y texlive-soton + CHECK_RESULT $? 0 0 "remove texlive-soton failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soul-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soul-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc921a51a50b400fabfb2793d8148c986d516452 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soul-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-soul-doc | grep -v \.src | grep texlive-soul-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-soul-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-soul-doc + CHECK_RESULT $? 0 0 "install texlive-soul-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-soul-doc + CHECK_RESULT $? 0 0 "remove texlive-soul-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soul.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soul.sh new file mode 100644 index 0000000000000000000000000000000000000000..82264a187a1ae89ad88a1c18458a6cca0819899f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soul.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-soul | grep -v \.src | grep texlive-soul + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-soul" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-soul + CHECK_RESULT $? 0 0 "install texlive-soul failed" + SLEEP_WAIT 1 + dnf remove -y texlive-soul + CHECK_RESULT $? 0 0 "remove texlive-soul failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soup.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soup.sh new file mode 100644 index 0000000000000000000000000000000000000000..345bebca72d2219ec52c658a0976940835968242 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-soup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-soup | grep -v \.src | grep texlive-soup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-soup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-soup + CHECK_RESULT $? 0 0 "install texlive-soup failed" + SLEEP_WAIT 1 + dnf remove -y texlive-soup + CHECK_RESULT $? 0 0 "remove texlive-soup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcecodepro-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcecodepro-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f74a3186880f8dfe0d86aa7076639b49f3a1110 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcecodepro-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sourcecodepro-doc | grep -v \.src | grep texlive-sourcecodepro-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sourcecodepro-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sourcecodepro-doc + CHECK_RESULT $? 0 0 "install texlive-sourcecodepro-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sourcecodepro-doc + CHECK_RESULT $? 0 0 "remove texlive-sourcecodepro-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcecodepro.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcecodepro.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a174e706cfb711d3ec5a409b46f22795c754fe9 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcecodepro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sourcecodepro | grep -v \.src | grep texlive-sourcecodepro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sourcecodepro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sourcecodepro + CHECK_RESULT $? 0 0 "install texlive-sourcecodepro failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sourcecodepro + CHECK_RESULT $? 0 0 "remove texlive-sourcecodepro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcesanspro-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcesanspro-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe1f4c365b1eb54e5e6b3cc58a175bd1bc3eb574 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcesanspro-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sourcesanspro-doc | grep -v \.src | grep texlive-sourcesanspro-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sourcesanspro-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sourcesanspro-doc + CHECK_RESULT $? 0 0 "install texlive-sourcesanspro-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sourcesanspro-doc + CHECK_RESULT $? 0 0 "remove texlive-sourcesanspro-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcesanspro.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcesanspro.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e872ae8b4a2e35dcc35d6bb446fcc8659722ed1 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourcesanspro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sourcesanspro | grep -v \.src | grep texlive-sourcesanspro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sourcesanspro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sourcesanspro + CHECK_RESULT $? 0 0 "install texlive-sourcesanspro failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sourcesanspro + CHECK_RESULT $? 0 0 "remove texlive-sourcesanspro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourceserifpro-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourceserifpro-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e561715bd8f7ba2fff9096d5a7a2531a35010f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourceserifpro-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sourceserifpro-doc | grep -v \.src | grep texlive-sourceserifpro-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sourceserifpro-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sourceserifpro-doc + CHECK_RESULT $? 0 0 "install texlive-sourceserifpro-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sourceserifpro-doc + CHECK_RESULT $? 0 0 "remove texlive-sourceserifpro-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourceserifpro.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourceserifpro.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cf29102f0ed22be5e120c765f5aa55ece66ac56 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sourceserifpro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sourceserifpro | grep -v \.src | grep texlive-sourceserifpro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sourceserifpro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sourceserifpro + CHECK_RESULT $? 0 0 "install texlive-sourceserifpro failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sourceserifpro + CHECK_RESULT $? 0 0 "remove texlive-sourceserifpro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spalign.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spalign.sh new file mode 100644 index 0000000000000000000000000000000000000000..68f8567b4f6b99ec4982e46292098cf90948d035 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spalign.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spalign | grep -v \.src | grep texlive-spalign + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spalign" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spalign + CHECK_RESULT $? 0 0 "install texlive-spalign failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spalign + CHECK_RESULT $? 0 0 "remove texlive-spalign failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spanish-mx-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spanish-mx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..355b648e900b5929a46c9242d63dfbfe300b2cca --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spanish-mx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spanish-mx-doc | grep -v \.src | grep texlive-spanish-mx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spanish-mx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spanish-mx-doc + CHECK_RESULT $? 0 0 "install texlive-spanish-mx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spanish-mx-doc + CHECK_RESULT $? 0 0 "remove texlive-spanish-mx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spanish-mx.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spanish-mx.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f73b9651fec1ca7be31d1c81bb2bfe5028d8ded --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spanish-mx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spanish-mx | grep -v \.src | grep texlive-spanish-mx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spanish-mx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spanish-mx + CHECK_RESULT $? 0 0 "install texlive-spanish-mx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spanish-mx + CHECK_RESULT $? 0 0 "remove texlive-spanish-mx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spark-otf.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spark-otf.sh new file mode 100644 index 0000000000000000000000000000000000000000..2441ea670d536760fd1b8b2c328c7311f42be70c --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spark-otf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spark-otf | grep -v \.src | grep texlive-spark-otf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spark-otf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spark-otf + CHECK_RESULT $? 0 0 "install texlive-spark-otf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spark-otf + CHECK_RESULT $? 0 0 "remove texlive-spark-otf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sparklines-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sparklines-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0dc016dbe47d2e542cb28a4bfb801dc50d87b690 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sparklines-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sparklines-doc | grep -v \.src | grep texlive-sparklines-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sparklines-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sparklines-doc + CHECK_RESULT $? 0 0 "install texlive-sparklines-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sparklines-doc + CHECK_RESULT $? 0 0 "remove texlive-sparklines-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sparklines.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sparklines.sh new file mode 100644 index 0000000000000000000000000000000000000000..39e18f2ac170ab96453b7607526447b5557da5db --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sparklines.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sparklines | grep -v \.src | grep texlive-sparklines + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sparklines" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sparklines + CHECK_RESULT $? 0 0 "install texlive-sparklines failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sparklines + CHECK_RESULT $? 0 0 "remove texlive-sparklines failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spath3-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spath3-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..35eae6df8bbbf5668887fe3428bf92d403d1e4ed --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spath3-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spath3-doc | grep -v \.src | grep texlive-spath3-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spath3-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spath3-doc + CHECK_RESULT $? 0 0 "install texlive-spath3-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spath3-doc + CHECK_RESULT $? 0 0 "remove texlive-spath3-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spath3.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spath3.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf2d07da0cd0906f22b0d716e5d8a61d338dda86 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spath3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spath3 | grep -v \.src | grep texlive-spath3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spath3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spath3 + CHECK_RESULT $? 0 0 "install texlive-spath3 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spath3 + CHECK_RESULT $? 0 0 "remove texlive-spath3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spectralsequences.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spectralsequences.sh new file mode 100644 index 0000000000000000000000000000000000000000..05eec5d021b342ed646d4e28f281cf7861acc21d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spectralsequences.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spectralsequences | grep -v \.src | grep texlive-spectralsequences + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spectralsequences" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spectralsequences + CHECK_RESULT $? 0 0 "install texlive-spectralsequences failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spectralsequences + CHECK_RESULT $? 0 0 "remove texlive-spectralsequences failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spelling-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spelling-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c84b07fe03e5d562a31ff1bdd53d98b44fac1c7 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spelling-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spelling-doc | grep -v \.src | grep texlive-spelling-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spelling-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spelling-doc + CHECK_RESULT $? 0 0 "install texlive-spelling-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spelling-doc + CHECK_RESULT $? 0 0 "remove texlive-spelling-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spelling.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spelling.sh new file mode 100644 index 0000000000000000000000000000000000000000..513d54b1c5d93cdf3c5e4f05ed250419898ad16f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spelling.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spelling | grep -v \.src | grep texlive-spelling + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spelling" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spelling + CHECK_RESULT $? 0 0 "install texlive-spelling failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spelling + CHECK_RESULT $? 0 0 "remove texlive-spelling failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphack-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphack-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..831499b3cd0025a8216423b9a11b0b3dcabc1095 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphack-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sphack-doc | grep -v \.src | grep texlive-sphack-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sphack-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sphack-doc + CHECK_RESULT $? 0 0 "install texlive-sphack-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sphack-doc + CHECK_RESULT $? 0 0 "remove texlive-sphack-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphack.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphack.sh new file mode 100644 index 0000000000000000000000000000000000000000..3faba80535397436c379d298ce44580d0eb5aedc --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphack.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sphack | grep -v \.src | grep texlive-sphack + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sphack" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sphack + CHECK_RESULT $? 0 0 "install texlive-sphack failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sphack + CHECK_RESULT $? 0 0 "remove texlive-sphack failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphdthesis-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphdthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c133641f6e29dcfa9220808cd57d55002260e3ff --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphdthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sphdthesis-doc | grep -v \.src | grep texlive-sphdthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sphdthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sphdthesis-doc + CHECK_RESULT $? 0 0 "install texlive-sphdthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sphdthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-sphdthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphdthesis.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphdthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e667e544f68856f6f7f13d7082eb0fda2ddf335 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sphdthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sphdthesis | grep -v \.src | grep texlive-sphdthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sphdthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sphdthesis + CHECK_RESULT $? 0 0 "install texlive-sphdthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sphdthesis + CHECK_RESULT $? 0 0 "remove texlive-sphdthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spie-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spie-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f4cde3340eaca9da7eb199b6977f25cb0ef5d14 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spie-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spie-doc | grep -v \.src | grep texlive-spie-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spie-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spie-doc + CHECK_RESULT $? 0 0 "install texlive-spie-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spie-doc + CHECK_RESULT $? 0 0 "remove texlive-spie-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spie.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spie.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e322fff8ebabdf01f9689ba7871f73450ad60e9 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spie | grep -v \.src | grep texlive-spie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spie + CHECK_RESULT $? 0 0 "install texlive-spie failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spie + CHECK_RESULT $? 0 0 "remove texlive-spie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splines-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splines-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..05bc2bc6ad78da9d036de220742b54736d84345f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splines-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-splines-doc | grep -v \.src | grep texlive-splines-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-splines-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-splines-doc + CHECK_RESULT $? 0 0 "install texlive-splines-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-splines-doc + CHECK_RESULT $? 0 0 "remove texlive-splines-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splines.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splines.sh new file mode 100644 index 0000000000000000000000000000000000000000..38079b4c1931635592bd299de1c0ff972a679bb2 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splines.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-splines | grep -v \.src | grep texlive-splines + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-splines" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-splines + CHECK_RESULT $? 0 0 "install texlive-splines failed" + SLEEP_WAIT 1 + dnf remove -y texlive-splines + CHECK_RESULT $? 0 0 "remove texlive-splines failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-split-v.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-split-v.sh new file mode 100644 index 0000000000000000000000000000000000000000..43761603b40d5c18835bdfe40acfd2d6f0efc743 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-split-v.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-v | grep -v \.src | grep texlive-split-v + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-v" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-v + CHECK_RESULT $? 0 0 "install texlive-split-v failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-v + CHECK_RESULT $? 0 0 "remove texlive-split-v failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splitbib-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splitbib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..74a919940ee8a5640f34bb0c523e38e29ee83528 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splitbib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-splitbib-doc | grep -v \.src | grep texlive-splitbib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-splitbib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-splitbib-doc + CHECK_RESULT $? 0 0 "install texlive-splitbib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-splitbib-doc + CHECK_RESULT $? 0 0 "remove texlive-splitbib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splitbib.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splitbib.sh new file mode 100644 index 0000000000000000000000000000000000000000..9175f58928164a1f612a81146f99edf48cc6611a --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-splitbib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-splitbib | grep -v \.src | grep texlive-splitbib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-splitbib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-splitbib + CHECK_RESULT $? 0 0 "install texlive-splitbib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-splitbib + CHECK_RESULT $? 0 0 "remove texlive-splitbib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spot-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c515fd2f745fc3f5d13399d65e6a116e9b428ed4 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spot-doc | grep -v \.src | grep texlive-spot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spot-doc + CHECK_RESULT $? 0 0 "install texlive-spot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spot-doc + CHECK_RESULT $? 0 0 "remove texlive-spot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spot.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spot.sh new file mode 100644 index 0000000000000000000000000000000000000000..3cfd71f36915bcb48ce44e013b6a4c441699440b --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spot | grep -v \.src | grep texlive-spot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spot + CHECK_RESULT $? 0 0 "install texlive-spot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spot + CHECK_RESULT $? 0 0 "remove texlive-spot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spotcolor-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spotcolor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab1d08691bdfc8c2b672d9eaed23224b9e01f332 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spotcolor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spotcolor-doc | grep -v \.src | grep texlive-spotcolor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spotcolor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spotcolor-doc + CHECK_RESULT $? 0 0 "install texlive-spotcolor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spotcolor-doc + CHECK_RESULT $? 0 0 "remove texlive-spotcolor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spotcolor.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spotcolor.sh new file mode 100644 index 0000000000000000000000000000000000000000..528241d18b031b9dad381e338622720335442e72 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spotcolor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spotcolor | grep -v \.src | grep texlive-spotcolor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spotcolor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spotcolor + CHECK_RESULT $? 0 0 "install texlive-spotcolor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spotcolor + CHECK_RESULT $? 0 0 "remove texlive-spotcolor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spreadtab-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spreadtab-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1ac6b01d25f783eb00bda918cec3ded3a4a2656 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spreadtab-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spreadtab-doc | grep -v \.src | grep texlive-spreadtab-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spreadtab-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spreadtab-doc + CHECK_RESULT $? 0 0 "install texlive-spreadtab-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spreadtab-doc + CHECK_RESULT $? 0 0 "remove texlive-spreadtab-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spreadtab.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spreadtab.sh new file mode 100644 index 0000000000000000000000000000000000000000..adc28655e2cf8b3a86761dd3ec3adcb1c3faa48c --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spreadtab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spreadtab | grep -v \.src | grep texlive-spreadtab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spreadtab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spreadtab + CHECK_RESULT $? 0 0 "install texlive-spreadtab failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spreadtab + CHECK_RESULT $? 0 0 "remove texlive-spreadtab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spverbatim-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spverbatim-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..15f1980c2b1c419d0e497506786b21c0446124c0 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spverbatim-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spverbatim-doc | grep -v \.src | grep texlive-spverbatim-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spverbatim-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spverbatim-doc + CHECK_RESULT $? 0 0 "install texlive-spverbatim-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spverbatim-doc + CHECK_RESULT $? 0 0 "remove texlive-spverbatim-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spverbatim.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spverbatim.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fc97fefe1a5e623681be1335e203bd4c425fd55 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-spverbatim.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spverbatim | grep -v \.src | grep texlive-spverbatim + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spverbatim" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spverbatim + CHECK_RESULT $? 0 0 "install texlive-spverbatim failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spverbatim + CHECK_RESULT $? 0 0 "remove texlive-spverbatim failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sr-vorl-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sr-vorl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2bd601f4fa465e04f328f1df8f8841f8ea017ea --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sr-vorl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sr-vorl-doc | grep -v \.src | grep texlive-sr-vorl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sr-vorl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sr-vorl-doc + CHECK_RESULT $? 0 0 "install texlive-sr-vorl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sr-vorl-doc + CHECK_RESULT $? 0 0 "remove texlive-sr-vorl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sr-vorl.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sr-vorl.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fdc0df2aa10c5f490d7b91cc721d3fda4bd0b03 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sr-vorl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sr-vorl | grep -v \.src | grep texlive-sr-vorl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sr-vorl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sr-vorl + CHECK_RESULT $? 0 0 "install texlive-sr-vorl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sr-vorl + CHECK_RESULT $? 0 0 "remove texlive-sr-vorl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srbook-mem-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srbook-mem-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b71fa41de32a531b7021d84eeeef9859c434c44 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srbook-mem-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-srbook-mem-doc | grep -v \.src | grep texlive-srbook-mem-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-srbook-mem-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-srbook-mem-doc + CHECK_RESULT $? 0 0 "install texlive-srbook-mem-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-srbook-mem-doc + CHECK_RESULT $? 0 0 "remove texlive-srbook-mem-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srbook-mem.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srbook-mem.sh new file mode 100644 index 0000000000000000000000000000000000000000..2374e87482663b06c5edbbf8d94826776f440cc5 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srbook-mem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-srbook-mem | grep -v \.src | grep texlive-srbook-mem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-srbook-mem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-srbook-mem + CHECK_RESULT $? 0 0 "install texlive-srbook-mem failed" + SLEEP_WAIT 1 + dnf remove -y texlive-srbook-mem + CHECK_RESULT $? 0 0 "remove texlive-srbook-mem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srcltx-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srcltx-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d31038bea37dc5c398ea1cf90b451e68e3d9dc6a --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srcltx-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-srcltx-doc | grep -v \.src | grep texlive-srcltx-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-srcltx-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-srcltx-doc + CHECK_RESULT $? 0 0 "install texlive-srcltx-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-srcltx-doc + CHECK_RESULT $? 0 0 "remove texlive-srcltx-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srcltx.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srcltx.sh new file mode 100644 index 0000000000000000000000000000000000000000..507eba7c31b9473684e3bec2bb80bf142b8efa7b --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-srcltx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-srcltx | grep -v \.src | grep texlive-srcltx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-srcltx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-srcltx + CHECK_RESULT $? 0 0 "install texlive-srcltx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-srcltx + CHECK_RESULT $? 0 0 "remove texlive-srcltx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sseq-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sseq-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1f223b703ad7dbb7f3b4cbaea0c8fc2cc4b792d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sseq-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sseq-doc | grep -v \.src | grep texlive-sseq-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sseq-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sseq-doc + CHECK_RESULT $? 0 0 "install texlive-sseq-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sseq-doc + CHECK_RESULT $? 0 0 "remove texlive-sseq-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sseq.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sseq.sh new file mode 100644 index 0000000000000000000000000000000000000000..84e43525d7ce36dc677fad7349eab9378a67f78c --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sseq.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sseq | grep -v \.src | grep texlive-sseq + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sseq" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sseq + CHECK_RESULT $? 0 0 "install texlive-sseq failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sseq + CHECK_RESULT $? 0 0 "remove texlive-sseq failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sslides-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sslides-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b271c5ce6ee07464fd97b0857753538e8794d3d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sslides-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sslides-doc | grep -v \.src | grep texlive-sslides-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sslides-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sslides-doc + CHECK_RESULT $? 0 0 "install texlive-sslides-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sslides-doc + CHECK_RESULT $? 0 0 "remove texlive-sslides-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sslides.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sslides.sh new file mode 100644 index 0000000000000000000000000000000000000000..347d5b205e1b97dc8103a49262855f0bdcd637f2 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sslides.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sslides | grep -v \.src | grep texlive-sslides + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sslides" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sslides + CHECK_RESULT $? 0 0 "install texlive-sslides failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sslides + CHECK_RESULT $? 0 0 "remove texlive-sslides failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stack.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stack.sh new file mode 100644 index 0000000000000000000000000000000000000000..336599642d0ed77a363075b5039d52696193e783 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stack.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stack | grep -v \.src | grep texlive-stack + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stack" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stack + CHECK_RESULT $? 0 0 "install texlive-stack failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stack + CHECK_RESULT $? 0 0 "remove texlive-stack failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stackengine-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stackengine-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd50cea4a294ffe1915e8c9ca563c0bc03dbb476 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stackengine-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stackengine-doc | grep -v \.src | grep texlive-stackengine-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stackengine-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stackengine-doc + CHECK_RESULT $? 0 0 "install texlive-stackengine-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stackengine-doc + CHECK_RESULT $? 0 0 "remove texlive-stackengine-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stackengine.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stackengine.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b62fd6bf78c50f9f39ab52cd8b7a0d32d42766d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stackengine.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stackengine | grep -v \.src | grep texlive-stackengine + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stackengine" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stackengine + CHECK_RESULT $? 0 0 "install texlive-stackengine failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stackengine + CHECK_RESULT $? 0 0 "remove texlive-stackengine failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stage-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..082ef1e905d96525d652c1abf8a01310d0c5e286 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stage-doc | grep -v \.src | grep texlive-stage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stage-doc + CHECK_RESULT $? 0 0 "install texlive-stage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stage-doc + CHECK_RESULT $? 0 0 "remove texlive-stage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stage.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stage.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb2ef7caae551db47955129870b5e8618a2789c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stage | grep -v \.src | grep texlive-stage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stage + CHECK_RESULT $? 0 0 "install texlive-stage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stage + CHECK_RESULT $? 0 0 "remove texlive-stage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-standalone-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-standalone-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b29f00ffb0e06652ac1ba35f77c10a7b1a8d7e7 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-standalone-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-standalone-doc | grep -v \.src | grep texlive-standalone-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-standalone-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-standalone-doc + CHECK_RESULT $? 0 0 "install texlive-standalone-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-standalone-doc + CHECK_RESULT $? 0 0 "remove texlive-standalone-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-standalone.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-standalone.sh new file mode 100644 index 0000000000000000000000000000000000000000..e74fdfebfe63911968debda3f7966f9ccedf02dc --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-standalone.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-standalone | grep -v \.src | grep texlive-standalone + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-standalone" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-standalone + CHECK_RESULT $? 0 0 "install texlive-standalone failed" + SLEEP_WAIT 1 + dnf remove -y texlive-standalone + CHECK_RESULT $? 0 0 "remove texlive-standalone failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stanli.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stanli.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9d639b5ec45cf72d98b6bcdab9c49478ac6929d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stanli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stanli | grep -v \.src | grep texlive-stanli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stanli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stanli + CHECK_RESULT $? 0 0 "install texlive-stanli failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stanli + CHECK_RESULT $? 0 0 "remove texlive-stanli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-starfont-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-starfont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc56acbfb9c3bd8387c9fa628ff6c000367cabbd --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-starfont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-starfont-doc | grep -v \.src | grep texlive-starfont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-starfont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-starfont-doc + CHECK_RESULT $? 0 0 "install texlive-starfont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-starfont-doc + CHECK_RESULT $? 0 0 "remove texlive-starfont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-starfont.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-starfont.sh new file mode 100644 index 0000000000000000000000000000000000000000..671a8335be2921fafa950cd87826875058d47c1c --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-starfont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-starfont | grep -v \.src | grep texlive-starfont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-starfont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-starfont + CHECK_RESULT $? 0 0 "install texlive-starfont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-starfont + CHECK_RESULT $? 0 0 "remove texlive-starfont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-startex-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-startex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bad4086fd02f78b0d4a53a197ac921c40a5085f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-startex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-startex-doc | grep -v \.src | grep texlive-startex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-startex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-startex-doc + CHECK_RESULT $? 0 0 "install texlive-startex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-startex-doc + CHECK_RESULT $? 0 0 "remove texlive-startex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-startex.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-startex.sh new file mode 100644 index 0000000000000000000000000000000000000000..e32e3c0a6d105152a25a3354d986e940bab89152 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-startex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-startex | grep -v \.src | grep texlive-startex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-startex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-startex + CHECK_RESULT $? 0 0 "install texlive-startex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-startex + CHECK_RESULT $? 0 0 "remove texlive-startex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..400d268f59b473d30a14bc13f5f9ba4e9b2873d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-statex-doc | grep -v \.src | grep texlive-statex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-statex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-statex-doc + CHECK_RESULT $? 0 0 "install texlive-statex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-statex-doc + CHECK_RESULT $? 0 0 "remove texlive-statex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex.sh new file mode 100644 index 0000000000000000000000000000000000000000..436c9497ad0fe6f17b4de0787272971f11358d27 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-statex | grep -v \.src | grep texlive-statex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-statex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-statex + CHECK_RESULT $? 0 0 "install texlive-statex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-statex + CHECK_RESULT $? 0 0 "remove texlive-statex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex2-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex2-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebf3e555268c05f58d05501187c129fd9cb4774b --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex2-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-statex2-doc | grep -v \.src | grep texlive-statex2-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-statex2-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-statex2-doc + CHECK_RESULT $? 0 0 "install texlive-statex2-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-statex2-doc + CHECK_RESULT $? 0 0 "remove texlive-statex2-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex2.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex2.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d9be378297e191ba72331c564d305f19bfd4552 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statex2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-statex2 | grep -v \.src | grep texlive-statex2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-statex2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-statex2 + CHECK_RESULT $? 0 0 "install texlive-statex2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-statex2 + CHECK_RESULT $? 0 0 "remove texlive-statex2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statistics.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statistics.sh new file mode 100644 index 0000000000000000000000000000000000000000..167712b006c5a049c9a683ac36960dda0767face --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statistics.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-statistics | grep -v \.src | grep texlive-statistics + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-statistics" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-statistics + CHECK_RESULT $? 0 0 "install texlive-statistics failed" + SLEEP_WAIT 1 + dnf remove -y texlive-statistics + CHECK_RESULT $? 0 0 "remove texlive-statistics failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statistik-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statistik-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ddcf95c9fd5d44333f4ef89d3c4ce1937e80758 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statistik-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-statistik-doc | grep -v \.src | grep texlive-statistik-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-statistik-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-statistik-doc + CHECK_RESULT $? 0 0 "install texlive-statistik-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-statistik-doc + CHECK_RESULT $? 0 0 "remove texlive-statistik-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statistik.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statistik.sh new file mode 100644 index 0000000000000000000000000000000000000000..db3ad367e7392758c6020cec5de4ab2a0c539364 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statistik.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-statistik | grep -v \.src | grep texlive-statistik + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-statistik" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-statistik + CHECK_RESULT $? 0 0 "install texlive-statistik failed" + SLEEP_WAIT 1 + dnf remove -y texlive-statistik + CHECK_RESULT $? 0 0 "remove texlive-statistik failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statmath.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..82564323428fd95b1d9ec072ee7477dfae318048 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-statmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-statmath | grep -v \.src | grep texlive-statmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-statmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-statmath + CHECK_RESULT $? 0 0 "install texlive-statmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-statmath + CHECK_RESULT $? 0 0 "remove texlive-statmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-staves-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-staves-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2444a6ecdf1a9a88c723ed349e04d707c0e4f65a --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-staves-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-staves-doc | grep -v \.src | grep texlive-staves-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-staves-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-staves-doc + CHECK_RESULT $? 0 0 "install texlive-staves-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-staves-doc + CHECK_RESULT $? 0 0 "remove texlive-staves-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-staves.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-staves.sh new file mode 100644 index 0000000000000000000000000000000000000000..54726cd1890e4d883fbb540340dc35f6a872b6a3 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-staves.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-staves | grep -v \.src | grep texlive-staves + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-staves" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-staves + CHECK_RESULT $? 0 0 "install texlive-staves failed" + SLEEP_WAIT 1 + dnf remove -y texlive-staves + CHECK_RESULT $? 0 0 "remove texlive-staves failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdclsdv-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdclsdv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c26596db33a11a224677054442f5a6ce50d06aa8 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdclsdv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stdclsdv-doc | grep -v \.src | grep texlive-stdclsdv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stdclsdv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stdclsdv-doc + CHECK_RESULT $? 0 0 "install texlive-stdclsdv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stdclsdv-doc + CHECK_RESULT $? 0 0 "remove texlive-stdclsdv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdclsdv.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdclsdv.sh new file mode 100644 index 0000000000000000000000000000000000000000..d491584059fda079a541c48c4229be82ec997faf --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdclsdv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stdclsdv | grep -v \.src | grep texlive-stdclsdv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stdclsdv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stdclsdv + CHECK_RESULT $? 0 0 "install texlive-stdclsdv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stdclsdv + CHECK_RESULT $? 0 0 "remove texlive-stdclsdv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdpage-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdpage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8b65f1f9f04f1fc757ce7e67260f62f07e4f910 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdpage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stdpage-doc | grep -v \.src | grep texlive-stdpage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stdpage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stdpage-doc + CHECK_RESULT $? 0 0 "install texlive-stdpage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stdpage-doc + CHECK_RESULT $? 0 0 "remove texlive-stdpage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdpage.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdpage.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed458fd07701dbc4ce477aa0d7a2a754a6d4fd92 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stdpage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stdpage | grep -v \.src | grep texlive-stdpage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stdpage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stdpage + CHECK_RESULT $? 0 0 "install texlive-stdpage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stdpage + CHECK_RESULT $? 0 0 "remove texlive-stdpage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stealcaps.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stealcaps.sh new file mode 100644 index 0000000000000000000000000000000000000000..63e9caefd605f1e451f3f6765a8619f101d19a86 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stealcaps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stealcaps | grep -v \.src | grep texlive-stealcaps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stealcaps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stealcaps + CHECK_RESULT $? 0 0 "install texlive-stealcaps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stealcaps + CHECK_RESULT $? 0 0 "remove texlive-stealcaps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-steinmetz-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-steinmetz-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..92cf2ff4800533c60ea00c19781a94947d299bbb --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-steinmetz-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-steinmetz-doc | grep -v \.src | grep texlive-steinmetz-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-steinmetz-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-steinmetz-doc + CHECK_RESULT $? 0 0 "install texlive-steinmetz-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-steinmetz-doc + CHECK_RESULT $? 0 0 "remove texlive-steinmetz-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-steinmetz.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-steinmetz.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fa757b7956256c814ebecb05da180e61089cc4a --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-steinmetz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-steinmetz | grep -v \.src | grep texlive-steinmetz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-steinmetz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-steinmetz + CHECK_RESULT $? 0 0 "install texlive-steinmetz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-steinmetz + CHECK_RESULT $? 0 0 "remove texlive-steinmetz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stellenbosch-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stellenbosch-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cbc94de6332d9bc0fd94d2b10df4f9447b4723b --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stellenbosch-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stellenbosch-doc | grep -v \.src | grep texlive-stellenbosch-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stellenbosch-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stellenbosch-doc + CHECK_RESULT $? 0 0 "install texlive-stellenbosch-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stellenbosch-doc + CHECK_RESULT $? 0 0 "remove texlive-stellenbosch-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stellenbosch.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stellenbosch.sh new file mode 100644 index 0000000000000000000000000000000000000000..1285ddd7631bd7f173a1d23b5cfe4ff4309bb2a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stellenbosch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stellenbosch | grep -v \.src | grep texlive-stellenbosch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stellenbosch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stellenbosch + CHECK_RESULT $? 0 0 "install texlive-stellenbosch failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stellenbosch + CHECK_RESULT $? 0 0 "remove texlive-stellenbosch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stex-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5174cfc28a86ab2885d6e7f0b4ec052566db816e --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stex-doc | grep -v \.src | grep texlive-stex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stex-doc + CHECK_RESULT $? 0 0 "install texlive-stex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stex-doc + CHECK_RESULT $? 0 0 "remove texlive-stex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stex.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stex.sh new file mode 100644 index 0000000000000000000000000000000000000000..d41c0c1a471574100badda4096085f4370c6aba9 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stex | grep -v \.src | grep texlive-stex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stex + CHECK_RESULT $? 0 0 "install texlive-stex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stex + CHECK_RESULT $? 0 0 "remove texlive-stex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stickstoo.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stickstoo.sh new file mode 100644 index 0000000000000000000000000000000000000000..720ecee367179ab4b7894fcfe124323f13be75ce --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stickstoo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stickstoo | grep -v \.src | grep texlive-stickstoo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stickstoo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stickstoo + CHECK_RESULT $? 0 0 "install texlive-stickstoo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stickstoo + CHECK_RESULT $? 0 0 "remove texlive-stickstoo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..31e68587ac077b7f2641e5e5676880d342d85b0d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stix-doc | grep -v \.src | grep texlive-stix-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stix-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stix-doc + CHECK_RESULT $? 0 0 "install texlive-stix-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stix-doc + CHECK_RESULT $? 0 0 "remove texlive-stix-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd233329a1fd48a0b35ba14aab8b313188c1ba15 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stix | grep -v \.src | grep texlive-stix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stix + CHECK_RESULT $? 0 0 "install texlive-stix failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stix + CHECK_RESULT $? 0 0 "remove texlive-stix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix2-otf.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix2-otf.sh new file mode 100644 index 0000000000000000000000000000000000000000..5945650f2645f8d48dd030ce8dde0626544f8e1b --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix2-otf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stix2-otf | grep -v \.src | grep texlive-stix2-otf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stix2-otf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stix2-otf + CHECK_RESULT $? 0 0 "install texlive-stix2-otf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stix2-otf + CHECK_RESULT $? 0 0 "remove texlive-stix2-otf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix2-type1.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix2-type1.sh new file mode 100644 index 0000000000000000000000000000000000000000..b27e4e8e560d91cfbe508b729a4b482d052773e6 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stix2-type1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stix2-type1 | grep -v \.src | grep texlive-stix2-type1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stix2-type1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stix2-type1 + CHECK_RESULT $? 0 0 "install texlive-stix2-type1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stix2-type1 + CHECK_RESULT $? 0 0 "remove texlive-stix2-type1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stmaryrd-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stmaryrd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..141a0f52e5ff4adfe196e499291c3aeb7260245f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stmaryrd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stmaryrd-doc | grep -v \.src | grep texlive-stmaryrd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stmaryrd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stmaryrd-doc + CHECK_RESULT $? 0 0 "install texlive-stmaryrd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stmaryrd-doc + CHECK_RESULT $? 0 0 "remove texlive-stmaryrd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stmaryrd.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stmaryrd.sh new file mode 100644 index 0000000000000000000000000000000000000000..990f6d4b6ddca1a3980f470db5968f1576ae0f1c --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stmaryrd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stmaryrd | grep -v \.src | grep texlive-stmaryrd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stmaryrd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stmaryrd + CHECK_RESULT $? 0 0 "install texlive-stmaryrd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stmaryrd + CHECK_RESULT $? 0 0 "remove texlive-stmaryrd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storebox-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storebox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b85d152a73b44b93037ba2669fe491a80c8382d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storebox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-storebox-doc | grep -v \.src | grep texlive-storebox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-storebox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-storebox-doc + CHECK_RESULT $? 0 0 "install texlive-storebox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-storebox-doc + CHECK_RESULT $? 0 0 "remove texlive-storebox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storebox.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storebox.sh new file mode 100644 index 0000000000000000000000000000000000000000..cea84f503d5686036b042662c66094e359d3c1e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storebox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-storebox | grep -v \.src | grep texlive-storebox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-storebox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-storebox + CHECK_RESULT $? 0 0 "install texlive-storebox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-storebox + CHECK_RESULT $? 0 0 "remove texlive-storebox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storecmd-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storecmd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2feca505f3aa74231ded0e9f8d10b7550e5f5fe8 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storecmd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-storecmd-doc | grep -v \.src | grep texlive-storecmd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-storecmd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-storecmd-doc + CHECK_RESULT $? 0 0 "install texlive-storecmd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-storecmd-doc + CHECK_RESULT $? 0 0 "remove texlive-storecmd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storecmd.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storecmd.sh new file mode 100644 index 0000000000000000000000000000000000000000..edfc726ec09dc02c7040314d829bb302a79280be --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-storecmd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-storecmd | grep -v \.src | grep texlive-storecmd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-storecmd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-storecmd + CHECK_RESULT $? 0 0 "install texlive-storecmd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-storecmd + CHECK_RESULT $? 0 0 "remove texlive-storecmd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stringstrings-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stringstrings-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..be8fb8348eb8ec64dcd936a85a52c1a9951bc342 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stringstrings-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stringstrings-doc | grep -v \.src | grep texlive-stringstrings-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stringstrings-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stringstrings-doc + CHECK_RESULT $? 0 0 "install texlive-stringstrings-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stringstrings-doc + CHECK_RESULT $? 0 0 "remove texlive-stringstrings-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stringstrings.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stringstrings.sh new file mode 100644 index 0000000000000000000000000000000000000000..731a99cf8d401b696b35ba6e357a2d58dcda63da --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stringstrings.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stringstrings | grep -v \.src | grep texlive-stringstrings + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stringstrings" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stringstrings + CHECK_RESULT $? 0 0 "install texlive-stringstrings failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stringstrings + CHECK_RESULT $? 0 0 "remove texlive-stringstrings failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-structmech.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-structmech.sh new file mode 100644 index 0000000000000000000000000000000000000000..515437f3c73898ae1bdc538adc47dce0d3b34a62 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-structmech.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-structmech | grep -v \.src | grep texlive-structmech + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-structmech" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-structmech + CHECK_RESULT $? 0 0 "install texlive-structmech failed" + SLEEP_WAIT 1 + dnf remove -y texlive-structmech + CHECK_RESULT $? 0 0 "remove texlive-structmech failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-struktex-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-struktex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..29758e84334a40d56dd91a900393b2b60116ea2f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-struktex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-struktex-doc | grep -v \.src | grep texlive-struktex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-struktex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-struktex-doc + CHECK_RESULT $? 0 0 "install texlive-struktex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-struktex-doc + CHECK_RESULT $? 0 0 "remove texlive-struktex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-struktex.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-struktex.sh new file mode 100644 index 0000000000000000000000000000000000000000..381da0831afea8c3fbf81f2864064e72a1605625 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-struktex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-struktex | grep -v \.src | grep texlive-struktex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-struktex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-struktex + CHECK_RESULT $? 0 0 "install texlive-struktex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-struktex + CHECK_RESULT $? 0 0 "remove texlive-struktex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sttools-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sttools-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6decb407c92aa04ab8364f72243c7558c589dbd2 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sttools-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sttools-doc | grep -v \.src | grep texlive-sttools-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sttools-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sttools-doc + CHECK_RESULT $? 0 0 "install texlive-sttools-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sttools-doc + CHECK_RESULT $? 0 0 "remove texlive-sttools-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sttools.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sttools.sh new file mode 100644 index 0000000000000000000000000000000000000000..a36ba26edd07985d918c079fb1d0b6e63f95f5cc --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sttools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sttools | grep -v \.src | grep texlive-sttools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sttools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sttools + CHECK_RESULT $? 0 0 "install texlive-sttools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sttools + CHECK_RESULT $? 0 0 "remove texlive-sttools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stubs-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stubs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f1395f1187e310c05c1a73b1fadfd4526e01b8d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stubs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stubs-doc | grep -v \.src | grep texlive-stubs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stubs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stubs-doc + CHECK_RESULT $? 0 0 "install texlive-stubs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stubs-doc + CHECK_RESULT $? 0 0 "remove texlive-stubs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stubs.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stubs.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb52e5596e8b6850c96bb3e5b08def21ce729268 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-stubs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stubs | grep -v \.src | grep texlive-stubs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stubs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stubs + CHECK_RESULT $? 0 0 "install texlive-stubs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stubs + CHECK_RESULT $? 0 0 "remove texlive-stubs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-studenthandouts.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-studenthandouts.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ba1fabeb677c472277609f129aae5450b90bf4b --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-studenthandouts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-studenthandouts | grep -v \.src | grep texlive-studenthandouts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-studenthandouts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-studenthandouts + CHECK_RESULT $? 0 0 "install texlive-studenthandouts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-studenthandouts + CHECK_RESULT $? 0 0 "remove texlive-studenthandouts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suanpan-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suanpan-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f66358ec9623fff0820b083855e122a65ac34524 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suanpan-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-suanpan-doc | grep -v \.src | grep texlive-suanpan-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-suanpan-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-suanpan-doc + CHECK_RESULT $? 0 0 "install texlive-suanpan-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-suanpan-doc + CHECK_RESULT $? 0 0 "remove texlive-suanpan-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suanpan.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suanpan.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e474521d3b4fef19676ffe80750d430744ea922 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suanpan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-suanpan | grep -v \.src | grep texlive-suanpan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-suanpan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-suanpan + CHECK_RESULT $? 0 0 "install texlive-suanpan failed" + SLEEP_WAIT 1 + dnf remove -y texlive-suanpan + CHECK_RESULT $? 0 0 "remove texlive-suanpan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subdepth-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subdepth-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..362b9092d534b8052141687e9238d74c4835fa38 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subdepth-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subdepth-doc | grep -v \.src | grep texlive-subdepth-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subdepth-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subdepth-doc + CHECK_RESULT $? 0 0 "install texlive-subdepth-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subdepth-doc + CHECK_RESULT $? 0 0 "remove texlive-subdepth-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subdepth.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subdepth.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8d7df17d026c937a38a1b6776f993ca7c622743 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subdepth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subdepth | grep -v \.src | grep texlive-subdepth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subdepth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subdepth + CHECK_RESULT $? 0 0 "install texlive-subdepth failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subdepth + CHECK_RESULT $? 0 0 "remove texlive-subdepth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqn-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a03c963f1a2ba68eb20e9f5a78e6ee417b2f4375 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subeqn-doc | grep -v \.src | grep texlive-subeqn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subeqn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subeqn-doc + CHECK_RESULT $? 0 0 "install texlive-subeqn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subeqn-doc + CHECK_RESULT $? 0 0 "remove texlive-subeqn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqn.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqn.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd83bebb5cb754768ced7db8be518f6ddf30d988 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subeqn | grep -v \.src | grep texlive-subeqn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subeqn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subeqn + CHECK_RESULT $? 0 0 "install texlive-subeqn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subeqn + CHECK_RESULT $? 0 0 "remove texlive-subeqn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqnarray-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqnarray-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4691c173fde83580cb318ada300c0f4b81f3c4ae --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqnarray-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subeqnarray-doc | grep -v \.src | grep texlive-subeqnarray-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subeqnarray-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subeqnarray-doc + CHECK_RESULT $? 0 0 "install texlive-subeqnarray-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subeqnarray-doc + CHECK_RESULT $? 0 0 "remove texlive-subeqnarray-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqnarray.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqnarray.sh new file mode 100644 index 0000000000000000000000000000000000000000..308642f9b6693824c98de065eae18a03185c0691 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subeqnarray.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subeqnarray | grep -v \.src | grep texlive-subeqnarray + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subeqnarray" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subeqnarray + CHECK_RESULT $? 0 0 "install texlive-subeqnarray failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subeqnarray + CHECK_RESULT $? 0 0 "remove texlive-subeqnarray failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfig-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfig-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..79d112fd7d335d2577dda40cdea5e7b9df31818a --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfig-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subfig-doc | grep -v \.src | grep texlive-subfig-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subfig-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subfig-doc + CHECK_RESULT $? 0 0 "install texlive-subfig-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subfig-doc + CHECK_RESULT $? 0 0 "remove texlive-subfig-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfig.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dd09d09d7bf34f40fbbb0bba1c15458b6f62c61 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subfig | grep -v \.src | grep texlive-subfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subfig + CHECK_RESULT $? 0 0 "install texlive-subfig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subfig + CHECK_RESULT $? 0 0 "remove texlive-subfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigmat-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigmat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9eb13e296432b09817803172070e3a444a0fe470 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigmat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subfigmat-doc | grep -v \.src | grep texlive-subfigmat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subfigmat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subfigmat-doc + CHECK_RESULT $? 0 0 "install texlive-subfigmat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subfigmat-doc + CHECK_RESULT $? 0 0 "remove texlive-subfigmat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigmat.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigmat.sh new file mode 100644 index 0000000000000000000000000000000000000000..990529b2d1eceb7f5ee6735a860e2b6bfa156800 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigmat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subfigmat | grep -v \.src | grep texlive-subfigmat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subfigmat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subfigmat + CHECK_RESULT $? 0 0 "install texlive-subfigmat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subfigmat + CHECK_RESULT $? 0 0 "remove texlive-subfigmat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigure-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigure-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac95c51dec9cb0426c959b20bbce811dafdd2f3e --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigure-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subfigure-doc | grep -v \.src | grep texlive-subfigure-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subfigure-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subfigure-doc + CHECK_RESULT $? 0 0 "install texlive-subfigure-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subfigure-doc + CHECK_RESULT $? 0 0 "remove texlive-subfigure-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigure.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigure.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5ba7990e6ed999f041fc0b51499e3e4bd7f2fd6 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfigure.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subfigure | grep -v \.src | grep texlive-subfigure + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subfigure" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subfigure + CHECK_RESULT $? 0 0 "install texlive-subfigure failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subfigure + CHECK_RESULT $? 0 0 "remove texlive-subfigure failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfiles-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfiles-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1658917d48cbb579d20ce33b63eaf523f6dfb87a --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfiles-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subfiles-doc | grep -v \.src | grep texlive-subfiles-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subfiles-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subfiles-doc + CHECK_RESULT $? 0 0 "install texlive-subfiles-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subfiles-doc + CHECK_RESULT $? 0 0 "remove texlive-subfiles-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfiles.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfiles.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad180a6eabcdb180922379769f44f2406d3f7752 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfiles.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subfiles | grep -v \.src | grep texlive-subfiles + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subfiles" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subfiles + CHECK_RESULT $? 0 0 "install texlive-subfiles failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subfiles + CHECK_RESULT $? 0 0 "remove texlive-subfiles failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfloat-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfloat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1392f34ed4da296b43acde798eea64eae2776f6 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfloat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subfloat-doc | grep -v \.src | grep texlive-subfloat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subfloat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subfloat-doc + CHECK_RESULT $? 0 0 "install texlive-subfloat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subfloat-doc + CHECK_RESULT $? 0 0 "remove texlive-subfloat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfloat.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba510816937d547de20a8da0fbf66f6cdb8ad097 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subfloat | grep -v \.src | grep texlive-subfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subfloat + CHECK_RESULT $? 0 0 "install texlive-subfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subfloat + CHECK_RESULT $? 0 0 "remove texlive-subfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substances-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substances-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..db9c46c8f1a113469647bcf32f4ecae9da0bbc75 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substances-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-substances-doc | grep -v \.src | grep texlive-substances-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-substances-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-substances-doc + CHECK_RESULT $? 0 0 "install texlive-substances-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-substances-doc + CHECK_RESULT $? 0 0 "remove texlive-substances-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substances.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substances.sh new file mode 100644 index 0000000000000000000000000000000000000000..092c473ea29487f917a2deee66cf4963f266722f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substances.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-substances | grep -v \.src | grep texlive-substances + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-substances" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-substances + CHECK_RESULT $? 0 0 "install texlive-substances failed" + SLEEP_WAIT 1 + dnf remove -y texlive-substances + CHECK_RESULT $? 0 0 "remove texlive-substances failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substitutefont-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substitutefont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0120dabf484fdeca2833d5ba76c34917b2d8b45e --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substitutefont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-substitutefont-doc | grep -v \.src | grep texlive-substitutefont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-substitutefont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-substitutefont-doc + CHECK_RESULT $? 0 0 "install texlive-substitutefont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-substitutefont-doc + CHECK_RESULT $? 0 0 "remove texlive-substitutefont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substitutefont.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substitutefont.sh new file mode 100644 index 0000000000000000000000000000000000000000..159afc78600cc3550289ac1b5a071c0548ef2c1f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substitutefont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-substitutefont | grep -v \.src | grep texlive-substitutefont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-substitutefont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-substitutefont + CHECK_RESULT $? 0 0 "install texlive-substitutefont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-substitutefont + CHECK_RESULT $? 0 0 "remove texlive-substitutefont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substr-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6e35c7b3c77eca5c1c1efd4dc2cbdd64c80f736 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-substr-doc | grep -v \.src | grep texlive-substr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-substr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-substr-doc + CHECK_RESULT $? 0 0 "install texlive-substr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-substr-doc + CHECK_RESULT $? 0 0 "remove texlive-substr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substr.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substr.sh new file mode 100644 index 0000000000000000000000000000000000000000..00b033871e156527ac4145b13a3317e9d4767fe1 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-substr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-substr | grep -v \.src | grep texlive-substr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-substr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-substr + CHECK_RESULT $? 0 0 "install texlive-substr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-substr + CHECK_RESULT $? 0 0 "remove texlive-substr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subsupscripts-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subsupscripts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..733bf84171dbdc9123388103f1550c789e07cd5f --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subsupscripts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subsupscripts-doc | grep -v \.src | grep texlive-subsupscripts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subsupscripts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subsupscripts-doc + CHECK_RESULT $? 0 0 "install texlive-subsupscripts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subsupscripts-doc + CHECK_RESULT $? 0 0 "remove texlive-subsupscripts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subsupscripts.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subsupscripts.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc4bfcbb2e258060124ff6ebcb754fcd49c2f0bc --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-subsupscripts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subsupscripts | grep -v \.src | grep texlive-subsupscripts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subsupscripts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subsupscripts + CHECK_RESULT $? 0 0 "install texlive-subsupscripts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subsupscripts + CHECK_RESULT $? 0 0 "remove texlive-subsupscripts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudoku-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudoku-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..82a527476ebbbda9ed2dfc12d7d2f1f3e3127a2b --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudoku-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sudoku-doc | grep -v \.src | grep texlive-sudoku-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sudoku-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sudoku-doc + CHECK_RESULT $? 0 0 "install texlive-sudoku-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sudoku-doc + CHECK_RESULT $? 0 0 "remove texlive-sudoku-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudoku.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudoku.sh new file mode 100644 index 0000000000000000000000000000000000000000..84f98c4bd6629cce9c1a8d0eddb51928eec683cd --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudoku.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sudoku | grep -v \.src | grep texlive-sudoku + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sudoku" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sudoku + CHECK_RESULT $? 0 0 "install texlive-sudoku failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sudoku + CHECK_RESULT $? 0 0 "remove texlive-sudoku failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudokubundle-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudokubundle-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..93e209cdb903df381f428821e2464772a2c2155d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudokubundle-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sudokubundle-doc | grep -v \.src | grep texlive-sudokubundle-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sudokubundle-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sudokubundle-doc + CHECK_RESULT $? 0 0 "install texlive-sudokubundle-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sudokubundle-doc + CHECK_RESULT $? 0 0 "remove texlive-sudokubundle-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudokubundle.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudokubundle.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c4189204c3a1bf406fd57f93162c0d5a499d4fd --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sudokubundle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sudokubundle | grep -v \.src | grep texlive-sudokubundle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sudokubundle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sudokubundle + CHECK_RESULT $? 0 0 "install texlive-sudokubundle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sudokubundle + CHECK_RESULT $? 0 0 "remove texlive-sudokubundle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suftesi-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suftesi-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7925b3fae5dd0c42c3e0154094e98aaf43ccb9a --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suftesi-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-suftesi-doc | grep -v \.src | grep texlive-suftesi-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-suftesi-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-suftesi-doc + CHECK_RESULT $? 0 0 "install texlive-suftesi-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-suftesi-doc + CHECK_RESULT $? 0 0 "remove texlive-suftesi-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suftesi.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suftesi.sh new file mode 100644 index 0000000000000000000000000000000000000000..1031120217a6c8f476d44ee5c455cff36e94bd45 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-suftesi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-suftesi | grep -v \.src | grep texlive-suftesi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-suftesi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-suftesi + CHECK_RESULT $? 0 0 "install texlive-suftesi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-suftesi + CHECK_RESULT $? 0 0 "remove texlive-suftesi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sugconf-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sugconf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b194000a0f015374b10324f14dd8c9368f88fd4e --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sugconf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sugconf-doc | grep -v \.src | grep texlive-sugconf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sugconf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sugconf-doc + CHECK_RESULT $? 0 0 "install texlive-sugconf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sugconf-doc + CHECK_RESULT $? 0 0 "remove texlive-sugconf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sugconf.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sugconf.sh new file mode 100644 index 0000000000000000000000000000000000000000..b88bea17625eb04cf6813cf6d8028722bc51923b --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sugconf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sugconf | grep -v \.src | grep texlive-sugconf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sugconf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sugconf + CHECK_RESULT $? 0 0 "install texlive-sugconf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sugconf + CHECK_RESULT $? 0 0 "remove texlive-sugconf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-superiors-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-superiors-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c28efdef2e2535a75dee42b492dbaa2371f6ec66 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-superiors-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-superiors-doc | grep -v \.src | grep texlive-superiors-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-superiors-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-superiors-doc + CHECK_RESULT $? 0 0 "install texlive-superiors-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-superiors-doc + CHECK_RESULT $? 0 0 "remove texlive-superiors-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-superiors.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-superiors.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ac5b67f909337f761fa6fada9e806e59e17c932 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-superiors.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-superiors | grep -v \.src | grep texlive-superiors + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-superiors" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-superiors + CHECK_RESULT $? 0 0 "install texlive-superiors failed" + SLEEP_WAIT 1 + dnf remove -y texlive-superiors + CHECK_RESULT $? 0 0 "remove texlive-superiors failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-supertabular-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-supertabular-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6269b33eacb9d355dc34c495ab2ab8ac9c19a22 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-supertabular-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-supertabular-doc | grep -v \.src | grep texlive-supertabular-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-supertabular-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-supertabular-doc + CHECK_RESULT $? 0 0 "install texlive-supertabular-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-supertabular-doc + CHECK_RESULT $? 0 0 "remove texlive-supertabular-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-supertabular.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-supertabular.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d41d5a23434790198e1614e8ecfd0252a80b28e --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-supertabular.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-supertabular | grep -v \.src | grep texlive-supertabular + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-supertabular" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-supertabular + CHECK_RESULT $? 0 0 "install texlive-supertabular failed" + SLEEP_WAIT 1 + dnf remove -y texlive-supertabular + CHECK_RESULT $? 0 0 "remove texlive-supertabular failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-susy-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-susy-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0af7def1faff199e674c0b0b6a50d69a72dc3676 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-susy-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-susy-doc | grep -v \.src | grep texlive-susy-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-susy-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-susy-doc + CHECK_RESULT $? 0 0 "install texlive-susy-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-susy-doc + CHECK_RESULT $? 0 0 "remove texlive-susy-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-susy.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-susy.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcb35ab0da0182a7d24581456f8257ad9abedbed --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-susy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-susy | grep -v \.src | grep texlive-susy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-susy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-susy + CHECK_RESULT $? 0 0 "install texlive-susy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-susy + CHECK_RESULT $? 0 0 "remove texlive-susy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svg-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4da7ef4b2bf8e9be3b89761bd66ea7baa25f4c81 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svg-doc | grep -v \.src | grep texlive-svg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svg-doc + CHECK_RESULT $? 0 0 "install texlive-svg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svg-doc + CHECK_RESULT $? 0 0 "remove texlive-svg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svg-inkscape-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svg-inkscape-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc62297f25236aca2556feaa1649be6b338c0383 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svg-inkscape-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svg-inkscape-doc | grep -v \.src | grep texlive-svg-inkscape-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svg-inkscape-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svg-inkscape-doc + CHECK_RESULT $? 0 0 "install texlive-svg-inkscape-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svg-inkscape-doc + CHECK_RESULT $? 0 0 "remove texlive-svg-inkscape-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svg.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svg.sh new file mode 100644 index 0000000000000000000000000000000000000000..16c1063b3f212ae480bedc8e81075fa03c76b31e --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svg | grep -v \.src | grep texlive-svg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svg + CHECK_RESULT $? 0 0 "install texlive-svg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svg + CHECK_RESULT $? 0 0 "remove texlive-svg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svgcolor-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svgcolor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8f92081f6c72e64147d6d57257a43811b8c9198 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svgcolor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svgcolor-doc | grep -v \.src | grep texlive-svgcolor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svgcolor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svgcolor-doc + CHECK_RESULT $? 0 0 "install texlive-svgcolor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svgcolor-doc + CHECK_RESULT $? 0 0 "remove texlive-svgcolor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svgcolor.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svgcolor.sh new file mode 100644 index 0000000000000000000000000000000000000000..c203f41540953ac302161d12bca11c0406524fa7 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svgcolor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svgcolor | grep -v \.src | grep texlive-svgcolor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svgcolor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svgcolor + CHECK_RESULT $? 0 0 "install texlive-svgcolor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svgcolor + CHECK_RESULT $? 0 0 "remove texlive-svgcolor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..61927ca7a39bed0b4fd54c29b0f5fe562ad1ae41 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svn-doc | grep -v \.src | grep texlive-svn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svn-doc + CHECK_RESULT $? 0 0 "install texlive-svn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svn-doc + CHECK_RESULT $? 0 0 "remove texlive-svn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn-prov-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn-prov-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aac8e1f2d1cda0735c153b6e88c18955ffd9e6df --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn-prov-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svn-prov-doc | grep -v \.src | grep texlive-svn-prov-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svn-prov-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svn-prov-doc + CHECK_RESULT $? 0 0 "install texlive-svn-prov-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svn-prov-doc + CHECK_RESULT $? 0 0 "remove texlive-svn-prov-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn-prov.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn-prov.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5998b9d2e5b1755bf1dea427ecb127485a65590 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn-prov.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svn-prov | grep -v \.src | grep texlive-svn-prov + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svn-prov" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svn-prov + CHECK_RESULT $? 0 0 "install texlive-svn-prov failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svn-prov + CHECK_RESULT $? 0 0 "remove texlive-svn-prov failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef3382beca02493912a28bd9128a23d9bffc4161 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svn | grep -v \.src | grep texlive-svn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svn + CHECK_RESULT $? 0 0 "install texlive-svn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svn + CHECK_RESULT $? 0 0 "remove texlive-svn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svninfo-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svninfo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5fecd04471c0da0db3ab4f20c6cf9ee8a7882ec --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svninfo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svninfo-doc | grep -v \.src | grep texlive-svninfo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svninfo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svninfo-doc + CHECK_RESULT $? 0 0 "install texlive-svninfo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svninfo-doc + CHECK_RESULT $? 0 0 "remove texlive-svninfo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svninfo.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svninfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6f0d2b504d5df0c22dd712034e9841112088fe9 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svninfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svninfo | grep -v \.src | grep texlive-svninfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svninfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svninfo + CHECK_RESULT $? 0 0 "install texlive-svninfo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svninfo + CHECK_RESULT $? 0 0 "remove texlive-svninfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svrsymbols-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svrsymbols-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..96826d00dad95c2795c182674657d80e16cd50ca --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svrsymbols-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svrsymbols-doc | grep -v \.src | grep texlive-svrsymbols-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svrsymbols-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svrsymbols-doc + CHECK_RESULT $? 0 0 "install texlive-svrsymbols-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svrsymbols-doc + CHECK_RESULT $? 0 0 "remove texlive-svrsymbols-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svrsymbols.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svrsymbols.sh new file mode 100644 index 0000000000000000000000000000000000000000..b68b6e3717be2aaf1a39fe076a6fb547baa13419 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-svrsymbols.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-svrsymbols | grep -v \.src | grep texlive-svrsymbols + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-svrsymbols" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-svrsymbols + CHECK_RESULT $? 0 0 "install texlive-svrsymbols failed" + SLEEP_WAIT 1 + dnf remove -y texlive-svrsymbols + CHECK_RESULT $? 0 0 "remove texlive-svrsymbols failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swebib-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swebib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f45b5f74382e599dcbb84cbfb2f2df21a5524b1d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swebib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-swebib-doc | grep -v \.src | grep texlive-swebib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-swebib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-swebib-doc + CHECK_RESULT $? 0 0 "install texlive-swebib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-swebib-doc + CHECK_RESULT $? 0 0 "remove texlive-swebib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swebib.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swebib.sh new file mode 100644 index 0000000000000000000000000000000000000000..119431dd29c24a0ca46456d9c6f4745a52061e89 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swebib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-swebib | grep -v \.src | grep texlive-swebib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-swebib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-swebib + CHECK_RESULT $? 0 0 "install texlive-swebib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-swebib + CHECK_RESULT $? 0 0 "remove texlive-swebib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swimgraf-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swimgraf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..134dfb0456cc421571f7c14e581de556d714cbb5 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swimgraf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-swimgraf-doc | grep -v \.src | grep texlive-swimgraf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-swimgraf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-swimgraf-doc + CHECK_RESULT $? 0 0 "install texlive-swimgraf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-swimgraf-doc + CHECK_RESULT $? 0 0 "remove texlive-swimgraf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swimgraf.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swimgraf.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ec639eaf89cd0b9703eca49deed4cb0f0b35123 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-swimgraf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-swimgraf | grep -v \.src | grep texlive-swimgraf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-swimgraf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-swimgraf + CHECK_RESULT $? 0 0 "install texlive-swimgraf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-swimgraf + CHECK_RESULT $? 0 0 "remove texlive-swimgraf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syllogism-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syllogism-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5785e086ac351305ee1dfe9fa50bcc832a0ff134 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syllogism-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-syllogism-doc | grep -v \.src | grep texlive-syllogism-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-syllogism-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-syllogism-doc + CHECK_RESULT $? 0 0 "install texlive-syllogism-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-syllogism-doc + CHECK_RESULT $? 0 0 "remove texlive-syllogism-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syllogism.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syllogism.sh new file mode 100644 index 0000000000000000000000000000000000000000..9181c3f5c3fccda7660f929a4642e0c4b76b3627 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syllogism.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-syllogism | grep -v \.src | grep texlive-syllogism + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-syllogism" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-syllogism + CHECK_RESULT $? 0 0 "install texlive-syllogism failed" + SLEEP_WAIT 1 + dnf remove -y texlive-syllogism + CHECK_RESULT $? 0 0 "remove texlive-syllogism failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-symbol.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-symbol.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ec6c0cb741ec5df7ed21ab2d3c2a5accd66bc7d --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-symbol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-symbol | grep -v \.src | grep texlive-symbol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-symbol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-symbol + CHECK_RESULT $? 0 0 "install texlive-symbol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-symbol + CHECK_RESULT $? 0 0 "remove texlive-symbol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sympytexpackage-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sympytexpackage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d59bd4f6015217065d7ad2de6c656165510cfc7 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sympytexpackage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sympytexpackage-doc | grep -v \.src | grep texlive-sympytexpackage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sympytexpackage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sympytexpackage-doc + CHECK_RESULT $? 0 0 "install texlive-sympytexpackage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sympytexpackage-doc + CHECK_RESULT $? 0 0 "remove texlive-sympytexpackage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sympytexpackage.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sympytexpackage.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c1baa533f95e9f9dd425bad8355bcd0df0d67cd --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-sympytexpackage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sympytexpackage | grep -v \.src | grep texlive-sympytexpackage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sympytexpackage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sympytexpackage + CHECK_RESULT $? 0 0 "install texlive-sympytexpackage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sympytexpackage + CHECK_RESULT $? 0 0 "remove texlive-sympytexpackage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synproof-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synproof-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..af0c37b42d9b62dcbaaba83860878f2b3c268353 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synproof-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-synproof-doc | grep -v \.src | grep texlive-synproof-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-synproof-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-synproof-doc + CHECK_RESULT $? 0 0 "install texlive-synproof-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-synproof-doc + CHECK_RESULT $? 0 0 "remove texlive-synproof-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synproof.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synproof.sh new file mode 100644 index 0000000000000000000000000000000000000000..541eed394f850c5f8b6408af9e9de7a851e69d09 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synproof.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-synproof | grep -v \.src | grep texlive-synproof + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-synproof" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-synproof + CHECK_RESULT $? 0 0 "install texlive-synproof failed" + SLEEP_WAIT 1 + dnf remove -y texlive-synproof + CHECK_RESULT $? 0 0 "remove texlive-synproof failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntax-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntax-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cab6c4397d26c1bcf1ea0fc7fdb03e86d2ed48f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntax-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-syntax-doc | grep -v \.src | grep texlive-syntax-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-syntax-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-syntax-doc + CHECK_RESULT $? 0 0 "install texlive-syntax-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-syntax-doc + CHECK_RESULT $? 0 0 "remove texlive-syntax-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntax.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntax.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ecb9cefa43e423c4b3f80aceba9ee573db666d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntax.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-syntax | grep -v \.src | grep texlive-syntax + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-syntax" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-syntax + CHECK_RESULT $? 0 0 "install texlive-syntax failed" + SLEEP_WAIT 1 + dnf remove -y texlive-syntax + CHECK_RESULT $? 0 0 "remove texlive-syntax failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntrace-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntrace-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b9e5e519dee456443ab043c83c8ea429dd76ead --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntrace-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-syntrace-doc | grep -v \.src | grep texlive-syntrace-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-syntrace-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-syntrace-doc + CHECK_RESULT $? 0 0 "install texlive-syntrace-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-syntrace-doc + CHECK_RESULT $? 0 0 "remove texlive-syntrace-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntrace.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntrace.sh new file mode 100644 index 0000000000000000000000000000000000000000..66b50322d1b9635ef35af73c38259a580bb80e6e --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-syntrace.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-syntrace | grep -v \.src | grep texlive-syntrace + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-syntrace" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-syntrace + CHECK_RESULT $? 0 0 "install texlive-syntrace failed" + SLEEP_WAIT 1 + dnf remove -y texlive-syntrace + CHECK_RESULT $? 0 0 "remove texlive-syntrace failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synttree-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synttree-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a0b505dfce2e58e161322c00ab9fd3e4119ae66 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synttree-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-synttree-doc | grep -v \.src | grep texlive-synttree-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-synttree-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-synttree-doc + CHECK_RESULT $? 0 0 "install texlive-synttree-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-synttree-doc + CHECK_RESULT $? 0 0 "remove texlive-synttree-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synttree.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synttree.sh new file mode 100644 index 0000000000000000000000000000000000000000..03e1947b9971b3f8f6f6aa382d5fc2d688ac56c1 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-synttree.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-synttree | grep -v \.src | grep texlive-synttree + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-synttree" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-synttree + CHECK_RESULT $? 0 0 "install texlive-synttree failed" + SLEEP_WAIT 1 + dnf remove -y texlive-synttree + CHECK_RESULT $? 0 0 "remove texlive-synttree failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-systeme-doc.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-systeme-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fd214b0ee109783fa42585052e6f389659fceb8 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-systeme-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-systeme-doc | grep -v \.src | grep texlive-systeme-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-systeme-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-systeme-doc + CHECK_RESULT $? 0 0 "install texlive-systeme-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-systeme-doc + CHECK_RESULT $? 0 0 "remove texlive-systeme-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-systeme.sh b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-systeme.sh new file mode 100644 index 0000000000000000000000000000000000000000..07480ab6fc8e759b0e0949cb90500525d9901e75 --- /dev/null +++ b/testcases/cli-test/texlive-split-v/oe_test_texlive-split-v_install_and_remove_texlive-systeme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-systeme | grep -v \.src | grep texlive-systeme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-systeme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-systeme + CHECK_RESULT $? 0 0 "install texlive-systeme failed" + SLEEP_WAIT 1 + dnf remove -y texlive-systeme + CHECK_RESULT $? 0 0 "remove texlive-systeme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-aalok.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-aalok.sh new file mode 100644 index 0000000000000000000000000000000000000000..0776349163fa3e384c38eb84940a2a63ce256189 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-aalok.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aalok | grep -v \.src | grep texlive-aalok + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aalok" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aalok + CHECK_RESULT $? 0 0 "install texlive-aalok failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aalok + CHECK_RESULT $? 0 0 "remove texlive-aalok failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-aesupp.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-aesupp.sh new file mode 100644 index 0000000000000000000000000000000000000000..378c2263b0905d690490f6564b2a9cf0ead9688b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-aesupp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aesupp | grep -v \.src | grep texlive-aesupp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aesupp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aesupp + CHECK_RESULT $? 0 0 "install texlive-aesupp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aesupp + CHECK_RESULT $? 0 0 "remove texlive-aesupp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-akshar.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-akshar.sh new file mode 100644 index 0000000000000000000000000000000000000000..27b85624cdd58c1d94e20ddb562b6ef922746612 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-akshar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-akshar | grep -v \.src | grep texlive-akshar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-akshar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-akshar + CHECK_RESULT $? 0 0 "install texlive-akshar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-akshar + CHECK_RESULT $? 0 0 "remove texlive-akshar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-algpseudocodex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-algpseudocodex.sh new file mode 100644 index 0000000000000000000000000000000000000000..539531454fe47133657ae6f1f39d4bb910219966 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-algpseudocodex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-algpseudocodex | grep -v \.src | grep texlive-algpseudocodex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-algpseudocodex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-algpseudocodex + CHECK_RESULT $? 0 0 "install texlive-algpseudocodex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-algpseudocodex + CHECK_RESULT $? 0 0 "remove texlive-algpseudocodex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-anonymous-acm.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-anonymous-acm.sh new file mode 100644 index 0000000000000000000000000000000000000000..a56b328b58d5895ec0646384600081696034e779 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-anonymous-acm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-anonymous-acm | grep -v \.src | grep texlive-anonymous-acm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-anonymous-acm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-anonymous-acm + CHECK_RESULT $? 0 0 "install texlive-anonymous-acm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-anonymous-acm + CHECK_RESULT $? 0 0 "remove texlive-anonymous-acm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-antanilipsum.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-antanilipsum.sh new file mode 100644 index 0000000000000000000000000000000000000000..309e2d11c29248c1b40ce09af4501047f575ef49 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-antanilipsum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-antanilipsum | grep -v \.src | grep texlive-antanilipsum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-antanilipsum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-antanilipsum + CHECK_RESULT $? 0 0 "install texlive-antanilipsum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-antanilipsum + CHECK_RESULT $? 0 0 "remove texlive-antanilipsum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-association-matrix.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-association-matrix.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcb0a097a39eb74e521ccf2c960cf990d41d757f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-association-matrix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-association-matrix | grep -v \.src | grep texlive-association-matrix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-association-matrix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-association-matrix + CHECK_RESULT $? 0 0 "install texlive-association-matrix failed" + SLEEP_WAIT 1 + dnf remove -y texlive-association-matrix + CHECK_RESULT $? 0 0 "remove texlive-association-matrix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-atkinson.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-atkinson.sh new file mode 100644 index 0000000000000000000000000000000000000000..16b903f25aba01b369520790411f830497d7df3a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-atkinson.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-atkinson | grep -v \.src | grep texlive-atkinson + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-atkinson" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-atkinson + CHECK_RESULT $? 0 0 "install texlive-atkinson failed" + SLEEP_WAIT 1 + dnf remove -y texlive-atkinson + CHECK_RESULT $? 0 0 "remove texlive-atkinson failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamerappendixnote.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamerappendixnote.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c6f1a236622e4f9952cc0df51562810d13bf3a4 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamerappendixnote.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-beamerappendixnote | grep -v \.src | grep texlive-beamerappendixnote + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-beamerappendixnote" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-beamerappendixnote + CHECK_RESULT $? 0 0 "install texlive-beamerappendixnote failed" + SLEEP_WAIT 1 + dnf remove -y texlive-beamerappendixnote + CHECK_RESULT $? 0 0 "remove texlive-beamerappendixnote failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamertheme-pure-minimalistic.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamertheme-pure-minimalistic.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3d918817cebcdbb553fe12f180a00a5ec3b4c9b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamertheme-pure-minimalistic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-beamertheme-pure-minimalistic | grep -v \.src | grep texlive-beamertheme-pure-minimalistic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-beamertheme-pure-minimalistic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-beamertheme-pure-minimalistic + CHECK_RESULT $? 0 0 "install texlive-beamertheme-pure-minimalistic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-beamertheme-pure-minimalistic + CHECK_RESULT $? 0 0 "remove texlive-beamertheme-pure-minimalistic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamertheme-trigon.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamertheme-trigon.sh new file mode 100644 index 0000000000000000000000000000000000000000..195889abde0b07d49dc36b75149f56a1ab6cdad4 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamertheme-trigon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-beamertheme-trigon | grep -v \.src | grep texlive-beamertheme-trigon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-beamertheme-trigon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-beamertheme-trigon + CHECK_RESULT $? 0 0 "install texlive-beamertheme-trigon failed" + SLEEP_WAIT 1 + dnf remove -y texlive-beamertheme-trigon + CHECK_RESULT $? 0 0 "remove texlive-beamertheme-trigon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamerthemelalic.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamerthemelalic.sh new file mode 100644 index 0000000000000000000000000000000000000000..3089ddd352df1d9aa71e5bc14ba05cc25641ff68 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamerthemelalic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-beamerthemelalic | grep -v \.src | grep texlive-beamerthemelalic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-beamerthemelalic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-beamerthemelalic + CHECK_RESULT $? 0 0 "install texlive-beamerthemelalic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-beamerthemelalic + CHECK_RESULT $? 0 0 "remove texlive-beamerthemelalic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamerthemenord.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamerthemenord.sh new file mode 100644 index 0000000000000000000000000000000000000000..72e79eefbed2d39496d387a47ee6b6c1b6d8d7c3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beamerthemenord.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-beamerthemenord | grep -v \.src | grep texlive-beamerthemenord + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-beamerthemenord" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-beamerthemenord + CHECK_RESULT $? 0 0 "install texlive-beamerthemenord failed" + SLEEP_WAIT 1 + dnf remove -y texlive-beamerthemenord + CHECK_RESULT $? 0 0 "remove texlive-beamerthemenord failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beaulivre.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beaulivre.sh new file mode 100644 index 0000000000000000000000000000000000000000..23d0ef5e5825d0cbccc7d41f1620e716f8bdfcbc --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-beaulivre.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-beaulivre | grep -v \.src | grep texlive-beaulivre + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-beaulivre" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-beaulivre + CHECK_RESULT $? 0 0 "install texlive-beaulivre failed" + SLEEP_WAIT 1 + dnf remove -y texlive-beaulivre + CHECK_RESULT $? 0 0 "remove texlive-beaulivre failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-biblatex-license.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-biblatex-license.sh new file mode 100644 index 0000000000000000000000000000000000000000..df4ba1be0c963fb6cca896c447271040fd67a569 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-biblatex-license.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex-license | grep -v \.src | grep texlive-biblatex-license + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex-license" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex-license + CHECK_RESULT $? 0 0 "install texlive-biblatex-license failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex-license + CHECK_RESULT $? 0 0 "remove texlive-biblatex-license failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-biblatex-unified.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-biblatex-unified.sh new file mode 100644 index 0000000000000000000000000000000000000000..64d50e490cd36104d6f8dcabad06a2ff4eddd2cb --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-biblatex-unified.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex-unified | grep -v \.src | grep texlive-biblatex-unified + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex-unified" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex-unified + CHECK_RESULT $? 0 0 "install texlive-biblatex-unified failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex-unified + CHECK_RESULT $? 0 0 "remove texlive-biblatex-unified failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-biblatex-vancouver.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-biblatex-vancouver.sh new file mode 100644 index 0000000000000000000000000000000000000000..13aef746e4161276c54e722e80ad34be4a9e60b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-biblatex-vancouver.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex-vancouver | grep -v \.src | grep texlive-biblatex-vancouver + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex-vancouver" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex-vancouver + CHECK_RESULT $? 0 0 "install texlive-biblatex-vancouver failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex-vancouver + CHECK_RESULT $? 0 0 "remove texlive-biblatex-vancouver failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bithesis.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bithesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6f5d8d2f65e359b5acd87fcf2f3d939565ec52b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bithesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bithesis | grep -v \.src | grep texlive-bithesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bithesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bithesis + CHECK_RESULT $? 0 0 "install texlive-bithesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bithesis + CHECK_RESULT $? 0 0 "remove texlive-bithesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bookshelf.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bookshelf.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c67d5bcaed970538b343ce485c947c8e2eaa963 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bookshelf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookshelf | grep -v \.src | grep texlive-bookshelf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookshelf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookshelf + CHECK_RESULT $? 0 0 "install texlive-bookshelf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookshelf + CHECK_RESULT $? 0 0 "remove texlive-bookshelf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bubblesort.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bubblesort.sh new file mode 100644 index 0000000000000000000000000000000000000000..3626e70716ca36ccc0a766579a00785519e5c14b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bubblesort.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bubblesort | grep -v \.src | grep texlive-bubblesort + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bubblesort" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bubblesort + CHECK_RESULT $? 0 0 "install texlive-bubblesort failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bubblesort + CHECK_RESULT $? 0 0 "remove texlive-bubblesort failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-buctthesis.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-buctthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..75f66597a079328b69cefffc3c8a72111e4b7b4a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-buctthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-buctthesis | grep -v \.src | grep texlive-buctthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-buctthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-buctthesis + CHECK_RESULT $? 0 0 "install texlive-buctthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-buctthesis + CHECK_RESULT $? 0 0 "remove texlive-buctthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bxjatoucs.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bxjatoucs.sh new file mode 100644 index 0000000000000000000000000000000000000000..4519c97499865a814643a04172153eaee3432caf --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-bxjatoucs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxjatoucs | grep -v \.src | grep texlive-bxjatoucs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxjatoucs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxjatoucs + CHECK_RESULT $? 0 0 "install texlive-bxjatoucs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxjatoucs + CHECK_RESULT $? 0 0 "remove texlive-bxjatoucs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-byo-twemojis.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-byo-twemojis.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ae539d1d2850abe6f67ac1f4dc44dd85b4335d4 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-byo-twemojis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-byo-twemojis | grep -v \.src | grep texlive-byo-twemojis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-byo-twemojis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-byo-twemojis + CHECK_RESULT $? 0 0 "install texlive-byo-twemojis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-byo-twemojis + CHECK_RESULT $? 0 0 "remove texlive-byo-twemojis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-cascadia-code.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-cascadia-code.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ea68b7a8050be4e7608e6e1ae11bd639bb78039 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-cascadia-code.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cascadia-code | grep -v \.src | grep texlive-cascadia-code + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cascadia-code" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cascadia-code + CHECK_RESULT $? 0 0 "install texlive-cascadia-code failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cascadia-code + CHECK_RESULT $? 0 0 "remove texlive-cascadia-code failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-causets.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-causets.sh new file mode 100644 index 0000000000000000000000000000000000000000..3895ec1be18ea93f1ebe3b3278f7c875228dd0a3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-causets.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-causets | grep -v \.src | grep texlive-causets + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-causets" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-causets + CHECK_RESULT $? 0 0 "install texlive-causets failed" + SLEEP_WAIT 1 + dnf remove -y texlive-causets + CHECK_RESULT $? 0 0 "remove texlive-causets failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-charissil.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-charissil.sh new file mode 100644 index 0000000000000000000000000000000000000000..38a8bf3d706d985d16a2e7842417032d58581302 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-charissil.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-charissil | grep -v \.src | grep texlive-charissil + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-charissil" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-charissil + CHECK_RESULT $? 0 0 "install texlive-charissil failed" + SLEEP_WAIT 1 + dnf remove -y texlive-charissil + CHECK_RESULT $? 0 0 "remove texlive-charissil failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chhaya.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chhaya.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1f311d4b98aa80073158e0c6361d1ccab849429 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chhaya.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chhaya | grep -v \.src | grep texlive-chhaya + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chhaya" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chhaya + CHECK_RESULT $? 0 0 "install texlive-chhaya failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chhaya + CHECK_RESULT $? 0 0 "remove texlive-chhaya failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chicagoa.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chicagoa.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b9e07db114a5e2484d4eb2ca5e008173dd8de3f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chicagoa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chicagoa | grep -v \.src | grep texlive-chicagoa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chicagoa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chicagoa + CHECK_RESULT $? 0 0 "install texlive-chicagoa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chicagoa + CHECK_RESULT $? 0 0 "remove texlive-chicagoa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chifoot.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chifoot.sh new file mode 100644 index 0000000000000000000000000000000000000000..7556bd9899d239f5f5f443f96c4999840da3dbc3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chifoot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chifoot | grep -v \.src | grep texlive-chifoot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chifoot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chifoot + CHECK_RESULT $? 0 0 "install texlive-chifoot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chifoot + CHECK_RESULT $? 0 0 "remove texlive-chifoot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chinese-jfm.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chinese-jfm.sh new file mode 100644 index 0000000000000000000000000000000000000000..f45f89bf87508da6927bd63492f0290926c7e4a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-chinese-jfm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chinese-jfm | grep -v \.src | grep texlive-chinese-jfm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chinese-jfm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chinese-jfm + CHECK_RESULT $? 0 0 "install texlive-chinese-jfm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chinese-jfm + CHECK_RESULT $? 0 0 "remove texlive-chinese-jfm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-cmupint.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-cmupint.sh new file mode 100644 index 0000000000000000000000000000000000000000..8300894160917c6f433c5b883e34b6d33d7b392f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-cmupint.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmupint | grep -v \.src | grep texlive-cmupint + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmupint" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmupint + CHECK_RESULT $? 0 0 "install texlive-cmupint failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmupint + CHECK_RESULT $? 0 0 "remove texlive-cmupint failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-coffeestains.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-coffeestains.sh new file mode 100644 index 0000000000000000000000000000000000000000..488a94ff40a11b1593d49eb7454972f6c29fe1a1 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-coffeestains.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coffeestains | grep -v \.src | grep texlive-coffeestains + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coffeestains" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coffeestains + CHECK_RESULT $? 0 0 "install texlive-coffeestains failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coffeestains + CHECK_RESULT $? 0 0 "remove texlive-coffeestains failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-color-edits.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-color-edits.sh new file mode 100644 index 0000000000000000000000000000000000000000..b50a26c46bb2a46424a565301a30843f56b11146 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-color-edits.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-color-edits | grep -v \.src | grep texlive-color-edits + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-color-edits" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-color-edits + CHECK_RESULT $? 0 0 "install texlive-color-edits failed" + SLEEP_WAIT 1 + dnf remove -y texlive-color-edits + CHECK_RESULT $? 0 0 "remove texlive-color-edits failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-colorist.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-colorist.sh new file mode 100644 index 0000000000000000000000000000000000000000..4095ef9cf40e5378bcde1917bc9ab7b1ee00c526 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-colorist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorist | grep -v \.src | grep texlive-colorist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorist + CHECK_RESULT $? 0 0 "install texlive-colorist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorist + CHECK_RESULT $? 0 0 "remove texlive-colorist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-compare.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-compare.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1db6787403e9c3cca862f92d5a8d44bb26c5d42 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-compare.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-compare | grep -v \.src | grep texlive-compare + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-compare" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-compare + CHECK_RESULT $? 0 0 "install texlive-compare failed" + SLEEP_WAIT 1 + dnf remove -y texlive-compare + CHECK_RESULT $? 0 0 "remove texlive-compare failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-conditext.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-conditext.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ba832482de8389b0fcc517947347bdd1248c34e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-conditext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-conditext | grep -v \.src | grep texlive-conditext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-conditext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-conditext + CHECK_RESULT $? 0 0 "install texlive-conditext failed" + SLEEP_WAIT 1 + dnf remove -y texlive-conditext + CHECK_RESULT $? 0 0 "remove texlive-conditext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-datax.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-datax.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6e50db503206f4e0786c990906de7381b6449ae --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-datax.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-datax | grep -v \.src | grep texlive-datax + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-datax" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-datax + CHECK_RESULT $? 0 0 "install texlive-datax failed" + SLEEP_WAIT 1 + dnf remove -y texlive-datax + CHECK_RESULT $? 0 0 "remove texlive-datax failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-decision-table.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-decision-table.sh new file mode 100644 index 0000000000000000000000000000000000000000..649076c13edf836d30f7e91fd3106cd82f32dd7b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-decision-table.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-decision-table | grep -v \.src | grep texlive-decision-table + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-decision-table" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-decision-table + CHECK_RESULT $? 0 0 "install texlive-decision-table failed" + SLEEP_WAIT 1 + dnf remove -y texlive-decision-table + CHECK_RESULT $? 0 0 "remove texlive-decision-table failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-dimnum.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-dimnum.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecc98f38d1f5854245046d988a093d5bdd4e116d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-dimnum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dimnum | grep -v \.src | grep texlive-dimnum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dimnum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dimnum + CHECK_RESULT $? 0 0 "install texlive-dimnum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dimnum + CHECK_RESULT $? 0 0 "remove texlive-dimnum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-docutils.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-docutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9ce0feaf142f5c72aacd655eae9a1d4f43fa33f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-docutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-docutils | grep -v \.src | grep texlive-docutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-docutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-docutils + CHECK_RESULT $? 0 0 "install texlive-docutils failed" + SLEEP_WAIT 1 + dnf remove -y texlive-docutils + CHECK_RESULT $? 0 0 "remove texlive-docutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-doulossil.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-doulossil.sh new file mode 100644 index 0000000000000000000000000000000000000000..5820cf0ad93d4d54d928b8fe7c2ec180620b1f5a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-doulossil.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-doulossil | grep -v \.src | grep texlive-doulossil + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-doulossil" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-doulossil + CHECK_RESULT $? 0 0 "install texlive-doulossil failed" + SLEEP_WAIT 1 + dnf remove -y texlive-doulossil + CHECK_RESULT $? 0 0 "remove texlive-doulossil failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-easybook.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-easybook.sh new file mode 100644 index 0000000000000000000000000000000000000000..84c9df343a0f09a47eae6cd780c986072edb70d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-easybook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easybook | grep -v \.src | grep texlive-easybook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easybook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easybook + CHECK_RESULT $? 0 0 "install texlive-easybook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easybook + CHECK_RESULT $? 0 0 "remove texlive-easybook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-easyfloats.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-easyfloats.sh new file mode 100644 index 0000000000000000000000000000000000000000..80ecef932ee3349b5365014c725415e56b140c0c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-easyfloats.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-easyfloats | grep -v \.src | grep texlive-easyfloats + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-easyfloats" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-easyfloats + CHECK_RESULT $? 0 0 "install texlive-easyfloats failed" + SLEEP_WAIT 1 + dnf remove -y texlive-easyfloats + CHECK_RESULT $? 0 0 "remove texlive-easyfloats failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-econlipsum.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-econlipsum.sh new file mode 100644 index 0000000000000000000000000000000000000000..58b07ccfb7a27c4705231d2a619d342b51faff60 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-econlipsum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-econlipsum | grep -v \.src | grep texlive-econlipsum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-econlipsum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-econlipsum + CHECK_RESULT $? 0 0 "install texlive-econlipsum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-econlipsum + CHECK_RESULT $? 0 0 "remove texlive-econlipsum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-eczar.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-eczar.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb7ba96b6b06b8a5b21cfa7588a2294f4531438f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-eczar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eczar | grep -v \.src | grep texlive-eczar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eczar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eczar + CHECK_RESULT $? 0 0 "install texlive-eczar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eczar + CHECK_RESULT $? 0 0 "remove texlive-eczar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-edichokey.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-edichokey.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1f2ab8272c4bb01bdea0419e87895e72535f061 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-edichokey.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-edichokey | grep -v \.src | grep texlive-edichokey + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-edichokey" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-edichokey + CHECK_RESULT $? 0 0 "install texlive-edichokey failed" + SLEEP_WAIT 1 + dnf remove -y texlive-edichokey + CHECK_RESULT $? 0 0 "remove texlive-edichokey failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-einfart.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-einfart.sh new file mode 100644 index 0000000000000000000000000000000000000000..a402b9739f8c535f000a5eb933472213d7cb054c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-einfart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-einfart | grep -v \.src | grep texlive-einfart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-einfart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-einfart + CHECK_RESULT $? 0 0 "install texlive-einfart failed" + SLEEP_WAIT 1 + dnf remove -y texlive-einfart + CHECK_RESULT $? 0 0 "remove texlive-einfart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ekdosis.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ekdosis.sh new file mode 100644 index 0000000000000000000000000000000000000000..004bbb0fd5936088734a62dd33a4945511683cf3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ekdosis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ekdosis | grep -v \.src | grep texlive-ekdosis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ekdosis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ekdosis + CHECK_RESULT $? 0 0 "install texlive-ekdosis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ekdosis + CHECK_RESULT $? 0 0 "remove texlive-ekdosis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ektype-tanka.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ektype-tanka.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0af52e51a0f7039a2a2a4004dcf6c6b378bb52d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ektype-tanka.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ektype-tanka | grep -v \.src | grep texlive-ektype-tanka + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ektype-tanka" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ektype-tanka + CHECK_RESULT $? 0 0 "install texlive-ektype-tanka failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ektype-tanka + CHECK_RESULT $? 0 0 "remove texlive-ektype-tanka failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-eq-pin2corr.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-eq-pin2corr.sh new file mode 100644 index 0000000000000000000000000000000000000000..311d6e883d5ef04d90db21d3ee7a6f7eabb88dd8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-eq-pin2corr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eq-pin2corr | grep -v \.src | grep texlive-eq-pin2corr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eq-pin2corr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eq-pin2corr + CHECK_RESULT $? 0 0 "install texlive-eq-pin2corr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eq-pin2corr + CHECK_RESULT $? 0 0 "remove texlive-eq-pin2corr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-everysel.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-everysel.sh new file mode 100644 index 0000000000000000000000000000000000000000..eab2fc38371adabc2e22d90c040f64ee2675ece1 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-everysel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-everysel | grep -v \.src | grep texlive-everysel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-everysel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-everysel + CHECK_RESULT $? 0 0 "install texlive-everysel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-everysel + CHECK_RESULT $? 0 0 "remove texlive-everysel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-everyshi.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-everyshi.sh new file mode 100644 index 0000000000000000000000000000000000000000..958827aff0b50ddd2f55bd0ae00f8e77d90e026d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-everyshi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-everyshi | grep -v \.src | grep texlive-everyshi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-everyshi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-everyshi + CHECK_RESULT $? 0 0 "install texlive-everyshi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-everyshi + CHECK_RESULT $? 0 0 "remove texlive-everyshi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-exesheet.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-exesheet.sh new file mode 100644 index 0000000000000000000000000000000000000000..16f3cf948f02870501f4265db62bad25564e5a97 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-exesheet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exesheet | grep -v \.src | grep texlive-exesheet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exesheet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exesheet + CHECK_RESULT $? 0 0 "install texlive-exesheet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exesheet + CHECK_RESULT $? 0 0 "remove texlive-exesheet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-expkv-opt.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-expkv-opt.sh new file mode 100644 index 0000000000000000000000000000000000000000..30b3ffea0927c910e6e1155ea317bccc015830b0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-expkv-opt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expkv-opt | grep -v \.src | grep texlive-expkv-opt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expkv-opt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expkv-opt + CHECK_RESULT $? 0 0 "install texlive-expkv-opt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expkv-opt + CHECK_RESULT $? 0 0 "remove texlive-expkv-opt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-figchild.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-figchild.sh new file mode 100644 index 0000000000000000000000000000000000000000..df97784462343ac73bb5cad266f1e5407c3d5baa --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-figchild.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-figchild | grep -v \.src | grep texlive-figchild + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-figchild" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-figchild + CHECK_RESULT $? 0 0 "install texlive-figchild failed" + SLEEP_WAIT 1 + dnf remove -y texlive-figchild + CHECK_RESULT $? 0 0 "remove texlive-figchild failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-firstaid.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-firstaid.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f2ce46f59389ca3c7c74b8d46ecf1ae4a019382 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-firstaid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-firstaid | grep -v \.src | grep texlive-firstaid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-firstaid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-firstaid + CHECK_RESULT $? 0 0 "install texlive-firstaid failed" + SLEEP_WAIT 1 + dnf remove -y texlive-firstaid + CHECK_RESULT $? 0 0 "remove texlive-firstaid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-foliono.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-foliono.sh new file mode 100644 index 0000000000000000000000000000000000000000..466c12ad1a7de3a572f94d89dde0c6e2aa2cfe0c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-foliono.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-foliono | grep -v \.src | grep texlive-foliono + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-foliono" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-foliono + CHECK_RESULT $? 0 0 "install texlive-foliono failed" + SLEEP_WAIT 1 + dnf remove -y texlive-foliono + CHECK_RESULT $? 0 0 "remove texlive-foliono failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-frimurer.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-frimurer.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c83e68424bc6bcfbb38c8f171d3168a83fe9f8a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-frimurer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frimurer | grep -v \.src | grep texlive-frimurer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frimurer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frimurer + CHECK_RESULT $? 0 0 "install texlive-frimurer failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frimurer + CHECK_RESULT $? 0 0 "remove texlive-frimurer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-froufrou.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-froufrou.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fd17df8decf16a0a1db35a02dc42863d4bb227b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-froufrou.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-froufrou | grep -v \.src | grep texlive-froufrou + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-froufrou" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-froufrou + CHECK_RESULT $? 0 0 "install texlive-froufrou failed" + SLEEP_WAIT 1 + dnf remove -y texlive-froufrou + CHECK_RESULT $? 0 0 "remove texlive-froufrou failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-frpseudocode.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-frpseudocode.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4400684229968af8fd8a3a7967424adb7b99ccc --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-frpseudocode.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frpseudocode | grep -v \.src | grep texlive-frpseudocode + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frpseudocode" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frpseudocode + CHECK_RESULT $? 0 0 "install texlive-frpseudocode failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frpseudocode + CHECK_RESULT $? 0 0 "remove texlive-frpseudocode failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-gckanbun.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-gckanbun.sh new file mode 100644 index 0000000000000000000000000000000000000000..3902b8149db460834b7724e1c72fa3654fbbf9fb --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-gckanbun.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gckanbun | grep -v \.src | grep texlive-gckanbun + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gckanbun" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gckanbun + CHECK_RESULT $? 0 0 "install texlive-gckanbun failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gckanbun + CHECK_RESULT $? 0 0 "remove texlive-gckanbun failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-glossaries-nynorsk.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-glossaries-nynorsk.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb9a4b45c87e4404c017ebe4475d123409b0dfed --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-glossaries-nynorsk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-glossaries-nynorsk | grep -v \.src | grep texlive-glossaries-nynorsk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-glossaries-nynorsk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-glossaries-nynorsk + CHECK_RESULT $? 0 0 "install texlive-glossaries-nynorsk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-glossaries-nynorsk + CHECK_RESULT $? 0 0 "remove texlive-glossaries-nynorsk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-graphpaper.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-graphpaper.sh new file mode 100644 index 0000000000000000000000000000000000000000..29df69175063bd79b0fa0e81c25658efede3789b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-graphpaper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-graphpaper | grep -v \.src | grep texlive-graphpaper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-graphpaper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-graphpaper + CHECK_RESULT $? 0 0 "install texlive-graphpaper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-graphpaper + CHECK_RESULT $? 0 0 "remove texlive-graphpaper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-gridpapers.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-gridpapers.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1113fb69f936008a10d39718f84618c34b0379b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-gridpapers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gridpapers | grep -v \.src | grep texlive-gridpapers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gridpapers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gridpapers + CHECK_RESULT $? 0 0 "install texlive-gridpapers failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gridpapers + CHECK_RESULT $? 0 0 "remove texlive-gridpapers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-gudea.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-gudea.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc95154090b7cd42db543429901ede3ce8b63ae0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-gudea.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gudea | grep -v \.src | grep texlive-gudea + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gudea" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gudea + CHECK_RESULT $? 0 0 "install texlive-gudea failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gudea + CHECK_RESULT $? 0 0 "remove texlive-gudea failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-helmholtz-ellis-ji-notation.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-helmholtz-ellis-ji-notation.sh new file mode 100644 index 0000000000000000000000000000000000000000..029cc8581681bf7198210dbcfb62184e5264969c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-helmholtz-ellis-ji-notation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-helmholtz-ellis-ji-notation | grep -v \.src | grep texlive-helmholtz-ellis-ji-notation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-helmholtz-ellis-ji-notation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-helmholtz-ellis-ji-notation + CHECK_RESULT $? 0 0 "install texlive-helmholtz-ellis-ji-notation failed" + SLEEP_WAIT 1 + dnf remove -y texlive-helmholtz-ellis-ji-notation + CHECK_RESULT $? 0 0 "remove texlive-helmholtz-ellis-ji-notation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-highlightlatex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-highlightlatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..61cef11a19cf65baf5c47bbf13e8048a8332f7d4 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-highlightlatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-highlightlatex | grep -v \.src | grep texlive-highlightlatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-highlightlatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-highlightlatex + CHECK_RESULT $? 0 0 "install texlive-highlightlatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-highlightlatex + CHECK_RESULT $? 0 0 "remove texlive-highlightlatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hindawi-latex-template.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hindawi-latex-template.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1b9bfbdd0e3a4531d8c475727bbb6ac4023e0fb --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hindawi-latex-template.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hindawi-latex-template | grep -v \.src | grep texlive-hindawi-latex-template + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hindawi-latex-template" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hindawi-latex-template + CHECK_RESULT $? 0 0 "install texlive-hindawi-latex-template failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hindawi-latex-template + CHECK_RESULT $? 0 0 "remove texlive-hindawi-latex-template failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hindmadurai.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hindmadurai.sh new file mode 100644 index 0000000000000000000000000000000000000000..f435239b9d8e9605af72df66854facc88d1854fd --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hindmadurai.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hindmadurai | grep -v \.src | grep texlive-hindmadurai + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hindmadurai" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hindmadurai + CHECK_RESULT $? 0 0 "install texlive-hindmadurai failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hindmadurai + CHECK_RESULT $? 0 0 "remove texlive-hindmadurai failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hitreport.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hitreport.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ea74c11de17dcb872e56890d0fa92723cabd812 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hitreport.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hitreport | grep -v \.src | grep texlive-hitreport + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hitreport" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hitreport + CHECK_RESULT $? 0 0 "install texlive-hitreport failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hitreport + CHECK_RESULT $? 0 0 "remove texlive-hitreport failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hopatch.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hopatch.sh new file mode 100644 index 0000000000000000000000000000000000000000..7300f88477e9c2263fc63fba684b92c15c2fed54 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hopatch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hopatch | grep -v \.src | grep texlive-hopatch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hopatch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hopatch + CHECK_RESULT $? 0 0 "install texlive-hopatch failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hopatch + CHECK_RESULT $? 0 0 "remove texlive-hopatch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-huawei.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-huawei.sh new file mode 100644 index 0000000000000000000000000000000000000000..7052a7e0f0dc548d454608df9b79cfba07152cb7 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-huawei.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-huawei | grep -v \.src | grep texlive-huawei + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-huawei" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-huawei + CHECK_RESULT $? 0 0 "install texlive-huawei failed" + SLEEP_WAIT 1 + dnf remove -y texlive-huawei + CHECK_RESULT $? 0 0 "remove texlive-huawei failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hvarabic.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hvarabic.sh new file mode 100644 index 0000000000000000000000000000000000000000..05e0d6ef8b065ad305f41061ab3db430b4fa6941 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hvarabic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hvarabic | grep -v \.src | grep texlive-hvarabic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hvarabic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hvarabic + CHECK_RESULT $? 0 0 "install texlive-hvarabic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hvarabic + CHECK_RESULT $? 0 0 "remove texlive-hvarabic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hypdestopt.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hypdestopt.sh new file mode 100644 index 0000000000000000000000000000000000000000..45734a45fc6b3b640dc2d57c6cca0b79f68c6fbe --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-hypdestopt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hypdestopt | grep -v \.src | grep texlive-hypdestopt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hypdestopt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hypdestopt + CHECK_RESULT $? 0 0 "install texlive-hypdestopt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hypdestopt + CHECK_RESULT $? 0 0 "remove texlive-hypdestopt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-innerscript.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-innerscript.sh new file mode 100644 index 0000000000000000000000000000000000000000..4574376a3c0f93d164929477b0561ccb99892cbc --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-innerscript.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-innerscript | grep -v \.src | grep texlive-innerscript + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-innerscript" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-innerscript + CHECK_RESULT $? 0 0 "install texlive-innerscript failed" + SLEEP_WAIT 1 + dnf remove -y texlive-innerscript + CHECK_RESULT $? 0 0 "remove texlive-innerscript failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-install-latex-guide-zh-cn.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-install-latex-guide-zh-cn.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2d9ecaa459038e1cc70ca550880c23424b306e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-install-latex-guide-zh-cn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-install-latex-guide-zh-cn | grep -v \.src | grep texlive-install-latex-guide-zh-cn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-install-latex-guide-zh-cn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-install-latex-guide-zh-cn + CHECK_RESULT $? 0 0 "install texlive-install-latex-guide-zh-cn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-install-latex-guide-zh-cn + CHECK_RESULT $? 0 0 "remove texlive-install-latex-guide-zh-cn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-inter.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-inter.sh new file mode 100644 index 0000000000000000000000000000000000000000..763394d1220681d632097b35b1f01674926779ef --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-inter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-inter | grep -v \.src | grep texlive-inter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-inter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-inter + CHECK_RESULT $? 0 0 "install texlive-inter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-inter + CHECK_RESULT $? 0 0 "remove texlive-inter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-jupynotex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-jupynotex.sh new file mode 100644 index 0000000000000000000000000000000000000000..03888bf2f6b15e8af0fd0c89ba8c2a45a725e32c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-jupynotex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jupynotex | grep -v \.src | grep texlive-jupynotex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jupynotex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jupynotex + CHECK_RESULT $? 0 0 "install texlive-jupynotex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jupynotex + CHECK_RESULT $? 0 0 "remove texlive-jupynotex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-knuth-errata.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-knuth-errata.sh new file mode 100644 index 0000000000000000000000000000000000000000..29bc055e3de8c2de4e72fbe677f1c99a03e70ee7 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-knuth-errata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-knuth-errata | grep -v \.src | grep texlive-knuth-errata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-knuth-errata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-knuth-errata + CHECK_RESULT $? 0 0 "install texlive-knuth-errata failed" + SLEEP_WAIT 1 + dnf remove -y texlive-knuth-errata + CHECK_RESULT $? 0 0 "remove texlive-knuth-errata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-knuth-pdf.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-knuth-pdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..94221b17716777f9987c12be5fd5727ae17a89c1 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-knuth-pdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-knuth-pdf | grep -v \.src | grep texlive-knuth-pdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-knuth-pdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-knuth-pdf + CHECK_RESULT $? 0 0 "install texlive-knuth-pdf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-knuth-pdf + CHECK_RESULT $? 0 0 "remove texlive-knuth-pdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-kpfonts-otf.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-kpfonts-otf.sh new file mode 100644 index 0000000000000000000000000000000000000000..96954b4c31458835ba6d09a78756262e30017c4e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-kpfonts-otf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kpfonts-otf | grep -v \.src | grep texlive-kpfonts-otf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kpfonts-otf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kpfonts-otf + CHECK_RESULT $? 0 0 "install texlive-kpfonts-otf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kpfonts-otf + CHECK_RESULT $? 0 0 "remove texlive-kpfonts-otf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-latex-firstaid-dev.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-latex-firstaid-dev.sh new file mode 100644 index 0000000000000000000000000000000000000000..523a2b3d5445d6d1740ca6bf2876cca8fc1c8ea3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-latex-firstaid-dev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex-firstaid-dev | grep -v \.src | grep texlive-latex-firstaid-dev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex-firstaid-dev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex-firstaid-dev + CHECK_RESULT $? 0 0 "install texlive-latex-firstaid-dev failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex-firstaid-dev + CHECK_RESULT $? 0 0 "remove texlive-latex-firstaid-dev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lebhart.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lebhart.sh new file mode 100644 index 0000000000000000000000000000000000000000..76a71f156793b8668af9bef48044a3996b40d030 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lebhart.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lebhart | grep -v \.src | grep texlive-lebhart + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lebhart" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lebhart + CHECK_RESULT $? 0 0 "install texlive-lebhart failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lebhart + CHECK_RESULT $? 0 0 "remove texlive-lebhart failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lectureslides.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lectureslides.sh new file mode 100644 index 0000000000000000000000000000000000000000..dcbeb9622b1b5ae7877a8ee4d86c3adc93179079 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lectureslides.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lectureslides | grep -v \.src | grep texlive-lectureslides + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lectureslides" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lectureslides + CHECK_RESULT $? 0 0 "install texlive-lectureslides failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lectureslides + CHECK_RESULT $? 0 0 "remove texlive-lectureslides failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-leftindex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-leftindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a4d56bbd8733a5087af8b105e687dd5354ca497 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-leftindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-leftindex | grep -v \.src | grep texlive-leftindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-leftindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-leftindex + CHECK_RESULT $? 0 0 "install texlive-leftindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-leftindex + CHECK_RESULT $? 0 0 "remove texlive-leftindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lua-physical.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lua-physical.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9afce784e1ba90a2a6e8c7b02ea56ca121c2dc9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lua-physical.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lua-physical | grep -v \.src | grep texlive-lua-physical + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lua-physical" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lua-physical + CHECK_RESULT $? 0 0 "install texlive-lua-physical failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lua-physical + CHECK_RESULT $? 0 0 "remove texlive-lua-physical failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lua-typo.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lua-typo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad07c5a7899c86c0b408d1afb8287caa64518322 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lua-typo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lua-typo | grep -v \.src | grep texlive-lua-typo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lua-typo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lua-typo + CHECK_RESULT $? 0 0 "install texlive-lua-typo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lua-typo + CHECK_RESULT $? 0 0 "remove texlive-lua-typo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lua-uni-algos.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lua-uni-algos.sh new file mode 100644 index 0000000000000000000000000000000000000000..53f7962bd489ae6f3a754284a0146d7f9b4351a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-lua-uni-algos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lua-uni-algos | grep -v \.src | grep texlive-lua-uni-algos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lua-uni-algos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lua-uni-algos + CHECK_RESULT $? 0 0 "install texlive-lua-uni-algos failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lua-uni-algos + CHECK_RESULT $? 0 0 "remove texlive-lua-uni-algos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-luakeys.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-luakeys.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ab88acfa52ba413068ebf4d4ea00e0a3b34546d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-luakeys.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-luakeys | grep -v \.src | grep texlive-luakeys + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-luakeys" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-luakeys + CHECK_RESULT $? 0 0 "install texlive-luakeys failed" + SLEEP_WAIT 1 + dnf remove -y texlive-luakeys + CHECK_RESULT $? 0 0 "remove texlive-luakeys failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-luaprogtable.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-luaprogtable.sh new file mode 100644 index 0000000000000000000000000000000000000000..656dba9739606eea8147cb8c5e6798b3ea3b6146 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-luaprogtable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-luaprogtable | grep -v \.src | grep texlive-luaprogtable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-luaprogtable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-luaprogtable + CHECK_RESULT $? 0 0 "install texlive-luaprogtable failed" + SLEEP_WAIT 1 + dnf remove -y texlive-luaprogtable + CHECK_RESULT $? 0 0 "remove texlive-luaprogtable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-magicnum.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-magicnum.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c924936cbc1d556b60ffc5ef93c5fbdfbddbe9f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-magicnum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-magicnum | grep -v \.src | grep texlive-magicnum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-magicnum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-magicnum + CHECK_RESULT $? 0 0 "install texlive-magicnum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-magicnum + CHECK_RESULT $? 0 0 "remove texlive-magicnum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-magra.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-magra.sh new file mode 100644 index 0000000000000000000000000000000000000000..deac3eb5e372172f2fccb76070f25b78f8f7802b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-magra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-magra | grep -v \.src | grep texlive-magra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-magra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-magra + CHECK_RESULT $? 0 0 "install texlive-magra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-magra + CHECK_RESULT $? 0 0 "remove texlive-magra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mahjong.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mahjong.sh new file mode 100644 index 0000000000000000000000000000000000000000..be599aceb8ebb54f7544faee7bbbd54498c31bae --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mahjong.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mahjong | grep -v \.src | grep texlive-mahjong + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mahjong" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mahjong + CHECK_RESULT $? 0 0 "install texlive-mahjong failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mahjong + CHECK_RESULT $? 0 0 "remove texlive-mahjong failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-marathi.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-marathi.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ae3d17785940d45d2d761d9e6a215ba74b43219 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-marathi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-marathi | grep -v \.src | grep texlive-marathi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-marathi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-marathi + CHECK_RESULT $? 0 0 "install texlive-marathi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-marathi + CHECK_RESULT $? 0 0 "remove texlive-marathi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-matapli.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-matapli.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b9e579954af95b964a9005513f7bbbe108b0640 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-matapli.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-matapli | grep -v \.src | grep texlive-matapli + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-matapli" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-matapli + CHECK_RESULT $? 0 0 "install texlive-matapli failed" + SLEEP_WAIT 1 + dnf remove -y texlive-matapli + CHECK_RESULT $? 0 0 "remove texlive-matapli failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-membranecomputing.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-membranecomputing.sh new file mode 100644 index 0000000000000000000000000000000000000000..65d09afd652e73af0ba1097b1a972e5c1c86d9d0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-membranecomputing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-membranecomputing | grep -v \.src | grep texlive-membranecomputing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-membranecomputing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-membranecomputing + CHECK_RESULT $? 0 0 "install texlive-membranecomputing failed" + SLEEP_WAIT 1 + dnf remove -y texlive-membranecomputing + CHECK_RESULT $? 0 0 "remove texlive-membranecomputing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-menucard.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-menucard.sh new file mode 100644 index 0000000000000000000000000000000000000000..7084dc9e62229090b214dd1e378d10edd3805891 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-menucard.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-menucard | grep -v \.src | grep texlive-menucard + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-menucard" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-menucard + CHECK_RESULT $? 0 0 "install texlive-menucard failed" + SLEEP_WAIT 1 + dnf remove -y texlive-menucard + CHECK_RESULT $? 0 0 "remove texlive-menucard failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-metanorma.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-metanorma.sh new file mode 100644 index 0000000000000000000000000000000000000000..79dfbe50fc319a4c2a20b9d469edcbe4a5aec334 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-metanorma.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-metanorma | grep -v \.src | grep texlive-metanorma + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-metanorma" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-metanorma + CHECK_RESULT $? 0 0 "install texlive-metanorma failed" + SLEEP_WAIT 1 + dnf remove -y texlive-metanorma + CHECK_RESULT $? 0 0 "remove texlive-metanorma failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mindflow.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mindflow.sh new file mode 100644 index 0000000000000000000000000000000000000000..fde8df279538a0a925633f1a60049ebaba39321a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mindflow.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mindflow | grep -v \.src | grep texlive-mindflow + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mindflow" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mindflow + CHECK_RESULT $? 0 0 "install texlive-mindflow failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mindflow + CHECK_RESULT $? 0 0 "remove texlive-mindflow failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-minimalist.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-minimalist.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc1aba51b46201c40752ed917cafc0b41ee92530 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-minimalist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-minimalist | grep -v \.src | grep texlive-minimalist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-minimalist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-minimalist + CHECK_RESULT $? 0 0 "install texlive-minimalist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-minimalist + CHECK_RESULT $? 0 0 "remove texlive-minimalist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mlmodern.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mlmodern.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d05f77ff3c443e49fa6fa7038552fb3e5918475 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mlmodern.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mlmodern | grep -v \.src | grep texlive-mlmodern + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mlmodern" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mlmodern + CHECK_RESULT $? 0 0 "install texlive-mlmodern failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mlmodern + CHECK_RESULT $? 0 0 "remove texlive-mlmodern failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mluexercise.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mluexercise.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3d44242b702629b30caf0c28c96b2a575f23733 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mluexercise.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mluexercise | grep -v \.src | grep texlive-mluexercise + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mluexercise" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mluexercise + CHECK_RESULT $? 0 0 "install texlive-mluexercise failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mluexercise + CHECK_RESULT $? 0 0 "remove texlive-mluexercise failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-muling.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-muling.sh new file mode 100644 index 0000000000000000000000000000000000000000..a88eb51547c1805e78c6058bb7cbfa517301a1c6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-muling.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-muling | grep -v \.src | grep texlive-muling + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-muling" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-muling + CHECK_RESULT $? 0 0 "install texlive-muling failed" + SLEEP_WAIT 1 + dnf remove -y texlive-muling + CHECK_RESULT $? 0 0 "remove texlive-muling failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mylatex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mylatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..28c71d528e33ebe6468a8a4f6fa50c3286a2c490 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-mylatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mylatex | grep -v \.src | grep texlive-mylatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mylatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mylatex + CHECK_RESULT $? 0 0 "install texlive-mylatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mylatex + CHECK_RESULT $? 0 0 "remove texlive-mylatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-namedef.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-namedef.sh new file mode 100644 index 0000000000000000000000000000000000000000..eadbf4acc1173cd1eb79cb7e1266ce60116b9452 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-namedef.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-namedef | grep -v \.src | grep texlive-namedef + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-namedef" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-namedef + CHECK_RESULT $? 0 0 "install texlive-namedef failed" + SLEEP_WAIT 1 + dnf remove -y texlive-namedef + CHECK_RESULT $? 0 0 "remove texlive-namedef failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-newpax.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-newpax.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9b93fe56b4407d222127f6fb466d53be3f8ea4d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-newpax.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newpax | grep -v \.src | grep texlive-newpax + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newpax" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newpax + CHECK_RESULT $? 0 0 "install texlive-newpax failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newpax + CHECK_RESULT $? 0 0 "remove texlive-newpax failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-nimsticks.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-nimsticks.sh new file mode 100644 index 0000000000000000000000000000000000000000..2879fa3e4f75d648d0bffa6443b8bbf4ece2f174 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-nimsticks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nimsticks | grep -v \.src | grep texlive-nimsticks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nimsticks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nimsticks + CHECK_RESULT $? 0 0 "install texlive-nimsticks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nimsticks + CHECK_RESULT $? 0 0 "remove texlive-nimsticks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ninecolors.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ninecolors.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5212d4cf88b73d5291764776e46feeafc94cd98 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ninecolors.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ninecolors | grep -v \.src | grep texlive-ninecolors + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ninecolors" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ninecolors + CHECK_RESULT $? 0 0 "install texlive-ninecolors failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ninecolors + CHECK_RESULT $? 0 0 "remove texlive-ninecolors failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-nl-interval.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-nl-interval.sh new file mode 100644 index 0000000000000000000000000000000000000000..d04b06f5ea2b770f0501044852743c7eb0bdb046 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-nl-interval.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nl-interval | grep -v \.src | grep texlive-nl-interval + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nl-interval" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nl-interval + CHECK_RESULT $? 0 0 "install texlive-nl-interval failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nl-interval + CHECK_RESULT $? 0 0 "remove texlive-nl-interval failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-nnext.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-nnext.sh new file mode 100644 index 0000000000000000000000000000000000000000..f51938d588cbff8dd9aeb59e8de676e3acd0769c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-nnext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nnext | grep -v \.src | grep texlive-nnext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nnext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nnext + CHECK_RESULT $? 0 0 "install texlive-nnext failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nnext + CHECK_RESULT $? 0 0 "remove texlive-nnext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-numerica.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-numerica.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a5d3c3ac5faf9d9e7ef83a173bd49cb4572462e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-numerica.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numerica | grep -v \.src | grep texlive-numerica + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numerica" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numerica + CHECK_RESULT $? 0 0 "install texlive-numerica failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numerica + CHECK_RESULT $? 0 0 "remove texlive-numerica failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-orcidlink.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-orcidlink.sh new file mode 100644 index 0000000000000000000000000000000000000000..161040153cb2fa33bc3b70f593bee76418850688 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-orcidlink.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-orcidlink | grep -v \.src | grep texlive-orcidlink + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-orcidlink" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-orcidlink + CHECK_RESULT $? 0 0 "install texlive-orcidlink failed" + SLEEP_WAIT 1 + dnf remove -y texlive-orcidlink + CHECK_RESULT $? 0 0 "remove texlive-orcidlink failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-orientation.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-orientation.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0b2a3a0c584ad8409856583cddcf7f8b4c44058 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-orientation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-orientation | grep -v \.src | grep texlive-orientation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-orientation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-orientation + CHECK_RESULT $? 0 0 "install texlive-orientation failed" + SLEEP_WAIT 1 + dnf remove -y texlive-orientation + CHECK_RESULT $? 0 0 "remove texlive-orientation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-oswald.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-oswald.sh new file mode 100644 index 0000000000000000000000000000000000000000..613b69bec6c917aaa78a8c28957060c863480fe0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-oswald.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-oswald | grep -v \.src | grep texlive-oswald + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-oswald" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-oswald + CHECK_RESULT $? 0 0 "install texlive-oswald failed" + SLEEP_WAIT 1 + dnf remove -y texlive-oswald + CHECK_RESULT $? 0 0 "remove texlive-oswald failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pagesel.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pagesel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c29cc1a9a80dd9ea2d52689bae4362b650461f99 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pagesel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pagesel | grep -v \.src | grep texlive-pagesel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pagesel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pagesel + CHECK_RESULT $? 0 0 "install texlive-pagesel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pagesel + CHECK_RESULT $? 0 0 "remove texlive-pagesel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-parsa.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-parsa.sh new file mode 100644 index 0000000000000000000000000000000000000000..06f1ad1aa0d722a52d0cf21a97756d1faee3cef1 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-parsa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-parsa | grep -v \.src | grep texlive-parsa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-parsa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-parsa + CHECK_RESULT $? 0 0 "install texlive-parsa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-parsa + CHECK_RESULT $? 0 0 "remove texlive-parsa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pbalance.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pbalance.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d27f6a5cdc20d4d45c61931481dcc68b79d4b4e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pbalance.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pbalance | grep -v \.src | grep texlive-pbalance + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pbalance" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pbalance + CHECK_RESULT $? 0 0 "install texlive-pbalance failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pbalance + CHECK_RESULT $? 0 0 "remove texlive-pbalance failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pdfmanagement-testphase.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pdfmanagement-testphase.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a08d6590d34deb487d303676b57f95789b7ab16 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pdfmanagement-testphase.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfmanagement-testphase | grep -v \.src | grep texlive-pdfmanagement-testphase + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfmanagement-testphase" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfmanagement-testphase + CHECK_RESULT $? 0 0 "install texlive-pdfmanagement-testphase failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfmanagement-testphase + CHECK_RESULT $? 0 0 "remove texlive-pdfmanagement-testphase failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pgf-pie.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pgf-pie.sh new file mode 100644 index 0000000000000000000000000000000000000000..dedd307ff8c1f5e2c9427f41aaf4f1b5aa9a19d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pgf-pie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-pie | grep -v \.src | grep texlive-pgf-pie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-pie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-pie + CHECK_RESULT $? 0 0 "install texlive-pgf-pie failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-pie + CHECK_RESULT $? 0 0 "remove texlive-pgf-pie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-prelim2e.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-prelim2e.sh new file mode 100644 index 0000000000000000000000000000000000000000..461bc75647a3aab402d0a54cf41c7f9b65036336 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-prelim2e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-prelim2e | grep -v \.src | grep texlive-prelim2e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-prelim2e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-prelim2e + CHECK_RESULT $? 0 0 "install texlive-prelim2e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-prelim2e + CHECK_RESULT $? 0 0 "remove texlive-prelim2e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-principia.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-principia.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff7a3bc12ef8f079fbfecd9de78dfab9d1d8fccc --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-principia.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-principia | grep -v \.src | grep texlive-principia + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-principia" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-principia + CHECK_RESULT $? 0 0 "install texlive-principia failed" + SLEEP_WAIT 1 + dnf remove -y texlive-principia + CHECK_RESULT $? 0 0 "remove texlive-principia failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-profcollege.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-profcollege.sh new file mode 100644 index 0000000000000000000000000000000000000000..1dd81769553b06ae935da1d3c2a4cc46c48edb95 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-profcollege.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-profcollege | grep -v \.src | grep texlive-profcollege + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-profcollege" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-profcollege + CHECK_RESULT $? 0 0 "install texlive-profcollege failed" + SLEEP_WAIT 1 + dnf remove -y texlive-profcollege + CHECK_RESULT $? 0 0 "remove texlive-profcollege failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-projlib.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-projlib.sh new file mode 100644 index 0000000000000000000000000000000000000000..faa746b584f1d5b58cc1ff806c2b6cc1f9832f85 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-projlib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-projlib | grep -v \.src | grep texlive-projlib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-projlib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-projlib + CHECK_RESULT $? 0 0 "install texlive-projlib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-projlib + CHECK_RESULT $? 0 0 "remove texlive-projlib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-puyotikz.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-puyotikz.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a23d4d3bed8461e686283175af625a426d56207 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-puyotikz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-puyotikz | grep -v \.src | grep texlive-puyotikz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-puyotikz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-puyotikz + CHECK_RESULT $? 0 0 "install texlive-puyotikz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-puyotikz + CHECK_RESULT $? 0 0 "remove texlive-puyotikz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pwebmac.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pwebmac.sh new file mode 100644 index 0000000000000000000000000000000000000000..73db9e85e96d770cea740116b009403ff0626bcd --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pwebmac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pwebmac | grep -v \.src | grep texlive-pwebmac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pwebmac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pwebmac + CHECK_RESULT $? 0 0 "install texlive-pwebmac failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pwebmac + CHECK_RESULT $? 0 0 "remove texlive-pwebmac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pxpic.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pxpic.sh new file mode 100644 index 0000000000000000000000000000000000000000..28b031c1b258d29fecff8429fd6226c090ecf0d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-pxpic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pxpic | grep -v \.src | grep texlive-pxpic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pxpic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pxpic + CHECK_RESULT $? 0 0 "install texlive-pxpic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pxpic + CHECK_RESULT $? 0 0 "remove texlive-pxpic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-quran-bn.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-quran-bn.sh new file mode 100644 index 0000000000000000000000000000000000000000..17111e6169935e623795374dcbfa2f1fb60b0177 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-quran-bn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-quran-bn | grep -v \.src | grep texlive-quran-bn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-quran-bn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-quran-bn + CHECK_RESULT $? 0 0 "install texlive-quran-bn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-quran-bn + CHECK_RESULT $? 0 0 "remove texlive-quran-bn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-qyxf-book.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-qyxf-book.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f5ef32a964254ffb2c6bce549e1e5bf27ee120a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-qyxf-book.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-qyxf-book | grep -v \.src | grep texlive-qyxf-book + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-qyxf-book" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-qyxf-book + CHECK_RESULT $? 0 0 "install texlive-qyxf-book failed" + SLEEP_WAIT 1 + dnf remove -y texlive-qyxf-book + CHECK_RESULT $? 0 0 "remove texlive-qyxf-book failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-readablecv.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-readablecv.sh new file mode 100644 index 0000000000000000000000000000000000000000..876476195763f2c76c8fc449a1bbba85741521d5 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-readablecv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-readablecv | grep -v \.src | grep texlive-readablecv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-readablecv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-readablecv + CHECK_RESULT $? 0 0 "install texlive-readablecv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-readablecv + CHECK_RESULT $? 0 0 "remove texlive-readablecv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-realtranspose.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-realtranspose.sh new file mode 100644 index 0000000000000000000000000000000000000000..860af952eec24b4be4f9d42ff27243821d1e35b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-realtranspose.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-realtranspose | grep -v \.src | grep texlive-realtranspose + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-realtranspose" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-realtranspose + CHECK_RESULT $? 0 0 "install texlive-realtranspose failed" + SLEEP_WAIT 1 + dnf remove -y texlive-realtranspose + CHECK_RESULT $? 0 0 "remove texlive-realtranspose failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-revtex4-1.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-revtex4-1.sh new file mode 100644 index 0000000000000000000000000000000000000000..fed79a168c4074e7ebfb25ae1e320b8b0d0666b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-revtex4-1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-revtex4-1 | grep -v \.src | grep texlive-revtex4-1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-revtex4-1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-revtex4-1 + CHECK_RESULT $? 0 0 "install texlive-revtex4-1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-revtex4-1 + CHECK_RESULT $? 0 0 "remove texlive-revtex4-1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-rojud.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-rojud.sh new file mode 100644 index 0000000000000000000000000000000000000000..2aaf21ead15bba7016cc4d217b1be2ab51a0fb00 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-rojud.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rojud | grep -v \.src | grep texlive-rojud + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rojud" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rojud + CHECK_RESULT $? 0 0 "install texlive-rojud failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rojud + CHECK_RESULT $? 0 0 "remove texlive-rojud failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-runcode.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-runcode.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1140e4cea6a8cbac3cc22c43f74b592edeba8d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-runcode.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-runcode | grep -v \.src | grep texlive-runcode + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-runcode" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-runcode + CHECK_RESULT $? 0 0 "install texlive-runcode failed" + SLEEP_WAIT 1 + dnf remove -y texlive-runcode + CHECK_RESULT $? 0 0 "remove texlive-runcode failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-sankey.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-sankey.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4df7c3ea831bbd778a89fa883bbd121513d3aa9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-sankey.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sankey | grep -v \.src | grep texlive-sankey + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sankey" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sankey + CHECK_RESULT $? 0 0 "install texlive-sankey failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sankey + CHECK_RESULT $? 0 0 "remove texlive-sankey failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-schooldocs.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-schooldocs.sh new file mode 100644 index 0000000000000000000000000000000000000000..ddbd2887c38e9e3e4946f3a0209f401f74dff4eb --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-schooldocs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schooldocs | grep -v \.src | grep texlive-schooldocs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schooldocs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schooldocs + CHECK_RESULT $? 0 0 "install texlive-schooldocs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schooldocs + CHECK_RESULT $? 0 0 "remove texlive-schooldocs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-scrlayer-fancyhdr.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-scrlayer-fancyhdr.sh new file mode 100644 index 0000000000000000000000000000000000000000..d16988b7cf2fe3382706d37ab0ca368a517009f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-scrlayer-fancyhdr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scrlayer-fancyhdr | grep -v \.src | grep texlive-scrlayer-fancyhdr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scrlayer-fancyhdr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scrlayer-fancyhdr + CHECK_RESULT $? 0 0 "install texlive-scrlayer-fancyhdr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scrlayer-fancyhdr + CHECK_RESULT $? 0 0 "remove texlive-scrlayer-fancyhdr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-semantex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-semantex.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e448a7292a92b87e2cdd686e337e5dff3ca2fd0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-semantex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semantex | grep -v \.src | grep texlive-semantex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semantex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semantex + CHECK_RESULT $? 0 0 "install texlive-semantex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semantex + CHECK_RESULT $? 0 0 "remove texlive-semantex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-semesterplanner.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-semesterplanner.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e91158cb8091a4b173bacc0f9b72747fac63bda --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-semesterplanner.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semesterplanner | grep -v \.src | grep texlive-semesterplanner + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semesterplanner" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semesterplanner + CHECK_RESULT $? 0 0 "install texlive-semesterplanner failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semesterplanner + CHECK_RESULT $? 0 0 "remove texlive-semesterplanner failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-semtex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-semtex.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b5fb47e86ff0ce267d248c59e2f4fb996dee167 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-semtex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-semtex | grep -v \.src | grep texlive-semtex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-semtex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-semtex + CHECK_RESULT $? 0 0 "install texlive-semtex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-semtex + CHECK_RESULT $? 0 0 "remove texlive-semtex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-shtthesis.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-shtthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..eeb2e0b770ad1bd990a4e4f865bcdab267e563a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-shtthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shtthesis | grep -v \.src | grep texlive-shtthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shtthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shtthesis + CHECK_RESULT $? 0 0 "install texlive-shtthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shtthesis + CHECK_RESULT $? 0 0 "remove texlive-shtthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-simplivre.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-simplivre.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c3356ed668f98bc89b7bdccc0d7ba7f24772ab5 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-simplivre.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simplivre | grep -v \.src | grep texlive-simplivre + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simplivre" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simplivre + CHECK_RESULT $? 0 0 "install texlive-simplivre failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simplivre + CHECK_RESULT $? 0 0 "remove texlive-simplivre failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-skeldoc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-skeldoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..78a3659626c7455d4fd6c76369238dc2dd023ec6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-skeldoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skeldoc | grep -v \.src | grep texlive-skeldoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skeldoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skeldoc + CHECK_RESULT $? 0 0 "install texlive-skeldoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skeldoc + CHECK_RESULT $? 0 0 "remove texlive-skeldoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-skills.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-skills.sh new file mode 100644 index 0000000000000000000000000000000000000000..09009b66cde1c3d2d4abfc238ced81f80dcb4afd --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-skills.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-skills | grep -v \.src | grep texlive-skills + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-skills" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-skills + CHECK_RESULT $? 0 0 "install texlive-skills failed" + SLEEP_WAIT 1 + dnf remove -y texlive-skills + CHECK_RESULT $? 0 0 "remove texlive-skills failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-smflatex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-smflatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..3429c524a455846aa7fa88ac9d03994426cfb94f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-smflatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-smflatex | grep -v \.src | grep texlive-smflatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-smflatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-smflatex + CHECK_RESULT $? 0 0 "install texlive-smflatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-smflatex + CHECK_RESULT $? 0 0 "remove texlive-smflatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-split-x.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-split-x.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e7e04d0299c531073902cc0350f43ae5853c4d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-split-x.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-x | grep -v \.src | grep texlive-split-x + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-x" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-x + CHECK_RESULT $? 0 0 "install texlive-split-x failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-x + CHECK_RESULT $? 0 0 "remove texlive-split-x failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-startlatex2e.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-startlatex2e.sh new file mode 100644 index 0000000000000000000000000000000000000000..09bda7334600d315bde2bac3baf55d39b7231fff --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-startlatex2e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-startlatex2e | grep -v \.src | grep texlive-startlatex2e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-startlatex2e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-startlatex2e + CHECK_RESULT $? 0 0 "install texlive-startlatex2e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-startlatex2e + CHECK_RESULT $? 0 0 "remove texlive-startlatex2e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-stepgreek.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-stepgreek.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c94720bad4a3ebd0ba7a54fd88385ae03be6942 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-stepgreek.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stepgreek | grep -v \.src | grep texlive-stepgreek + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stepgreek" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stepgreek + CHECK_RESULT $? 0 0 "install texlive-stepgreek failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stepgreek + CHECK_RESULT $? 0 0 "remove texlive-stepgreek failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-stricttex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-stricttex.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a0f8ef3e43af0adb0acc2bed2bf36594cf45145 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-stricttex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stricttex | grep -v \.src | grep texlive-stricttex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stricttex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stricttex + CHECK_RESULT $? 0 0 "install texlive-stricttex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stricttex + CHECK_RESULT $? 0 0 "remove texlive-stricttex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-suppose.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-suppose.sh new file mode 100644 index 0000000000000000000000000000000000000000..013a191e1f09184e7e0299b2269b11c8d0315067 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-suppose.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-suppose | grep -v \.src | grep texlive-suppose + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-suppose" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-suppose + CHECK_RESULT $? 0 0 "install texlive-suppose failed" + SLEEP_WAIT 1 + dnf remove -y texlive-suppose + CHECK_RESULT $? 0 0 "remove texlive-suppose failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-swfigure.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-swfigure.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2fdd324e532c81e195a103edb5dd8c0909f4c71 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-swfigure.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-swfigure | grep -v \.src | grep texlive-swfigure + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-swfigure" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-swfigure + CHECK_RESULT $? 0 0 "install texlive-swfigure failed" + SLEEP_WAIT 1 + dnf remove -y texlive-swfigure + CHECK_RESULT $? 0 0 "remove texlive-swfigure failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-syntaxdi.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-syntaxdi.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3ff25c17dfc34043b7aa2c91e2aceec0c25e51b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-syntaxdi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-syntaxdi | grep -v \.src | grep texlive-syntaxdi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-syntaxdi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-syntaxdi + CHECK_RESULT $? 0 0 "install texlive-syntaxdi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-syntaxdi + CHECK_RESULT $? 0 0 "remove texlive-syntaxdi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-t-angles-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-t-angles-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a74fa362632c4b99746bf1e24cd4feac9368af8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-t-angles-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-t-angles-doc | grep -v \.src | grep texlive-t-angles-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-t-angles-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-t-angles-doc + CHECK_RESULT $? 0 0 "install texlive-t-angles-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-t-angles-doc + CHECK_RESULT $? 0 0 "remove texlive-t-angles-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-t-angles.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-t-angles.sh new file mode 100644 index 0000000000000000000000000000000000000000..e28fc7734fe1094f19a1ca3dbd46dc657b19f7be --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-t-angles.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-t-angles | grep -v \.src | grep texlive-t-angles + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-t-angles" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-t-angles + CHECK_RESULT $? 0 0 "install texlive-t-angles failed" + SLEEP_WAIT 1 + dnf remove -y texlive-t-angles + CHECK_RESULT $? 0 0 "remove texlive-t-angles failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tagpdf.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tagpdf.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6bb8d73f34c96d8ae7fee916bd3055d9f4e3962 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tagpdf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tagpdf | grep -v \.src | grep texlive-tagpdf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tagpdf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tagpdf + CHECK_RESULT $? 0 0 "install texlive-tagpdf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tagpdf + CHECK_RESULT $? 0 0 "remove texlive-tagpdf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-texnegar.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-texnegar.sh new file mode 100644 index 0000000000000000000000000000000000000000..9bfdc38d1988c947766431ba5555c6ac3b52b259 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-texnegar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texnegar | grep -v \.src | grep texlive-texnegar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texnegar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texnegar + CHECK_RESULT $? 0 0 "install texlive-texnegar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texnegar + CHECK_RESULT $? 0 0 "remove texlive-texnegar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thaienum.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thaienum.sh new file mode 100644 index 0000000000000000000000000000000000000000..684c352246e8fa4f6a4c538203967ab83ee29c17 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thaienum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thaienum | grep -v \.src | grep texlive-thaienum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thaienum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thaienum + CHECK_RESULT $? 0 0 "install texlive-thaienum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thaienum + CHECK_RESULT $? 0 0 "remove texlive-thaienum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thaispec.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thaispec.sh new file mode 100644 index 0000000000000000000000000000000000000000..349ca0e8ee7bc1178ecfa7e0cfd84a748ec84073 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thaispec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thaispec | grep -v \.src | grep texlive-thaispec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thaispec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thaispec + CHECK_RESULT $? 0 0 "install texlive-thaispec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thaispec + CHECK_RESULT $? 0 0 "remove texlive-thaispec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thalie-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thalie-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d665b29b8c8f77d388d57bb24a3ff0a34fe93d9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thalie-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thalie-doc | grep -v \.src | grep texlive-thalie-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thalie-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thalie-doc + CHECK_RESULT $? 0 0 "install texlive-thalie-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thalie-doc + CHECK_RESULT $? 0 0 "remove texlive-thalie-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thalie.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thalie.sh new file mode 100644 index 0000000000000000000000000000000000000000..9680b91844bc4bd9eb30400376b7282e63fee031 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thalie.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thalie | grep -v \.src | grep texlive-thalie + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thalie" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thalie + CHECK_RESULT $? 0 0 "install texlive-thalie failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thalie + CHECK_RESULT $? 0 0 "remove texlive-thalie failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-theoremref-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-theoremref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b37b6fa7d4984f3a9a66b26f0a3b58cc56209a2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-theoremref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-theoremref-doc | grep -v \.src | grep texlive-theoremref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-theoremref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-theoremref-doc + CHECK_RESULT $? 0 0 "install texlive-theoremref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-theoremref-doc + CHECK_RESULT $? 0 0 "remove texlive-theoremref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-theoremref.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-theoremref.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0c42166817719b5c821bbb9c7deaad645e8c036 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-theoremref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-theoremref | grep -v \.src | grep texlive-theoremref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-theoremref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-theoremref + CHECK_RESULT $? 0 0 "install texlive-theoremref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-theoremref + CHECK_RESULT $? 0 0 "remove texlive-theoremref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-ekf-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-ekf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a51aad1a47d20250dfff1c684403b7dad5327a4c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-ekf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thesis-ekf-doc | grep -v \.src | grep texlive-thesis-ekf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thesis-ekf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thesis-ekf-doc + CHECK_RESULT $? 0 0 "install texlive-thesis-ekf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thesis-ekf-doc + CHECK_RESULT $? 0 0 "remove texlive-thesis-ekf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-ekf.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-ekf.sh new file mode 100644 index 0000000000000000000000000000000000000000..531e2f94bf45497d7d3900ffa0a175a7176f844a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-ekf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thesis-ekf | grep -v \.src | grep texlive-thesis-ekf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thesis-ekf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thesis-ekf + CHECK_RESULT $? 0 0 "install texlive-thesis-ekf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thesis-ekf + CHECK_RESULT $? 0 0 "remove texlive-thesis-ekf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-gwu.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-gwu.sh new file mode 100644 index 0000000000000000000000000000000000000000..698bb677947586ce85ab8431e98423084081eaa6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-gwu.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thesis-gwu | grep -v \.src | grep texlive-thesis-gwu + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thesis-gwu" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thesis-gwu + CHECK_RESULT $? 0 0 "install texlive-thesis-gwu failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thesis-gwu + CHECK_RESULT $? 0 0 "remove texlive-thesis-gwu failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-titlepage-fhac-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-titlepage-fhac-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b739a09e3e29ec73ad05581c83aa61bb74560e9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-titlepage-fhac-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thesis-titlepage-fhac-doc | grep -v \.src | grep texlive-thesis-titlepage-fhac-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thesis-titlepage-fhac-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thesis-titlepage-fhac-doc + CHECK_RESULT $? 0 0 "install texlive-thesis-titlepage-fhac-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thesis-titlepage-fhac-doc + CHECK_RESULT $? 0 0 "remove texlive-thesis-titlepage-fhac-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-titlepage-fhac.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-titlepage-fhac.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0c12c3cdeea3caf875baf4c681aebfa0a7e986b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thesis-titlepage-fhac.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thesis-titlepage-fhac | grep -v \.src | grep texlive-thesis-titlepage-fhac + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thesis-titlepage-fhac" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thesis-titlepage-fhac + CHECK_RESULT $? 0 0 "install texlive-thesis-titlepage-fhac failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thesis-titlepage-fhac + CHECK_RESULT $? 0 0 "remove texlive-thesis-titlepage-fhac failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thinsp-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thinsp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..091f7a1392453ba073e4033d1655133c99123d42 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thinsp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thinsp-doc | grep -v \.src | grep texlive-thinsp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thinsp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thinsp-doc + CHECK_RESULT $? 0 0 "install texlive-thinsp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thinsp-doc + CHECK_RESULT $? 0 0 "remove texlive-thinsp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thinsp.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thinsp.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b2681929f8bbcb3e231108783dbeefc150bf6f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thinsp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thinsp | grep -v \.src | grep texlive-thinsp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thinsp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thinsp + CHECK_RESULT $? 0 0 "install texlive-thinsp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thinsp + CHECK_RESULT $? 0 0 "remove texlive-thinsp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmbox-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb129be95160dea872dd4ed012c016a653698112 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thmbox-doc | grep -v \.src | grep texlive-thmbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thmbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thmbox-doc + CHECK_RESULT $? 0 0 "install texlive-thmbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thmbox-doc + CHECK_RESULT $? 0 0 "remove texlive-thmbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmbox.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ee103b59104b4185464a8358f4ec31cff70a372 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thmbox | grep -v \.src | grep texlive-thmbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thmbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thmbox + CHECK_RESULT $? 0 0 "install texlive-thmbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thmbox + CHECK_RESULT $? 0 0 "remove texlive-thmbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmtools-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmtools-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a23d5cded9a30b2fa654a295c8cf6dc564d64a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmtools-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thmtools-doc | grep -v \.src | grep texlive-thmtools-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thmtools-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thmtools-doc + CHECK_RESULT $? 0 0 "install texlive-thmtools-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thmtools-doc + CHECK_RESULT $? 0 0 "remove texlive-thmtools-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmtools.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmtools.sh new file mode 100644 index 0000000000000000000000000000000000000000..d174e76e8675db6955614d6bd4d4bd5d23b2428e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thmtools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thmtools | grep -v \.src | grep texlive-thmtools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thmtools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thmtools + CHECK_RESULT $? 0 0 "install texlive-thmtools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thmtools + CHECK_RESULT $? 0 0 "remove texlive-thmtools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threadcol-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threadcol-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..98383059be66d84310e3b7f4b8d4a038263acaf8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threadcol-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-threadcol-doc | grep -v \.src | grep texlive-threadcol-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-threadcol-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-threadcol-doc + CHECK_RESULT $? 0 0 "install texlive-threadcol-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-threadcol-doc + CHECK_RESULT $? 0 0 "remove texlive-threadcol-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threadcol.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threadcol.sh new file mode 100644 index 0000000000000000000000000000000000000000..353bfcfbdb1294dac4407f1129f0aadefaecf1bf --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threadcol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-threadcol | grep -v \.src | grep texlive-threadcol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-threadcol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-threadcol + CHECK_RESULT $? 0 0 "install texlive-threadcol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-threadcol + CHECK_RESULT $? 0 0 "remove texlive-threadcol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeddice-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeddice-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ea86a033e42ed7137ac4a434e3708d605cdb140 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeddice-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-threeddice-doc | grep -v \.src | grep texlive-threeddice-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-threeddice-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-threeddice-doc + CHECK_RESULT $? 0 0 "install texlive-threeddice-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-threeddice-doc + CHECK_RESULT $? 0 0 "remove texlive-threeddice-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeddice.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeddice.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6d74a41afae545ec7ac44b9b2789a26c2c51744 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeddice.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-threeddice | grep -v \.src | grep texlive-threeddice + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-threeddice" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-threeddice + CHECK_RESULT $? 0 0 "install texlive-threeddice failed" + SLEEP_WAIT 1 + dnf remove -y texlive-threeddice + CHECK_RESULT $? 0 0 "remove texlive-threeddice failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttable-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttable-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6be13d4219d3c3f1f9f9e01018dedc5b771e9e89 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttable-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-threeparttable-doc | grep -v \.src | grep texlive-threeparttable-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-threeparttable-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-threeparttable-doc + CHECK_RESULT $? 0 0 "install texlive-threeparttable-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-threeparttable-doc + CHECK_RESULT $? 0 0 "remove texlive-threeparttable-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttable.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttable.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ba2e42abf6dd5215bee0482bb01f33adf54ce5e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-threeparttable | grep -v \.src | grep texlive-threeparttable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-threeparttable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-threeparttable + CHECK_RESULT $? 0 0 "install texlive-threeparttable failed" + SLEEP_WAIT 1 + dnf remove -y texlive-threeparttable + CHECK_RESULT $? 0 0 "remove texlive-threeparttable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttablex-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttablex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae7bd8a21f6b4f3ecb1a8092cb7212562e18b3e6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttablex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-threeparttablex-doc | grep -v \.src | grep texlive-threeparttablex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-threeparttablex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-threeparttablex-doc + CHECK_RESULT $? 0 0 "install texlive-threeparttablex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-threeparttablex-doc + CHECK_RESULT $? 0 0 "remove texlive-threeparttablex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttablex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttablex.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c1aaab1f868532f0d4d75be2704ccc82ed73499 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-threeparttablex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-threeparttablex | grep -v \.src | grep texlive-threeparttablex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-threeparttablex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-threeparttablex + CHECK_RESULT $? 0 0 "install texlive-threeparttablex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-threeparttablex + CHECK_RESULT $? 0 0 "remove texlive-threeparttablex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thucoursework.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thucoursework.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6bcc065f57827fb63b5a7892500d20b5449839a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thucoursework.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thucoursework | grep -v \.src | grep texlive-thucoursework + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thucoursework" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thucoursework + CHECK_RESULT $? 0 0 "install texlive-thucoursework failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thucoursework + CHECK_RESULT $? 0 0 "remove texlive-thucoursework failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumb-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3d28893ecc80862785d63d1fa8ade37608d386f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thumb-doc | grep -v \.src | grep texlive-thumb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thumb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thumb-doc + CHECK_RESULT $? 0 0 "install texlive-thumb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thumb-doc + CHECK_RESULT $? 0 0 "remove texlive-thumb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumb.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumb.sh new file mode 100644 index 0000000000000000000000000000000000000000..949d866ee2b16c6becc9b045ebf2b42fbb554fd0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thumb | grep -v \.src | grep texlive-thumb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thumb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thumb + CHECK_RESULT $? 0 0 "install texlive-thumb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thumb + CHECK_RESULT $? 0 0 "remove texlive-thumb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumbs-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumbs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..14cac6920b91cc5aa261be20aea71d32727d4af4 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumbs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thumbs-doc | grep -v \.src | grep texlive-thumbs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thumbs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thumbs-doc + CHECK_RESULT $? 0 0 "install texlive-thumbs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thumbs-doc + CHECK_RESULT $? 0 0 "remove texlive-thumbs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumbs.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumbs.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6e42256b81b137140484104f173bd1f0b5883b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumbs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thumbs | grep -v \.src | grep texlive-thumbs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thumbs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thumbs + CHECK_RESULT $? 0 0 "install texlive-thumbs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thumbs + CHECK_RESULT $? 0 0 "remove texlive-thumbs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumby-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumby-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..44a72eb93b2bd6bf923a1072962495cd9ddcc87d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumby-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thumby-doc | grep -v \.src | grep texlive-thumby-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thumby-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thumby-doc + CHECK_RESULT $? 0 0 "install texlive-thumby-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thumby-doc + CHECK_RESULT $? 0 0 "remove texlive-thumby-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumby.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumby.sh new file mode 100644 index 0000000000000000000000000000000000000000..154faa6fa15a1a45290a52860e7a4bc89035ca1b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thumby.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thumby | grep -v \.src | grep texlive-thumby + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thumby" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thumby + CHECK_RESULT $? 0 0 "install texlive-thumby failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thumby + CHECK_RESULT $? 0 0 "remove texlive-thumby failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thuthesis-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thuthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..50dd94556ab0619d7ea7dd26735c3f41028d88b6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thuthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thuthesis-doc | grep -v \.src | grep texlive-thuthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thuthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thuthesis-doc + CHECK_RESULT $? 0 0 "install texlive-thuthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thuthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-thuthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thuthesis.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thuthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..70c26c4914e281ef56246f0f5bf51fec9aed68f2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-thuthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thuthesis | grep -v \.src | grep texlive-thuthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thuthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thuthesis + CHECK_RESULT $? 0 0 "install texlive-thuthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thuthesis + CHECK_RESULT $? 0 0 "remove texlive-thuthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticket-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticket-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aaef9a46b7a71d0cef72e13d8af911b7367a9b1b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticket-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ticket-doc | grep -v \.src | grep texlive-ticket-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ticket-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ticket-doc + CHECK_RESULT $? 0 0 "install texlive-ticket-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ticket-doc + CHECK_RESULT $? 0 0 "remove texlive-ticket-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticket.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticket.sh new file mode 100644 index 0000000000000000000000000000000000000000..0dd5c1b7e40ab52ebecd9a2677a83d4d72401baa --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticket.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ticket | grep -v \.src | grep texlive-ticket + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ticket" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ticket + CHECK_RESULT $? 0 0 "install texlive-ticket failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ticket + CHECK_RESULT $? 0 0 "remove texlive-ticket failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticollege-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticollege-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..722ae5d5712cda80e4364d336c9049684156b307 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticollege-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ticollege-doc | grep -v \.src | grep texlive-ticollege-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ticollege-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ticollege-doc + CHECK_RESULT $? 0 0 "install texlive-ticollege-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ticollege-doc + CHECK_RESULT $? 0 0 "remove texlive-ticollege-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticollege.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticollege.sh new file mode 100644 index 0000000000000000000000000000000000000000..224e20e334a8e3851ff1a93980711718b4bc5333 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-ticollege.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ticollege | grep -v \.src | grep texlive-ticollege + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ticollege" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ticollege + CHECK_RESULT $? 0 0 "install texlive-ticollege failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ticollege + CHECK_RESULT $? 0 0 "remove texlive-ticollege failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-3dplot-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-3dplot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9310be14460d5ee077eb991b48ebf49fa7f08446 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-3dplot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-3dplot-doc | grep -v \.src | grep texlive-tikz-3dplot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-3dplot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-3dplot-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-3dplot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-3dplot-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-3dplot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-3dplot.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-3dplot.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ca9be4cedf26cb4f8e67bb4fc54f7a80c715b46 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-3dplot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-3dplot | grep -v \.src | grep texlive-tikz-3dplot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-3dplot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-3dplot + CHECK_RESULT $? 0 0 "install texlive-tikz-3dplot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-3dplot + CHECK_RESULT $? 0 0 "remove texlive-tikz-3dplot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-among-us.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-among-us.sh new file mode 100644 index 0000000000000000000000000000000000000000..7bf74c8a61227a5e290cc663024fc51729a771f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-among-us.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-among-us | grep -v \.src | grep texlive-tikz-among-us + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-among-us" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-among-us + CHECK_RESULT $? 0 0 "install texlive-tikz-among-us failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-among-us + CHECK_RESULT $? 0 0 "remove texlive-tikz-among-us failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-bayesnet-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-bayesnet-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec556162cf3f8b2d8d94971e02d3248cb91e286d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-bayesnet-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-bayesnet-doc | grep -v \.src | grep texlive-tikz-bayesnet-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-bayesnet-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-bayesnet-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-bayesnet-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-bayesnet-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-bayesnet-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-bayesnet.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-bayesnet.sh new file mode 100644 index 0000000000000000000000000000000000000000..bafc1ea02607978a7a0d7b018f4820674d2fe067 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-bayesnet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-bayesnet | grep -v \.src | grep texlive-tikz-bayesnet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-bayesnet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-bayesnet + CHECK_RESULT $? 0 0 "install texlive-tikz-bayesnet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-bayesnet + CHECK_RESULT $? 0 0 "remove texlive-tikz-bayesnet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-bbox.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-bbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee0469c3c43878254d920149b71794957d0be539 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-bbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-bbox | grep -v \.src | grep texlive-tikz-bbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-bbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-bbox + CHECK_RESULT $? 0 0 "install texlive-tikz-bbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-bbox + CHECK_RESULT $? 0 0 "remove texlive-tikz-bbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-cd-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-cd-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1b2f6f205433745819e491d4b91f53d4d94b538 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-cd-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-cd-doc | grep -v \.src | grep texlive-tikz-cd-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-cd-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-cd-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-cd-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-cd-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-cd-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-cd.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-cd.sh new file mode 100644 index 0000000000000000000000000000000000000000..428a30a928430b54ca59365e4261ad4786af6bd8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-cd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-cd | grep -v \.src | grep texlive-tikz-cd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-cd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-cd + CHECK_RESULT $? 0 0 "install texlive-tikz-cd failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-cd + CHECK_RESULT $? 0 0 "remove texlive-tikz-cd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dependency-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dependency-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a9d1f3c735f4e99dc7994ca6daf8cd6acca1063 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dependency-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-dependency-doc | grep -v \.src | grep texlive-tikz-dependency-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-dependency-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-dependency-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-dependency-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-dependency-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-dependency-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dependency.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dependency.sh new file mode 100644 index 0000000000000000000000000000000000000000..80a973e0e8ece7c8d13d7f754c59400e84b2c62e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dependency.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-dependency | grep -v \.src | grep texlive-tikz-dependency + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-dependency" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-dependency + CHECK_RESULT $? 0 0 "install texlive-tikz-dependency failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-dependency + CHECK_RESULT $? 0 0 "remove texlive-tikz-dependency failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dimline-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dimline-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1555943a9a69b729e432ecf1513da8d645774553 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dimline-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-dimline-doc | grep -v \.src | grep texlive-tikz-dimline-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-dimline-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-dimline-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-dimline-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-dimline-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-dimline-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dimline.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dimline.sh new file mode 100644 index 0000000000000000000000000000000000000000..488c2eeb844bc094b7bc7cf46d44ef8cc705dc11 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-dimline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-dimline | grep -v \.src | grep texlive-tikz-dimline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-dimline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-dimline + CHECK_RESULT $? 0 0 "install texlive-tikz-dimline failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-dimline + CHECK_RESULT $? 0 0 "remove texlive-tikz-dimline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-feynman-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-feynman-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad84393bdc056b32d5681df1ed631ea81468892e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-feynman-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-feynman-doc | grep -v \.src | grep texlive-tikz-feynman-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-feynman-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-feynman-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-feynman-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-feynman-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-feynman-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-feynman.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-feynman.sh new file mode 100644 index 0000000000000000000000000000000000000000..87dc5136a77375259f839d45f677f12febd213c5 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-feynman.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-feynman | grep -v \.src | grep texlive-tikz-feynman + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-feynman" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-feynman + CHECK_RESULT $? 0 0 "install texlive-tikz-feynman failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-feynman + CHECK_RESULT $? 0 0 "remove texlive-tikz-feynman failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-inet-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-inet-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4592004252c716157b41e68ec889e186d5221ba --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-inet-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-inet-doc | grep -v \.src | grep texlive-tikz-inet-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-inet-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-inet-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-inet-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-inet-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-inet-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-inet.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-inet.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3db781d3c81c6bd0e002c1107879066d55b4481 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-inet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-inet | grep -v \.src | grep texlive-tikz-inet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-inet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-inet + CHECK_RESULT $? 0 0 "install texlive-tikz-inet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-inet + CHECK_RESULT $? 0 0 "remove texlive-tikz-inet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-kalender.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-kalender.sh new file mode 100644 index 0000000000000000000000000000000000000000..920eb968a2517b525028145b6cfc845c7d621ba0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-kalender.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-kalender | grep -v \.src | grep texlive-tikz-kalender + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-kalender" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-kalender + CHECK_RESULT $? 0 0 "install texlive-tikz-kalender failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-kalender + CHECK_RESULT $? 0 0 "remove texlive-tikz-kalender failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-karnaugh.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-karnaugh.sh new file mode 100644 index 0000000000000000000000000000000000000000..397c42324130e00631e5c59477acd911a7b55c49 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-karnaugh.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-karnaugh | grep -v \.src | grep texlive-tikz-karnaugh + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-karnaugh" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-karnaugh + CHECK_RESULT $? 0 0 "install texlive-tikz-karnaugh failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-karnaugh + CHECK_RESULT $? 0 0 "remove texlive-tikz-karnaugh failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-ladder.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-ladder.sh new file mode 100644 index 0000000000000000000000000000000000000000..08fc54fbec0de816b5b5cc2ee0800f44ab0eabdf --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-ladder.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-ladder | grep -v \.src | grep texlive-tikz-ladder + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-ladder" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-ladder + CHECK_RESULT $? 0 0 "install texlive-tikz-ladder failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-ladder + CHECK_RESULT $? 0 0 "remove texlive-tikz-ladder failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-lake-fig.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-lake-fig.sh new file mode 100644 index 0000000000000000000000000000000000000000..11787bfe1e07950088a01deb604e848b2f8f7ced --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-lake-fig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-lake-fig | grep -v \.src | grep texlive-tikz-lake-fig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-lake-fig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-lake-fig + CHECK_RESULT $? 0 0 "install texlive-tikz-lake-fig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-lake-fig + CHECK_RESULT $? 0 0 "remove texlive-tikz-lake-fig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-layers.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-layers.sh new file mode 100644 index 0000000000000000000000000000000000000000..73b7959a4efac38d2847905df90387a619dd5757 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-layers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-layers | grep -v \.src | grep texlive-tikz-layers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-layers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-layers + CHECK_RESULT $? 0 0 "install texlive-tikz-layers failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-layers + CHECK_RESULT $? 0 0 "remove texlive-tikz-layers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-nef.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-nef.sh new file mode 100644 index 0000000000000000000000000000000000000000..73a1b72f8520d6433194a68065d73d2016f098f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-nef.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-nef | grep -v \.src | grep texlive-tikz-nef + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-nef" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-nef + CHECK_RESULT $? 0 0 "install texlive-tikz-nef failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-nef + CHECK_RESULT $? 0 0 "remove texlive-tikz-nef failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-network.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-network.sh new file mode 100644 index 0000000000000000000000000000000000000000..866f28bedd91a77bdfc0b4e6255fc1ed3dd1cb49 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-network.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-network | grep -v \.src | grep texlive-tikz-network + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-network" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-network + CHECK_RESULT $? 0 0 "install texlive-tikz-network failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-network + CHECK_RESULT $? 0 0 "remove texlive-tikz-network failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-opm-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-opm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..880b216b12a42cf84c0ef82fff62379e2fafee5f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-opm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-opm-doc | grep -v \.src | grep texlive-tikz-opm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-opm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-opm-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-opm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-opm-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-opm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-opm.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-opm.sh new file mode 100644 index 0000000000000000000000000000000000000000..9529e2e56071ff664d97b049794b1d4c433e5660 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-opm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-opm | grep -v \.src | grep texlive-tikz-opm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-opm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-opm + CHECK_RESULT $? 0 0 "install texlive-tikz-opm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-opm + CHECK_RESULT $? 0 0 "remove texlive-tikz-opm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-optics.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-optics.sh new file mode 100644 index 0000000000000000000000000000000000000000..4cf15af5288a312aec4b720e0187c53f7a396ef8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-optics.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-optics | grep -v \.src | grep texlive-tikz-optics + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-optics" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-optics + CHECK_RESULT $? 0 0 "install texlive-tikz-optics failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-optics + CHECK_RESULT $? 0 0 "remove texlive-tikz-optics failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-page.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-page.sh new file mode 100644 index 0000000000000000000000000000000000000000..d995e852270f51dc6570ee38af2664cceed00a83 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-page.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-page | grep -v \.src | grep texlive-tikz-page + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-page" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-page + CHECK_RESULT $? 0 0 "install texlive-tikz-page failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-page + CHECK_RESULT $? 0 0 "remove texlive-tikz-page failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-palattice-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-palattice-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..85526d0e7b37cd3fbc1ad62b12723f84f442f3b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-palattice-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-palattice-doc | grep -v \.src | grep texlive-tikz-palattice-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-palattice-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-palattice-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-palattice-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-palattice-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-palattice-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-palattice.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-palattice.sh new file mode 100644 index 0000000000000000000000000000000000000000..b32475e2881db2dfcc1ab5fea2cb818417fa974a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-palattice.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-palattice | grep -v \.src | grep texlive-tikz-palattice + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-palattice" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-palattice + CHECK_RESULT $? 0 0 "install texlive-tikz-palattice failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-palattice + CHECK_RESULT $? 0 0 "remove texlive-tikz-palattice failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-qtree-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-qtree-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..afb686384a92052361627715233620ac0d26ab86 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-qtree-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-qtree-doc | grep -v \.src | grep texlive-tikz-qtree-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-qtree-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-qtree-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-qtree-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-qtree-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-qtree-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-qtree.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-qtree.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b3deec33bdbb646089c05f5ea0b53c93d3a5fb8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-qtree.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-qtree | grep -v \.src | grep texlive-tikz-qtree + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-qtree" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-qtree + CHECK_RESULT $? 0 0 "install texlive-tikz-qtree failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-qtree + CHECK_RESULT $? 0 0 "remove texlive-tikz-qtree failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-relay.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-relay.sh new file mode 100644 index 0000000000000000000000000000000000000000..adadb4d0cf96c23bf25326248487570d415368e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-relay.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-relay | grep -v \.src | grep texlive-tikz-relay + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-relay" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-relay + CHECK_RESULT $? 0 0 "install texlive-tikz-relay failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-relay + CHECK_RESULT $? 0 0 "remove texlive-tikz-relay failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-sfc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-sfc.sh new file mode 100644 index 0000000000000000000000000000000000000000..495e6ac5ef2c2bef45d750ad226a0976ffe8954f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-sfc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-sfc | grep -v \.src | grep texlive-tikz-sfc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-sfc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-sfc + CHECK_RESULT $? 0 0 "install texlive-tikz-sfc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-sfc + CHECK_RESULT $? 0 0 "remove texlive-tikz-sfc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-timing-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-timing-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..37349794ef3ebcddb46ff2869e0710e389b3afa3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-timing-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-timing-doc | grep -v \.src | grep texlive-tikz-timing-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-timing-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-timing-doc + CHECK_RESULT $? 0 0 "install texlive-tikz-timing-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-timing-doc + CHECK_RESULT $? 0 0 "remove texlive-tikz-timing-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-timing.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-timing.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f9c4ceb97a5bb8bd55d7b2acfdf7fd9ef50c6f6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikz-timing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-timing | grep -v \.src | grep texlive-tikz-timing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-timing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-timing + CHECK_RESULT $? 0 0 "install texlive-tikz-timing failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-timing + CHECK_RESULT $? 0 0 "remove texlive-tikz-timing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzcodeblocks.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzcodeblocks.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ec989256d775d89d771d6b3e79651b03121ac0c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzcodeblocks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzcodeblocks | grep -v \.src | grep texlive-tikzcodeblocks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzcodeblocks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzcodeblocks + CHECK_RESULT $? 0 0 "install texlive-tikzcodeblocks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzcodeblocks + CHECK_RESULT $? 0 0 "remove texlive-tikzcodeblocks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzducks.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzducks.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9a8d9965b652d273cb8a753bdec6d187c692cb3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzducks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzducks | grep -v \.src | grep texlive-tikzducks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzducks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzducks + CHECK_RESULT $? 0 0 "install texlive-tikzducks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzducks + CHECK_RESULT $? 0 0 "remove texlive-tikzducks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzinclude-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzinclude-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d91ed49ddb307dcc9385350a942bae95dbff9421 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzinclude-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzinclude-doc | grep -v \.src | grep texlive-tikzinclude-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzinclude-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzinclude-doc + CHECK_RESULT $? 0 0 "install texlive-tikzinclude-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzinclude-doc + CHECK_RESULT $? 0 0 "remove texlive-tikzinclude-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzinclude.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzinclude.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf0d050b5a90cfb3508bd3dd5d16d79275c6d0c1 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzinclude.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzinclude | grep -v \.src | grep texlive-tikzinclude + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzinclude" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzinclude + CHECK_RESULT $? 0 0 "install texlive-tikzinclude failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzinclude + CHECK_RESULT $? 0 0 "remove texlive-tikzinclude failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzmark-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzmark-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..389a8e97958c0db90601399d1149c5ddf730f167 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzmark-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzmark-doc | grep -v \.src | grep texlive-tikzmark-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzmark-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzmark-doc + CHECK_RESULT $? 0 0 "install texlive-tikzmark-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzmark-doc + CHECK_RESULT $? 0 0 "remove texlive-tikzmark-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzmark.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzmark.sh new file mode 100644 index 0000000000000000000000000000000000000000..83abe2612eeb4f3d14a578aa8e361f9678022b0a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzmark.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzmark | grep -v \.src | grep texlive-tikzmark + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzmark" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzmark + CHECK_RESULT $? 0 0 "install texlive-tikzmark failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzmark + CHECK_RESULT $? 0 0 "remove texlive-tikzmark failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzmarmots.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzmarmots.sh new file mode 100644 index 0000000000000000000000000000000000000000..1eba0918400a535cd4e8b259a0cca96d00c4e547 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzmarmots.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzmarmots | grep -v \.src | grep texlive-tikzmarmots + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzmarmots" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzmarmots + CHECK_RESULT $? 0 0 "install texlive-tikzmarmots failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzmarmots + CHECK_RESULT $? 0 0 "remove texlive-tikzmarmots failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzorbital-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzorbital-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9be074ec166d1a79b554989e0e3cddba7fdc149 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzorbital-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzorbital-doc | grep -v \.src | grep texlive-tikzorbital-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzorbital-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzorbital-doc + CHECK_RESULT $? 0 0 "install texlive-tikzorbital-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzorbital-doc + CHECK_RESULT $? 0 0 "remove texlive-tikzorbital-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzorbital.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzorbital.sh new file mode 100644 index 0000000000000000000000000000000000000000..b798af91cd63de694c3e704c0725d0a8af4100b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzorbital.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzorbital | grep -v \.src | grep texlive-tikzorbital + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzorbital" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzorbital + CHECK_RESULT $? 0 0 "install texlive-tikzorbital failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzorbital + CHECK_RESULT $? 0 0 "remove texlive-tikzorbital failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpackets.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpackets.sh new file mode 100644 index 0000000000000000000000000000000000000000..06ac7c328fdd0e579520bc2627be8c3de42e22ac --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpackets.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzpackets | grep -v \.src | grep texlive-tikzpackets + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzpackets" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzpackets + CHECK_RESULT $? 0 0 "install texlive-tikzpackets failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzpackets + CHECK_RESULT $? 0 0 "remove texlive-tikzpackets failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpagenodes-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpagenodes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b80a51a0b040b6d6ab8a7c263d0a734cb5acf43 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpagenodes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzpagenodes-doc | grep -v \.src | grep texlive-tikzpagenodes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzpagenodes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzpagenodes-doc + CHECK_RESULT $? 0 0 "install texlive-tikzpagenodes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzpagenodes-doc + CHECK_RESULT $? 0 0 "remove texlive-tikzpagenodes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpagenodes.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpagenodes.sh new file mode 100644 index 0000000000000000000000000000000000000000..dae11f6157ef264c51796585e24e64befaba6512 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpagenodes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzpagenodes | grep -v \.src | grep texlive-tikzpagenodes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzpagenodes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzpagenodes + CHECK_RESULT $? 0 0 "install texlive-tikzpagenodes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzpagenodes + CHECK_RESULT $? 0 0 "remove texlive-tikzpagenodes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpeople.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpeople.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf34a6c3e23c097d16eb17b182a7886fc276c737 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpeople.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzpeople | grep -v \.src | grep texlive-tikzpeople + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzpeople" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzpeople + CHECK_RESULT $? 0 0 "install texlive-tikzpeople failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzpeople + CHECK_RESULT $? 0 0 "remove texlive-tikzpeople failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpfeile-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpfeile-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..49d3dd6f6dbbfad21f9cd631fe8ff37ef7d0ed93 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpfeile-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzpfeile-doc | grep -v \.src | grep texlive-tikzpfeile-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzpfeile-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzpfeile-doc + CHECK_RESULT $? 0 0 "install texlive-tikzpfeile-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzpfeile-doc + CHECK_RESULT $? 0 0 "remove texlive-tikzpfeile-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpfeile.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpfeile.sh new file mode 100644 index 0000000000000000000000000000000000000000..84fcc574e7f47ddb1395a41555acfe4e4856becb --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzpfeile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzpfeile | grep -v \.src | grep texlive-tikzpfeile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzpfeile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzpfeile + CHECK_RESULT $? 0 0 "install texlive-tikzpfeile failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzpfeile + CHECK_RESULT $? 0 0 "remove texlive-tikzpfeile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzposter-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzposter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca588c6dc5af124a978c12201e2fb6e43ca1beed --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzposter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzposter-doc | grep -v \.src | grep texlive-tikzposter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzposter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzposter-doc + CHECK_RESULT $? 0 0 "install texlive-tikzposter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzposter-doc + CHECK_RESULT $? 0 0 "remove texlive-tikzposter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzposter.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzposter.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba67c458b6a64f1aa9f2c8e7e09c83a5da25ef0a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzposter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzposter | grep -v \.src | grep texlive-tikzposter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzposter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzposter + CHECK_RESULT $? 0 0 "install texlive-tikzposter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzposter + CHECK_RESULT $? 0 0 "remove texlive-tikzposter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzscale-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzscale-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..80a140bbf5313b0bd74f4f3d2a408a9b73f219e9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzscale-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzscale-doc | grep -v \.src | grep texlive-tikzscale-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzscale-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzscale-doc + CHECK_RESULT $? 0 0 "install texlive-tikzscale-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzscale-doc + CHECK_RESULT $? 0 0 "remove texlive-tikzscale-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzscale.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzscale.sh new file mode 100644 index 0000000000000000000000000000000000000000..836b7d11f9d9602883cb23c15d90afc5ada7a22f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzscale.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzscale | grep -v \.src | grep texlive-tikzscale + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzscale" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzscale + CHECK_RESULT $? 0 0 "install texlive-tikzscale failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzscale + CHECK_RESULT $? 0 0 "remove texlive-tikzscale failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzsymbols-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzsymbols-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa8832b5e5a4da4127c07f5891bd7fddd107ca53 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzsymbols-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzsymbols-doc | grep -v \.src | grep texlive-tikzsymbols-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzsymbols-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzsymbols-doc + CHECK_RESULT $? 0 0 "install texlive-tikzsymbols-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzsymbols-doc + CHECK_RESULT $? 0 0 "remove texlive-tikzsymbols-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzsymbols.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzsymbols.sh new file mode 100644 index 0000000000000000000000000000000000000000..41f54292b1c32eef3d407829ee9391c8438daf7f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tikzsymbols.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzsymbols | grep -v \.src | grep texlive-tikzsymbols + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzsymbols" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzsymbols + CHECK_RESULT $? 0 0 "install texlive-tikzsymbols failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzsymbols + CHECK_RESULT $? 0 0 "remove texlive-tikzsymbols failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timbreicmc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timbreicmc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ff84d7329495cf7dc0597dc9bc870484ddeae38 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timbreicmc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-timbreicmc | grep -v \.src | grep texlive-timbreicmc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-timbreicmc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-timbreicmc + CHECK_RESULT $? 0 0 "install texlive-timbreicmc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-timbreicmc + CHECK_RESULT $? 0 0 "remove texlive-timbreicmc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-times.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-times.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec9a79fa7ae4ef2227a4963d673bd75aa9a9f3cd --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-times.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-times | grep -v \.src | grep texlive-times + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-times" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-times + CHECK_RESULT $? 0 0 "install texlive-times failed" + SLEEP_WAIT 1 + dnf remove -y texlive-times + CHECK_RESULT $? 0 0 "remove texlive-times failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timetable.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timetable.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd627c332d109a7e7a710e712f611df35542f896 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timetable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-timetable | grep -v \.src | grep texlive-timetable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-timetable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-timetable + CHECK_RESULT $? 0 0 "install texlive-timetable failed" + SLEEP_WAIT 1 + dnf remove -y texlive-timetable + CHECK_RESULT $? 0 0 "remove texlive-timetable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timing-diagrams-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timing-diagrams-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5574a2e7d262f6dada8e923d6f0d0d0b106e5bb --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timing-diagrams-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-timing-diagrams-doc | grep -v \.src | grep texlive-timing-diagrams-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-timing-diagrams-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-timing-diagrams-doc + CHECK_RESULT $? 0 0 "install texlive-timing-diagrams-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-timing-diagrams-doc + CHECK_RESULT $? 0 0 "remove texlive-timing-diagrams-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timing-diagrams.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timing-diagrams.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f8336953e6bc17d883fd84f2ef9471f57f23d3a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-timing-diagrams.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-timing-diagrams | grep -v \.src | grep texlive-timing-diagrams + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-timing-diagrams" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-timing-diagrams + CHECK_RESULT $? 0 0 "install texlive-timing-diagrams failed" + SLEEP_WAIT 1 + dnf remove -y texlive-timing-diagrams + CHECK_RESULT $? 0 0 "remove texlive-timing-diagrams failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tinos.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tinos.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecc787ad792886d31778053e52bb19742ab03a5f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tinos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tinos | grep -v \.src | grep texlive-tinos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tinos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tinos + CHECK_RESULT $? 0 0 "install texlive-tinos failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tinos + CHECK_RESULT $? 0 0 "remove texlive-tinos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipa-de-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipa-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c88f77e55f5f043ed1473536dbecdfde93002488 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipa-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tipa-de-doc | grep -v \.src | grep texlive-tipa-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tipa-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tipa-de-doc + CHECK_RESULT $? 0 0 "install texlive-tipa-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tipa-de-doc + CHECK_RESULT $? 0 0 "remove texlive-tipa-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipa-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipa-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..95ae047342bc1c75abc43883a6ab7336746c1108 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipa-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tipa-doc | grep -v \.src | grep texlive-tipa-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tipa-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tipa-doc + CHECK_RESULT $? 0 0 "install texlive-tipa-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tipa-doc + CHECK_RESULT $? 0 0 "remove texlive-tipa-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipa.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipa.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d804ba99adf4c71a7c7178262b870a2b9885ec6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tipa | grep -v \.src | grep texlive-tipa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tipa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tipa + CHECK_RESULT $? 0 0 "install texlive-tipa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tipa + CHECK_RESULT $? 0 0 "remove texlive-tipa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipauni.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipauni.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ba2ba137b53a462a1ef2309a77686d798b49dcb --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipauni.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tipauni | grep -v \.src | grep texlive-tipauni + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tipauni" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tipauni + CHECK_RESULT $? 0 0 "install texlive-tipauni failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tipauni + CHECK_RESULT $? 0 0 "remove texlive-tipauni failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipfr-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipfr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2972b86f75d783aa28ca98ac6ed3fdb04ac4d317 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipfr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tipfr-doc | grep -v \.src | grep texlive-tipfr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tipfr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tipfr-doc + CHECK_RESULT $? 0 0 "install texlive-tipfr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tipfr-doc + CHECK_RESULT $? 0 0 "remove texlive-tipfr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipfr.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipfr.sh new file mode 100644 index 0000000000000000000000000000000000000000..c88b8f552cf7a44340dff4604013442a3a8112b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tipfr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tipfr | grep -v \.src | grep texlive-tipfr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tipfr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tipfr + CHECK_RESULT $? 0 0 "install texlive-tipfr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tipfr + CHECK_RESULT $? 0 0 "remove texlive-tipfr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlecaps-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlecaps-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cc5e2aa4d7046dfcdab56723c94fdd07d24967e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlecaps-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titlecaps-doc | grep -v \.src | grep texlive-titlecaps-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titlecaps-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titlecaps-doc + CHECK_RESULT $? 0 0 "install texlive-titlecaps-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titlecaps-doc + CHECK_RESULT $? 0 0 "remove texlive-titlecaps-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlecaps.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlecaps.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c9dcf31711f2adc0ec2e651ff03659f451b39ce --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlecaps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titlecaps | grep -v \.src | grep texlive-titlecaps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titlecaps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titlecaps + CHECK_RESULT $? 0 0 "install texlive-titlecaps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titlecaps + CHECK_RESULT $? 0 0 "remove texlive-titlecaps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlefoot.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlefoot.sh new file mode 100644 index 0000000000000000000000000000000000000000..547fd30ab50b2c6fb0e1e448fc47909fc507e699 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlefoot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titlefoot | grep -v \.src | grep texlive-titlefoot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titlefoot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titlefoot + CHECK_RESULT $? 0 0 "install texlive-titlefoot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titlefoot + CHECK_RESULT $? 0 0 "remove texlive-titlefoot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlepages-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlepages-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c72fe045e0d20ed97946a5dc118d15b26d0caf2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlepages-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titlepages-doc | grep -v \.src | grep texlive-titlepages-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titlepages-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titlepages-doc + CHECK_RESULT $? 0 0 "install texlive-titlepages-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titlepages-doc + CHECK_RESULT $? 0 0 "remove texlive-titlepages-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlepic-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlepic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8fd940a0fc47657c8741515511fbe6b41cf15bb --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlepic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titlepic-doc | grep -v \.src | grep texlive-titlepic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titlepic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titlepic-doc + CHECK_RESULT $? 0 0 "install texlive-titlepic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titlepic-doc + CHECK_RESULT $? 0 0 "remove texlive-titlepic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlepic.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlepic.sh new file mode 100644 index 0000000000000000000000000000000000000000..2402532327e74883528629307002ebc052fa7c97 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlepic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titlepic | grep -v \.src | grep texlive-titlepic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titlepic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titlepic + CHECK_RESULT $? 0 0 "install texlive-titlepic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titlepic + CHECK_RESULT $? 0 0 "remove texlive-titlepic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titleref-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titleref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..75ac3bf21933658e325fd7a67d5acc780c0c021f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titleref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titleref-doc | grep -v \.src | grep texlive-titleref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titleref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titleref-doc + CHECK_RESULT $? 0 0 "install texlive-titleref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titleref-doc + CHECK_RESULT $? 0 0 "remove texlive-titleref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titleref.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titleref.sh new file mode 100644 index 0000000000000000000000000000000000000000..f595acb10c0dfe155a731e66429523dfc3c24a03 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titleref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titleref | grep -v \.src | grep texlive-titleref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titleref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titleref + CHECK_RESULT $? 0 0 "install texlive-titleref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titleref + CHECK_RESULT $? 0 0 "remove texlive-titleref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlesec-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlesec-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..554f6a385f778b38ff64caba75d8c027c7b6643c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlesec-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titlesec-doc | grep -v \.src | grep texlive-titlesec-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titlesec-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titlesec-doc + CHECK_RESULT $? 0 0 "install texlive-titlesec-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titlesec-doc + CHECK_RESULT $? 0 0 "remove texlive-titlesec-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlesec.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlesec.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9763503c75a3e1c927484a328b34837c43395c1 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titlesec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titlesec | grep -v \.src | grep texlive-titlesec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titlesec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titlesec + CHECK_RESULT $? 0 0 "install texlive-titlesec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titlesec + CHECK_RESULT $? 0 0 "remove texlive-titlesec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titling-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titling-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d86a61793ae9b05346388b812112821bf0b7ac3f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titling-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titling-doc | grep -v \.src | grep texlive-titling-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titling-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titling-doc + CHECK_RESULT $? 0 0 "install texlive-titling-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titling-doc + CHECK_RESULT $? 0 0 "remove texlive-titling-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titling.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titling.sh new file mode 100644 index 0000000000000000000000000000000000000000..0de7547761147f82f1d4e4a845e1450a62a80330 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-titling.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-titling | grep -v \.src | grep texlive-titling + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-titling" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-titling + CHECK_RESULT $? 0 0 "install texlive-titling failed" + SLEEP_WAIT 1 + dnf remove -y texlive-titling + CHECK_RESULT $? 0 0 "remove texlive-titling failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-base-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-base-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a36da604f4cba14a1cc20866b32b7089cef2f76 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-base-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-base-doc | grep -v \.src | grep texlive-tkz-base-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-base-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-base-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-base-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-base-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-base-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-base.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..1935cc6fcb7c4fcde023e45d0d16f0ed26e38b07 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-base | grep -v \.src | grep texlive-tkz-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-base + CHECK_RESULT $? 0 0 "install texlive-tkz-base failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-base + CHECK_RESULT $? 0 0 "remove texlive-tkz-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-berge-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-berge-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ce63e1b1056bd179e4b66932c7567ab8076ba8d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-berge-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-berge-doc | grep -v \.src | grep texlive-tkz-berge-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-berge-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-berge-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-berge-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-berge-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-berge-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-berge.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-berge.sh new file mode 100644 index 0000000000000000000000000000000000000000..970ccc7819d40ae489b2fb5fccb37a82542aac1e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-berge.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-berge | grep -v \.src | grep texlive-tkz-berge + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-berge" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-berge + CHECK_RESULT $? 0 0 "install texlive-tkz-berge failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-berge + CHECK_RESULT $? 0 0 "remove texlive-tkz-berge failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-doc-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-doc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b78dc8e03979100d3fe08616059dcb0dd652805a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-doc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-doc-doc | grep -v \.src | grep texlive-tkz-doc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-doc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-doc-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-doc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-doc-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-doc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1acfefe8e9e89b5fb2aa126d428dcb0608ee0eaf --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-doc | grep -v \.src | grep texlive-tkz-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-euclide-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-euclide-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..22a8c55e98fac6b74997275f804e63945384ece8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-euclide-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-euclide-doc | grep -v \.src | grep texlive-tkz-euclide-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-euclide-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-euclide-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-euclide-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-euclide-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-euclide-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-euclide.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-euclide.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd3d60ba5fa5c046b909e3bda2aba6170e11f092 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-euclide.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-euclide | grep -v \.src | grep texlive-tkz-euclide + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-euclide" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-euclide + CHECK_RESULT $? 0 0 "install texlive-tkz-euclide failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-euclide + CHECK_RESULT $? 0 0 "remove texlive-tkz-euclide failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-fct-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-fct-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1bb65d1d0a657b226ba2980bdb7f486d2833be26 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-fct-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-fct-doc | grep -v \.src | grep texlive-tkz-fct-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-fct-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-fct-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-fct-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-fct-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-fct-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-fct.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-fct.sh new file mode 100644 index 0000000000000000000000000000000000000000..59d01335fe4968358fe1e0e33f0241f92ab4251f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-fct.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-fct | grep -v \.src | grep texlive-tkz-fct + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-fct" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-fct + CHECK_RESULT $? 0 0 "install texlive-tkz-fct failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-fct + CHECK_RESULT $? 0 0 "remove texlive-tkz-fct failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-graph-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-graph-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c182124a8fdf00d5c50876683ab47e7292b083a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-graph-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-graph-doc | grep -v \.src | grep texlive-tkz-graph-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-graph-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-graph-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-graph-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-graph-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-graph-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-graph.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-graph.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e478b1f46c783d5779c0aab8a560fb47ea5f5d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-graph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-graph | grep -v \.src | grep texlive-tkz-graph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-graph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-graph + CHECK_RESULT $? 0 0 "install texlive-tkz-graph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-graph + CHECK_RESULT $? 0 0 "remove texlive-tkz-graph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-kiviat-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-kiviat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..49c527e853489e1e4c34c05166f128282c27882f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-kiviat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-kiviat-doc | grep -v \.src | grep texlive-tkz-kiviat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-kiviat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-kiviat-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-kiviat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-kiviat-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-kiviat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-kiviat.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-kiviat.sh new file mode 100644 index 0000000000000000000000000000000000000000..83857b9b3943402ebd41cfac47d45429b4452f51 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-kiviat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-kiviat | grep -v \.src | grep texlive-tkz-kiviat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-kiviat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-kiviat + CHECK_RESULT $? 0 0 "install texlive-tkz-kiviat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-kiviat + CHECK_RESULT $? 0 0 "remove texlive-tkz-kiviat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-linknodes-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-linknodes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba52693a09db5d8f9b64d74f6057ba5702c2d998 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-linknodes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-linknodes-doc | grep -v \.src | grep texlive-tkz-linknodes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-linknodes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-linknodes-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-linknodes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-linknodes-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-linknodes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-linknodes.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-linknodes.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b6cf7fa885a74a4a0dedc5ee80acc4e0b7065f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-linknodes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-linknodes | grep -v \.src | grep texlive-tkz-linknodes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-linknodes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-linknodes + CHECK_RESULT $? 0 0 "install texlive-tkz-linknodes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-linknodes + CHECK_RESULT $? 0 0 "remove texlive-tkz-linknodes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-orm-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-orm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1d1a6031f3a8c3975f47506f2aba4035067294c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-orm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-orm-doc | grep -v \.src | grep texlive-tkz-orm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-orm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-orm-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-orm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-orm-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-orm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-orm.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-orm.sh new file mode 100644 index 0000000000000000000000000000000000000000..444c5d5fc24e424d359d0b4a339b24da02e684d4 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-orm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-orm | grep -v \.src | grep texlive-tkz-orm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-orm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-orm + CHECK_RESULT $? 0 0 "install texlive-tkz-orm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-orm + CHECK_RESULT $? 0 0 "remove texlive-tkz-orm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-tab-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-tab-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e1dfe1e64a208a060a59726050c5e6fb756bdf5e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-tab-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-tab-doc | grep -v \.src | grep texlive-tkz-tab-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-tab-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-tab-doc + CHECK_RESULT $? 0 0 "install texlive-tkz-tab-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-tab-doc + CHECK_RESULT $? 0 0 "remove texlive-tkz-tab-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-tab.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-tab.sh new file mode 100644 index 0000000000000000000000000000000000000000..b62e839b4608a826eb1a7effe81423d54eec9b8b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tkz-tab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tkz-tab | grep -v \.src | grep texlive-tkz-tab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tkz-tab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tkz-tab + CHECK_RESULT $? 0 0 "install texlive-tkz-tab failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tkz-tab + CHECK_RESULT $? 0 0 "remove texlive-tkz-tab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tlc-article.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tlc-article.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e675b1d6bb53b1e1b5f66f63c74d2b790c36971 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tlc-article.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tlc-article | grep -v \.src | grep texlive-tlc-article + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tlc-article" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tlc-article + CHECK_RESULT $? 0 0 "install texlive-tlc-article failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tlc-article + CHECK_RESULT $? 0 0 "remove texlive-tlc-article failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tlc2-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tlc2-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd3e018499d232bd562f80b8d55c7a7830543e6d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tlc2-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tlc2-doc | grep -v \.src | grep texlive-tlc2-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tlc2-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tlc2-doc + CHECK_RESULT $? 0 0 "install texlive-tlc2-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tlc2-doc + CHECK_RESULT $? 0 0 "remove texlive-tlc2-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tlmgrbasics.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tlmgrbasics.sh new file mode 100644 index 0000000000000000000000000000000000000000..385a50bb111f941acb94c8acd3c4c440f5a5a4f9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tlmgrbasics.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tlmgrbasics | grep -v \.src | grep texlive-tlmgrbasics + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tlmgrbasics" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tlmgrbasics + CHECK_RESULT $? 0 0 "install texlive-tlmgrbasics failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tlmgrbasics + CHECK_RESULT $? 0 0 "remove texlive-tlmgrbasics failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocbibind-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocbibind-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..90c0d3724553005518a6fe171e08c21b5218c2e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocbibind-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tocbibind-doc | grep -v \.src | grep texlive-tocbibind-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tocbibind-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tocbibind-doc + CHECK_RESULT $? 0 0 "install texlive-tocbibind-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tocbibind-doc + CHECK_RESULT $? 0 0 "remove texlive-tocbibind-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocbibind.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocbibind.sh new file mode 100644 index 0000000000000000000000000000000000000000..4420327df5d6c598e9c2af1a53839e954072671e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocbibind.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tocbibind | grep -v \.src | grep texlive-tocbibind + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tocbibind" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tocbibind + CHECK_RESULT $? 0 0 "install texlive-tocbibind failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tocbibind + CHECK_RESULT $? 0 0 "remove texlive-tocbibind failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocdata.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocdata.sh new file mode 100644 index 0000000000000000000000000000000000000000..429ed110afbdacbeed681998f722c0886ee30830 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocdata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tocdata | grep -v \.src | grep texlive-tocdata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tocdata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tocdata + CHECK_RESULT $? 0 0 "install texlive-tocdata failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tocdata + CHECK_RESULT $? 0 0 "remove texlive-tocdata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocloft-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocloft-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d54fc3747dbf3e95d30fa1ce040bc32636a9f8ef --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocloft-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tocloft-doc | grep -v \.src | grep texlive-tocloft-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tocloft-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tocloft-doc + CHECK_RESULT $? 0 0 "install texlive-tocloft-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tocloft-doc + CHECK_RESULT $? 0 0 "remove texlive-tocloft-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocloft.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocloft.sh new file mode 100644 index 0000000000000000000000000000000000000000..46671df3eccaa98835051e101ec3082b9e165d92 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocloft.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tocloft | grep -v \.src | grep texlive-tocloft + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tocloft" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tocloft + CHECK_RESULT $? 0 0 "install texlive-tocloft failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tocloft + CHECK_RESULT $? 0 0 "remove texlive-tocloft failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocvsec2-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocvsec2-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..48e6366e541d34bb8da754242651b6e4e55e2454 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocvsec2-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tocvsec2-doc | grep -v \.src | grep texlive-tocvsec2-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tocvsec2-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tocvsec2-doc + CHECK_RESULT $? 0 0 "install texlive-tocvsec2-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tocvsec2-doc + CHECK_RESULT $? 0 0 "remove texlive-tocvsec2-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocvsec2.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocvsec2.sh new file mode 100644 index 0000000000000000000000000000000000000000..6cfb7927748e86906f50fb4c385babe9d310bd0c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tocvsec2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tocvsec2 | grep -v \.src | grep texlive-tocvsec2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tocvsec2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tocvsec2 + CHECK_RESULT $? 0 0 "install texlive-tocvsec2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tocvsec2 + CHECK_RESULT $? 0 0 "remove texlive-tocvsec2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todo-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..634f8a5a5d9f837d1cb4b9c66ac82af9ad840928 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-todo-doc | grep -v \.src | grep texlive-todo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-todo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-todo-doc + CHECK_RESULT $? 0 0 "install texlive-todo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-todo-doc + CHECK_RESULT $? 0 0 "remove texlive-todo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todo.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todo.sh new file mode 100644 index 0000000000000000000000000000000000000000..70762036b7eb05c23ed1e544347c4bee6c30cb26 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-todo | grep -v \.src | grep texlive-todo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-todo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-todo + CHECK_RESULT $? 0 0 "install texlive-todo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-todo + CHECK_RESULT $? 0 0 "remove texlive-todo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todonotes-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todonotes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c29e1dab4eef3ec9a97914e0e25a1415b5785479 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todonotes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-todonotes-doc | grep -v \.src | grep texlive-todonotes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-todonotes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-todonotes-doc + CHECK_RESULT $? 0 0 "install texlive-todonotes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-todonotes-doc + CHECK_RESULT $? 0 0 "remove texlive-todonotes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todonotes.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todonotes.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4be98bb8baf01657c4b31419130ad7301d2cb54 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-todonotes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-todonotes | grep -v \.src | grep texlive-todonotes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-todonotes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-todonotes + CHECK_RESULT $? 0 0 "install texlive-todonotes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-todonotes + CHECK_RESULT $? 0 0 "remove texlive-todonotes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tokenizer-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tokenizer-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b78ef437ea403a4518dda03804939d734c95416 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tokenizer-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tokenizer-doc | grep -v \.src | grep texlive-tokenizer-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tokenizer-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tokenizer-doc + CHECK_RESULT $? 0 0 "install texlive-tokenizer-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tokenizer-doc + CHECK_RESULT $? 0 0 "remove texlive-tokenizer-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tokenizer.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tokenizer.sh new file mode 100644 index 0000000000000000000000000000000000000000..2aec5e0642dc0c935cd5851fbb69d1b9483bf1ba --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tokenizer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tokenizer | grep -v \.src | grep texlive-tokenizer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tokenizer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tokenizer + CHECK_RESULT $? 0 0 "install texlive-tokenizer failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tokenizer + CHECK_RESULT $? 0 0 "remove texlive-tokenizer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toolbox-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toolbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..485347667dc8692dbd1c3c9dd3e478cd13df4cbd --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toolbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-toolbox-doc | grep -v \.src | grep texlive-toolbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-toolbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-toolbox-doc + CHECK_RESULT $? 0 0 "install texlive-toolbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-toolbox-doc + CHECK_RESULT $? 0 0 "remove texlive-toolbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toolbox.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toolbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4f23ed1c31d6b7cf2be9d82652740a75506b2e6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toolbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-toolbox | grep -v \.src | grep texlive-toolbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-toolbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-toolbox + CHECK_RESULT $? 0 0 "install texlive-toolbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-toolbox + CHECK_RESULT $? 0 0 "remove texlive-toolbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tools-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tools-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4905adfa134228a5e8690f08a931f1cbbe5b3a59 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tools-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tools-doc | grep -v \.src | grep texlive-tools-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tools-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tools-doc + CHECK_RESULT $? 0 0 "install texlive-tools-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tools-doc + CHECK_RESULT $? 0 0 "remove texlive-tools-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tools.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..be1b8b8661f4ea530c626ca00f6ce9c00bd634fb --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tools | grep -v \.src | grep texlive-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tools + CHECK_RESULT $? 0 0 "install texlive-tools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tools + CHECK_RESULT $? 0 0 "remove texlive-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-topfloat-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-topfloat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..63c4a4fa9c92d9ae0e10fddc58e38b5eecdd0b4d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-topfloat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-topfloat-doc | grep -v \.src | grep texlive-topfloat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-topfloat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-topfloat-doc + CHECK_RESULT $? 0 0 "install texlive-topfloat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-topfloat-doc + CHECK_RESULT $? 0 0 "remove texlive-topfloat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-topfloat.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-topfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..7112f7c5a8036259c268ee3428f432f7fb489862 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-topfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-topfloat | grep -v \.src | grep texlive-topfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-topfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-topfloat + CHECK_RESULT $? 0 0 "install texlive-topfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-topfloat + CHECK_RESULT $? 0 0 "remove texlive-topfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-topletter.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-topletter.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf31911895beb870621e87412adb283f16b3f441 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-topletter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-topletter | grep -v \.src | grep texlive-topletter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-topletter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-topletter + CHECK_RESULT $? 0 0 "install texlive-topletter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-topletter + CHECK_RESULT $? 0 0 "remove texlive-topletter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toptesi-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toptesi-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..00f8b122a751d62411f2fd10a122b8dd0ffc860f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toptesi-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-toptesi-doc | grep -v \.src | grep texlive-toptesi-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-toptesi-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-toptesi-doc + CHECK_RESULT $? 0 0 "install texlive-toptesi-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-toptesi-doc + CHECK_RESULT $? 0 0 "remove texlive-toptesi-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toptesi.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toptesi.sh new file mode 100644 index 0000000000000000000000000000000000000000..247502d4d09c83435a97233ebd42a680810daa5b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-toptesi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-toptesi | grep -v \.src | grep texlive-toptesi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-toptesi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-toptesi + CHECK_RESULT $? 0 0 "install texlive-toptesi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-toptesi + CHECK_RESULT $? 0 0 "remove texlive-toptesi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totalcount.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totalcount.sh new file mode 100644 index 0000000000000000000000000000000000000000..445d920fa73dc771b5a86c5f1a5c28d53532cd01 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totalcount.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-totalcount | grep -v \.src | grep texlive-totalcount + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-totalcount" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-totalcount + CHECK_RESULT $? 0 0 "install texlive-totalcount failed" + SLEEP_WAIT 1 + dnf remove -y texlive-totalcount + CHECK_RESULT $? 0 0 "remove texlive-totalcount failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totcount-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totcount-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..df057daf6c2885f4286f9e5079cc203cfc136c02 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totcount-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-totcount-doc | grep -v \.src | grep texlive-totcount-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-totcount-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-totcount-doc + CHECK_RESULT $? 0 0 "install texlive-totcount-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-totcount-doc + CHECK_RESULT $? 0 0 "remove texlive-totcount-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totcount.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totcount.sh new file mode 100644 index 0000000000000000000000000000000000000000..535117b2c2a284815e190a7c39dde5f74820a906 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totcount.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-totcount | grep -v \.src | grep texlive-totcount + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-totcount" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-totcount + CHECK_RESULT $? 0 0 "install texlive-totcount failed" + SLEEP_WAIT 1 + dnf remove -y texlive-totcount + CHECK_RESULT $? 0 0 "remove texlive-totcount failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totpages-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totpages-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..35bb212f10219a539a973cf9b505a2f62b30b53b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totpages-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-totpages-doc | grep -v \.src | grep texlive-totpages-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-totpages-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-totpages-doc + CHECK_RESULT $? 0 0 "install texlive-totpages-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-totpages-doc + CHECK_RESULT $? 0 0 "remove texlive-totpages-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totpages.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totpages.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf4e58752ada17e819967e73e4d91628ee938b29 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-totpages.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-totpages | grep -v \.src | grep texlive-totpages + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-totpages" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-totpages + CHECK_RESULT $? 0 0 "install texlive-totpages failed" + SLEEP_WAIT 1 + dnf remove -y texlive-totpages + CHECK_RESULT $? 0 0 "remove texlive-totpages failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tpslifonts-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tpslifonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a10d07e3f9304f153550610ecb9133b5faaef3f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tpslifonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tpslifonts-doc | grep -v \.src | grep texlive-tpslifonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tpslifonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tpslifonts-doc + CHECK_RESULT $? 0 0 "install texlive-tpslifonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tpslifonts-doc + CHECK_RESULT $? 0 0 "remove texlive-tpslifonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tpslifonts.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tpslifonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..321ea26cb5c4533377c31fb3192aceda6b275e82 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tpslifonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tpslifonts | grep -v \.src | grep texlive-tpslifonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tpslifonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tpslifonts + CHECK_RESULT $? 0 0 "install texlive-tpslifonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tpslifonts + CHECK_RESULT $? 0 0 "remove texlive-tpslifonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tqft-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tqft-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ec3c91d0086297d4ce318f0f76855890812e5f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tqft-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tqft-doc | grep -v \.src | grep texlive-tqft-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tqft-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tqft-doc + CHECK_RESULT $? 0 0 "install texlive-tqft-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tqft-doc + CHECK_RESULT $? 0 0 "remove texlive-tqft-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tqft.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tqft.sh new file mode 100644 index 0000000000000000000000000000000000000000..c65b9f1cadba84ce8cec3707a215099583032916 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tqft.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tqft | grep -v \.src | grep texlive-tqft + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tqft" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tqft + CHECK_RESULT $? 0 0 "install texlive-tqft failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tqft + CHECK_RESULT $? 0 0 "remove texlive-tqft failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tracklang-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tracklang-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca963dea2f5e06c1a47297223981a04758ac8a67 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tracklang-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tracklang-doc | grep -v \.src | grep texlive-tracklang-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tracklang-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tracklang-doc + CHECK_RESULT $? 0 0 "install texlive-tracklang-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tracklang-doc + CHECK_RESULT $? 0 0 "remove texlive-tracklang-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tracklang.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tracklang.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3614b878fe5ee7f4612473e8ed2273d736972d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tracklang.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tracklang | grep -v \.src | grep texlive-tracklang + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tracklang" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tracklang + CHECK_RESULT $? 0 0 "install texlive-tracklang failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tracklang + CHECK_RESULT $? 0 0 "remove texlive-tracklang failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trajan-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trajan-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ba2935f8c76058b84cb016f1d0d820fd223d0ab --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trajan-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trajan-doc | grep -v \.src | grep texlive-trajan-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trajan-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trajan-doc + CHECK_RESULT $? 0 0 "install texlive-trajan-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trajan-doc + CHECK_RESULT $? 0 0 "remove texlive-trajan-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trajan.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trajan.sh new file mode 100644 index 0000000000000000000000000000000000000000..95a3911a9d4bc916c6063006dc50940a55c3198e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trajan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trajan | grep -v \.src | grep texlive-trajan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trajan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trajan + CHECK_RESULT $? 0 0 "install texlive-trajan failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trajan + CHECK_RESULT $? 0 0 "remove texlive-trajan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tram-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tram-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..91f05d4a8834a681e2c7abb362fde87f447b02db --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tram-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tram-doc | grep -v \.src | grep texlive-tram-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tram-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tram-doc + CHECK_RESULT $? 0 0 "install texlive-tram-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tram-doc + CHECK_RESULT $? 0 0 "remove texlive-tram-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tram.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tram.sh new file mode 100644 index 0000000000000000000000000000000000000000..97f4691895eaa77a5d8853fecbeeec41d3d1a0b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tram | grep -v \.src | grep texlive-tram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tram + CHECK_RESULT $? 0 0 "install texlive-tram failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tram + CHECK_RESULT $? 0 0 "remove texlive-tram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-array-fr-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-array-fr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..62005a96afc58dbdd0bb2f8e50df6469bf00fede --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-array-fr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-array-fr-doc | grep -v \.src | grep texlive-translation-array-fr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-array-fr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-array-fr-doc + CHECK_RESULT $? 0 0 "install texlive-translation-array-fr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-array-fr-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-array-fr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-arsclassica-de-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-arsclassica-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8394966a0e4d7890e5a19594b7da684e68719fad --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-arsclassica-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-arsclassica-de-doc | grep -v \.src | grep texlive-translation-arsclassica-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-arsclassica-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-arsclassica-de-doc + CHECK_RESULT $? 0 0 "install texlive-translation-arsclassica-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-arsclassica-de-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-arsclassica-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-biblatex-de-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-biblatex-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fef1bba04c27d7707a034b300aed1138e1d33175 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-biblatex-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-biblatex-de-doc | grep -v \.src | grep texlive-translation-biblatex-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-biblatex-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-biblatex-de-doc + CHECK_RESULT $? 0 0 "install texlive-translation-biblatex-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-biblatex-de-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-biblatex-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-chemsym-de-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-chemsym-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..34db0f66d03d4ce7ef410348a3f754875c0458fa --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-chemsym-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-chemsym-de-doc | grep -v \.src | grep texlive-translation-chemsym-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-chemsym-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-chemsym-de-doc + CHECK_RESULT $? 0 0 "install texlive-translation-chemsym-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-chemsym-de-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-chemsym-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-dcolumn-fr-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-dcolumn-fr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..92ea487124a2514b16c186e80fe798d6721631c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-dcolumn-fr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-dcolumn-fr-doc | grep -v \.src | grep texlive-translation-dcolumn-fr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-dcolumn-fr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-dcolumn-fr-doc + CHECK_RESULT $? 0 0 "install texlive-translation-dcolumn-fr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-dcolumn-fr-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-dcolumn-fr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-ecv-de-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-ecv-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..879c34fc444630242f8901500f5f40074befb411 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-ecv-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-ecv-de-doc | grep -v \.src | grep texlive-translation-ecv-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-ecv-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-ecv-de-doc + CHECK_RESULT $? 0 0 "install texlive-translation-ecv-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-ecv-de-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-ecv-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-enumitem-de-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-enumitem-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2b99415527fcf684d7d0134b3dc598a5419b6f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-enumitem-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-enumitem-de-doc | grep -v \.src | grep texlive-translation-enumitem-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-enumitem-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-enumitem-de-doc + CHECK_RESULT $? 0 0 "install texlive-translation-enumitem-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-enumitem-de-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-enumitem-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-europecv-de-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-europecv-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..de3cafdd739da9c3168df19694ae3a765792de74 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-europecv-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-europecv-de-doc | grep -v \.src | grep texlive-translation-europecv-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-europecv-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-europecv-de-doc + CHECK_RESULT $? 0 0 "install texlive-translation-europecv-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-europecv-de-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-europecv-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-filecontents-de-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-filecontents-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9ae61da83026300be633ae187d2a87eb9bd3ad7 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-filecontents-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-filecontents-de-doc | grep -v \.src | grep texlive-translation-filecontents-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-filecontents-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-filecontents-de-doc + CHECK_RESULT $? 0 0 "install texlive-translation-filecontents-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-filecontents-de-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-filecontents-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-moreverb-de-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-moreverb-de-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a56012a6605742bc309f80bb7e599490f31a329d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-moreverb-de-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-moreverb-de-doc | grep -v \.src | grep texlive-translation-moreverb-de-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-moreverb-de-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-moreverb-de-doc + CHECK_RESULT $? 0 0 "install texlive-translation-moreverb-de-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-moreverb-de-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-moreverb-de-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-natbib-fr-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-natbib-fr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e835049abdda62767d96b86824f6e636110a9d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-natbib-fr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-natbib-fr-doc | grep -v \.src | grep texlive-translation-natbib-fr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-natbib-fr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-natbib-fr-doc + CHECK_RESULT $? 0 0 "install texlive-translation-natbib-fr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-natbib-fr-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-natbib-fr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-tabbing-fr-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-tabbing-fr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..06b8b72a0c7fa820b8a121d3469fc0c330b6cbb6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translation-tabbing-fr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translation-tabbing-fr-doc | grep -v \.src | grep texlive-translation-tabbing-fr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translation-tabbing-fr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translation-tabbing-fr-doc + CHECK_RESULT $? 0 0 "install texlive-translation-tabbing-fr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translation-tabbing-fr-doc + CHECK_RESULT $? 0 0 "remove texlive-translation-tabbing-fr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translations-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translations-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..08242eb40ac0bc7375a73a96313799d076c79fb2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translations-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translations-doc | grep -v \.src | grep texlive-translations-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translations-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translations-doc + CHECK_RESULT $? 0 0 "install texlive-translations-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translations-doc + CHECK_RESULT $? 0 0 "remove texlive-translations-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translations.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translations.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d477dfc23f19de6051d9e0adc4462e003cdaa7d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translations.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translations | grep -v \.src | grep texlive-translations + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translations" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translations + CHECK_RESULT $? 0 0 "install texlive-translations failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translations + CHECK_RESULT $? 0 0 "remove texlive-translations failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translator.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translator.sh new file mode 100644 index 0000000000000000000000000000000000000000..76b85f0f4c4db10e6271fd0ce6976915c39b26ad --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-translator.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-translator | grep -v \.src | grep texlive-translator + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-translator" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-translator + CHECK_RESULT $? 0 0 "install texlive-translator failed" + SLEEP_WAIT 1 + dnf remove -y texlive-translator + CHECK_RESULT $? 0 0 "remove texlive-translator failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tree-dvips-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tree-dvips-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a32108b264a6bb7dcd589c2cce9062b5739b92b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tree-dvips-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tree-dvips-doc | grep -v \.src | grep texlive-tree-dvips-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tree-dvips-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tree-dvips-doc + CHECK_RESULT $? 0 0 "install texlive-tree-dvips-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tree-dvips-doc + CHECK_RESULT $? 0 0 "remove texlive-tree-dvips-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tree-dvips.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tree-dvips.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb4aace586c71d015d8c5760b01b967b0f292666 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tree-dvips.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tree-dvips | grep -v \.src | grep texlive-tree-dvips + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tree-dvips" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tree-dvips + CHECK_RESULT $? 0 0 "install texlive-tree-dvips failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tree-dvips + CHECK_RESULT $? 0 0 "remove texlive-tree-dvips failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-treetex-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-treetex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..889a402d5ccf63916f65157f32c94dd60ef83989 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-treetex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-treetex-doc | grep -v \.src | grep texlive-treetex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-treetex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-treetex-doc + CHECK_RESULT $? 0 0 "install texlive-treetex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-treetex-doc + CHECK_RESULT $? 0 0 "remove texlive-treetex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-treetex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-treetex.sh new file mode 100644 index 0000000000000000000000000000000000000000..087ce75c921f514243f462d8870d6dd460af55a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-treetex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-treetex | grep -v \.src | grep texlive-treetex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-treetex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-treetex + CHECK_RESULT $? 0 0 "install texlive-treetex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-treetex + CHECK_RESULT $? 0 0 "remove texlive-treetex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trfsigns-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trfsigns-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bc24b036cd2e80e7203fec64dd574f88f17474d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trfsigns-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trfsigns-doc | grep -v \.src | grep texlive-trfsigns-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trfsigns-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trfsigns-doc + CHECK_RESULT $? 0 0 "install texlive-trfsigns-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trfsigns-doc + CHECK_RESULT $? 0 0 "remove texlive-trfsigns-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trfsigns.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trfsigns.sh new file mode 100644 index 0000000000000000000000000000000000000000..25ab299e3a7a3cfe29807f110a46a73404165613 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trfsigns.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trfsigns | grep -v \.src | grep texlive-trfsigns + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trfsigns" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trfsigns + CHECK_RESULT $? 0 0 "install texlive-trfsigns failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trfsigns + CHECK_RESULT $? 0 0 "remove texlive-trfsigns failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trigonometry.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trigonometry.sh new file mode 100644 index 0000000000000000000000000000000000000000..54a3491f455b6baa04aece9d4d5a7911de11c822 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trigonometry.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trigonometry | grep -v \.src | grep texlive-trigonometry + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trigonometry" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trigonometry + CHECK_RESULT $? 0 0 "install texlive-trigonometry failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trigonometry + CHECK_RESULT $? 0 0 "remove texlive-trigonometry failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trimspaces-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trimspaces-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..17497c10a85158ad388c7f11c1589f9f1f3fdc0b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trimspaces-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trimspaces-doc | grep -v \.src | grep texlive-trimspaces-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trimspaces-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trimspaces-doc + CHECK_RESULT $? 0 0 "install texlive-trimspaces-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trimspaces-doc + CHECK_RESULT $? 0 0 "remove texlive-trimspaces-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trimspaces.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trimspaces.sh new file mode 100644 index 0000000000000000000000000000000000000000..401ef763943527c86261088d5ecd1ac1ad1dd0f2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trimspaces.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trimspaces | grep -v \.src | grep texlive-trimspaces + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trimspaces" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trimspaces + CHECK_RESULT $? 0 0 "install texlive-trimspaces failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trimspaces + CHECK_RESULT $? 0 0 "remove texlive-trimspaces failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trivfloat-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trivfloat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e06312ba9298610174c5346e8bc1d1367de96522 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trivfloat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trivfloat-doc | grep -v \.src | grep texlive-trivfloat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trivfloat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trivfloat-doc + CHECK_RESULT $? 0 0 "install texlive-trivfloat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trivfloat-doc + CHECK_RESULT $? 0 0 "remove texlive-trivfloat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trivfloat.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trivfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..d53c75ed185fdae81ac34d2a04ada383a47129c8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trivfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trivfloat | grep -v \.src | grep texlive-trivfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trivfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trivfloat + CHECK_RESULT $? 0 0 "install texlive-trivfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trivfloat + CHECK_RESULT $? 0 0 "remove texlive-trivfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trsym-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trsym-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..75db0c7035a8411ee511cbe8e1d0928ed57eb1c3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trsym-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trsym-doc | grep -v \.src | grep texlive-trsym-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trsym-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trsym-doc + CHECK_RESULT $? 0 0 "install texlive-trsym-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trsym-doc + CHECK_RESULT $? 0 0 "remove texlive-trsym-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trsym.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trsym.sh new file mode 100644 index 0000000000000000000000000000000000000000..25addcadf66a1b1bcff554a1e47b20bf21ed7134 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-trsym.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-trsym | grep -v \.src | grep texlive-trsym + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-trsym" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-trsym + CHECK_RESULT $? 0 0 "install texlive-trsym failed" + SLEEP_WAIT 1 + dnf remove -y texlive-trsym + CHECK_RESULT $? 0 0 "remove texlive-trsym failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-truncate-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-truncate-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c039f8e6afb219a4d735efdaa0aef51f577f9e9b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-truncate-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-truncate-doc | grep -v \.src | grep texlive-truncate-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-truncate-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-truncate-doc + CHECK_RESULT $? 0 0 "install texlive-truncate-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-truncate-doc + CHECK_RESULT $? 0 0 "remove texlive-truncate-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-truncate.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-truncate.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d132378ef62eace1c54a7a64c89a220093fb8f2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-truncate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-truncate | grep -v \.src | grep texlive-truncate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-truncate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-truncate + CHECK_RESULT $? 0 0 "install texlive-truncate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-truncate + CHECK_RESULT $? 0 0 "remove texlive-truncate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tsemlines.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tsemlines.sh new file mode 100644 index 0000000000000000000000000000000000000000..66d1d56a3fe4dee646b0b3227068fdcc3e29552d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tsemlines.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tsemlines | grep -v \.src | grep texlive-tsemlines + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tsemlines" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tsemlines + CHECK_RESULT $? 0 0 "install texlive-tsemlines failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tsemlines + CHECK_RESULT $? 0 0 "remove texlive-tsemlines failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tucv-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tucv-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c658d79544df0eec701eddf5a07ae2fcd6cc5303 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tucv-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tucv-doc | grep -v \.src | grep texlive-tucv-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tucv-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tucv-doc + CHECK_RESULT $? 0 0 "install texlive-tucv-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tucv-doc + CHECK_RESULT $? 0 0 "remove texlive-tucv-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tucv.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tucv.sh new file mode 100644 index 0000000000000000000000000000000000000000..a02c90a91040c2f659f949b1a145cd17b58a17f3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tucv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tucv | grep -v \.src | grep texlive-tucv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tucv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tucv + CHECK_RESULT $? 0 0 "install texlive-tucv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tucv + CHECK_RESULT $? 0 0 "remove texlive-tucv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tudscr-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tudscr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..800a3d8b3fbdc526c0e153a4946b955796cc2706 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tudscr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tudscr-doc | grep -v \.src | grep texlive-tudscr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tudscr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tudscr-doc + CHECK_RESULT $? 0 0 "install texlive-tudscr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tudscr-doc + CHECK_RESULT $? 0 0 "remove texlive-tudscr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tudscr.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tudscr.sh new file mode 100644 index 0000000000000000000000000000000000000000..f107f3f5adf19daa957811c0e5ea26eab55c5707 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tudscr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tudscr | grep -v \.src | grep texlive-tudscr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tudscr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tudscr + CHECK_RESULT $? 0 0 "install texlive-tudscr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tudscr + CHECK_RESULT $? 0 0 "remove texlive-tudscr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tufte-latex-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tufte-latex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b901a090bf11078d9649565ac1287ac2c64bfe6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tufte-latex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tufte-latex-doc | grep -v \.src | grep texlive-tufte-latex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tufte-latex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tufte-latex-doc + CHECK_RESULT $? 0 0 "install texlive-tufte-latex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tufte-latex-doc + CHECK_RESULT $? 0 0 "remove texlive-tufte-latex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tufte-latex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tufte-latex.sh new file mode 100644 index 0000000000000000000000000000000000000000..946c18885ec54cda23f38d49956de40e3c01a3c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tufte-latex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tufte-latex | grep -v \.src | grep texlive-tufte-latex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tufte-latex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tufte-latex + CHECK_RESULT $? 0 0 "install texlive-tufte-latex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tufte-latex + CHECK_RESULT $? 0 0 "remove texlive-tufte-latex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..83dfcfac350ae1bb23dd129943a9f3010da3c3d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tugboat-doc | grep -v \.src | grep texlive-tugboat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tugboat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tugboat-doc + CHECK_RESULT $? 0 0 "install texlive-tugboat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tugboat-doc + CHECK_RESULT $? 0 0 "remove texlive-tugboat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat-plain-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat-plain-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c08c8a9a01f5dedc93df52b789438e0887b2c60a --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat-plain-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tugboat-plain-doc | grep -v \.src | grep texlive-tugboat-plain-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tugboat-plain-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tugboat-plain-doc + CHECK_RESULT $? 0 0 "install texlive-tugboat-plain-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tugboat-plain-doc + CHECK_RESULT $? 0 0 "remove texlive-tugboat-plain-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat-plain.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat-plain.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b2fde6a3101de0af785fea7e331c54674f6961b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat-plain.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tugboat-plain | grep -v \.src | grep texlive-tugboat-plain + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tugboat-plain" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tugboat-plain + CHECK_RESULT $? 0 0 "install texlive-tugboat-plain failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tugboat-plain + CHECK_RESULT $? 0 0 "remove texlive-tugboat-plain failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dee4978e64707d120ca53c01c441b5b7cc09c9e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tugboat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tugboat | grep -v \.src | grep texlive-tugboat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tugboat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tugboat + CHECK_RESULT $? 0 0 "install texlive-tugboat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tugboat + CHECK_RESULT $? 0 0 "remove texlive-tugboat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tui-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tui-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ba4ab2ac87f407b4cf33eb59321678338aebd84 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tui-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tui-doc | grep -v \.src | grep texlive-tui-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tui-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tui-doc + CHECK_RESULT $? 0 0 "install texlive-tui-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tui-doc + CHECK_RESULT $? 0 0 "remove texlive-tui-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tui.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tui.sh new file mode 100644 index 0000000000000000000000000000000000000000..47787fe5fee6f5739c9d1b778a79fe42312c3fed --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tui.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tui | grep -v \.src | grep texlive-tui + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tui" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tui + CHECK_RESULT $? 0 0 "install texlive-tui failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tui + CHECK_RESULT $? 0 0 "remove texlive-tui failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..056fd624fd0d64a227ec83f6ae8abaca1288e0de --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-turabian-doc | grep -v \.src | grep texlive-turabian-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-turabian-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-turabian-doc + CHECK_RESULT $? 0 0 "install texlive-turabian-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-turabian-doc + CHECK_RESULT $? 0 0 "remove texlive-turabian-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian-formatting-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian-formatting-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..315632d32c2394e7b89e8374d16d411897ce49b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian-formatting-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-turabian-formatting-doc | grep -v \.src | grep texlive-turabian-formatting-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-turabian-formatting-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-turabian-formatting-doc + CHECK_RESULT $? 0 0 "install texlive-turabian-formatting-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-turabian-formatting-doc + CHECK_RESULT $? 0 0 "remove texlive-turabian-formatting-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian-formatting.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian-formatting.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4cea6a11ee133312d59bbd8a70a3324553647e0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian-formatting.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-turabian-formatting | grep -v \.src | grep texlive-turabian-formatting + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-turabian-formatting" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-turabian-formatting + CHECK_RESULT $? 0 0 "install texlive-turabian-formatting failed" + SLEEP_WAIT 1 + dnf remove -y texlive-turabian-formatting + CHECK_RESULT $? 0 0 "remove texlive-turabian-formatting failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian.sh new file mode 100644 index 0000000000000000000000000000000000000000..e753f1e5173ccc4c18f463dc3f9ca3aebc2a6d47 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turabian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-turabian | grep -v \.src | grep texlive-turabian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-turabian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-turabian + CHECK_RESULT $? 0 0 "install texlive-turabian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-turabian + CHECK_RESULT $? 0 0 "remove texlive-turabian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turkmen-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turkmen-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d112a2bdcbe913aa58afb23856e266c776b214ad --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turkmen-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-turkmen-doc | grep -v \.src | grep texlive-turkmen-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-turkmen-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-turkmen-doc + CHECK_RESULT $? 0 0 "install texlive-turkmen-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-turkmen-doc + CHECK_RESULT $? 0 0 "remove texlive-turkmen-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turkmen.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turkmen.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0990b9eaa6d3604dbbaff389cb5659d645b5591 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turkmen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-turkmen | grep -v \.src | grep texlive-turkmen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-turkmen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-turkmen + CHECK_RESULT $? 0 0 "install texlive-turkmen failed" + SLEEP_WAIT 1 + dnf remove -y texlive-turkmen + CHECK_RESULT $? 0 0 "remove texlive-turkmen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnstile-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnstile-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d183f36b30177230eced4ebe40d86af37480f0e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnstile-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-turnstile-doc | grep -v \.src | grep texlive-turnstile-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-turnstile-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-turnstile-doc + CHECK_RESULT $? 0 0 "install texlive-turnstile-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-turnstile-doc + CHECK_RESULT $? 0 0 "remove texlive-turnstile-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnstile.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnstile.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc1e54f4af8d9c42698171e0936f9a378d1a39de --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnstile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-turnstile | grep -v \.src | grep texlive-turnstile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-turnstile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-turnstile + CHECK_RESULT $? 0 0 "install texlive-turnstile failed" + SLEEP_WAIT 1 + dnf remove -y texlive-turnstile + CHECK_RESULT $? 0 0 "remove texlive-turnstile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnthepage-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnthepage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4985b6c9bffbc77cf6136c17e4527b6a929e7e1b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnthepage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-turnthepage-doc | grep -v \.src | grep texlive-turnthepage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-turnthepage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-turnthepage-doc + CHECK_RESULT $? 0 0 "install texlive-turnthepage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-turnthepage-doc + CHECK_RESULT $? 0 0 "remove texlive-turnthepage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnthepage.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnthepage.sh new file mode 100644 index 0000000000000000000000000000000000000000..a69ef0436f75cad2e2b4efa78e2ac0da22316adf --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-turnthepage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-turnthepage | grep -v \.src | grep texlive-turnthepage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-turnthepage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-turnthepage + CHECK_RESULT $? 0 0 "install texlive-turnthepage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-turnthepage + CHECK_RESULT $? 0 0 "remove texlive-turnthepage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoinone-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoinone-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4efb1b0364f7874b184d71fd5e8c783ee1785ec --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoinone-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-twoinone-doc | grep -v \.src | grep texlive-twoinone-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-twoinone-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-twoinone-doc + CHECK_RESULT $? 0 0 "install texlive-twoinone-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-twoinone-doc + CHECK_RESULT $? 0 0 "remove texlive-twoinone-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoinone.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoinone.sh new file mode 100644 index 0000000000000000000000000000000000000000..20cbbc00de7e71fb53f6a0dbf3d819ff5309330e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoinone.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-twoinone | grep -v \.src | grep texlive-twoinone + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-twoinone" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-twoinone + CHECK_RESULT $? 0 0 "install texlive-twoinone failed" + SLEEP_WAIT 1 + dnf remove -y texlive-twoinone + CHECK_RESULT $? 0 0 "remove texlive-twoinone failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoup-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoup-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..707a81eb81d82d0ef9dddb8188e137ba8ae6e4ec --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoup-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-twoup-doc | grep -v \.src | grep texlive-twoup-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-twoup-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-twoup-doc + CHECK_RESULT $? 0 0 "install texlive-twoup-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-twoup-doc + CHECK_RESULT $? 0 0 "remove texlive-twoup-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoup.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoup.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a9e666833b935412d78ae74dbd310a374dd08b3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-twoup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-twoup | grep -v \.src | grep texlive-twoup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-twoup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-twoup + CHECK_RESULT $? 0 0 "install texlive-twoup failed" + SLEEP_WAIT 1 + dnf remove -y texlive-twoup + CHECK_RESULT $? 0 0 "remove texlive-twoup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfonts-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..18db7222393eee746fa123bbe00cba14ac24d5dd --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-txfonts-doc | grep -v \.src | grep texlive-txfonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-txfonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-txfonts-doc + CHECK_RESULT $? 0 0 "install texlive-txfonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-txfonts-doc + CHECK_RESULT $? 0 0 "remove texlive-txfonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfonts.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebbd303f3f57948d1de93205c8fed1ef0ffff71d --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-txfonts | grep -v \.src | grep texlive-txfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-txfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-txfonts + CHECK_RESULT $? 0 0 "install texlive-txfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-txfonts + CHECK_RESULT $? 0 0 "remove texlive-txfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfontsb-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfontsb-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f22d599f4988ef5511071ba658abfef44bf58d32 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfontsb-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-txfontsb-doc | grep -v \.src | grep texlive-txfontsb-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-txfontsb-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-txfontsb-doc + CHECK_RESULT $? 0 0 "install texlive-txfontsb-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-txfontsb-doc + CHECK_RESULT $? 0 0 "remove texlive-txfontsb-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfontsb.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfontsb.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e4503ba3a0bd5307daa585d5dfb6f39d1e19772 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txfontsb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-txfontsb | grep -v \.src | grep texlive-txfontsb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-txfontsb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-txfontsb + CHECK_RESULT $? 0 0 "install texlive-txfontsb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-txfontsb + CHECK_RESULT $? 0 0 "remove texlive-txfontsb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txgreeks-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txgreeks-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..56cef7f9d8962cc77fc5341a0205431b7855985e --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txgreeks-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-txgreeks-doc | grep -v \.src | grep texlive-txgreeks-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-txgreeks-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-txgreeks-doc + CHECK_RESULT $? 0 0 "install texlive-txgreeks-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-txgreeks-doc + CHECK_RESULT $? 0 0 "remove texlive-txgreeks-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txgreeks.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txgreeks.sh new file mode 100644 index 0000000000000000000000000000000000000000..524f460f4145963cc417b00a0144c667a982cac0 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txgreeks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-txgreeks | grep -v \.src | grep texlive-txgreeks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-txgreeks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-txgreeks + CHECK_RESULT $? 0 0 "install texlive-txgreeks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-txgreeks + CHECK_RESULT $? 0 0 "remove texlive-txgreeks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txuprcal.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txuprcal.sh new file mode 100644 index 0000000000000000000000000000000000000000..db7b681e24f163084d912fe08f47a045974ba9a3 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-txuprcal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-txuprcal | grep -v \.src | grep texlive-txuprcal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-txuprcal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-txuprcal + CHECK_RESULT $? 0 0 "install texlive-txuprcal failed" + SLEEP_WAIT 1 + dnf remove -y texlive-txuprcal + CHECK_RESULT $? 0 0 "remove texlive-txuprcal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-type1cm-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-type1cm-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c541be4c2a0d8a7fe4ee3b92bb6ec87f9b9bb47f --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-type1cm-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-type1cm-doc | grep -v \.src | grep texlive-type1cm-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-type1cm-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-type1cm-doc + CHECK_RESULT $? 0 0 "install texlive-type1cm-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-type1cm-doc + CHECK_RESULT $? 0 0 "remove texlive-type1cm-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-type1cm.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-type1cm.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea5c3952143d475be8d15da0e4c6fd64815e5951 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-type1cm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-type1cm | grep -v \.src | grep texlive-type1cm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-type1cm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-type1cm + CHECK_RESULT $? 0 0 "install texlive-type1cm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-type1cm + CHECK_RESULT $? 0 0 "remove texlive-type1cm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typed-checklist-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typed-checklist-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d0c4389a3ffdfb4c999325565f25ecbf467a2d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typed-checklist-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typed-checklist-doc | grep -v \.src | grep texlive-typed-checklist-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typed-checklist-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typed-checklist-doc + CHECK_RESULT $? 0 0 "install texlive-typed-checklist-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typed-checklist-doc + CHECK_RESULT $? 0 0 "remove texlive-typed-checklist-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typed-checklist.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typed-checklist.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf62bd9266d85142c9962ad6b1338f6dcb9c7abf --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typed-checklist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typed-checklist | grep -v \.src | grep texlive-typed-checklist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typed-checklist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typed-checklist + CHECK_RESULT $? 0 0 "install texlive-typed-checklist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typed-checklist + CHECK_RESULT $? 0 0 "remove texlive-typed-checklist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typeface-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typeface-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..772a9683cdb8930c53ac999beaa92dad071e82cf --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typeface-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typeface-doc | grep -v \.src | grep texlive-typeface-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typeface-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typeface-doc + CHECK_RESULT $? 0 0 "install texlive-typeface-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typeface-doc + CHECK_RESULT $? 0 0 "remove texlive-typeface-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typeface.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typeface.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bd1869b51bc128babbd6cbb2cf5fd239179138c --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typeface.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typeface | grep -v \.src | grep texlive-typeface + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typeface" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typeface + CHECK_RESULT $? 0 0 "install texlive-typeface failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typeface + CHECK_RESULT $? 0 0 "remove texlive-typeface failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typehtml-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typehtml-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e47cdc7f66be5aa275ec1c787d5f6a135d85ca1 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typehtml-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typehtml-doc | grep -v \.src | grep texlive-typehtml-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typehtml-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typehtml-doc + CHECK_RESULT $? 0 0 "install texlive-typehtml-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typehtml-doc + CHECK_RESULT $? 0 0 "remove texlive-typehtml-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typehtml.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typehtml.sh new file mode 100644 index 0000000000000000000000000000000000000000..012259c07d776f6cff8bd12b2bc686b3ff298420 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typehtml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typehtml | grep -v \.src | grep texlive-typehtml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typehtml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typehtml + CHECK_RESULT $? 0 0 "install texlive-typehtml failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typehtml + CHECK_RESULT $? 0 0 "remove texlive-typehtml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typewriter.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typewriter.sh new file mode 100644 index 0000000000000000000000000000000000000000..44b436d757dbff1bcb5de458f55887e8fea0dc61 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typewriter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typewriter | grep -v \.src | grep texlive-typewriter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typewriter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typewriter + CHECK_RESULT $? 0 0 "install texlive-typewriter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typewriter + CHECK_RESULT $? 0 0 "remove texlive-typewriter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typicons-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typicons-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..838d367760a64de07a50cf777861bb9a23f0e718 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typicons-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typicons-doc | grep -v \.src | grep texlive-typicons-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typicons-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typicons-doc + CHECK_RESULT $? 0 0 "install texlive-typicons-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typicons-doc + CHECK_RESULT $? 0 0 "remove texlive-typicons-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typicons.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typicons.sh new file mode 100644 index 0000000000000000000000000000000000000000..c65deacbd98b15d593734322a40a161cba1c45bc --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typicons.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typicons | grep -v \.src | grep texlive-typicons + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typicons" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typicons + CHECK_RESULT $? 0 0 "install texlive-typicons failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typicons + CHECK_RESULT $? 0 0 "remove texlive-typicons failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typoaid.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typoaid.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f2371ea568044eec134590044e775fe1cf557e2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typoaid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typoaid | grep -v \.src | grep texlive-typoaid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typoaid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typoaid + CHECK_RESULT $? 0 0 "install texlive-typoaid failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typoaid + CHECK_RESULT $? 0 0 "remove texlive-typoaid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typogrid-doc.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typogrid-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bff819973dba8a228d2dc64e4989f3c6338db4cd --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typogrid-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typogrid-doc | grep -v \.src | grep texlive-typogrid-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typogrid-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typogrid-doc + CHECK_RESULT $? 0 0 "install texlive-typogrid-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typogrid-doc + CHECK_RESULT $? 0 0 "remove texlive-typogrid-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typogrid.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typogrid.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ce3b188089fc813a2f492d52ada2434f74fa593 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-typogrid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-typogrid | grep -v \.src | grep texlive-typogrid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-typogrid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-typogrid + CHECK_RESULT $? 0 0 "install texlive-typogrid failed" + SLEEP_WAIT 1 + dnf remove -y texlive-typogrid + CHECK_RESULT $? 0 0 "remove texlive-typogrid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tzplot.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tzplot.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c658f0251ea94f5faea2275d589d5d6c8c9047b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-tzplot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tzplot | grep -v \.src | grep texlive-tzplot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tzplot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tzplot + CHECK_RESULT $? 0 0 "install texlive-tzplot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tzplot + CHECK_RESULT $? 0 0 "remove texlive-tzplot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-uninormalize.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-uninormalize.sh new file mode 100644 index 0000000000000000000000000000000000000000..f87fcbd340636f88ee60ffc0270e7273d885b6df --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-uninormalize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uninormalize | grep -v \.src | grep texlive-uninormalize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uninormalize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uninormalize + CHECK_RESULT $? 0 0 "install texlive-uninormalize failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uninormalize + CHECK_RESULT $? 0 0 "remove texlive-uninormalize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-unitconv.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-unitconv.sh new file mode 100644 index 0000000000000000000000000000000000000000..3adc00966ad524f9cfe1b6bd016a6e1b32162b84 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-unitconv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unitconv | grep -v \.src | grep texlive-unitconv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unitconv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unitconv + CHECK_RESULT $? 0 0 "install texlive-unitconv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unitconv + CHECK_RESULT $? 0 0 "remove texlive-unitconv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-unitipa.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-unitipa.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4d63f8080f2fc40edd7e44c21588cf351ff0a90 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-unitipa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unitipa | grep -v \.src | grep texlive-unitipa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unitipa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unitipa + CHECK_RESULT $? 0 0 "install texlive-unitipa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unitipa + CHECK_RESULT $? 0 0 "remove texlive-unitipa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-unizgklasa.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-unizgklasa.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dab2158b6d61d951bcfb7bc2654b33b26d0424b --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-unizgklasa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unizgklasa | grep -v \.src | grep texlive-unizgklasa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unizgklasa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unizgklasa + CHECK_RESULT $? 0 0 "install texlive-unizgklasa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unizgklasa + CHECK_RESULT $? 0 0 "remove texlive-unizgklasa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-utf8add.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-utf8add.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccd10577b9df184101cba20d4a1afe4d4c3c0466 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-utf8add.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-utf8add | grep -v \.src | grep texlive-utf8add + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-utf8add" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-utf8add + CHECK_RESULT $? 0 0 "install texlive-utf8add failed" + SLEEP_WAIT 1 + dnf remove -y texlive-utf8add + CHECK_RESULT $? 0 0 "remove texlive-utf8add failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-utfsym.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-utfsym.sh new file mode 100644 index 0000000000000000000000000000000000000000..410397e2163beabde7765e6a42f574bc21b92881 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-utfsym.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-utfsym | grep -v \.src | grep texlive-utfsym + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-utfsym" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-utfsym + CHECK_RESULT $? 0 0 "install texlive-utfsym failed" + SLEEP_WAIT 1 + dnf remove -y texlive-utfsym + CHECK_RESULT $? 0 0 "remove texlive-utfsym failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-verifiche.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-verifiche.sh new file mode 100644 index 0000000000000000000000000000000000000000..4528f2b5adb8e939ad6533d889ca6470d66903c8 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-verifiche.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verifiche | grep -v \.src | grep texlive-verifiche + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verifiche" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verifiche + CHECK_RESULT $? 0 0 "install texlive-verifiche failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verifiche + CHECK_RESULT $? 0 0 "remove texlive-verifiche failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-worldflags.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-worldflags.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3672505cc6d8c2ec6ecd31cc7c5dd07a9f4d603 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-worldflags.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-worldflags | grep -v \.src | grep texlive-worldflags + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-worldflags" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-worldflags + CHECK_RESULT $? 0 0 "install texlive-worldflags failed" + SLEEP_WAIT 1 + dnf remove -y texlive-worldflags + CHECK_RESULT $? 0 0 "remove texlive-worldflags failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-xindy-persian.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-xindy-persian.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ba38bdf89f54301e0112cafe3ffa0165eecc322 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-xindy-persian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xindy-persian | grep -v \.src | grep texlive-xindy-persian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xindy-persian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xindy-persian + CHECK_RESULT $? 0 0 "install texlive-xindy-persian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xindy-persian + CHECK_RESULT $? 0 0 "remove texlive-xindy-persian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-xintsession.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-xintsession.sh new file mode 100644 index 0000000000000000000000000000000000000000..477cba52638c0e22acf56b6a9f1bfdbcf8c6ee93 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-xintsession.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xintsession | grep -v \.src | grep texlive-xintsession + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xintsession" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xintsession + CHECK_RESULT $? 0 0 "install texlive-xintsession failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xintsession + CHECK_RESULT $? 0 0 "remove texlive-xintsession failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-xmuthesis.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-xmuthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb518b27d31aeac86bfbcd7b70f1f8dc9033b2a2 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-xmuthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xmuthesis | grep -v \.src | grep texlive-xmuthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xmuthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xmuthesis + CHECK_RESULT $? 0 0 "install texlive-xmuthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xmuthesis + CHECK_RESULT $? 0 0 "remove texlive-xmuthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-zbmath-review-template.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-zbmath-review-template.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae38dc4c02e90017702662c9178ebfbdc88a0fc7 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-zbmath-review-template.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zbmath-review-template | grep -v \.src | grep texlive-zbmath-review-template + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zbmath-review-template" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zbmath-review-template + CHECK_RESULT $? 0 0 "install texlive-zbmath-review-template failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zbmath-review-template + CHECK_RESULT $? 0 0 "remove texlive-zbmath-review-template failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-zztex.sh b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-zztex.sh new file mode 100644 index 0000000000000000000000000000000000000000..050a48e2f4066158c3ed0df93fb8b35124bea852 --- /dev/null +++ b/testcases/cli-test/texlive-split-x/oe_test_texlive-split-x_install_and_remove_texlive-zztex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-x +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zztex | grep -v \.src | grep texlive-zztex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zztex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zztex + CHECK_RESULT $? 0 0 "install texlive-zztex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zztex + CHECK_RESULT $? 0 0 "remove texlive-zztex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-aaai-named.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-aaai-named.sh new file mode 100644 index 0000000000000000000000000000000000000000..248a60070a81da26a295be034e2b153781711e89 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-aaai-named.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-aaai-named | grep -v \.src | grep texlive-aaai-named + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-aaai-named" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-aaai-named + CHECK_RESULT $? 0 0 "install texlive-aaai-named failed" + SLEEP_WAIT 1 + dnf remove -y texlive-aaai-named + CHECK_RESULT $? 0 0 "remove texlive-aaai-named failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-accessibility.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-accessibility.sh new file mode 100644 index 0000000000000000000000000000000000000000..c936e97f481c0a11fddfe99611e4675001017ac0 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-accessibility.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-accessibility | grep -v \.src | grep texlive-accessibility + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-accessibility" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-accessibility + CHECK_RESULT $? 0 0 "install texlive-accessibility failed" + SLEEP_WAIT 1 + dnf remove -y texlive-accessibility + CHECK_RESULT $? 0 0 "remove texlive-accessibility failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-accsupp.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-accsupp.sh new file mode 100644 index 0000000000000000000000000000000000000000..57a7b4c66de304c49c018ca9e8a1c460be5f9d0a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-accsupp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-accsupp | grep -v \.src | grep texlive-accsupp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-accsupp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-accsupp + CHECK_RESULT $? 0 0 "install texlive-accsupp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-accsupp + CHECK_RESULT $? 0 0 "remove texlive-accsupp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-algxpar.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-algxpar.sh new file mode 100644 index 0000000000000000000000000000000000000000..962f7454a88d85c43efb5d862775d5a3dbccdeef --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-algxpar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-algxpar | grep -v \.src | grep texlive-algxpar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-algxpar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-algxpar + CHECK_RESULT $? 0 0 "install texlive-algxpar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-algxpar + CHECK_RESULT $? 0 0 "remove texlive-algxpar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-alphalph.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-alphalph.sh new file mode 100644 index 0000000000000000000000000000000000000000..c02a9ce8dc297a3c05e7f8b047a799908eeab463 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-alphalph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alphalph | grep -v \.src | grep texlive-alphalph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alphalph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alphalph + CHECK_RESULT $? 0 0 "install texlive-alphalph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alphalph + CHECK_RESULT $? 0 0 "remove texlive-alphalph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-annee-scolaire.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-annee-scolaire.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee6c4be5bb03bfaa84e79303602cc2c915873f14 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-annee-scolaire.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-annee-scolaire | grep -v \.src | grep texlive-annee-scolaire + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-annee-scolaire" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-annee-scolaire + CHECK_RESULT $? 0 0 "install texlive-annee-scolaire failed" + SLEEP_WAIT 1 + dnf remove -y texlive-annee-scolaire + CHECK_RESULT $? 0 0 "remove texlive-annee-scolaire failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-annotate.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-annotate.sh new file mode 100644 index 0000000000000000000000000000000000000000..d695cbcc34b83fbc9a4bc744e76215b972b46036 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-annotate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-annotate | grep -v \.src | grep texlive-annotate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-annotate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-annotate + CHECK_RESULT $? 0 0 "install texlive-annotate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-annotate + CHECK_RESULT $? 0 0 "remove texlive-annotate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-apa7.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-apa7.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5f54b6e31203f9ac6d1181555bbc0534ee3a78e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-apa7.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apa7 | grep -v \.src | grep texlive-apa7 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apa7" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apa7 + CHECK_RESULT $? 0 0 "install texlive-apa7 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apa7 + CHECK_RESULT $? 0 0 "remove texlive-apa7 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-askinclude.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-askinclude.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d0cd69881ae6f1aa04582c13b52ca57edf1e1ee --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-askinclude.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-askinclude | grep -v \.src | grep texlive-askinclude + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-askinclude" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-askinclude + CHECK_RESULT $? 0 0 "install texlive-askinclude failed" + SLEEP_WAIT 1 + dnf remove -y texlive-askinclude + CHECK_RESULT $? 0 0 "remove texlive-askinclude failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-atbegshi.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-atbegshi.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9575d2df9c019d584f67daacb98dea87394f55b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-atbegshi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-atbegshi | grep -v \.src | grep texlive-atbegshi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-atbegshi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-atbegshi + CHECK_RESULT $? 0 0 "install texlive-atbegshi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-atbegshi + CHECK_RESULT $? 0 0 "remove texlive-atbegshi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-atenddvi.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-atenddvi.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae4d0d4fd60aae24d879e87ce00e068528a3215f --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-atenddvi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-atenddvi | grep -v \.src | grep texlive-atenddvi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-atenddvi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-atenddvi + CHECK_RESULT $? 0 0 "install texlive-atenddvi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-atenddvi + CHECK_RESULT $? 0 0 "remove texlive-atenddvi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-atveryend.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-atveryend.sh new file mode 100644 index 0000000000000000000000000000000000000000..168d5ada869152d5df04029c3dbdca8b795c8979 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-atveryend.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-atveryend | grep -v \.src | grep texlive-atveryend + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-atveryend" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-atveryend + CHECK_RESULT $? 0 0 "install texlive-atveryend failed" + SLEEP_WAIT 1 + dnf remove -y texlive-atveryend + CHECK_RESULT $? 0 0 "remove texlive-atveryend failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-authordate.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-authordate.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cbc291e78c25dfddc7837cfbb2918e827618d89 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-authordate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-authordate | grep -v \.src | grep texlive-authordate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-authordate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-authordate + CHECK_RESULT $? 0 0 "install texlive-authordate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-authordate + CHECK_RESULT $? 0 0 "remove texlive-authordate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-autofancyhdr.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-autofancyhdr.sh new file mode 100644 index 0000000000000000000000000000000000000000..bee7bc12f82d282b4a9f875082e2c36c1776f84d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-autofancyhdr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-autofancyhdr | grep -v \.src | grep texlive-autofancyhdr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-autofancyhdr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-autofancyhdr + CHECK_RESULT $? 0 0 "install texlive-autofancyhdr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-autofancyhdr + CHECK_RESULT $? 0 0 "remove texlive-autofancyhdr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-auxhook.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-auxhook.sh new file mode 100644 index 0000000000000000000000000000000000000000..d15e1a7388a1272fc85c9244568474dc4d49ba65 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-auxhook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-auxhook | grep -v \.src | grep texlive-auxhook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-auxhook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-auxhook + CHECK_RESULT $? 0 0 "install texlive-auxhook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-auxhook + CHECK_RESULT $? 0 0 "remove texlive-auxhook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-axessibility.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-axessibility.sh new file mode 100644 index 0000000000000000000000000000000000000000..de537c89872a59467f4f50b0d6b408f494451e68 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-axessibility.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-axessibility | grep -v \.src | grep texlive-axessibility + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-axessibility" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-axessibility + CHECK_RESULT $? 0 0 "install texlive-axessibility failed" + SLEEP_WAIT 1 + dnf remove -y texlive-axessibility + CHECK_RESULT $? 0 0 "remove texlive-axessibility failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-barracuda.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-barracuda.sh new file mode 100644 index 0000000000000000000000000000000000000000..f957a2b86fbddf7bbd6d20044e5245fc9c886676 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-barracuda.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-barracuda | grep -v \.src | grep texlive-barracuda + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-barracuda" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-barracuda + CHECK_RESULT $? 0 0 "install texlive-barracuda failed" + SLEEP_WAIT 1 + dnf remove -y texlive-barracuda + CHECK_RESULT $? 0 0 "remove texlive-barracuda failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bearwear.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bearwear.sh new file mode 100644 index 0000000000000000000000000000000000000000..70140cf535bdc6722ad2fe012750268c6cd44716 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bearwear.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bearwear | grep -v \.src | grep texlive-bearwear + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bearwear" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bearwear + CHECK_RESULT $? 0 0 "install texlive-bearwear failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bearwear + CHECK_RESULT $? 0 0 "remove texlive-bearwear failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-ajc2020unofficial.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-ajc2020unofficial.sh new file mode 100644 index 0000000000000000000000000000000000000000..8121a8b1552285178990ce1716047ea7bb93c36d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-ajc2020unofficial.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex-ajc2020unofficial | grep -v \.src | grep texlive-biblatex-ajc2020unofficial + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex-ajc2020unofficial" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex-ajc2020unofficial + CHECK_RESULT $? 0 0 "install texlive-biblatex-ajc2020unofficial failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex-ajc2020unofficial + CHECK_RESULT $? 0 0 "remove texlive-biblatex-ajc2020unofficial failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-apa6.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-apa6.sh new file mode 100644 index 0000000000000000000000000000000000000000..5de05b8fb58fa289fcf4afb33fbf42bb39081625 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-apa6.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex-apa6 | grep -v \.src | grep texlive-biblatex-apa6 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex-apa6" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex-apa6 + CHECK_RESULT $? 0 0 "install texlive-biblatex-apa6 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex-apa6 + CHECK_RESULT $? 0 0 "remove texlive-biblatex-apa6 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-german-legal.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-german-legal.sh new file mode 100644 index 0000000000000000000000000000000000000000..61f8aedd5f4abe2c5f84145702b1fe5e4a33d7db --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-german-legal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex-german-legal | grep -v \.src | grep texlive-biblatex-german-legal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex-german-legal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex-german-legal + CHECK_RESULT $? 0 0 "install texlive-biblatex-german-legal failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex-german-legal + CHECK_RESULT $? 0 0 "remove texlive-biblatex-german-legal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-jura2.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-jura2.sh new file mode 100644 index 0000000000000000000000000000000000000000..3989463410172c3af75c146f802a45fbd46eef92 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-jura2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex-jura2 | grep -v \.src | grep texlive-biblatex-jura2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex-jura2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex-jura2 + CHECK_RESULT $? 0 0 "install texlive-biblatex-jura2 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex-jura2 + CHECK_RESULT $? 0 0 "remove texlive-biblatex-jura2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-software.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-software.sh new file mode 100644 index 0000000000000000000000000000000000000000..3904fdea95a3d51e3328858379cbb6dee904c5f6 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex-software.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex-software | grep -v \.src | grep texlive-biblatex-software + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex-software" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex-software + CHECK_RESULT $? 0 0 "install texlive-biblatex-software failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex-software + CHECK_RESULT $? 0 0 "remove texlive-biblatex-software failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex2bibitem.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex2bibitem.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ae464027726d85240b92ec1c2acb1d9a8d0931a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-biblatex2bibitem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex2bibitem | grep -v \.src | grep texlive-biblatex2bibitem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex2bibitem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex2bibitem + CHECK_RESULT $? 0 0 "install texlive-biblatex2bibitem failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex2bibitem + CHECK_RESULT $? 0 0 "remove texlive-biblatex2bibitem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bigintcalc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bigintcalc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dcb02781c3ef309d37404aa02e6bd7a2c56ef644 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bigintcalc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bigintcalc | grep -v \.src | grep texlive-bigintcalc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bigintcalc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bigintcalc + CHECK_RESULT $? 0 0 "install texlive-bigintcalc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bigintcalc + CHECK_RESULT $? 0 0 "remove texlive-bigintcalc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bitset.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bitset.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e77d757e0ebfd386a796815819481da756b0bd1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bitset.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bitset | grep -v \.src | grep texlive-bitset + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bitset" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bitset + CHECK_RESULT $? 0 0 "install texlive-bitset failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bitset + CHECK_RESULT $? 0 0 "remove texlive-bitset failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bookmark.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bookmark.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d836923f3db200e1bbc9d63ee2d8531004e18fd --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bookmark.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bookmark | grep -v \.src | grep texlive-bookmark + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bookmark" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bookmark + CHECK_RESULT $? 0 0 "install texlive-bookmark failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bookmark + CHECK_RESULT $? 0 0 "remove texlive-bookmark failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-brandeis-thesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-brandeis-thesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..c470907f9970aaf5d8c0288674e6fb89d44364c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-brandeis-thesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-brandeis-thesis | grep -v \.src | grep texlive-brandeis-thesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-brandeis-thesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-brandeis-thesis + CHECK_RESULT $? 0 0 "install texlive-brandeis-thesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-brandeis-thesis + CHECK_RESULT $? 0 0 "remove texlive-brandeis-thesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bxghost.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bxghost.sh new file mode 100644 index 0000000000000000000000000000000000000000..112b76ad301635543975e8e17919f910509f44cd --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-bxghost.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxghost | grep -v \.src | grep texlive-bxghost + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxghost" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxghost + CHECK_RESULT $? 0 0 "install texlive-bxghost failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxghost + CHECK_RESULT $? 0 0 "remove texlive-bxghost failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-catchfile.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-catchfile.sh new file mode 100644 index 0000000000000000000000000000000000000000..65c9db1668946c76c4c177896cd8034bc795fc91 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-catchfile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-catchfile | grep -v \.src | grep texlive-catchfile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-catchfile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-catchfile + CHECK_RESULT $? 0 0 "install texlive-catchfile failed" + SLEEP_WAIT 1 + dnf remove -y texlive-catchfile + CHECK_RESULT $? 0 0 "remove texlive-catchfile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ccool.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ccool.sh new file mode 100644 index 0000000000000000000000000000000000000000..588c05c955c5f642dda2a5c6d69b2cef24fe357a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ccool.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ccool | grep -v \.src | grep texlive-ccool + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ccool" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ccool + CHECK_RESULT $? 0 0 "install texlive-ccool failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ccool + CHECK_RESULT $? 0 0 "remove texlive-ccool failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-chemplants.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-chemplants.sh new file mode 100644 index 0000000000000000000000000000000000000000..ddcdf357a2fc07887611e43ef27a3f2f7f1fc254 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-chemplants.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chemplants | grep -v \.src | grep texlive-chemplants + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chemplants" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chemplants + CHECK_RESULT $? 0 0 "install texlive-chemplants failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chemplants + CHECK_RESULT $? 0 0 "remove texlive-chemplants failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-circledsteps.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-circledsteps.sh new file mode 100644 index 0000000000000000000000000000000000000000..3765a9edd292a6b3f917c5fc49f621cc8afabeab --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-circledsteps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-circledsteps | grep -v \.src | grep texlive-circledsteps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-circledsteps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-circledsteps + CHECK_RESULT $? 0 0 "install texlive-circledsteps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-circledsteps + CHECK_RESULT $? 0 0 "remove texlive-circledsteps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-circuit-macros.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-circuit-macros.sh new file mode 100644 index 0000000000000000000000000000000000000000..d402109bbb53bc4c0c57c93c5ee6cfe903706efc --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-circuit-macros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-circuit-macros | grep -v \.src | grep texlive-circuit-macros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-circuit-macros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-circuit-macros + CHECK_RESULT $? 0 0 "install texlive-circuit-macros failed" + SLEEP_WAIT 1 + dnf remove -y texlive-circuit-macros + CHECK_RESULT $? 0 0 "remove texlive-circuit-macros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-clara.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-clara.sh new file mode 100644 index 0000000000000000000000000000000000000000..af53d40dc954002141e2f8d8426b553906c2058a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-clara.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-clara | grep -v \.src | grep texlive-clara + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-clara" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-clara + CHECK_RESULT $? 0 0 "install texlive-clara failed" + SLEEP_WAIT 1 + dnf remove -y texlive-clara + CHECK_RESULT $? 0 0 "remove texlive-clara failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-cmathbb.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-cmathbb.sh new file mode 100644 index 0000000000000000000000000000000000000000..13c9dff4afff46768bf971b9951fc45811f80c91 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-cmathbb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cmathbb | grep -v \.src | grep texlive-cmathbb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cmathbb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cmathbb + CHECK_RESULT $? 0 0 "install texlive-cmathbb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cmathbb + CHECK_RESULT $? 0 0 "remove texlive-cmathbb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-courierten.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-courierten.sh new file mode 100644 index 0000000000000000000000000000000000000000..8504ba82a094723ba5d718369fb94b1e17b48e3b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-courierten.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-courierten | grep -v \.src | grep texlive-courierten + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-courierten" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-courierten + CHECK_RESULT $? 0 0 "install texlive-courierten failed" + SLEEP_WAIT 1 + dnf remove -y texlive-courierten + CHECK_RESULT $? 0 0 "remove texlive-courierten failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-csvmerge.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-csvmerge.sh new file mode 100644 index 0000000000000000000000000000000000000000..04ab0a0589fe98998694ccb472bdc3427212e41b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-csvmerge.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-csvmerge | grep -v \.src | grep texlive-csvmerge + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-csvmerge" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-csvmerge + CHECK_RESULT $? 0 0 "install texlive-csvmerge failed" + SLEEP_WAIT 1 + dnf remove -y texlive-csvmerge + CHECK_RESULT $? 0 0 "remove texlive-csvmerge failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ddphonism.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ddphonism.sh new file mode 100644 index 0000000000000000000000000000000000000000..58e43dfea5f783a77cec314ef047ef82f2f5575d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ddphonism.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ddphonism | grep -v \.src | grep texlive-ddphonism + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ddphonism" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ddphonism + CHECK_RESULT $? 0 0 "install texlive-ddphonism failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ddphonism + CHECK_RESULT $? 0 0 "remove texlive-ddphonism failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-diabetes-logbook.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-diabetes-logbook.sh new file mode 100644 index 0000000000000000000000000000000000000000..18f728c6afe6320f3a3475847682a5edeb757995 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-diabetes-logbook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-diabetes-logbook | grep -v \.src | grep texlive-diabetes-logbook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-diabetes-logbook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-diabetes-logbook + CHECK_RESULT $? 0 0 "install texlive-diabetes-logbook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-diabetes-logbook + CHECK_RESULT $? 0 0 "remove texlive-diabetes-logbook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ditaa.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ditaa.sh new file mode 100644 index 0000000000000000000000000000000000000000..69a483f84d8ce39e7ba43430dbc7f26c09eab9bb --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ditaa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ditaa | grep -v \.src | grep texlive-ditaa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ditaa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ditaa + CHECK_RESULT $? 0 0 "install texlive-ditaa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ditaa + CHECK_RESULT $? 0 0 "remove texlive-ditaa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-domitian.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-domitian.sh new file mode 100644 index 0000000000000000000000000000000000000000..71d58fc682c365f8b92a29a5fe66b67485cd2d7d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-domitian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-domitian | grep -v \.src | grep texlive-domitian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-domitian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-domitian + CHECK_RESULT $? 0 0 "install texlive-domitian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-domitian + CHECK_RESULT $? 0 0 "remove texlive-domitian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-dpcircling.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-dpcircling.sh new file mode 100644 index 0000000000000000000000000000000000000000..449bed6342acc073213b6299f5cf0259b588562b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-dpcircling.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dpcircling | grep -v \.src | grep texlive-dpcircling + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dpcircling" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dpcircling + CHECK_RESULT $? 0 0 "install texlive-dpcircling failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dpcircling + CHECK_RESULT $? 0 0 "remove texlive-dpcircling failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-econ-bst.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-econ-bst.sh new file mode 100644 index 0000000000000000000000000000000000000000..4db5d7a1c203778ff4222679a0633ba7bce57709 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-econ-bst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-econ-bst | grep -v \.src | grep texlive-econ-bst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-econ-bst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-econ-bst + CHECK_RESULT $? 0 0 "install texlive-econ-bst failed" + SLEEP_WAIT 1 + dnf remove -y texlive-econ-bst + CHECK_RESULT $? 0 0 "remove texlive-econ-bst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-embedfile.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-embedfile.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8b9529c5fd6b0fcd80a61b214de1659e2510768 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-embedfile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-embedfile | grep -v \.src | grep texlive-embedfile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-embedfile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-embedfile + CHECK_RESULT $? 0 0 "install texlive-embedfile failed" + SLEEP_WAIT 1 + dnf remove -y texlive-embedfile + CHECK_RESULT $? 0 0 "remove texlive-embedfile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-emoji.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-emoji.sh new file mode 100644 index 0000000000000000000000000000000000000000..98f9592f80ee4e13c359ccb8d338c1aff05abdca --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-emoji.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emoji | grep -v \.src | grep texlive-emoji + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emoji" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emoji + CHECK_RESULT $? 0 0 "install texlive-emoji failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emoji + CHECK_RESULT $? 0 0 "remove texlive-emoji failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-emojicite.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-emojicite.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ee7b94529292a0ed9bb1b47ef60699ef97f4ff7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-emojicite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-emojicite | grep -v \.src | grep texlive-emojicite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-emojicite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-emojicite + CHECK_RESULT $? 0 0 "install texlive-emojicite failed" + SLEEP_WAIT 1 + dnf remove -y texlive-emojicite + CHECK_RESULT $? 0 0 "remove texlive-emojicite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-endnotes-hy.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-endnotes-hy.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4372821d830ff698da6d0cd5154571bedb871ba --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-endnotes-hy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-endnotes-hy | grep -v \.src | grep texlive-endnotes-hy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-endnotes-hy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-endnotes-hy + CHECK_RESULT $? 0 0 "install texlive-endnotes-hy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-endnotes-hy + CHECK_RESULT $? 0 0 "remove texlive-endnotes-hy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-epigraph-keys.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-epigraph-keys.sh new file mode 100644 index 0000000000000000000000000000000000000000..7216564cb70a54a5dba8752aa7153fa613f78efb --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-epigraph-keys.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epigraph-keys | grep -v \.src | grep texlive-epigraph-keys + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epigraph-keys" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epigraph-keys + CHECK_RESULT $? 0 0 "install texlive-epigraph-keys failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epigraph-keys + CHECK_RESULT $? 0 0 "remove texlive-epigraph-keys failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-epstopdf-pkg.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-epstopdf-pkg.sh new file mode 100644 index 0000000000000000000000000000000000000000..6242b2dd4e2250d1c65a57f9ff7fe8f787828c12 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-epstopdf-pkg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-epstopdf-pkg | grep -v \.src | grep texlive-epstopdf-pkg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-epstopdf-pkg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-epstopdf-pkg + CHECK_RESULT $? 0 0 "install texlive-epstopdf-pkg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-epstopdf-pkg + CHECK_RESULT $? 0 0 "remove texlive-epstopdf-pkg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-erewhon-math.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-erewhon-math.sh new file mode 100644 index 0000000000000000000000000000000000000000..fac69e9c1f4897c196adbfb4fc784123d7b43254 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-erewhon-math.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-erewhon-math | grep -v \.src | grep texlive-erewhon-math + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-erewhon-math" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-erewhon-math + CHECK_RESULT $? 0 0 "install texlive-erewhon-math failed" + SLEEP_WAIT 1 + dnf remove -y texlive-erewhon-math + CHECK_RESULT $? 0 0 "remove texlive-erewhon-math failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-esindex.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-esindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..5794b925cd81ab7fd02c543f15f746fe1f368cb0 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-esindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-esindex | grep -v \.src | grep texlive-esindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-esindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-esindex + CHECK_RESULT $? 0 0 "install texlive-esindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-esindex + CHECK_RESULT $? 0 0 "remove texlive-esindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-etbb.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-etbb.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e13cf253555cbd2c5ee00de5fbb7a7c3e167718 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-etbb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etbb | grep -v \.src | grep texlive-etbb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etbb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etbb + CHECK_RESULT $? 0 0 "install texlive-etbb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etbb + CHECK_RESULT $? 0 0 "remove texlive-etbb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-etexcmds.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-etexcmds.sh new file mode 100644 index 0000000000000000000000000000000000000000..10c6aa863e1de21858ff8bd1eed7e1df8d590a78 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-etexcmds.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-etexcmds | grep -v \.src | grep texlive-etexcmds + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-etexcmds" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-etexcmds + CHECK_RESULT $? 0 0 "install texlive-etexcmds failed" + SLEEP_WAIT 1 + dnf remove -y texlive-etexcmds + CHECK_RESULT $? 0 0 "remove texlive-etexcmds failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-euclideangeometry.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-euclideangeometry.sh new file mode 100644 index 0000000000000000000000000000000000000000..5823586ec2eafec83d2ce440a2d064255a02e314 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-euclideangeometry.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-euclideangeometry | grep -v \.src | grep texlive-euclideangeometry + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-euclideangeometry" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-euclideangeometry + CHECK_RESULT $? 0 0 "install texlive-euclideangeometry failed" + SLEEP_WAIT 1 + dnf remove -y texlive-euclideangeometry + CHECK_RESULT $? 0 0 "remove texlive-euclideangeometry failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expkv-cs.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expkv-cs.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb99cc0b79729386c44fa5aaefdb2850ee3b87d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expkv-cs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expkv-cs | grep -v \.src | grep texlive-expkv-cs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expkv-cs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expkv-cs + CHECK_RESULT $? 0 0 "install texlive-expkv-cs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expkv-cs + CHECK_RESULT $? 0 0 "remove texlive-expkv-cs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expkv-def.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expkv-def.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c0474374d950661ea57e7aeae1e6255d43d996b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expkv-def.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expkv-def | grep -v \.src | grep texlive-expkv-def + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expkv-def" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expkv-def + CHECK_RESULT $? 0 0 "install texlive-expkv-def failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expkv-def + CHECK_RESULT $? 0 0 "remove texlive-expkv-def failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expkv.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expkv.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cc838fec76d0f274e6c0d1714b71cf1fe22b301 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expkv.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expkv | grep -v \.src | grep texlive-expkv + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expkv" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expkv + CHECK_RESULT $? 0 0 "install texlive-expkv failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expkv + CHECK_RESULT $? 0 0 "remove texlive-expkv failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expose-expl3-dunkerque-2019.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expose-expl3-dunkerque-2019.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5d6d3bcab2228b73c3d347e3dc2c3c95cf0e471 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-expose-expl3-dunkerque-2019.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-expose-expl3-dunkerque-2019 | grep -v \.src | grep texlive-expose-expl3-dunkerque-2019 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-expose-expl3-dunkerque-2019" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-expose-expl3-dunkerque-2019 + CHECK_RESULT $? 0 0 "install texlive-expose-expl3-dunkerque-2019 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-expose-expl3-dunkerque-2019 + CHECK_RESULT $? 0 0 "remove texlive-expose-expl3-dunkerque-2019 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-fewerfloatpages.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-fewerfloatpages.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc057063c23683e80f78517bb26f5f68452a0c4b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-fewerfloatpages.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fewerfloatpages | grep -v \.src | grep texlive-fewerfloatpages + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fewerfloatpages" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fewerfloatpages + CHECK_RESULT $? 0 0 "install texlive-fewerfloatpages failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fewerfloatpages + CHECK_RESULT $? 0 0 "remove texlive-fewerfloatpages failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-fontsetup.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-fontsetup.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a2c65c319b32c91ff3920ffbe70b7e169094fd4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-fontsetup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontsetup | grep -v \.src | grep texlive-fontsetup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontsetup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontsetup + CHECK_RESULT $? 0 0 "install texlive-fontsetup failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontsetup + CHECK_RESULT $? 0 0 "remove texlive-fontsetup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-fontsize.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-fontsize.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d3424a70ae72089ae2a6a146e82b9aad27888d4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-fontsize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fontsize | grep -v \.src | grep texlive-fontsize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fontsize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fontsize + CHECK_RESULT $? 0 0 "install texlive-fontsize failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fontsize + CHECK_RESULT $? 0 0 "remove texlive-fontsize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-frenchmath.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-frenchmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..f56235ccebcb7d5a6b3e16fb4e7a0f518c0f6fa3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-frenchmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-frenchmath | grep -v \.src | grep texlive-frenchmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-frenchmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-frenchmath + CHECK_RESULT $? 0 0 "install texlive-frenchmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-frenchmath + CHECK_RESULT $? 0 0 "remove texlive-frenchmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-gettitlestring.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-gettitlestring.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfb477b8a91a49ee217b1de841979d468cec81f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-gettitlestring.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gettitlestring | grep -v \.src | grep texlive-gettitlestring + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gettitlestring" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gettitlestring + CHECK_RESULT $? 0 0 "install texlive-gettitlestring failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gettitlestring + CHECK_RESULT $? 0 0 "remove texlive-gettitlestring failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-gfsdidotclassic.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-gfsdidotclassic.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd6c9df352259da7782c0ac23b0ba9e254720998 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-gfsdidotclassic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gfsdidotclassic | grep -v \.src | grep texlive-gfsdidotclassic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gfsdidotclassic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gfsdidotclassic + CHECK_RESULT $? 0 0 "install texlive-gfsdidotclassic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gfsdidotclassic + CHECK_RESULT $? 0 0 "remove texlive-gfsdidotclassic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-gindex.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-gindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..c41002d292bbb5a0f60249cff3d941c170622772 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-gindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gindex | grep -v \.src | grep texlive-gindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gindex + CHECK_RESULT $? 0 0 "install texlive-gindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gindex + CHECK_RESULT $? 0 0 "remove texlive-gindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-grfext.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-grfext.sh new file mode 100644 index 0000000000000000000000000000000000000000..db91b5a3458a63c9d124e028f251b1e67541525f --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-grfext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-grfext | grep -v \.src | grep texlive-grfext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-grfext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-grfext + CHECK_RESULT $? 0 0 "install texlive-grfext failed" + SLEEP_WAIT 1 + dnf remove -y texlive-grfext + CHECK_RESULT $? 0 0 "remove texlive-grfext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-grffile.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-grffile.sh new file mode 100644 index 0000000000000000000000000000000000000000..67d7718a5217bb6b0dfb64d951d865368f2ec0af --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-grffile.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-grffile | grep -v \.src | grep texlive-grffile + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-grffile" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-grffile + CHECK_RESULT $? 0 0 "install texlive-grffile failed" + SLEEP_WAIT 1 + dnf remove -y texlive-grffile + CHECK_RESULT $? 0 0 "remove texlive-grffile failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-haranoaji-extra.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-haranoaji-extra.sh new file mode 100644 index 0000000000000000000000000000000000000000..eeed0a85dc88376862b5dc88e3a5b4a784ad0305 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-haranoaji-extra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-haranoaji-extra | grep -v \.src | grep texlive-haranoaji-extra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-haranoaji-extra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-haranoaji-extra + CHECK_RESULT $? 0 0 "install texlive-haranoaji-extra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-haranoaji-extra + CHECK_RESULT $? 0 0 "remove texlive-haranoaji-extra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-haranoaji.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-haranoaji.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a227e98c911c770ebc22670e62024fac66b4646 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-haranoaji.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-haranoaji | grep -v \.src | grep texlive-haranoaji + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-haranoaji" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-haranoaji + CHECK_RESULT $? 0 0 "install texlive-haranoaji failed" + SLEEP_WAIT 1 + dnf remove -y texlive-haranoaji + CHECK_RESULT $? 0 0 "remove texlive-haranoaji failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hep-paper.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hep-paper.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f7f0d9d5fcee26f277ac548dfe482ff264f5aca --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hep-paper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hep-paper | grep -v \.src | grep texlive-hep-paper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hep-paper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hep-paper + CHECK_RESULT $? 0 0 "install texlive-hep-paper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hep-paper + CHECK_RESULT $? 0 0 "remove texlive-hep-paper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hitszbeamer.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hitszbeamer.sh new file mode 100644 index 0000000000000000000000000000000000000000..549e5a52bc94f8a0159d67c41f6cb2e20f119e52 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hitszbeamer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hitszbeamer | grep -v \.src | grep texlive-hitszbeamer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hitszbeamer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hitszbeamer + CHECK_RESULT $? 0 0 "install texlive-hitszbeamer failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hitszbeamer + CHECK_RESULT $? 0 0 "remove texlive-hitszbeamer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hitszthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hitszthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee02b6adb56aa3b94675740172c6c2a6b9e0c5a8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hitszthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hitszthesis | grep -v \.src | grep texlive-hitszthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hitszthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hitszthesis + CHECK_RESULT $? 0 0 "install texlive-hitszthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hitszthesis + CHECK_RESULT $? 0 0 "remove texlive-hitszthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hmtrump.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hmtrump.sh new file mode 100644 index 0000000000000000000000000000000000000000..62b441aa401446e08d40196c3ad6e57151635af4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hmtrump.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hmtrump | grep -v \.src | grep texlive-hmtrump + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hmtrump" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hmtrump + CHECK_RESULT $? 0 0 "install texlive-hmtrump failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hmtrump + CHECK_RESULT $? 0 0 "remove texlive-hmtrump failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hobsub.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hobsub.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e236e2470c0bf13833f0c733a5947761b3ec403 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hobsub.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hobsub | grep -v \.src | grep texlive-hobsub + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hobsub" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hobsub + CHECK_RESULT $? 0 0 "install texlive-hobsub failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hobsub + CHECK_RESULT $? 0 0 "remove texlive-hobsub failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hologo.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hologo.sh new file mode 100644 index 0000000000000000000000000000000000000000..07b342b65102c5e07fdcbb7d05d407f1f3917913 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hologo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hologo | grep -v \.src | grep texlive-hologo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hologo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hologo + CHECK_RESULT $? 0 0 "install texlive-hologo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hologo + CHECK_RESULT $? 0 0 "remove texlive-hologo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hvqrurl.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hvqrurl.sh new file mode 100644 index 0000000000000000000000000000000000000000..434287633f7b969f408c864702b2a3a6d039fba4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hvqrurl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hvqrurl | grep -v \.src | grep texlive-hvqrurl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hvqrurl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hvqrurl + CHECK_RESULT $? 0 0 "install texlive-hvqrurl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hvqrurl + CHECK_RESULT $? 0 0 "remove texlive-hvqrurl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hycolor.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hycolor.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d5123b849b92fb7cb2a80e2210fd134b97b1dd1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hycolor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hycolor | grep -v \.src | grep texlive-hycolor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hycolor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hycolor + CHECK_RESULT $? 0 0 "install texlive-hycolor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hycolor + CHECK_RESULT $? 0 0 "remove texlive-hycolor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hyphen-macedonian.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hyphen-macedonian.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c19adac8be9f2e92ca99001a0df64592d14bbaf --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-hyphen-macedonian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hyphen-macedonian | grep -v \.src | grep texlive-hyphen-macedonian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hyphen-macedonian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hyphen-macedonian + CHECK_RESULT $? 0 0 "install texlive-hyphen-macedonian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hyphen-macedonian + CHECK_RESULT $? 0 0 "remove texlive-hyphen-macedonian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ibarra.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ibarra.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2b8a2e3b8deda339015f541d99e41b03431362c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ibarra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ibarra | grep -v \.src | grep texlive-ibarra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ibarra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ibarra + CHECK_RESULT $? 0 0 "install texlive-ibarra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ibarra + CHECK_RESULT $? 0 0 "remove texlive-ibarra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-infwarerr.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-infwarerr.sh new file mode 100644 index 0000000000000000000000000000000000000000..a01b7db2f4edc442b1e7a994ab4f1cc7a3aa103d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-infwarerr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-infwarerr | grep -v \.src | grep texlive-infwarerr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-infwarerr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-infwarerr + CHECK_RESULT $? 0 0 "install texlive-infwarerr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-infwarerr + CHECK_RESULT $? 0 0 "remove texlive-infwarerr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-inputenx.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-inputenx.sh new file mode 100644 index 0000000000000000000000000000000000000000..076e9fca4af58dd8af801c1e7c2d0b833d86c76c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-inputenx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-inputenx | grep -v \.src | grep texlive-inputenx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-inputenx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-inputenx + CHECK_RESULT $? 0 0 "install texlive-inputenx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-inputenx + CHECK_RESULT $? 0 0 "remove texlive-inputenx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-intcalc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-intcalc.sh new file mode 100644 index 0000000000000000000000000000000000000000..89c96299d1f73827b705e0c036d38c18cb0e7148 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-intcalc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-intcalc | grep -v \.src | grep texlive-intcalc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-intcalc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-intcalc + CHECK_RESULT $? 0 0 "install texlive-intcalc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-intcalc + CHECK_RESULT $? 0 0 "remove texlive-intcalc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-is-bst.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-is-bst.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fb71d8543fba9a5930d8ea7cfaece286f4e9899 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-is-bst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-is-bst | grep -v \.src | grep texlive-is-bst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-is-bst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-is-bst + CHECK_RESULT $? 0 0 "install texlive-is-bst failed" + SLEEP_WAIT 1 + dnf remove -y texlive-is-bst + CHECK_RESULT $? 0 0 "remove texlive-is-bst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-jbact.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-jbact.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fb72e9c609e8a2ad4a01c78b315e25ae8bb9ec5 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-jbact.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jbact | grep -v \.src | grep texlive-jbact + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jbact" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jbact + CHECK_RESULT $? 0 0 "install texlive-jbact failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jbact + CHECK_RESULT $? 0 0 "remove texlive-jbact failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-jlreq-deluxe.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-jlreq-deluxe.sh new file mode 100644 index 0000000000000000000000000000000000000000..f90163ab6c68d26cf293237156ee78badb3bf398 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-jlreq-deluxe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jlreq-deluxe | grep -v \.src | grep texlive-jlreq-deluxe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jlreq-deluxe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jlreq-deluxe + CHECK_RESULT $? 0 0 "install texlive-jlreq-deluxe failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jlreq-deluxe + CHECK_RESULT $? 0 0 "remove texlive-jlreq-deluxe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-jmb.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-jmb.sh new file mode 100644 index 0000000000000000000000000000000000000000..098f500f32425fe4729d0aa4226dee906c32c508 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-jmb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jmb | grep -v \.src | grep texlive-jmb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jmb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jmb + CHECK_RESULT $? 0 0 "install texlive-jmb failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jmb + CHECK_RESULT $? 0 0 "remove texlive-jmb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-josefin.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-josefin.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0c40552078e13e0790eb01364a745fa015f144c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-josefin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-josefin | grep -v \.src | grep texlive-josefin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-josefin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-josefin + CHECK_RESULT $? 0 0 "install texlive-josefin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-josefin + CHECK_RESULT $? 0 0 "remove texlive-josefin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kblocks.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kblocks.sh new file mode 100644 index 0000000000000000000000000000000000000000..126803e9404b9ae8d86b90731948253ca21dd193 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kblocks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kblocks | grep -v \.src | grep texlive-kblocks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kblocks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kblocks + CHECK_RESULT $? 0 0 "install texlive-kblocks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kblocks + CHECK_RESULT $? 0 0 "remove texlive-kblocks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-keyindex.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-keyindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6097543ae3121a4dd3fd2976ce4304a03f744ea --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-keyindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-keyindex | grep -v \.src | grep texlive-keyindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-keyindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-keyindex + CHECK_RESULT $? 0 0 "install texlive-keyindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-keyindex + CHECK_RESULT $? 0 0 "remove texlive-keyindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kvdefinekeys.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kvdefinekeys.sh new file mode 100644 index 0000000000000000000000000000000000000000..08f1493c6f9f76e5792315b694eb793b7928131c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kvdefinekeys.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kvdefinekeys | grep -v \.src | grep texlive-kvdefinekeys + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kvdefinekeys" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kvdefinekeys + CHECK_RESULT $? 0 0 "install texlive-kvdefinekeys failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kvdefinekeys + CHECK_RESULT $? 0 0 "remove texlive-kvdefinekeys failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kvoptions.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kvoptions.sh new file mode 100644 index 0000000000000000000000000000000000000000..16cece1f3efa5ca7d54c3181e78c94249b18ca8a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kvoptions.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kvoptions | grep -v \.src | grep texlive-kvoptions + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kvoptions" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kvoptions + CHECK_RESULT $? 0 0 "install texlive-kvoptions failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kvoptions + CHECK_RESULT $? 0 0 "remove texlive-kvoptions failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kvsetkeys.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kvsetkeys.sh new file mode 100644 index 0000000000000000000000000000000000000000..4da86216e4e060c9eae13618dd811e46862ad2b7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-kvsetkeys.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kvsetkeys | grep -v \.src | grep texlive-kvsetkeys + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kvsetkeys" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kvsetkeys + CHECK_RESULT $? 0 0 "install texlive-kvsetkeys failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kvsetkeys + CHECK_RESULT $? 0 0 "remove texlive-kvsetkeys failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-langsci-avm.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-langsci-avm.sh new file mode 100644 index 0000000000000000000000000000000000000000..972dc8b05bf691d3b18b0ba371bb0194a16f0660 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-langsci-avm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-langsci-avm | grep -v \.src | grep texlive-langsci-avm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-langsci-avm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-langsci-avm + CHECK_RESULT $? 0 0 "install texlive-langsci-avm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-langsci-avm + CHECK_RESULT $? 0 0 "remove texlive-langsci-avm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-latino-sine-flexione.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-latino-sine-flexione.sh new file mode 100644 index 0000000000000000000000000000000000000000..b003da25734aee40a3065c96faa131a3ce713dcf --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-latino-sine-flexione.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latino-sine-flexione | grep -v \.src | grep texlive-latino-sine-flexione + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latino-sine-flexione" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latino-sine-flexione + CHECK_RESULT $? 0 0 "install texlive-latino-sine-flexione failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latino-sine-flexione + CHECK_RESULT $? 0 0 "remove texlive-latino-sine-flexione failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-letltxmacro.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-letltxmacro.sh new file mode 100644 index 0000000000000000000000000000000000000000..f614114ba8331cdcdc69287a9014bf9633fbe768 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-letltxmacro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-letltxmacro | grep -v \.src | grep texlive-letltxmacro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-letltxmacro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-letltxmacro + CHECK_RESULT $? 0 0 "install texlive-letltxmacro failed" + SLEEP_WAIT 1 + dnf remove -y texlive-letltxmacro + CHECK_RESULT $? 0 0 "remove texlive-letltxmacro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-letterspacing.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-letterspacing.sh new file mode 100644 index 0000000000000000000000000000000000000000..20cb4adcda00ea09c32a7c55a39d4eb0b0ffd39f --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-letterspacing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-letterspacing | grep -v \.src | grep texlive-letterspacing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-letterspacing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-letterspacing + CHECK_RESULT $? 0 0 "install texlive-letterspacing failed" + SLEEP_WAIT 1 + dnf remove -y texlive-letterspacing + CHECK_RESULT $? 0 0 "remove texlive-letterspacing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-letterswitharrows.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-letterswitharrows.sh new file mode 100644 index 0000000000000000000000000000000000000000..859c8f131c7d378fd73a5dd3db2f27e3a69083ba --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-letterswitharrows.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-letterswitharrows | grep -v \.src | grep texlive-letterswitharrows + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-letterswitharrows" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-letterswitharrows + CHECK_RESULT $? 0 0 "install texlive-letterswitharrows failed" + SLEEP_WAIT 1 + dnf remove -y texlive-letterswitharrows + CHECK_RESULT $? 0 0 "remove texlive-letterswitharrows failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lexend.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lexend.sh new file mode 100644 index 0000000000000000000000000000000000000000..0baaa7bd439236cf349bcea364c1b328e40172be --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lexend.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lexend | grep -v \.src | grep texlive-lexend + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lexend" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lexend + CHECK_RESULT $? 0 0 "install texlive-lexend failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lexend + CHECK_RESULT $? 0 0 "remove texlive-lexend failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lie-hasse.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lie-hasse.sh new file mode 100644 index 0000000000000000000000000000000000000000..5baffc65dffa5ff3852ca7dc78d8a80109307b9b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lie-hasse.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lie-hasse | grep -v \.src | grep texlive-lie-hasse + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lie-hasse" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lie-hasse + CHECK_RESULT $? 0 0 "install texlive-lie-hasse failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lie-hasse + CHECK_RESULT $? 0 0 "remove texlive-lie-hasse failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-listingsutf8.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-listingsutf8.sh new file mode 100644 index 0000000000000000000000000000000000000000..adeb4fb0f40fba1343dcdaea27f32dd01f6d35f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-listingsutf8.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-listingsutf8 | grep -v \.src | grep texlive-listingsutf8 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-listingsutf8" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-listingsutf8 + CHECK_RESULT $? 0 0 "install texlive-listingsutf8 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-listingsutf8 + CHECK_RESULT $? 0 0 "remove texlive-listingsutf8 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-logix.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-logix.sh new file mode 100644 index 0000000000000000000000000000000000000000..006d3f51438f7ef7ee34637aa0f84c340c7ddafe --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-logix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-logix | grep -v \.src | grep texlive-logix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-logix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-logix + CHECK_RESULT $? 0 0 "install texlive-logix failed" + SLEEP_WAIT 1 + dnf remove -y texlive-logix + CHECK_RESULT $? 0 0 "remove texlive-logix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ltxcmds.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ltxcmds.sh new file mode 100644 index 0000000000000000000000000000000000000000..c484ae5bf0f5670d5e94454b5f4e772adfb3c091 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ltxcmds.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ltxcmds | grep -v \.src | grep texlive-ltxcmds + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ltxcmds" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ltxcmds + CHECK_RESULT $? 0 0 "install texlive-ltxcmds failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ltxcmds + CHECK_RESULT $? 0 0 "remove texlive-ltxcmds failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lua-uca.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lua-uca.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3af34f72d5019096c667664f4259690732d8c2d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lua-uca.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lua-uca | grep -v \.src | grep texlive-lua-uca + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lua-uca" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lua-uca + CHECK_RESULT $? 0 0 "install texlive-lua-uca failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lua-uca + CHECK_RESULT $? 0 0 "remove texlive-lua-uca failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lua-ul.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lua-ul.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a9d619c87f07a1c0acdd57c691281e06a2aa115 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-lua-ul.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lua-ul | grep -v \.src | grep texlive-lua-ul + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lua-ul" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lua-ul + CHECK_RESULT $? 0 0 "install texlive-lua-ul failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lua-ul + CHECK_RESULT $? 0 0 "remove texlive-lua-ul failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-luacolor.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-luacolor.sh new file mode 100644 index 0000000000000000000000000000000000000000..270a25dc81e39c196d7e2e741745d631ed4cbb33 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-luacolor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-luacolor | grep -v \.src | grep texlive-luacolor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-luacolor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-luacolor + CHECK_RESULT $? 0 0 "install texlive-luacolor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-luacolor + CHECK_RESULT $? 0 0 "remove texlive-luacolor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-makerobust.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-makerobust.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae49652ce89bea623c2d3a2d56cb9680eef748e8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-makerobust.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-makerobust | grep -v \.src | grep texlive-makerobust + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-makerobust" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-makerobust + CHECK_RESULT $? 0 0 "install texlive-makerobust failed" + SLEEP_WAIT 1 + dnf remove -y texlive-makerobust + CHECK_RESULT $? 0 0 "remove texlive-makerobust failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mathlig.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mathlig.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8b1683cf830fa51f33e0ff5f7921c94dc24ac07 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mathlig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mathlig | grep -v \.src | grep texlive-mathlig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mathlig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mathlig + CHECK_RESULT $? 0 0 "install texlive-mathlig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mathlig + CHECK_RESULT $? 0 0 "remove texlive-mathlig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-matrix-skeleton.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-matrix-skeleton.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bfffd4960f942933a7a7f66a5ee62fe844b4a88 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-matrix-skeleton.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-matrix-skeleton | grep -v \.src | grep texlive-matrix-skeleton + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-matrix-skeleton" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-matrix-skeleton + CHECK_RESULT $? 0 0 "install texlive-matrix-skeleton failed" + SLEEP_WAIT 1 + dnf remove -y texlive-matrix-skeleton + CHECK_RESULT $? 0 0 "remove texlive-matrix-skeleton failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-media4svg.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-media4svg.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1eb2671c679ebf551bd39506b033a48290e1143 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-media4svg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-media4svg | grep -v \.src | grep texlive-media4svg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-media4svg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-media4svg + CHECK_RESULT $? 0 0 "install texlive-media4svg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-media4svg + CHECK_RESULT $? 0 0 "remove texlive-media4svg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mercatormap.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mercatormap.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8a2a3ba5d525db080d89ae100d493f2bb877757 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mercatormap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mercatormap | grep -v \.src | grep texlive-mercatormap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mercatormap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mercatormap + CHECK_RESULT $? 0 0 "install texlive-mercatormap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mercatormap + CHECK_RESULT $? 0 0 "remove texlive-mercatormap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-metastr.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-metastr.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f65bf819accaf0dd9718d35b675bbdcfcc55521 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-metastr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-metastr | grep -v \.src | grep texlive-metastr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-metastr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-metastr + CHECK_RESULT $? 0 0 "install texlive-metastr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-metastr + CHECK_RESULT $? 0 0 "remove texlive-metastr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-metatype1.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-metatype1.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1ba480003c9e73bf1386c4b60229d7c43d01878 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-metatype1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-metatype1 | grep -v \.src | grep texlive-metatype1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-metatype1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-metatype1 + CHECK_RESULT $? 0 0 "install texlive-metatype1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-metatype1 + CHECK_RESULT $? 0 0 "remove texlive-metatype1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mleftright.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mleftright.sh new file mode 100644 index 0000000000000000000000000000000000000000..2495e4631767569bd18ec44c52f1ad2dae31a373 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mleftright.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mleftright | grep -v \.src | grep texlive-mleftright + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mleftright" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mleftright + CHECK_RESULT $? 0 0 "install texlive-mleftright failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mleftright + CHECK_RESULT $? 0 0 "remove texlive-mleftright failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-modeles-factures-belges-assocs.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-modeles-factures-belges-assocs.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b39e0bdae1d2ebb43432e7eef907c093b72cc58 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-modeles-factures-belges-assocs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modeles-factures-belges-assocs | grep -v \.src | grep texlive-modeles-factures-belges-assocs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modeles-factures-belges-assocs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modeles-factures-belges-assocs + CHECK_RESULT $? 0 0 "install texlive-modeles-factures-belges-assocs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modeles-factures-belges-assocs + CHECK_RESULT $? 0 0 "remove texlive-modeles-factures-belges-assocs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-modes.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-modes.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e8fa0c601c9efed7548d1a5d19ddf5f1118df69 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-modes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-modes | grep -v \.src | grep texlive-modes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-modes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-modes + CHECK_RESULT $? 0 0 "install texlive-modes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-modes + CHECK_RESULT $? 0 0 "remove texlive-modes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mpfonts.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mpfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..89fcb2de165e9cfbf180d8ab958cca60bf6b04bb --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-mpfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mpfonts | grep -v \.src | grep texlive-mpfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mpfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mpfonts + CHECK_RESULT $? 0 0 "install texlive-mpfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mpfonts + CHECK_RESULT $? 0 0 "remove texlive-mpfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-musical.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-musical.sh new file mode 100644 index 0000000000000000000000000000000000000000..3542756da550bcc592d77dc169673d2a2d76c43a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-musical.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-musical | grep -v \.src | grep texlive-musical + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-musical" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-musical + CHECK_RESULT $? 0 0 "install texlive-musical failed" + SLEEP_WAIT 1 + dnf remove -y texlive-musical + CHECK_RESULT $? 0 0 "remove texlive-musical failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-newcomputermodern.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-newcomputermodern.sh new file mode 100644 index 0000000000000000000000000000000000000000..405fa5339fb5f17c66f2334865108c90eba0ca09 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-newcomputermodern.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newcomputermodern | grep -v \.src | grep texlive-newcomputermodern + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newcomputermodern" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newcomputermodern + CHECK_RESULT $? 0 0 "install texlive-newcomputermodern failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newcomputermodern + CHECK_RESULT $? 0 0 "remove texlive-newcomputermodern failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-newfloat.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-newfloat.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dd5f582bcfae312c4b7685196c63e91c9b86912 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-newfloat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-newfloat | grep -v \.src | grep texlive-newfloat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-newfloat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-newfloat + CHECK_RESULT $? 0 0 "install texlive-newfloat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-newfloat + CHECK_RESULT $? 0 0 "remove texlive-newfloat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-noto-emoji.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-noto-emoji.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce7b242b69afd742bec4cbc3eac0a45eb695931d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-noto-emoji.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-noto-emoji | grep -v \.src | grep texlive-noto-emoji + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-noto-emoji" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-noto-emoji + CHECK_RESULT $? 0 0 "install texlive-noto-emoji failed" + SLEEP_WAIT 1 + dnf remove -y texlive-noto-emoji + CHECK_RESULT $? 0 0 "remove texlive-noto-emoji failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-notomath.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-notomath.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f99b09426de18de1c655bd447e674725d36113d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-notomath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-notomath | grep -v \.src | grep texlive-notomath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-notomath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-notomath + CHECK_RESULT $? 0 0 "install texlive-notomath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-notomath + CHECK_RESULT $? 0 0 "remove texlive-notomath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-nth.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-nth.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cbae63f0afad8d4ca350307c98b6390e5408d76 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-nth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nth | grep -v \.src | grep texlive-nth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nth + CHECK_RESULT $? 0 0 "install texlive-nth failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nth + CHECK_RESULT $? 0 0 "remove texlive-nth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-outerhbox.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-outerhbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed4787beda1087889f70d5447aa1607f5ecc472d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-outerhbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-outerhbox | grep -v \.src | grep texlive-outerhbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-outerhbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-outerhbox + CHECK_RESULT $? 0 0 "install texlive-outerhbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-outerhbox + CHECK_RESULT $? 0 0 "remove texlive-outerhbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfarticle.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfarticle.sh new file mode 100644 index 0000000000000000000000000000000000000000..0afee18f8490373f2267caaee8185720f65d1e72 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfarticle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfarticle | grep -v \.src | grep texlive-pdfarticle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfarticle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfarticle + CHECK_RESULT $? 0 0 "install texlive-pdfarticle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfarticle + CHECK_RESULT $? 0 0 "remove texlive-pdfarticle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfcolmk.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfcolmk.sh new file mode 100644 index 0000000000000000000000000000000000000000..027e6e5a92eb30f51babf775ae1c4f9badd9058a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfcolmk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfcolmk | grep -v \.src | grep texlive-pdfcolmk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfcolmk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfcolmk + CHECK_RESULT $? 0 0 "install texlive-pdfcolmk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfcolmk + CHECK_RESULT $? 0 0 "remove texlive-pdfcolmk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfescape.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfescape.sh new file mode 100644 index 0000000000000000000000000000000000000000..85645e75cb006a1ecabf41337cccd1135d979d69 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfescape.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfescape | grep -v \.src | grep texlive-pdfescape + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfescape" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfescape + CHECK_RESULT $? 0 0 "install texlive-pdfescape failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfescape + CHECK_RESULT $? 0 0 "remove texlive-pdfescape failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdflscape.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdflscape.sh new file mode 100644 index 0000000000000000000000000000000000000000..4892ecee178ed6f9b99c6a30ce3bc5cda53c1a97 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdflscape.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdflscape | grep -v \.src | grep texlive-pdflscape + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdflscape" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdflscape + CHECK_RESULT $? 0 0 "install texlive-pdflscape failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdflscape + CHECK_RESULT $? 0 0 "remove texlive-pdflscape failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfpc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfpc.sh new file mode 100644 index 0000000000000000000000000000000000000000..42744e67dd4ddf4566293a3e00dba97b6c7f4354 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdfpc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdfpc | grep -v \.src | grep texlive-pdfpc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdfpc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdfpc + CHECK_RESULT $? 0 0 "install texlive-pdfpc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdfpc + CHECK_RESULT $? 0 0 "remove texlive-pdfpc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdftexcmds.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdftexcmds.sh new file mode 100644 index 0000000000000000000000000000000000000000..2093bb64e68ab992c03f4c4f998738ad5e83b6f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pdftexcmds.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pdftexcmds | grep -v \.src | grep texlive-pdftexcmds + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pdftexcmds" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pdftexcmds + CHECK_RESULT $? 0 0 "install texlive-pdftexcmds failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pdftexcmds + CHECK_RESULT $? 0 0 "remove texlive-pdftexcmds failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-physconst.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-physconst.sh new file mode 100644 index 0000000000000000000000000000000000000000..6776c99a5c7becd415aec18e1802d1cdd3f62d26 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-physconst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-physconst | grep -v \.src | grep texlive-physconst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-physconst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-physconst + CHECK_RESULT $? 0 0 "install texlive-physconst failed" + SLEEP_WAIT 1 + dnf remove -y texlive-physconst + CHECK_RESULT $? 0 0 "remove texlive-physconst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-physunits.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-physunits.sh new file mode 100644 index 0000000000000000000000000000000000000000..9186e3e686577877ab89aa89ecc6d63765f58507 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-physunits.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-physunits | grep -v \.src | grep texlive-physunits + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-physunits" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-physunits + CHECK_RESULT $? 0 0 "install texlive-physunits failed" + SLEEP_WAIT 1 + dnf remove -y texlive-physunits + CHECK_RESULT $? 0 0 "remove texlive-physunits failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-picture.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-picture.sh new file mode 100644 index 0000000000000000000000000000000000000000..d62573c41793934f7fb18ec65f6957b2466701e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-picture.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-picture | grep -v \.src | grep texlive-picture + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-picture" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-picture + CHECK_RESULT $? 0 0 "install texlive-picture failed" + SLEEP_WAIT 1 + dnf remove -y texlive-picture + CHECK_RESULT $? 0 0 "remove texlive-picture failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pinoutikz.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pinoutikz.sh new file mode 100644 index 0000000000000000000000000000000000000000..4241c1988ce12476c360176a90d5e99a393dcde4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pinoutikz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pinoutikz | grep -v \.src | grep texlive-pinoutikz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pinoutikz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pinoutikz + CHECK_RESULT $? 0 0 "install texlive-pinoutikz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pinoutikz + CHECK_RESULT $? 0 0 "remove texlive-pinoutikz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-plainyr.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-plainyr.sh new file mode 100644 index 0000000000000000000000000000000000000000..0801a27e2e162eeb4d22145bc7b44a653f7eaed8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-plainyr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plainyr | grep -v \.src | grep texlive-plainyr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plainyr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plainyr + CHECK_RESULT $? 0 0 "install texlive-plainyr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plainyr + CHECK_RESULT $? 0 0 "remove texlive-plainyr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-plimsoll.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-plimsoll.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc41b958d38e20e834f73ae202b0502a71cf4453 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-plimsoll.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plimsoll | grep -v \.src | grep texlive-plimsoll + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plimsoll" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plimsoll + CHECK_RESULT $? 0 0 "install texlive-plimsoll failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plimsoll + CHECK_RESULT $? 0 0 "remove texlive-plimsoll failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pmboxdraw.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pmboxdraw.sh new file mode 100644 index 0000000000000000000000000000000000000000..182c1427c88b6b88f69e009040c9a622f43cb82c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pmboxdraw.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pmboxdraw | grep -v \.src | grep texlive-pmboxdraw + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pmboxdraw" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pmboxdraw + CHECK_RESULT $? 0 0 "install texlive-pmboxdraw failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pmboxdraw + CHECK_RESULT $? 0 0 "remove texlive-pmboxdraw failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pmhanguljamo.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pmhanguljamo.sh new file mode 100644 index 0000000000000000000000000000000000000000..047fa8f4bda3b0c0205b5fee66a56aca03990e2b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pmhanguljamo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pmhanguljamo | grep -v \.src | grep texlive-pmhanguljamo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pmhanguljamo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pmhanguljamo + CHECK_RESULT $? 0 0 "install texlive-pmhanguljamo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pmhanguljamo + CHECK_RESULT $? 0 0 "remove texlive-pmhanguljamo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-practicalreports.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-practicalreports.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d34f935bdb728901f4d81e4199e90cffa05bf2d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-practicalreports.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-practicalreports | grep -v \.src | grep texlive-practicalreports + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-practicalreports" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-practicalreports + CHECK_RESULT $? 0 0 "install texlive-practicalreports failed" + SLEEP_WAIT 1 + dnf remove -y texlive-practicalreports + CHECK_RESULT $? 0 0 "remove texlive-practicalreports failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pst-turtle.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pst-turtle.sh new file mode 100644 index 0000000000000000000000000000000000000000..e41d800146918773ef2351de7b40b500e9e4d6ac --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-pst-turtle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pst-turtle | grep -v \.src | grep texlive-pst-turtle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pst-turtle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pst-turtle + CHECK_RESULT $? 0 0 "install texlive-pst-turtle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pst-turtle + CHECK_RESULT $? 0 0 "remove texlive-pst-turtle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-qualitype.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-qualitype.sh new file mode 100644 index 0000000000000000000000000000000000000000..49387a2a591f76fa26238df54bbf3b95605f87be --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-qualitype.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-qualitype | grep -v \.src | grep texlive-qualitype + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-qualitype" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-qualitype + CHECK_RESULT $? 0 0 "install texlive-qualitype failed" + SLEEP_WAIT 1 + dnf remove -y texlive-qualitype + CHECK_RESULT $? 0 0 "remove texlive-qualitype failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-quantumarticle.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-quantumarticle.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d1a9b40fe4280d8bab1af21dc52d7aa8b58910b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-quantumarticle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-quantumarticle | grep -v \.src | grep texlive-quantumarticle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-quantumarticle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-quantumarticle + CHECK_RESULT $? 0 0 "install texlive-quantumarticle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-quantumarticle + CHECK_RESULT $? 0 0 "remove texlive-quantumarticle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-quiz2socrative.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-quiz2socrative.sh new file mode 100644 index 0000000000000000000000000000000000000000..afbf9e908b71c49ee531d5030e4e34cdd093669a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-quiz2socrative.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-quiz2socrative | grep -v \.src | grep texlive-quiz2socrative + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-quiz2socrative" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-quiz2socrative + CHECK_RESULT $? 0 0 "install texlive-quiz2socrative failed" + SLEEP_WAIT 1 + dnf remove -y texlive-quiz2socrative + CHECK_RESULT $? 0 0 "remove texlive-quiz2socrative failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-random.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-random.sh new file mode 100644 index 0000000000000000000000000000000000000000..40815a79f1eda061795957e98d5dc008e4657f74 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-random.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-random | grep -v \.src | grep texlive-random + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-random" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-random + CHECK_RESULT $? 0 0 "install texlive-random failed" + SLEEP_WAIT 1 + dnf remove -y texlive-random + CHECK_RESULT $? 0 0 "remove texlive-random failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-refcount.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-refcount.sh new file mode 100644 index 0000000000000000000000000000000000000000..90279e734e6be557ab225cee925fc55ee30c685c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-refcount.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-refcount | grep -v \.src | grep texlive-refcount + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-refcount" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-refcount + CHECK_RESULT $? 0 0 "install texlive-refcount failed" + SLEEP_WAIT 1 + dnf remove -y texlive-refcount + CHECK_RESULT $? 0 0 "remove texlive-refcount failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-rerunfilecheck.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-rerunfilecheck.sh new file mode 100644 index 0000000000000000000000000000000000000000..c73ee1283fe40547ba0e8a82cd1331e526973e9b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-rerunfilecheck.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rerunfilecheck | grep -v \.src | grep texlive-rerunfilecheck + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rerunfilecheck" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rerunfilecheck + CHECK_RESULT $? 0 0 "install texlive-rerunfilecheck failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rerunfilecheck + CHECK_RESULT $? 0 0 "remove texlive-rerunfilecheck failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-rest-api.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-rest-api.sh new file mode 100644 index 0000000000000000000000000000000000000000..23dcd8a816d262c27326f89e933eaade611dcb01 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-rest-api.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rest-api | grep -v \.src | grep texlive-rest-api + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rest-api" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rest-api + CHECK_RESULT $? 0 0 "install texlive-rest-api failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rest-api + CHECK_RESULT $? 0 0 "remove texlive-rest-api failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-returntogrid.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-returntogrid.sh new file mode 100644 index 0000000000000000000000000000000000000000..669ac7042f5398d54a1ebddef0e212f0d191b7aa --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-returntogrid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-returntogrid | grep -v \.src | grep texlive-returntogrid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-returntogrid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-returntogrid + CHECK_RESULT $? 0 0 "install texlive-returntogrid failed" + SLEEP_WAIT 1 + dnf remove -y texlive-returntogrid + CHECK_RESULT $? 0 0 "remove texlive-returntogrid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-rgltxdoc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-rgltxdoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a97537a0fbc6744646d34c85797b7580fcf5ce3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-rgltxdoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rgltxdoc | grep -v \.src | grep texlive-rgltxdoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rgltxdoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rgltxdoc + CHECK_RESULT $? 0 0 "install texlive-rgltxdoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rgltxdoc + CHECK_RESULT $? 0 0 "remove texlive-rgltxdoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ruler.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ruler.sh new file mode 100644 index 0000000000000000000000000000000000000000..f15fc582db0bee8562f03c2300428197378ad80a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ruler.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ruler | grep -v \.src | grep texlive-ruler + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ruler" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ruler + CHECK_RESULT $? 0 0 "install texlive-ruler failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ruler + CHECK_RESULT $? 0 0 "remove texlive-ruler failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-scholax.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-scholax.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5344eec71a1f6eb8afe0c7542280d261b8a0f8b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-scholax.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scholax | grep -v \.src | grep texlive-scholax + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scholax" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scholax + CHECK_RESULT $? 0 0 "install texlive-scholax failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scholax + CHECK_RESULT $? 0 0 "remove texlive-scholax failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-schulmathematik.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-schulmathematik.sh new file mode 100644 index 0000000000000000000000000000000000000000..e73e0630e3dfa15fbb354acfac3c3f78f6f214f1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-schulmathematik.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schulmathematik | grep -v \.src | grep texlive-schulmathematik + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schulmathematik" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schulmathematik + CHECK_RESULT $? 0 0 "install texlive-schulmathematik failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schulmathematik + CHECK_RESULT $? 0 0 "remove texlive-schulmathematik failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-sdaps.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-sdaps.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba732976d669dd3cb5ceb20aa402816b32fd6fae --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-sdaps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-sdaps | grep -v \.src | grep texlive-sdaps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-sdaps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-sdaps + CHECK_RESULT $? 0 0 "install texlive-sdaps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-sdaps + CHECK_RESULT $? 0 0 "remove texlive-sdaps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-secnum.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-secnum.sh new file mode 100644 index 0000000000000000000000000000000000000000..002ef53bb9638c2b90a5ed863022d72b4e58022f --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-secnum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-secnum | grep -v \.src | grep texlive-secnum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-secnum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-secnum + CHECK_RESULT $? 0 0 "install texlive-secnum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-secnum + CHECK_RESULT $? 0 0 "remove texlive-secnum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-selinput.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-selinput.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ec26efa852ba2578477b078ded928c3c5de25df --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-selinput.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-selinput | grep -v \.src | grep texlive-selinput + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-selinput" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-selinput + CHECK_RESULT $? 0 0 "install texlive-selinput failed" + SLEEP_WAIT 1 + dnf remove -y texlive-selinput + CHECK_RESULT $? 0 0 "remove texlive-selinput failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-shortmathj.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-shortmathj.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3fbc51712ec9a98bbb10abbd554fa50b17b1a83 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-shortmathj.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-shortmathj | grep -v \.src | grep texlive-shortmathj + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-shortmathj" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-shortmathj + CHECK_RESULT $? 0 0 "install texlive-shortmathj failed" + SLEEP_WAIT 1 + dnf remove -y texlive-shortmathj + CHECK_RESULT $? 0 0 "remove texlive-shortmathj failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-simplebnf.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-simplebnf.sh new file mode 100644 index 0000000000000000000000000000000000000000..a29aff450c87280bbb231a1743d34bda5fe863e0 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-simplebnf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simplebnf | grep -v \.src | grep texlive-simplebnf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simplebnf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simplebnf + CHECK_RESULT $? 0 0 "install texlive-simplebnf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simplebnf + CHECK_RESULT $? 0 0 "remove texlive-simplebnf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-simpleoptics.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-simpleoptics.sh new file mode 100644 index 0000000000000000000000000000000000000000..17c347689938f4b2561595c079cc6d0d5f640ba8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-simpleoptics.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-simpleoptics | grep -v \.src | grep texlive-simpleoptics + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-simpleoptics" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-simpleoptics + CHECK_RESULT $? 0 0 "install texlive-simpleoptics failed" + SLEEP_WAIT 1 + dnf remove -y texlive-simpleoptics + CHECK_RESULT $? 0 0 "remove texlive-simpleoptics failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-soulutf8.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-soulutf8.sh new file mode 100644 index 0000000000000000000000000000000000000000..c84acf46a51233a019d067b03db6ad2e46b610c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-soulutf8.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-soulutf8 | grep -v \.src | grep texlive-soulutf8 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-soulutf8" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-soulutf8 + CHECK_RESULT $? 0 0 "install texlive-soulutf8 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-soulutf8 + CHECK_RESULT $? 0 0 "remove texlive-soulutf8 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-spectral.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-spectral.sh new file mode 100644 index 0000000000000000000000000000000000000000..93a204ea2e9ff34f174a5f8ab881210674c58784 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-spectral.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spectral | grep -v \.src | grep texlive-spectral + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spectral" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spectral + CHECK_RESULT $? 0 0 "install texlive-spectral failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spectral + CHECK_RESULT $? 0 0 "remove texlive-spectral failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-split-y.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-split-y.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b6fca4262d898e78cb382e8b4da5b43dafdf208 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-split-y.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-y | grep -v \.src | grep texlive-split-y + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-y" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-y + CHECK_RESULT $? 0 0 "install texlive-split-y failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-y + CHECK_RESULT $? 0 0 "remove texlive-split-y failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-step.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-step.sh new file mode 100644 index 0000000000000000000000000000000000000000..40960e04426e908aaf1c2103e82aad12a03512f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-step.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-step | grep -v \.src | grep texlive-step + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-step" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-step + CHECK_RESULT $? 0 0 "install texlive-step failed" + SLEEP_WAIT 1 + dnf remove -y texlive-step + CHECK_RESULT $? 0 0 "remove texlive-step failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-stringenc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-stringenc.sh new file mode 100644 index 0000000000000000000000000000000000000000..82251cd5741205eb41d8910c3e8d0dbf10fe87b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-stringenc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-stringenc | grep -v \.src | grep texlive-stringenc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-stringenc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-stringenc + CHECK_RESULT $? 0 0 "install texlive-stringenc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-stringenc + CHECK_RESULT $? 0 0 "remove texlive-stringenc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-swrule.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-swrule.sh new file mode 100644 index 0000000000000000000000000000000000000000..057b9626a46b40dfcb365ec28a7f71f583ebbc98 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-swrule.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-swrule | grep -v \.src | grep texlive-swrule + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-swrule" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-swrule + CHECK_RESULT $? 0 0 "install texlive-swrule failed" + SLEEP_WAIT 1 + dnf remove -y texlive-swrule + CHECK_RESULT $? 0 0 "remove texlive-swrule failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tablvar.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tablvar.sh new file mode 100644 index 0000000000000000000000000000000000000000..90fd36e20815873c38ddfb670fac4d6afde13d6a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tablvar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tablvar | grep -v \.src | grep texlive-tablvar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tablvar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tablvar + CHECK_RESULT $? 0 0 "install texlive-tablvar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tablvar + CHECK_RESULT $? 0 0 "remove texlive-tablvar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tetragonos.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tetragonos.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1b01587a0c3e961565e87646e2bfe76c0e55236 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tetragonos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tetragonos | grep -v \.src | grep texlive-tetragonos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tetragonos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tetragonos + CHECK_RESULT $? 0 0 "install texlive-tetragonos failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tetragonos + CHECK_RESULT $? 0 0 "remove texlive-tetragonos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tex-nutshell.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tex-nutshell.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e2dfb1555797ed06c10f8d4ca3e7ae8d5e2c475 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tex-nutshell.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tex-nutshell | grep -v \.src | grep texlive-tex-nutshell + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tex-nutshell" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tex-nutshell + CHECK_RESULT $? 0 0 "install texlive-tex-nutshell failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tex-nutshell + CHECK_RESULT $? 0 0 "remove texlive-tex-nutshell failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-texlive-ja.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-texlive-ja.sh new file mode 100644 index 0000000000000000000000000000000000000000..053446027c6dceeb4a8440fd40218008e06a4da6 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-texlive-ja.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texlive-ja | grep -v \.src | grep texlive-texlive-ja + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texlive-ja" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texlive-ja + CHECK_RESULT $? 0 0 "install texlive-texlive-ja failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texlive-ja + CHECK_RESULT $? 0 0 "remove texlive-texlive-ja failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-theatre.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-theatre.sh new file mode 100644 index 0000000000000000000000000000000000000000..c146cc8e3deda1ab9a8034df596a9c3f90045e4c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-theatre.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-theatre | grep -v \.src | grep texlive-theatre + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-theatre" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-theatre + CHECK_RESULT $? 0 0 "install texlive-theatre failed" + SLEEP_WAIT 1 + dnf remove -y texlive-theatre + CHECK_RESULT $? 0 0 "remove texlive-theatre failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tikz-planets.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tikz-planets.sh new file mode 100644 index 0000000000000000000000000000000000000000..5309f5ed3e08717419d359a6f442e8c319b3c0c5 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tikz-planets.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-planets | grep -v \.src | grep texlive-tikz-planets + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-planets" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-planets + CHECK_RESULT $? 0 0 "install texlive-tikz-planets failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-planets + CHECK_RESULT $? 0 0 "remove texlive-tikz-planets failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tikz-trackschematic.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tikz-trackschematic.sh new file mode 100644 index 0000000000000000000000000000000000000000..fea2f7c4c96536bd3e7af7b031f9ded12e4e0c0e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tikz-trackschematic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-trackschematic | grep -v \.src | grep texlive-tikz-trackschematic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-trackschematic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-trackschematic + CHECK_RESULT $? 0 0 "install texlive-tikz-trackschematic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-trackschematic + CHECK_RESULT $? 0 0 "remove texlive-tikz-trackschematic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tokcycle.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tokcycle.sh new file mode 100644 index 0000000000000000000000000000000000000000..49f8f184cb5f8ae50018c16ef98588c6bbbb2a78 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-tokcycle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tokcycle | grep -v \.src | grep texlive-tokcycle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tokcycle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tokcycle + CHECK_RESULT $? 0 0 "install texlive-tokcycle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tokcycle + CHECK_RESULT $? 0 0 "remove texlive-tokcycle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-transparent.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-transparent.sh new file mode 100644 index 0000000000000000000000000000000000000000..5aaf5a090a23abf9b939c1bb73d5a0e394f18d97 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-transparent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-transparent | grep -v \.src | grep texlive-transparent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-transparent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-transparent + CHECK_RESULT $? 0 0 "install texlive-transparent failed" + SLEEP_WAIT 1 + dnf remove -y texlive-transparent + CHECK_RESULT $? 0 0 "remove texlive-transparent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-twemoji-colr.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-twemoji-colr.sh new file mode 100644 index 0000000000000000000000000000000000000000..50b5ca6947b84be1afe6c9fabd1cb97a49f7278e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-twemoji-colr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-twemoji-colr | grep -v \.src | grep texlive-twemoji-colr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-twemoji-colr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-twemoji-colr + CHECK_RESULT $? 0 0 "install texlive-twemoji-colr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-twemoji-colr + CHECK_RESULT $? 0 0 "remove texlive-twemoji-colr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uaclasses-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uaclasses-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd3ccd1e03156c94e2fb7b6fa4a8645d24eac86d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uaclasses-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uaclasses-doc | grep -v \.src | grep texlive-uaclasses-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uaclasses-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uaclasses-doc + CHECK_RESULT $? 0 0 "install texlive-uaclasses-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uaclasses-doc + CHECK_RESULT $? 0 0 "remove texlive-uaclasses-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uaclasses.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uaclasses.sh new file mode 100644 index 0000000000000000000000000000000000000000..e57872d00ef37f9691e38b0ad4e3ea0147c3045f --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uaclasses.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uaclasses | grep -v \.src | grep texlive-uaclasses + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uaclasses" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uaclasses + CHECK_RESULT $? 0 0 "install texlive-uaclasses failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uaclasses + CHECK_RESULT $? 0 0 "remove texlive-uaclasses failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uafthesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uafthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..178d2ffa3413f3a19ee775df0ba7658074a6cc0c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uafthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uafthesis-doc | grep -v \.src | grep texlive-uafthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uafthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uafthesis-doc + CHECK_RESULT $? 0 0 "install texlive-uafthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uafthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-uafthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uafthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uafthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9e84eb8f38eb901cb4dca48842b00c4efd41663 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uafthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uafthesis | grep -v \.src | grep texlive-uafthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uafthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uafthesis + CHECK_RESULT $? 0 0 "install texlive-uafthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uafthesis + CHECK_RESULT $? 0 0 "remove texlive-uafthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uantwerpendocs-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uantwerpendocs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2bd122300c2a9db2e1b07c20447d353feabdd4b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uantwerpendocs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uantwerpendocs-doc | grep -v \.src | grep texlive-uantwerpendocs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uantwerpendocs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uantwerpendocs-doc + CHECK_RESULT $? 0 0 "install texlive-uantwerpendocs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uantwerpendocs-doc + CHECK_RESULT $? 0 0 "remove texlive-uantwerpendocs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uantwerpendocs.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uantwerpendocs.sh new file mode 100644 index 0000000000000000000000000000000000000000..d832ae25cd350d40ad92800255ab771be06f8dc1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uantwerpendocs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uantwerpendocs | grep -v \.src | grep texlive-uantwerpendocs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uantwerpendocs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uantwerpendocs + CHECK_RESULT $? 0 0 "install texlive-uantwerpendocs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uantwerpendocs + CHECK_RESULT $? 0 0 "remove texlive-uantwerpendocs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uassign-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uassign-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1d6427047ca0d26fe7f0c90cd316563f5cfa6d5 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uassign-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uassign-doc | grep -v \.src | grep texlive-uassign-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uassign-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uassign-doc + CHECK_RESULT $? 0 0 "install texlive-uassign-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uassign-doc + CHECK_RESULT $? 0 0 "remove texlive-uassign-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uassign.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uassign.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3203a8bffde6c359654d270cf3e2e98e3281f27 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uassign.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uassign | grep -v \.src | grep texlive-uassign + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uassign" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uassign + CHECK_RESULT $? 0 0 "install texlive-uassign failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uassign + CHECK_RESULT $? 0 0 "remove texlive-uassign failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucbthesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucbthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c74bf733a33f7d0bbdc0ada1845bebd5c524f6e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucbthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucbthesis-doc | grep -v \.src | grep texlive-ucbthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucbthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucbthesis-doc + CHECK_RESULT $? 0 0 "install texlive-ucbthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucbthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-ucbthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucbthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucbthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcdde88320d20069c80c4b604a495d6628aa9646 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucbthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucbthesis | grep -v \.src | grep texlive-ucbthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucbthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucbthesis + CHECK_RESULT $? 0 0 "install texlive-ucbthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucbthesis + CHECK_RESULT $? 0 0 "remove texlive-ucbthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucdavisthesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucdavisthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8931f5c8478d0a5450116993d5634eb78e6d1e80 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucdavisthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucdavisthesis-doc | grep -v \.src | grep texlive-ucdavisthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucdavisthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucdavisthesis-doc + CHECK_RESULT $? 0 0 "install texlive-ucdavisthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucdavisthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-ucdavisthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucdavisthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucdavisthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..bde7e20479a84f039b923e53840843583742f7b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucdavisthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucdavisthesis | grep -v \.src | grep texlive-ucdavisthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucdavisthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucdavisthesis + CHECK_RESULT $? 0 0 "install texlive-ucdavisthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucdavisthesis + CHECK_RESULT $? 0 0 "remove texlive-ucdavisthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharcat-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharcat-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7d9f80cb1f936d019c7b2c4a04c641d0f7f66b3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharcat-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucharcat-doc | grep -v \.src | grep texlive-ucharcat-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucharcat-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucharcat-doc + CHECK_RESULT $? 0 0 "install texlive-ucharcat-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucharcat-doc + CHECK_RESULT $? 0 0 "remove texlive-ucharcat-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharcat.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharcat.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8da4ff28ec5dd49d3ce3e6457a3498e67b7ba5e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharcat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucharcat | grep -v \.src | grep texlive-ucharcat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucharcat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucharcat + CHECK_RESULT $? 0 0 "install texlive-ucharcat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucharcat + CHECK_RESULT $? 0 0 "remove texlive-ucharcat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharclasses-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharclasses-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d76e9d82bdfad54ced7a607787270c2091a3d38 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharclasses-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucharclasses-doc | grep -v \.src | grep texlive-ucharclasses-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucharclasses-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucharclasses-doc + CHECK_RESULT $? 0 0 "install texlive-ucharclasses-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucharclasses-doc + CHECK_RESULT $? 0 0 "remove texlive-ucharclasses-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharclasses.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharclasses.sh new file mode 100644 index 0000000000000000000000000000000000000000..72561cbc12ee4a621ed4631d1e0ee1bcb38896f3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucharclasses.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucharclasses | grep -v \.src | grep texlive-ucharclasses + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucharclasses" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucharclasses + CHECK_RESULT $? 0 0 "install texlive-ucharclasses failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucharclasses + CHECK_RESULT $? 0 0 "remove texlive-ucharclasses failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucs-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f2ffe6921bb68f03ec8e416f6880e65e0692660 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucs-doc | grep -v \.src | grep texlive-ucs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucs-doc + CHECK_RESULT $? 0 0 "install texlive-ucs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucs-doc + CHECK_RESULT $? 0 0 "remove texlive-ucs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucs.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucs.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb6ced97411260ad3a6bbf09748c6b2271b131b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucs | grep -v \.src | grep texlive-ucs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucs + CHECK_RESULT $? 0 0 "install texlive-ucs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucs + CHECK_RESULT $? 0 0 "remove texlive-ucs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucsmonograph.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucsmonograph.sh new file mode 100644 index 0000000000000000000000000000000000000000..855633bc755e2bd37976afb8c6d266b0f0364870 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucsmonograph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucsmonograph | grep -v \.src | grep texlive-ucsmonograph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucsmonograph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucsmonograph + CHECK_RESULT $? 0 0 "install texlive-ucsmonograph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucsmonograph + CHECK_RESULT $? 0 0 "remove texlive-ucsmonograph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucthesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..caae2cfab8986b5e1ea67071d6e3eedb7b69f01d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucthesis-doc | grep -v \.src | grep texlive-ucthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucthesis-doc + CHECK_RESULT $? 0 0 "install texlive-ucthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-ucthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..979c865710b943d595542ad418f0edd44e638cf9 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ucthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucthesis | grep -v \.src | grep texlive-ucthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucthesis + CHECK_RESULT $? 0 0 "install texlive-ucthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucthesis + CHECK_RESULT $? 0 0 "remove texlive-ucthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-udesoftec-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-udesoftec-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf03f917191086d31902404838c638d34f8791d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-udesoftec-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-udesoftec-doc | grep -v \.src | grep texlive-udesoftec-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-udesoftec-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-udesoftec-doc + CHECK_RESULT $? 0 0 "install texlive-udesoftec-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-udesoftec-doc + CHECK_RESULT $? 0 0 "remove texlive-udesoftec-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-udesoftec.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-udesoftec.sh new file mode 100644 index 0000000000000000000000000000000000000000..f95914bd76f6929b8d63c740138937981ee588ba --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-udesoftec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-udesoftec | grep -v \.src | grep texlive-udesoftec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-udesoftec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-udesoftec + CHECK_RESULT $? 0 0 "install texlive-udesoftec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-udesoftec + CHECK_RESULT $? 0 0 "remove texlive-udesoftec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uebungsblatt-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uebungsblatt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d8b534977534cdb281592c218d39562764eaa6d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uebungsblatt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uebungsblatt-doc | grep -v \.src | grep texlive-uebungsblatt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uebungsblatt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uebungsblatt-doc + CHECK_RESULT $? 0 0 "install texlive-uebungsblatt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uebungsblatt-doc + CHECK_RESULT $? 0 0 "remove texlive-uebungsblatt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uebungsblatt.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uebungsblatt.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdbfbbe831c93772047bd98933c63b24c7e85382 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uebungsblatt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uebungsblatt | grep -v \.src | grep texlive-uebungsblatt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uebungsblatt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uebungsblatt + CHECK_RESULT $? 0 0 "install texlive-uebungsblatt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uebungsblatt + CHECK_RESULT $? 0 0 "remove texlive-uebungsblatt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uestcthesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uestcthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d1ed71c618804e2bc45d9323db8884acc409da1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uestcthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uestcthesis-doc | grep -v \.src | grep texlive-uestcthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uestcthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uestcthesis-doc + CHECK_RESULT $? 0 0 "install texlive-uestcthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uestcthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-uestcthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uestcthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uestcthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dddf50a88408ac523295c55eb3a3c3c1813a3fd --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uestcthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uestcthesis | grep -v \.src | grep texlive-uestcthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uestcthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uestcthesis + CHECK_RESULT $? 0 0 "install texlive-uestcthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uestcthesis + CHECK_RESULT $? 0 0 "remove texlive-uestcthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhc-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..efaa54c0a444f0abf1be6b46512e49ebf534e490 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uhc-doc | grep -v \.src | grep texlive-uhc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uhc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uhc-doc + CHECK_RESULT $? 0 0 "install texlive-uhc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uhc-doc + CHECK_RESULT $? 0 0 "remove texlive-uhc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhc.sh new file mode 100644 index 0000000000000000000000000000000000000000..57d8938784b9f555259fd10417f880a1dbdf913b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uhc | grep -v \.src | grep texlive-uhc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uhc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uhc + CHECK_RESULT $? 0 0 "install texlive-uhc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uhc + CHECK_RESULT $? 0 0 "remove texlive-uhc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhhassignment.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhhassignment.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ed11750efd5d2452a442560d6009c568fb93de7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhhassignment.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uhhassignment | grep -v \.src | grep texlive-uhhassignment + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uhhassignment" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uhhassignment + CHECK_RESULT $? 0 0 "install texlive-uhhassignment failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uhhassignment + CHECK_RESULT $? 0 0 "remove texlive-uhhassignment failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhrzeit-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhrzeit-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..aad11f0e2355b6192c69f7c619c058c838278d4b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhrzeit-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uhrzeit-doc | grep -v \.src | grep texlive-uhrzeit-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uhrzeit-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uhrzeit-doc + CHECK_RESULT $? 0 0 "install texlive-uhrzeit-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uhrzeit-doc + CHECK_RESULT $? 0 0 "remove texlive-uhrzeit-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhrzeit.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhrzeit.sh new file mode 100644 index 0000000000000000000000000000000000000000..30c207c05fec8778f03797db44af1a6a49ec4c2a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uhrzeit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uhrzeit | grep -v \.src | grep texlive-uhrzeit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uhrzeit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uhrzeit + CHECK_RESULT $? 0 0 "install texlive-uhrzeit failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uhrzeit + CHECK_RESULT $? 0 0 "remove texlive-uhrzeit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucredborder-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucredborder-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b81f744af403e59e784bdf6ce25a825dc377ea7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucredborder-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uiucredborder-doc | grep -v \.src | grep texlive-uiucredborder-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uiucredborder-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uiucredborder-doc + CHECK_RESULT $? 0 0 "install texlive-uiucredborder-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uiucredborder-doc + CHECK_RESULT $? 0 0 "remove texlive-uiucredborder-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucredborder.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucredborder.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc2bf9ac23a9b7e976da7a132bef043545eb6a89 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucredborder.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uiucredborder | grep -v \.src | grep texlive-uiucredborder + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uiucredborder" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uiucredborder + CHECK_RESULT $? 0 0 "install texlive-uiucredborder failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uiucredborder + CHECK_RESULT $? 0 0 "remove texlive-uiucredborder failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucthesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f60ab26174780b876184075dd1374ab458332ad --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uiucthesis-doc | grep -v \.src | grep texlive-uiucthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uiucthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uiucthesis-doc + CHECK_RESULT $? 0 0 "install texlive-uiucthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uiucthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-uiucthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..147310c8a7056da87e9b91d19a9b9de3bbf492ca --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uiucthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uiucthesis | grep -v \.src | grep texlive-uiucthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uiucthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uiucthesis + CHECK_RESULT $? 0 0 "install texlive-uiucthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uiucthesis + CHECK_RESULT $? 0 0 "remove texlive-uiucthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ukrhyph-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ukrhyph-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..026950b9749c3072728564447d1bc6da84103a49 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ukrhyph-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ukrhyph-doc | grep -v \.src | grep texlive-ukrhyph-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ukrhyph-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ukrhyph-doc + CHECK_RESULT $? 0 0 "install texlive-ukrhyph-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ukrhyph-doc + CHECK_RESULT $? 0 0 "remove texlive-ukrhyph-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ukrhyph.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ukrhyph.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0632b0eac7d855ce3c55afb561cc10141d299a1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ukrhyph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ukrhyph | grep -v \.src | grep texlive-ukrhyph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ukrhyph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ukrhyph + CHECK_RESULT $? 0 0 "install texlive-ukrhyph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ukrhyph + CHECK_RESULT $? 0 0 "remove texlive-ukrhyph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulem-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulem-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..65bc83edb95cf48f63990457bbe9af2f36b20710 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulem-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ulem-doc | grep -v \.src | grep texlive-ulem-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ulem-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ulem-doc + CHECK_RESULT $? 0 0 "install texlive-ulem-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ulem-doc + CHECK_RESULT $? 0 0 "remove texlive-ulem-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulem.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulem.sh new file mode 100644 index 0000000000000000000000000000000000000000..424a5fdd0c6858616a089a1a70b6458493431428 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ulem | grep -v \.src | grep texlive-ulem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ulem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ulem + CHECK_RESULT $? 0 0 "install texlive-ulem failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ulem + CHECK_RESULT $? 0 0 "remove texlive-ulem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulthese-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulthese-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b83757d7a5a0c139dd34c7ae25136b8faefe49c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulthese-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ulthese-doc | grep -v \.src | grep texlive-ulthese-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ulthese-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ulthese-doc + CHECK_RESULT $? 0 0 "install texlive-ulthese-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ulthese-doc + CHECK_RESULT $? 0 0 "remove texlive-ulthese-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulthese.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulthese.sh new file mode 100644 index 0000000000000000000000000000000000000000..db15dcd1bef22307d63ad75d3fada5831a61eb99 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ulthese.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ulthese | grep -v \.src | grep texlive-ulthese + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ulthese" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ulthese + CHECK_RESULT $? 0 0 "install texlive-ulthese failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ulthese + CHECK_RESULT $? 0 0 "remove texlive-ulthese failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umbclegislation-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umbclegislation-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..31c672d799ba0c231057b7a151d78c03eff367e9 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umbclegislation-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umbclegislation-doc | grep -v \.src | grep texlive-umbclegislation-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umbclegislation-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umbclegislation-doc + CHECK_RESULT $? 0 0 "install texlive-umbclegislation-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umbclegislation-doc + CHECK_RESULT $? 0 0 "remove texlive-umbclegislation-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umbclegislation.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umbclegislation.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5b20a830bda3ff5604442342e7e77a71da46c00 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umbclegislation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umbclegislation | grep -v \.src | grep texlive-umbclegislation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umbclegislation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umbclegislation + CHECK_RESULT $? 0 0 "install texlive-umbclegislation failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umbclegislation + CHECK_RESULT $? 0 0 "remove texlive-umbclegislation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umich-thesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umich-thesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..37cb39e59b7de8a317ca80e6b0aedce8599225f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umich-thesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umich-thesis-doc | grep -v \.src | grep texlive-umich-thesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umich-thesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umich-thesis-doc + CHECK_RESULT $? 0 0 "install texlive-umich-thesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umich-thesis-doc + CHECK_RESULT $? 0 0 "remove texlive-umich-thesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umich-thesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umich-thesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..6768c38e8cc3615b1d7c7f5be208c65212dc23d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umich-thesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umich-thesis | grep -v \.src | grep texlive-umich-thesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umich-thesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umich-thesis + CHECK_RESULT $? 0 0 "install texlive-umich-thesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umich-thesis + CHECK_RESULT $? 0 0 "remove texlive-umich-thesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uml-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uml-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8895c748e34fb4f6bc2037b8ff045a0bb2c483b3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uml-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uml-doc | grep -v \.src | grep texlive-uml-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uml-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uml-doc + CHECK_RESULT $? 0 0 "install texlive-uml-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uml-doc + CHECK_RESULT $? 0 0 "remove texlive-uml-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uml.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uml.sh new file mode 100644 index 0000000000000000000000000000000000000000..221323971e8374162a17e6c008c510556ddb7474 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uml | grep -v \.src | grep texlive-uml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uml + CHECK_RESULT $? 0 0 "install texlive-uml failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uml + CHECK_RESULT $? 0 0 "remove texlive-uml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umlaute-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umlaute-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e7f103e91277579c523c6cbb0f0c9046523c91a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umlaute-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umlaute-doc | grep -v \.src | grep texlive-umlaute-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umlaute-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umlaute-doc + CHECK_RESULT $? 0 0 "install texlive-umlaute-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umlaute-doc + CHECK_RESULT $? 0 0 "remove texlive-umlaute-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umlaute.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umlaute.sh new file mode 100644 index 0000000000000000000000000000000000000000..77720ff8fceb9bac4adf03cf7ff253a502def9e4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umlaute.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umlaute | grep -v \.src | grep texlive-umlaute + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umlaute" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umlaute + CHECK_RESULT $? 0 0 "install texlive-umlaute failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umlaute + CHECK_RESULT $? 0 0 "remove texlive-umlaute failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umoline-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umoline-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d19ac9cd57a4025e419aebb9889bb258ad84d54 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umoline-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umoline-doc | grep -v \.src | grep texlive-umoline-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umoline-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umoline-doc + CHECK_RESULT $? 0 0 "install texlive-umoline-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umoline-doc + CHECK_RESULT $? 0 0 "remove texlive-umoline-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umoline.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umoline.sh new file mode 100644 index 0000000000000000000000000000000000000000..60cf06398116999415dce8d938eeddec7e63b6ea --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umoline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umoline | grep -v \.src | grep texlive-umoline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umoline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umoline + CHECK_RESULT $? 0 0 "install texlive-umoline failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umoline + CHECK_RESULT $? 0 0 "remove texlive-umoline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umthesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c07ff6eb1aaee85ace3e0fbfa1950908125e64b2 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umthesis-doc | grep -v \.src | grep texlive-umthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umthesis-doc + CHECK_RESULT $? 0 0 "install texlive-umthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-umthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..209435c19d937e591716bece106476774610f0f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umthesis | grep -v \.src | grep texlive-umthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umthesis + CHECK_RESULT $? 0 0 "install texlive-umthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umthesis + CHECK_RESULT $? 0 0 "remove texlive-umthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umtypewriter.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umtypewriter.sh new file mode 100644 index 0000000000000000000000000000000000000000..a909fc5b63001f1fe2ba4f77095a02567b247f96 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-umtypewriter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-umtypewriter | grep -v \.src | grep texlive-umtypewriter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-umtypewriter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-umtypewriter + CHECK_RESULT $? 0 0 "install texlive-umtypewriter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-umtypewriter + CHECK_RESULT $? 0 0 "remove texlive-umtypewriter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unamth-template-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unamth-template-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..23b4845b4bf3f8b6fe547a0eb574ef958eba01f6 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unamth-template-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unamth-template-doc | grep -v \.src | grep texlive-unamth-template-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unamth-template-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unamth-template-doc + CHECK_RESULT $? 0 0 "install texlive-unamth-template-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unamth-template-doc + CHECK_RESULT $? 0 0 "remove texlive-unamth-template-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unamthesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unamthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..21d5c438489bd74125920daa3294c078fec35e0c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unamthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unamthesis-doc | grep -v \.src | grep texlive-unamthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unamthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unamthesis-doc + CHECK_RESULT $? 0 0 "install texlive-unamthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unamthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-unamthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unamthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unamthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b1c9c17fe05661f41eabe94b9d196de5472c37d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unamthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unamthesis | grep -v \.src | grep texlive-unamthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unamthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unamthesis + CHECK_RESULT $? 0 0 "install texlive-unamthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unamthesis + CHECK_RESULT $? 0 0 "remove texlive-unamthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-undergradmath-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-undergradmath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..55b63106678da34f745e3967b871484d665ac467 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-undergradmath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-undergradmath-doc | grep -v \.src | grep texlive-undergradmath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-undergradmath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-undergradmath-doc + CHECK_RESULT $? 0 0 "install texlive-undergradmath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-undergradmath-doc + CHECK_RESULT $? 0 0 "remove texlive-undergradmath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underlin-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underlin-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ff3eb403f45e8085acac548125f941433b974ad --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underlin-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-underlin-doc | grep -v \.src | grep texlive-underlin-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-underlin-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-underlin-doc + CHECK_RESULT $? 0 0 "install texlive-underlin-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-underlin-doc + CHECK_RESULT $? 0 0 "remove texlive-underlin-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underlin.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underlin.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ca34b792f018c351732a837b9c6d08eaaca7d75 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underlin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-underlin | grep -v \.src | grep texlive-underlin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-underlin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-underlin + CHECK_RESULT $? 0 0 "install texlive-underlin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-underlin + CHECK_RESULT $? 0 0 "remove texlive-underlin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underoverlap-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underoverlap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7447e754faef2f60e0799192d0a7ffeec79794d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underoverlap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-underoverlap-doc | grep -v \.src | grep texlive-underoverlap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-underoverlap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-underoverlap-doc + CHECK_RESULT $? 0 0 "install texlive-underoverlap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-underoverlap-doc + CHECK_RESULT $? 0 0 "remove texlive-underoverlap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underoverlap.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underoverlap.sh new file mode 100644 index 0000000000000000000000000000000000000000..84cf87435a27a5da99006f7c2e38ea06e7e52048 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underoverlap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-underoverlap | grep -v \.src | grep texlive-underoverlap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-underoverlap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-underoverlap + CHECK_RESULT $? 0 0 "install texlive-underoverlap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-underoverlap + CHECK_RESULT $? 0 0 "remove texlive-underoverlap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underscore-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underscore-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..53c5b19654c0fb765fda4e053c03399d13b2fee5 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underscore-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-underscore-doc | grep -v \.src | grep texlive-underscore-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-underscore-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-underscore-doc + CHECK_RESULT $? 0 0 "install texlive-underscore-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-underscore-doc + CHECK_RESULT $? 0 0 "remove texlive-underscore-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underscore.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underscore.sh new file mode 100644 index 0000000000000000000000000000000000000000..c27b005e212a9e2a742db6bb078491ac2a6c0a1c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-underscore.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-underscore | grep -v \.src | grep texlive-underscore + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-underscore" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-underscore + CHECK_RESULT $? 0 0 "install texlive-underscore failed" + SLEEP_WAIT 1 + dnf remove -y texlive-underscore + CHECK_RESULT $? 0 0 "remove texlive-underscore failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-undolabl-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-undolabl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..84f558536cfc67bc65dd6aef6981980523bae505 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-undolabl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-undolabl-doc | grep -v \.src | grep texlive-undolabl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-undolabl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-undolabl-doc + CHECK_RESULT $? 0 0 "install texlive-undolabl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-undolabl-doc + CHECK_RESULT $? 0 0 "remove texlive-undolabl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-undolabl.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-undolabl.sh new file mode 100644 index 0000000000000000000000000000000000000000..f335afce4c5746fbe2be8ed1d1a75c29246151ee --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-undolabl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-undolabl | grep -v \.src | grep texlive-undolabl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-undolabl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-undolabl + CHECK_RESULT $? 0 0 "install texlive-undolabl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-undolabl + CHECK_RESULT $? 0 0 "remove texlive-undolabl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unfonts-core.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unfonts-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..019a9941ba78a87985da943986edb52e2c526999 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unfonts-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unfonts-core | grep -v \.src | grep texlive-unfonts-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unfonts-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unfonts-core + CHECK_RESULT $? 0 0 "install texlive-unfonts-core failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unfonts-core + CHECK_RESULT $? 0 0 "remove texlive-unfonts-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unfonts-extra.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unfonts-extra.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebb7534f5b5b3a4b767491df134ab968ec967f2a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unfonts-extra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unfonts-extra | grep -v \.src | grep texlive-unfonts-extra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unfonts-extra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unfonts-extra + CHECK_RESULT $? 0 0 "install texlive-unfonts-extra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unfonts-extra + CHECK_RESULT $? 0 0 "remove texlive-unfonts-extra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-ger-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-ger-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1aac73cf9ff1ae83a156974829ad76ec9a9e9f40 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-ger-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uni-wtal-ger-doc | grep -v \.src | grep texlive-uni-wtal-ger-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uni-wtal-ger-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uni-wtal-ger-doc + CHECK_RESULT $? 0 0 "install texlive-uni-wtal-ger-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uni-wtal-ger-doc + CHECK_RESULT $? 0 0 "remove texlive-uni-wtal-ger-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-ger.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-ger.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea58102cce9bb37013b15347168cf9d67a268be7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-ger.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uni-wtal-ger | grep -v \.src | grep texlive-uni-wtal-ger + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uni-wtal-ger" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uni-wtal-ger + CHECK_RESULT $? 0 0 "install texlive-uni-wtal-ger failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uni-wtal-ger + CHECK_RESULT $? 0 0 "remove texlive-uni-wtal-ger failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-lin-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-lin-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8683c6e79e9336407e482aacc63b0bc8d60cff6e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-lin-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uni-wtal-lin-doc | grep -v \.src | grep texlive-uni-wtal-lin-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uni-wtal-lin-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uni-wtal-lin-doc + CHECK_RESULT $? 0 0 "install texlive-uni-wtal-lin-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uni-wtal-lin-doc + CHECK_RESULT $? 0 0 "remove texlive-uni-wtal-lin-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-lin.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-lin.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3392f37085d18a2f1f4e56a40214b9aa452dd3e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uni-wtal-lin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uni-wtal-lin | grep -v \.src | grep texlive-uni-wtal-lin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uni-wtal-lin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uni-wtal-lin + CHECK_RESULT $? 0 0 "install texlive-uni-wtal-lin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uni-wtal-lin + CHECK_RESULT $? 0 0 "remove texlive-uni-wtal-lin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-bidi.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-bidi.sh new file mode 100644 index 0000000000000000000000000000000000000000..a85c281890ab92d8f344e5d6d449b4cfcecd407a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-bidi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unicode-bidi | grep -v \.src | grep texlive-unicode-bidi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unicode-bidi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unicode-bidi + CHECK_RESULT $? 0 0 "install texlive-unicode-bidi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unicode-bidi + CHECK_RESULT $? 0 0 "remove texlive-unicode-bidi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-data-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-data-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4b844191784e8d844ca5ea31018ce6c8c3cefca --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-data-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unicode-data-doc | grep -v \.src | grep texlive-unicode-data-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unicode-data-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unicode-data-doc + CHECK_RESULT $? 0 0 "install texlive-unicode-data-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unicode-data-doc + CHECK_RESULT $? 0 0 "remove texlive-unicode-data-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-data.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-data.sh new file mode 100644 index 0000000000000000000000000000000000000000..b24e08a48419636ecf2e97a7ca7c1ae7e7c15ce0 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-data.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unicode-data | grep -v \.src | grep texlive-unicode-data + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unicode-data" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unicode-data + CHECK_RESULT $? 0 0 "install texlive-unicode-data failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unicode-data + CHECK_RESULT $? 0 0 "remove texlive-unicode-data failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-math-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-math-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..351755ad7660c97ea0f5c8b867784326fda313f0 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-math-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unicode-math-doc | grep -v \.src | grep texlive-unicode-math-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unicode-math-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unicode-math-doc + CHECK_RESULT $? 0 0 "install texlive-unicode-math-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unicode-math-doc + CHECK_RESULT $? 0 0 "remove texlive-unicode-math-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-math.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-math.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ec8ee37cf634d601d821b5408e621b0c0925633 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unicode-math.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unicode-math | grep -v \.src | grep texlive-unicode-math + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unicode-math" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unicode-math + CHECK_RESULT $? 0 0 "install texlive-unicode-math failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unicode-math + CHECK_RESULT $? 0 0 "remove texlive-unicode-math failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unifith.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unifith.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3fa93640cac9c8e18fd8fe67c9211037994b3fa --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unifith.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unifith | grep -v \.src | grep texlive-unifith + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unifith" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unifith + CHECK_RESULT $? 0 0 "install texlive-unifith failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unifith + CHECK_RESULT $? 0 0 "remove texlive-unifith failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uniquecounter.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uniquecounter.sh new file mode 100644 index 0000000000000000000000000000000000000000..f96814dfcadcee6996f58c15a52b7267553bc371 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uniquecounter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uniquecounter | grep -v \.src | grep texlive-uniquecounter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uniquecounter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uniquecounter + CHECK_RESULT $? 0 0 "install texlive-uniquecounter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uniquecounter + CHECK_RESULT $? 0 0 "remove texlive-uniquecounter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unisugar-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unisugar-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..99c5f80470fd4f93ce0e411834f53755c9d3cd23 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unisugar-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unisugar-doc | grep -v \.src | grep texlive-unisugar-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unisugar-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unisugar-doc + CHECK_RESULT $? 0 0 "install texlive-unisugar-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unisugar-doc + CHECK_RESULT $? 0 0 "remove texlive-unisugar-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unisugar.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unisugar.sh new file mode 100644 index 0000000000000000000000000000000000000000..45465f70c16de301cb1fb9feb3e6e7d08fc156de --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unisugar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unisugar | grep -v \.src | grep texlive-unisugar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unisugar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unisugar + CHECK_RESULT $? 0 0 "install texlive-unisugar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unisugar + CHECK_RESULT $? 0 0 "remove texlive-unisugar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unitn-bimrep.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unitn-bimrep.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c9a6ad2e824eae76818cf195f38801947767915 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unitn-bimrep.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unitn-bimrep | grep -v \.src | grep texlive-unitn-bimrep + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unitn-bimrep" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unitn-bimrep + CHECK_RESULT $? 0 0 "install texlive-unitn-bimrep failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unitn-bimrep + CHECK_RESULT $? 0 0 "remove texlive-unitn-bimrep failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-units-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-units-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a850e88a975932f9093b40e2b1e61273b40d18fe --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-units-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-units-doc | grep -v \.src | grep texlive-units-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-units-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-units-doc + CHECK_RESULT $? 0 0 "install texlive-units-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-units-doc + CHECK_RESULT $? 0 0 "remove texlive-units-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-units.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-units.sh new file mode 100644 index 0000000000000000000000000000000000000000..32a134fe92979a93f243341380866bec9b1d3a0a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-units.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-units | grep -v \.src | grep texlive-units + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-units" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-units + CHECK_RESULT $? 0 0 "install texlive-units failed" + SLEEP_WAIT 1 + dnf remove -y texlive-units + CHECK_RESULT $? 0 0 "remove texlive-units failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unitsdef-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unitsdef-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..945d1adc96cd1094bbfca66d0c1f7b34d8fc1e19 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unitsdef-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unitsdef-doc | grep -v \.src | grep texlive-unitsdef-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unitsdef-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unitsdef-doc + CHECK_RESULT $? 0 0 "install texlive-unitsdef-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unitsdef-doc + CHECK_RESULT $? 0 0 "remove texlive-unitsdef-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unitsdef.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unitsdef.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e026462f71d761296f0e221e3a27a7cdee5f42d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unitsdef.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unitsdef | grep -v \.src | grep texlive-unitsdef + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unitsdef" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unitsdef + CHECK_RESULT $? 0 0 "install texlive-unitsdef failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unitsdef + CHECK_RESULT $? 0 0 "remove texlive-unitsdef failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universa-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universa-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..795840dbfd15b9b2746cb602dd0d4867a018f09f --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universa-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-universa-doc | grep -v \.src | grep texlive-universa-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-universa-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-universa-doc + CHECK_RESULT $? 0 0 "install texlive-universa-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-universa-doc + CHECK_RESULT $? 0 0 "remove texlive-universa-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universa.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universa.sh new file mode 100644 index 0000000000000000000000000000000000000000..20b53e13e6d9f8b1b5e8208b596b4c22881d5bfa --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-universa | grep -v \.src | grep texlive-universa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-universa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-universa + CHECK_RESULT $? 0 0 "install texlive-universa failed" + SLEEP_WAIT 1 + dnf remove -y texlive-universa + CHECK_RESULT $? 0 0 "remove texlive-universa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universalis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universalis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6c251dfa4a0079defb3ee663fc0e12af3a21879 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universalis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-universalis-doc | grep -v \.src | grep texlive-universalis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-universalis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-universalis-doc + CHECK_RESULT $? 0 0 "install texlive-universalis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-universalis-doc + CHECK_RESULT $? 0 0 "remove texlive-universalis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universalis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universalis.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a446455e85fc647479a4d96b1ab8e3cd8912edd --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-universalis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-universalis | grep -v \.src | grep texlive-universalis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-universalis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-universalis + CHECK_RESULT $? 0 0 "install texlive-universalis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-universalis + CHECK_RESULT $? 0 0 "remove texlive-universalis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-univie-ling.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-univie-ling.sh new file mode 100644 index 0000000000000000000000000000000000000000..f26fccbc1a84772a6a66c5861539c9900b387f09 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-univie-ling.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-univie-ling | grep -v \.src | grep texlive-univie-ling + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-univie-ling" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-univie-ling + CHECK_RESULT $? 0 0 "install texlive-univie-ling failed" + SLEEP_WAIT 1 + dnf remove -y texlive-univie-ling + CHECK_RESULT $? 0 0 "remove texlive-univie-ling failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unravel-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unravel-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..98847191ca07636226ced804be08846b5adc29b7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unravel-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unravel-doc | grep -v \.src | grep texlive-unravel-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unravel-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unravel-doc + CHECK_RESULT $? 0 0 "install texlive-unravel-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unravel-doc + CHECK_RESULT $? 0 0 "remove texlive-unravel-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unravel.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unravel.sh new file mode 100644 index 0000000000000000000000000000000000000000..537dfe0f0f2e37b079536a55c15b1b326a4e0302 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unravel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unravel | grep -v \.src | grep texlive-unravel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unravel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unravel + CHECK_RESULT $? 0 0 "install texlive-unravel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unravel + CHECK_RESULT $? 0 0 "remove texlive-unravel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unswcover-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unswcover-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..67e9aec2c0b35173b6eab1bfa789834665a6d651 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unswcover-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unswcover-doc | grep -v \.src | grep texlive-unswcover-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unswcover-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unswcover-doc + CHECK_RESULT $? 0 0 "install texlive-unswcover-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unswcover-doc + CHECK_RESULT $? 0 0 "remove texlive-unswcover-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unswcover.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unswcover.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf50ac3884d324fe93639ebc8f2286d7ab9b42c1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-unswcover.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unswcover | grep -v \.src | grep texlive-unswcover + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unswcover" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unswcover + CHECK_RESULT $? 0 0 "install texlive-unswcover failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unswcover + CHECK_RESULT $? 0 0 "remove texlive-unswcover failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uothesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uothesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..43c90b3ca77c03c9a1536fa710754813e9c3dfc1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uothesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uothesis-doc | grep -v \.src | grep texlive-uothesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uothesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uothesis-doc + CHECK_RESULT $? 0 0 "install texlive-uothesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uothesis-doc + CHECK_RESULT $? 0 0 "remove texlive-uothesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uothesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uothesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..14c1892de113e4b18e35f5583a63b844cb5b663a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uothesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uothesis | grep -v \.src | grep texlive-uothesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uothesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uothesis + CHECK_RESULT $? 0 0 "install texlive-uothesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uothesis + CHECK_RESULT $? 0 0 "remove texlive-uothesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..48f467f498115d58a641eb9ea6616626eb7ed402 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uowthesis-doc | grep -v \.src | grep texlive-uowthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uowthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uowthesis-doc + CHECK_RESULT $? 0 0 "install texlive-uowthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uowthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-uowthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b11bf31b6509af750cfe8ec72d542af4231b8c8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uowthesis | grep -v \.src | grep texlive-uowthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uowthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uowthesis + CHECK_RESULT $? 0 0 "install texlive-uowthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uowthesis + CHECK_RESULT $? 0 0 "remove texlive-uowthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesistitlepage-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesistitlepage-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e5cad0d285e6281c985949a2d90a65c33f01988 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesistitlepage-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uowthesistitlepage-doc | grep -v \.src | grep texlive-uowthesistitlepage-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uowthesistitlepage-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uowthesistitlepage-doc + CHECK_RESULT $? 0 0 "install texlive-uowthesistitlepage-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uowthesistitlepage-doc + CHECK_RESULT $? 0 0 "remove texlive-uowthesistitlepage-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesistitlepage.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesistitlepage.sh new file mode 100644 index 0000000000000000000000000000000000000000..7663a0291fa9c27f835d3a3d50dbdc8d3d7b6ece --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uowthesistitlepage.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uowthesistitlepage | grep -v \.src | grep texlive-uowthesistitlepage + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uowthesistitlepage" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uowthesistitlepage + CHECK_RESULT $? 0 0 "install texlive-uowthesistitlepage failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uowthesistitlepage + CHECK_RESULT $? 0 0 "remove texlive-uowthesistitlepage failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upca-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upca-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2605b28ab4b32306819c5af61440aa488687e2b0 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upca-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-upca-doc | grep -v \.src | grep texlive-upca-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-upca-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-upca-doc + CHECK_RESULT $? 0 0 "install texlive-upca-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-upca-doc + CHECK_RESULT $? 0 0 "remove texlive-upca-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upca.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upca.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ffcc9d2db5d5f44bd1e2de0aff33b54ea9e5b67 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upca.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-upca | grep -v \.src | grep texlive-upca + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-upca" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-upca + CHECK_RESULT $? 0 0 "install texlive-upca failed" + SLEEP_WAIT 1 + dnf remove -y texlive-upca + CHECK_RESULT $? 0 0 "remove texlive-upca failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-updmap-map.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-updmap-map.sh new file mode 100644 index 0000000000000000000000000000000000000000..37b987f7330b96c1b3b963fdf5343af498cbdbb4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-updmap-map.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-updmap-map | grep -v \.src | grep texlive-updmap-map + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-updmap-map" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-updmap-map + CHECK_RESULT $? 0 0 "install texlive-updmap-map failed" + SLEEP_WAIT 1 + dnf remove -y texlive-updmap-map + CHECK_RESULT $? 0 0 "remove texlive-updmap-map failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uplatex.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uplatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b5e7731bdae3973f4d477e41f302ebb3e4c95bd --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uplatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uplatex | grep -v \.src | grep texlive-uplatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uplatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uplatex + CHECK_RESULT $? 0 0 "install texlive-uplatex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uplatex + CHECK_RESULT $? 0 0 "remove texlive-uplatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upmethodology-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upmethodology-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..daabf729f2137de7ce9a72cf1d47158ccf8022e1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upmethodology-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-upmethodology-doc | grep -v \.src | grep texlive-upmethodology-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-upmethodology-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-upmethodology-doc + CHECK_RESULT $? 0 0 "install texlive-upmethodology-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-upmethodology-doc + CHECK_RESULT $? 0 0 "remove texlive-upmethodology-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upmethodology.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upmethodology.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ddb5fd9803690459bcf662d8b9cbb12a3efb378 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upmethodology.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-upmethodology | grep -v \.src | grep texlive-upmethodology + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-upmethodology" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-upmethodology + CHECK_RESULT $? 0 0 "install texlive-upmethodology failed" + SLEEP_WAIT 1 + dnf remove -y texlive-upmethodology + CHECK_RESULT $? 0 0 "remove texlive-upmethodology failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uppunctlm.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uppunctlm.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3e68a5d20c64daffa91aafd20b98a3702a78dc8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uppunctlm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uppunctlm | grep -v \.src | grep texlive-uppunctlm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uppunctlm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uppunctlm + CHECK_RESULT $? 0 0 "install texlive-uppunctlm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uppunctlm + CHECK_RESULT $? 0 0 "remove texlive-uppunctlm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upquote-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upquote-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b9559e27f5cdb4d8d5711f8d7b04b733767d4b3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upquote-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-upquote-doc | grep -v \.src | grep texlive-upquote-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-upquote-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-upquote-doc + CHECK_RESULT $? 0 0 "install texlive-upquote-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-upquote-doc + CHECK_RESULT $? 0 0 "remove texlive-upquote-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upquote.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upquote.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6017237dd49ceea6c6462b666007d52abd8fd59 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upquote.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-upquote | grep -v \.src | grep texlive-upquote + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-upquote" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-upquote + CHECK_RESULT $? 0 0 "install texlive-upquote failed" + SLEEP_WAIT 1 + dnf remove -y texlive-upquote + CHECK_RESULT $? 0 0 "remove texlive-upquote failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-base-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-base-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2072097cd5e94889dc6aabadd681a12bd1f226fd --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-base-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uptex-base-doc | grep -v \.src | grep texlive-uptex-base-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uptex-base-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uptex-base-doc + CHECK_RESULT $? 0 0 "install texlive-uptex-base-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uptex-base-doc + CHECK_RESULT $? 0 0 "remove texlive-uptex-base-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-base.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-base.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f38ef94bbbf2fac90839da5319ba0d355da7c86 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-base.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uptex-base | grep -v \.src | grep texlive-uptex-base + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uptex-base" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uptex-base + CHECK_RESULT $? 0 0 "install texlive-uptex-base failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uptex-base + CHECK_RESULT $? 0 0 "remove texlive-uptex-base failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-fonts-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-fonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dff804f7d53cd39e14a8a345750ddd7f3eda9be7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-fonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uptex-fonts-doc | grep -v \.src | grep texlive-uptex-fonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uptex-fonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uptex-fonts-doc + CHECK_RESULT $? 0 0 "install texlive-uptex-fonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uptex-fonts-doc + CHECK_RESULT $? 0 0 "remove texlive-uptex-fonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-fonts.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6c1f00b14fd89bd6dcd083565952bbd185d0975 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uptex-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uptex-fonts | grep -v \.src | grep texlive-uptex-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uptex-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uptex-fonts + CHECK_RESULT $? 0 0 "install texlive-uptex-fonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uptex-fonts + CHECK_RESULT $? 0 0 "remove texlive-uptex-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upzhkinsoku.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upzhkinsoku.sh new file mode 100644 index 0000000000000000000000000000000000000000..6430654e2cb5010ab182c2659bf4eb1a72317d31 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-upzhkinsoku.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-upzhkinsoku | grep -v \.src | grep texlive-upzhkinsoku + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-upzhkinsoku" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-upzhkinsoku + CHECK_RESULT $? 0 0 "install texlive-upzhkinsoku failed" + SLEEP_WAIT 1 + dnf remove -y texlive-upzhkinsoku + CHECK_RESULT $? 0 0 "remove texlive-upzhkinsoku failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urcls-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urcls-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..be38184e802e8d86851d1feb7d912a3abb451ff8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urcls-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-urcls-doc | grep -v \.src | grep texlive-urcls-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-urcls-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-urcls-doc + CHECK_RESULT $? 0 0 "install texlive-urcls-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-urcls-doc + CHECK_RESULT $? 0 0 "remove texlive-urcls-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urcls.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urcls.sh new file mode 100644 index 0000000000000000000000000000000000000000..bad01f7d1bce428e07557daa3dd5583f4ec18a3c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urcls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-urcls | grep -v \.src | grep texlive-urcls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-urcls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-urcls + CHECK_RESULT $? 0 0 "install texlive-urcls failed" + SLEEP_WAIT 1 + dnf remove -y texlive-urcls + CHECK_RESULT $? 0 0 "remove texlive-urcls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uri-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uri-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8e9d890c07799897c66bd7c6c650af254dccba6 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uri-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uri-doc | grep -v \.src | grep texlive-uri-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uri-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uri-doc + CHECK_RESULT $? 0 0 "install texlive-uri-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uri-doc + CHECK_RESULT $? 0 0 "remove texlive-uri-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uri.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uri.sh new file mode 100644 index 0000000000000000000000000000000000000000..e030ed32ea3c0d003242c40e3da19e9bcb049740 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uri.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uri | grep -v \.src | grep texlive-uri + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uri" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uri + CHECK_RESULT $? 0 0 "install texlive-uri failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uri + CHECK_RESULT $? 0 0 "remove texlive-uri failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-url-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-url-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa19ba42b7a0c417ab5e4dd54c09c0c4beb9cd9d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-url-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-url-doc | grep -v \.src | grep texlive-url-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-url-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-url-doc + CHECK_RESULT $? 0 0 "install texlive-url-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-url-doc + CHECK_RESULT $? 0 0 "remove texlive-url-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-url.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-url.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d575c607ba7102ace1cb6f82a51dbc9916a20a3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-url.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-url | grep -v \.src | grep texlive-url + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-url" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-url + CHECK_RESULT $? 0 0 "install texlive-url failed" + SLEEP_WAIT 1 + dnf remove -y texlive-url + CHECK_RESULT $? 0 0 "remove texlive-url failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urwchancal-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urwchancal-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..09f5b094aa6239a0be8f429f1f9fc1aabbd2d880 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urwchancal-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-urwchancal-doc | grep -v \.src | grep texlive-urwchancal-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-urwchancal-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-urwchancal-doc + CHECK_RESULT $? 0 0 "install texlive-urwchancal-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-urwchancal-doc + CHECK_RESULT $? 0 0 "remove texlive-urwchancal-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urwchancal.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urwchancal.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f3bd387a823a14583602da597345383492efb8b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-urwchancal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-urwchancal | grep -v \.src | grep texlive-urwchancal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-urwchancal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-urwchancal + CHECK_RESULT $? 0 0 "install texlive-urwchancal failed" + SLEEP_WAIT 1 + dnf remove -y texlive-urwchancal + CHECK_RESULT $? 0 0 "remove texlive-urwchancal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-usebib-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-usebib-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..67585607140c34fa73534ecc8a08898e34fc6314 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-usebib-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-usebib-doc | grep -v \.src | grep texlive-usebib-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-usebib-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-usebib-doc + CHECK_RESULT $? 0 0 "install texlive-usebib-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-usebib-doc + CHECK_RESULT $? 0 0 "remove texlive-usebib-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-usebib.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-usebib.sh new file mode 100644 index 0000000000000000000000000000000000000000..5bb4e0415a579bed7ba751e591460df42f26770e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-usebib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-usebib | grep -v \.src | grep texlive-usebib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-usebib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-usebib + CHECK_RESULT $? 0 0 "install texlive-usebib failed" + SLEEP_WAIT 1 + dnf remove -y texlive-usebib + CHECK_RESULT $? 0 0 "remove texlive-usebib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ushort-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ushort-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae423e3896aabc5c0ddcfd09d16839229d3c60c3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ushort-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ushort-doc | grep -v \.src | grep texlive-ushort-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ushort-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ushort-doc + CHECK_RESULT $? 0 0 "install texlive-ushort-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ushort-doc + CHECK_RESULT $? 0 0 "remove texlive-ushort-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ushort.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ushort.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3055fb9104baf2166dfde82601b181151ce252b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ushort.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ushort | grep -v \.src | grep texlive-ushort + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ushort" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ushort + CHECK_RESULT $? 0 0 "install texlive-ushort failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ushort + CHECK_RESULT $? 0 0 "remove texlive-ushort failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uspace.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uspace.sh new file mode 100644 index 0000000000000000000000000000000000000000..73a261f5da50d67793a3f5b836eeb5e32aae6b4f --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uspace.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uspace | grep -v \.src | grep texlive-uspace + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uspace" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uspace + CHECK_RESULT $? 0 0 "install texlive-uspace failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uspace + CHECK_RESULT $? 0 0 "remove texlive-uspace failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uspatent-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uspatent-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9bfe5f5f18f0d6686bfb125cf46f72a1e57cfa8a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uspatent-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uspatent-doc | grep -v \.src | grep texlive-uspatent-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uspatent-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uspatent-doc + CHECK_RESULT $? 0 0 "install texlive-uspatent-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uspatent-doc + CHECK_RESULT $? 0 0 "remove texlive-uspatent-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uspatent.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uspatent.sh new file mode 100644 index 0000000000000000000000000000000000000000..5029cd82b2113fc4fb604fc21f1f34c380765650 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uspatent.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uspatent | grep -v \.src | grep texlive-uspatent + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uspatent" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uspatent + CHECK_RESULT $? 0 0 "install texlive-uspatent failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uspatent + CHECK_RESULT $? 0 0 "remove texlive-uspatent failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ut-thesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ut-thesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..204651d29af6673b18464226164947671c2c693e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ut-thesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ut-thesis-doc | grep -v \.src | grep texlive-ut-thesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ut-thesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ut-thesis-doc + CHECK_RESULT $? 0 0 "install texlive-ut-thesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ut-thesis-doc + CHECK_RESULT $? 0 0 "remove texlive-ut-thesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ut-thesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ut-thesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..18f49d71dbdaa104a7d45ee85b90d0ae5cd381a8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-ut-thesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ut-thesis | grep -v \.src | grep texlive-ut-thesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ut-thesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ut-thesis + CHECK_RESULT $? 0 0 "install texlive-ut-thesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ut-thesis + CHECK_RESULT $? 0 0 "remove texlive-ut-thesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utexasthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utexasthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bbdb74b798715f8ba7b8c1cb554da8ee70f4900 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utexasthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-utexasthesis | grep -v \.src | grep texlive-utexasthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-utexasthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-utexasthesis + CHECK_RESULT $? 0 0 "install texlive-utexasthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-utexasthesis + CHECK_RESULT $? 0 0 "remove texlive-utexasthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utf8mex-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utf8mex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b35cf95f79d592596bdafd4be0de09479d3f7c18 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utf8mex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-utf8mex-doc | grep -v \.src | grep texlive-utf8mex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-utf8mex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-utf8mex-doc + CHECK_RESULT $? 0 0 "install texlive-utf8mex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-utf8mex-doc + CHECK_RESULT $? 0 0 "remove texlive-utf8mex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utf8mex.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utf8mex.sh new file mode 100644 index 0000000000000000000000000000000000000000..05327c1bc8e79aedc96b0f22bb7e1232b2ee2a18 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utf8mex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-utf8mex | grep -v \.src | grep texlive-utf8mex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-utf8mex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-utf8mex + CHECK_RESULT $? 0 0 "install texlive-utf8mex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-utf8mex + CHECK_RESULT $? 0 0 "remove texlive-utf8mex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utopia-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utopia-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..187ae885529735d12ae691a593dbd4bab837bf75 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utopia-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-utopia-doc | grep -v \.src | grep texlive-utopia-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-utopia-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-utopia-doc + CHECK_RESULT $? 0 0 "install texlive-utopia-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-utopia-doc + CHECK_RESULT $? 0 0 "remove texlive-utopia-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utopia.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utopia.sh new file mode 100644 index 0000000000000000000000000000000000000000..04d23079de9989e66aa003f5834cb63a9d3b0cce --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-utopia.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-utopia | grep -v \.src | grep texlive-utopia + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-utopia" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-utopia + CHECK_RESULT $? 0 0 "install texlive-utopia failed" + SLEEP_WAIT 1 + dnf remove -y texlive-utopia + CHECK_RESULT $? 0 0 "remove texlive-utopia failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uwthesis-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uwthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..67ff1b57af4bc9c7529ca281304549b791cd3b82 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uwthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uwthesis-doc | grep -v \.src | grep texlive-uwthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uwthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uwthesis-doc + CHECK_RESULT $? 0 0 "install texlive-uwthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uwthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-uwthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uwthesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uwthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..7516848835d4bc4a2fe566adac509c5f04bf92f3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-uwthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-uwthesis | grep -v \.src | grep texlive-uwthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-uwthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-uwthesis + CHECK_RESULT $? 0 0 "install texlive-uwthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-uwthesis + CHECK_RESULT $? 0 0 "remove texlive-uwthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vak-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vak-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..42c2d6571e15c6c5f23f55b548a9818f5b9a3ff3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vak-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vak-doc | grep -v \.src | grep texlive-vak-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vak-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vak-doc + CHECK_RESULT $? 0 0 "install texlive-vak-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vak-doc + CHECK_RESULT $? 0 0 "remove texlive-vak-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vak.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vak.sh new file mode 100644 index 0000000000000000000000000000000000000000..839801c045e90d661cf70c4aea2573217f3f2a6f --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vak.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vak | grep -v \.src | grep texlive-vak + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vak" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vak + CHECK_RESULT $? 0 0 "install texlive-vak failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vak + CHECK_RESULT $? 0 0 "remove texlive-vak failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vancouver-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vancouver-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ae7f441e80144be0c6587defe1909ed4fd4e02a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vancouver-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vancouver-doc | grep -v \.src | grep texlive-vancouver-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vancouver-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vancouver-doc + CHECK_RESULT $? 0 0 "install texlive-vancouver-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vancouver-doc + CHECK_RESULT $? 0 0 "remove texlive-vancouver-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vancouver.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vancouver.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0cffc92076584efbaf86516071edd1d8c7a5112 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vancouver.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vancouver | grep -v \.src | grep texlive-vancouver + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vancouver" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vancouver + CHECK_RESULT $? 0 0 "install texlive-vancouver failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vancouver + CHECK_RESULT $? 0 0 "remove texlive-vancouver failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-variablelm.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-variablelm.sh new file mode 100644 index 0000000000000000000000000000000000000000..99e6ab24b73e2baa9e1a9d0230cf72be7abb6321 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-variablelm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-variablelm | grep -v \.src | grep texlive-variablelm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-variablelm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-variablelm + CHECK_RESULT $? 0 0 "install texlive-variablelm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-variablelm + CHECK_RESULT $? 0 0 "remove texlive-variablelm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-variations-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-variations-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d22b03365195e921d32f20c74d6625125b58ed4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-variations-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-variations-doc | grep -v \.src | grep texlive-variations-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-variations-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-variations-doc + CHECK_RESULT $? 0 0 "install texlive-variations-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-variations-doc + CHECK_RESULT $? 0 0 "remove texlive-variations-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-variations.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-variations.sh new file mode 100644 index 0000000000000000000000000000000000000000..c86f733b1ec3948179e5dee376641ce3ee04fada --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-variations.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-variations | grep -v \.src | grep texlive-variations + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-variations" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-variations + CHECK_RESULT $? 0 0 "install texlive-variations failed" + SLEEP_WAIT 1 + dnf remove -y texlive-variations + CHECK_RESULT $? 0 0 "remove texlive-variations failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varindex-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varindex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..20a16ec84a831a0e9def1bf7c9db7c466d64fcaa --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varindex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-varindex-doc | grep -v \.src | grep texlive-varindex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-varindex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-varindex-doc + CHECK_RESULT $? 0 0 "install texlive-varindex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-varindex-doc + CHECK_RESULT $? 0 0 "remove texlive-varindex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varindex.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e0ea3090001db46026cc9dee93f70d6112c5d1c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-varindex | grep -v \.src | grep texlive-varindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-varindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-varindex + CHECK_RESULT $? 0 0 "install texlive-varindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-varindex + CHECK_RESULT $? 0 0 "remove texlive-varindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varisize-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varisize-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2d43c0c7151feda7e0988f316231878601a8ee1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varisize-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-varisize-doc | grep -v \.src | grep texlive-varisize-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-varisize-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-varisize-doc + CHECK_RESULT $? 0 0 "install texlive-varisize-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-varisize-doc + CHECK_RESULT $? 0 0 "remove texlive-varisize-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varisize.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varisize.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc6342e599abba8da489562fcaa5d99c235bb549 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varisize.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-varisize | grep -v \.src | grep texlive-varisize + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-varisize" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-varisize + CHECK_RESULT $? 0 0 "install texlive-varisize failed" + SLEEP_WAIT 1 + dnf remove -y texlive-varisize + CHECK_RESULT $? 0 0 "remove texlive-varisize failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varsfromjobname-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varsfromjobname-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d3305d662f5da12704f645abca22bdb3775caa3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varsfromjobname-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-varsfromjobname-doc | grep -v \.src | grep texlive-varsfromjobname-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-varsfromjobname-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-varsfromjobname-doc + CHECK_RESULT $? 0 0 "install texlive-varsfromjobname-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-varsfromjobname-doc + CHECK_RESULT $? 0 0 "remove texlive-varsfromjobname-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varsfromjobname.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varsfromjobname.sh new file mode 100644 index 0000000000000000000000000000000000000000..7684c1bc5551ec8c0e87328c3de25affa619a6f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varsfromjobname.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-varsfromjobname | grep -v \.src | grep texlive-varsfromjobname + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-varsfromjobname" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-varsfromjobname + CHECK_RESULT $? 0 0 "install texlive-varsfromjobname failed" + SLEEP_WAIT 1 + dnf remove -y texlive-varsfromjobname + CHECK_RESULT $? 0 0 "remove texlive-varsfromjobname failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varwidth-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varwidth-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..844818cce53afe4d5a317284cd501ef3bf608fb7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varwidth-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-varwidth-doc | grep -v \.src | grep texlive-varwidth-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-varwidth-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-varwidth-doc + CHECK_RESULT $? 0 0 "install texlive-varwidth-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-varwidth-doc + CHECK_RESULT $? 0 0 "remove texlive-varwidth-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varwidth.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varwidth.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a44f68af94c80fa46fb5cc9f2f4bdfba38b376d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-varwidth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-varwidth | grep -v \.src | grep texlive-varwidth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-varwidth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-varwidth + CHECK_RESULT $? 0 0 "install texlive-varwidth failed" + SLEEP_WAIT 1 + dnf remove -y texlive-varwidth + CHECK_RESULT $? 0 0 "remove texlive-varwidth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vaucanson-g-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vaucanson-g-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..180d3443cff7853acf4814f191dd6cb0bb4db588 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vaucanson-g-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vaucanson-g-doc | grep -v \.src | grep texlive-vaucanson-g-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vaucanson-g-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vaucanson-g-doc + CHECK_RESULT $? 0 0 "install texlive-vaucanson-g-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vaucanson-g-doc + CHECK_RESULT $? 0 0 "remove texlive-vaucanson-g-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vaucanson-g.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vaucanson-g.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec4ee0b6b88bf117a65b049e44efb2f07e513f6d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vaucanson-g.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vaucanson-g | grep -v \.src | grep texlive-vaucanson-g + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vaucanson-g" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vaucanson-g + CHECK_RESULT $? 0 0 "install texlive-vaucanson-g failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vaucanson-g + CHECK_RESULT $? 0 0 "remove texlive-vaucanson-g failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vdmlisting-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vdmlisting-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0838c6d3ef9b8d1ade76f1ac95be5f8bea7243a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vdmlisting-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vdmlisting-doc | grep -v \.src | grep texlive-vdmlisting-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vdmlisting-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vdmlisting-doc + CHECK_RESULT $? 0 0 "install texlive-vdmlisting-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vdmlisting-doc + CHECK_RESULT $? 0 0 "remove texlive-vdmlisting-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vdmlisting.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vdmlisting.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c041c6ebf64d7ddacaa2d78fc854650cbe90725 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vdmlisting.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vdmlisting | grep -v \.src | grep texlive-vdmlisting + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vdmlisting" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vdmlisting + CHECK_RESULT $? 0 0 "install texlive-vdmlisting failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vdmlisting + CHECK_RESULT $? 0 0 "remove texlive-vdmlisting failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venn-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venn-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d45eff6e8ac64f47a71ca52ea6f6f3606160ea78 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venn-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-venn-doc | grep -v \.src | grep texlive-venn-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-venn-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-venn-doc + CHECK_RESULT $? 0 0 "install texlive-venn-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-venn-doc + CHECK_RESULT $? 0 0 "remove texlive-venn-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venn.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venn.sh new file mode 100644 index 0000000000000000000000000000000000000000..18001317a7b6348a575e136403eb20422d9db112 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-venn | grep -v \.src | grep texlive-venn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-venn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-venn + CHECK_RESULT $? 0 0 "install texlive-venn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-venn + CHECK_RESULT $? 0 0 "remove texlive-venn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venndiagram-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venndiagram-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2db9c338e1a2732f2a8bb8653607dbccfc4d8cae --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venndiagram-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-venndiagram-doc | grep -v \.src | grep texlive-venndiagram-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-venndiagram-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-venndiagram-doc + CHECK_RESULT $? 0 0 "install texlive-venndiagram-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-venndiagram-doc + CHECK_RESULT $? 0 0 "remove texlive-venndiagram-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venndiagram.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venndiagram.sh new file mode 100644 index 0000000000000000000000000000000000000000..7054442a93496c634642e7883498918497964a81 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-venndiagram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-venndiagram | grep -v \.src | grep texlive-venndiagram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-venndiagram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-venndiagram + CHECK_RESULT $? 0 0 "install texlive-venndiagram failed" + SLEEP_WAIT 1 + dnf remove -y texlive-venndiagram + CHECK_RESULT $? 0 0 "remove texlive-venndiagram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbasef-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbasef-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff090ba6f047dbfddd15cba5374ecae11b3be5f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbasef-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verbasef-doc | grep -v \.src | grep texlive-verbasef-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verbasef-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verbasef-doc + CHECK_RESULT $? 0 0 "install texlive-verbasef-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verbasef-doc + CHECK_RESULT $? 0 0 "remove texlive-verbasef-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbasef.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbasef.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b4bdabb26538e1840daa3432d850b7320cbae6d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbasef.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verbasef | grep -v \.src | grep texlive-verbasef + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verbasef" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verbasef + CHECK_RESULT $? 0 0 "install texlive-verbasef failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verbasef + CHECK_RESULT $? 0 0 "remove texlive-verbasef failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimbox-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimbox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b14fe49c1d4cc345dbec35bfa6f3d0446895dad --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimbox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verbatimbox-doc | grep -v \.src | grep texlive-verbatimbox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verbatimbox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verbatimbox-doc + CHECK_RESULT $? 0 0 "install texlive-verbatimbox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verbatimbox-doc + CHECK_RESULT $? 0 0 "remove texlive-verbatimbox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimbox.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b18f9db67776bc0616ccc72cc4d52e8e47c7d98 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verbatimbox | grep -v \.src | grep texlive-verbatimbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verbatimbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verbatimbox + CHECK_RESULT $? 0 0 "install texlive-verbatimbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verbatimbox + CHECK_RESULT $? 0 0 "remove texlive-verbatimbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimcopy-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimcopy-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a1e1668ae6113db24e323adbfd74fa88726d5c4f --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimcopy-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verbatimcopy-doc | grep -v \.src | grep texlive-verbatimcopy-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verbatimcopy-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verbatimcopy-doc + CHECK_RESULT $? 0 0 "install texlive-verbatimcopy-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verbatimcopy-doc + CHECK_RESULT $? 0 0 "remove texlive-verbatimcopy-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimcopy.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimcopy.sh new file mode 100644 index 0000000000000000000000000000000000000000..925cfd21391be0f9b1e182bb3f22a13b0ad28911 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbatimcopy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verbatimcopy | grep -v \.src | grep texlive-verbatimcopy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verbatimcopy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verbatimcopy + CHECK_RESULT $? 0 0 "install texlive-verbatimcopy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verbatimcopy + CHECK_RESULT $? 0 0 "remove texlive-verbatimcopy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbdef-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbdef-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..78b8d0e0bd29be8991aa4d40f8b5442141a28c75 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbdef-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verbdef-doc | grep -v \.src | grep texlive-verbdef-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verbdef-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verbdef-doc + CHECK_RESULT $? 0 0 "install texlive-verbdef-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verbdef-doc + CHECK_RESULT $? 0 0 "remove texlive-verbdef-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbdef.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbdef.sh new file mode 100644 index 0000000000000000000000000000000000000000..04c64a82ec1ea6a35a115a3d24351c9cfbc50663 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbdef.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verbdef | grep -v \.src | grep texlive-verbdef + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verbdef" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verbdef + CHECK_RESULT $? 0 0 "install texlive-verbdef failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verbdef + CHECK_RESULT $? 0 0 "remove texlive-verbdef failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbments-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbments-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..28c637118efa261f6f2d8cdf583b8f2da8cefc84 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbments-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verbments-doc | grep -v \.src | grep texlive-verbments-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verbments-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verbments-doc + CHECK_RESULT $? 0 0 "install texlive-verbments-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verbments-doc + CHECK_RESULT $? 0 0 "remove texlive-verbments-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbments.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbments.sh new file mode 100644 index 0000000000000000000000000000000000000000..66e44b418d788ea2fee92e1f43ae8ff7cee99dfe --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verbments.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verbments | grep -v \.src | grep texlive-verbments + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verbments" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verbments + CHECK_RESULT $? 0 0 "install texlive-verbments failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verbments + CHECK_RESULT $? 0 0 "remove texlive-verbments failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verifica.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verifica.sh new file mode 100644 index 0000000000000000000000000000000000000000..91fcc57b9d71ef201ef77662ab448c8f47440b4f --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verifica.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verifica | grep -v \.src | grep texlive-verifica + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verifica" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verifica + CHECK_RESULT $? 0 0 "install texlive-verifica failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verifica + CHECK_RESULT $? 0 0 "remove texlive-verifica failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verse-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verse-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed0231dc68481c79d08e595054a608b79d81f3c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verse-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verse-doc | grep -v \.src | grep texlive-verse-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verse-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verse-doc + CHECK_RESULT $? 0 0 "install texlive-verse-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verse-doc + CHECK_RESULT $? 0 0 "remove texlive-verse-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verse.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verse.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbea63d09f4e9e40078cc2d9f539db83159a5269 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-verse.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-verse | grep -v \.src | grep texlive-verse + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-verse" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-verse + CHECK_RESULT $? 0 0 "install texlive-verse failed" + SLEEP_WAIT 1 + dnf remove -y texlive-verse + CHECK_RESULT $? 0 0 "remove texlive-verse failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-version-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-version-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce53eb4f040aeddeffd9991ab2ebb53024687ae7 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-version-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-version-doc | grep -v \.src | grep texlive-version-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-version-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-version-doc + CHECK_RESULT $? 0 0 "install texlive-version-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-version-doc + CHECK_RESULT $? 0 0 "remove texlive-version-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-version.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-version.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ffa915c1e740e350d475bf5e2d96aaf1efa6cca --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-version.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-version | grep -v \.src | grep texlive-version + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-version" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-version + CHECK_RESULT $? 0 0 "install texlive-version failed" + SLEEP_WAIT 1 + dnf remove -y texlive-version + CHECK_RESULT $? 0 0 "remove texlive-version failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versions-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versions-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..07631d225437cc17433672405a9b0629aef251de --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versions-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-versions-doc | grep -v \.src | grep texlive-versions-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-versions-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-versions-doc + CHECK_RESULT $? 0 0 "install texlive-versions-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-versions-doc + CHECK_RESULT $? 0 0 "remove texlive-versions-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versions.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versions.sh new file mode 100644 index 0000000000000000000000000000000000000000..d093a678b2a03b2cfffca2d4a3a4d1b4f5d10482 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versions.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-versions | grep -v \.src | grep texlive-versions + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-versions" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-versions + CHECK_RESULT $? 0 0 "install texlive-versions failed" + SLEEP_WAIT 1 + dnf remove -y texlive-versions + CHECK_RESULT $? 0 0 "remove texlive-versions failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versonotes-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versonotes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa090d83a62b0c89bc352033f9174fbf30f17fde --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versonotes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-versonotes-doc | grep -v \.src | grep texlive-versonotes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-versonotes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-versonotes-doc + CHECK_RESULT $? 0 0 "install texlive-versonotes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-versonotes-doc + CHECK_RESULT $? 0 0 "remove texlive-versonotes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versonotes.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versonotes.sh new file mode 100644 index 0000000000000000000000000000000000000000..a016913e7e6a1bcafc6d32d0c8102ff6684c74d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-versonotes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-versonotes | grep -v \.src | grep texlive-versonotes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-versonotes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-versonotes + CHECK_RESULT $? 0 0 "install texlive-versonotes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-versonotes + CHECK_RESULT $? 0 0 "remove texlive-versonotes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vertbars-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vertbars-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..15e2179ba905ceae986f6b540ccfeaadb787e55a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vertbars-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vertbars-doc | grep -v \.src | grep texlive-vertbars-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vertbars-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vertbars-doc + CHECK_RESULT $? 0 0 "install texlive-vertbars-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vertbars-doc + CHECK_RESULT $? 0 0 "remove texlive-vertbars-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vertbars.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vertbars.sh new file mode 100644 index 0000000000000000000000000000000000000000..bddb24e71c465b9e25e5309b5a15092c8a8c768c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vertbars.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vertbars | grep -v \.src | grep texlive-vertbars + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vertbars" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vertbars + CHECK_RESULT $? 0 0 "install texlive-vertbars failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vertbars + CHECK_RESULT $? 0 0 "remove texlive-vertbars failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vgrid-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vgrid-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c43384db517ae68bce165da86cb880f357204be --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vgrid-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vgrid-doc | grep -v \.src | grep texlive-vgrid-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vgrid-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vgrid-doc + CHECK_RESULT $? 0 0 "install texlive-vgrid-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vgrid-doc + CHECK_RESULT $? 0 0 "remove texlive-vgrid-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vgrid.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vgrid.sh new file mode 100644 index 0000000000000000000000000000000000000000..026da2a4e5aee108c5c94575909a19ffae23df4b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vgrid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vgrid | grep -v \.src | grep texlive-vgrid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vgrid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vgrid + CHECK_RESULT $? 0 0 "install texlive-vgrid failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vgrid + CHECK_RESULT $? 0 0 "remove texlive-vgrid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vhistory-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vhistory-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf2a0fdc3b5993d5b244ded4c42138d3bb1ec63b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vhistory-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vhistory-doc | grep -v \.src | grep texlive-vhistory-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vhistory-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vhistory-doc + CHECK_RESULT $? 0 0 "install texlive-vhistory-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vhistory-doc + CHECK_RESULT $? 0 0 "remove texlive-vhistory-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vhistory.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vhistory.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7b8a79a626e4c79861f7061f8a686c47a3677e3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vhistory.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vhistory | grep -v \.src | grep texlive-vhistory + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vhistory" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vhistory + CHECK_RESULT $? 0 0 "install texlive-vhistory failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vhistory + CHECK_RESULT $? 0 0 "remove texlive-vhistory failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-visualfaq-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-visualfaq-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..864b79e0bcd13070e15d7ee628bb923e93e88998 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-visualfaq-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-visualfaq-doc | grep -v \.src | grep texlive-visualfaq-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-visualfaq-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-visualfaq-doc + CHECK_RESULT $? 0 0 "install texlive-visualfaq-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-visualfaq-doc + CHECK_RESULT $? 0 0 "remove texlive-visualfaq-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-visualpstricks-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-visualpstricks-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0263d75681872ec3c02587bf786cf8c77bdf7bf --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-visualpstricks-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-visualpstricks-doc | grep -v \.src | grep texlive-visualpstricks-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-visualpstricks-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-visualpstricks-doc + CHECK_RESULT $? 0 0 "install texlive-visualpstricks-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-visualpstricks-doc + CHECK_RESULT $? 0 0 "remove texlive-visualpstricks-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-visualtikz-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-visualtikz-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..652bf56ac0781fe7d294306f734669565c72076b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-visualtikz-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-visualtikz-doc | grep -v \.src | grep texlive-visualtikz-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-visualtikz-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-visualtikz-doc + CHECK_RESULT $? 0 0 "install texlive-visualtikz-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-visualtikz-doc + CHECK_RESULT $? 0 0 "remove texlive-visualtikz-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vmargin-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vmargin-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb8e418735f6b1fc311de578ff3f073bf73d909a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vmargin-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vmargin-doc | grep -v \.src | grep texlive-vmargin-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vmargin-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vmargin-doc + CHECK_RESULT $? 0 0 "install texlive-vmargin-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vmargin-doc + CHECK_RESULT $? 0 0 "remove texlive-vmargin-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vmargin.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vmargin.sh new file mode 100644 index 0000000000000000000000000000000000000000..d736c060a5ea737b86d26395947dc3f471727ad6 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vmargin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vmargin | grep -v \.src | grep texlive-vmargin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vmargin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vmargin + CHECK_RESULT $? 0 0 "install texlive-vmargin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vmargin + CHECK_RESULT $? 0 0 "remove texlive-vmargin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vntex-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vntex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..52a0d61f6f73165846d0bb425f86d39b34a2b454 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vntex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vntex-doc | grep -v \.src | grep texlive-vntex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vntex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vntex-doc + CHECK_RESULT $? 0 0 "install texlive-vntex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vntex-doc + CHECK_RESULT $? 0 0 "remove texlive-vntex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vntex.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vntex.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3193c97318f6a232be5b0668eba08900d4fbed5 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vntex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vntex | grep -v \.src | grep texlive-vntex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vntex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vntex + CHECK_RESULT $? 0 0 "install texlive-vntex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vntex + CHECK_RESULT $? 0 0 "remove texlive-vntex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vocaltract-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vocaltract-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4abe47fc0d042aaec3f32875dc0fee3c4987d48 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vocaltract-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vocaltract-doc | grep -v \.src | grep texlive-vocaltract-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vocaltract-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vocaltract-doc + CHECK_RESULT $? 0 0 "install texlive-vocaltract-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vocaltract-doc + CHECK_RESULT $? 0 0 "remove texlive-vocaltract-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vocaltract.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vocaltract.sh new file mode 100644 index 0000000000000000000000000000000000000000..401dc4b255b713ac1ee162ac1a15919638680f1e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vocaltract.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vocaltract | grep -v \.src | grep texlive-vocaltract + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vocaltract" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vocaltract + CHECK_RESULT $? 0 0 "install texlive-vocaltract failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vocaltract + CHECK_RESULT $? 0 0 "remove texlive-vocaltract failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-volumes-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-volumes-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..62002b2c290d222e62dcb10be39074d64e97b5ba --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-volumes-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-volumes-doc | grep -v \.src | grep texlive-volumes-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-volumes-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-volumes-doc + CHECK_RESULT $? 0 0 "install texlive-volumes-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-volumes-doc + CHECK_RESULT $? 0 0 "remove texlive-volumes-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-volumes.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-volumes.sh new file mode 100644 index 0000000000000000000000000000000000000000..d87ea40e8a954a31879252c3e84eaaacbd770fd3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-volumes.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-volumes | grep -v \.src | grep texlive-volumes + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-volumes" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-volumes + CHECK_RESULT $? 0 0 "install texlive-volumes failed" + SLEEP_WAIT 1 + dnf remove -y texlive-volumes + CHECK_RESULT $? 0 0 "remove texlive-volumes failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-voss-mathcol-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-voss-mathcol-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..361d3978d49c0620c66528ad4adbccc9f830ecad --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-voss-mathcol-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-voss-mathcol-doc | grep -v \.src | grep texlive-voss-mathcol-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-voss-mathcol-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-voss-mathcol-doc + CHECK_RESULT $? 0 0 "install texlive-voss-mathcol-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-voss-mathcol-doc + CHECK_RESULT $? 0 0 "remove texlive-voss-mathcol-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vruler-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vruler-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..35402b209451bbf95ac709b37374e11775df4203 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vruler-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vruler-doc | grep -v \.src | grep texlive-vruler-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vruler-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vruler-doc + CHECK_RESULT $? 0 0 "install texlive-vruler-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vruler-doc + CHECK_RESULT $? 0 0 "remove texlive-vruler-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vruler.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vruler.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a4ace77ce1fccc9136734a8369e19276caf09fb --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vruler.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vruler | grep -v \.src | grep texlive-vruler + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vruler" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vruler + CHECK_RESULT $? 0 0 "install texlive-vruler failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vruler + CHECK_RESULT $? 0 0 "remove texlive-vruler failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vwcol-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vwcol-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..815d01ebf3251d61296fc6b7a26af8661586af6d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vwcol-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vwcol-doc | grep -v \.src | grep texlive-vwcol-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vwcol-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vwcol-doc + CHECK_RESULT $? 0 0 "install texlive-vwcol-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vwcol-doc + CHECK_RESULT $? 0 0 "remove texlive-vwcol-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vwcol.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vwcol.sh new file mode 100644 index 0000000000000000000000000000000000000000..96025155a8a4a71e756dd8c73e0681a5b522ff66 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-vwcol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vwcol | grep -v \.src | grep texlive-vwcol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vwcol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vwcol + CHECK_RESULT $? 0 0 "install texlive-vwcol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vwcol + CHECK_RESULT $? 0 0 "remove texlive-vwcol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wadalab-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wadalab-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b037ce3eec39f0ed14f21e51e0949ec55c830a6a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wadalab-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wadalab-doc | grep -v \.src | grep texlive-wadalab-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wadalab-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wadalab-doc + CHECK_RESULT $? 0 0 "install texlive-wadalab-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wadalab-doc + CHECK_RESULT $? 0 0 "remove texlive-wadalab-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wadalab.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wadalab.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b677fb29daf9cb18da0f2fb34b65f8989b48da5 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wadalab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wadalab | grep -v \.src | grep texlive-wadalab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wadalab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wadalab + CHECK_RESULT $? 0 0 "install texlive-wadalab failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wadalab + CHECK_RESULT $? 0 0 "remove texlive-wadalab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wallcalendar.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wallcalendar.sh new file mode 100644 index 0000000000000000000000000000000000000000..57b800a4afc433048d42a0b0f9e5cb778c19500b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wallcalendar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wallcalendar | grep -v \.src | grep texlive-wallcalendar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wallcalendar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wallcalendar + CHECK_RESULT $? 0 0 "install texlive-wallcalendar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wallcalendar + CHECK_RESULT $? 0 0 "remove texlive-wallcalendar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wallpaper-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wallpaper-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b35d4129c4a4919cfe12d0f1463c291f96153df4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wallpaper-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wallpaper-doc | grep -v \.src | grep texlive-wallpaper-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wallpaper-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wallpaper-doc + CHECK_RESULT $? 0 0 "install texlive-wallpaper-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wallpaper-doc + CHECK_RESULT $? 0 0 "remove texlive-wallpaper-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wallpaper.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wallpaper.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ef0ec09a6acbbeb18b10ab4802f13cae2aa0051 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wallpaper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wallpaper | grep -v \.src | grep texlive-wallpaper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wallpaper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wallpaper + CHECK_RESULT $? 0 0 "install texlive-wallpaper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wallpaper + CHECK_RESULT $? 0 0 "remove texlive-wallpaper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warning-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warning-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..619ed5bdf068ac4a72bd949a49a717e714a21739 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warning-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-warning-doc | grep -v \.src | grep texlive-warning-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-warning-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-warning-doc + CHECK_RESULT $? 0 0 "install texlive-warning-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-warning-doc + CHECK_RESULT $? 0 0 "remove texlive-warning-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warning.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warning.sh new file mode 100644 index 0000000000000000000000000000000000000000..8216376a99ed94978d9fc78c81c2cc18c1fd8e2e --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warning.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-warning | grep -v \.src | grep texlive-warning + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-warning" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-warning + CHECK_RESULT $? 0 0 "install texlive-warning failed" + SLEEP_WAIT 1 + dnf remove -y texlive-warning + CHECK_RESULT $? 0 0 "remove texlive-warning failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warpcol-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warpcol-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..264bf557fe0b7acca4eeb1bf974145fb6162a678 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warpcol-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-warpcol-doc | grep -v \.src | grep texlive-warpcol-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-warpcol-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-warpcol-doc + CHECK_RESULT $? 0 0 "install texlive-warpcol-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-warpcol-doc + CHECK_RESULT $? 0 0 "remove texlive-warpcol-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warpcol.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warpcol.sh new file mode 100644 index 0000000000000000000000000000000000000000..df109e73c52ef2cb0b96b0056bda5481b43111f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-warpcol.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-warpcol | grep -v \.src | grep texlive-warpcol + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-warpcol" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-warpcol + CHECK_RESULT $? 0 0 "install texlive-warpcol failed" + SLEEP_WAIT 1 + dnf remove -y texlive-warpcol + CHECK_RESULT $? 0 0 "remove texlive-warpcol failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-was-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-was-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..710f8151ab49c054001c96a1cdf7d1a22a93112c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-was-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-was-doc | grep -v \.src | grep texlive-was-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-was-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-was-doc + CHECK_RESULT $? 0 0 "install texlive-was-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-was-doc + CHECK_RESULT $? 0 0 "remove texlive-was-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-was.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-was.sh new file mode 100644 index 0000000000000000000000000000000000000000..85773f9555fde2ca8071599eb4fd77f0fe0e29c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-was.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-was | grep -v \.src | grep texlive-was + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-was" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-was + CHECK_RESULT $? 0 0 "install texlive-was failed" + SLEEP_WAIT 1 + dnf remove -y texlive-was + CHECK_RESULT $? 0 0 "remove texlive-was failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..88da5e4d21d72620d28a40f117b96408d0cdc9ca --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wasy-doc | grep -v \.src | grep texlive-wasy-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wasy-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wasy-doc + CHECK_RESULT $? 0 0 "install texlive-wasy-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wasy-doc + CHECK_RESULT $? 0 0 "remove texlive-wasy-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy-type1.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy-type1.sh new file mode 100644 index 0000000000000000000000000000000000000000..45ade6087d66f32d0d9fdb3a1dab2b5a6b9ea9cf --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy-type1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wasy-type1 | grep -v \.src | grep texlive-wasy-type1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wasy-type1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wasy-type1 + CHECK_RESULT $? 0 0 "install texlive-wasy-type1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wasy-type1 + CHECK_RESULT $? 0 0 "remove texlive-wasy-type1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy.sh new file mode 100644 index 0000000000000000000000000000000000000000..e92afb011b6414c048fad6900aac869acde24d13 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wasy | grep -v \.src | grep texlive-wasy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wasy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wasy + CHECK_RESULT $? 0 0 "install texlive-wasy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wasy + CHECK_RESULT $? 0 0 "remove texlive-wasy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy2-ps-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy2-ps-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb4d925427a4abdc15ce6db255f81d939fae16c9 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy2-ps-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wasy2-ps-doc | grep -v \.src | grep texlive-wasy2-ps-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wasy2-ps-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wasy2-ps-doc + CHECK_RESULT $? 0 0 "install texlive-wasy2-ps-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wasy2-ps-doc + CHECK_RESULT $? 0 0 "remove texlive-wasy2-ps-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy2-ps.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy2-ps.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f3e34862b7841e8e71a44d83c1ca8e6b65598d2 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasy2-ps.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wasy2-ps | grep -v \.src | grep texlive-wasy2-ps + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wasy2-ps" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wasy2-ps + CHECK_RESULT $? 0 0 "install texlive-wasy2-ps failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wasy2-ps + CHECK_RESULT $? 0 0 "remove texlive-wasy2-ps failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasysym-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasysym-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8648c205555b6bca842d13d2edbb21ad4c0bb234 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasysym-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wasysym-doc | grep -v \.src | grep texlive-wasysym-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wasysym-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wasysym-doc + CHECK_RESULT $? 0 0 "install texlive-wasysym-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wasysym-doc + CHECK_RESULT $? 0 0 "remove texlive-wasysym-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasysym.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasysym.sh new file mode 100644 index 0000000000000000000000000000000000000000..70617b27e3cc7cd4679181ece3a9f43d4b19d667 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wasysym.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wasysym | grep -v \.src | grep texlive-wasysym + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wasysym" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wasysym + CHECK_RESULT $? 0 0 "install texlive-wasysym failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wasysym + CHECK_RESULT $? 0 0 "remove texlive-wasysym failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-webguide-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-webguide-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f387700f954a6de93c7025bb79a512b8a248eae3 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-webguide-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-webguide-doc | grep -v \.src | grep texlive-webguide-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-webguide-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-webguide-doc + CHECK_RESULT $? 0 0 "install texlive-webguide-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-webguide-doc + CHECK_RESULT $? 0 0 "remove texlive-webguide-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-widetable-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-widetable-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9821950ae637561bc9e315cf14502e97638ac1b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-widetable-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-widetable-doc | grep -v \.src | grep texlive-widetable-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-widetable-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-widetable-doc + CHECK_RESULT $? 0 0 "install texlive-widetable-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-widetable-doc + CHECK_RESULT $? 0 0 "remove texlive-widetable-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-widetable.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-widetable.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9b8c2fd9cab566bc546232fa170f42c31e9bb7a --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-widetable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-widetable | grep -v \.src | grep texlive-widetable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-widetable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-widetable + CHECK_RESULT $? 0 0 "install texlive-widetable failed" + SLEEP_WAIT 1 + dnf remove -y texlive-widetable + CHECK_RESULT $? 0 0 "remove texlive-widetable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-williams-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-williams-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc1e63c2c3a0daa9d56cc6fa24f204cf80819619 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-williams-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-williams-doc | grep -v \.src | grep texlive-williams-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-williams-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-williams-doc + CHECK_RESULT $? 0 0 "install texlive-williams-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-williams-doc + CHECK_RESULT $? 0 0 "remove texlive-williams-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-williams.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-williams.sh new file mode 100644 index 0000000000000000000000000000000000000000..6418a94b12222dc876ea82a26b3847bdecffa99d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-williams.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-williams | grep -v \.src | grep texlive-williams + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-williams" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-williams + CHECK_RESULT $? 0 0 "install texlive-williams failed" + SLEEP_WAIT 1 + dnf remove -y texlive-williams + CHECK_RESULT $? 0 0 "remove texlive-williams failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-willowtreebook.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-willowtreebook.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d55aee663548748704bbc21eb0a42e072fc1852 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-willowtreebook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-willowtreebook | grep -v \.src | grep texlive-willowtreebook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-willowtreebook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-willowtreebook + CHECK_RESULT $? 0 0 "install texlive-willowtreebook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-willowtreebook + CHECK_RESULT $? 0 0 "remove texlive-willowtreebook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-withargs-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-withargs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..de766f051d47f048b6892c7f1164e320d6463de4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-withargs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-withargs-doc | grep -v \.src | grep texlive-withargs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-withargs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-withargs-doc + CHECK_RESULT $? 0 0 "install texlive-withargs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-withargs-doc + CHECK_RESULT $? 0 0 "remove texlive-withargs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-withargs.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-withargs.sh new file mode 100644 index 0000000000000000000000000000000000000000..019f501c7f58baef88e675cbb7cea617a5818b50 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-withargs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-withargs | grep -v \.src | grep texlive-withargs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-withargs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-withargs + CHECK_RESULT $? 0 0 "install texlive-withargs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-withargs + CHECK_RESULT $? 0 0 "remove texlive-withargs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-witharrows.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-witharrows.sh new file mode 100644 index 0000000000000000000000000000000000000000..065e694c6406aaee1c0f9dbfda6082ce6b06e9b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-witharrows.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-witharrows | grep -v \.src | grep texlive-witharrows + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-witharrows" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-witharrows + CHECK_RESULT $? 0 0 "install texlive-witharrows failed" + SLEEP_WAIT 1 + dnf remove -y texlive-witharrows + CHECK_RESULT $? 0 0 "remove texlive-witharrows failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cc7ff08af261f04ce764f7fdbfcf9267a4a9d5b --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wnri-doc | grep -v \.src | grep texlive-wnri-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wnri-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wnri-doc + CHECK_RESULT $? 0 0 "install texlive-wnri-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wnri-doc + CHECK_RESULT $? 0 0 "remove texlive-wnri-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri-latex-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri-latex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..56d40993c983499de8129cb466982b9fef323890 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri-latex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wnri-latex-doc | grep -v \.src | grep texlive-wnri-latex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wnri-latex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wnri-latex-doc + CHECK_RESULT $? 0 0 "install texlive-wnri-latex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wnri-latex-doc + CHECK_RESULT $? 0 0 "remove texlive-wnri-latex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri-latex.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri-latex.sh new file mode 100644 index 0000000000000000000000000000000000000000..d407ff9032ea2f9177f34c66a80f34b2ce9b0b61 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri-latex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wnri-latex | grep -v \.src | grep texlive-wnri-latex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wnri-latex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wnri-latex + CHECK_RESULT $? 0 0 "install texlive-wnri-latex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wnri-latex + CHECK_RESULT $? 0 0 "remove texlive-wnri-latex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri.sh new file mode 100644 index 0000000000000000000000000000000000000000..e00f7934546530546cc99bef8fe4c0048aa13dc0 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wnri.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wnri | grep -v \.src | grep texlive-wnri + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wnri" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wnri + CHECK_RESULT $? 0 0 "install texlive-wnri failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wnri + CHECK_RESULT $? 0 0 "remove texlive-wnri failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wordlike-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wordlike-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..56ee3d1599884c0f60f029ed2b755b863a41dbea --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wordlike-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wordlike-doc | grep -v \.src | grep texlive-wordlike-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wordlike-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wordlike-doc + CHECK_RESULT $? 0 0 "install texlive-wordlike-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wordlike-doc + CHECK_RESULT $? 0 0 "remove texlive-wordlike-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wordlike.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wordlike.sh new file mode 100644 index 0000000000000000000000000000000000000000..907a1fc558d61697e1fa674fe31a29193dfd1a14 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wordlike.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wordlike | grep -v \.src | grep texlive-wordlike + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wordlike" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wordlike + CHECK_RESULT $? 0 0 "install texlive-wordlike failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wordlike + CHECK_RESULT $? 0 0 "remove texlive-wordlike failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wrapfig-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wrapfig-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..04c2a1d7f389345f9e83f5b9c3c034bb36a8564d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wrapfig-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wrapfig-doc | grep -v \.src | grep texlive-wrapfig-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wrapfig-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wrapfig-doc + CHECK_RESULT $? 0 0 "install texlive-wrapfig-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wrapfig-doc + CHECK_RESULT $? 0 0 "remove texlive-wrapfig-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wrapfig.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wrapfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5dd8ff741ef3ec3b2677a9a87e72dce9d6d0b59 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wrapfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wrapfig | grep -v \.src | grep texlive-wrapfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wrapfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wrapfig + CHECK_RESULT $? 0 0 "install texlive-wrapfig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wrapfig + CHECK_RESULT $? 0 0 "remove texlive-wrapfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wsemclassic-doc.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wsemclassic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e74ba33d8195267fd06b5c3913eadbbc2d8f8763 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wsemclassic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wsemclassic-doc | grep -v \.src | grep texlive-wsemclassic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wsemclassic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wsemclassic-doc + CHECK_RESULT $? 0 0 "install texlive-wsemclassic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wsemclassic-doc + CHECK_RESULT $? 0 0 "remove texlive-wsemclassic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wsemclassic.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wsemclassic.sh new file mode 100644 index 0000000000000000000000000000000000000000..69d18bc6d2e545eaba686a1a9f7e7153395028e1 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wsemclassic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wsemclassic | grep -v \.src | grep texlive-wsemclassic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wsemclassic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wsemclassic + CHECK_RESULT $? 0 0 "install texlive-wsemclassic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wsemclassic + CHECK_RESULT $? 0 0 "remove texlive-wsemclassic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wtref.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wtref.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fb92c7a3efcc61410a08bd3f5c083a6807a7558 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-wtref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-wtref | grep -v \.src | grep texlive-wtref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-wtref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-wtref + CHECK_RESULT $? 0 0 "install texlive-wtref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-wtref + CHECK_RESULT $? 0 0 "remove texlive-wtref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-xecyrmongolian.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-xecyrmongolian.sh new file mode 100644 index 0000000000000000000000000000000000000000..25417a71aab860d98ada14d3723de1a4dba258d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-xecyrmongolian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xecyrmongolian | grep -v \.src | grep texlive-xecyrmongolian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xecyrmongolian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xecyrmongolian + CHECK_RESULT $? 0 0 "install texlive-xecyrmongolian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xecyrmongolian + CHECK_RESULT $? 0 0 "remove texlive-xecyrmongolian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-xepersian-hm.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-xepersian-hm.sh new file mode 100644 index 0000000000000000000000000000000000000000..9602e047374aae81f701a4c604a843e4f59cb079 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-xepersian-hm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xepersian-hm | grep -v \.src | grep texlive-xepersian-hm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xepersian-hm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xepersian-hm + CHECK_RESULT $? 0 0 "install texlive-xepersian-hm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xepersian-hm + CHECK_RESULT $? 0 0 "remove texlive-xepersian-hm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-xkcdcolors.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-xkcdcolors.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c4d22c2c20745760bc37e2f93625aa810f1f219 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-xkcdcolors.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xkcdcolors | grep -v \.src | grep texlive-xkcdcolors + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xkcdcolors" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xkcdcolors + CHECK_RESULT $? 0 0 "install texlive-xkcdcolors failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xkcdcolors + CHECK_RESULT $? 0 0 "remove texlive-xkcdcolors failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-yazd-thesis.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-yazd-thesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e7c163a18371745d76f6b9a25d17a11450a5b59 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-yazd-thesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yazd-thesis | grep -v \.src | grep texlive-yazd-thesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yazd-thesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yazd-thesis + CHECK_RESULT $? 0 0 "install texlive-yazd-thesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yazd-thesis + CHECK_RESULT $? 0 0 "remove texlive-yazd-thesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-yquant.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-yquant.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bf005608ad73688e6c4686dfac6459e81403d7d --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-yquant.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yquant | grep -v \.src | grep texlive-yquant + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yquant" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yquant + CHECK_RESULT $? 0 0 "install texlive-yquant failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yquant + CHECK_RESULT $? 0 0 "remove texlive-yquant failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-zhlineskip.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-zhlineskip.sh new file mode 100644 index 0000000000000000000000000000000000000000..1066f5170653ccedc5468a8f3b0296a46b2010c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-zhlineskip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zhlineskip | grep -v \.src | grep texlive-zhlineskip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zhlineskip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zhlineskip + CHECK_RESULT $? 0 0 "install texlive-zhlineskip failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zhlineskip + CHECK_RESULT $? 0 0 "remove texlive-zhlineskip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-zref.sh b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-zref.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5c386a39d01ec030b86fc033d3c81f8b125991c --- /dev/null +++ b/testcases/cli-test/texlive-split-y/oe_test_texlive-split-y_install_and_remove_texlive-zref.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-y +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zref | grep -v \.src | grep texlive-zref + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zref" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zref + CHECK_RESULT $? 0 0 "install texlive-zref failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zref + CHECK_RESULT $? 0 0 "remove texlive-zref failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-accents.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-accents.sh new file mode 100644 index 0000000000000000000000000000000000000000..0523daf5510a1269c7aa9bcfb0a4e60074b50181 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-accents.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-accents | grep -v \.src | grep texlive-accents + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-accents" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-accents + CHECK_RESULT $? 0 0 "install texlive-accents failed" + SLEEP_WAIT 1 + dnf remove -y texlive-accents + CHECK_RESULT $? 0 0 "remove texlive-accents failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-addliga.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-addliga.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f5f4fd2af6f1e8fb47254bcb9ccdee9929c8701 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-addliga.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-addliga | grep -v \.src | grep texlive-addliga + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-addliga" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-addliga + CHECK_RESULT $? 0 0 "install texlive-addliga failed" + SLEEP_WAIT 1 + dnf remove -y texlive-addliga + CHECK_RESULT $? 0 0 "remove texlive-addliga failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-almendra.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-almendra.sh new file mode 100644 index 0000000000000000000000000000000000000000..e77c75f3424263efa581b5e994d4b27f53b964f4 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-almendra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-almendra | grep -v \.src | grep texlive-almendra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-almendra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-almendra + CHECK_RESULT $? 0 0 "install texlive-almendra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-almendra + CHECK_RESULT $? 0 0 "remove texlive-almendra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-alpha-persian.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-alpha-persian.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cf0a0ecf5ccf17fbd6c03495cbc011620549d13 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-alpha-persian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-alpha-persian | grep -v \.src | grep texlive-alpha-persian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-alpha-persian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-alpha-persian + CHECK_RESULT $? 0 0 "install texlive-alpha-persian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-alpha-persian + CHECK_RESULT $? 0 0 "remove texlive-alpha-persian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-amscdx.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-amscdx.sh new file mode 100644 index 0000000000000000000000000000000000000000..318e27c25caf546f5b5ded809accbae6701ba5e5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-amscdx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-amscdx | grep -v \.src | grep texlive-amscdx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-amscdx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-amscdx + CHECK_RESULT $? 0 0 "install texlive-amscdx failed" + SLEEP_WAIT 1 + dnf remove -y texlive-amscdx + CHECK_RESULT $? 0 0 "remove texlive-amscdx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-apprendre-a-programmer-en-tex.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-apprendre-a-programmer-en-tex.sh new file mode 100644 index 0000000000000000000000000000000000000000..8004834693c8bf5a391e835b3e1ad6249d9e2fb3 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-apprendre-a-programmer-en-tex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-apprendre-a-programmer-en-tex | grep -v \.src | grep texlive-apprendre-a-programmer-en-tex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-apprendre-a-programmer-en-tex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-apprendre-a-programmer-en-tex + CHECK_RESULT $? 0 0 "install texlive-apprendre-a-programmer-en-tex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-apprendre-a-programmer-en-tex + CHECK_RESULT $? 0 0 "remove texlive-apprendre-a-programmer-en-tex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-arabicfront.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-arabicfront.sh new file mode 100644 index 0000000000000000000000000000000000000000..eeaa4b3bd2ffb69e9afb0e7df5e42b154642b6df --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-arabicfront.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arabicfront | grep -v \.src | grep texlive-arabicfront + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arabicfront" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arabicfront + CHECK_RESULT $? 0 0 "install texlive-arabicfront failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arabicfront + CHECK_RESULT $? 0 0 "remove texlive-arabicfront failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-arraycols.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-arraycols.sh new file mode 100644 index 0000000000000000000000000000000000000000..116a02e0c76f2e938d2748fff5629b1d81777159 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-arraycols.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-arraycols | grep -v \.src | grep texlive-arraycols + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-arraycols" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-arraycols + CHECK_RESULT $? 0 0 "install texlive-arraycols failed" + SLEEP_WAIT 1 + dnf remove -y texlive-arraycols + CHECK_RESULT $? 0 0 "remove texlive-arraycols failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-asmeconf.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-asmeconf.sh new file mode 100644 index 0000000000000000000000000000000000000000..c35faabd228eb983ef1aeeaeaf0a07cd3a933a45 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-asmeconf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-asmeconf | grep -v \.src | grep texlive-asmeconf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-asmeconf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-asmeconf + CHECK_RESULT $? 0 0 "install texlive-asmeconf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-asmeconf + CHECK_RESULT $? 0 0 "remove texlive-asmeconf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-asmejour.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-asmejour.sh new file mode 100644 index 0000000000000000000000000000000000000000..866a10cd32b7bb500176a5886fd6d146802edeb8 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-asmejour.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-asmejour | grep -v \.src | grep texlive-asmejour + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-asmejour" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-asmejour + CHECK_RESULT $? 0 0 "install texlive-asmejour failed" + SLEEP_WAIT 1 + dnf remove -y texlive-asmejour + CHECK_RESULT $? 0 0 "remove texlive-asmejour failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamer-rl.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamer-rl.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c0d259d5095f916a14b44fb8776ba8a69cd679e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamer-rl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-beamer-rl | grep -v \.src | grep texlive-beamer-rl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-beamer-rl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-beamer-rl + CHECK_RESULT $? 0 0 "install texlive-beamer-rl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-beamer-rl + CHECK_RESULT $? 0 0 "remove texlive-beamer-rl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamerauxtheme.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamerauxtheme.sh new file mode 100644 index 0000000000000000000000000000000000000000..a441568e77250275370c88296cd3b4122f19bb0d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamerauxtheme.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-beamerauxtheme | grep -v \.src | grep texlive-beamerauxtheme + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-beamerauxtheme" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-beamerauxtheme + CHECK_RESULT $? 0 0 "install texlive-beamerauxtheme failed" + SLEEP_WAIT 1 + dnf remove -y texlive-beamerauxtheme + CHECK_RESULT $? 0 0 "remove texlive-beamerauxtheme failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamertheme-light.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamertheme-light.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e21122a52b6bf317c9135065259d0ae2d021e73 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamertheme-light.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-beamertheme-light | grep -v \.src | grep texlive-beamertheme-light + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-beamertheme-light" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-beamertheme-light + CHECK_RESULT $? 0 0 "install texlive-beamertheme-light failed" + SLEEP_WAIT 1 + dnf remove -y texlive-beamertheme-light + CHECK_RESULT $? 0 0 "remove texlive-beamertheme-light failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamertheme-npbt.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamertheme-npbt.sh new file mode 100644 index 0000000000000000000000000000000000000000..806f370a6fe2e12a554740f0e7dd68be0becd2b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-beamertheme-npbt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-beamertheme-npbt | grep -v \.src | grep texlive-beamertheme-npbt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-beamertheme-npbt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-beamertheme-npbt + CHECK_RESULT $? 0 0 "install texlive-beamertheme-npbt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-beamertheme-npbt + CHECK_RESULT $? 0 0 "remove texlive-beamertheme-npbt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-biblatex-bath.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-biblatex-bath.sh new file mode 100644 index 0000000000000000000000000000000000000000..098ff65da66a3837b0efcdbf8ab5e2c09c66e782 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-biblatex-bath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex-bath | grep -v \.src | grep texlive-biblatex-bath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex-bath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex-bath + CHECK_RESULT $? 0 0 "install texlive-biblatex-bath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex-bath + CHECK_RESULT $? 0 0 "remove texlive-biblatex-bath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-biblatex-ext.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-biblatex-ext.sh new file mode 100644 index 0000000000000000000000000000000000000000..c85d04b49d4e10c9eb2b59c257c84f0cadbc7061 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-biblatex-ext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-biblatex-ext | grep -v \.src | grep texlive-biblatex-ext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-biblatex-ext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-biblatex-ext + CHECK_RESULT $? 0 0 "install texlive-biblatex-ext failed" + SLEEP_WAIT 1 + dnf remove -y texlive-biblatex-ext + CHECK_RESULT $? 0 0 "remove texlive-biblatex-ext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bitter.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bitter.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb409cd574ef4286d6e6a04c691d6848c20c5f8a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bitter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bitter | grep -v \.src | grep texlive-bitter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bitter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bitter + CHECK_RESULT $? 0 0 "install texlive-bitter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bitter + CHECK_RESULT $? 0 0 "remove texlive-bitter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-blowup-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-blowup-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a19d715649cf53b14c9cb9ca5cfa490119e3f42 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-blowup-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blowup-doc | grep -v \.src | grep texlive-blowup-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blowup-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blowup-doc + CHECK_RESULT $? 0 0 "install texlive-blowup-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blowup-doc + CHECK_RESULT $? 0 0 "remove texlive-blowup-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-blowup.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-blowup.sh new file mode 100644 index 0000000000000000000000000000000000000000..30e310ad6ebc09259450f3c49dd5d6d116540ec6 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-blowup.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-blowup | grep -v \.src | grep texlive-blowup + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-blowup" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-blowup + CHECK_RESULT $? 0 0 "install texlive-blowup failed" + SLEEP_WAIT 1 + dnf remove -y texlive-blowup + CHECK_RESULT $? 0 0 "remove texlive-blowup failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-brandeis-problemset.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-brandeis-problemset.sh new file mode 100644 index 0000000000000000000000000000000000000000..363f9b135018df5057850827c895ce936c1c8560 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-brandeis-problemset.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-brandeis-problemset | grep -v \.src | grep texlive-brandeis-problemset + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-brandeis-problemset" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-brandeis-problemset + CHECK_RESULT $? 0 0 "install texlive-brandeis-problemset failed" + SLEEP_WAIT 1 + dnf remove -y texlive-brandeis-problemset + CHECK_RESULT $? 0 0 "remove texlive-brandeis-problemset failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-businesscard-qrcode.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-businesscard-qrcode.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5c469ad9eadaddf33c65d5065c34fd194670f15 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-businesscard-qrcode.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-businesscard-qrcode | grep -v \.src | grep texlive-businesscard-qrcode + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-businesscard-qrcode" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-businesscard-qrcode + CHECK_RESULT $? 0 0 "install texlive-businesscard-qrcode failed" + SLEEP_WAIT 1 + dnf remove -y texlive-businesscard-qrcode + CHECK_RESULT $? 0 0 "remove texlive-businesscard-qrcode failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bussproofs-extra.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bussproofs-extra.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd0b671920e94db522cdaf4e633d47bc14f5dd63 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bussproofs-extra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bussproofs-extra | grep -v \.src | grep texlive-bussproofs-extra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bussproofs-extra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bussproofs-extra + CHECK_RESULT $? 0 0 "install texlive-bussproofs-extra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bussproofs-extra + CHECK_RESULT $? 0 0 "remove texlive-bussproofs-extra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bxjaholiday.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bxjaholiday.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dad5577b69f73f272fe16faf9a80ce3cb8cab47 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bxjaholiday.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxjaholiday | grep -v \.src | grep texlive-bxjaholiday + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxjaholiday" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxjaholiday + CHECK_RESULT $? 0 0 "install texlive-bxjaholiday failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxjaholiday + CHECK_RESULT $? 0 0 "remove texlive-bxjaholiday failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bxtexlogo.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bxtexlogo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4e3771c96613273573169bd0758b39b24dfc8fd --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bxtexlogo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxtexlogo | grep -v \.src | grep texlive-bxtexlogo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxtexlogo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxtexlogo + CHECK_RESULT $? 0 0 "install texlive-bxtexlogo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxtexlogo + CHECK_RESULT $? 0 0 "remove texlive-bxtexlogo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bxwareki.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bxwareki.sh new file mode 100644 index 0000000000000000000000000000000000000000..6588634d35906a8c1bf15d93313886eaaf1d287a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-bxwareki.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-bxwareki | grep -v \.src | grep texlive-bxwareki + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-bxwareki" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-bxwareki + CHECK_RESULT $? 0 0 "install texlive-bxwareki failed" + SLEEP_WAIT 1 + dnf remove -y texlive-bxwareki + CHECK_RESULT $? 0 0 "remove texlive-bxwareki failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-centeredline.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-centeredline.sh new file mode 100644 index 0000000000000000000000000000000000000000..65e61202d97a83d0d53a3a14dc85bd759a57ab92 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-centeredline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-centeredline | grep -v \.src | grep texlive-centeredline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-centeredline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-centeredline + CHECK_RESULT $? 0 0 "install texlive-centeredline failed" + SLEEP_WAIT 1 + dnf remove -y texlive-centeredline + CHECK_RESULT $? 0 0 "remove texlive-centeredline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-changelog.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-changelog.sh new file mode 100644 index 0000000000000000000000000000000000000000..226deda4b631bd16d2e70f2419f4d7c748534034 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-changelog.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-changelog | grep -v \.src | grep texlive-changelog + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-changelog" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-changelog + CHECK_RESULT $? 0 0 "install texlive-changelog failed" + SLEEP_WAIT 1 + dnf remove -y texlive-changelog + CHECK_RESULT $? 0 0 "remove texlive-changelog failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-checkend.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-checkend.sh new file mode 100644 index 0000000000000000000000000000000000000000..03ccdcc41ccda758df12766b1fe85f4afc018794 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-checkend.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-checkend | grep -v \.src | grep texlive-checkend + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-checkend" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-checkend + CHECK_RESULT $? 0 0 "install texlive-checkend failed" + SLEEP_WAIT 1 + dnf remove -y texlive-checkend + CHECK_RESULT $? 0 0 "remove texlive-checkend failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-chordbars.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-chordbars.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba0f6163ea5033878270fa2a7705acfc8edc453d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-chordbars.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chordbars | grep -v \.src | grep texlive-chordbars + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chordbars" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chordbars + CHECK_RESULT $? 0 0 "install texlive-chordbars failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chordbars + CHECK_RESULT $? 0 0 "remove texlive-chordbars failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-chordbox.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-chordbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ad12d962ec22e26b8cb059f2b95b97034041599 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-chordbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chordbox | grep -v \.src | grep texlive-chordbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chordbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chordbox + CHECK_RESULT $? 0 0 "install texlive-chordbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chordbox + CHECK_RESULT $? 0 0 "remove texlive-chordbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-chs-physics-report.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-chs-physics-report.sh new file mode 100644 index 0000000000000000000000000000000000000000..a762c0595dbab4e31e6b27de721ec84d19cdf0ba --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-chs-physics-report.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-chs-physics-report | grep -v \.src | grep texlive-chs-physics-report + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-chs-physics-report" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-chs-physics-report + CHECK_RESULT $? 0 0 "install texlive-chs-physics-report failed" + SLEEP_WAIT 1 + dnf remove -y texlive-chs-physics-report + CHECK_RESULT $? 0 0 "remove texlive-chs-physics-report failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-codeanatomy.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-codeanatomy.sh new file mode 100644 index 0000000000000000000000000000000000000000..d452ad20df34f6b305e8315c6cb1702a065e5bb8 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-codeanatomy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-codeanatomy | grep -v \.src | grep texlive-codeanatomy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-codeanatomy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-codeanatomy + CHECK_RESULT $? 0 0 "install texlive-codeanatomy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-codeanatomy + CHECK_RESULT $? 0 0 "remove texlive-codeanatomy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-coelacanth.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-coelacanth.sh new file mode 100644 index 0000000000000000000000000000000000000000..4204c9a940e52e9152023d260d17e364985194b9 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-coelacanth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-coelacanth | grep -v \.src | grep texlive-coelacanth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-coelacanth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-coelacanth + CHECK_RESULT $? 0 0 "install texlive-coelacanth failed" + SLEEP_WAIT 1 + dnf remove -y texlive-coelacanth + CHECK_RESULT $? 0 0 "remove texlive-coelacanth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-colophon.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-colophon.sh new file mode 100644 index 0000000000000000000000000000000000000000..a144d3f0c0367f190d1ff6aa57bac965c9d9c566 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-colophon.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colophon | grep -v \.src | grep texlive-colophon + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colophon" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colophon + CHECK_RESULT $? 0 0 "install texlive-colophon failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colophon + CHECK_RESULT $? 0 0 "remove texlive-colophon failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-colorprofiles.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-colorprofiles.sh new file mode 100644 index 0000000000000000000000000000000000000000..57318828ca579a3980e622ddbbe89a116b9b7e2e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-colorprofiles.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-colorprofiles | grep -v \.src | grep texlive-colorprofiles + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-colorprofiles" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-colorprofiles + CHECK_RESULT $? 0 0 "install texlive-colorprofiles failed" + SLEEP_WAIT 1 + dnf remove -y texlive-colorprofiles + CHECK_RESULT $? 0 0 "remove texlive-colorprofiles failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-commedit.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-commedit.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6d53780b43b89e4be81a36e3c59818f1305b655 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-commedit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-commedit | grep -v \.src | grep texlive-commedit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-commedit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-commedit + CHECK_RESULT $? 0 0 "install texlive-commedit failed" + SLEEP_WAIT 1 + dnf remove -y texlive-commedit + CHECK_RESULT $? 0 0 "remove texlive-commedit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-crimsonpro.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-crimsonpro.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bb146890f8f9ddaa8833436a139f27a1e83d6e1 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-crimsonpro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-crimsonpro | grep -v \.src | grep texlive-crimsonpro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-crimsonpro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-crimsonpro + CHECK_RESULT $? 0 0 "install texlive-crimsonpro failed" + SLEEP_WAIT 1 + dnf remove -y texlive-crimsonpro + CHECK_RESULT $? 0 0 "remove texlive-crimsonpro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-cuprum.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-cuprum.sh new file mode 100644 index 0000000000000000000000000000000000000000..45275fe5c88447e4054475b6c512e64f19bca12e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-cuprum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cuprum | grep -v \.src | grep texlive-cuprum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cuprum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cuprum + CHECK_RESULT $? 0 0 "install texlive-cuprum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cuprum + CHECK_RESULT $? 0 0 "remove texlive-cuprum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-cweb-old.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-cweb-old.sh new file mode 100644 index 0000000000000000000000000000000000000000..bff06db23369ca50c78d5a651f90714499df9775 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-cweb-old.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-cweb-old | grep -v \.src | grep texlive-cweb-old + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-cweb-old" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-cweb-old + CHECK_RESULT $? 0 0 "install texlive-cweb-old failed" + SLEEP_WAIT 1 + dnf remove -y texlive-cweb-old + CHECK_RESULT $? 0 0 "remove texlive-cweb-old failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-dehyph.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-dehyph.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ebc044742bca699dd83315a3cbe0b2efe47a088 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-dehyph.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dehyph | grep -v \.src | grep texlive-dehyph + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dehyph" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dehyph + CHECK_RESULT $? 0 0 "install texlive-dehyph failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dehyph + CHECK_RESULT $? 0 0 "remove texlive-dehyph failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-derivative.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-derivative.sh new file mode 100644 index 0000000000000000000000000000000000000000..69be73c4e821fceb01349897d7f58cacd8e84023 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-derivative.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-derivative | grep -v \.src | grep texlive-derivative + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-derivative" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-derivative + CHECK_RESULT $? 0 0 "install texlive-derivative failed" + SLEEP_WAIT 1 + dnf remove -y texlive-derivative + CHECK_RESULT $? 0 0 "remove texlive-derivative failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-dotlessi.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-dotlessi.sh new file mode 100644 index 0000000000000000000000000000000000000000..f83a80ce8a061499b690c97fd2ccd67e36e3d920 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-dotlessi.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-dotlessi | grep -v \.src | grep texlive-dotlessi + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-dotlessi" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-dotlessi + CHECK_RESULT $? 0 0 "install texlive-dotlessi failed" + SLEEP_WAIT 1 + dnf remove -y texlive-dotlessi + CHECK_RESULT $? 0 0 "remove texlive-dotlessi failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-duckuments.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-duckuments.sh new file mode 100644 index 0000000000000000000000000000000000000000..f83cef67910a1f907287a0fe3670f84163295751 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-duckuments.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-duckuments | grep -v \.src | grep texlive-duckuments + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-duckuments" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-duckuments + CHECK_RESULT $? 0 0 "install texlive-duckuments failed" + SLEEP_WAIT 1 + dnf remove -y texlive-duckuments + CHECK_RESULT $? 0 0 "remove texlive-duckuments failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ecothesis.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ecothesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..be01def921984207d2964feb5c741f4b72227010 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ecothesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ecothesis | grep -v \.src | grep texlive-ecothesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ecothesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ecothesis + CHECK_RESULT $? 0 0 "install texlive-ecothesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ecothesis + CHECK_RESULT $? 0 0 "remove texlive-ecothesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ehhline.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ehhline.sh new file mode 100644 index 0000000000000000000000000000000000000000..12d340957804704e88c07151c130453e836dfdb8 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ehhline.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ehhline | grep -v \.src | grep texlive-ehhline + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ehhline" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ehhline + CHECK_RESULT $? 0 0 "install texlive-ehhline failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ehhline + CHECK_RESULT $? 0 0 "remove texlive-ehhline failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-elegantbook.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-elegantbook.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0bef58c4cbaa16b47bada10357313dd6c0ca985 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-elegantbook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elegantbook | grep -v \.src | grep texlive-elegantbook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elegantbook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elegantbook + CHECK_RESULT $? 0 0 "install texlive-elegantbook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elegantbook + CHECK_RESULT $? 0 0 "remove texlive-elegantbook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-elegantnote.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-elegantnote.sh new file mode 100644 index 0000000000000000000000000000000000000000..3cc8f27365a71ff7539ee012b8d06eafaf13c43a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-elegantnote.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elegantnote | grep -v \.src | grep texlive-elegantnote + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elegantnote" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elegantnote + CHECK_RESULT $? 0 0 "install texlive-elegantnote failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elegantnote + CHECK_RESULT $? 0 0 "remove texlive-elegantnote failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-elegantpaper.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-elegantpaper.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c428e09d213f7292d7e5373d5b1fe76fd416e81 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-elegantpaper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-elegantpaper | grep -v \.src | grep texlive-elegantpaper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-elegantpaper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-elegantpaper + CHECK_RESULT $? 0 0 "install texlive-elegantpaper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-elegantpaper + CHECK_RESULT $? 0 0 "remove texlive-elegantpaper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-els-cas-templates.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-els-cas-templates.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae59dc2c90cb65197e6e84e95074fcbd70e296c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-els-cas-templates.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-els-cas-templates | grep -v \.src | grep texlive-els-cas-templates + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-els-cas-templates" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-els-cas-templates + CHECK_RESULT $? 0 0 "install texlive-els-cas-templates failed" + SLEEP_WAIT 1 + dnf remove -y texlive-els-cas-templates + CHECK_RESULT $? 0 0 "remove texlive-els-cas-templates failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-eqexpl.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-eqexpl.sh new file mode 100644 index 0000000000000000000000000000000000000000..0502299023a9105c4ca471eebaf114020a1ed62c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-eqexpl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-eqexpl | grep -v \.src | grep texlive-eqexpl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-eqexpl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-eqexpl + CHECK_RESULT $? 0 0 "install texlive-eqexpl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-eqexpl + CHECK_RESULT $? 0 0 "remove texlive-eqexpl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-euflag.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-euflag.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad966be01e79f59c2e2db44c0feaea80aa785317 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-euflag.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-euflag | grep -v \.src | grep texlive-euflag + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-euflag" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-euflag + CHECK_RESULT $? 0 0 "install texlive-euflag failed" + SLEEP_WAIT 1 + dnf remove -y texlive-euflag + CHECK_RESULT $? 0 0 "remove texlive-euflag failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-exam-randomizechoices.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-exam-randomizechoices.sh new file mode 100644 index 0000000000000000000000000000000000000000..d57cf72517d822ff2e9f005737aeb509a7bf7f99 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-exam-randomizechoices.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exam-randomizechoices | grep -v \.src | grep texlive-exam-randomizechoices + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exam-randomizechoices" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exam-randomizechoices + CHECK_RESULT $? 0 0 "install texlive-exam-randomizechoices failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exam-randomizechoices + CHECK_RESULT $? 0 0 "remove texlive-exam-randomizechoices failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-exercisepoints.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-exercisepoints.sh new file mode 100644 index 0000000000000000000000000000000000000000..19e27b936187c3ccbc7ea34998d786b3dea7bf53 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-exercisepoints.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exercisepoints | grep -v \.src | grep texlive-exercisepoints + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exercisepoints" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exercisepoints + CHECK_RESULT $? 0 0 "install texlive-exercisepoints failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exercisepoints + CHECK_RESULT $? 0 0 "remove texlive-exercisepoints failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-exframe.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-exframe.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a0116c237047b63dfb87dbed4820f6910372db0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-exframe.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-exframe | grep -v \.src | grep texlive-exframe + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-exframe" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-exframe + CHECK_RESULT $? 0 0 "install texlive-exframe failed" + SLEEP_WAIT 1 + dnf remove -y texlive-exframe + CHECK_RESULT $? 0 0 "remove texlive-exframe failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-facture-belge-simple-sans-tva.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-facture-belge-simple-sans-tva.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3557b7b82918bb44d484d6cfb93cba13ee2a8db --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-facture-belge-simple-sans-tva.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-facture-belge-simple-sans-tva | grep -v \.src | grep texlive-facture-belge-simple-sans-tva + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-facture-belge-simple-sans-tva" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-facture-belge-simple-sans-tva + CHECK_RESULT $? 0 0 "install texlive-facture-belge-simple-sans-tva failed" + SLEEP_WAIT 1 + dnf remove -y texlive-facture-belge-simple-sans-tva + CHECK_RESULT $? 0 0 "remove texlive-facture-belge-simple-sans-tva failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fancyhandout.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fancyhandout.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac2fbbcb7275075ecb01bef7e7e94cdf3cccde67 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fancyhandout.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fancyhandout | grep -v \.src | grep texlive-fancyhandout + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fancyhandout" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fancyhandout + CHECK_RESULT $? 0 0 "install texlive-fancyhandout failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fancyhandout + CHECK_RESULT $? 0 0 "remove texlive-fancyhandout failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fascicules.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fascicules.sh new file mode 100644 index 0000000000000000000000000000000000000000..afd61edd574a57d9bd428a92c478f7543600af15 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fascicules.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fascicules | grep -v \.src | grep texlive-fascicules + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fascicules" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fascicules + CHECK_RESULT $? 0 0 "install texlive-fascicules failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fascicules + CHECK_RESULT $? 0 0 "remove texlive-fascicules failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fbox.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..4dc498fce8035ceaa8381e5f2724f6c3c098469b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fbox | grep -v \.src | grep texlive-fbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fbox + CHECK_RESULT $? 0 0 "install texlive-fbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fbox + CHECK_RESULT $? 0 0 "remove texlive-fbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-firamath-otf.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-firamath-otf.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5a29d23b6f67bac1c5ea0ee37eee94fc60cd671 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-firamath-otf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-firamath-otf | grep -v \.src | grep texlive-firamath-otf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-firamath-otf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-firamath-otf + CHECK_RESULT $? 0 0 "install texlive-firamath-otf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-firamath-otf + CHECK_RESULT $? 0 0 "remove texlive-firamath-otf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-firamath.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-firamath.sh new file mode 100644 index 0000000000000000000000000000000000000000..55a2db1020aed717a872f62de31da4aaca79a3cd --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-firamath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-firamath | grep -v \.src | grep texlive-firamath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-firamath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-firamath + CHECK_RESULT $? 0 0 "install texlive-firamath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-firamath + CHECK_RESULT $? 0 0 "remove texlive-firamath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fiziko.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fiziko.sh new file mode 100644 index 0000000000000000000000000000000000000000..b95f3b05f160092e9acc15bc05ffa78173334d62 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-fiziko.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-fiziko | grep -v \.src | grep texlive-fiziko + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-fiziko" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-fiziko + CHECK_RESULT $? 0 0 "install texlive-fiziko failed" + SLEEP_WAIT 1 + dnf remove -y texlive-fiziko + CHECK_RESULT $? 0 0 "remove texlive-fiziko failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-forum.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-forum.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b17ba4ad682c4fadfc5a9987994bd6e0881ace0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-forum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-forum | grep -v \.src | grep texlive-forum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-forum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-forum + CHECK_RESULT $? 0 0 "install texlive-forum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-forum + CHECK_RESULT $? 0 0 "remove texlive-forum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ftc-notebook.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ftc-notebook.sh new file mode 100644 index 0000000000000000000000000000000000000000..b84fb21e04126cf728c1c5f11a66a7942151dfa0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ftc-notebook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ftc-notebook | grep -v \.src | grep texlive-ftc-notebook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ftc-notebook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ftc-notebook + CHECK_RESULT $? 0 0 "install texlive-ftc-notebook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ftc-notebook + CHECK_RESULT $? 0 0 "remove texlive-ftc-notebook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-gammas.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-gammas.sh new file mode 100644 index 0000000000000000000000000000000000000000..adb6fc265505793b43a1632e127418099c194086 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-gammas.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gammas | grep -v \.src | grep texlive-gammas + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gammas" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gammas + CHECK_RESULT $? 0 0 "install texlive-gammas failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gammas + CHECK_RESULT $? 0 0 "remove texlive-gammas failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-garamond-libre.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-garamond-libre.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbfefade5a08279b2809c7938f196313ba0d38a8 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-garamond-libre.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-garamond-libre | grep -v \.src | grep texlive-garamond-libre + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-garamond-libre" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-garamond-libre + CHECK_RESULT $? 0 0 "install texlive-garamond-libre failed" + SLEEP_WAIT 1 + dnf remove -y texlive-garamond-libre + CHECK_RESULT $? 0 0 "remove texlive-garamond-libre failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-garamond-math.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-garamond-math.sh new file mode 100644 index 0000000000000000000000000000000000000000..540c2e74a8a10cd7538e03248d2e7d166a65d8fd --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-garamond-math.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-garamond-math | grep -v \.src | grep texlive-garamond-math + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-garamond-math" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-garamond-math + CHECK_RESULT $? 0 0 "install texlive-garamond-math failed" + SLEEP_WAIT 1 + dnf remove -y texlive-garamond-math + CHECK_RESULT $? 0 0 "remove texlive-garamond-math failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-gitver.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-gitver.sh new file mode 100644 index 0000000000000000000000000000000000000000..7dcd550669a34b3583338a775c6e2b6e71c6114b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-gitver.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gitver | grep -v \.src | grep texlive-gitver + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gitver" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gitver + CHECK_RESULT $? 0 0 "install texlive-gitver failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gitver + CHECK_RESULT $? 0 0 "remove texlive-gitver failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-globalvals.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-globalvals.sh new file mode 100644 index 0000000000000000000000000000000000000000..33f0400edfc08eae527ed575ef6c2eddcdb93112 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-globalvals.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-globalvals | grep -v \.src | grep texlive-globalvals + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-globalvals" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-globalvals + CHECK_RESULT $? 0 0 "install texlive-globalvals failed" + SLEEP_WAIT 1 + dnf remove -y texlive-globalvals + CHECK_RESULT $? 0 0 "remove texlive-globalvals failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-glosmathtools.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-glosmathtools.sh new file mode 100644 index 0000000000000000000000000000000000000000..35f1f3f47675ea8ce8ed2fc33c422223d3d1ec72 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-glosmathtools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-glosmathtools | grep -v \.src | grep texlive-glosmathtools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-glosmathtools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-glosmathtools + CHECK_RESULT $? 0 0 "install texlive-glosmathtools failed" + SLEEP_WAIT 1 + dnf remove -y texlive-glosmathtools + CHECK_RESULT $? 0 0 "remove texlive-glosmathtools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-glossaries-estonian.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-glossaries-estonian.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1be34b0ba741dca9ae0734d583ffacb8a11cfbe --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-glossaries-estonian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-glossaries-estonian | grep -v \.src | grep texlive-glossaries-estonian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-glossaries-estonian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-glossaries-estonian + CHECK_RESULT $? 0 0 "install texlive-glossaries-estonian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-glossaries-estonian + CHECK_RESULT $? 0 0 "remove texlive-glossaries-estonian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-glossaries-slovene.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-glossaries-slovene.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3bae7e744049d5a5902f8e46bdc7ddd3c973096 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-glossaries-slovene.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-glossaries-slovene | grep -v \.src | grep texlive-glossaries-slovene + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-glossaries-slovene" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-glossaries-slovene + CHECK_RESULT $? 0 0 "install texlive-glossaries-slovene failed" + SLEEP_WAIT 1 + dnf remove -y texlive-glossaries-slovene + CHECK_RESULT $? 0 0 "remove texlive-glossaries-slovene failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-grabbox.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-grabbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c6746adf52f450a445b280c257b2cebf9182ede --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-grabbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-grabbox | grep -v \.src | grep texlive-grabbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-grabbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-grabbox + CHECK_RESULT $? 0 0 "install texlive-grabbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-grabbox + CHECK_RESULT $? 0 0 "remove texlive-grabbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-gridslides.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-gridslides.sh new file mode 100644 index 0000000000000000000000000000000000000000..37130b50fd92660f179ec30dcf240f7d5c1206fa --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-gridslides.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-gridslides | grep -v \.src | grep texlive-gridslides + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-gridslides" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-gridslides + CHECK_RESULT $? 0 0 "install texlive-gridslides failed" + SLEEP_WAIT 1 + dnf remove -y texlive-gridslides + CHECK_RESULT $? 0 0 "remove texlive-gridslides failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-guitartabs.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-guitartabs.sh new file mode 100644 index 0000000000000000000000000000000000000000..4606ee30a2bbf54be0da692c691deebeaa117906 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-guitartabs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-guitartabs | grep -v \.src | grep texlive-guitartabs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-guitartabs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-guitartabs + CHECK_RESULT $? 0 0 "install texlive-guitartabs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-guitartabs + CHECK_RESULT $? 0 0 "remove texlive-guitartabs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-hmtrump.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-hmtrump.sh new file mode 100644 index 0000000000000000000000000000000000000000..16793b9428aa34a7b2e14874160045d8c143b224 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-hmtrump.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hmtrump | grep -v \.src | grep texlive-hmtrump + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hmtrump" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hmtrump + CHECK_RESULT $? 0 0 "install texlive-hmtrump failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hmtrump + CHECK_RESULT $? 0 0 "remove texlive-hmtrump failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-hu-berlin-bundle.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-hu-berlin-bundle.sh new file mode 100644 index 0000000000000000000000000000000000000000..a575878345920365d861277c1f7d64cdfe45a37f --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-hu-berlin-bundle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-hu-berlin-bundle | grep -v \.src | grep texlive-hu-berlin-bundle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-hu-berlin-bundle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-hu-berlin-bundle + CHECK_RESULT $? 0 0 "install texlive-hu-berlin-bundle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-hu-berlin-bundle + CHECK_RESULT $? 0 0 "remove texlive-hu-berlin-bundle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-icite.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-icite.sh new file mode 100644 index 0000000000000000000000000000000000000000..88c23227fd766eedefaeeb9ee76eeee49a4665c3 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-icite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-icite | grep -v \.src | grep texlive-icite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-icite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-icite + CHECK_RESULT $? 0 0 "install texlive-icite failed" + SLEEP_WAIT 1 + dnf remove -y texlive-icite + CHECK_RESULT $? 0 0 "remove texlive-icite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-identkey.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-identkey.sh new file mode 100644 index 0000000000000000000000000000000000000000..a00dd9ccc87392c7da6fc8e9ec137c1e7b422b73 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-identkey.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-identkey | grep -v \.src | grep texlive-identkey + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-identkey" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-identkey + CHECK_RESULT $? 0 0 "install texlive-identkey failed" + SLEEP_WAIT 1 + dnf remove -y texlive-identkey + CHECK_RESULT $? 0 0 "remove texlive-identkey failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-inkpaper.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-inkpaper.sh new file mode 100644 index 0000000000000000000000000000000000000000..a80107e2af5617a5961531c62312093cd6518023 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-inkpaper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-inkpaper | grep -v \.src | grep texlive-inkpaper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-inkpaper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-inkpaper + CHECK_RESULT $? 0 0 "install texlive-inkpaper failed" + SLEEP_WAIT 1 + dnf remove -y texlive-inkpaper + CHECK_RESULT $? 0 0 "remove texlive-inkpaper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-inline-images.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-inline-images.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d8436244163fb94958659d51543c6c3f98dd1ab --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-inline-images.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-inline-images | grep -v \.src | grep texlive-inline-images + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-inline-images" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-inline-images + CHECK_RESULT $? 0 0 "install texlive-inline-images failed" + SLEEP_WAIT 1 + dnf remove -y texlive-inline-images + CHECK_RESULT $? 0 0 "remove texlive-inline-images failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-inriafonts.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-inriafonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f9e1efa94b76b5f391d377a6fa4b260509fbbaf --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-inriafonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-inriafonts | grep -v \.src | grep texlive-inriafonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-inriafonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-inriafonts + CHECK_RESULT $? 0 0 "install texlive-inriafonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-inriafonts + CHECK_RESULT $? 0 0 "remove texlive-inriafonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-invoice-class.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-invoice-class.sh new file mode 100644 index 0000000000000000000000000000000000000000..c98047bac5d46b49c4adcca166063e71787d299a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-invoice-class.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-invoice-class | grep -v \.src | grep texlive-invoice-class + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-invoice-class" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-invoice-class + CHECK_RESULT $? 0 0 "install texlive-invoice-class failed" + SLEEP_WAIT 1 + dnf remove -y texlive-invoice-class + CHECK_RESULT $? 0 0 "remove texlive-invoice-class failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-iodhbwm.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-iodhbwm.sh new file mode 100644 index 0000000000000000000000000000000000000000..b38eabced11379cebccfbf0fb9fe4f8592d08089 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-iodhbwm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-iodhbwm | grep -v \.src | grep texlive-iodhbwm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-iodhbwm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-iodhbwm + CHECK_RESULT $? 0 0 "install texlive-iodhbwm failed" + SLEEP_WAIT 1 + dnf remove -y texlive-iodhbwm + CHECK_RESULT $? 0 0 "remove texlive-iodhbwm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-jigsaw.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-jigsaw.sh new file mode 100644 index 0000000000000000000000000000000000000000..71784908275247c02a2bfad86316001886b86d81 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-jigsaw.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jigsaw | grep -v \.src | grep texlive-jigsaw + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jigsaw" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jigsaw + CHECK_RESULT $? 0 0 "install texlive-jigsaw failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jigsaw + CHECK_RESULT $? 0 0 "remove texlive-jigsaw failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-jkmath.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-jkmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c19e9052b5d2bdf6be5ddab91fab22f4c061979 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-jkmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-jkmath | grep -v \.src | grep texlive-jkmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-jkmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-jkmath + CHECK_RESULT $? 0 0 "install texlive-jkmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-jkmath + CHECK_RESULT $? 0 0 "remove texlive-jkmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-kalendarium.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-kalendarium.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed49c51a881c5ac01a6110543a20d4bcffd05aec --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-kalendarium.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kalendarium | grep -v \.src | grep texlive-kalendarium + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kalendarium" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kalendarium + CHECK_RESULT $? 0 0 "install texlive-kalendarium failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kalendarium + CHECK_RESULT $? 0 0 "remove texlive-kalendarium failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ketcindy.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ketcindy.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a11114aa55890d26373dfc6b81f9be8e856b484 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ketcindy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ketcindy | grep -v \.src | grep texlive-ketcindy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ketcindy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ketcindy + CHECK_RESULT $? 0 0 "install texlive-ketcindy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ketcindy + CHECK_RESULT $? 0 0 "remove texlive-ketcindy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-kvmap.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-kvmap.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e63c414dd404beb58acbf15582e0700d2dda99a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-kvmap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-kvmap | grep -v \.src | grep texlive-kvmap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-kvmap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-kvmap + CHECK_RESULT $? 0 0 "install texlive-kvmap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-kvmap + CHECK_RESULT $? 0 0 "remove texlive-kvmap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-l3backend.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-l3backend.sh new file mode 100644 index 0000000000000000000000000000000000000000..59bc87a90308f6da7a49f6ce8952bd6cd650d827 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-l3backend.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-l3backend | grep -v \.src | grep texlive-l3backend + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-l3backend" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-l3backend + CHECK_RESULT $? 0 0 "install texlive-l3backend failed" + SLEEP_WAIT 1 + dnf remove -y texlive-l3backend + CHECK_RESULT $? 0 0 "remove texlive-l3backend failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-labels4easylist.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-labels4easylist.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e1c0e2c1e6869316a1ec1262d902ffbe5c736b5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-labels4easylist.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-labels4easylist | grep -v \.src | grep texlive-labels4easylist + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-labels4easylist" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-labels4easylist + CHECK_RESULT $? 0 0 "install texlive-labels4easylist failed" + SLEEP_WAIT 1 + dnf remove -y texlive-labels4easylist + CHECK_RESULT $? 0 0 "remove texlive-labels4easylist failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-base-dev.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-base-dev.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f40bae4961d6c9d451b1c0d632f719f3155a835 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-base-dev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex-base-dev | grep -v \.src | grep texlive-latex-base-dev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex-base-dev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex-base-dev + CHECK_RESULT $? 0 0 "install texlive-latex-base-dev failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex-base-dev + CHECK_RESULT $? 0 0 "remove texlive-latex-base-dev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-bin-dev.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-bin-dev.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fd2a83c8950a14e637a3dd1d53afd07abfb24a8 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-bin-dev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex-bin-dev | grep -v \.src | grep texlive-latex-bin-dev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex-bin-dev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex-bin-dev + CHECK_RESULT $? 0 0 "install texlive-latex-bin-dev failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex-bin-dev + CHECK_RESULT $? 0 0 "remove texlive-latex-bin-dev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-graphics-dev.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-graphics-dev.sh new file mode 100644 index 0000000000000000000000000000000000000000..94e6eb44202a3d416f47375c0d03659e52a5f287 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-graphics-dev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex-graphics-dev | grep -v \.src | grep texlive-latex-graphics-dev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex-graphics-dev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex-graphics-dev + CHECK_RESULT $? 0 0 "install texlive-latex-graphics-dev failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex-graphics-dev + CHECK_RESULT $? 0 0 "remove texlive-latex-graphics-dev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-uni8.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-uni8.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f5017c0e44cf9c8fbfc92f3ce1c206a6e821532 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex-uni8.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex-uni8 | grep -v \.src | grep texlive-latex-uni8 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex-uni8" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex-uni8 + CHECK_RESULT $? 0 0 "install texlive-latex-uni8 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex-uni8 + CHECK_RESULT $? 0 0 "remove texlive-latex-uni8 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex4musicians.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex4musicians.sh new file mode 100644 index 0000000000000000000000000000000000000000..65322722ce276ccce91e9d75a40b707461a508d5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latex4musicians.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latex4musicians | grep -v \.src | grep texlive-latex4musicians + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latex4musicians" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latex4musicians + CHECK_RESULT $? 0 0 "install texlive-latex4musicians failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latex4musicians + CHECK_RESULT $? 0 0 "remove texlive-latex4musicians failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latexcolors.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latexcolors.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f72b8265c9db46c48fcdd5d16b513928ea97ce0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-latexcolors.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-latexcolors | grep -v \.src | grep texlive-latexcolors + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-latexcolors" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-latexcolors + CHECK_RESULT $? 0 0 "install texlive-latexcolors failed" + SLEEP_WAIT 1 + dnf remove -y texlive-latexcolors + CHECK_RESULT $? 0 0 "remove texlive-latexcolors failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-lectures.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-lectures.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a1ac26114f4be5fcebc6325c6f954c90fd87abb --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-lectures.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lectures | grep -v \.src | grep texlive-lectures + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lectures" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lectures + CHECK_RESULT $? 0 0 "install texlive-lectures failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lectures + CHECK_RESULT $? 0 0 "remove texlive-lectures failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-libertinus-fonts.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-libertinus-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..65f9edef85f5f423430cab1880e380b22bb94776 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-libertinus-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-libertinus-fonts | grep -v \.src | grep texlive-libertinus-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-libertinus-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-libertinus-fonts + CHECK_RESULT $? 0 0 "install texlive-libertinus-fonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-libertinus-fonts + CHECK_RESULT $? 0 0 "remove texlive-libertinus-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-libertinus-type1.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-libertinus-type1.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bdae4d192c247da65873165957df1aa0d1147bb --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-libertinus-type1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-libertinus-type1 | grep -v \.src | grep texlive-libertinus-type1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-libertinus-type1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-libertinus-type1 + CHECK_RESULT $? 0 0 "install texlive-libertinus-type1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-libertinus-type1 + CHECK_RESULT $? 0 0 "remove texlive-libertinus-type1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-librefranklin.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-librefranklin.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6966321766a3c05ddea45b0081725f3829721ac --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-librefranklin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-librefranklin | grep -v \.src | grep texlive-librefranklin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-librefranklin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-librefranklin + CHECK_RESULT $? 0 0 "install texlive-librefranklin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-librefranklin + CHECK_RESULT $? 0 0 "remove texlive-librefranklin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-linguisticspro.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-linguisticspro.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b591180b27727fc7811a721311f2f2694b431a5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-linguisticspro.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-linguisticspro | grep -v \.src | grep texlive-linguisticspro + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-linguisticspro" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-linguisticspro + CHECK_RESULT $? 0 0 "install texlive-linguisticspro failed" + SLEEP_WAIT 1 + dnf remove -y texlive-linguisticspro + CHECK_RESULT $? 0 0 "remove texlive-linguisticspro failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-lstfiracode.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-lstfiracode.sh new file mode 100644 index 0000000000000000000000000000000000000000..84708adff813560483e51e3b6e76a7d89c6f9925 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-lstfiracode.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-lstfiracode | grep -v \.src | grep texlive-lstfiracode + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-lstfiracode" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-lstfiracode + CHECK_RESULT $? 0 0 "install texlive-lstfiracode failed" + SLEEP_WAIT 1 + dnf remove -y texlive-lstfiracode + CHECK_RESULT $? 0 0 "remove texlive-lstfiracode failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ltxguidex.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ltxguidex.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8a8ac69d28f1add9e40c552a6a124fff2e39cb0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ltxguidex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ltxguidex | grep -v \.src | grep texlive-ltxguidex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ltxguidex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ltxguidex + CHECK_RESULT $? 0 0 "install texlive-ltxguidex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ltxguidex + CHECK_RESULT $? 0 0 "remove texlive-ltxguidex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-luaimageembed.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-luaimageembed.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ddc01f5a3616867c037a2bfc7fc55747dfab3b3 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-luaimageembed.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-luaimageembed | grep -v \.src | grep texlive-luaimageembed + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-luaimageembed" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-luaimageembed + CHECK_RESULT $? 0 0 "install texlive-luaimageembed failed" + SLEEP_WAIT 1 + dnf remove -y texlive-luaimageembed + CHECK_RESULT $? 0 0 "remove texlive-luaimageembed failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-luarandom.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-luarandom.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c4539b18c84741f9eb8709b17000332aa40342f --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-luarandom.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-luarandom | grep -v \.src | grep texlive-luarandom + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-luarandom" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-luarandom + CHECK_RESULT $? 0 0 "install texlive-luarandom failed" + SLEEP_WAIT 1 + dnf remove -y texlive-luarandom + CHECK_RESULT $? 0 0 "remove texlive-luarandom failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-makecookbook.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-makecookbook.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7f0cf9351f2e89c6e1099d3c12619168483fd4f --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-makecookbook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-makecookbook | grep -v \.src | grep texlive-makecookbook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-makecookbook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-makecookbook + CHECK_RESULT $? 0 0 "install texlive-makecookbook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-makecookbook + CHECK_RESULT $? 0 0 "remove texlive-makecookbook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-marcellus.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-marcellus.sh new file mode 100644 index 0000000000000000000000000000000000000000..41b3b3a71317f13b37d7279931873eab52856101 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-marcellus.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-marcellus | grep -v \.src | grep texlive-marcellus + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-marcellus" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-marcellus + CHECK_RESULT $? 0 0 "install texlive-marcellus failed" + SLEEP_WAIT 1 + dnf remove -y texlive-marcellus + CHECK_RESULT $? 0 0 "remove texlive-marcellus failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mathcommand.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mathcommand.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f937449d300c7358ab396e7ef18f2f024ea7e08 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mathcommand.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mathcommand | grep -v \.src | grep texlive-mathcommand + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mathcommand" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mathcommand + CHECK_RESULT $? 0 0 "install texlive-mathcommand failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mathcommand + CHECK_RESULT $? 0 0 "remove texlive-mathcommand failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-memorygraphs.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-memorygraphs.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d07677618df96ca69548a93199c3de42fe91c88 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-memorygraphs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-memorygraphs | grep -v \.src | grep texlive-memorygraphs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-memorygraphs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-memorygraphs + CHECK_RESULT $? 0 0 "install texlive-memorygraphs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-memorygraphs + CHECK_RESULT $? 0 0 "remove texlive-memorygraphs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-metalogox.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-metalogox.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f2c1daeb184c4df44ebabd0b3787f9772ef0b6a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-metalogox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-metalogox | grep -v \.src | grep texlive-metalogox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-metalogox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-metalogox + CHECK_RESULT $? 0 0 "install texlive-metalogox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-metalogox + CHECK_RESULT $? 0 0 "remove texlive-metalogox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-metapost-colorbrewer.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-metapost-colorbrewer.sh new file mode 100644 index 0000000000000000000000000000000000000000..1236dd7c07e31383cf6bc9a41369d98d3b1977c5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-metapost-colorbrewer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-metapost-colorbrewer | grep -v \.src | grep texlive-metapost-colorbrewer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-metapost-colorbrewer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-metapost-colorbrewer + CHECK_RESULT $? 0 0 "install texlive-metapost-colorbrewer failed" + SLEEP_WAIT 1 + dnf remove -y texlive-metapost-colorbrewer + CHECK_RESULT $? 0 0 "remove texlive-metapost-colorbrewer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mi-solns.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mi-solns.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e3e7fc61c3bce2198f719b9907ce8f8caa90d7e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mi-solns.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mi-solns | grep -v \.src | grep texlive-mi-solns + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mi-solns" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mi-solns + CHECK_RESULT $? 0 0 "install texlive-mi-solns failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mi-solns + CHECK_RESULT $? 0 0 "remove texlive-mi-solns failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mismath.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mismath.sh new file mode 100644 index 0000000000000000000000000000000000000000..d138e01c40a334eef1ca109cb8517a1549a6b41e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mismath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mismath | grep -v \.src | grep texlive-mismath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mismath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mismath + CHECK_RESULT $? 0 0 "install texlive-mismath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mismath + CHECK_RESULT $? 0 0 "remove texlive-mismath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mlacls.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mlacls.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd3cf848d55fb273d81471ca32d15a2b49de358a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-mlacls.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-mlacls | grep -v \.src | grep texlive-mlacls + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-mlacls" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-mlacls + CHECK_RESULT $? 0 0 "install texlive-mlacls failed" + SLEEP_WAIT 1 + dnf remove -y texlive-mlacls + CHECK_RESULT $? 0 0 "remove texlive-mlacls failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-multicolrule.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-multicolrule.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2e1a1f24165c3b820c734b70dbafbbf334e3e82 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-multicolrule.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-multicolrule | grep -v \.src | grep texlive-multicolrule + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-multicolrule" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-multicolrule + CHECK_RESULT $? 0 0 "install texlive-multicolrule failed" + SLEEP_WAIT 1 + dnf remove -y texlive-multicolrule + CHECK_RESULT $? 0 0 "remove texlive-multicolrule failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-nanicolle.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-nanicolle.sh new file mode 100644 index 0000000000000000000000000000000000000000..933f66cfb58364d8cad650ceb40fa2df429a1e1e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-nanicolle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-nanicolle | grep -v \.src | grep texlive-nanicolle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-nanicolle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-nanicolle + CHECK_RESULT $? 0 0 "install texlive-nanicolle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-nanicolle + CHECK_RESULT $? 0 0 "remove texlive-nanicolle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-njurepo.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-njurepo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca7673f3be6247c0d62a10920f6628cccc9a4d2d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-njurepo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-njurepo | grep -v \.src | grep texlive-njurepo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-njurepo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-njurepo + CHECK_RESULT $? 0 0 "install texlive-njurepo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-njurepo + CHECK_RESULT $? 0 0 "remove texlive-njurepo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-numberpt.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-numberpt.sh new file mode 100644 index 0000000000000000000000000000000000000000..0acca6c26763cb405ed21772dd89b559e00f8cea --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-numberpt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-numberpt | grep -v \.src | grep texlive-numberpt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-numberpt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-numberpt + CHECK_RESULT $? 0 0 "install texlive-numberpt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-numberpt + CHECK_RESULT $? 0 0 "remove texlive-numberpt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pgf-cmykshadings.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pgf-cmykshadings.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee6b8d7cfa3b94c94b426441d974054ab30572a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pgf-cmykshadings.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgf-cmykshadings | grep -v \.src | grep texlive-pgf-cmykshadings + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgf-cmykshadings" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgf-cmykshadings + CHECK_RESULT $? 0 0 "install texlive-pgf-cmykshadings failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgf-cmykshadings + CHECK_RESULT $? 0 0 "remove texlive-pgf-cmykshadings failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pgfmorepages.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pgfmorepages.sh new file mode 100644 index 0000000000000000000000000000000000000000..0defae08fb275431d8f197ce1aa04528224f66ad --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pgfmorepages.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pgfmorepages | grep -v \.src | grep texlive-pgfmorepages + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pgfmorepages" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pgfmorepages + CHECK_RESULT $? 0 0 "install texlive-pgfmorepages failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pgfmorepages + CHECK_RESULT $? 0 0 "remove texlive-pgfmorepages failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-plautopatch.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-plautopatch.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a94cdff31500707a72e09f6d72bc40a2fa714b1 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-plautopatch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-plautopatch | grep -v \.src | grep texlive-plautopatch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-plautopatch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-plautopatch + CHECK_RESULT $? 0 0 "install texlive-plautopatch failed" + SLEEP_WAIT 1 + dnf remove -y texlive-plautopatch + CHECK_RESULT $? 0 0 "remove texlive-plautopatch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-poiretone.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-poiretone.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3883250e7465f9f1bcbfc320611d419fc373984 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-poiretone.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poiretone | grep -v \.src | grep texlive-poiretone + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poiretone" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poiretone + CHECK_RESULT $? 0 0 "install texlive-poiretone failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poiretone + CHECK_RESULT $? 0 0 "remove texlive-poiretone failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-poormanlog.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-poormanlog.sh new file mode 100644 index 0000000000000000000000000000000000000000..6543a5a61fa7909343df4f9d91cf698967da30fd --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-poormanlog.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-poormanlog | grep -v \.src | grep texlive-poormanlog + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-poormanlog" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-poormanlog + CHECK_RESULT $? 0 0 "install texlive-poormanlog failed" + SLEEP_WAIT 1 + dnf remove -y texlive-poormanlog + CHECK_RESULT $? 0 0 "remove texlive-poormanlog failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-proof-at-the-end.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-proof-at-the-end.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e5f2bf9be2b285c576d68cdd9119cd158524e8a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-proof-at-the-end.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-proof-at-the-end | grep -v \.src | grep texlive-proof-at-the-end + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-proof-at-the-end" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-proof-at-the-end + CHECK_RESULT $? 0 0 "install texlive-proof-at-the-end failed" + SLEEP_WAIT 1 + dnf remove -y texlive-proof-at-the-end + CHECK_RESULT $? 0 0 "remove texlive-proof-at-the-end failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-prtec.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-prtec.sh new file mode 100644 index 0000000000000000000000000000000000000000..eeea0fc41ebbda4fc7bbeca02e56937270242633 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-prtec.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-prtec | grep -v \.src | grep texlive-prtec + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-prtec" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-prtec + CHECK_RESULT $? 0 0 "install texlive-prtec failed" + SLEEP_WAIT 1 + dnf remove -y texlive-prtec + CHECK_RESULT $? 0 0 "remove texlive-prtec failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pseudo.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pseudo.sh new file mode 100644 index 0000000000000000000000000000000000000000..30e286c7d9728102b58e26b5a4dc224dc1fae8d0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pseudo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pseudo | grep -v \.src | grep texlive-pseudo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pseudo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pseudo + CHECK_RESULT $? 0 0 "install texlive-pseudo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pseudo + CHECK_RESULT $? 0 0 "remove texlive-pseudo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-feyn.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-feyn.sh new file mode 100644 index 0000000000000000000000000000000000000000..81c0a0b58043a859085401393c03f4551fc6b587 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-feyn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pst-feyn | grep -v \.src | grep texlive-pst-feyn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pst-feyn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pst-feyn + CHECK_RESULT $? 0 0 "install texlive-pst-feyn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pst-feyn + CHECK_RESULT $? 0 0 "remove texlive-pst-feyn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-lsystem.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-lsystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..98ad1a9a17ffe39a828df99e5604af3a1b4ba0f9 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-lsystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pst-lsystem | grep -v \.src | grep texlive-pst-lsystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pst-lsystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pst-lsystem + CHECK_RESULT $? 0 0 "install texlive-pst-lsystem failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pst-lsystem + CHECK_RESULT $? 0 0 "remove texlive-pst-lsystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-marble.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-marble.sh new file mode 100644 index 0000000000000000000000000000000000000000..24ed1af7df0e954ede656c82dbc62b67369d5c2a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-marble.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pst-marble | grep -v \.src | grep texlive-pst-marble + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pst-marble" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pst-marble + CHECK_RESULT $? 0 0 "install texlive-pst-marble failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pst-marble + CHECK_RESULT $? 0 0 "remove texlive-pst-marble failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-moire.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-moire.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c814ad6e65cc552500f221afaac19d099cb3224 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-moire.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pst-moire | grep -v \.src | grep texlive-pst-moire + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pst-moire" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pst-moire + CHECK_RESULT $? 0 0 "install texlive-pst-moire failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pst-moire + CHECK_RESULT $? 0 0 "remove texlive-pst-moire failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-venn.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-venn.sh new file mode 100644 index 0000000000000000000000000000000000000000..4848a7f0fad940a89870658b27043e40cb69dded --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pst-venn.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pst-venn | grep -v \.src | grep texlive-pst-venn + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pst-venn" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pst-venn + CHECK_RESULT $? 0 0 "install texlive-pst-venn failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pst-venn + CHECK_RESULT $? 0 0 "remove texlive-pst-venn failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ptex-manual.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ptex-manual.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f665f5cdbcca15ad983747defe65a8692f74aa9 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ptex-manual.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ptex-manual | grep -v \.src | grep texlive-ptex-manual + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ptex-manual" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ptex-manual + CHECK_RESULT $? 0 0 "install texlive-ptex-manual failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ptex-manual + CHECK_RESULT $? 0 0 "remove texlive-ptex-manual failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ptolemaicastronomy.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ptolemaicastronomy.sh new file mode 100644 index 0000000000000000000000000000000000000000..52f8fbde7602a5adecd591f626f2f44b15b0a186 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ptolemaicastronomy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ptolemaicastronomy | grep -v \.src | grep texlive-ptolemaicastronomy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ptolemaicastronomy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ptolemaicastronomy + CHECK_RESULT $? 0 0 "install texlive-ptolemaicastronomy failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ptolemaicastronomy + CHECK_RESULT $? 0 0 "remove texlive-ptolemaicastronomy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pxjodel.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pxjodel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f73b20cc8592f114c0cccc9d642b31574e04bb76 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-pxjodel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-pxjodel | grep -v \.src | grep texlive-pxjodel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-pxjodel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-pxjodel + CHECK_RESULT $? 0 0 "install texlive-pxjodel failed" + SLEEP_WAIT 1 + dnf remove -y texlive-pxjodel + CHECK_RESULT $? 0 0 "remove texlive-pxjodel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-qsharp.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-qsharp.sh new file mode 100644 index 0000000000000000000000000000000000000000..3977122b992fc265edee6e6253f3b6c637e5ff57 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-qsharp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-qsharp | grep -v \.src | grep texlive-qsharp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-qsharp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-qsharp + CHECK_RESULT $? 0 0 "install texlive-qsharp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-qsharp + CHECK_RESULT $? 0 0 "remove texlive-qsharp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-quantikz.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-quantikz.sh new file mode 100644 index 0000000000000000000000000000000000000000..006fba1ab361771728ed27ed1fa50270b1690e70 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-quantikz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-quantikz | grep -v \.src | grep texlive-quantikz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-quantikz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-quantikz + CHECK_RESULT $? 0 0 "install texlive-quantikz failed" + SLEEP_WAIT 1 + dnf remove -y texlive-quantikz + CHECK_RESULT $? 0 0 "remove texlive-quantikz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-quran-de.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-quran-de.sh new file mode 100644 index 0000000000000000000000000000000000000000..31db286ba1d3e557925fd6a20544d3ade9bf364f --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-quran-de.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-quran-de | grep -v \.src | grep texlive-quran-de + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-quran-de" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-quran-de + CHECK_RESULT $? 0 0 "install texlive-quran-de failed" + SLEEP_WAIT 1 + dnf remove -y texlive-quran-de + CHECK_RESULT $? 0 0 "remove texlive-quran-de failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-quran-ur.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-quran-ur.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbf55d099bf0e14bcf18fe49308c106569926eaa --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-quran-ur.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-quran-ur | grep -v \.src | grep texlive-quran-ur + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-quran-ur" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-quran-ur + CHECK_RESULT $? 0 0 "install texlive-quran-ur failed" + SLEEP_WAIT 1 + dnf remove -y texlive-quran-ur + CHECK_RESULT $? 0 0 "remove texlive-quran-ur failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ragged2e.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ragged2e.sh new file mode 100644 index 0000000000000000000000000000000000000000..d50ce9e92205a1791fc78eb628b297c55b3592e1 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ragged2e.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ragged2e | grep -v \.src | grep texlive-ragged2e + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ragged2e" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ragged2e + CHECK_RESULT $? 0 0 "install texlive-ragged2e failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ragged2e + CHECK_RESULT $? 0 0 "remove texlive-ragged2e failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-rank-2-roots.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-rank-2-roots.sh new file mode 100644 index 0000000000000000000000000000000000000000..64520565a0d062fc0752da9df291545c28a6f90e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-rank-2-roots.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rank-2-roots | grep -v \.src | grep texlive-rank-2-roots + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rank-2-roots" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rank-2-roots + CHECK_RESULT $? 0 0 "install texlive-rank-2-roots failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rank-2-roots + CHECK_RESULT $? 0 0 "remove texlive-rank-2-roots failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-realhats.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-realhats.sh new file mode 100644 index 0000000000000000000000000000000000000000..1540403a9e1f7bda69ec0951c75d2930068f602e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-realhats.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-realhats | grep -v \.src | grep texlive-realhats + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-realhats" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-realhats + CHECK_RESULT $? 0 0 "install texlive-realhats failed" + SLEEP_WAIT 1 + dnf remove -y texlive-realhats + CHECK_RESULT $? 0 0 "remove texlive-realhats failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-rulerbox.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-rulerbox.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f215a0c0c8a253559fa058ceeb27847857849a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-rulerbox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-rulerbox | grep -v \.src | grep texlive-rulerbox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-rulerbox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-rulerbox + CHECK_RESULT $? 0 0 "install texlive-rulerbox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-rulerbox + CHECK_RESULT $? 0 0 "remove texlive-rulerbox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ryersonsgsthesis.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ryersonsgsthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..3512085c857fc5b5a8d61f79436c683a3485cd56 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ryersonsgsthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ryersonsgsthesis | grep -v \.src | grep texlive-ryersonsgsthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ryersonsgsthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ryersonsgsthesis + CHECK_RESULT $? 0 0 "install texlive-ryersonsgsthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ryersonsgsthesis + CHECK_RESULT $? 0 0 "remove texlive-ryersonsgsthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-schedule.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-schedule.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f99880cea399a42cdc534abbd64b9a3bc57140c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-schedule.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-schedule | grep -v \.src | grep texlive-schedule + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-schedule" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-schedule + CHECK_RESULT $? 0 0 "install texlive-schedule failed" + SLEEP_WAIT 1 + dnf remove -y texlive-schedule + CHECK_RESULT $? 0 0 "remove texlive-schedule failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-scontents.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-scontents.sh new file mode 100644 index 0000000000000000000000000000000000000000..727d20e81058b5747902d3b7e9795b1a39b1dbaa --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-scontents.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scontents | grep -v \.src | grep texlive-scontents + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scontents" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scontents + CHECK_RESULT $? 0 0 "install texlive-scontents failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scontents + CHECK_RESULT $? 0 0 "remove texlive-scontents failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-scratch3.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-scratch3.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc8afc7f947028625f325a23ce6cad6e1816686c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-scratch3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-scratch3 | grep -v \.src | grep texlive-scratch3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-scratch3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-scratch3 + CHECK_RESULT $? 0 0 "install texlive-scratch3 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-scratch3 + CHECK_RESULT $? 0 0 "remove texlive-scratch3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-soulpos.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-soulpos.sh new file mode 100644 index 0000000000000000000000000000000000000000..8621e85bbd9cc4bd46799fd67f428e5ebb95dd55 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-soulpos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-soulpos | grep -v \.src | grep texlive-soulpos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-soulpos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-soulpos + CHECK_RESULT $? 0 0 "install texlive-soulpos failed" + SLEEP_WAIT 1 + dnf remove -y texlive-soulpos + CHECK_RESULT $? 0 0 "remove texlive-soulpos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-spacingtricks.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-spacingtricks.sh new file mode 100644 index 0000000000000000000000000000000000000000..4854c3ea1c164db4f01f9cde66a5c116f048fee3 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-spacingtricks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-spacingtricks | grep -v \.src | grep texlive-spacingtricks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-spacingtricks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-spacingtricks + CHECK_RESULT $? 0 0 "install texlive-spacingtricks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-spacingtricks + CHECK_RESULT $? 0 0 "remove texlive-spacingtricks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-split-z.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-split-z.sh new file mode 100644 index 0000000000000000000000000000000000000000..27110937b1a90705b7848bc74be054275761e71b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-split-z.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-split-z | grep -v \.src | grep texlive-split-z + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-split-z" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-split-z + CHECK_RESULT $? 0 0 "install texlive-split-z failed" + SLEEP_WAIT 1 + dnf remove -y texlive-split-z + CHECK_RESULT $? 0 0 "remove texlive-split-z failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-srdp-mathematik.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-srdp-mathematik.sh new file mode 100644 index 0000000000000000000000000000000000000000..43bf45419db45a783aa4d2036efbf20ddfb75c25 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-srdp-mathematik.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-srdp-mathematik | grep -v \.src | grep texlive-srdp-mathematik + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-srdp-mathematik" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-srdp-mathematik + CHECK_RESULT $? 0 0 "install texlive-srdp-mathematik failed" + SLEEP_WAIT 1 + dnf remove -y texlive-srdp-mathematik + CHECK_RESULT $? 0 0 "remove texlive-srdp-mathematik failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-subdocs.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-subdocs.sh new file mode 100644 index 0000000000000000000000000000000000000000..371851915ca26b1aee1a57b195d80c334362b096 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-subdocs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subdocs | grep -v \.src | grep texlive-subdocs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subdocs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subdocs + CHECK_RESULT $? 0 0 "install texlive-subdocs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subdocs + CHECK_RESULT $? 0 0 "remove texlive-subdocs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-subtext.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-subtext.sh new file mode 100644 index 0000000000000000000000000000000000000000..70d05f1ebf0de8aee6287d79ea70757568f24f32 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-subtext.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-subtext | grep -v \.src | grep texlive-subtext + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-subtext" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-subtext + CHECK_RESULT $? 0 0 "install texlive-subtext failed" + SLEEP_WAIT 1 + dnf remove -y texlive-subtext + CHECK_RESULT $? 0 0 "remove texlive-subtext failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-technion-thesis-template.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-technion-thesis-template.sh new file mode 100644 index 0000000000000000000000000000000000000000..af5c4c56f6f15fbc67b1a7a559008e8115f73f97 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-technion-thesis-template.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-technion-thesis-template | grep -v \.src | grep texlive-technion-thesis-template + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-technion-thesis-template" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-technion-thesis-template + CHECK_RESULT $? 0 0 "install texlive-technion-thesis-template failed" + SLEEP_WAIT 1 + dnf remove -y texlive-technion-thesis-template + CHECK_RESULT $? 0 0 "remove texlive-technion-thesis-template failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tensind.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tensind.sh new file mode 100644 index 0000000000000000000000000000000000000000..f66bbe9d1e69ff05643cde7cb2faa451a1c7ca18 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tensind.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tensind | grep -v \.src | grep texlive-tensind + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tensind" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tensind + CHECK_RESULT $? 0 0 "install texlive-tensind failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tensind + CHECK_RESULT $? 0 0 "remove texlive-tensind failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tex-locale.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tex-locale.sh new file mode 100644 index 0000000000000000000000000000000000000000..54602c5ac077779e6aacc12a68021310fc142020 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tex-locale.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tex-locale | grep -v \.src | grep texlive-tex-locale + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tex-locale" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tex-locale + CHECK_RESULT $? 0 0 "install texlive-tex-locale failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tex-locale + CHECK_RESULT $? 0 0 "remove texlive-tex-locale failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-texonly.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-texonly.sh new file mode 100644 index 0000000000000000000000000000000000000000..58cc63f6737b110a853b8ebb853f52adb834d745 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-texonly.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-texonly | grep -v \.src | grep texlive-texonly + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-texonly" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-texonly + CHECK_RESULT $? 0 0 "install texlive-texonly failed" + SLEEP_WAIT 1 + dnf remove -y texlive-texonly + CHECK_RESULT $? 0 0 "remove texlive-texonly failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-theanodidot.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-theanodidot.sh new file mode 100644 index 0000000000000000000000000000000000000000..201dd88a1921270239391e043412f4d14d76d063 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-theanodidot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-theanodidot | grep -v \.src | grep texlive-theanodidot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-theanodidot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-theanodidot + CHECK_RESULT $? 0 0 "install texlive-theanodidot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-theanodidot + CHECK_RESULT $? 0 0 "remove texlive-theanodidot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-theanomodern.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-theanomodern.sh new file mode 100644 index 0000000000000000000000000000000000000000..874ccd8e77a6dcf79233d2baf9fe660733141d9d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-theanomodern.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-theanomodern | grep -v \.src | grep texlive-theanomodern + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-theanomodern" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-theanomodern + CHECK_RESULT $? 0 0 "install texlive-theanomodern failed" + SLEEP_WAIT 1 + dnf remove -y texlive-theanomodern + CHECK_RESULT $? 0 0 "remove texlive-theanomodern failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-theanooldstyle.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-theanooldstyle.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d8e44f6e8be6fde6fb9a075c8a21294365cbd48 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-theanooldstyle.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-theanooldstyle | grep -v \.src | grep texlive-theanooldstyle + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-theanooldstyle" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-theanooldstyle + CHECK_RESULT $? 0 0 "install texlive-theanooldstyle failed" + SLEEP_WAIT 1 + dnf remove -y texlive-theanooldstyle + CHECK_RESULT $? 0 0 "remove texlive-theanooldstyle failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-thesis-qom.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-thesis-qom.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ff488fdb5786015b5a84034bf5f2b811f7ffc20 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-thesis-qom.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thesis-qom | grep -v \.src | grep texlive-thesis-qom + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thesis-qom" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thesis-qom + CHECK_RESULT $? 0 0 "install texlive-thesis-qom failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thesis-qom + CHECK_RESULT $? 0 0 "remove texlive-thesis-qom failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-thuaslogos.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-thuaslogos.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d765a512c9a3b60033c96792505a2547af96451 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-thuaslogos.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-thuaslogos | grep -v \.src | grep texlive-thuaslogos + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-thuaslogos" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-thuaslogos + CHECK_RESULT $? 0 0 "install texlive-thuaslogos failed" + SLEEP_WAIT 1 + dnf remove -y texlive-thuaslogos + CHECK_RESULT $? 0 0 "remove texlive-thuaslogos failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikz-feynhand.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikz-feynhand.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f3a09e9063517459d413fecae996cbeaf1a7836 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikz-feynhand.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-feynhand | grep -v \.src | grep texlive-tikz-feynhand + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-feynhand" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-feynhand + CHECK_RESULT $? 0 0 "install texlive-tikz-feynhand failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-feynhand + CHECK_RESULT $? 0 0 "remove texlive-tikz-feynhand failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikz-imagelabels.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikz-imagelabels.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f953472b01715e06ef1ecadde0fe7a1d6c46ff0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikz-imagelabels.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-imagelabels | grep -v \.src | grep texlive-tikz-imagelabels + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-imagelabels" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-imagelabels + CHECK_RESULT $? 0 0 "install texlive-tikz-imagelabels failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-imagelabels + CHECK_RESULT $? 0 0 "remove texlive-tikz-imagelabels failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikz-truchet.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikz-truchet.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f3fa94e67bdbab2c2e7167c4e7022e28ce2551f --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikz-truchet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikz-truchet | grep -v \.src | grep texlive-tikz-truchet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikz-truchet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikz-truchet + CHECK_RESULT $? 0 0 "install texlive-tikz-truchet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikz-truchet + CHECK_RESULT $? 0 0 "remove texlive-tikz-truchet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikzlings.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikzlings.sh new file mode 100644 index 0000000000000000000000000000000000000000..933f65d81937f0bc606e7a4f7d84c974654d944a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tikzlings.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tikzlings | grep -v \.src | grep texlive-tikzlings + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tikzlings" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tikzlings + CHECK_RESULT $? 0 0 "install texlive-tikzlings failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tikzlings + CHECK_RESULT $? 0 0 "remove texlive-tikzlings failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-topiclongtable.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-topiclongtable.sh new file mode 100644 index 0000000000000000000000000000000000000000..009e45a9151e29b4495898bab949c4755153e302 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-topiclongtable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-topiclongtable | grep -v \.src | grep texlive-topiclongtable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-topiclongtable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-topiclongtable + CHECK_RESULT $? 0 0 "install texlive-topiclongtable failed" + SLEEP_WAIT 1 + dnf remove -y texlive-topiclongtable + CHECK_RESULT $? 0 0 "remove texlive-topiclongtable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tuda-ci.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tuda-ci.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dd15120acdc7450f21e59bb4681a0d50b02d305 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-tuda-ci.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-tuda-ci | grep -v \.src | grep texlive-tuda-ci + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-tuda-ci" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-tuda-ci + CHECK_RESULT $? 0 0 "install texlive-tuda-ci failed" + SLEEP_WAIT 1 + dnf remove -y texlive-tuda-ci + CHECK_RESULT $? 0 0 "remove texlive-tuda-ci failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ucalgmthesis.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ucalgmthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..97b4accf8de5196325f1ad7117b5254d64dc73c6 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ucalgmthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ucalgmthesis | grep -v \.src | grep texlive-ucalgmthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ucalgmthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ucalgmthesis + CHECK_RESULT $? 0 0 "install texlive-ucalgmthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ucalgmthesis + CHECK_RESULT $? 0 0 "remove texlive-ucalgmthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-unam-thesis.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-unam-thesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..479a1d61bba8a22c07e9aef458408675bd5e7409 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-unam-thesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unam-thesis | grep -v \.src | grep texlive-unam-thesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unam-thesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unam-thesis + CHECK_RESULT $? 0 0 "install texlive-unam-thesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unam-thesis + CHECK_RESULT $? 0 0 "remove texlive-unam-thesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-unicode-alphabets.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-unicode-alphabets.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6449c393680cd0863da6c7674d941f30af7ba55 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-unicode-alphabets.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-unicode-alphabets | grep -v \.src | grep texlive-unicode-alphabets + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-unicode-alphabets" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-unicode-alphabets + CHECK_RESULT $? 0 0 "install texlive-unicode-alphabets failed" + SLEEP_WAIT 1 + dnf remove -y texlive-unicode-alphabets + CHECK_RESULT $? 0 0 "remove texlive-unicode-alphabets failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-vtable.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-vtable.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2f5f130417ac455c3a1605dac0c88460acf12eb --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-vtable.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-vtable | grep -v \.src | grep texlive-vtable + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-vtable" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-vtable + CHECK_RESULT $? 0 0 "install texlive-vtable failed" + SLEEP_WAIT 1 + dnf remove -y texlive-vtable + CHECK_RESULT $? 0 0 "remove texlive-vtable failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-widows-and-orphans.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-widows-and-orphans.sh new file mode 100644 index 0000000000000000000000000000000000000000..31b05e27a9016ef619f7fd8ca5c586a6c11adff9 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-widows-and-orphans.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-widows-and-orphans | grep -v \.src | grep texlive-widows-and-orphans + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-widows-and-orphans" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-widows-and-orphans + CHECK_RESULT $? 0 0 "install texlive-widows-and-orphans failed" + SLEEP_WAIT 1 + dnf remove -y texlive-widows-and-orphans + CHECK_RESULT $? 0 0 "remove texlive-widows-and-orphans failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-windycity.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-windycity.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c1222d27ba60efd4867c358eb0742594b00497b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-windycity.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-windycity | grep -v \.src | grep texlive-windycity + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-windycity" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-windycity + CHECK_RESULT $? 0 0 "install texlive-windycity failed" + SLEEP_WAIT 1 + dnf remove -y texlive-windycity + CHECK_RESULT $? 0 0 "remove texlive-windycity failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-worksheet.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-worksheet.sh new file mode 100644 index 0000000000000000000000000000000000000000..c41b129096f2dd43a54b4deb51109c10619e9aac --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-worksheet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-worksheet | grep -v \.src | grep texlive-worksheet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-worksheet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-worksheet + CHECK_RESULT $? 0 0 "install texlive-worksheet failed" + SLEEP_WAIT 1 + dnf remove -y texlive-worksheet + CHECK_RESULT $? 0 0 "remove texlive-worksheet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xargs-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xargs-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a29c9b290871529c1e90f8d41eb83fbd532c7c0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xargs-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xargs-doc | grep -v \.src | grep texlive-xargs-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xargs-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xargs-doc + CHECK_RESULT $? 0 0 "install texlive-xargs-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xargs-doc + CHECK_RESULT $? 0 0 "remove texlive-xargs-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xargs.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xargs.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8513654729187e9960e25f78a02ad6c5ea53dca --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xargs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xargs | grep -v \.src | grep texlive-xargs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xargs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xargs + CHECK_RESULT $? 0 0 "install texlive-xargs failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xargs + CHECK_RESULT $? 0 0 "remove texlive-xargs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xassoccnt-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xassoccnt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e1d564707510cda5fc3ddd0873deeca35734e8a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xassoccnt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xassoccnt-doc | grep -v \.src | grep texlive-xassoccnt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xassoccnt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xassoccnt-doc + CHECK_RESULT $? 0 0 "install texlive-xassoccnt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xassoccnt-doc + CHECK_RESULT $? 0 0 "remove texlive-xassoccnt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xassoccnt.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xassoccnt.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d7de1704008a9fd660953e1ae5ef63cd034c8ab --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xassoccnt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xassoccnt | grep -v \.src | grep texlive-xassoccnt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xassoccnt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xassoccnt + CHECK_RESULT $? 0 0 "install texlive-xassoccnt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xassoccnt + CHECK_RESULT $? 0 0 "remove texlive-xassoccnt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xbmks.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xbmks.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcc059e8e18d4ce5b1fca9963b1eda18d4c1453c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xbmks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xbmks | grep -v \.src | grep texlive-xbmks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xbmks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xbmks + CHECK_RESULT $? 0 0 "install texlive-xbmks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xbmks + CHECK_RESULT $? 0 0 "remove texlive-xbmks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcharter-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcharter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7cce4688f14c55ebcfa3f20c91d371467dbc997 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcharter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcharter-doc | grep -v \.src | grep texlive-xcharter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcharter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcharter-doc + CHECK_RESULT $? 0 0 "install texlive-xcharter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcharter-doc + CHECK_RESULT $? 0 0 "remove texlive-xcharter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcharter.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcharter.sh new file mode 100644 index 0000000000000000000000000000000000000000..76137b92a9d4d814d3bcce28a182b86d96e2106d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcharter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcharter | grep -v \.src | grep texlive-xcharter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcharter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcharter + CHECK_RESULT $? 0 0 "install texlive-xcharter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcharter + CHECK_RESULT $? 0 0 "remove texlive-xcharter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcite-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcite-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..96c86df12c1123c030fd9cff8f33da03633f1297 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcite-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcite-doc | grep -v \.src | grep texlive-xcite-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcite-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcite-doc + CHECK_RESULT $? 0 0 "install texlive-xcite-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcite-doc + CHECK_RESULT $? 0 0 "remove texlive-xcite-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcite.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcite.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa76d35d760428fb3de3a86e0d6767842ecbd0f8 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcite.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcite | grep -v \.src | grep texlive-xcite + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcite" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcite + CHECK_RESULT $? 0 0 "install texlive-xcite failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcite + CHECK_RESULT $? 0 0 "remove texlive-xcite failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcjk2uni-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcjk2uni-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b39cc75b71d0d4718eca969ab063dbf473cb2b0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcjk2uni-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcjk2uni-doc | grep -v \.src | grep texlive-xcjk2uni-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcjk2uni-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcjk2uni-doc + CHECK_RESULT $? 0 0 "install texlive-xcjk2uni-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcjk2uni-doc + CHECK_RESULT $? 0 0 "remove texlive-xcjk2uni-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcjk2uni.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcjk2uni.sh new file mode 100644 index 0000000000000000000000000000000000000000..949ad1bb6caf91c23a22ac7e5b1ea40dce75923c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcjk2uni.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcjk2uni | grep -v \.src | grep texlive-xcjk2uni + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcjk2uni" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcjk2uni + CHECK_RESULT $? 0 0 "install texlive-xcjk2uni failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcjk2uni + CHECK_RESULT $? 0 0 "remove texlive-xcjk2uni failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcntperchap-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcntperchap-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..af193ec4be77a9f91d9f0ed4357fec55b98b2618 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcntperchap-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcntperchap-doc | grep -v \.src | grep texlive-xcntperchap-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcntperchap-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcntperchap-doc + CHECK_RESULT $? 0 0 "install texlive-xcntperchap-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcntperchap-doc + CHECK_RESULT $? 0 0 "remove texlive-xcntperchap-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcntperchap.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcntperchap.sh new file mode 100644 index 0000000000000000000000000000000000000000..384d68d477db5492af877c800c5ceb8f0fc28ff2 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcntperchap.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcntperchap | grep -v \.src | grep texlive-xcntperchap + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcntperchap" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcntperchap + CHECK_RESULT $? 0 0 "install texlive-xcntperchap failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcntperchap + CHECK_RESULT $? 0 0 "remove texlive-xcntperchap failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0c7b76387acd748dde0e68c5760fa7127a235c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcolor-doc | grep -v \.src | grep texlive-xcolor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcolor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcolor-doc + CHECK_RESULT $? 0 0 "install texlive-xcolor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcolor-doc + CHECK_RESULT $? 0 0 "remove texlive-xcolor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-material.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-material.sh new file mode 100644 index 0000000000000000000000000000000000000000..171f77a2ac5f8b4e4dbb61bfe5f5aac9d1a4bedc --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-material.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcolor-material | grep -v \.src | grep texlive-xcolor-material + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcolor-material" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcolor-material + CHECK_RESULT $? 0 0 "install texlive-xcolor-material failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcolor-material + CHECK_RESULT $? 0 0 "remove texlive-xcolor-material failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-solarized-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-solarized-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae2847d2f2e4726b223bafd6d94f33c344b39b74 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-solarized-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcolor-solarized-doc | grep -v \.src | grep texlive-xcolor-solarized-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcolor-solarized-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcolor-solarized-doc + CHECK_RESULT $? 0 0 "install texlive-xcolor-solarized-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcolor-solarized-doc + CHECK_RESULT $? 0 0 "remove texlive-xcolor-solarized-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-solarized.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-solarized.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ff860ba2d3fc7b9b5629d0eed5110e73dd5ce21 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor-solarized.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcolor-solarized | grep -v \.src | grep texlive-xcolor-solarized + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcolor-solarized" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcolor-solarized + CHECK_RESULT $? 0 0 "install texlive-xcolor-solarized failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcolor-solarized + CHECK_RESULT $? 0 0 "remove texlive-xcolor-solarized failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor.sh new file mode 100644 index 0000000000000000000000000000000000000000..09cd80235261ad967d11943707bbbe5eae527509 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcolor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcolor | grep -v \.src | grep texlive-xcolor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcolor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcolor + CHECK_RESULT $? 0 0 "install texlive-xcolor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcolor + CHECK_RESULT $? 0 0 "remove texlive-xcolor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcomment-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcomment-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3987f1faabd8c481d6d1cac62ec3558538e64e6 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcomment-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcomment-doc | grep -v \.src | grep texlive-xcomment-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcomment-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcomment-doc + CHECK_RESULT $? 0 0 "install texlive-xcomment-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcomment-doc + CHECK_RESULT $? 0 0 "remove texlive-xcomment-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcomment.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcomment.sh new file mode 100644 index 0000000000000000000000000000000000000000..05f1fc74dca18a03ef4ab9dda05739799192fdc2 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcomment.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcomment | grep -v \.src | grep texlive-xcomment + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcomment" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcomment + CHECK_RESULT $? 0 0 "install texlive-xcomment failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcomment + CHECK_RESULT $? 0 0 "remove texlive-xcomment failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcookybooky-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcookybooky-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0d6060a73d2c9d0ba688ab4ce821d60ee553ec4 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcookybooky-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcookybooky-doc | grep -v \.src | grep texlive-xcookybooky-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcookybooky-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcookybooky-doc + CHECK_RESULT $? 0 0 "install texlive-xcookybooky-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcookybooky-doc + CHECK_RESULT $? 0 0 "remove texlive-xcookybooky-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcookybooky.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcookybooky.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c63b0c21cb0cf817b78f89c831e80fc462add04 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcookybooky.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcookybooky | grep -v \.src | grep texlive-xcookybooky + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcookybooky" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcookybooky + CHECK_RESULT $? 0 0 "install texlive-xcookybooky failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcookybooky + CHECK_RESULT $? 0 0 "remove texlive-xcookybooky failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcpdftips.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcpdftips.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d68a846d51509d4b4c8ccb4d5b9e5c38e161381 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xcpdftips.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xcpdftips | grep -v \.src | grep texlive-xcpdftips + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xcpdftips" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xcpdftips + CHECK_RESULT $? 0 0 "install texlive-xcpdftips failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xcpdftips + CHECK_RESULT $? 0 0 "remove texlive-xcpdftips failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xdoc-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xdoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..74e8c79ef0fd2c0e588e03f7405fa2502299d53f --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xdoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xdoc-doc | grep -v \.src | grep texlive-xdoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xdoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xdoc-doc + CHECK_RESULT $? 0 0 "install texlive-xdoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xdoc-doc + CHECK_RESULT $? 0 0 "remove texlive-xdoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xdoc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xdoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f79dddcfadc9644744ca31a19d6c6fe5ebc507d7 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xdoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xdoc | grep -v \.src | grep texlive-xdoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xdoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xdoc + CHECK_RESULT $? 0 0 "install texlive-xdoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xdoc + CHECK_RESULT $? 0 0 "remove texlive-xdoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xduthesis-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xduthesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd08fc19dcc666e3f2944c3a8354d362cd83e567 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xduthesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xduthesis-doc | grep -v \.src | grep texlive-xduthesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xduthesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xduthesis-doc + CHECK_RESULT $? 0 0 "install texlive-xduthesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xduthesis-doc + CHECK_RESULT $? 0 0 "remove texlive-xduthesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xduthesis.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xduthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2fc61d369e28c20ee041a911921e8d87321d391 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xduthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xduthesis | grep -v \.src | grep texlive-xduthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xduthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xduthesis + CHECK_RESULT $? 0 0 "install texlive-xduthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xduthesis + CHECK_RESULT $? 0 0 "remove texlive-xduthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xebaposter-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xebaposter-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c55f7a65f769ffaec3a944fb4e577c30770094b3 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xebaposter-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xebaposter-doc | grep -v \.src | grep texlive-xebaposter-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xebaposter-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xebaposter-doc + CHECK_RESULT $? 0 0 "install texlive-xebaposter-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xebaposter-doc + CHECK_RESULT $? 0 0 "remove texlive-xebaposter-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xebaposter.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xebaposter.sh new file mode 100644 index 0000000000000000000000000000000000000000..086187d55b5fc3e6618556eed6090aa695a295d4 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xebaposter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xebaposter | grep -v \.src | grep texlive-xebaposter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xebaposter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xebaposter + CHECK_RESULT $? 0 0 "install texlive-xebaposter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xebaposter + CHECK_RESULT $? 0 0 "remove texlive-xebaposter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xechangebar.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xechangebar.sh new file mode 100644 index 0000000000000000000000000000000000000000..0852391f947dec116e4ef42f1d84145b6ddb1bef --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xechangebar.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xechangebar | grep -v \.src | grep texlive-xechangebar + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xechangebar" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xechangebar + CHECK_RESULT $? 0 0 "install texlive-xechangebar failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xechangebar + CHECK_RESULT $? 0 0 "remove texlive-xechangebar failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecjk-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecjk-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..06da0ccf4466a8a5bda6b9a3efa190bd462eea0a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecjk-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xecjk-doc | grep -v \.src | grep texlive-xecjk-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xecjk-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xecjk-doc + CHECK_RESULT $? 0 0 "install texlive-xecjk-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xecjk-doc + CHECK_RESULT $? 0 0 "remove texlive-xecjk-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecjk.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecjk.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2ae76426e6cdfcf53675e79e7b8084a291106d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecjk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xecjk | grep -v \.src | grep texlive-xecjk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xecjk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xecjk + CHECK_RESULT $? 0 0 "install texlive-xecjk failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xecjk + CHECK_RESULT $? 0 0 "remove texlive-xecjk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecolor-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecolor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f12441e417567accdfd185a762af921b1ee7e85d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecolor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xecolor-doc | grep -v \.src | grep texlive-xecolor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xecolor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xecolor-doc + CHECK_RESULT $? 0 0 "install texlive-xecolor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xecolor-doc + CHECK_RESULT $? 0 0 "remove texlive-xecolor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecolor.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecolor.sh new file mode 100644 index 0000000000000000000000000000000000000000..7385c2370b60447bad95d3781864cfa8793dbe02 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecolor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xecolor | grep -v \.src | grep texlive-xecolor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xecolor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xecolor + CHECK_RESULT $? 0 0 "install texlive-xecolor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xecolor + CHECK_RESULT $? 0 0 "remove texlive-xecolor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecyr-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecyr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a23278a4d67bbfd4841f829e14c1b62964fb9aa0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecyr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xecyr-doc | grep -v \.src | grep texlive-xecyr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xecyr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xecyr-doc + CHECK_RESULT $? 0 0 "install texlive-xecyr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xecyr-doc + CHECK_RESULT $? 0 0 "remove texlive-xecyr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecyr.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecyr.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2b5914dd714a159c6a036c97c335225922a5bb7 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xecyr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xecyr | grep -v \.src | grep texlive-xecyr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xecyr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xecyr + CHECK_RESULT $? 0 0 "install texlive-xecyr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xecyr + CHECK_RESULT $? 0 0 "remove texlive-xecyr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xeindex-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xeindex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd66fd1326d69ddefb3363e4adb22984b390f966 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xeindex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xeindex-doc | grep -v \.src | grep texlive-xeindex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xeindex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xeindex-doc + CHECK_RESULT $? 0 0 "install texlive-xeindex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xeindex-doc + CHECK_RESULT $? 0 0 "remove texlive-xeindex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xeindex.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xeindex.sh new file mode 100644 index 0000000000000000000000000000000000000000..2671394e047a20b150ab74a0fccc31057fd32d35 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xeindex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xeindex | grep -v \.src | grep texlive-xeindex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xeindex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xeindex + CHECK_RESULT $? 0 0 "install texlive-xeindex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xeindex + CHECK_RESULT $? 0 0 "remove texlive-xeindex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xellipsis-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xellipsis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..9caf57335c3034864c45ee0d00c0710bcf615beb --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xellipsis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xellipsis-doc | grep -v \.src | grep texlive-xellipsis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xellipsis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xellipsis-doc + CHECK_RESULT $? 0 0 "install texlive-xellipsis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xellipsis-doc + CHECK_RESULT $? 0 0 "remove texlive-xellipsis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xellipsis.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xellipsis.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e47e225388106ec0a49473c24df76b1733e25d3 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xellipsis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xellipsis | grep -v \.src | grep texlive-xellipsis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xellipsis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xellipsis + CHECK_RESULT $? 0 0 "install texlive-xellipsis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xellipsis + CHECK_RESULT $? 0 0 "remove texlive-xellipsis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xepersian-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xepersian-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bab8a5e1be0ca1a335ac682cdf8c14f140c2a7c5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xepersian-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xepersian-doc | grep -v \.src | grep texlive-xepersian-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xepersian-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xepersian-doc + CHECK_RESULT $? 0 0 "install texlive-xepersian-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xepersian-doc + CHECK_RESULT $? 0 0 "remove texlive-xepersian-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xepersian.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xepersian.sh new file mode 100644 index 0000000000000000000000000000000000000000..30b493e8b7796d784218ea2e35d7acaa4a1bcb40 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xepersian.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xepersian | grep -v \.src | grep texlive-xepersian + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xepersian" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xepersian + CHECK_RESULT $? 0 0 "install texlive-xepersian failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xepersian + CHECK_RESULT $? 0 0 "remove texlive-xepersian failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xesearch-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xesearch-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cad4797f6a354b0dc16c09a7b0fd67152669fab9 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xesearch-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xesearch-doc | grep -v \.src | grep texlive-xesearch-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xesearch-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xesearch-doc + CHECK_RESULT $? 0 0 "install texlive-xesearch-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xesearch-doc + CHECK_RESULT $? 0 0 "remove texlive-xesearch-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xesearch.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xesearch.sh new file mode 100644 index 0000000000000000000000000000000000000000..41772589bfe9dace5321a35eab03d151581b2b3c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xesearch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xesearch | grep -v \.src | grep texlive-xesearch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xesearch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xesearch + CHECK_RESULT $? 0 0 "install texlive-xesearch failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xesearch + CHECK_RESULT $? 0 0 "remove texlive-xesearch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xespotcolor-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xespotcolor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..994e04027b33aabdc77de51adb9049f2ccb87085 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xespotcolor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xespotcolor-doc | grep -v \.src | grep texlive-xespotcolor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xespotcolor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xespotcolor-doc + CHECK_RESULT $? 0 0 "install texlive-xespotcolor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xespotcolor-doc + CHECK_RESULT $? 0 0 "remove texlive-xespotcolor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xespotcolor.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xespotcolor.sh new file mode 100644 index 0000000000000000000000000000000000000000..35bcd117c52d1ad8059f506d1026c1718abc270b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xespotcolor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xespotcolor | grep -v \.src | grep texlive-xespotcolor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xespotcolor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xespotcolor + CHECK_RESULT $? 0 0 "install texlive-xespotcolor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xespotcolor + CHECK_RESULT $? 0 0 "remove texlive-xespotcolor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-devanagari-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-devanagari-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3d182e17024d448e608fb21a0fd530216403aba --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-devanagari-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetex-devanagari-doc | grep -v \.src | grep texlive-xetex-devanagari-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetex-devanagari-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetex-devanagari-doc + CHECK_RESULT $? 0 0 "install texlive-xetex-devanagari-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetex-devanagari-doc + CHECK_RESULT $? 0 0 "remove texlive-xetex-devanagari-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-devanagari.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-devanagari.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc30beebc4e183e2098e1ab7d42c2dbfc1a05c80 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-devanagari.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetex-devanagari | grep -v \.src | grep texlive-xetex-devanagari + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetex-devanagari" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetex-devanagari + CHECK_RESULT $? 0 0 "install texlive-xetex-devanagari failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetex-devanagari + CHECK_RESULT $? 0 0 "remove texlive-xetex-devanagari failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-itrans-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-itrans-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d40c7991e873d24a2c02d20011258c569d49a55f --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-itrans-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetex-itrans-doc | grep -v \.src | grep texlive-xetex-itrans-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetex-itrans-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetex-itrans-doc + CHECK_RESULT $? 0 0 "install texlive-xetex-itrans-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetex-itrans-doc + CHECK_RESULT $? 0 0 "remove texlive-xetex-itrans-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-itrans.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-itrans.sh new file mode 100644 index 0000000000000000000000000000000000000000..72c6c0b829c378f25865d19f38c1f7cca591929b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-itrans.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetex-itrans | grep -v \.src | grep texlive-xetex-itrans + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetex-itrans" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetex-itrans + CHECK_RESULT $? 0 0 "install texlive-xetex-itrans failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetex-itrans + CHECK_RESULT $? 0 0 "remove texlive-xetex-itrans failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-pstricks-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-pstricks-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..609a694f1f22ee8bd3d83e242fee990b3f1e2f89 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-pstricks-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetex-pstricks-doc | grep -v \.src | grep texlive-xetex-pstricks-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetex-pstricks-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetex-pstricks-doc + CHECK_RESULT $? 0 0 "install texlive-xetex-pstricks-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetex-pstricks-doc + CHECK_RESULT $? 0 0 "remove texlive-xetex-pstricks-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-pstricks.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-pstricks.sh new file mode 100644 index 0000000000000000000000000000000000000000..d09b62a5271388dc963222b100868adddf715e25 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-pstricks.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetex-pstricks | grep -v \.src | grep texlive-xetex-pstricks + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetex-pstricks" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetex-pstricks + CHECK_RESULT $? 0 0 "install texlive-xetex-pstricks failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetex-pstricks + CHECK_RESULT $? 0 0 "remove texlive-xetex-pstricks failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-tibetan-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-tibetan-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2b4a67b590f2282774ab1e2ca6ad40f762cb081 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-tibetan-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetex-tibetan-doc | grep -v \.src | grep texlive-xetex-tibetan-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetex-tibetan-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetex-tibetan-doc + CHECK_RESULT $? 0 0 "install texlive-xetex-tibetan-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetex-tibetan-doc + CHECK_RESULT $? 0 0 "remove texlive-xetex-tibetan-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-tibetan.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-tibetan.sh new file mode 100644 index 0000000000000000000000000000000000000000..9971914db6f75c21c80c2a8b0fdf445dc2956456 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetex-tibetan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetex-tibetan | grep -v \.src | grep texlive-xetex-tibetan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetex-tibetan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetex-tibetan + CHECK_RESULT $? 0 0 "install texlive-xetex-tibetan failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetex-tibetan + CHECK_RESULT $? 0 0 "remove texlive-xetex-tibetan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexconfig.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexconfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..73f78c63c8e0fe0f224f5db1d3bf38719d2fcd3d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexconfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetexconfig | grep -v \.src | grep texlive-xetexconfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetexconfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetexconfig + CHECK_RESULT $? 0 0 "install texlive-xetexconfig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetexconfig + CHECK_RESULT $? 0 0 "remove texlive-xetexconfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexfontinfo-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexfontinfo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae89d21d5b92af5e26febd4a0e877b4d5d611d50 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexfontinfo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetexfontinfo-doc | grep -v \.src | grep texlive-xetexfontinfo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetexfontinfo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetexfontinfo-doc + CHECK_RESULT $? 0 0 "install texlive-xetexfontinfo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetexfontinfo-doc + CHECK_RESULT $? 0 0 "remove texlive-xetexfontinfo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexfontinfo.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexfontinfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e9e2c1d3ee78a12073d8be33d230047b61a1dac --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexfontinfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetexfontinfo | grep -v \.src | grep texlive-xetexfontinfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetexfontinfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetexfontinfo + CHECK_RESULT $? 0 0 "install texlive-xetexfontinfo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetexfontinfo + CHECK_RESULT $? 0 0 "remove texlive-xetexfontinfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexko-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexko-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d50acf4249200b7ce76705e76b7c18056dd85950 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexko-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetexko-doc | grep -v \.src | grep texlive-xetexko-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetexko-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetexko-doc + CHECK_RESULT $? 0 0 "install texlive-xetexko-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetexko-doc + CHECK_RESULT $? 0 0 "remove texlive-xetexko-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexko.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexko.sh new file mode 100644 index 0000000000000000000000000000000000000000..b51dd3935afcbe2b130d5c13cc665009559378e9 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexko.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetexko | grep -v \.src | grep texlive-xetexko + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetexko" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetexko + CHECK_RESULT $? 0 0 "install texlive-xetexko failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetexko + CHECK_RESULT $? 0 0 "remove texlive-xetexko failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexref-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexref-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3062066a1162ce147e14177aadd649798eb27a31 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xetexref-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xetexref-doc | grep -v \.src | grep texlive-xetexref-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xetexref-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xetexref-doc + CHECK_RESULT $? 0 0 "install texlive-xetexref-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xetexref-doc + CHECK_RESULT $? 0 0 "remove texlive-xetexref-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xevlna-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xevlna-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..e78b587d2b2eebf0fcf1717ed23a02efc096a3fc --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xevlna-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xevlna-doc | grep -v \.src | grep texlive-xevlna-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xevlna-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xevlna-doc + CHECK_RESULT $? 0 0 "install texlive-xevlna-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xevlna-doc + CHECK_RESULT $? 0 0 "remove texlive-xevlna-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xevlna.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xevlna.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a6e8417343eb90e5e02392fc2c9c266afaec70b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xevlna.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xevlna | grep -v \.src | grep texlive-xevlna + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xevlna" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xevlna + CHECK_RESULT $? 0 0 "install texlive-xevlna failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xevlna + CHECK_RESULT $? 0 0 "remove texlive-xevlna failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xfakebold.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xfakebold.sh new file mode 100644 index 0000000000000000000000000000000000000000..3236e3bd44ef5bd5c0afa3771b048836363d0c89 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xfakebold.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xfakebold | grep -v \.src | grep texlive-xfakebold + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xfakebold" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xfakebold + CHECK_RESULT $? 0 0 "install texlive-xfakebold failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xfakebold + CHECK_RESULT $? 0 0 "remove texlive-xfakebold failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xfor-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xfor-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..878c9111dc85b972e5d083a4de506e170c6419a2 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xfor-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xfor-doc | grep -v \.src | grep texlive-xfor-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xfor-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xfor-doc + CHECK_RESULT $? 0 0 "install texlive-xfor-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xfor-doc + CHECK_RESULT $? 0 0 "remove texlive-xfor-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xfor.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xfor.sh new file mode 100644 index 0000000000000000000000000000000000000000..f443650938989349887083d3495f353a9472cbab --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xfor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xfor | grep -v \.src | grep texlive-xfor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xfor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xfor + CHECK_RESULT $? 0 0 "install texlive-xfor failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xfor + CHECK_RESULT $? 0 0 "remove texlive-xfor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xgreek-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xgreek-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a5f9a9e6f50653bc408286aa900ed7d2370317e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xgreek-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xgreek-doc | grep -v \.src | grep texlive-xgreek-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xgreek-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xgreek-doc + CHECK_RESULT $? 0 0 "install texlive-xgreek-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xgreek-doc + CHECK_RESULT $? 0 0 "remove texlive-xgreek-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xgreek.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xgreek.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7fa2c51b580965bafeaca6f1cadb183cc7d1b26 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xgreek.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xgreek | grep -v \.src | grep texlive-xgreek + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xgreek" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xgreek + CHECK_RESULT $? 0 0 "install texlive-xgreek failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xgreek + CHECK_RESULT $? 0 0 "remove texlive-xgreek failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xhfill-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xhfill-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f627ffcc08d7a7aeff2577fda20ff68734707a7d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xhfill-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xhfill-doc | grep -v \.src | grep texlive-xhfill-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xhfill-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xhfill-doc + CHECK_RESULT $? 0 0 "install texlive-xhfill-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xhfill-doc + CHECK_RESULT $? 0 0 "remove texlive-xhfill-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xhfill.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xhfill.sh new file mode 100644 index 0000000000000000000000000000000000000000..76d66bf7ed4434ab575f26b874ef8f4af68b05a4 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xhfill.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xhfill | grep -v \.src | grep texlive-xhfill + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xhfill" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xhfill + CHECK_RESULT $? 0 0 "install texlive-xhfill failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xhfill + CHECK_RESULT $? 0 0 "remove texlive-xhfill failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xifthen-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xifthen-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8fe780b0b06ffb6d380bd2882c13b95252de389 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xifthen-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xifthen-doc | grep -v \.src | grep texlive-xifthen-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xifthen-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xifthen-doc + CHECK_RESULT $? 0 0 "install texlive-xifthen-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xifthen-doc + CHECK_RESULT $? 0 0 "remove texlive-xifthen-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xifthen.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xifthen.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c7dcbad3f931b1fd014e5abf497625253ccef82 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xifthen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xifthen | grep -v \.src | grep texlive-xifthen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xifthen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xifthen + CHECK_RESULT $? 0 0 "install texlive-xifthen failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xifthen + CHECK_RESULT $? 0 0 "remove texlive-xifthen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xii-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xii-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..322cc25f897d38649a649250c03a1244e720f8e5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xii-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xii-doc | grep -v \.src | grep texlive-xii-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xii-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xii-doc + CHECK_RESULT $? 0 0 "install texlive-xii-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xii-doc + CHECK_RESULT $? 0 0 "remove texlive-xii-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xii-lat.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xii-lat.sh new file mode 100644 index 0000000000000000000000000000000000000000..c162dd8a658370305a4ac6f1908aad8848365321 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xii-lat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xii-lat | grep -v \.src | grep texlive-xii-lat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xii-lat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xii-lat + CHECK_RESULT $? 0 0 "install texlive-xii-lat failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xii-lat + CHECK_RESULT $? 0 0 "remove texlive-xii-lat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xint-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xint-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..340f01e9b45f8f2454ae1ff57eae1ae36bc6e4d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xint-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xint-doc | grep -v \.src | grep texlive-xint-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xint-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xint-doc + CHECK_RESULT $? 0 0 "install texlive-xint-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xint-doc + CHECK_RESULT $? 0 0 "remove texlive-xint-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xint.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xint.sh new file mode 100644 index 0000000000000000000000000000000000000000..0027c99c6e957c4113bfcdc183c016006be34477 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xint.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xint | grep -v \.src | grep texlive-xint + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xint" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xint + CHECK_RESULT $? 0 0 "install texlive-xint failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xint + CHECK_RESULT $? 0 0 "remove texlive-xint failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xits-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xits-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d1be2e1ef4a4370e89aba6023b7a8816a32d9a7 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xits-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xits-doc | grep -v \.src | grep texlive-xits-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xits-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xits-doc + CHECK_RESULT $? 0 0 "install texlive-xits-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xits-doc + CHECK_RESULT $? 0 0 "remove texlive-xits-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xits.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xits.sh new file mode 100644 index 0000000000000000000000000000000000000000..0602b5258b28fb6813d0eefdecf2e786e26b2763 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xits.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xits | grep -v \.src | grep texlive-xits + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xits" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xits + CHECK_RESULT $? 0 0 "install texlive-xits failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xits + CHECK_RESULT $? 0 0 "remove texlive-xits failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xkeyval-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xkeyval-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c58bbb626c50b6c6850dcd42890503c8ff15a95 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xkeyval-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xkeyval-doc | grep -v \.src | grep texlive-xkeyval-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xkeyval-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xkeyval-doc + CHECK_RESULT $? 0 0 "install texlive-xkeyval-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xkeyval-doc + CHECK_RESULT $? 0 0 "remove texlive-xkeyval-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xkeyval.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xkeyval.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb2ef085233385bfaf7a05cb1a7b6ab2c33ef2f7 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xkeyval.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xkeyval | grep -v \.src | grep texlive-xkeyval + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xkeyval" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xkeyval + CHECK_RESULT $? 0 0 "install texlive-xkeyval failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xkeyval + CHECK_RESULT $? 0 0 "remove texlive-xkeyval failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xlop-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xlop-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..410a09cd0822a5d3c0f79eef8ead7c12cb1ef85f --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xlop-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xlop-doc | grep -v \.src | grep texlive-xlop-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xlop-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xlop-doc + CHECK_RESULT $? 0 0 "install texlive-xlop-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xlop-doc + CHECK_RESULT $? 0 0 "remove texlive-xlop-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xlop.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xlop.sh new file mode 100644 index 0000000000000000000000000000000000000000..36c9dadade7d178ed73f8e895f329a4d0317f34b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xlop.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xlop | grep -v \.src | grep texlive-xlop + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xlop" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xlop + CHECK_RESULT $? 0 0 "install texlive-xlop failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xlop + CHECK_RESULT $? 0 0 "remove texlive-xlop failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xltabular.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xltabular.sh new file mode 100644 index 0000000000000000000000000000000000000000..e452a0f372d33d628729c84efb173e4f5d369ad4 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xltabular.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xltabular | grep -v \.src | grep texlive-xltabular + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xltabular" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xltabular + CHECK_RESULT $? 0 0 "install texlive-xltabular failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xltabular + CHECK_RESULT $? 0 0 "remove texlive-xltabular failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xltxtra-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xltxtra-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..dcd725cb97024fc303c3770cce8b7ee7355794ac --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xltxtra-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xltxtra-doc | grep -v \.src | grep texlive-xltxtra-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xltxtra-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xltxtra-doc + CHECK_RESULT $? 0 0 "install texlive-xltxtra-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xltxtra-doc + CHECK_RESULT $? 0 0 "remove texlive-xltxtra-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xltxtra.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xltxtra.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3b217e045d6218814a61b32f3f0b01770a8bf0d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xltxtra.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xltxtra | grep -v \.src | grep texlive-xltxtra + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xltxtra" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xltxtra + CHECK_RESULT $? 0 0 "install texlive-xltxtra failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xltxtra + CHECK_RESULT $? 0 0 "remove texlive-xltxtra failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xmltexconfig.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xmltexconfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a2f9b643d6afaad93d959120faf96abf52a0f84 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xmltexconfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xmltexconfig | grep -v \.src | grep texlive-xmltexconfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xmltexconfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xmltexconfig + CHECK_RESULT $? 0 0 "install texlive-xmltexconfig failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xmltexconfig + CHECK_RESULT $? 0 0 "remove texlive-xmltexconfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xmpincl-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xmpincl-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d408c5514fea1fbf57dacdbe83c07c09d279bbe --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xmpincl-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xmpincl-doc | grep -v \.src | grep texlive-xmpincl-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xmpincl-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xmpincl-doc + CHECK_RESULT $? 0 0 "install texlive-xmpincl-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xmpincl-doc + CHECK_RESULT $? 0 0 "remove texlive-xmpincl-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xmpincl.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xmpincl.sh new file mode 100644 index 0000000000000000000000000000000000000000..7779deb2fa6650c04293add32fe7e527abc7edf2 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xmpincl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xmpincl | grep -v \.src | grep texlive-xmpincl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xmpincl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xmpincl + CHECK_RESULT $? 0 0 "install texlive-xmpincl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xmpincl + CHECK_RESULT $? 0 0 "remove texlive-xmpincl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xnewcommand-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xnewcommand-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..efe2ee64fda9f57fbb6070fe3fd1b41db1f23e54 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xnewcommand-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xnewcommand-doc | grep -v \.src | grep texlive-xnewcommand-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xnewcommand-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xnewcommand-doc + CHECK_RESULT $? 0 0 "install texlive-xnewcommand-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xnewcommand-doc + CHECK_RESULT $? 0 0 "remove texlive-xnewcommand-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xnewcommand.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xnewcommand.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdfcc7672ef562fb5cdbe61141dc23817322562b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xnewcommand.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xnewcommand | grep -v \.src | grep texlive-xnewcommand + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xnewcommand" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xnewcommand + CHECK_RESULT $? 0 0 "install texlive-xnewcommand failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xnewcommand + CHECK_RESULT $? 0 0 "remove texlive-xnewcommand failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xoptarg-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xoptarg-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2aa73134fcbc0471ea7491eb207ed844e307fa00 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xoptarg-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xoptarg-doc | grep -v \.src | grep texlive-xoptarg-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xoptarg-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xoptarg-doc + CHECK_RESULT $? 0 0 "install texlive-xoptarg-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xoptarg-doc + CHECK_RESULT $? 0 0 "remove texlive-xoptarg-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xoptarg.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xoptarg.sh new file mode 100644 index 0000000000000000000000000000000000000000..f5e334734d8fc083a8d927ea41901fa542e12825 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xoptarg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xoptarg | grep -v \.src | grep texlive-xoptarg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xoptarg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xoptarg + CHECK_RESULT $? 0 0 "install texlive-xoptarg failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xoptarg + CHECK_RESULT $? 0 0 "remove texlive-xoptarg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpatch-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpatch-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..35d3941420d7245dcd4913fbcbf78b2b33b578d6 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpatch-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpatch-doc | grep -v \.src | grep texlive-xpatch-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpatch-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpatch-doc + CHECK_RESULT $? 0 0 "install texlive-xpatch-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpatch-doc + CHECK_RESULT $? 0 0 "remove texlive-xpatch-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpatch.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpatch.sh new file mode 100644 index 0000000000000000000000000000000000000000..71bd3bb310285be5c91395ec37fbfcb3ece94e10 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpatch.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpatch | grep -v \.src | grep texlive-xpatch + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpatch" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpatch + CHECK_RESULT $? 0 0 "install texlive-xpatch failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpatch + CHECK_RESULT $? 0 0 "remove texlive-xpatch failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpeek-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpeek-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f4dd180fe4ffc634c92ff5e70ff4c3e47ce2438 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpeek-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpeek-doc | grep -v \.src | grep texlive-xpeek-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpeek-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpeek-doc + CHECK_RESULT $? 0 0 "install texlive-xpeek-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpeek-doc + CHECK_RESULT $? 0 0 "remove texlive-xpeek-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpeek.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpeek.sh new file mode 100644 index 0000000000000000000000000000000000000000..c67dbda20170a320dd59740544c042e42accebba --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpeek.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpeek | grep -v \.src | grep texlive-xpeek + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpeek" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpeek + CHECK_RESULT $? 0 0 "install texlive-xpeek failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpeek + CHECK_RESULT $? 0 0 "remove texlive-xpeek failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpiano-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpiano-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..82f26f4980ab0966bf4412fc720d5d1586845a02 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpiano-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpiano-doc | grep -v \.src | grep texlive-xpiano-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpiano-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpiano-doc + CHECK_RESULT $? 0 0 "install texlive-xpiano-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpiano-doc + CHECK_RESULT $? 0 0 "remove texlive-xpiano-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpiano.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpiano.sh new file mode 100644 index 0000000000000000000000000000000000000000..a36b0bb430ed3d2584a9a11e4ca8df820b2d87a1 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpiano.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpiano | grep -v \.src | grep texlive-xpiano + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpiano" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpiano + CHECK_RESULT $? 0 0 "install texlive-xpiano failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpiano + CHECK_RESULT $? 0 0 "remove texlive-xpiano failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpicture-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpicture-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e41482ae7ec832fa578375617f38824dfc80844 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpicture-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpicture-doc | grep -v \.src | grep texlive-xpicture-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpicture-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpicture-doc + CHECK_RESULT $? 0 0 "install texlive-xpicture-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpicture-doc + CHECK_RESULT $? 0 0 "remove texlive-xpicture-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpicture.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpicture.sh new file mode 100644 index 0000000000000000000000000000000000000000..91510bba3d5ed11e19c0e14a41dc6911eb7058fe --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpicture.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpicture | grep -v \.src | grep texlive-xpicture + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpicture" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpicture + CHECK_RESULT $? 0 0 "install texlive-xpicture failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpicture + CHECK_RESULT $? 0 0 "remove texlive-xpicture failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpinyin-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpinyin-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..63918aad69013f5ab8c4a3f963273a23e75e1b5a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpinyin-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpinyin-doc | grep -v \.src | grep texlive-xpinyin-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpinyin-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpinyin-doc + CHECK_RESULT $? 0 0 "install texlive-xpinyin-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpinyin-doc + CHECK_RESULT $? 0 0 "remove texlive-xpinyin-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpinyin.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpinyin.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a5f1b4221446245bf52f96162d3b2135dd16ce9 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpinyin.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpinyin | grep -v \.src | grep texlive-xpinyin + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpinyin" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpinyin + CHECK_RESULT $? 0 0 "install texlive-xpinyin failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpinyin + CHECK_RESULT $? 0 0 "remove texlive-xpinyin failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xprintlen-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xprintlen-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1173d6e06bc8caaddfa6a3e8b697f42f62d29c86 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xprintlen-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xprintlen-doc | grep -v \.src | grep texlive-xprintlen-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xprintlen-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xprintlen-doc + CHECK_RESULT $? 0 0 "install texlive-xprintlen-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xprintlen-doc + CHECK_RESULT $? 0 0 "remove texlive-xprintlen-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xprintlen.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xprintlen.sh new file mode 100644 index 0000000000000000000000000000000000000000..03f93c0bdd0d19a092c78551305a9c6f872a015b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xprintlen.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xprintlen | grep -v \.src | grep texlive-xprintlen + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xprintlen" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xprintlen + CHECK_RESULT $? 0 0 "install texlive-xprintlen failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xprintlen + CHECK_RESULT $? 0 0 "remove texlive-xprintlen failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpunctuate-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpunctuate-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0d2d35413a06784553f3b67ff005c8f2bb495e7 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpunctuate-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpunctuate-doc | grep -v \.src | grep texlive-xpunctuate-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpunctuate-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpunctuate-doc + CHECK_RESULT $? 0 0 "install texlive-xpunctuate-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpunctuate-doc + CHECK_RESULT $? 0 0 "remove texlive-xpunctuate-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpunctuate.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpunctuate.sh new file mode 100644 index 0000000000000000000000000000000000000000..1bf3c18e5331363a380e60e81856f42d0af93f26 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xpunctuate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xpunctuate | grep -v \.src | grep texlive-xpunctuate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xpunctuate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xpunctuate + CHECK_RESULT $? 0 0 "install texlive-xpunctuate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xpunctuate + CHECK_RESULT $? 0 0 "remove texlive-xpunctuate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xq-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xq-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..756d19bcc0784ac715e002119e5547ecbf5205a9 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xq-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xq-doc | grep -v \.src | grep texlive-xq-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xq-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xq-doc + CHECK_RESULT $? 0 0 "install texlive-xq-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xq-doc + CHECK_RESULT $? 0 0 "remove texlive-xq-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xq.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xq.sh new file mode 100644 index 0000000000000000000000000000000000000000..b961a974ddd79f72a28babdaf3c94748611ef216 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xq.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xq | grep -v \.src | grep texlive-xq + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xq" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xq + CHECK_RESULT $? 0 0 "install texlive-xq failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xq + CHECK_RESULT $? 0 0 "remove texlive-xq failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xsavebox-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xsavebox-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a31d0fab7f154c61b7a49a9b7bb1edc159f9c31e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xsavebox-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xsavebox-doc | grep -v \.src | grep texlive-xsavebox-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xsavebox-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xsavebox-doc + CHECK_RESULT $? 0 0 "install texlive-xsavebox-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xsavebox-doc + CHECK_RESULT $? 0 0 "remove texlive-xsavebox-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xsavebox.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xsavebox.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b7c412542e18c1bdc2c93186a622a721daa4327 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xsavebox.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xsavebox | grep -v \.src | grep texlive-xsavebox + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xsavebox" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xsavebox + CHECK_RESULT $? 0 0 "install texlive-xsavebox failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xsavebox + CHECK_RESULT $? 0 0 "remove texlive-xsavebox failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xsim.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xsim.sh new file mode 100644 index 0000000000000000000000000000000000000000..c37de7fb16a1f5edc022faf2d7648d65bbb8e02f --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xsim.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xsim | grep -v \.src | grep texlive-xsim + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xsim" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xsim + CHECK_RESULT $? 0 0 "install texlive-xsim failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xsim + CHECK_RESULT $? 0 0 "remove texlive-xsim failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xskak-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xskak-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1c5da4c7e3728b26a203992bd7790295da7673b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xskak-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xskak-doc | grep -v \.src | grep texlive-xskak-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xskak-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xskak-doc + CHECK_RESULT $? 0 0 "install texlive-xskak-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xskak-doc + CHECK_RESULT $? 0 0 "remove texlive-xskak-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xskak.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xskak.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b23e1d01b4d9a7a2221dc39b8c87e4fdadcd507 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xskak.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xskak | grep -v \.src | grep texlive-xskak + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xskak" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xskak + CHECK_RESULT $? 0 0 "install texlive-xskak failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xskak + CHECK_RESULT $? 0 0 "remove texlive-xskak failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xstring-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xstring-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..ddd24788e5d737ea1eaa922e7b4d5fbe12b1a547 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xstring-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xstring-doc | grep -v \.src | grep texlive-xstring-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xstring-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xstring-doc + CHECK_RESULT $? 0 0 "install texlive-xstring-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xstring-doc + CHECK_RESULT $? 0 0 "remove texlive-xstring-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xstring.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xstring.sh new file mode 100644 index 0000000000000000000000000000000000000000..be98ec060978449bdbf3fdc45d095e4f29ff5582 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xstring.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xstring | grep -v \.src | grep texlive-xstring + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xstring" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xstring + CHECK_RESULT $? 0 0 "install texlive-xstring failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xstring + CHECK_RESULT $? 0 0 "remove texlive-xstring failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xtab-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xtab-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4fd06889b9dd13865caa15a5ca44f8b619d416e2 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xtab-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xtab-doc | grep -v \.src | grep texlive-xtab-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xtab-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xtab-doc + CHECK_RESULT $? 0 0 "install texlive-xtab-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xtab-doc + CHECK_RESULT $? 0 0 "remove texlive-xtab-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xtab.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xtab.sh new file mode 100644 index 0000000000000000000000000000000000000000..5607a56184bdec01b066c78ace33747635557e7c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xtab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xtab | grep -v \.src | grep texlive-xtab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xtab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xtab + CHECK_RESULT $? 0 0 "install texlive-xtab failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xtab + CHECK_RESULT $? 0 0 "remove texlive-xtab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xtuthesis.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xtuthesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0d999b5cbe3cb66059da8adf0ddc43d1ff3142c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xtuthesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xtuthesis | grep -v \.src | grep texlive-xtuthesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xtuthesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xtuthesis + CHECK_RESULT $? 0 0 "install texlive-xtuthesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xtuthesis + CHECK_RESULT $? 0 0 "remove texlive-xtuthesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xunicode-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xunicode-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8c84492140f7296ef82630f49a1ce6f46864a9c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xunicode-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xunicode-doc | grep -v \.src | grep texlive-xunicode-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xunicode-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xunicode-doc + CHECK_RESULT $? 0 0 "install texlive-xunicode-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xunicode-doc + CHECK_RESULT $? 0 0 "remove texlive-xunicode-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xunicode.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xunicode.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7b098590a5c356efba47a9656a362e8d4f55979 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xunicode.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xunicode | grep -v \.src | grep texlive-xunicode + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xunicode" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xunicode + CHECK_RESULT $? 0 0 "install texlive-xunicode failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xunicode + CHECK_RESULT $? 0 0 "remove texlive-xunicode failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xurl.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xurl.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a35a54b60f996fa77a593759ba8ee086b3d8482 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xurl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xurl | grep -v \.src | grep texlive-xurl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xurl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xurl + CHECK_RESULT $? 0 0 "install texlive-xurl failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xurl + CHECK_RESULT $? 0 0 "remove texlive-xurl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xwatermark-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xwatermark-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..48d40e556e448283c09f1a7b9de3b9a758f3ed82 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xwatermark-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xwatermark-doc | grep -v \.src | grep texlive-xwatermark-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xwatermark-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xwatermark-doc + CHECK_RESULT $? 0 0 "install texlive-xwatermark-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xwatermark-doc + CHECK_RESULT $? 0 0 "remove texlive-xwatermark-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xwatermark.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xwatermark.sh new file mode 100644 index 0000000000000000000000000000000000000000..0246c90fd00fd222e4c95a360937f29c48789e46 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xwatermark.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xwatermark | grep -v \.src | grep texlive-xwatermark + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xwatermark" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xwatermark + CHECK_RESULT $? 0 0 "install texlive-xwatermark failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xwatermark + CHECK_RESULT $? 0 0 "remove texlive-xwatermark failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xyling-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xyling-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..996717c7fef8ce39751d838b8dfbff047b1effe6 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xyling-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xyling-doc | grep -v \.src | grep texlive-xyling-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xyling-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xyling-doc + CHECK_RESULT $? 0 0 "install texlive-xyling-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xyling-doc + CHECK_RESULT $? 0 0 "remove texlive-xyling-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xyling.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xyling.sh new file mode 100644 index 0000000000000000000000000000000000000000..88ffcce321dcee0047974e8efce831af5f0868de --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xyling.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xyling | grep -v \.src | grep texlive-xyling + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xyling" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xyling + CHECK_RESULT $? 0 0 "install texlive-xyling failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xyling + CHECK_RESULT $? 0 0 "remove texlive-xyling failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xymtex-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xymtex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..214769f7871ef7cd24f803371bad49528af517c2 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xymtex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xymtex-doc | grep -v \.src | grep texlive-xymtex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xymtex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xymtex-doc + CHECK_RESULT $? 0 0 "install texlive-xymtex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xymtex-doc + CHECK_RESULT $? 0 0 "remove texlive-xymtex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xymtex.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xymtex.sh new file mode 100644 index 0000000000000000000000000000000000000000..c22b7345a166a0cdcf89978a840b043a6d66394c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xymtex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xymtex | grep -v \.src | grep texlive-xymtex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xymtex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xymtex + CHECK_RESULT $? 0 0 "install texlive-xymtex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xymtex + CHECK_RESULT $? 0 0 "remove texlive-xymtex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xypic-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xypic-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf6005cf4bda157ee9956279568e492c31d621b8 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xypic-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xypic-doc | grep -v \.src | grep texlive-xypic-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xypic-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xypic-doc + CHECK_RESULT $? 0 0 "install texlive-xypic-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xypic-doc + CHECK_RESULT $? 0 0 "remove texlive-xypic-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xypic-tut-pt-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xypic-tut-pt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..905aac8c0d24ca83be613850773fc615a212b02a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xypic-tut-pt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xypic-tut-pt-doc | grep -v \.src | grep texlive-xypic-tut-pt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xypic-tut-pt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xypic-tut-pt-doc + CHECK_RESULT $? 0 0 "install texlive-xypic-tut-pt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xypic-tut-pt-doc + CHECK_RESULT $? 0 0 "remove texlive-xypic-tut-pt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xypic.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xypic.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae33a9ee74b79da9c7b0f3357fb43f191221ed43 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xypic.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xypic | grep -v \.src | grep texlive-xypic + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xypic" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xypic + CHECK_RESULT $? 0 0 "install texlive-xypic failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xypic + CHECK_RESULT $? 0 0 "remove texlive-xypic failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xytree-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xytree-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3746b27df0d366a40457eaeb2c6a7c1ae17ef284 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xytree-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xytree-doc | grep -v \.src | grep texlive-xytree-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xytree-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xytree-doc + CHECK_RESULT $? 0 0 "install texlive-xytree-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xytree-doc + CHECK_RESULT $? 0 0 "remove texlive-xytree-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xytree.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xytree.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd9a08a8691449f99a923d7f0542826a033d8aa3 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-xytree.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-xytree | grep -v \.src | grep texlive-xytree + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-xytree" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-xytree + CHECK_RESULT $? 0 0 "install texlive-xytree failed" + SLEEP_WAIT 1 + dnf remove -y texlive-xytree + CHECK_RESULT $? 0 0 "remove texlive-xytree failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yafoot-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yafoot-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cace2253d5f4c4d5247b97528d9d59b59435614b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yafoot-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yafoot-doc | grep -v \.src | grep texlive-yafoot-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yafoot-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yafoot-doc + CHECK_RESULT $? 0 0 "install texlive-yafoot-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yafoot-doc + CHECK_RESULT $? 0 0 "remove texlive-yafoot-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yafoot.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yafoot.sh new file mode 100644 index 0000000000000000000000000000000000000000..af9d1e5d569489b06fabc08b63fe0243f9fda2ce --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yafoot.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yafoot | grep -v \.src | grep texlive-yafoot + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yafoot" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yafoot + CHECK_RESULT $? 0 0 "install texlive-yafoot failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yafoot + CHECK_RESULT $? 0 0 "remove texlive-yafoot failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yagusylo-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yagusylo-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..752f39d6a91fbcc7912605c2ca8961082165fea6 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yagusylo-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yagusylo-doc | grep -v \.src | grep texlive-yagusylo-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yagusylo-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yagusylo-doc + CHECK_RESULT $? 0 0 "install texlive-yagusylo-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yagusylo-doc + CHECK_RESULT $? 0 0 "remove texlive-yagusylo-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yagusylo.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yagusylo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf413dc594cbe25659577474a93df3132390ca55 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yagusylo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yagusylo | grep -v \.src | grep texlive-yagusylo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yagusylo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yagusylo + CHECK_RESULT $? 0 0 "install texlive-yagusylo failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yagusylo + CHECK_RESULT $? 0 0 "remove texlive-yagusylo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yaletter.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yaletter.sh new file mode 100644 index 0000000000000000000000000000000000000000..82e24bc5ca200e05c47b13c04a528a5c9c25748b --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yaletter.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yaletter | grep -v \.src | grep texlive-yaletter + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yaletter" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yaletter + CHECK_RESULT $? 0 0 "install texlive-yaletter failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yaletter + CHECK_RESULT $? 0 0 "remove texlive-yaletter failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yannisgr-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yannisgr-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f752b329fd8e8b1356107d33f5798852342d691 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yannisgr-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yannisgr-doc | grep -v \.src | grep texlive-yannisgr-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yannisgr-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yannisgr-doc + CHECK_RESULT $? 0 0 "install texlive-yannisgr-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yannisgr-doc + CHECK_RESULT $? 0 0 "remove texlive-yannisgr-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yannisgr.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yannisgr.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2f42940542b355b66ec2d4c49a0922c874c78b4 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yannisgr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yannisgr | grep -v \.src | grep texlive-yannisgr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yannisgr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yannisgr + CHECK_RESULT $? 0 0 "install texlive-yannisgr failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yannisgr + CHECK_RESULT $? 0 0 "remove texlive-yannisgr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yathesis-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yathesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc37fa9ddd75482976d745ba3948e22c13123364 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yathesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yathesis-doc | grep -v \.src | grep texlive-yathesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yathesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yathesis-doc + CHECK_RESULT $? 0 0 "install texlive-yathesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yathesis-doc + CHECK_RESULT $? 0 0 "remove texlive-yathesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yathesis.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yathesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfec5a9492cfa6cf8de1f872c3b967bbce3656e6 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yathesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yathesis | grep -v \.src | grep texlive-yathesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yathesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yathesis + CHECK_RESULT $? 0 0 "install texlive-yathesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yathesis + CHECK_RESULT $? 0 0 "remove texlive-yathesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yax-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yax-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..848e5b03ee97404e02f09aff8f2557d820393227 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yax-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yax-doc | grep -v \.src | grep texlive-yax-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yax-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yax-doc + CHECK_RESULT $? 0 0 "install texlive-yax-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yax-doc + CHECK_RESULT $? 0 0 "remove texlive-yax-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yax.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yax.sh new file mode 100644 index 0000000000000000000000000000000000000000..11f4a50ab05562513604c058687e78285abe5c69 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yax.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yax | grep -v \.src | grep texlive-yax + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yax" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yax + CHECK_RESULT $? 0 0 "install texlive-yax failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yax + CHECK_RESULT $? 0 0 "remove texlive-yax failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ycbook-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ycbook-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a379c7a246cf647ba2eb9b06ab2d1b5a44bb617 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ycbook-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ycbook-doc | grep -v \.src | grep texlive-ycbook-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ycbook-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ycbook-doc + CHECK_RESULT $? 0 0 "install texlive-ycbook-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ycbook-doc + CHECK_RESULT $? 0 0 "remove texlive-ycbook-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ycbook.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ycbook.sh new file mode 100644 index 0000000000000000000000000000000000000000..224e3afcd95aad89c6f96d2b313ea1172166e3af --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ycbook.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ycbook | grep -v \.src | grep texlive-ycbook + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ycbook" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ycbook + CHECK_RESULT $? 0 0 "install texlive-ycbook failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ycbook + CHECK_RESULT $? 0 0 "remove texlive-ycbook failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ydoc-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ydoc-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..b88433cec8ffa44b0dfa0440e5fe026120989288 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ydoc-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ydoc-doc | grep -v \.src | grep texlive-ydoc-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ydoc-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ydoc-doc + CHECK_RESULT $? 0 0 "install texlive-ydoc-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ydoc-doc + CHECK_RESULT $? 0 0 "remove texlive-ydoc-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ydoc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ydoc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c932d93765feb2250d9d045e4bcbe37de1ce7148 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ydoc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ydoc | grep -v \.src | grep texlive-ydoc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ydoc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ydoc + CHECK_RESULT $? 0 0 "install texlive-ydoc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ydoc + CHECK_RESULT $? 0 0 "remove texlive-ydoc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b42f3a9b2fd594727f3ac138c218f02649609ab --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yfonts-doc | grep -v \.src | grep texlive-yfonts-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yfonts-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yfonts-doc + CHECK_RESULT $? 0 0 "install texlive-yfonts-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yfonts-doc + CHECK_RESULT $? 0 0 "remove texlive-yfonts-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts-t1-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts-t1-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..eac0060b258c5a92d6b5fdfc33b050b2b0d2cb6f --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts-t1-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yfonts-t1-doc | grep -v \.src | grep texlive-yfonts-t1-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yfonts-t1-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yfonts-t1-doc + CHECK_RESULT $? 0 0 "install texlive-yfonts-t1-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yfonts-t1-doc + CHECK_RESULT $? 0 0 "remove texlive-yfonts-t1-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts-t1.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts-t1.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5c8d652ee3ca44ddcbbc7136e5a1abb21ded906 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts-t1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yfonts-t1 | grep -v \.src | grep texlive-yfonts-t1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yfonts-t1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yfonts-t1 + CHECK_RESULT $? 0 0 "install texlive-yfonts-t1 failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yfonts-t1 + CHECK_RESULT $? 0 0 "remove texlive-yfonts-t1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..c93bf448b29e78a91104360b04be198b93d5f535 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yfonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yfonts | grep -v \.src | grep texlive-yfonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yfonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yfonts + CHECK_RESULT $? 0 0 "install texlive-yfonts failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yfonts + CHECK_RESULT $? 0 0 "remove texlive-yfonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yhmath-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yhmath-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..424add1d7c0b958fe9dda0678ba244c07ea942da --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yhmath-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yhmath-doc | grep -v \.src | grep texlive-yhmath-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yhmath-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yhmath-doc + CHECK_RESULT $? 0 0 "install texlive-yhmath-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yhmath-doc + CHECK_RESULT $? 0 0 "remove texlive-yhmath-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yhmath.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yhmath.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ffa74908a473f4291c5bc834587444ec8026b5a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yhmath.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yhmath | grep -v \.src | grep texlive-yhmath + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yhmath" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yhmath + CHECK_RESULT $? 0 0 "install texlive-yhmath failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yhmath + CHECK_RESULT $? 0 0 "remove texlive-yhmath failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yinit-otf-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yinit-otf-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..14a5508a6aadff98dad85478c9efa752323a97a1 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yinit-otf-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yinit-otf-doc | grep -v \.src | grep texlive-yinit-otf-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yinit-otf-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yinit-otf-doc + CHECK_RESULT $? 0 0 "install texlive-yinit-otf-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yinit-otf-doc + CHECK_RESULT $? 0 0 "remove texlive-yinit-otf-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yinit-otf.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yinit-otf.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9de3c2aa52860dd42aa82b586c111e84068a62d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-yinit-otf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-yinit-otf | grep -v \.src | grep texlive-yinit-otf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-yinit-otf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-yinit-otf + CHECK_RESULT $? 0 0 "install texlive-yinit-otf failed" + SLEEP_WAIT 1 + dnf remove -y texlive-yinit-otf + CHECK_RESULT $? 0 0 "remove texlive-yinit-otf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-york-thesis-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-york-thesis-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bc070bb985ebc1db229f6f0d479fc58af289f96 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-york-thesis-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-york-thesis-doc | grep -v \.src | grep texlive-york-thesis-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-york-thesis-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-york-thesis-doc + CHECK_RESULT $? 0 0 "install texlive-york-thesis-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-york-thesis-doc + CHECK_RESULT $? 0 0 "remove texlive-york-thesis-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-york-thesis.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-york-thesis.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b0c0a581d9ca9ca324b6b0efe40e14dd71c8a0a --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-york-thesis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-york-thesis | grep -v \.src | grep texlive-york-thesis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-york-thesis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-york-thesis + CHECK_RESULT $? 0 0 "install texlive-york-thesis failed" + SLEEP_WAIT 1 + dnf remove -y texlive-york-thesis + CHECK_RESULT $? 0 0 "remove texlive-york-thesis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-youngtab-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-youngtab-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a398daee3522dbdeb09381125f5ceab45aad472d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-youngtab-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-youngtab-doc | grep -v \.src | grep texlive-youngtab-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-youngtab-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-youngtab-doc + CHECK_RESULT $? 0 0 "install texlive-youngtab-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-youngtab-doc + CHECK_RESULT $? 0 0 "remove texlive-youngtab-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-youngtab.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-youngtab.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cb73e9c7c77841b2dc1b9cc1bb58605aa8b7bb3 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-youngtab.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-youngtab | grep -v \.src | grep texlive-youngtab + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-youngtab" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-youngtab + CHECK_RESULT $? 0 0 "install texlive-youngtab failed" + SLEEP_WAIT 1 + dnf remove -y texlive-youngtab + CHECK_RESULT $? 0 0 "remove texlive-youngtab failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ytableau-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ytableau-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6e747888f1c6c2011c64afff2bfe712d99923d8 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ytableau-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ytableau-doc | grep -v \.src | grep texlive-ytableau-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ytableau-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ytableau-doc + CHECK_RESULT $? 0 0 "install texlive-ytableau-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ytableau-doc + CHECK_RESULT $? 0 0 "remove texlive-ytableau-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ytableau.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ytableau.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c8e4094325f5744f1d5272582c096a302e36712 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ytableau.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ytableau | grep -v \.src | grep texlive-ytableau + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ytableau" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ytableau + CHECK_RESULT $? 0 0 "install texlive-ytableau failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ytableau + CHECK_RESULT $? 0 0 "remove texlive-ytableau failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zapfchan.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zapfchan.sh new file mode 100644 index 0000000000000000000000000000000000000000..1712fef3301c477500b5eb504a20eb8cba07d4a0 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zapfchan.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zapfchan | grep -v \.src | grep texlive-zapfchan + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zapfchan" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zapfchan + CHECK_RESULT $? 0 0 "install texlive-zapfchan failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zapfchan + CHECK_RESULT $? 0 0 "remove texlive-zapfchan failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zapfding.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zapfding.sh new file mode 100644 index 0000000000000000000000000000000000000000..078607789406133d9060c11b7c9da777b8837ce2 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zapfding.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zapfding | grep -v \.src | grep texlive-zapfding + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zapfding" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zapfding + CHECK_RESULT $? 0 0 "install texlive-zapfding failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zapfding + CHECK_RESULT $? 0 0 "remove texlive-zapfding failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zebra-goodies.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zebra-goodies.sh new file mode 100644 index 0000000000000000000000000000000000000000..161b8ed07592e9b390415fd158952ee578eb3b03 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zebra-goodies.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zebra-goodies | grep -v \.src | grep texlive-zebra-goodies + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zebra-goodies" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zebra-goodies + CHECK_RESULT $? 0 0 "install texlive-zebra-goodies failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zebra-goodies + CHECK_RESULT $? 0 0 "remove texlive-zebra-goodies failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zed-csp-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zed-csp-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..df364c4cafff9aaef31b134ab9b4deefb343fdee --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zed-csp-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zed-csp-doc | grep -v \.src | grep texlive-zed-csp-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zed-csp-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zed-csp-doc + CHECK_RESULT $? 0 0 "install texlive-zed-csp-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zed-csp-doc + CHECK_RESULT $? 0 0 "remove texlive-zed-csp-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zed-csp.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zed-csp.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb15193a1c316637a410c21744e347d31cf0d0f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zed-csp.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zed-csp | grep -v \.src | grep texlive-zed-csp + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zed-csp" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zed-csp + CHECK_RESULT $? 0 0 "install texlive-zed-csp failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zed-csp + CHECK_RESULT $? 0 0 "remove texlive-zed-csp failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhlipsum.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhlipsum.sh new file mode 100644 index 0000000000000000000000000000000000000000..c762cd2e73dee628ed83e496eaed6dd770cf2585 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhlipsum.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zhlipsum | grep -v \.src | grep texlive-zhlipsum + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zhlipsum" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zhlipsum + CHECK_RESULT $? 0 0 "install texlive-zhlipsum failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zhlipsum + CHECK_RESULT $? 0 0 "remove texlive-zhlipsum failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e0e190c92676208e0ea983c534a361a643391fc --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zhmetrics-doc | grep -v \.src | grep texlive-zhmetrics-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zhmetrics-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zhmetrics-doc + CHECK_RESULT $? 0 0 "install texlive-zhmetrics-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zhmetrics-doc + CHECK_RESULT $? 0 0 "remove texlive-zhmetrics-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-uptex-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-uptex-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..96dd3e4d826f4e18b2a69d6320c888b5302a9aa1 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-uptex-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zhmetrics-uptex-doc | grep -v \.src | grep texlive-zhmetrics-uptex-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zhmetrics-uptex-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zhmetrics-uptex-doc + CHECK_RESULT $? 0 0 "install texlive-zhmetrics-uptex-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zhmetrics-uptex-doc + CHECK_RESULT $? 0 0 "remove texlive-zhmetrics-uptex-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-uptex.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-uptex.sh new file mode 100644 index 0000000000000000000000000000000000000000..276452c96313d4b9c343c9643246778432c37d26 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics-uptex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zhmetrics-uptex | grep -v \.src | grep texlive-zhmetrics-uptex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zhmetrics-uptex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zhmetrics-uptex + CHECK_RESULT $? 0 0 "install texlive-zhmetrics-uptex failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zhmetrics-uptex + CHECK_RESULT $? 0 0 "remove texlive-zhmetrics-uptex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics.sh new file mode 100644 index 0000000000000000000000000000000000000000..e08d6787c0a57d9d07822c3d8fcfcb3b4a806123 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhmetrics.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zhmetrics | grep -v \.src | grep texlive-zhmetrics + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zhmetrics" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zhmetrics + CHECK_RESULT $? 0 0 "install texlive-zhmetrics failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zhmetrics + CHECK_RESULT $? 0 0 "remove texlive-zhmetrics failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhnumber-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhnumber-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd5c65e3eca37374f153cd17adcabc14f249f170 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhnumber-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zhnumber-doc | grep -v \.src | grep texlive-zhnumber-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zhnumber-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zhnumber-doc + CHECK_RESULT $? 0 0 "install texlive-zhnumber-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zhnumber-doc + CHECK_RESULT $? 0 0 "remove texlive-zhnumber-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhnumber.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhnumber.sh new file mode 100644 index 0000000000000000000000000000000000000000..508cf33609da2b3a2193430d2a3fd27366ef5ee2 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhnumber.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zhnumber | grep -v \.src | grep texlive-zhnumber + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zhnumber" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zhnumber + CHECK_RESULT $? 0 0 "install texlive-zhnumber failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zhnumber + CHECK_RESULT $? 0 0 "remove texlive-zhnumber failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhspacing-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhspacing-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..926109ba6d649a66dacb18d7db260548a4033533 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhspacing-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zhspacing-doc | grep -v \.src | grep texlive-zhspacing-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zhspacing-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zhspacing-doc + CHECK_RESULT $? 0 0 "install texlive-zhspacing-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zhspacing-doc + CHECK_RESULT $? 0 0 "remove texlive-zhspacing-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhspacing.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhspacing.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fec828ee948350e27a713c9858bf1b1ea9cc070 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zhspacing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zhspacing | grep -v \.src | grep texlive-zhspacing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zhspacing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zhspacing + CHECK_RESULT $? 0 0 "install texlive-zhspacing failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zhspacing + CHECK_RESULT $? 0 0 "remove texlive-zhspacing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ziffer-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ziffer-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..65d2c261a14549d696068cd3217d1c9e41c99bd4 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ziffer-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ziffer-doc | grep -v \.src | grep texlive-ziffer-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ziffer-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ziffer-doc + CHECK_RESULT $? 0 0 "install texlive-ziffer-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ziffer-doc + CHECK_RESULT $? 0 0 "remove texlive-ziffer-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ziffer.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ziffer.sh new file mode 100644 index 0000000000000000000000000000000000000000..89f83334b683c875bba94345fe58300880cd0c3c --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-ziffer.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-ziffer | grep -v \.src | grep texlive-ziffer + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-ziffer" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-ziffer + CHECK_RESULT $? 0 0 "install texlive-ziffer failed" + SLEEP_WAIT 1 + dnf remove -y texlive-ziffer + CHECK_RESULT $? 0 0 "remove texlive-ziffer failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zlmtt-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zlmtt-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a55b4a95fe17bfdb9f1249fb0a4f4da37f805ca5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zlmtt-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zlmtt-doc | grep -v \.src | grep texlive-zlmtt-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zlmtt-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zlmtt-doc + CHECK_RESULT $? 0 0 "install texlive-zlmtt-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zlmtt-doc + CHECK_RESULT $? 0 0 "remove texlive-zlmtt-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zlmtt.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zlmtt.sh new file mode 100644 index 0000000000000000000000000000000000000000..4851d67b15cbcf3218706efdec532c90d5f7368e --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zlmtt.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zlmtt | grep -v \.src | grep texlive-zlmtt + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zlmtt" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zlmtt + CHECK_RESULT $? 0 0 "install texlive-zlmtt failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zlmtt + CHECK_RESULT $? 0 0 "remove texlive-zlmtt failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zootaxa-bst.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zootaxa-bst.sh new file mode 100644 index 0000000000000000000000000000000000000000..5458cede7a85534cf84a1674a60203fbc55ad034 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zootaxa-bst.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zootaxa-bst | grep -v \.src | grep texlive-zootaxa-bst + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zootaxa-bst" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zootaxa-bst + CHECK_RESULT $? 0 0 "install texlive-zootaxa-bst failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zootaxa-bst + CHECK_RESULT $? 0 0 "remove texlive-zootaxa-bst failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwgetfdate-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwgetfdate-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b6843c834427b5442143ca179684f70fb540143 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwgetfdate-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zwgetfdate-doc | grep -v \.src | grep texlive-zwgetfdate-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zwgetfdate-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zwgetfdate-doc + CHECK_RESULT $? 0 0 "install texlive-zwgetfdate-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zwgetfdate-doc + CHECK_RESULT $? 0 0 "remove texlive-zwgetfdate-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwgetfdate.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwgetfdate.sh new file mode 100644 index 0000000000000000000000000000000000000000..54bd23e02eb307c816c928fd0bcc06255b19837d --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwgetfdate.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zwgetfdate | grep -v \.src | grep texlive-zwgetfdate + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zwgetfdate" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zwgetfdate + CHECK_RESULT $? 0 0 "install texlive-zwgetfdate failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zwgetfdate + CHECK_RESULT $? 0 0 "remove texlive-zwgetfdate failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwpagelayout-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwpagelayout-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6df468a06a31b0bcc31ff9b8a8bd2c918da44f5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwpagelayout-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zwpagelayout-doc | grep -v \.src | grep texlive-zwpagelayout-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zwpagelayout-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zwpagelayout-doc + CHECK_RESULT $? 0 0 "install texlive-zwpagelayout-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zwpagelayout-doc + CHECK_RESULT $? 0 0 "remove texlive-zwpagelayout-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwpagelayout.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwpagelayout.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5793e0b176399b851245dc28e513a3e1f192735 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zwpagelayout.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zwpagelayout | grep -v \.src | grep texlive-zwpagelayout + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zwpagelayout" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zwpagelayout + CHECK_RESULT $? 0 0 "install texlive-zwpagelayout failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zwpagelayout + CHECK_RESULT $? 0 0 "remove texlive-zwpagelayout failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafbfont-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafbfont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..7245b343a8a11cdc5dc1dab0175fdaef2da426ff --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafbfont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zxjafbfont-doc | grep -v \.src | grep texlive-zxjafbfont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zxjafbfont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zxjafbfont-doc + CHECK_RESULT $? 0 0 "install texlive-zxjafbfont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zxjafbfont-doc + CHECK_RESULT $? 0 0 "remove texlive-zxjafbfont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafbfont.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafbfont.sh new file mode 100644 index 0000000000000000000000000000000000000000..442151d65dd5b88b0ee790b26fcfb528c4a19abc --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafbfont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zxjafbfont | grep -v \.src | grep texlive-zxjafbfont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zxjafbfont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zxjafbfont + CHECK_RESULT $? 0 0 "install texlive-zxjafbfont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zxjafbfont + CHECK_RESULT $? 0 0 "remove texlive-zxjafbfont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafont-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafont-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9f72d94166fe420175a8ab64f0ce218e0eb72c5 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafont-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zxjafont-doc | grep -v \.src | grep texlive-zxjafont-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zxjafont-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zxjafont-doc + CHECK_RESULT $? 0 0 "install texlive-zxjafont-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zxjafont-doc + CHECK_RESULT $? 0 0 "remove texlive-zxjafont-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafont.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafont.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f5ca4635770fe3775d142d0d7aa32448ff84055 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjafont.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zxjafont | grep -v \.src | grep texlive-zxjafont + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zxjafont" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zxjafont + CHECK_RESULT $? 0 0 "install texlive-zxjafont failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zxjafont + CHECK_RESULT $? 0 0 "remove texlive-zxjafont failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjatype-doc.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjatype-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b01590d8c54f718c93ee0d4754a56002dffff40 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjatype-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zxjatype-doc | grep -v \.src | grep texlive-zxjatype-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zxjatype-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zxjatype-doc + CHECK_RESULT $? 0 0 "install texlive-zxjatype-doc failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zxjatype-doc + CHECK_RESULT $? 0 0 "remove texlive-zxjatype-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjatype.sh b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjatype.sh new file mode 100644 index 0000000000000000000000000000000000000000..75672fd30ce68eeef14b00e44acde010587c9fe9 --- /dev/null +++ b/testcases/cli-test/texlive-split-z/oe_test_texlive-split-z_install_and_remove_texlive-zxjatype.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src texlive-split-z +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available texlive-zxjatype | grep -v \.src | grep texlive-zxjatype + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm texlive-zxjatype" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y texlive-zxjatype + CHECK_RESULT $? 0 0 "install texlive-zxjatype failed" + SLEEP_WAIT 1 + dnf remove -y texlive-zxjatype + CHECK_RESULT $? 0 0 "remove texlive-zxjatype failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-debuginfo.sh b/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..66e84b04398813921048dbc2b7ff53b79a892c9d --- /dev/null +++ b/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src thin-provisioning-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available thin-provisioning-tools-debuginfo | grep -v \.src | grep thin-provisioning-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm thin-provisioning-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y thin-provisioning-tools-debuginfo + CHECK_RESULT $? 0 0 "install thin-provisioning-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y thin-provisioning-tools-debuginfo + CHECK_RESULT $? 0 0 "remove thin-provisioning-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-debugsource.sh b/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8a9c627a8811d5577cee681abf29e3374188507 --- /dev/null +++ b/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src thin-provisioning-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available thin-provisioning-tools-debugsource | grep -v \.src | grep thin-provisioning-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm thin-provisioning-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y thin-provisioning-tools-debugsource + CHECK_RESULT $? 0 0 "install thin-provisioning-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y thin-provisioning-tools-debugsource + CHECK_RESULT $? 0 0 "remove thin-provisioning-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-help.sh b/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9145962e0e2ecb73fa0c920485cd934a2a4ff201 --- /dev/null +++ b/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src thin-provisioning-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available thin-provisioning-tools-help | grep -v \.src | grep thin-provisioning-tools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm thin-provisioning-tools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y thin-provisioning-tools-help + CHECK_RESULT $? 0 0 "install thin-provisioning-tools-help failed" + SLEEP_WAIT 1 + dnf remove -y thin-provisioning-tools-help + CHECK_RESULT $? 0 0 "remove thin-provisioning-tools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools.sh b/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e90428056d1885caf45fe3438483f8e8856b946 --- /dev/null +++ b/testcases/cli-test/thin-provisioning-tools/oe_test_thin-provisioning-tools_install_and_remove_thin-provisioning-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src thin-provisioning-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available thin-provisioning-tools | grep -v \.src | grep thin-provisioning-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm thin-provisioning-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y thin-provisioning-tools + CHECK_RESULT $? 0 0 "install thin-provisioning-tools failed" + SLEEP_WAIT 1 + dnf remove -y thin-provisioning-tools + CHECK_RESULT $? 0 0 "remove thin-provisioning-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-debuginfo.sh b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..53f4545444344f59a6a9e8f38e2af8c35eb3f876 --- /dev/null +++ b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tigervnc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tigervnc-debuginfo | grep -v \.src | grep tigervnc-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tigervnc-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tigervnc-debuginfo + CHECK_RESULT $? 0 0 "install tigervnc-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tigervnc-debuginfo + CHECK_RESULT $? 0 0 "remove tigervnc-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-debugsource.sh b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e5c027fa900a815600fed9b0e3a78011b727c6f --- /dev/null +++ b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tigervnc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tigervnc-debugsource | grep -v \.src | grep tigervnc-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tigervnc-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tigervnc-debugsource + CHECK_RESULT $? 0 0 "install tigervnc-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tigervnc-debugsource + CHECK_RESULT $? 0 0 "remove tigervnc-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-help.sh b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a1becbcd94f8246329dcd8551b53f935c7d074ba --- /dev/null +++ b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tigervnc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tigervnc-help | grep -v \.src | grep tigervnc-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tigervnc-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tigervnc-help + CHECK_RESULT $? 0 0 "install tigervnc-help failed" + SLEEP_WAIT 1 + dnf remove -y tigervnc-help + CHECK_RESULT $? 0 0 "remove tigervnc-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-license.sh b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-license.sh new file mode 100644 index 0000000000000000000000000000000000000000..2cd670ac8091b30133e42d5a1dc4e28d2f7f80f0 --- /dev/null +++ b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-license.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tigervnc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tigervnc-license | grep -v \.src | grep tigervnc-license + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tigervnc-license" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tigervnc-license + CHECK_RESULT $? 0 0 "install tigervnc-license failed" + SLEEP_WAIT 1 + dnf remove -y tigervnc-license + CHECK_RESULT $? 0 0 "remove tigervnc-license failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-selinux.sh b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-selinux.sh new file mode 100644 index 0000000000000000000000000000000000000000..550ce1a0b789a84897872431346f8dfb10b15870 --- /dev/null +++ b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-selinux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tigervnc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tigervnc-selinux | grep -v \.src | grep tigervnc-selinux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tigervnc-selinux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tigervnc-selinux + CHECK_RESULT $? 0 0 "install tigervnc-selinux failed" + SLEEP_WAIT 1 + dnf remove -y tigervnc-selinux + CHECK_RESULT $? 0 0 "remove tigervnc-selinux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server-applet.sh b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server-applet.sh new file mode 100644 index 0000000000000000000000000000000000000000..f313f269d3bff6434fe88b4961cf5080093e6efa --- /dev/null +++ b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server-applet.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tigervnc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tigervnc-server-applet | grep -v \.src | grep tigervnc-server-applet + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tigervnc-server-applet" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tigervnc-server-applet + CHECK_RESULT $? 0 0 "install tigervnc-server-applet failed" + SLEEP_WAIT 1 + dnf remove -y tigervnc-server-applet + CHECK_RESULT $? 0 0 "remove tigervnc-server-applet failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server-minimal.sh b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server-minimal.sh new file mode 100644 index 0000000000000000000000000000000000000000..22fe347fc4a33a45915681a95157a70130263a4d --- /dev/null +++ b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server-minimal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tigervnc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tigervnc-server-minimal | grep -v \.src | grep tigervnc-server-minimal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tigervnc-server-minimal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tigervnc-server-minimal + CHECK_RESULT $? 0 0 "install tigervnc-server-minimal failed" + SLEEP_WAIT 1 + dnf remove -y tigervnc-server-minimal + CHECK_RESULT $? 0 0 "remove tigervnc-server-minimal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server-module.sh b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server-module.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cf3b2a35879f8a79256f91b97f31d5ffbbd99c1 --- /dev/null +++ b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server-module.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tigervnc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tigervnc-server-module | grep -v \.src | grep tigervnc-server-module + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tigervnc-server-module" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tigervnc-server-module + CHECK_RESULT $? 0 0 "install tigervnc-server-module failed" + SLEEP_WAIT 1 + dnf remove -y tigervnc-server-module + CHECK_RESULT $? 0 0 "remove tigervnc-server-module failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server.sh b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server.sh new file mode 100644 index 0000000000000000000000000000000000000000..35ae41a33443c3a36cdc2a8bfb744719842ce0a5 --- /dev/null +++ b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc-server.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tigervnc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tigervnc-server | grep -v \.src | grep tigervnc-server + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tigervnc-server" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tigervnc-server + CHECK_RESULT $? 0 0 "install tigervnc-server failed" + SLEEP_WAIT 1 + dnf remove -y tigervnc-server + CHECK_RESULT $? 0 0 "remove tigervnc-server failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc.sh b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c330fd17cc3050a57f93770cfa37cd20293c38e --- /dev/null +++ b/testcases/cli-test/tigervnc/oe_test_tigervnc_install_and_remove_tigervnc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tigervnc +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tigervnc | grep -v \.src | grep tigervnc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tigervnc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tigervnc + CHECK_RESULT $? 0 0 "install tigervnc failed" + SLEEP_WAIT 1 + dnf remove -y tigervnc + CHECK_RESULT $? 0 0 "remove tigervnc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/time/oe_test_time_install_and_remove_time-debuginfo.sh b/testcases/cli-test/time/oe_test_time_install_and_remove_time-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..71a150890e16f0fef242b216afda351cfb3515d3 --- /dev/null +++ b/testcases/cli-test/time/oe_test_time_install_and_remove_time-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src time +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available time-debuginfo | grep -v \.src | grep time-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm time-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y time-debuginfo + CHECK_RESULT $? 0 0 "install time-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y time-debuginfo + CHECK_RESULT $? 0 0 "remove time-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/time/oe_test_time_install_and_remove_time-debugsource.sh b/testcases/cli-test/time/oe_test_time_install_and_remove_time-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff175b41798c6f4705bad7e1bd99796188c6aa49 --- /dev/null +++ b/testcases/cli-test/time/oe_test_time_install_and_remove_time-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src time +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available time-debugsource | grep -v \.src | grep time-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm time-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y time-debugsource + CHECK_RESULT $? 0 0 "install time-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y time-debugsource + CHECK_RESULT $? 0 0 "remove time-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/time/oe_test_time_install_and_remove_time-doc.sh b/testcases/cli-test/time/oe_test_time_install_and_remove_time-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf6aeb9f1481c775ae9043e546507d4e1e3f60c8 --- /dev/null +++ b/testcases/cli-test/time/oe_test_time_install_and_remove_time-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src time +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available time-doc | grep -v \.src | grep time-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm time-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y time-doc + CHECK_RESULT $? 0 0 "install time-doc failed" + SLEEP_WAIT 1 + dnf remove -y time-doc + CHECK_RESULT $? 0 0 "remove time-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/time/oe_test_time_install_and_remove_time-help.sh b/testcases/cli-test/time/oe_test_time_install_and_remove_time-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..81b3e042eb6619868a91f6963ff91ec6f012d93d --- /dev/null +++ b/testcases/cli-test/time/oe_test_time_install_and_remove_time-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src time +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available time-help | grep -v \.src | grep time-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm time-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y time-help + CHECK_RESULT $? 0 0 "install time-help failed" + SLEEP_WAIT 1 + dnf remove -y time-help + CHECK_RESULT $? 0 0 "remove time-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/time/oe_test_time_install_and_remove_time.sh b/testcases/cli-test/time/oe_test_time_install_and_remove_time.sh new file mode 100644 index 0000000000000000000000000000000000000000..41a69dff67785bd90c6f3fac8f24214ddb8b0d72 --- /dev/null +++ b/testcases/cli-test/time/oe_test_time_install_and_remove_time.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src time +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available time | grep -v \.src | grep time + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm time" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y time + CHECK_RESULT $? 0 0 "install time failed" + SLEEP_WAIT 1 + dnf remove -y time + CHECK_RESULT $? 0 0 "remove time failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex-debuginfo.sh b/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..670232ed58c305d39496730073e85fa03849c14f --- /dev/null +++ b/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src timedatex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available timedatex-debuginfo | grep -v \.src | grep timedatex-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm timedatex-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y timedatex-debuginfo + CHECK_RESULT $? 0 0 "install timedatex-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y timedatex-debuginfo + CHECK_RESULT $? 0 0 "remove timedatex-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex-debugsource.sh b/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..5406258717069c83c9517ff4359f7883a949e044 --- /dev/null +++ b/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src timedatex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available timedatex-debugsource | grep -v \.src | grep timedatex-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm timedatex-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y timedatex-debugsource + CHECK_RESULT $? 0 0 "install timedatex-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y timedatex-debugsource + CHECK_RESULT $? 0 0 "remove timedatex-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex-help.sh b/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..56b86dbe80230c43b99fc8310aab9b58aa6943b3 --- /dev/null +++ b/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src timedatex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available timedatex-help | grep -v \.src | grep timedatex-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm timedatex-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y timedatex-help + CHECK_RESULT $? 0 0 "install timedatex-help failed" + SLEEP_WAIT 1 + dnf remove -y timedatex-help + CHECK_RESULT $? 0 0 "remove timedatex-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex.sh b/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex.sh new file mode 100644 index 0000000000000000000000000000000000000000..cab2b94bc4a067e43b719238ebe9d5ee0e85f710 --- /dev/null +++ b/testcases/cli-test/timedatex/oe_test_timedatex_install_and_remove_timedatex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src timedatex +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available timedatex | grep -v \.src | grep timedatex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm timedatex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y timedatex + CHECK_RESULT $? 0 0 "install timedatex failed" + SLEEP_WAIT 1 + dnf remove -y timedatex + CHECK_RESULT $? 0 0 "remove timedatex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2-debuginfo.sh b/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..99341552e25e9adab70f8524f240565b0f7ef528 --- /dev/null +++ b/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tinyxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tinyxml2-debuginfo | grep -v \.src | grep tinyxml2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tinyxml2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tinyxml2-debuginfo + CHECK_RESULT $? 0 0 "install tinyxml2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tinyxml2-debuginfo + CHECK_RESULT $? 0 0 "remove tinyxml2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2-debugsource.sh b/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e24cefdf0ff5f6e1e83158e6ec221944da752736 --- /dev/null +++ b/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tinyxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tinyxml2-debugsource | grep -v \.src | grep tinyxml2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tinyxml2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tinyxml2-debugsource + CHECK_RESULT $? 0 0 "install tinyxml2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tinyxml2-debugsource + CHECK_RESULT $? 0 0 "remove tinyxml2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2-devel.sh b/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ced72985616ee41a9d3d7237cb1945614896dda --- /dev/null +++ b/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tinyxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tinyxml2-devel | grep -v \.src | grep tinyxml2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tinyxml2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tinyxml2-devel + CHECK_RESULT $? 0 0 "install tinyxml2-devel failed" + SLEEP_WAIT 1 + dnf remove -y tinyxml2-devel + CHECK_RESULT $? 0 0 "remove tinyxml2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2.sh b/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2.sh new file mode 100644 index 0000000000000000000000000000000000000000..1758b422ddd1c17918c1a42153aaf533daff0e4d --- /dev/null +++ b/testcases/cli-test/tinyxml2/oe_test_tinyxml2_install_and_remove_tinyxml2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tinyxml2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tinyxml2 | grep -v \.src | grep tinyxml2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tinyxml2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tinyxml2 + CHECK_RESULT $? 0 0 "install tinyxml2 failed" + SLEEP_WAIT 1 + dnf remove -y tinyxml2 + CHECK_RESULT $? 0 0 "remove tinyxml2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-debuginfo.sh b/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8ccb0a3b9d88c38f49f6e7845c31966dab02d21 --- /dev/null +++ b/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tix +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tix-debuginfo | grep -v \.src | grep tix-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tix-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tix-debuginfo + CHECK_RESULT $? 0 0 "install tix-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tix-debuginfo + CHECK_RESULT $? 0 0 "remove tix-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-debugsource.sh b/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..afa9f5cf793fa370b0017ac57825f556c590307a --- /dev/null +++ b/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tix +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tix-debugsource | grep -v \.src | grep tix-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tix-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tix-debugsource + CHECK_RESULT $? 0 0 "install tix-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tix-debugsource + CHECK_RESULT $? 0 0 "remove tix-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-devel.sh b/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..95fd406b4bdcd1f4accaf641ed97a46459a8723c --- /dev/null +++ b/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tix +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tix-devel | grep -v \.src | grep tix-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tix-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tix-devel + CHECK_RESULT $? 0 0 "install tix-devel failed" + SLEEP_WAIT 1 + dnf remove -y tix-devel + CHECK_RESULT $? 0 0 "remove tix-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-help.sh b/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..338dc2ea1ed839cae75c83b97cefc6f28a5be208 --- /dev/null +++ b/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tix +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tix-help | grep -v \.src | grep tix-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tix-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tix-help + CHECK_RESULT $? 0 0 "install tix-help failed" + SLEEP_WAIT 1 + dnf remove -y tix-help + CHECK_RESULT $? 0 0 "remove tix-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix.sh b/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix.sh new file mode 100644 index 0000000000000000000000000000000000000000..dde41edba5141a21846ae7671f3efd2106f215fa --- /dev/null +++ b/testcases/cli-test/tix/oe_test_tix_install_and_remove_tix.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tix +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tix | grep -v \.src | grep tix + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tix" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tix + CHECK_RESULT $? 0 0 "install tix failed" + SLEEP_WAIT 1 + dnf remove -y tix + CHECK_RESULT $? 0 0 "remove tix failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-debuginfo.sh b/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d1870197c94df5d0d4bba1777279d85dd571d4ca --- /dev/null +++ b/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tk-debuginfo | grep -v \.src | grep tk-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tk-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tk-debuginfo + CHECK_RESULT $? 0 0 "install tk-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tk-debuginfo + CHECK_RESULT $? 0 0 "remove tk-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-debugsource.sh b/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..db042ba9e6e9b039c6a279e638809b2b01e63713 --- /dev/null +++ b/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tk-debugsource | grep -v \.src | grep tk-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tk-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tk-debugsource + CHECK_RESULT $? 0 0 "install tk-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tk-debugsource + CHECK_RESULT $? 0 0 "remove tk-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-devel.sh b/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f524651c8b939108c2025a65f95b2188ee33fce3 --- /dev/null +++ b/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tk-devel | grep -v \.src | grep tk-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tk-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tk-devel + CHECK_RESULT $? 0 0 "install tk-devel failed" + SLEEP_WAIT 1 + dnf remove -y tk-devel + CHECK_RESULT $? 0 0 "remove tk-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-help.sh b/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ff67092e4d08ece950f75bc82659013fff4c596 --- /dev/null +++ b/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tk-help | grep -v \.src | grep tk-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tk-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tk-help + CHECK_RESULT $? 0 0 "install tk-help failed" + SLEEP_WAIT 1 + dnf remove -y tk-help + CHECK_RESULT $? 0 0 "remove tk-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk.sh b/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9d550b6e4884cae00c9f2531fffac74f5664b23 --- /dev/null +++ b/testcases/cli-test/tk/oe_test_tk_install_and_remove_tk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tk | grep -v \.src | grep tk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tk + CHECK_RESULT $? 0 0 "install tk failed" + SLEEP_WAIT 1 + dnf remove -y tk + CHECK_RESULT $? 0 0 "remove tk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux-debuginfo.sh b/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..59c395db3a37b7762bbeabf034ca4edd6f303e8d --- /dev/null +++ b/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tmux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tmux-debuginfo | grep -v \.src | grep tmux-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tmux-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tmux-debuginfo + CHECK_RESULT $? 0 0 "install tmux-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tmux-debuginfo + CHECK_RESULT $? 0 0 "remove tmux-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux-debugsource.sh b/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3d94dbdfa8c157d3526be7e3d608272c64bb69c --- /dev/null +++ b/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tmux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tmux-debugsource | grep -v \.src | grep tmux-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tmux-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tmux-debugsource + CHECK_RESULT $? 0 0 "install tmux-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tmux-debugsource + CHECK_RESULT $? 0 0 "remove tmux-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux-help.sh b/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6e8a1fc94a0f9312f611a967c727e2d572ac5ae --- /dev/null +++ b/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tmux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tmux-help | grep -v \.src | grep tmux-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tmux-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tmux-help + CHECK_RESULT $? 0 0 "install tmux-help failed" + SLEEP_WAIT 1 + dnf remove -y tmux-help + CHECK_RESULT $? 0 0 "remove tmux-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux.sh b/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux.sh new file mode 100644 index 0000000000000000000000000000000000000000..c47362acbed95bb00f7a8fd22b38a02131c0b4eb --- /dev/null +++ b/testcases/cli-test/tmux/oe_test_tmux_install_and_remove_tmux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tmux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tmux | grep -v \.src | grep tmux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tmux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tmux + CHECK_RESULT $? 0 0 "install tmux failed" + SLEEP_WAIT 1 + dnf remove -y tmux + CHECK_RESULT $? 0 0 "remove tmux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-debuginfo.sh b/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b8780d69ee7054d52ed9ece655c9ccc6bf56bde --- /dev/null +++ b/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tpm2-tss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tpm2-tss-debuginfo | grep -v \.src | grep tpm2-tss-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tpm2-tss-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tpm2-tss-debuginfo + CHECK_RESULT $? 0 0 "install tpm2-tss-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tpm2-tss-debuginfo + CHECK_RESULT $? 0 0 "remove tpm2-tss-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-debugsource.sh b/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f726ace83cc2b583aaf8d97fc361227ffe618332 --- /dev/null +++ b/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tpm2-tss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tpm2-tss-debugsource | grep -v \.src | grep tpm2-tss-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tpm2-tss-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tpm2-tss-debugsource + CHECK_RESULT $? 0 0 "install tpm2-tss-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tpm2-tss-debugsource + CHECK_RESULT $? 0 0 "remove tpm2-tss-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-devel.sh b/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7c25549203e264d5dab155c9425c291fde8470c --- /dev/null +++ b/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tpm2-tss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tpm2-tss-devel | grep -v \.src | grep tpm2-tss-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tpm2-tss-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tpm2-tss-devel + CHECK_RESULT $? 0 0 "install tpm2-tss-devel failed" + SLEEP_WAIT 1 + dnf remove -y tpm2-tss-devel + CHECK_RESULT $? 0 0 "remove tpm2-tss-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-help.sh b/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f188dd3d5c88366a7967cea4ef193ff9f7097c7 --- /dev/null +++ b/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tpm2-tss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tpm2-tss-help | grep -v \.src | grep tpm2-tss-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tpm2-tss-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tpm2-tss-help + CHECK_RESULT $? 0 0 "install tpm2-tss-help failed" + SLEEP_WAIT 1 + dnf remove -y tpm2-tss-help + CHECK_RESULT $? 0 0 "remove tpm2-tss-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss.sh b/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss.sh new file mode 100644 index 0000000000000000000000000000000000000000..d35abce4cba566c2186cd9ab16b5ef11fc06a1e5 --- /dev/null +++ b/testcases/cli-test/tpm2-tss/oe_test_tpm2-tss_install_and_remove_tpm2-tss.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tpm2-tss +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tpm2-tss | grep -v \.src | grep tpm2-tss + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tpm2-tss" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tpm2-tss + CHECK_RESULT $? 0 0 "install tpm2-tss failed" + SLEEP_WAIT 1 + dnf remove -y tpm2-tss + CHECK_RESULT $? 0 0 "remove tpm2-tss failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_libtracker-sparql3.sh b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_libtracker-sparql3.sh new file mode 100644 index 0000000000000000000000000000000000000000..a15283c410f141d72b12434e6ada44ebabc9f7f7 --- /dev/null +++ b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_libtracker-sparql3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tracker3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libtracker-sparql3 | grep -v \.src | grep libtracker-sparql3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libtracker-sparql3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libtracker-sparql3 + CHECK_RESULT $? 0 0 "install libtracker-sparql3 failed" + SLEEP_WAIT 1 + dnf remove -y libtracker-sparql3 + CHECK_RESULT $? 0 0 "remove libtracker-sparql3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-debuginfo.sh b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d73a773dca47cdaefc1a803972101110ee6fb09f --- /dev/null +++ b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tracker3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tracker3-debuginfo | grep -v \.src | grep tracker3-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tracker3-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tracker3-debuginfo + CHECK_RESULT $? 0 0 "install tracker3-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tracker3-debuginfo + CHECK_RESULT $? 0 0 "remove tracker3-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-debugsource.sh b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b55b85bd1790cf8146ba3f842ebcedf563934ab --- /dev/null +++ b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tracker3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tracker3-debugsource | grep -v \.src | grep tracker3-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tracker3-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tracker3-debugsource + CHECK_RESULT $? 0 0 "install tracker3-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tracker3-debugsource + CHECK_RESULT $? 0 0 "remove tracker3-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-devel.sh b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8264f20746a33f0b600e25e2845925e1edd1edc1 --- /dev/null +++ b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tracker3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tracker3-devel | grep -v \.src | grep tracker3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tracker3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tracker3-devel + CHECK_RESULT $? 0 0 "install tracker3-devel failed" + SLEEP_WAIT 1 + dnf remove -y tracker3-devel + CHECK_RESULT $? 0 0 "remove tracker3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-doc.sh b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..a31405743790cfc5223b5c629e76d6edcae7b0e3 --- /dev/null +++ b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tracker3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tracker3-doc | grep -v \.src | grep tracker3-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tracker3-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tracker3-doc + CHECK_RESULT $? 0 0 "install tracker3-doc failed" + SLEEP_WAIT 1 + dnf remove -y tracker3-doc + CHECK_RESULT $? 0 0 "remove tracker3-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3.sh b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3.sh new file mode 100644 index 0000000000000000000000000000000000000000..29830dc5390b82befd6259ab06c462a89b65aa65 --- /dev/null +++ b/testcases/cli-test/tracker3/oe_test_tracker3_install_and_remove_tracker3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tracker3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tracker3 | grep -v \.src | grep tracker3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tracker3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tracker3 + CHECK_RESULT $? 0 0 "install tracker3 failed" + SLEEP_WAIT 1 + dnf remove -y tracker3 + CHECK_RESULT $? 0 0 "remove tracker3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-debuginfo.sh b/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e1dcf430ee6443023c1a9d9fa102e42fef22d72 --- /dev/null +++ b/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src transfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available transfig-debuginfo | grep -v \.src | grep transfig-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm transfig-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y transfig-debuginfo + CHECK_RESULT $? 0 0 "install transfig-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y transfig-debuginfo + CHECK_RESULT $? 0 0 "remove transfig-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-debugsource.sh b/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9e7a89fe00bc8bdfb281c373425a21cd20ea360 --- /dev/null +++ b/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src transfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available transfig-debugsource | grep -v \.src | grep transfig-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm transfig-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y transfig-debugsource + CHECK_RESULT $? 0 0 "install transfig-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y transfig-debugsource + CHECK_RESULT $? 0 0 "remove transfig-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-doc.sh b/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc30a76924fa0aa4db04a39b29d924c132b44c46 --- /dev/null +++ b/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src transfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available transfig-doc | grep -v \.src | grep transfig-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm transfig-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y transfig-doc + CHECK_RESULT $? 0 0 "install transfig-doc failed" + SLEEP_WAIT 1 + dnf remove -y transfig-doc + CHECK_RESULT $? 0 0 "remove transfig-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-help.sh b/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a464967c386751660c33d2ffad0037cbba8bed2a --- /dev/null +++ b/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src transfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available transfig-help | grep -v \.src | grep transfig-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm transfig-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y transfig-help + CHECK_RESULT $? 0 0 "install transfig-help failed" + SLEEP_WAIT 1 + dnf remove -y transfig-help + CHECK_RESULT $? 0 0 "remove transfig-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig.sh b/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..9715fd1df4a7310cd812bc45d573c2f92a0fc0ed --- /dev/null +++ b/testcases/cli-test/transfig/oe_test_transfig_install_and_remove_transfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src transfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available transfig | grep -v \.src | grep transfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm transfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y transfig + CHECK_RESULT $? 0 0 "install transfig failed" + SLEEP_WAIT 1 + dnf remove -y transfig + CHECK_RESULT $? 0 0 "remove transfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree-debuginfo.sh b/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9227af0ee4490467f6df54896a3f5d469692755 --- /dev/null +++ b/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tree-debuginfo | grep -v \.src | grep tree-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tree-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tree-debuginfo + CHECK_RESULT $? 0 0 "install tree-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y tree-debuginfo + CHECK_RESULT $? 0 0 "remove tree-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree-debugsource.sh b/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..46d0c67f06fe642bc8332b8a9049915bc2f7066b --- /dev/null +++ b/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tree-debugsource | grep -v \.src | grep tree-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tree-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tree-debugsource + CHECK_RESULT $? 0 0 "install tree-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y tree-debugsource + CHECK_RESULT $? 0 0 "remove tree-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree-help.sh b/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..570645476ee4e896116c5ad765a29b350f9405ea --- /dev/null +++ b/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tree-help | grep -v \.src | grep tree-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tree-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tree-help + CHECK_RESULT $? 0 0 "install tree-help failed" + SLEEP_WAIT 1 + dnf remove -y tree-help + CHECK_RESULT $? 0 0 "remove tree-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree.sh b/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree.sh new file mode 100644 index 0000000000000000000000000000000000000000..7125e2dc60d5b4aa534c4ba070b96505a35abb6b --- /dev/null +++ b/testcases/cli-test/tree/oe_test_tree_install_and_remove_tree.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tree +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tree | grep -v \.src | grep tree + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tree" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tree + CHECK_RESULT $? 0 0 "install tree failed" + SLEEP_WAIT 1 + dnf remove -y tree + CHECK_RESULT $? 0 0 "remove tree failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-debuginfo.sh b/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..408ebab9ca8057d7699d0f7f85eebcef4d0ffa0b --- /dev/null +++ b/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src trousers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available trousers-debuginfo | grep -v \.src | grep trousers-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm trousers-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y trousers-debuginfo + CHECK_RESULT $? 0 0 "install trousers-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y trousers-debuginfo + CHECK_RESULT $? 0 0 "remove trousers-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-debugsource.sh b/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a976f88f2ae85192ff1917a5f552327e0b514f64 --- /dev/null +++ b/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src trousers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available trousers-debugsource | grep -v \.src | grep trousers-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm trousers-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y trousers-debugsource + CHECK_RESULT $? 0 0 "install trousers-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y trousers-debugsource + CHECK_RESULT $? 0 0 "remove trousers-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-devel.sh b/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..754fd09963bc18e08e25555a5fb436110f27b938 --- /dev/null +++ b/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src trousers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available trousers-devel | grep -v \.src | grep trousers-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm trousers-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y trousers-devel + CHECK_RESULT $? 0 0 "install trousers-devel failed" + SLEEP_WAIT 1 + dnf remove -y trousers-devel + CHECK_RESULT $? 0 0 "remove trousers-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-help.sh b/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba62ee38506b6d99966b3fcbc9c18eb92363f7ed --- /dev/null +++ b/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src trousers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available trousers-help | grep -v \.src | grep trousers-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm trousers-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y trousers-help + CHECK_RESULT $? 0 0 "install trousers-help failed" + SLEEP_WAIT 1 + dnf remove -y trousers-help + CHECK_RESULT $? 0 0 "remove trousers-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers.sh b/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers.sh new file mode 100644 index 0000000000000000000000000000000000000000..549a090d0c038295c574cbabae878c8f8effc67c --- /dev/null +++ b/testcases/cli-test/trousers/oe_test_trousers_install_and_remove_trousers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src trousers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available trousers | grep -v \.src | grep trousers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm trousers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y trousers + CHECK_RESULT $? 0 0 "install trousers failed" + SLEEP_WAIT 1 + dnf remove -y trousers + CHECK_RESULT $? 0 0 "remove trousers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ttembed/oe_test_ttembed_install_and_remove_ttembed-debuginfo.sh b/testcases/cli-test/ttembed/oe_test_ttembed_install_and_remove_ttembed-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c54036460f38a3c13bea1533c31c53f06d66379 --- /dev/null +++ b/testcases/cli-test/ttembed/oe_test_ttembed_install_and_remove_ttembed-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ttembed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ttembed-debuginfo | grep -v \.src | grep ttembed-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ttembed-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ttembed-debuginfo + CHECK_RESULT $? 0 0 "install ttembed-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y ttembed-debuginfo + CHECK_RESULT $? 0 0 "remove ttembed-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ttembed/oe_test_ttembed_install_and_remove_ttembed-debugsource.sh b/testcases/cli-test/ttembed/oe_test_ttembed_install_and_remove_ttembed-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..74541b092a6fd6c8a20693bb3805984a7d621e2a --- /dev/null +++ b/testcases/cli-test/ttembed/oe_test_ttembed_install_and_remove_ttembed-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ttembed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ttembed-debugsource | grep -v \.src | grep ttembed-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ttembed-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ttembed-debugsource + CHECK_RESULT $? 0 0 "install ttembed-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y ttembed-debugsource + CHECK_RESULT $? 0 0 "remove ttembed-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/ttembed/oe_test_ttembed_install_and_remove_ttembed.sh b/testcases/cli-test/ttembed/oe_test_ttembed_install_and_remove_ttembed.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6cc92c81a7264097de14816819b0d6b955f1f4d --- /dev/null +++ b/testcases/cli-test/ttembed/oe_test_ttembed_install_and_remove_ttembed.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src ttembed +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available ttembed | grep -v \.src | grep ttembed + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm ttembed" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y ttembed + CHECK_RESULT $? 0 0 "install ttembed failed" + SLEEP_WAIT 1 + dnf remove -y ttembed + CHECK_RESULT $? 0 0 "remove ttembed failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tuned/oe_test_tuned_install_and_remove_tuned-help.sh b/testcases/cli-test/tuned/oe_test_tuned_install_and_remove_tuned-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..99a170595aaa2bc6a4629ac5ea290f014bbc576e --- /dev/null +++ b/testcases/cli-test/tuned/oe_test_tuned_install_and_remove_tuned-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tuned +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tuned-help | grep -v \.src | grep tuned-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tuned-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tuned-help + CHECK_RESULT $? 0 0 "install tuned-help failed" + SLEEP_WAIT 1 + dnf remove -y tuned-help + CHECK_RESULT $? 0 0 "remove tuned-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tuned/oe_test_tuned_install_and_remove_tuned-profiles-devel.sh b/testcases/cli-test/tuned/oe_test_tuned_install_and_remove_tuned-profiles-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..987328953b7ad4e64c226b97cf6ccf1416982210 --- /dev/null +++ b/testcases/cli-test/tuned/oe_test_tuned_install_and_remove_tuned-profiles-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tuned +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tuned-profiles-devel | grep -v \.src | grep tuned-profiles-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tuned-profiles-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tuned-profiles-devel + CHECK_RESULT $? 0 0 "install tuned-profiles-devel failed" + SLEEP_WAIT 1 + dnf remove -y tuned-profiles-devel + CHECK_RESULT $? 0 0 "remove tuned-profiles-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tuned/oe_test_tuned_install_and_remove_tuned.sh b/testcases/cli-test/tuned/oe_test_tuned_install_and_remove_tuned.sh new file mode 100644 index 0000000000000000000000000000000000000000..73f4b0ae7307d965d9faef19340f365dd550d8a5 --- /dev/null +++ b/testcases/cli-test/tuned/oe_test_tuned_install_and_remove_tuned.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tuned +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tuned | grep -v \.src | grep tuned + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tuned" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tuned + CHECK_RESULT $? 0 0 "install tuned failed" + SLEEP_WAIT 1 + dnf remove -y tuned + CHECK_RESULT $? 0 0 "remove tuned failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tzdata/oe_test_tzdata_install_and_remove_tzdata-java.sh b/testcases/cli-test/tzdata/oe_test_tzdata_install_and_remove_tzdata-java.sh new file mode 100644 index 0000000000000000000000000000000000000000..47850ff2e4eab5429165388b17e5307614df4c1b --- /dev/null +++ b/testcases/cli-test/tzdata/oe_test_tzdata_install_and_remove_tzdata-java.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tzdata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tzdata-java | grep -v \.src | grep tzdata-java + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tzdata-java" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tzdata-java + CHECK_RESULT $? 0 0 "install tzdata-java failed" + SLEEP_WAIT 1 + dnf remove -y tzdata-java + CHECK_RESULT $? 0 0 "remove tzdata-java failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/tzdata/oe_test_tzdata_install_and_remove_tzdata.sh b/testcases/cli-test/tzdata/oe_test_tzdata_install_and_remove_tzdata.sh new file mode 100644 index 0000000000000000000000000000000000000000..f88cff7c0d93e9134a38fcad6e1ddbb34cd23b8c --- /dev/null +++ b/testcases/cli-test/tzdata/oe_test_tzdata_install_and_remove_tzdata.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src tzdata +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available tzdata | grep -v \.src | grep tzdata + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm tzdata" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y tzdata + CHECK_RESULT $? 0 0 "install tzdata failed" + SLEEP_WAIT 1 + dnf remove -y tzdata + CHECK_RESULT $? 0 0 "remove tzdata failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-images-armv7.sh b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-images-armv7.sh new file mode 100644 index 0000000000000000000000000000000000000000..d94a44ade1042ef12182423d77702ae78cb38765 --- /dev/null +++ b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-images-armv7.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uboot-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uboot-images-armv7 | grep -v \.src | grep uboot-images-armv7 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uboot-images-armv7" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uboot-images-armv7 + CHECK_RESULT $? 0 0 "install uboot-images-armv7 failed" + SLEEP_WAIT 1 + dnf remove -y uboot-images-armv7 + CHECK_RESULT $? 0 0 "remove uboot-images-armv7 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-images-armv8.sh b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-images-armv8.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9f2c8d8ad06da48c7548ff97f44a5e6b1b4d64d --- /dev/null +++ b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-images-armv8.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uboot-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uboot-images-armv8 | grep -v \.src | grep uboot-images-armv8 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uboot-images-armv8" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uboot-images-armv8 + CHECK_RESULT $? 0 0 "install uboot-images-armv8 failed" + SLEEP_WAIT 1 + dnf remove -y uboot-images-armv8 + CHECK_RESULT $? 0 0 "remove uboot-images-armv8 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-images-elf.sh b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-images-elf.sh new file mode 100644 index 0000000000000000000000000000000000000000..806b972ae06a572372bc7ede1788be4494c90d8c --- /dev/null +++ b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-images-elf.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uboot-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uboot-images-elf | grep -v \.src | grep uboot-images-elf + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uboot-images-elf" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uboot-images-elf + CHECK_RESULT $? 0 0 "install uboot-images-elf failed" + SLEEP_WAIT 1 + dnf remove -y uboot-images-elf + CHECK_RESULT $? 0 0 "remove uboot-images-elf failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools-debuginfo.sh b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3bf3294ba77ba35516e0671391c51098efd19af --- /dev/null +++ b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uboot-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uboot-tools-debuginfo | grep -v \.src | grep uboot-tools-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uboot-tools-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uboot-tools-debuginfo + CHECK_RESULT $? 0 0 "install uboot-tools-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y uboot-tools-debuginfo + CHECK_RESULT $? 0 0 "remove uboot-tools-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools-debugsource.sh b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c29ffc7b716b902670da87a3d997bd23ac222de --- /dev/null +++ b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uboot-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uboot-tools-debugsource | grep -v \.src | grep uboot-tools-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uboot-tools-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uboot-tools-debugsource + CHECK_RESULT $? 0 0 "install uboot-tools-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y uboot-tools-debugsource + CHECK_RESULT $? 0 0 "remove uboot-tools-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools-help.sh b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..7eebcac3d9b0808bbfcf9d6d4b24699b5703b6dd --- /dev/null +++ b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uboot-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uboot-tools-help | grep -v \.src | grep uboot-tools-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uboot-tools-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uboot-tools-help + CHECK_RESULT $? 0 0 "install uboot-tools-help failed" + SLEEP_WAIT 1 + dnf remove -y uboot-tools-help + CHECK_RESULT $? 0 0 "remove uboot-tools-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools.sh b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..07cdb1f63db9b69a268c3daf29a1d21d590515c0 --- /dev/null +++ b/testcases/cli-test/uboot-tools/oe_test_uboot-tools_install_and_remove_uboot-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uboot-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uboot-tools | grep -v \.src | grep uboot-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uboot-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uboot-tools + CHECK_RESULT $? 0 0 "install uboot-tools failed" + SLEEP_WAIT 1 + dnf remove -y uboot-tools + CHECK_RESULT $? 0 0 "remove uboot-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_libudisks2-devel.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_libudisks2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4beee5a536674078de12be2958460b7a2ffc614 --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_libudisks2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libudisks2-devel | grep -v \.src | grep libudisks2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libudisks2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libudisks2-devel + CHECK_RESULT $? 0 0 "install libudisks2-devel failed" + SLEEP_WAIT 1 + dnf remove -y libudisks2-devel + CHECK_RESULT $? 0 0 "remove libudisks2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_libudisks2.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_libudisks2.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc1a1536dd134ec245ec6cd9a14d5a3c7d115910 --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_libudisks2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libudisks2 | grep -v \.src | grep libudisks2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libudisks2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libudisks2 + CHECK_RESULT $? 0 0 "install libudisks2 failed" + SLEEP_WAIT 1 + dnf remove -y libudisks2 + CHECK_RESULT $? 0 0 "remove libudisks2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-bcache.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-bcache.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d30e9b38d6266944cdd4524fc8afb32864868a5 --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-bcache.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available udisks2-bcache | grep -v \.src | grep udisks2-bcache + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm udisks2-bcache" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y udisks2-bcache + CHECK_RESULT $? 0 0 "install udisks2-bcache failed" + SLEEP_WAIT 1 + dnf remove -y udisks2-bcache + CHECK_RESULT $? 0 0 "remove udisks2-bcache failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-btrfs.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-btrfs.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb2cf4aefb03604055f5404c9a1377e0de6b2e69 --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-btrfs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available udisks2-btrfs | grep -v \.src | grep udisks2-btrfs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm udisks2-btrfs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y udisks2-btrfs + CHECK_RESULT $? 0 0 "install udisks2-btrfs failed" + SLEEP_WAIT 1 + dnf remove -y udisks2-btrfs + CHECK_RESULT $? 0 0 "remove udisks2-btrfs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-debuginfo.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..818c8f755d281a03083f29f201e73247c08e34eb --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available udisks2-debuginfo | grep -v \.src | grep udisks2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm udisks2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y udisks2-debuginfo + CHECK_RESULT $? 0 0 "install udisks2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y udisks2-debuginfo + CHECK_RESULT $? 0 0 "remove udisks2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-debugsource.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c40726e8aad6d956a6309041b51d56e4b2e93b88 --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available udisks2-debugsource | grep -v \.src | grep udisks2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm udisks2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y udisks2-debugsource + CHECK_RESULT $? 0 0 "install udisks2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y udisks2-debugsource + CHECK_RESULT $? 0 0 "remove udisks2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-lsm.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-lsm.sh new file mode 100644 index 0000000000000000000000000000000000000000..edb3d6c896f640f41ef04516cc7cad8ebee9213e --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-lsm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available udisks2-lsm | grep -v \.src | grep udisks2-lsm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm udisks2-lsm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y udisks2-lsm + CHECK_RESULT $? 0 0 "install udisks2-lsm failed" + SLEEP_WAIT 1 + dnf remove -y udisks2-lsm + CHECK_RESULT $? 0 0 "remove udisks2-lsm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-lvm2.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-lvm2.sh new file mode 100644 index 0000000000000000000000000000000000000000..7f34b0492dbaffd164d2440e1dd42e6da54db619 --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-lvm2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available udisks2-lvm2 | grep -v \.src | grep udisks2-lvm2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm udisks2-lvm2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y udisks2-lvm2 + CHECK_RESULT $? 0 0 "install udisks2-lvm2 failed" + SLEEP_WAIT 1 + dnf remove -y udisks2-lvm2 + CHECK_RESULT $? 0 0 "remove udisks2-lvm2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-vdo.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-vdo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9a61a16461e6b771d6d83da139afbb3ea52c5f5 --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-vdo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available udisks2-vdo | grep -v \.src | grep udisks2-vdo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm udisks2-vdo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y udisks2-vdo + CHECK_RESULT $? 0 0 "install udisks2-vdo failed" + SLEEP_WAIT 1 + dnf remove -y udisks2-vdo + CHECK_RESULT $? 0 0 "remove udisks2-vdo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-zram.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-zram.sh new file mode 100644 index 0000000000000000000000000000000000000000..fec8e7c00febde2da82fd6434f4c23efc5c3872d --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2-zram.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available udisks2-zram | grep -v \.src | grep udisks2-zram + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm udisks2-zram" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y udisks2-zram + CHECK_RESULT $? 0 0 "install udisks2-zram failed" + SLEEP_WAIT 1 + dnf remove -y udisks2-zram + CHECK_RESULT $? 0 0 "remove udisks2-zram failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2.sh b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2.sh new file mode 100644 index 0000000000000000000000000000000000000000..7be6064ca900d1a94bbb18ccb240d740c7207c75 --- /dev/null +++ b/testcases/cli-test/udisks2/oe_test_udisks2_install_and_remove_udisks2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src udisks2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available udisks2 | grep -v \.src | grep udisks2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm udisks2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y udisks2 + CHECK_RESULT $? 0 0 "install udisks2 failed" + SLEEP_WAIT 1 + dnf remove -y udisks2 + CHECK_RESULT $? 0 0 "remove udisks2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper-debuginfo.sh b/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c7aa61e359f0f8dcf0af989169c92f89ee2c630 --- /dev/null +++ b/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uid_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uid_wrapper-debuginfo | grep -v \.src | grep uid_wrapper-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uid_wrapper-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uid_wrapper-debuginfo + CHECK_RESULT $? 0 0 "install uid_wrapper-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y uid_wrapper-debuginfo + CHECK_RESULT $? 0 0 "remove uid_wrapper-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper-debugsource.sh b/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d184cb36d1355bc271967d9e4ee71bc5e3686bb3 --- /dev/null +++ b/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uid_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uid_wrapper-debugsource | grep -v \.src | grep uid_wrapper-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uid_wrapper-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uid_wrapper-debugsource + CHECK_RESULT $? 0 0 "install uid_wrapper-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y uid_wrapper-debugsource + CHECK_RESULT $? 0 0 "remove uid_wrapper-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper-help.sh b/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5272a46796db622327911bd2950b3e6ddf9289a6 --- /dev/null +++ b/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uid_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uid_wrapper-help | grep -v \.src | grep uid_wrapper-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uid_wrapper-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uid_wrapper-help + CHECK_RESULT $? 0 0 "install uid_wrapper-help failed" + SLEEP_WAIT 1 + dnf remove -y uid_wrapper-help + CHECK_RESULT $? 0 0 "remove uid_wrapper-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper.sh b/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper.sh new file mode 100644 index 0000000000000000000000000000000000000000..40018e361f46d6117a8606e6a1f1b0478c632d70 --- /dev/null +++ b/testcases/cli-test/uid_wrapper/oe_test_uid_wrapper_install_and_remove_uid_wrapper.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src uid_wrapper +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uid_wrapper | grep -v \.src | grep uid_wrapper + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uid_wrapper" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uid_wrapper + CHECK_RESULT $? 0 0 "install uid_wrapper failed" + SLEEP_WAIT 1 + dnf remove -y uid_wrapper + CHECK_RESULT $? 0 0 "remove uid_wrapper failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev-debuginfo.sh b/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5ba7bc4f3c6f6ad55438025960f2032a3673962 --- /dev/null +++ b/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src umockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available umockdev-debuginfo | grep -v \.src | grep umockdev-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm umockdev-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y umockdev-debuginfo + CHECK_RESULT $? 0 0 "install umockdev-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y umockdev-debuginfo + CHECK_RESULT $? 0 0 "remove umockdev-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev-debugsource.sh b/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d90d5e3d3eed75a4cf2424215e7e61c43b9ad012 --- /dev/null +++ b/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src umockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available umockdev-debugsource | grep -v \.src | grep umockdev-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm umockdev-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y umockdev-debugsource + CHECK_RESULT $? 0 0 "install umockdev-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y umockdev-debugsource + CHECK_RESULT $? 0 0 "remove umockdev-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev-devel.sh b/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2808bf0218c963a29954b3450bc041286d04fb7 --- /dev/null +++ b/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src umockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available umockdev-devel | grep -v \.src | grep umockdev-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm umockdev-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y umockdev-devel + CHECK_RESULT $? 0 0 "install umockdev-devel failed" + SLEEP_WAIT 1 + dnf remove -y umockdev-devel + CHECK_RESULT $? 0 0 "remove umockdev-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev.sh b/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev.sh new file mode 100644 index 0000000000000000000000000000000000000000..d23497761d606fc6e68b317113ea9d01f0e33c01 --- /dev/null +++ b/testcases/cli-test/umockdev/oe_test_umockdev_install_and_remove_umockdev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src umockdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available umockdev | grep -v \.src | grep umockdev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm umockdev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y umockdev + CHECK_RESULT $? 0 0 "install umockdev failed" + SLEEP_WAIT 1 + dnf remove -y umockdev + CHECK_RESULT $? 0 0 "remove umockdev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_python3-unbound.sh b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_python3-unbound.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b45dc55e7586e7f9f9a6fb4f7504ddcfc015842 --- /dev/null +++ b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_python3-unbound.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unbound +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-unbound | grep -v \.src | grep python3-unbound + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-unbound" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-unbound + CHECK_RESULT $? 0 0 "install python3-unbound failed" + SLEEP_WAIT 1 + dnf remove -y python3-unbound + CHECK_RESULT $? 0 0 "remove python3-unbound failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-anchor.sh b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-anchor.sh new file mode 100644 index 0000000000000000000000000000000000000000..49a7130b61eb83fc080c719d2ab4f832a839cc9d --- /dev/null +++ b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-anchor.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unbound +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unbound-anchor | grep -v \.src | grep unbound-anchor + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unbound-anchor" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unbound-anchor + CHECK_RESULT $? 0 0 "install unbound-anchor failed" + SLEEP_WAIT 1 + dnf remove -y unbound-anchor + CHECK_RESULT $? 0 0 "remove unbound-anchor failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-debuginfo.sh b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bb826aec5914fefe4b505e5184f3c947eef7279 --- /dev/null +++ b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unbound +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unbound-debuginfo | grep -v \.src | grep unbound-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unbound-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unbound-debuginfo + CHECK_RESULT $? 0 0 "install unbound-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y unbound-debuginfo + CHECK_RESULT $? 0 0 "remove unbound-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-debugsource.sh b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..10af95fd52e6d719932090a8b89fca08d0835711 --- /dev/null +++ b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unbound +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unbound-debugsource | grep -v \.src | grep unbound-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unbound-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unbound-debugsource + CHECK_RESULT $? 0 0 "install unbound-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y unbound-debugsource + CHECK_RESULT $? 0 0 "remove unbound-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-devel.sh b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6917a7b3c3e555f3b88519b80b9a4a32fe2daf9 --- /dev/null +++ b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unbound +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unbound-devel | grep -v \.src | grep unbound-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unbound-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unbound-devel + CHECK_RESULT $? 0 0 "install unbound-devel failed" + SLEEP_WAIT 1 + dnf remove -y unbound-devel + CHECK_RESULT $? 0 0 "remove unbound-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-help.sh b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d81b8d1bb97b0c74fbc35e1727f09a66a4cc67e --- /dev/null +++ b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unbound +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unbound-help | grep -v \.src | grep unbound-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unbound-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unbound-help + CHECK_RESULT $? 0 0 "install unbound-help failed" + SLEEP_WAIT 1 + dnf remove -y unbound-help + CHECK_RESULT $? 0 0 "remove unbound-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-libs.sh b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..5574aa21ed482ca826afe0c6bcd30e159cd6ab51 --- /dev/null +++ b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unbound +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unbound-libs | grep -v \.src | grep unbound-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unbound-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unbound-libs + CHECK_RESULT $? 0 0 "install unbound-libs failed" + SLEEP_WAIT 1 + dnf remove -y unbound-libs + CHECK_RESULT $? 0 0 "remove unbound-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-utils.sh b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..5261cece319375145a86c769dc6054b37b60d427 --- /dev/null +++ b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unbound +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unbound-utils | grep -v \.src | grep unbound-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unbound-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unbound-utils + CHECK_RESULT $? 0 0 "install unbound-utils failed" + SLEEP_WAIT 1 + dnf remove -y unbound-utils + CHECK_RESULT $? 0 0 "remove unbound-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound.sh b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound.sh new file mode 100644 index 0000000000000000000000000000000000000000..48eb93c1a6f98b64e7a913e37ef46262c4b9a28e --- /dev/null +++ b/testcases/cli-test/unbound/oe_test_unbound_install_and_remove_unbound.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unbound +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unbound | grep -v \.src | grep unbound + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unbound" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unbound + CHECK_RESULT $? 0 0 "install unbound failed" + SLEEP_WAIT 1 + dnf remove -y unbound + CHECK_RESULT $? 0 0 "remove unbound failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unicode-ucd/oe_test_unicode-ucd_install_and_remove_unicode-ucd.sh b/testcases/cli-test/unicode-ucd/oe_test_unicode-ucd_install_and_remove_unicode-ucd.sh new file mode 100644 index 0000000000000000000000000000000000000000..65d57c7675a23ec4e689b78cc95cd5264fc0da6e --- /dev/null +++ b/testcases/cli-test/unicode-ucd/oe_test_unicode-ucd_install_and_remove_unicode-ucd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unicode-ucd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unicode-ucd | grep -v \.src | grep unicode-ucd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unicode-ucd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unicode-ucd + CHECK_RESULT $? 0 0 "install unicode-ucd failed" + SLEEP_WAIT 1 + dnf remove -y unicode-ucd + CHECK_RESULT $? 0 0 "remove unicode-ucd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC-debuginfo.sh b/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfcc4a88e44c74f97a464090d1c1afbcca124e1f --- /dev/null +++ b/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unixODBC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unixODBC-debuginfo | grep -v \.src | grep unixODBC-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unixODBC-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unixODBC-debuginfo + CHECK_RESULT $? 0 0 "install unixODBC-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y unixODBC-debuginfo + CHECK_RESULT $? 0 0 "remove unixODBC-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC-debugsource.sh b/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c134e96ecdfcb67d5fd88b4e34ea6e30d8dc81be --- /dev/null +++ b/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unixODBC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unixODBC-debugsource | grep -v \.src | grep unixODBC-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unixODBC-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unixODBC-debugsource + CHECK_RESULT $? 0 0 "install unixODBC-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y unixODBC-debugsource + CHECK_RESULT $? 0 0 "remove unixODBC-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC-devel.sh b/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e37aadc7047f60536718c4258a8269fab93c1705 --- /dev/null +++ b/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unixODBC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unixODBC-devel | grep -v \.src | grep unixODBC-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unixODBC-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unixODBC-devel + CHECK_RESULT $? 0 0 "install unixODBC-devel failed" + SLEEP_WAIT 1 + dnf remove -y unixODBC-devel + CHECK_RESULT $? 0 0 "remove unixODBC-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC.sh b/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a1b94dad509d15f0c2614d266d2841fa4c4f3e3 --- /dev/null +++ b/testcases/cli-test/unixODBC/oe_test_unixODBC_install_and_remove_unixODBC.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unixODBC +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unixODBC | grep -v \.src | grep unixODBC + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unixODBC" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unixODBC + CHECK_RESULT $? 0 0 "install unixODBC failed" + SLEEP_WAIT 1 + dnf remove -y unixODBC + CHECK_RESULT $? 0 0 "remove unixODBC failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip-debuginfo.sh b/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbed774f240c53d0224271aa4b70651be6a21c62 --- /dev/null +++ b/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unzip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unzip-debuginfo | grep -v \.src | grep unzip-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unzip-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unzip-debuginfo + CHECK_RESULT $? 0 0 "install unzip-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y unzip-debuginfo + CHECK_RESULT $? 0 0 "remove unzip-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip-debugsource.sh b/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..667414b90762640248ae5e8318c2ec4884a463a5 --- /dev/null +++ b/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unzip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unzip-debugsource | grep -v \.src | grep unzip-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unzip-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unzip-debugsource + CHECK_RESULT $? 0 0 "install unzip-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y unzip-debugsource + CHECK_RESULT $? 0 0 "remove unzip-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip-help.sh b/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fb7529e08f3239224afebc972a0ab9f6c3a8003 --- /dev/null +++ b/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unzip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unzip-help | grep -v \.src | grep unzip-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unzip-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unzip-help + CHECK_RESULT $? 0 0 "install unzip-help failed" + SLEEP_WAIT 1 + dnf remove -y unzip-help + CHECK_RESULT $? 0 0 "remove unzip-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip.sh b/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip.sh new file mode 100644 index 0000000000000000000000000000000000000000..e23f5000e63faaf4e1d68b00dccc34ff4a95fbbc --- /dev/null +++ b/testcases/cli-test/unzip/oe_test_unzip_install_and_remove_unzip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src unzip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available unzip | grep -v \.src | grep unzip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm unzip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y unzip + CHECK_RESULT $? 0 0 "install unzip failed" + SLEEP_WAIT 1 + dnf remove -y unzip + CHECK_RESULT $? 0 0 "remove unzip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-debuginfo.sh b/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e346ce3bca62f02e45e250c2abafe5fe9253a486 --- /dev/null +++ b/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src upower +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available upower-debuginfo | grep -v \.src | grep upower-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm upower-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y upower-debuginfo + CHECK_RESULT $? 0 0 "install upower-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y upower-debuginfo + CHECK_RESULT $? 0 0 "remove upower-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-debugsource.sh b/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..94c53f31c0fc57383cb60ed00b64796dc3b0e35d --- /dev/null +++ b/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src upower +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available upower-debugsource | grep -v \.src | grep upower-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm upower-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y upower-debugsource + CHECK_RESULT $? 0 0 "install upower-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y upower-debugsource + CHECK_RESULT $? 0 0 "remove upower-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-devel-docs.sh b/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-devel-docs.sh new file mode 100644 index 0000000000000000000000000000000000000000..2652d22a74f23dd8584a2cc67c2f344393d12507 --- /dev/null +++ b/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-devel-docs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src upower +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available upower-devel-docs | grep -v \.src | grep upower-devel-docs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm upower-devel-docs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y upower-devel-docs + CHECK_RESULT $? 0 0 "install upower-devel-docs failed" + SLEEP_WAIT 1 + dnf remove -y upower-devel-docs + CHECK_RESULT $? 0 0 "remove upower-devel-docs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-devel.sh b/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..126317810346c6c0324d12c2e5ff17767ed5afcd --- /dev/null +++ b/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src upower +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available upower-devel | grep -v \.src | grep upower-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm upower-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y upower-devel + CHECK_RESULT $? 0 0 "install upower-devel failed" + SLEEP_WAIT 1 + dnf remove -y upower-devel + CHECK_RESULT $? 0 0 "remove upower-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower.sh b/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a24d49edb3acac6af40aedd3762abb7e26c062c --- /dev/null +++ b/testcases/cli-test/upower/oe_test_upower_install_and_remove_upower.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src upower +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available upower | grep -v \.src | grep upower + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm upower" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y upower + CHECK_RESULT $? 0 0 "install upower failed" + SLEEP_WAIT 1 + dnf remove -y upower + CHECK_RESULT $? 0 0 "remove upower failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-bookman-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-bookman-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..a463999c390ea401009e6b95fb9d9846c9eb3bc0 --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-bookman-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-bookman-fonts | grep -v \.src | grep urw-base35-bookman-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-bookman-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-bookman-fonts + CHECK_RESULT $? 0 0 "install urw-base35-bookman-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-bookman-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-bookman-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-c059-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-c059-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d53c2fb98c206de68b73ccf5bd5625128d27805 --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-c059-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-c059-fonts | grep -v \.src | grep urw-base35-c059-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-c059-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-c059-fonts + CHECK_RESULT $? 0 0 "install urw-base35-c059-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-c059-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-c059-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-d050000l-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-d050000l-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..d71519b9e971c5521d67b0ad1e07f7928c1f7d04 --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-d050000l-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-d050000l-fonts | grep -v \.src | grep urw-base35-d050000l-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-d050000l-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-d050000l-fonts + CHECK_RESULT $? 0 0 "install urw-base35-d050000l-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-d050000l-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-d050000l-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-common.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a88fdff84602518533910694a3c630666402242 --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-fonts-common | grep -v \.src | grep urw-base35-fonts-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-fonts-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-fonts-common + CHECK_RESULT $? 0 0 "install urw-base35-fonts-common failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-fonts-common + CHECK_RESULT $? 0 0 "remove urw-base35-fonts-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-devel.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c78b7d62c5deb7fdabc1a99b580b867bc231e5e7 --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-fonts-devel | grep -v \.src | grep urw-base35-fonts-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-fonts-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-fonts-devel + CHECK_RESULT $? 0 0 "install urw-base35-fonts-devel failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-fonts-devel + CHECK_RESULT $? 0 0 "remove urw-base35-fonts-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-legacy.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-legacy.sh new file mode 100644 index 0000000000000000000000000000000000000000..6476fc2d1bb8632b954dc670c9f309f15689e605 --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts-legacy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-fonts-legacy | grep -v \.src | grep urw-base35-fonts-legacy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-fonts-legacy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-fonts-legacy + CHECK_RESULT $? 0 0 "install urw-base35-fonts-legacy failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-fonts-legacy + CHECK_RESULT $? 0 0 "remove urw-base35-fonts-legacy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..be2abf8e2daf244d1e0039466040cac51316e002 --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-fonts | grep -v \.src | grep urw-base35-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-fonts + CHECK_RESULT $? 0 0 "install urw-base35-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-gothic-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-gothic-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..aced855686af63254a9b5bb45de45e1543c307b0 --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-gothic-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-gothic-fonts | grep -v \.src | grep urw-base35-gothic-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-gothic-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-gothic-fonts + CHECK_RESULT $? 0 0 "install urw-base35-gothic-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-gothic-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-gothic-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-mono-ps-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-mono-ps-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..37c5537ca72d3b42944460b55a54d9ce04cd35cd --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-mono-ps-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-nimbus-mono-ps-fonts | grep -v \.src | grep urw-base35-nimbus-mono-ps-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-nimbus-mono-ps-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-nimbus-mono-ps-fonts + CHECK_RESULT $? 0 0 "install urw-base35-nimbus-mono-ps-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-nimbus-mono-ps-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-nimbus-mono-ps-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-roman-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-roman-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c15e3ebaa54aaf156afd5cba6679321f117598e --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-roman-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-nimbus-roman-fonts | grep -v \.src | grep urw-base35-nimbus-roman-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-nimbus-roman-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-nimbus-roman-fonts + CHECK_RESULT $? 0 0 "install urw-base35-nimbus-roman-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-nimbus-roman-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-nimbus-roman-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-sans-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-sans-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1c95c37932945baff9339f3078c2284420e3b1a --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-nimbus-sans-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-nimbus-sans-fonts | grep -v \.src | grep urw-base35-nimbus-sans-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-nimbus-sans-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-nimbus-sans-fonts + CHECK_RESULT $? 0 0 "install urw-base35-nimbus-sans-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-nimbus-sans-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-nimbus-sans-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-p052-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-p052-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cf83e5a4ebdff1d21d1b2fbf4894f5ced20483a --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-p052-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-p052-fonts | grep -v \.src | grep urw-base35-p052-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-p052-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-p052-fonts + CHECK_RESULT $? 0 0 "install urw-base35-p052-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-p052-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-p052-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-standard-symbols-ps-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-standard-symbols-ps-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..64da0e02606b347967f2140ff149b9d096458f31 --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-standard-symbols-ps-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-standard-symbols-ps-fonts | grep -v \.src | grep urw-base35-standard-symbols-ps-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-standard-symbols-ps-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-standard-symbols-ps-fonts + CHECK_RESULT $? 0 0 "install urw-base35-standard-symbols-ps-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-standard-symbols-ps-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-standard-symbols-ps-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-z003-fonts.sh b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-z003-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..af970d9fd76632129bc39357fdb0e585ed4bd6ae --- /dev/null +++ b/testcases/cli-test/urw-base35-fonts/oe_test_urw-base35-fonts_install_and_remove_urw-base35-z003-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src urw-base35-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available urw-base35-z003-fonts | grep -v \.src | grep urw-base35-z003-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm urw-base35-z003-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y urw-base35-z003-fonts + CHECK_RESULT $? 0 0 "install urw-base35-z003-fonts failed" + SLEEP_WAIT 1 + dnf remove -y urw-base35-z003-fonts + CHECK_RESULT $? 0 0 "remove urw-base35-z003-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils-debuginfo.sh b/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cfd25b0682af93245c43e9b8769e8cb58614914 --- /dev/null +++ b/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src usbutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available usbutils-debuginfo | grep -v \.src | grep usbutils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm usbutils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y usbutils-debuginfo + CHECK_RESULT $? 0 0 "install usbutils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y usbutils-debuginfo + CHECK_RESULT $? 0 0 "remove usbutils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils-debugsource.sh b/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b3c1e0bb9bd96de9d7fd558773697b9a63e619b --- /dev/null +++ b/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src usbutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available usbutils-debugsource | grep -v \.src | grep usbutils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm usbutils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y usbutils-debugsource + CHECK_RESULT $? 0 0 "install usbutils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y usbutils-debugsource + CHECK_RESULT $? 0 0 "remove usbutils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils-help.sh b/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fa42d1a673451850396d280447ae56c1420ca70 --- /dev/null +++ b/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src usbutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available usbutils-help | grep -v \.src | grep usbutils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm usbutils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y usbutils-help + CHECK_RESULT $? 0 0 "install usbutils-help failed" + SLEEP_WAIT 1 + dnf remove -y usbutils-help + CHECK_RESULT $? 0 0 "remove usbutils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils.sh b/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a576d8bf4574bf038315a1f2ca6f1ad8789b29c --- /dev/null +++ b/testcases/cli-test/usbutils/oe_test_usbutils_install_and_remove_usbutils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src usbutils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available usbutils | grep -v \.src | grep usbutils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm usbutils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y usbutils + CHECK_RESULT $? 0 0 "install usbutils failed" + SLEEP_WAIT 1 + dnf remove -y usbutils + CHECK_RESULT $? 0 0 "remove usbutils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-debuginfo.sh b/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5805b6464d004ab84ff6a5ff73070dc6b5323179 --- /dev/null +++ b/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src usermode +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available usermode-debuginfo | grep -v \.src | grep usermode-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm usermode-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y usermode-debuginfo + CHECK_RESULT $? 0 0 "install usermode-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y usermode-debuginfo + CHECK_RESULT $? 0 0 "remove usermode-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-debugsource.sh b/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c475964feeac3d24209c0191066f2bef1540cff --- /dev/null +++ b/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src usermode +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available usermode-debugsource | grep -v \.src | grep usermode-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm usermode-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y usermode-debugsource + CHECK_RESULT $? 0 0 "install usermode-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y usermode-debugsource + CHECK_RESULT $? 0 0 "remove usermode-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-gtk.sh b/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-gtk.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ae034b7c15fe24ee5e07d69f0311b39c9faee79 --- /dev/null +++ b/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-gtk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src usermode +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available usermode-gtk | grep -v \.src | grep usermode-gtk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm usermode-gtk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y usermode-gtk + CHECK_RESULT $? 0 0 "install usermode-gtk failed" + SLEEP_WAIT 1 + dnf remove -y usermode-gtk + CHECK_RESULT $? 0 0 "remove usermode-gtk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-help.sh b/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6172903a9e3c9c30344e09534c3a71f99e810c6e --- /dev/null +++ b/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src usermode +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available usermode-help | grep -v \.src | grep usermode-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm usermode-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y usermode-help + CHECK_RESULT $? 0 0 "install usermode-help failed" + SLEEP_WAIT 1 + dnf remove -y usermode-help + CHECK_RESULT $? 0 0 "remove usermode-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode.sh b/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode.sh new file mode 100644 index 0000000000000000000000000000000000000000..9083834289f7509d4d4f0d8957c3218171f5890b --- /dev/null +++ b/testcases/cli-test/usermode/oe_test_usermode_install_and_remove_usermode.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src usermode +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available usermode | grep -v \.src | grep usermode + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm usermode" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y usermode + CHECK_RESULT $? 0 0 "install usermode failed" + SLEEP_WAIT 1 + dnf remove -y usermode + CHECK_RESULT $? 0 0 "remove usermode failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu-debuginfo.sh b/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fd66eb82e6802be06a98c51c371b136e404bae4 --- /dev/null +++ b/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src userspace-rcu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available userspace-rcu-debuginfo | grep -v \.src | grep userspace-rcu-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm userspace-rcu-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y userspace-rcu-debuginfo + CHECK_RESULT $? 0 0 "install userspace-rcu-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y userspace-rcu-debuginfo + CHECK_RESULT $? 0 0 "remove userspace-rcu-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu-debugsource.sh b/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b213f773deefa1b1047a334ac41c6bffc6d0ba5 --- /dev/null +++ b/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src userspace-rcu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available userspace-rcu-debugsource | grep -v \.src | grep userspace-rcu-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm userspace-rcu-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y userspace-rcu-debugsource + CHECK_RESULT $? 0 0 "install userspace-rcu-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y userspace-rcu-debugsource + CHECK_RESULT $? 0 0 "remove userspace-rcu-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu-devel.sh b/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a18687d29cbfeccb128b59388a5b5cf4acff1d64 --- /dev/null +++ b/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src userspace-rcu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available userspace-rcu-devel | grep -v \.src | grep userspace-rcu-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm userspace-rcu-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y userspace-rcu-devel + CHECK_RESULT $? 0 0 "install userspace-rcu-devel failed" + SLEEP_WAIT 1 + dnf remove -y userspace-rcu-devel + CHECK_RESULT $? 0 0 "remove userspace-rcu-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu.sh b/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu.sh new file mode 100644 index 0000000000000000000000000000000000000000..db211dea63c1d1e87fb13f240db8ee12045d8d4f --- /dev/null +++ b/testcases/cli-test/userspace-rcu/oe_test_userspace-rcu_install_and_remove_userspace-rcu.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src userspace-rcu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available userspace-rcu | grep -v \.src | grep userspace-rcu + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm userspace-rcu" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y userspace-rcu + CHECK_RESULT $? 0 0 "install userspace-rcu failed" + SLEEP_WAIT 1 + dnf remove -y userspace-rcu + CHECK_RESULT $? 0 0 "remove userspace-rcu failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libblkid.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libblkid.sh new file mode 100644 index 0000000000000000000000000000000000000000..47f4f71ed00241af5cb9cf97da32f7c1dae2a01e --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libblkid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libblkid | grep -v \.src | grep libblkid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libblkid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libblkid + CHECK_RESULT $? 0 0 "install libblkid failed" + SLEEP_WAIT 1 + dnf remove -y libblkid + CHECK_RESULT $? 0 0 "remove libblkid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libfdisk.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libfdisk.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd28e63db7c34aabc37a31fbadd12f410e2c10ce --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libfdisk.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libfdisk | grep -v \.src | grep libfdisk + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libfdisk" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libfdisk + CHECK_RESULT $? 0 0 "install libfdisk failed" + SLEEP_WAIT 1 + dnf remove -y libfdisk + CHECK_RESULT $? 0 0 "remove libfdisk failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libmount.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libmount.sh new file mode 100644 index 0000000000000000000000000000000000000000..02db12316d941fef7498b653d967963616295230 --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libmount.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libmount | grep -v \.src | grep libmount + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libmount" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libmount + CHECK_RESULT $? 0 0 "install libmount failed" + SLEEP_WAIT 1 + dnf remove -y libmount + CHECK_RESULT $? 0 0 "remove libmount failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libsmartcols.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libsmartcols.sh new file mode 100644 index 0000000000000000000000000000000000000000..6eb4f1fdfd2c98acbd23d3fecfd5928fd5f26123 --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libsmartcols.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libsmartcols | grep -v \.src | grep libsmartcols + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libsmartcols" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libsmartcols + CHECK_RESULT $? 0 0 "install libsmartcols failed" + SLEEP_WAIT 1 + dnf remove -y libsmartcols + CHECK_RESULT $? 0 0 "remove libsmartcols failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libuuid.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libuuid.sh new file mode 100644 index 0000000000000000000000000000000000000000..399be85c165c8847def7a1041f208ab82666d8b5 --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_libuuid.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available libuuid | grep -v \.src | grep libuuid + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm libuuid" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y libuuid + CHECK_RESULT $? 0 0 "install libuuid failed" + SLEEP_WAIT 1 + dnf remove -y libuuid + CHECK_RESULT $? 0 0 "remove libuuid failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_python-libmount.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_python-libmount.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa1c022cfb728d094bb08b74db4e0ae1310c8220 --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_python-libmount.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python-libmount | grep -v \.src | grep python-libmount + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python-libmount" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python-libmount + CHECK_RESULT $? 0 0 "install python-libmount failed" + SLEEP_WAIT 1 + dnf remove -y python-libmount + CHECK_RESULT $? 0 0 "remove python-libmount failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_python3-libmount.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_python3-libmount.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c8fd7f6e8ba2d173f78ab8d727e356287af6021 --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_python3-libmount.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-libmount | grep -v \.src | grep python3-libmount + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-libmount" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-libmount + CHECK_RESULT $? 0 0 "install python3-libmount failed" + SLEEP_WAIT 1 + dnf remove -y python3-libmount + CHECK_RESULT $? 0 0 "remove python3-libmount failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-debuginfo.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3363debdbe1e8be1e843f23b4f9e3c89ade7ed50 --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available util-linux-debuginfo | grep -v \.src | grep util-linux-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm util-linux-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y util-linux-debuginfo + CHECK_RESULT $? 0 0 "install util-linux-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y util-linux-debuginfo + CHECK_RESULT $? 0 0 "remove util-linux-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-debugsource.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b52c2c3c88230ea2499a01baa0e13a7ca69bf20a --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available util-linux-debugsource | grep -v \.src | grep util-linux-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm util-linux-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y util-linux-debugsource + CHECK_RESULT $? 0 0 "install util-linux-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y util-linux-debugsource + CHECK_RESULT $? 0 0 "remove util-linux-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-devel.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f83fd116a38da2bd69c533ca650f197af57cba8e --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available util-linux-devel | grep -v \.src | grep util-linux-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm util-linux-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y util-linux-devel + CHECK_RESULT $? 0 0 "install util-linux-devel failed" + SLEEP_WAIT 1 + dnf remove -y util-linux-devel + CHECK_RESULT $? 0 0 "remove util-linux-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-help.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2311100542e63d6acdc603da44d4da0d4494d4be --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available util-linux-help | grep -v \.src | grep util-linux-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm util-linux-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y util-linux-help + CHECK_RESULT $? 0 0 "install util-linux-help failed" + SLEEP_WAIT 1 + dnf remove -y util-linux-help + CHECK_RESULT $? 0 0 "remove util-linux-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-user.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-user.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9f5f57c23e8abd3b108dbc5d635253eef9bd8ac --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux-user.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available util-linux-user | grep -v \.src | grep util-linux-user + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm util-linux-user" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y util-linux-user + CHECK_RESULT $? 0 0 "install util-linux-user failed" + SLEEP_WAIT 1 + dnf remove -y util-linux-user + CHECK_RESULT $? 0 0 "remove util-linux-user failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux.sh new file mode 100644 index 0000000000000000000000000000000000000000..beaf26644a0517a4d766ca803142f928567b7efa --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_util-linux.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available util-linux | grep -v \.src | grep util-linux + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm util-linux" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y util-linux + CHECK_RESULT $? 0 0 "install util-linux failed" + SLEEP_WAIT 1 + dnf remove -y util-linux + CHECK_RESULT $? 0 0 "remove util-linux failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_uuidd.sh b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_uuidd.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9c2abafa619a09ba90efc259e54851c9e888068 --- /dev/null +++ b/testcases/cli-test/util-linux/oe_test_util-linux_install_and_remove_uuidd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src util-linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available uuidd | grep -v \.src | grep uuidd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm uuidd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y uuidd + CHECK_RESULT $? 0 0 "install uuidd failed" + SLEEP_WAIT 1 + dnf remove -y uuidd + CHECK_RESULT $? 0 0 "remove uuidd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-debuginfo.sh b/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4dde328c1bce99036f9a95371cd702c3d41887d --- /dev/null +++ b/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vala +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vala-debuginfo | grep -v \.src | grep vala-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vala-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vala-debuginfo + CHECK_RESULT $? 0 0 "install vala-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y vala-debuginfo + CHECK_RESULT $? 0 0 "remove vala-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-debugsource.sh b/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9321d17973673a8202af5e2f08c5717d0a34167f --- /dev/null +++ b/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vala +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vala-debugsource | grep -v \.src | grep vala-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vala-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vala-debugsource + CHECK_RESULT $? 0 0 "install vala-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y vala-debugsource + CHECK_RESULT $? 0 0 "remove vala-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-devel.sh b/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c4e5bcdafe1b79fcc95fb13c4d613b35d6e2e0b --- /dev/null +++ b/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vala +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vala-devel | grep -v \.src | grep vala-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vala-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vala-devel + CHECK_RESULT $? 0 0 "install vala-devel failed" + SLEEP_WAIT 1 + dnf remove -y vala-devel + CHECK_RESULT $? 0 0 "remove vala-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-help.sh b/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e5ef4ac6801b5e44bcf11320ac7b264e61fb65b --- /dev/null +++ b/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vala +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vala-help | grep -v \.src | grep vala-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vala-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vala-help + CHECK_RESULT $? 0 0 "install vala-help failed" + SLEEP_WAIT 1 + dnf remove -y vala-help + CHECK_RESULT $? 0 0 "remove vala-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala.sh b/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1395077f781b88f32959e30d8ef4bb7d793e7c0 --- /dev/null +++ b/testcases/cli-test/vala/oe_test_vala_install_and_remove_vala.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vala +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vala | grep -v \.src | grep vala + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vala" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vala + CHECK_RESULT $? 0 0 "install vala failed" + SLEEP_WAIT 1 + dnf remove -y vala + CHECK_RESULT $? 0 0 "remove vala failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-debuginfo.sh b/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2badf1b84cbaa924598df87f1edd6f3987df6129 --- /dev/null +++ b/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src valgrind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available valgrind-debuginfo | grep -v \.src | grep valgrind-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm valgrind-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y valgrind-debuginfo + CHECK_RESULT $? 0 0 "install valgrind-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y valgrind-debuginfo + CHECK_RESULT $? 0 0 "remove valgrind-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-debugsource.sh b/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..38a19dfb4c5d3ff8151a445b151b556c6a598fdf --- /dev/null +++ b/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src valgrind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available valgrind-debugsource | grep -v \.src | grep valgrind-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm valgrind-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y valgrind-debugsource + CHECK_RESULT $? 0 0 "install valgrind-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y valgrind-debugsource + CHECK_RESULT $? 0 0 "remove valgrind-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-devel.sh b/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a497c96879852d3a5cf9cba1ece5a2ed8ec085b --- /dev/null +++ b/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src valgrind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available valgrind-devel | grep -v \.src | grep valgrind-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm valgrind-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y valgrind-devel + CHECK_RESULT $? 0 0 "install valgrind-devel failed" + SLEEP_WAIT 1 + dnf remove -y valgrind-devel + CHECK_RESULT $? 0 0 "remove valgrind-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-help.sh b/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bca97628eefbe6df6be9d22055ec489ee2c9029 --- /dev/null +++ b/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src valgrind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available valgrind-help | grep -v \.src | grep valgrind-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm valgrind-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y valgrind-help + CHECK_RESULT $? 0 0 "install valgrind-help failed" + SLEEP_WAIT 1 + dnf remove -y valgrind-help + CHECK_RESULT $? 0 0 "remove valgrind-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind.sh b/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind.sh new file mode 100644 index 0000000000000000000000000000000000000000..addeea47e2bedb8faa453b21f48808948a36a47f --- /dev/null +++ b/testcases/cli-test/valgrind/oe_test_valgrind_install_and_remove_valgrind.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src valgrind +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available valgrind | grep -v \.src | grep valgrind + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm valgrind" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y valgrind + CHECK_RESULT $? 0 0 "install valgrind failed" + SLEEP_WAIT 1 + dnf remove -y valgrind + CHECK_RESULT $? 0 0 "remove valgrind failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig-debuginfo.sh b/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b90d371430946af6962720c1926b002bb8a0a98b --- /dev/null +++ b/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vconfig-debuginfo | grep -v \.src | grep vconfig-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vconfig-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vconfig-debuginfo + CHECK_RESULT $? 0 0 "install vconfig-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y vconfig-debuginfo + CHECK_RESULT $? 0 0 "remove vconfig-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig-debugsource.sh b/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf0847090e33a6269ef05f28692e9c98b751998f --- /dev/null +++ b/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vconfig-debugsource | grep -v \.src | grep vconfig-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vconfig-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vconfig-debugsource + CHECK_RESULT $? 0 0 "install vconfig-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y vconfig-debugsource + CHECK_RESULT $? 0 0 "remove vconfig-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig-help.sh b/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..32d2b8e2999569879b55bb047b737231308b6afb --- /dev/null +++ b/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vconfig-help | grep -v \.src | grep vconfig-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vconfig-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vconfig-help + CHECK_RESULT $? 0 0 "install vconfig-help failed" + SLEEP_WAIT 1 + dnf remove -y vconfig-help + CHECK_RESULT $? 0 0 "remove vconfig-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig.sh b/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig.sh new file mode 100644 index 0000000000000000000000000000000000000000..d94c23e59df340f4733d11e3813b063452fb39a1 --- /dev/null +++ b/testcases/cli-test/vconfig/oe_test_vconfig_install_and_remove_vconfig.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vconfig +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vconfig | grep -v \.src | grep vconfig + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vconfig" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vconfig + CHECK_RESULT $? 0 0 "install vconfig failed" + SLEEP_WAIT 1 + dnf remove -y vconfig + CHECK_RESULT $? 0 0 "remove vconfig failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-X11.sh b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-X11.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b303f109fe892a6a08fc71876903ee57f0cf299 --- /dev/null +++ b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-X11.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vim-X11 | grep -v \.src | grep vim-X11 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vim-X11" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vim-X11 + CHECK_RESULT $? 0 0 "install vim-X11 failed" + SLEEP_WAIT 1 + dnf remove -y vim-X11 + CHECK_RESULT $? 0 0 "remove vim-X11 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-common.sh b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..75c89f42068d87dd941338cb11094ab829164720 --- /dev/null +++ b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vim-common | grep -v \.src | grep vim-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vim-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vim-common + CHECK_RESULT $? 0 0 "install vim-common failed" + SLEEP_WAIT 1 + dnf remove -y vim-common + CHECK_RESULT $? 0 0 "remove vim-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-debuginfo.sh b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..a16b15d1e5982a2e00f87c8d3963b18b970add10 --- /dev/null +++ b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vim-debuginfo | grep -v \.src | grep vim-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vim-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vim-debuginfo + CHECK_RESULT $? 0 0 "install vim-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y vim-debuginfo + CHECK_RESULT $? 0 0 "remove vim-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-debugsource.sh b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd07eb0b3619b816089f5a3df105f7f51e6a9c4f --- /dev/null +++ b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vim-debugsource | grep -v \.src | grep vim-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vim-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vim-debugsource + CHECK_RESULT $? 0 0 "install vim-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y vim-debugsource + CHECK_RESULT $? 0 0 "remove vim-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-enhanced.sh b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-enhanced.sh new file mode 100644 index 0000000000000000000000000000000000000000..b44e07df37a016c868c79b5708746093875753b5 --- /dev/null +++ b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-enhanced.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vim-enhanced | grep -v \.src | grep vim-enhanced + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vim-enhanced" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vim-enhanced + CHECK_RESULT $? 0 0 "install vim-enhanced failed" + SLEEP_WAIT 1 + dnf remove -y vim-enhanced + CHECK_RESULT $? 0 0 "remove vim-enhanced failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-filesystem.sh b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-filesystem.sh new file mode 100644 index 0000000000000000000000000000000000000000..adf4a4fcfb79e899019462a2ad8f26bdb0c47de5 --- /dev/null +++ b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-filesystem.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vim-filesystem | grep -v \.src | grep vim-filesystem + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vim-filesystem" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vim-filesystem + CHECK_RESULT $? 0 0 "install vim-filesystem failed" + SLEEP_WAIT 1 + dnf remove -y vim-filesystem + CHECK_RESULT $? 0 0 "remove vim-filesystem failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-minimal.sh b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-minimal.sh new file mode 100644 index 0000000000000000000000000000000000000000..522e09b2030994be4739b60d887f38bc4c47ad88 --- /dev/null +++ b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim-minimal.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vim-minimal | grep -v \.src | grep vim-minimal + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vim-minimal" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vim-minimal + CHECK_RESULT $? 0 0 "install vim-minimal failed" + SLEEP_WAIT 1 + dnf remove -y vim-minimal + CHECK_RESULT $? 0 0 "remove vim-minimal failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim.sh b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dba9cdb3e6dc6cc80714075e9e4f9d8f0aa37d7 --- /dev/null +++ b/testcases/cli-test/vim/oe_test_vim_install_and_remove_vim.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vim +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vim | grep -v \.src | grep vim + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vim" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vim + CHECK_RESULT $? 0 0 "install vim failed" + SLEEP_WAIT 1 + dnf remove -y vim + CHECK_RESULT $? 0 0 "remove vim failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_python3-gtk-vnc.sh b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_python3-gtk-vnc.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe5ef672dbd5aeef9f803f673b7fc22112928884 --- /dev/null +++ b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_python3-gtk-vnc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src volume_key +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-gtk-vnc | grep -v \.src | grep python3-gtk-vnc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-gtk-vnc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-gtk-vnc + CHECK_RESULT $? 0 0 "install python3-gtk-vnc failed" + SLEEP_WAIT 1 + dnf remove -y python3-gtk-vnc + CHECK_RESULT $? 0 0 "remove python3-gtk-vnc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_python3-volume_key.sh b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_python3-volume_key.sh new file mode 100644 index 0000000000000000000000000000000000000000..6014e9a914b352a28d35d14c7b0f54acf24bf2a6 --- /dev/null +++ b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_python3-volume_key.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src volume_key +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available python3-volume_key | grep -v \.src | grep python3-volume_key + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm python3-volume_key" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y python3-volume_key + CHECK_RESULT $? 0 0 "install python3-volume_key failed" + SLEEP_WAIT 1 + dnf remove -y python3-volume_key + CHECK_RESULT $? 0 0 "remove python3-volume_key failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-debuginfo.sh b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..35a3febc46c185cfcdd5dc590a3cedc0c7d9c855 --- /dev/null +++ b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src volume_key +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available volume_key-debuginfo | grep -v \.src | grep volume_key-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm volume_key-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y volume_key-debuginfo + CHECK_RESULT $? 0 0 "install volume_key-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y volume_key-debuginfo + CHECK_RESULT $? 0 0 "remove volume_key-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-debugsource.sh b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ff02361a35f96737b529ac18ca1cab9a2b761e4 --- /dev/null +++ b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src volume_key +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available volume_key-debugsource | grep -v \.src | grep volume_key-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm volume_key-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y volume_key-debugsource + CHECK_RESULT $? 0 0 "install volume_key-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y volume_key-debugsource + CHECK_RESULT $? 0 0 "remove volume_key-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-devel.sh b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a17bd51c42bbddec28efd5090197b455803fc71 --- /dev/null +++ b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src volume_key +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available volume_key-devel | grep -v \.src | grep volume_key-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm volume_key-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y volume_key-devel + CHECK_RESULT $? 0 0 "install volume_key-devel failed" + SLEEP_WAIT 1 + dnf remove -y volume_key-devel + CHECK_RESULT $? 0 0 "remove volume_key-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-help.sh b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0829aa3762f37cf28deb314426abb7b3349f36f9 --- /dev/null +++ b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src volume_key +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available volume_key-help | grep -v \.src | grep volume_key-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm volume_key-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y volume_key-help + CHECK_RESULT $? 0 0 "install volume_key-help failed" + SLEEP_WAIT 1 + dnf remove -y volume_key-help + CHECK_RESULT $? 0 0 "remove volume_key-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key.sh b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ac90110cb8bdb7ff3deeb94f767f98e9676d84f --- /dev/null +++ b/testcases/cli-test/volume_key/oe_test_volume_key_install_and_remove_volume_key.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src volume_key +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available volume_key | grep -v \.src | grep volume_key + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm volume_key" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y volume_key + CHECK_RESULT $? 0 0 "install volume_key failed" + SLEEP_WAIT 1 + dnf remove -y volume_key + CHECK_RESULT $? 0 0 "remove volume_key failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vulkan-headers/oe_test_vulkan-headers_install_and_remove_vulkan-headers.sh b/testcases/cli-test/vulkan-headers/oe_test_vulkan-headers_install_and_remove_vulkan-headers.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fe36c0269bea9b609a6cd1396f9bd639789cda4 --- /dev/null +++ b/testcases/cli-test/vulkan-headers/oe_test_vulkan-headers_install_and_remove_vulkan-headers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vulkan-headers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vulkan-headers | grep -v \.src | grep vulkan-headers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vulkan-headers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vulkan-headers + CHECK_RESULT $? 0 0 "install vulkan-headers failed" + SLEEP_WAIT 1 + dnf remove -y vulkan-headers + CHECK_RESULT $? 0 0 "remove vulkan-headers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader-debuginfo.sh b/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..73135d18187fa5ccd6cee97d657576d3b2eb1adc --- /dev/null +++ b/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vulkan-loader +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vulkan-loader-debuginfo | grep -v \.src | grep vulkan-loader-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vulkan-loader-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vulkan-loader-debuginfo + CHECK_RESULT $? 0 0 "install vulkan-loader-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y vulkan-loader-debuginfo + CHECK_RESULT $? 0 0 "remove vulkan-loader-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader-debugsource.sh b/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..912cf8cf2026d46abbb702878c380ab43e1eedcd --- /dev/null +++ b/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vulkan-loader +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vulkan-loader-debugsource | grep -v \.src | grep vulkan-loader-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vulkan-loader-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vulkan-loader-debugsource + CHECK_RESULT $? 0 0 "install vulkan-loader-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y vulkan-loader-debugsource + CHECK_RESULT $? 0 0 "remove vulkan-loader-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader-devel.sh b/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed83a818c305faf16fb84ba44046dcfe7f25489f --- /dev/null +++ b/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vulkan-loader +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vulkan-loader-devel | grep -v \.src | grep vulkan-loader-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vulkan-loader-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vulkan-loader-devel + CHECK_RESULT $? 0 0 "install vulkan-loader-devel failed" + SLEEP_WAIT 1 + dnf remove -y vulkan-loader-devel + CHECK_RESULT $? 0 0 "remove vulkan-loader-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader.sh b/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader.sh new file mode 100644 index 0000000000000000000000000000000000000000..7040897126e75bf6b4dbcf8317ae2d30b789cc8d --- /dev/null +++ b/testcases/cli-test/vulkan-loader/oe_test_vulkan-loader_install_and_remove_vulkan-loader.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src vulkan-loader +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available vulkan-loader | grep -v \.src | grep vulkan-loader + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm vulkan-loader" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y vulkan-loader + CHECK_RESULT $? 0 0 "install vulkan-loader failed" + SLEEP_WAIT 1 + dnf remove -y vulkan-loader + CHECK_RESULT $? 0 0 "remove vulkan-loader failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wayland-protocols/oe_test_wayland-protocols_install_and_remove_wayland-protocols-devel.sh b/testcases/cli-test/wayland-protocols/oe_test_wayland-protocols_install_and_remove_wayland-protocols-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e818040e367fa848de0d2e2ebb3bb59a2b928569 --- /dev/null +++ b/testcases/cli-test/wayland-protocols/oe_test_wayland-protocols_install_and_remove_wayland-protocols-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wayland-protocols +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wayland-protocols-devel | grep -v \.src | grep wayland-protocols-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wayland-protocols-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wayland-protocols-devel + CHECK_RESULT $? 0 0 "install wayland-protocols-devel failed" + SLEEP_WAIT 1 + dnf remove -y wayland-protocols-devel + CHECK_RESULT $? 0 0 "remove wayland-protocols-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wayland-protocols/oe_test_wayland-protocols_install_and_remove_wayland-protocols.sh b/testcases/cli-test/wayland-protocols/oe_test_wayland-protocols_install_and_remove_wayland-protocols.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b13ce0edf179e36b2be57a0619b98d033e82e8d --- /dev/null +++ b/testcases/cli-test/wayland-protocols/oe_test_wayland-protocols_install_and_remove_wayland-protocols.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wayland-protocols +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wayland-protocols | grep -v \.src | grep wayland-protocols + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wayland-protocols" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wayland-protocols + CHECK_RESULT $? 0 0 "install wayland-protocols failed" + SLEEP_WAIT 1 + dnf remove -y wayland-protocols + CHECK_RESULT $? 0 0 "remove wayland-protocols failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-debuginfo.sh b/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e0b110b9987d445c8eea7d43ae7d16b3cae6145 --- /dev/null +++ b/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wayland +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wayland-debuginfo | grep -v \.src | grep wayland-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wayland-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wayland-debuginfo + CHECK_RESULT $? 0 0 "install wayland-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y wayland-debuginfo + CHECK_RESULT $? 0 0 "remove wayland-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-debugsource.sh b/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..377ba4beac0837257cde190d86010b131381099a --- /dev/null +++ b/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wayland +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wayland-debugsource | grep -v \.src | grep wayland-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wayland-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wayland-debugsource + CHECK_RESULT $? 0 0 "install wayland-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y wayland-debugsource + CHECK_RESULT $? 0 0 "remove wayland-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-devel.sh b/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0dea455226300b923a3393f2e7510c04e751a08 --- /dev/null +++ b/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wayland +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wayland-devel | grep -v \.src | grep wayland-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wayland-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wayland-devel + CHECK_RESULT $? 0 0 "install wayland-devel failed" + SLEEP_WAIT 1 + dnf remove -y wayland-devel + CHECK_RESULT $? 0 0 "remove wayland-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-help.sh b/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f100e74106908a03d52efb2b8075748d2a0e296 --- /dev/null +++ b/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wayland +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wayland-help | grep -v \.src | grep wayland-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wayland-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wayland-help + CHECK_RESULT $? 0 0 "install wayland-help failed" + SLEEP_WAIT 1 + dnf remove -y wayland-help + CHECK_RESULT $? 0 0 "remove wayland-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland.sh b/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland.sh new file mode 100644 index 0000000000000000000000000000000000000000..5467363620c1e2767ac4364645db040745a5b504 --- /dev/null +++ b/testcases/cli-test/wayland/oe_test_wayland_install_and_remove_wayland.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wayland +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wayland | grep -v \.src | grep wayland + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wayland" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wayland + CHECK_RESULT $? 0 0 "install wayland failed" + SLEEP_WAIT 1 + dnf remove -y wayland + CHECK_RESULT $? 0 0 "remove wayland failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc4.1-devel.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc4.1-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..391eb0aa5e15d30ca29fb602760beda7f9092763 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc4.1-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jsc4.1-devel | grep -v \.src | grep jsc4.1-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jsc4.1-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jsc4.1-devel + CHECK_RESULT $? 0 0 "install jsc4.1-devel failed" + SLEEP_WAIT 1 + dnf remove -y jsc4.1-devel + CHECK_RESULT $? 0 0 "remove jsc4.1-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc4.1.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc4.1.sh new file mode 100644 index 0000000000000000000000000000000000000000..465ae34fefcae58fd1b04347d2bb382ce96b6f08 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc4.1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jsc4.1 | grep -v \.src | grep jsc4.1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jsc4.1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jsc4.1 + CHECK_RESULT $? 0 0 "install jsc4.1 failed" + SLEEP_WAIT 1 + dnf remove -y jsc4.1 + CHECK_RESULT $? 0 0 "remove jsc4.1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc5.0-devel.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc5.0-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ff6aaa1b3c7a732a72ceaea3e7ff3ee45f59d20 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc5.0-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jsc5.0-devel | grep -v \.src | grep jsc5.0-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jsc5.0-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jsc5.0-devel + CHECK_RESULT $? 0 0 "install jsc5.0-devel failed" + SLEEP_WAIT 1 + dnf remove -y jsc5.0-devel + CHECK_RESULT $? 0 0 "remove jsc5.0-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc5.0.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc5.0.sh new file mode 100644 index 0000000000000000000000000000000000000000..be5acc3eb866ba6977515868f8b64edc430a5f4c --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_jsc5.0.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available jsc5.0 | grep -v \.src | grep jsc5.0 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm jsc5.0" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y jsc5.0 + CHECK_RESULT $? 0 0 "install jsc5.0 failed" + SLEEP_WAIT 1 + dnf remove -y jsc5.0 + CHECK_RESULT $? 0 0 "remove jsc5.0 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-debuginfo.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..0028931860446b0895ab183897a4a1e37176ebdc --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk3-debuginfo | grep -v \.src | grep webkit2gtk3-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk3-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk3-debuginfo + CHECK_RESULT $? 0 0 "install webkit2gtk3-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk3-debuginfo + CHECK_RESULT $? 0 0 "remove webkit2gtk3-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-debugsource.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..21e253e1c4bc52566e9f2359670565ce2456328c --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk3-debugsource | grep -v \.src | grep webkit2gtk3-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk3-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk3-debugsource + CHECK_RESULT $? 0 0 "install webkit2gtk3-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk3-debugsource + CHECK_RESULT $? 0 0 "remove webkit2gtk3-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-devel.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..31df1b04432eb966b7d0d7468ee4f188e4f72d73 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk3-devel | grep -v \.src | grep webkit2gtk3-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk3-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk3-devel + CHECK_RESULT $? 0 0 "install webkit2gtk3-devel failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk3-devel + CHECK_RESULT $? 0 0 "remove webkit2gtk3-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-help.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..de505ade6b8c3adb8990005217419d07e1e668e4 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk3-help | grep -v \.src | grep webkit2gtk3-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk3-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk3-help + CHECK_RESULT $? 0 0 "install webkit2gtk3-help failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk3-help + CHECK_RESULT $? 0 0 "remove webkit2gtk3-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-jsc-devel.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-jsc-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c52140f0309dcba83e19fc6bf7f858098a0dcb4 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-jsc-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk3-jsc-devel | grep -v \.src | grep webkit2gtk3-jsc-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk3-jsc-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk3-jsc-devel + CHECK_RESULT $? 0 0 "install webkit2gtk3-jsc-devel failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk3-jsc-devel + CHECK_RESULT $? 0 0 "remove webkit2gtk3-jsc-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-jsc.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-jsc.sh new file mode 100644 index 0000000000000000000000000000000000000000..f987f24b87c5cff28a7ef66c0554f0337c835966 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3-jsc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk3-jsc | grep -v \.src | grep webkit2gtk3-jsc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk3-jsc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk3-jsc + CHECK_RESULT $? 0 0 "install webkit2gtk3-jsc failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk3-jsc + CHECK_RESULT $? 0 0 "remove webkit2gtk3-jsc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3.sh new file mode 100644 index 0000000000000000000000000000000000000000..6679a5aa98cf8362f138481029bb3a7f36679fe5 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk3.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk3 | grep -v \.src | grep webkit2gtk3 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk3" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk3 + CHECK_RESULT $? 0 0 "install webkit2gtk3 failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk3 + CHECK_RESULT $? 0 0 "remove webkit2gtk3 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1-devel.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f89dcbcedbe00c9d53c61b28f465f8652aff1abd --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk4.1-devel | grep -v \.src | grep webkit2gtk4.1-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk4.1-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk4.1-devel + CHECK_RESULT $? 0 0 "install webkit2gtk4.1-devel failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk4.1-devel + CHECK_RESULT $? 0 0 "remove webkit2gtk4.1-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1-help.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d27d95c10cadad588bbfb71a3cadc3a1b76a481 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk4.1-help | grep -v \.src | grep webkit2gtk4.1-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk4.1-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk4.1-help + CHECK_RESULT $? 0 0 "install webkit2gtk4.1-help failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk4.1-help + CHECK_RESULT $? 0 0 "remove webkit2gtk4.1-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a4aae35a1984c0099853e1b638884ab2dca318e --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk4.1.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk4.1 | grep -v \.src | grep webkit2gtk4.1 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk4.1" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk4.1 + CHECK_RESULT $? 0 0 "install webkit2gtk4.1 failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk4.1 + CHECK_RESULT $? 0 0 "remove webkit2gtk4.1 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0-devel.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d95a6940478d7b552dc13f5b117bfa72280e7b9 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk5.0-devel | grep -v \.src | grep webkit2gtk5.0-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk5.0-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk5.0-devel + CHECK_RESULT $? 0 0 "install webkit2gtk5.0-devel failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk5.0-devel + CHECK_RESULT $? 0 0 "remove webkit2gtk5.0-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0-help.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fd34c7029d1a2e370bfa9ee03fc9fb753432a82 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk5.0-help | grep -v \.src | grep webkit2gtk5.0-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk5.0-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk5.0-help + CHECK_RESULT $? 0 0 "install webkit2gtk5.0-help failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk5.0-help + CHECK_RESULT $? 0 0 "remove webkit2gtk5.0-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0.sh b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3485dfcbdfd04a448f99bfc4fe902f72075df51 --- /dev/null +++ b/testcases/cli-test/webkit2gtk3/oe_test_webkit2gtk3_install_and_remove_webkit2gtk5.0.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webkit2gtk3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webkit2gtk5.0 | grep -v \.src | grep webkit2gtk5.0 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webkit2gtk5.0" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webkit2gtk5.0 + CHECK_RESULT $? 0 0 "install webkit2gtk5.0 failed" + SLEEP_WAIT 1 + dnf remove -y webkit2gtk5.0 + CHECK_RESULT $? 0 0 "remove webkit2gtk5.0 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-debuginfo.sh b/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f21c7885d7447d709fb4142632909601ffd611b --- /dev/null +++ b/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webrtc-audio-processing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webrtc-audio-processing-debuginfo | grep -v \.src | grep webrtc-audio-processing-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webrtc-audio-processing-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webrtc-audio-processing-debuginfo + CHECK_RESULT $? 0 0 "install webrtc-audio-processing-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y webrtc-audio-processing-debuginfo + CHECK_RESULT $? 0 0 "remove webrtc-audio-processing-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-debugsource.sh b/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..db8849159acffe3ab8b56b55b74142e77c11c057 --- /dev/null +++ b/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webrtc-audio-processing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webrtc-audio-processing-debugsource | grep -v \.src | grep webrtc-audio-processing-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webrtc-audio-processing-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webrtc-audio-processing-debugsource + CHECK_RESULT $? 0 0 "install webrtc-audio-processing-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y webrtc-audio-processing-debugsource + CHECK_RESULT $? 0 0 "remove webrtc-audio-processing-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-devel.sh b/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7095f6bd0984aaf8e062e35a76133977dd1c576 --- /dev/null +++ b/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webrtc-audio-processing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webrtc-audio-processing-devel | grep -v \.src | grep webrtc-audio-processing-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webrtc-audio-processing-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webrtc-audio-processing-devel + CHECK_RESULT $? 0 0 "install webrtc-audio-processing-devel failed" + SLEEP_WAIT 1 + dnf remove -y webrtc-audio-processing-devel + CHECK_RESULT $? 0 0 "remove webrtc-audio-processing-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-help.sh b/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d14bcce51d1e429b7cefd5c045ff5c16b796671 --- /dev/null +++ b/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webrtc-audio-processing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webrtc-audio-processing-help | grep -v \.src | grep webrtc-audio-processing-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webrtc-audio-processing-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webrtc-audio-processing-help + CHECK_RESULT $? 0 0 "install webrtc-audio-processing-help failed" + SLEEP_WAIT 1 + dnf remove -y webrtc-audio-processing-help + CHECK_RESULT $? 0 0 "remove webrtc-audio-processing-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing.sh b/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing.sh new file mode 100644 index 0000000000000000000000000000000000000000..56502f9c2da0c3aad30c1239d659004635597dec --- /dev/null +++ b/testcases/cli-test/webrtc-audio-processing/oe_test_webrtc-audio-processing_install_and_remove_webrtc-audio-processing.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src webrtc-audio-processing +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available webrtc-audio-processing | grep -v \.src | grep webrtc-audio-processing + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm webrtc-audio-processing" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y webrtc-audio-processing + CHECK_RESULT $? 0 0 "install webrtc-audio-processing failed" + SLEEP_WAIT 1 + dnf remove -y webrtc-audio-processing + CHECK_RESULT $? 0 0 "remove webrtc-audio-processing failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-debuginfo.sh b/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba14f94cd4415a226e0f560496873918851851dc --- /dev/null +++ b/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wget +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wget-debuginfo | grep -v \.src | grep wget-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wget-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wget-debuginfo + CHECK_RESULT $? 0 0 "install wget-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y wget-debuginfo + CHECK_RESULT $? 0 0 "remove wget-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-debugsource.sh b/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd8a090473a77173f694373e87643be97e184deb --- /dev/null +++ b/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wget +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wget-debugsource | grep -v \.src | grep wget-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wget-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wget-debugsource + CHECK_RESULT $? 0 0 "install wget-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y wget-debugsource + CHECK_RESULT $? 0 0 "remove wget-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-doc.sh b/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..105241811676523fd32ea7e7df92d10540c879c4 --- /dev/null +++ b/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wget +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wget-doc | grep -v \.src | grep wget-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wget-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wget-doc + CHECK_RESULT $? 0 0 "install wget-doc failed" + SLEEP_WAIT 1 + dnf remove -y wget-doc + CHECK_RESULT $? 0 0 "remove wget-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-help.sh b/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f137df56d4e0b626c3f66bf18baf2b1d80240718 --- /dev/null +++ b/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wget +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wget-help | grep -v \.src | grep wget-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wget-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wget-help + CHECK_RESULT $? 0 0 "install wget-help failed" + SLEEP_WAIT 1 + dnf remove -y wget-help + CHECK_RESULT $? 0 0 "remove wget-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget.sh b/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget.sh new file mode 100644 index 0000000000000000000000000000000000000000..d813a47b901c397155319526d8e38e78b173099f --- /dev/null +++ b/testcases/cli-test/wget/oe_test_wget_install_and_remove_wget.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wget +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wget | grep -v \.src | grep wget + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wget" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wget + CHECK_RESULT $? 0 0 "install wget failed" + SLEEP_WAIT 1 + dnf remove -y wget + CHECK_RESULT $? 0 0 "remove wget failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/which/oe_test_which_install_and_remove_which-debuginfo.sh b/testcases/cli-test/which/oe_test_which_install_and_remove_which-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..31be91b643ebf6f265bd987ecb601061bbda3475 --- /dev/null +++ b/testcases/cli-test/which/oe_test_which_install_and_remove_which-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src which +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available which-debuginfo | grep -v \.src | grep which-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm which-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y which-debuginfo + CHECK_RESULT $? 0 0 "install which-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y which-debuginfo + CHECK_RESULT $? 0 0 "remove which-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/which/oe_test_which_install_and_remove_which-debugsource.sh b/testcases/cli-test/which/oe_test_which_install_and_remove_which-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0a9e31e39f0d812f5b44cc7ba4e898e19a65f92 --- /dev/null +++ b/testcases/cli-test/which/oe_test_which_install_and_remove_which-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src which +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available which-debugsource | grep -v \.src | grep which-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm which-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y which-debugsource + CHECK_RESULT $? 0 0 "install which-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y which-debugsource + CHECK_RESULT $? 0 0 "remove which-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/which/oe_test_which_install_and_remove_which-help.sh b/testcases/cli-test/which/oe_test_which_install_and_remove_which-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1a4e20545c0a99b9b7c934323aae985cb56452f --- /dev/null +++ b/testcases/cli-test/which/oe_test_which_install_and_remove_which-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src which +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available which-help | grep -v \.src | grep which-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm which-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y which-help + CHECK_RESULT $? 0 0 "install which-help failed" + SLEEP_WAIT 1 + dnf remove -y which-help + CHECK_RESULT $? 0 0 "remove which-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/which/oe_test_which_install_and_remove_which.sh b/testcases/cli-test/which/oe_test_which_install_and_remove_which.sh new file mode 100644 index 0000000000000000000000000000000000000000..2318383d8bf810fdb987ae5a8651c8572c25d663 --- /dev/null +++ b/testcases/cli-test/which/oe_test_which_install_and_remove_which.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src which +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available which | grep -v \.src | grep which + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm which" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y which + CHECK_RESULT $? 0 0 "install which failed" + SLEEP_WAIT 1 + dnf remove -y which + CHECK_RESULT $? 0 0 "remove which failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2-debuginfo.sh b/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..eef036cff3e5dbdc9c43a65a9be3ad0846d629cd --- /dev/null +++ b/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src woff2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available woff2-debuginfo | grep -v \.src | grep woff2-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm woff2-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y woff2-debuginfo + CHECK_RESULT $? 0 0 "install woff2-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y woff2-debuginfo + CHECK_RESULT $? 0 0 "remove woff2-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2-debugsource.sh b/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..7acaf7d529ec033d9848dc5cf0105f674ac4ffbb --- /dev/null +++ b/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src woff2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available woff2-debugsource | grep -v \.src | grep woff2-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm woff2-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y woff2-debugsource + CHECK_RESULT $? 0 0 "install woff2-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y woff2-debugsource + CHECK_RESULT $? 0 0 "remove woff2-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2-devel.sh b/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f68f396dfde1ab117e9e094895ef64888a7b15c4 --- /dev/null +++ b/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src woff2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available woff2-devel | grep -v \.src | grep woff2-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm woff2-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y woff2-devel + CHECK_RESULT $? 0 0 "install woff2-devel failed" + SLEEP_WAIT 1 + dnf remove -y woff2-devel + CHECK_RESULT $? 0 0 "remove woff2-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2.sh b/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e451fc3f671f6da445d3426dc91886e0476e2b1 --- /dev/null +++ b/testcases/cli-test/woff2/oe_test_woff2_install_and_remove_woff2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src woff2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available woff2 | grep -v \.src | grep woff2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm woff2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y woff2 + CHECK_RESULT $? 0 0 "install woff2 failed" + SLEEP_WAIT 1 + dnf remove -y woff2 + CHECK_RESULT $? 0 0 "remove woff2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/words/oe_test_words_install_and_remove_words.sh b/testcases/cli-test/words/oe_test_words_install_and_remove_words.sh new file mode 100644 index 0000000000000000000000000000000000000000..473e3f5a624f08f365ab2502323095840f4d6b91 --- /dev/null +++ b/testcases/cli-test/words/oe_test_words_install_and_remove_words.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src words +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available words | grep -v \.src | grep words + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm words" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y words + CHECK_RESULT $? 0 0 "install words failed" + SLEEP_WAIT 1 + dnf remove -y words + CHECK_RESULT $? 0 0 "remove words failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-debuginfo.sh b/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..93cf31b0b4f0a180424fde902b33f74369714d52 --- /dev/null +++ b/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wpebackend-fdo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wpebackend-fdo-debuginfo | grep -v \.src | grep wpebackend-fdo-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wpebackend-fdo-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wpebackend-fdo-debuginfo + CHECK_RESULT $? 0 0 "install wpebackend-fdo-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y wpebackend-fdo-debuginfo + CHECK_RESULT $? 0 0 "remove wpebackend-fdo-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-debugsource.sh b/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..df575ad02323ca1faee47a1098f9bf6d1230c7f9 --- /dev/null +++ b/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wpebackend-fdo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wpebackend-fdo-debugsource | grep -v \.src | grep wpebackend-fdo-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wpebackend-fdo-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wpebackend-fdo-debugsource + CHECK_RESULT $? 0 0 "install wpebackend-fdo-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y wpebackend-fdo-debugsource + CHECK_RESULT $? 0 0 "remove wpebackend-fdo-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-devel.sh b/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d030bc6354539b9b05c53be310f77cc28c31e767 --- /dev/null +++ b/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wpebackend-fdo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wpebackend-fdo-devel | grep -v \.src | grep wpebackend-fdo-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wpebackend-fdo-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wpebackend-fdo-devel + CHECK_RESULT $? 0 0 "install wpebackend-fdo-devel failed" + SLEEP_WAIT 1 + dnf remove -y wpebackend-fdo-devel + CHECK_RESULT $? 0 0 "remove wpebackend-fdo-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo.sh b/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo.sh new file mode 100644 index 0000000000000000000000000000000000000000..94145af61bfb78a61eb174399b755948083e5679 --- /dev/null +++ b/testcases/cli-test/wpebackend-fdo/oe_test_wpebackend-fdo_install_and_remove_wpebackend-fdo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src wpebackend-fdo +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available wpebackend-fdo | grep -v \.src | grep wpebackend-fdo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm wpebackend-fdo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y wpebackend-fdo + CHECK_RESULT $? 0 0 "install wpebackend-fdo failed" + SLEEP_WAIT 1 + dnf remove -y wpebackend-fdo + CHECK_RESULT $? 0 0 "remove wpebackend-fdo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xalan-j2/oe_test_xalan-j2_install_and_remove_xalan-j2-xsltc.sh b/testcases/cli-test/xalan-j2/oe_test_xalan-j2_install_and_remove_xalan-j2-xsltc.sh new file mode 100644 index 0000000000000000000000000000000000000000..57296dfb926d81080bdb53ad748b2667e428f917 --- /dev/null +++ b/testcases/cli-test/xalan-j2/oe_test_xalan-j2_install_and_remove_xalan-j2-xsltc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xalan-j2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xalan-j2-xsltc | grep -v \.src | grep xalan-j2-xsltc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xalan-j2-xsltc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xalan-j2-xsltc + CHECK_RESULT $? 0 0 "install xalan-j2-xsltc failed" + SLEEP_WAIT 1 + dnf remove -y xalan-j2-xsltc + CHECK_RESULT $? 0 0 "remove xalan-j2-xsltc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xalan-j2/oe_test_xalan-j2_install_and_remove_xalan-j2.sh b/testcases/cli-test/xalan-j2/oe_test_xalan-j2_install_and_remove_xalan-j2.sh new file mode 100644 index 0000000000000000000000000000000000000000..db3999122eff5a8d7b6fe51760a5c46664fbfc8d --- /dev/null +++ b/testcases/cli-test/xalan-j2/oe_test_xalan-j2_install_and_remove_xalan-j2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xalan-j2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xalan-j2 | grep -v \.src | grep xalan-j2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xalan-j2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xalan-j2 + CHECK_RESULT $? 0 0 "install xalan-j2 failed" + SLEEP_WAIT 1 + dnf remove -y xalan-j2 + CHECK_RESULT $? 0 0 "remove xalan-j2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-debuginfo.sh b/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9625ea9d88d869c7e0e9a8540fbb1160c4333e7 --- /dev/null +++ b/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xapian-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xapian-core-debuginfo | grep -v \.src | grep xapian-core-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xapian-core-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xapian-core-debuginfo + CHECK_RESULT $? 0 0 "install xapian-core-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xapian-core-debuginfo + CHECK_RESULT $? 0 0 "remove xapian-core-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-debugsource.sh b/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..879138764d9893b2ab8296c99a0c57922c7683c1 --- /dev/null +++ b/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xapian-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xapian-core-debugsource | grep -v \.src | grep xapian-core-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xapian-core-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xapian-core-debugsource + CHECK_RESULT $? 0 0 "install xapian-core-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xapian-core-debugsource + CHECK_RESULT $? 0 0 "remove xapian-core-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-devel.sh b/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..08c4561b83d6ceb930ddf9102e2851a20225d8eb --- /dev/null +++ b/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xapian-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xapian-core-devel | grep -v \.src | grep xapian-core-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xapian-core-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xapian-core-devel + CHECK_RESULT $? 0 0 "install xapian-core-devel failed" + SLEEP_WAIT 1 + dnf remove -y xapian-core-devel + CHECK_RESULT $? 0 0 "remove xapian-core-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-help.sh b/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ebe48ccbf4ff70ee0986fb7920a5d6f0f8951f2 --- /dev/null +++ b/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xapian-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xapian-core-help | grep -v \.src | grep xapian-core-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xapian-core-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xapian-core-help + CHECK_RESULT $? 0 0 "install xapian-core-help failed" + SLEEP_WAIT 1 + dnf remove -y xapian-core-help + CHECK_RESULT $? 0 0 "remove xapian-core-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core.sh b/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core.sh new file mode 100644 index 0000000000000000000000000000000000000000..50d473e5b0e7ab1ab8da944664e1e9c1b3a7f19e --- /dev/null +++ b/testcases/cli-test/xapian-core/oe_test_xapian-core_install_and_remove_xapian-core.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xapian-core +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xapian-core | grep -v \.src | grep xapian-core + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xapian-core" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xapian-core + CHECK_RESULT $? 0 0 "install xapian-core failed" + SLEEP_WAIT 1 + dnf remove -y xapian-core + CHECK_RESULT $? 0 0 "remove xapian-core failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-proto/oe_test_xcb-proto_install_and_remove_xcb-proto.sh b/testcases/cli-test/xcb-proto/oe_test_xcb-proto_install_and_remove_xcb-proto.sh new file mode 100644 index 0000000000000000000000000000000000000000..18e79c78ddcda64b7b4433af116a22a3d9a4d379 --- /dev/null +++ b/testcases/cli-test/xcb-proto/oe_test_xcb-proto_install_and_remove_xcb-proto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-proto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-proto | grep -v \.src | grep xcb-proto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-proto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-proto + CHECK_RESULT $? 0 0 "install xcb-proto failed" + SLEEP_WAIT 1 + dnf remove -y xcb-proto + CHECK_RESULT $? 0 0 "remove xcb-proto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image-debuginfo.sh b/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..62bc76577b1d9793da6f36ece8ed42632d6529d1 --- /dev/null +++ b/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-image +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-image-debuginfo | grep -v \.src | grep xcb-util-image-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-image-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-image-debuginfo + CHECK_RESULT $? 0 0 "install xcb-util-image-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-image-debuginfo + CHECK_RESULT $? 0 0 "remove xcb-util-image-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image-debugsource.sh b/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..2cfd3521cc11ebc60eceee6db27b7139cb5e419a --- /dev/null +++ b/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-image +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-image-debugsource | grep -v \.src | grep xcb-util-image-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-image-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-image-debugsource + CHECK_RESULT $? 0 0 "install xcb-util-image-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-image-debugsource + CHECK_RESULT $? 0 0 "remove xcb-util-image-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image-devel.sh b/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..f69301f75cd092538f7c0ac05cf40e0ce01ddf60 --- /dev/null +++ b/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-image +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-image-devel | grep -v \.src | grep xcb-util-image-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-image-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-image-devel + CHECK_RESULT $? 0 0 "install xcb-util-image-devel failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-image-devel + CHECK_RESULT $? 0 0 "remove xcb-util-image-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image.sh b/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image.sh new file mode 100644 index 0000000000000000000000000000000000000000..76e441dd43dd8fa4549d87b0cd3398b71c45e089 --- /dev/null +++ b/testcases/cli-test/xcb-util-image/oe_test_xcb-util-image_install_and_remove_xcb-util-image.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-image +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-image | grep -v \.src | grep xcb-util-image + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-image" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-image + CHECK_RESULT $? 0 0 "install xcb-util-image failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-image + CHECK_RESULT $? 0 0 "remove xcb-util-image failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-debuginfo.sh b/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..da4a61b897b2b6d907d1c5bbbc13813d035dbc28 --- /dev/null +++ b/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-keysyms +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-keysyms-debuginfo | grep -v \.src | grep xcb-util-keysyms-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-keysyms-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-keysyms-debuginfo + CHECK_RESULT $? 0 0 "install xcb-util-keysyms-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-keysyms-debuginfo + CHECK_RESULT $? 0 0 "remove xcb-util-keysyms-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-debugsource.sh b/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2fd24de5790caf2486b36bc0b9e4fe7f029c155 --- /dev/null +++ b/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-keysyms +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-keysyms-debugsource | grep -v \.src | grep xcb-util-keysyms-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-keysyms-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-keysyms-debugsource + CHECK_RESULT $? 0 0 "install xcb-util-keysyms-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-keysyms-debugsource + CHECK_RESULT $? 0 0 "remove xcb-util-keysyms-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-devel.sh b/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bf70d250413310cc3f3ffdc9edd082868e2b29b --- /dev/null +++ b/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-keysyms +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-keysyms-devel | grep -v \.src | grep xcb-util-keysyms-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-keysyms-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-keysyms-devel + CHECK_RESULT $? 0 0 "install xcb-util-keysyms-devel failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-keysyms-devel + CHECK_RESULT $? 0 0 "remove xcb-util-keysyms-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms.sh b/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms.sh new file mode 100644 index 0000000000000000000000000000000000000000..d27426b691846395bfc8bdc26208c347f88d0e0e --- /dev/null +++ b/testcases/cli-test/xcb-util-keysyms/oe_test_xcb-util-keysyms_install_and_remove_xcb-util-keysyms.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-keysyms +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-keysyms | grep -v \.src | grep xcb-util-keysyms + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-keysyms" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-keysyms + CHECK_RESULT $? 0 0 "install xcb-util-keysyms failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-keysyms + CHECK_RESULT $? 0 0 "remove xcb-util-keysyms failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-debuginfo.sh b/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef2432d04210a08533175c569b38016ec28d0bb3 --- /dev/null +++ b/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-renderutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-renderutil-debuginfo | grep -v \.src | grep xcb-util-renderutil-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-renderutil-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-renderutil-debuginfo + CHECK_RESULT $? 0 0 "install xcb-util-renderutil-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-renderutil-debuginfo + CHECK_RESULT $? 0 0 "remove xcb-util-renderutil-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-debugsource.sh b/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9c1e0f1bb3f1b7b8abb6580790ac469c80e9a78 --- /dev/null +++ b/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-renderutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-renderutil-debugsource | grep -v \.src | grep xcb-util-renderutil-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-renderutil-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-renderutil-debugsource + CHECK_RESULT $? 0 0 "install xcb-util-renderutil-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-renderutil-debugsource + CHECK_RESULT $? 0 0 "remove xcb-util-renderutil-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-devel.sh b/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9879521ca0db29b1d4358bda66e0fe932161be96 --- /dev/null +++ b/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-renderutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-renderutil-devel | grep -v \.src | grep xcb-util-renderutil-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-renderutil-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-renderutil-devel + CHECK_RESULT $? 0 0 "install xcb-util-renderutil-devel failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-renderutil-devel + CHECK_RESULT $? 0 0 "remove xcb-util-renderutil-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil.sh b/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil.sh new file mode 100644 index 0000000000000000000000000000000000000000..2cbebcec49be9a3f8f43068aacb0d5473fd3a036 --- /dev/null +++ b/testcases/cli-test/xcb-util-renderutil/oe_test_xcb-util-renderutil_install_and_remove_xcb-util-renderutil.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-renderutil +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-renderutil | grep -v \.src | grep xcb-util-renderutil + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-renderutil" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-renderutil + CHECK_RESULT $? 0 0 "install xcb-util-renderutil failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-renderutil + CHECK_RESULT $? 0 0 "remove xcb-util-renderutil failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-debuginfo.sh b/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..72ebf1d2c6310ecbdd80f0df8b9d5bad5d9f225c --- /dev/null +++ b/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-wm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-wm-debuginfo | grep -v \.src | grep xcb-util-wm-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-wm-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-wm-debuginfo + CHECK_RESULT $? 0 0 "install xcb-util-wm-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-wm-debuginfo + CHECK_RESULT $? 0 0 "remove xcb-util-wm-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-debugsource.sh b/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d56711434d5ccfd43e73b823342f79d100764f5 --- /dev/null +++ b/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-wm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-wm-debugsource | grep -v \.src | grep xcb-util-wm-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-wm-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-wm-debugsource + CHECK_RESULT $? 0 0 "install xcb-util-wm-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-wm-debugsource + CHECK_RESULT $? 0 0 "remove xcb-util-wm-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-devel.sh b/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6960d7018295b7102a88e0a89b979ea8f6d7a49 --- /dev/null +++ b/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-wm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-wm-devel | grep -v \.src | grep xcb-util-wm-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-wm-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-wm-devel + CHECK_RESULT $? 0 0 "install xcb-util-wm-devel failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-wm-devel + CHECK_RESULT $? 0 0 "remove xcb-util-wm-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm.sh b/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm.sh new file mode 100644 index 0000000000000000000000000000000000000000..b761ea356683de71ac72ab746bc0dd95f157c31c --- /dev/null +++ b/testcases/cli-test/xcb-util-wm/oe_test_xcb-util-wm_install_and_remove_xcb-util-wm.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util-wm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-wm | grep -v \.src | grep xcb-util-wm + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-wm" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-wm + CHECK_RESULT $? 0 0 "install xcb-util-wm failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-wm + CHECK_RESULT $? 0 0 "remove xcb-util-wm failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-debuginfo.sh b/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2075304fd6af006a2db264d3631d1399f9d2642 --- /dev/null +++ b/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-debuginfo | grep -v \.src | grep xcb-util-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-debuginfo + CHECK_RESULT $? 0 0 "install xcb-util-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-debuginfo + CHECK_RESULT $? 0 0 "remove xcb-util-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-debugsource.sh b/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..6cc0b6155f1f8cc8e1bba8b43df38065f0c4b19d --- /dev/null +++ b/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-debugsource | grep -v \.src | grep xcb-util-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-debugsource + CHECK_RESULT $? 0 0 "install xcb-util-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-debugsource + CHECK_RESULT $? 0 0 "remove xcb-util-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-devel.sh b/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..79af0c3d354adf572454bcd1784a03670b6ad87f --- /dev/null +++ b/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-devel | grep -v \.src | grep xcb-util-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-devel + CHECK_RESULT $? 0 0 "install xcb-util-devel failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-devel + CHECK_RESULT $? 0 0 "remove xcb-util-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-help.sh b/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..306e4b1e9fb72a6ce130f1dcde729009902590e0 --- /dev/null +++ b/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util-help | grep -v \.src | grep xcb-util-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util-help + CHECK_RESULT $? 0 0 "install xcb-util-help failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util-help + CHECK_RESULT $? 0 0 "remove xcb-util-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util.sh b/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5f739e8bde916e3348b65ed066c79a9e4bad3b5 --- /dev/null +++ b/testcases/cli-test/xcb-util/oe_test_xcb-util_install_and_remove_xcb-util.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xcb-util +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xcb-util | grep -v \.src | grep xcb-util + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xcb-util" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xcb-util + CHECK_RESULT $? 0 0 "install xcb-util failed" + SLEEP_WAIT 1 + dnf remove -y xcb-util + CHECK_RESULT $? 0 0 "remove xcb-util failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-debuginfo.sh b/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a620efd5e0c250de51a0830e8b4df485d41a4cb --- /dev/null +++ b/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xdg-dbus-proxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xdg-dbus-proxy-debuginfo | grep -v \.src | grep xdg-dbus-proxy-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xdg-dbus-proxy-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xdg-dbus-proxy-debuginfo + CHECK_RESULT $? 0 0 "install xdg-dbus-proxy-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xdg-dbus-proxy-debuginfo + CHECK_RESULT $? 0 0 "remove xdg-dbus-proxy-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-debugsource.sh b/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4a9f3547347d09ebd3fc2fd5c3aa6168d675b6d --- /dev/null +++ b/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xdg-dbus-proxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xdg-dbus-proxy-debugsource | grep -v \.src | grep xdg-dbus-proxy-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xdg-dbus-proxy-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xdg-dbus-proxy-debugsource + CHECK_RESULT $? 0 0 "install xdg-dbus-proxy-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xdg-dbus-proxy-debugsource + CHECK_RESULT $? 0 0 "remove xdg-dbus-proxy-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-help.sh b/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..743eaf5bc91e94625de795f3f3dfc144a6ac9934 --- /dev/null +++ b/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xdg-dbus-proxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xdg-dbus-proxy-help | grep -v \.src | grep xdg-dbus-proxy-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xdg-dbus-proxy-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xdg-dbus-proxy-help + CHECK_RESULT $? 0 0 "install xdg-dbus-proxy-help failed" + SLEEP_WAIT 1 + dnf remove -y xdg-dbus-proxy-help + CHECK_RESULT $? 0 0 "remove xdg-dbus-proxy-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy.sh b/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed2ef8e8477db1928623ffe81f8df7a332c08fbf --- /dev/null +++ b/testcases/cli-test/xdg-dbus-proxy/oe_test_xdg-dbus-proxy_install_and_remove_xdg-dbus-proxy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xdg-dbus-proxy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xdg-dbus-proxy | grep -v \.src | grep xdg-dbus-proxy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xdg-dbus-proxy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xdg-dbus-proxy + CHECK_RESULT $? 0 0 "install xdg-dbus-proxy failed" + SLEEP_WAIT 1 + dnf remove -y xdg-dbus-proxy + CHECK_RESULT $? 0 0 "remove xdg-dbus-proxy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xerces-j2/oe_test_xerces-j2_install_and_remove_xerces-j2-help.sh b/testcases/cli-test/xerces-j2/oe_test_xerces-j2_install_and_remove_xerces-j2-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a35f9ad64a313e0e1a548c22c0a6b47b70d0375 --- /dev/null +++ b/testcases/cli-test/xerces-j2/oe_test_xerces-j2_install_and_remove_xerces-j2-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xerces-j2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xerces-j2-help | grep -v \.src | grep xerces-j2-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xerces-j2-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xerces-j2-help + CHECK_RESULT $? 0 0 "install xerces-j2-help failed" + SLEEP_WAIT 1 + dnf remove -y xerces-j2-help + CHECK_RESULT $? 0 0 "remove xerces-j2-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xerces-j2/oe_test_xerces-j2_install_and_remove_xerces-j2.sh b/testcases/cli-test/xerces-j2/oe_test_xerces-j2_install_and_remove_xerces-j2.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7230428c60d112ae7e2e7c212904e38130accf5 --- /dev/null +++ b/testcases/cli-test/xerces-j2/oe_test_xerces-j2_install_and_remove_xerces-j2.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xerces-j2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xerces-j2 | grep -v \.src | grep xerces-j2 + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xerces-j2" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xerces-j2 + CHECK_RESULT $? 0 0 "install xerces-j2 failed" + SLEEP_WAIT 1 + dnf remove -y xerces-j2 + CHECK_RESULT $? 0 0 "remove xerces-j2 failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump-debuginfo.sh b/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..6179aedb020c6c8b464cda082a44f991b89f73e8 --- /dev/null +++ b/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xfsdump +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xfsdump-debuginfo | grep -v \.src | grep xfsdump-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xfsdump-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xfsdump-debuginfo + CHECK_RESULT $? 0 0 "install xfsdump-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xfsdump-debuginfo + CHECK_RESULT $? 0 0 "remove xfsdump-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump-debugsource.sh b/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..61868b5a9c143f6d5d46c9c4808d2615cf2db3f4 --- /dev/null +++ b/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xfsdump +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xfsdump-debugsource | grep -v \.src | grep xfsdump-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xfsdump-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xfsdump-debugsource + CHECK_RESULT $? 0 0 "install xfsdump-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xfsdump-debugsource + CHECK_RESULT $? 0 0 "remove xfsdump-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump-help.sh b/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed56df9e76f686895293a581fdc8f7954f74dddc --- /dev/null +++ b/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xfsdump +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xfsdump-help | grep -v \.src | grep xfsdump-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xfsdump-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xfsdump-help + CHECK_RESULT $? 0 0 "install xfsdump-help failed" + SLEEP_WAIT 1 + dnf remove -y xfsdump-help + CHECK_RESULT $? 0 0 "remove xfsdump-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump.sh b/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump.sh new file mode 100644 index 0000000000000000000000000000000000000000..72c3ce41a11acf924e1a5f6e360d376d0fa88aaa --- /dev/null +++ b/testcases/cli-test/xfsdump/oe_test_xfsdump_install_and_remove_xfsdump.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xfsdump +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xfsdump | grep -v \.src | grep xfsdump + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xfsdump" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xfsdump + CHECK_RESULT $? 0 0 "install xfsdump failed" + SLEEP_WAIT 1 + dnf remove -y xfsdump + CHECK_RESULT $? 0 0 "remove xfsdump failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-debuginfo.sh b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d36aa4f9d2324c5168e2a5cf6482808cd7bb4c21 --- /dev/null +++ b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xfsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xfsprogs-debuginfo | grep -v \.src | grep xfsprogs-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xfsprogs-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xfsprogs-debuginfo + CHECK_RESULT $? 0 0 "install xfsprogs-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xfsprogs-debuginfo + CHECK_RESULT $? 0 0 "remove xfsprogs-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-debugsource.sh b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..85b69a749f3f4f83d27cc3b81d59256b8916e5e3 --- /dev/null +++ b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xfsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xfsprogs-debugsource | grep -v \.src | grep xfsprogs-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xfsprogs-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xfsprogs-debugsource + CHECK_RESULT $? 0 0 "install xfsprogs-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xfsprogs-debugsource + CHECK_RESULT $? 0 0 "remove xfsprogs-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-devel.sh b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..014269c5948311b58f29f9a95e92a2f90c5a0b7a --- /dev/null +++ b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xfsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xfsprogs-devel | grep -v \.src | grep xfsprogs-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xfsprogs-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xfsprogs-devel + CHECK_RESULT $? 0 0 "install xfsprogs-devel failed" + SLEEP_WAIT 1 + dnf remove -y xfsprogs-devel + CHECK_RESULT $? 0 0 "remove xfsprogs-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-help.sh b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fe181ddda90d638a8c425faaf5d7f2a86c01835 --- /dev/null +++ b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xfsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xfsprogs-help | grep -v \.src | grep xfsprogs-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xfsprogs-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xfsprogs-help + CHECK_RESULT $? 0 0 "install xfsprogs-help failed" + SLEEP_WAIT 1 + dnf remove -y xfsprogs-help + CHECK_RESULT $? 0 0 "remove xfsprogs-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-xfs_scrub.sh b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-xfs_scrub.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf7abb06d055d333abb6df031d602206ebada55d --- /dev/null +++ b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs-xfs_scrub.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xfsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xfsprogs-xfs_scrub | grep -v \.src | grep xfsprogs-xfs_scrub + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xfsprogs-xfs_scrub" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xfsprogs-xfs_scrub + CHECK_RESULT $? 0 0 "install xfsprogs-xfs_scrub failed" + SLEEP_WAIT 1 + dnf remove -y xfsprogs-xfs_scrub + CHECK_RESULT $? 0 0 "remove xfsprogs-xfs_scrub failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs.sh b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b23a6ed3b5a05803dc3991d3816ca316f545930 --- /dev/null +++ b/testcases/cli-test/xfsprogs/oe_test_xfsprogs_install_and_remove_xfsprogs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xfsprogs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xfsprogs | grep -v \.src | grep xfsprogs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xfsprogs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xfsprogs + CHECK_RESULT $? 0 0 "install xfsprogs failed" + SLEEP_WAIT 1 + dnf remove -y xfsprogs + CHECK_RESULT $? 0 0 "remove xfsprogs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xkeyboard-config/oe_test_xkeyboard-config_install_and_remove_xkeyboard-config-devel.sh b/testcases/cli-test/xkeyboard-config/oe_test_xkeyboard-config_install_and_remove_xkeyboard-config-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc3f3f94e58229ac52a94442c67d51305c807e2c --- /dev/null +++ b/testcases/cli-test/xkeyboard-config/oe_test_xkeyboard-config_install_and_remove_xkeyboard-config-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xkeyboard-config +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xkeyboard-config-devel | grep -v \.src | grep xkeyboard-config-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xkeyboard-config-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xkeyboard-config-devel + CHECK_RESULT $? 0 0 "install xkeyboard-config-devel failed" + SLEEP_WAIT 1 + dnf remove -y xkeyboard-config-devel + CHECK_RESULT $? 0 0 "remove xkeyboard-config-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xkeyboard-config/oe_test_xkeyboard-config_install_and_remove_xkeyboard-config-help.sh b/testcases/cli-test/xkeyboard-config/oe_test_xkeyboard-config_install_and_remove_xkeyboard-config-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..efb14206791f4537f5e9fe5022db86e98d55ffc9 --- /dev/null +++ b/testcases/cli-test/xkeyboard-config/oe_test_xkeyboard-config_install_and_remove_xkeyboard-config-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xkeyboard-config +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xkeyboard-config-help | grep -v \.src | grep xkeyboard-config-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xkeyboard-config-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xkeyboard-config-help + CHECK_RESULT $? 0 0 "install xkeyboard-config-help failed" + SLEEP_WAIT 1 + dnf remove -y xkeyboard-config-help + CHECK_RESULT $? 0 0 "remove xkeyboard-config-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xkeyboard-config/oe_test_xkeyboard-config_install_and_remove_xkeyboard-config.sh b/testcases/cli-test/xkeyboard-config/oe_test_xkeyboard-config_install_and_remove_xkeyboard-config.sh new file mode 100644 index 0000000000000000000000000000000000000000..52ef6d67451f6954b485f56aaf67c98ce9d68b5d --- /dev/null +++ b/testcases/cli-test/xkeyboard-config/oe_test_xkeyboard-config_install_and_remove_xkeyboard-config.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xkeyboard-config +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xkeyboard-config | grep -v \.src | grep xkeyboard-config + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xkeyboard-config" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xkeyboard-config + CHECK_RESULT $? 0 0 "install xkeyboard-config failed" + SLEEP_WAIT 1 + dnf remove -y xkeyboard-config + CHECK_RESULT $? 0 0 "remove xkeyboard-config failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xml-commons-apis/oe_test_xml-commons-apis_install_and_remove_xml-commons-apis-help.sh b/testcases/cli-test/xml-commons-apis/oe_test_xml-commons-apis_install_and_remove_xml-commons-apis-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b176fa6c7e8cf3b839a582f07e1d22c6a760af8 --- /dev/null +++ b/testcases/cli-test/xml-commons-apis/oe_test_xml-commons-apis_install_and_remove_xml-commons-apis-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xml-commons-apis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xml-commons-apis-help | grep -v \.src | grep xml-commons-apis-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xml-commons-apis-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xml-commons-apis-help + CHECK_RESULT $? 0 0 "install xml-commons-apis-help failed" + SLEEP_WAIT 1 + dnf remove -y xml-commons-apis-help + CHECK_RESULT $? 0 0 "remove xml-commons-apis-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xml-commons-apis/oe_test_xml-commons-apis_install_and_remove_xml-commons-apis.sh b/testcases/cli-test/xml-commons-apis/oe_test_xml-commons-apis_install_and_remove_xml-commons-apis.sh new file mode 100644 index 0000000000000000000000000000000000000000..21354ac550d5f67cda81271de77ba0c6f7443987 --- /dev/null +++ b/testcases/cli-test/xml-commons-apis/oe_test_xml-commons-apis_install_and_remove_xml-commons-apis.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xml-commons-apis +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xml-commons-apis | grep -v \.src | grep xml-commons-apis + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xml-commons-apis" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xml-commons-apis + CHECK_RESULT $? 0 0 "install xml-commons-apis failed" + SLEEP_WAIT 1 + dnf remove -y xml-commons-apis + CHECK_RESULT $? 0 0 "remove xml-commons-apis failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xml-commons-resolver/oe_test_xml-commons-resolver_install_and_remove_xml-commons-resolver-help.sh b/testcases/cli-test/xml-commons-resolver/oe_test_xml-commons-resolver_install_and_remove_xml-commons-resolver-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..f21196d7a5657bad6c85dd644af4068dcdc4bbd5 --- /dev/null +++ b/testcases/cli-test/xml-commons-resolver/oe_test_xml-commons-resolver_install_and_remove_xml-commons-resolver-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xml-commons-resolver +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xml-commons-resolver-help | grep -v \.src | grep xml-commons-resolver-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xml-commons-resolver-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xml-commons-resolver-help + CHECK_RESULT $? 0 0 "install xml-commons-resolver-help failed" + SLEEP_WAIT 1 + dnf remove -y xml-commons-resolver-help + CHECK_RESULT $? 0 0 "remove xml-commons-resolver-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xml-commons-resolver/oe_test_xml-commons-resolver_install_and_remove_xml-commons-resolver.sh b/testcases/cli-test/xml-commons-resolver/oe_test_xml-commons-resolver_install_and_remove_xml-commons-resolver.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e0e20b96f0b83f07655e09b6c543d0b302f5939 --- /dev/null +++ b/testcases/cli-test/xml-commons-resolver/oe_test_xml-commons-resolver_install_and_remove_xml-commons-resolver.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xml-commons-resolver +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xml-commons-resolver | grep -v \.src | grep xml-commons-resolver + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xml-commons-resolver" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xml-commons-resolver + CHECK_RESULT $? 0 0 "install xml-commons-resolver failed" + SLEEP_WAIT 1 + dnf remove -y xml-commons-resolver + CHECK_RESULT $? 0 0 "remove xml-commons-resolver failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-debuginfo.sh b/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f10ea3b9d5906b9813223b77c1eabd5ec8b64526 --- /dev/null +++ b/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlrpc-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlrpc-c-debuginfo | grep -v \.src | grep xmlrpc-c-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlrpc-c-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlrpc-c-debuginfo + CHECK_RESULT $? 0 0 "install xmlrpc-c-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xmlrpc-c-debuginfo + CHECK_RESULT $? 0 0 "remove xmlrpc-c-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-debugsource.sh b/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..031fe3f7cdc3a53c63d70489d8e66a97bc2d4551 --- /dev/null +++ b/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlrpc-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlrpc-c-debugsource | grep -v \.src | grep xmlrpc-c-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlrpc-c-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlrpc-c-debugsource + CHECK_RESULT $? 0 0 "install xmlrpc-c-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xmlrpc-c-debugsource + CHECK_RESULT $? 0 0 "remove xmlrpc-c-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-devel.sh b/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..71fafbb4897a93ab162d2fe85f61880574f8230f --- /dev/null +++ b/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlrpc-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlrpc-c-devel | grep -v \.src | grep xmlrpc-c-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlrpc-c-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlrpc-c-devel + CHECK_RESULT $? 0 0 "install xmlrpc-c-devel failed" + SLEEP_WAIT 1 + dnf remove -y xmlrpc-c-devel + CHECK_RESULT $? 0 0 "remove xmlrpc-c-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-help.sh b/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..59e3c174235e05e93a8c362f3c4ff3f49d2ec694 --- /dev/null +++ b/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlrpc-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlrpc-c-help | grep -v \.src | grep xmlrpc-c-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlrpc-c-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlrpc-c-help + CHECK_RESULT $? 0 0 "install xmlrpc-c-help failed" + SLEEP_WAIT 1 + dnf remove -y xmlrpc-c-help + CHECK_RESULT $? 0 0 "remove xmlrpc-c-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c.sh b/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc5e7837b88e0959226e11d755acc973570fc9ba --- /dev/null +++ b/testcases/cli-test/xmlrpc-c/oe_test_xmlrpc-c_install_and_remove_xmlrpc-c.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlrpc-c +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlrpc-c | grep -v \.src | grep xmlrpc-c + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlrpc-c" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlrpc-c + CHECK_RESULT $? 0 0 "install xmlrpc-c failed" + SLEEP_WAIT 1 + dnf remove -y xmlrpc-c + CHECK_RESULT $? 0 0 "remove xmlrpc-c failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-debuginfo.sh b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3264bf74a561c7789e65e947544d5fbd6e5686c1 --- /dev/null +++ b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlto-debuginfo | grep -v \.src | grep xmlto-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlto-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlto-debuginfo + CHECK_RESULT $? 0 0 "install xmlto-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xmlto-debuginfo + CHECK_RESULT $? 0 0 "remove xmlto-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-debugsource.sh b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..edbf56fe3abfc26c4bbe921548ebc4b6c29c6ab1 --- /dev/null +++ b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlto-debugsource | grep -v \.src | grep xmlto-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlto-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlto-debugsource + CHECK_RESULT $? 0 0 "install xmlto-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xmlto-debugsource + CHECK_RESULT $? 0 0 "remove xmlto-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-help.sh b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9dbc592153ac97085c392123dc3718734f50139 --- /dev/null +++ b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlto-help | grep -v \.src | grep xmlto-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlto-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlto-help + CHECK_RESULT $? 0 0 "install xmlto-help failed" + SLEEP_WAIT 1 + dnf remove -y xmlto-help + CHECK_RESULT $? 0 0 "remove xmlto-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-tex.sh b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-tex.sh new file mode 100644 index 0000000000000000000000000000000000000000..65d6662b4385736269c0c437e75aa9f69a629774 --- /dev/null +++ b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-tex.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlto-tex | grep -v \.src | grep xmlto-tex + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlto-tex" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlto-tex + CHECK_RESULT $? 0 0 "install xmlto-tex failed" + SLEEP_WAIT 1 + dnf remove -y xmlto-tex + CHECK_RESULT $? 0 0 "remove xmlto-tex failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-xhtml.sh b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-xhtml.sh new file mode 100644 index 0000000000000000000000000000000000000000..99fc992f4f9674c867025631dfd47c1bd9cf0384 --- /dev/null +++ b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto-xhtml.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlto-xhtml | grep -v \.src | grep xmlto-xhtml + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlto-xhtml" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlto-xhtml + CHECK_RESULT $? 0 0 "install xmlto-xhtml failed" + SLEEP_WAIT 1 + dnf remove -y xmlto-xhtml + CHECK_RESULT $? 0 0 "remove xmlto-xhtml failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto.sh b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a585ecb528cfc51d82e3cf05c2f446c5acfc2b7 --- /dev/null +++ b/testcases/cli-test/xmlto/oe_test_xmlto_install_and_remove_xmlto.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmlto +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmlto | grep -v \.src | grep xmlto + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmlto" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmlto + CHECK_RESULT $? 0 0 "install xmlto failed" + SLEEP_WAIT 1 + dnf remove -y xmlto + CHECK_RESULT $? 0 0 "remove xmlto failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmltoman/oe_test_xmltoman_install_and_remove_xmltoman-help.sh b/testcases/cli-test/xmltoman/oe_test_xmltoman_install_and_remove_xmltoman-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b099c66b9e6697b1dd620e25eccfc432e0e8d4b1 --- /dev/null +++ b/testcases/cli-test/xmltoman/oe_test_xmltoman_install_and_remove_xmltoman-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmltoman +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmltoman-help | grep -v \.src | grep xmltoman-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmltoman-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmltoman-help + CHECK_RESULT $? 0 0 "install xmltoman-help failed" + SLEEP_WAIT 1 + dnf remove -y xmltoman-help + CHECK_RESULT $? 0 0 "remove xmltoman-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmltoman/oe_test_xmltoman_install_and_remove_xmltoman.sh b/testcases/cli-test/xmltoman/oe_test_xmltoman_install_and_remove_xmltoman.sh new file mode 100644 index 0000000000000000000000000000000000000000..b31ec7faa330e0051fc6e4d87be985b01a8f62b3 --- /dev/null +++ b/testcases/cli-test/xmltoman/oe_test_xmltoman_install_and_remove_xmltoman.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmltoman +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmltoman | grep -v \.src | grep xmltoman + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmltoman" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmltoman + CHECK_RESULT $? 0 0 "install xmltoman failed" + SLEEP_WAIT 1 + dnf remove -y xmltoman + CHECK_RESULT $? 0 0 "remove xmltoman failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-debuginfo.sh b/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..d89763653a2294a9586a153de678c1bcf472658c --- /dev/null +++ b/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmms +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmms-debuginfo | grep -v \.src | grep xmms-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmms-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmms-debuginfo + CHECK_RESULT $? 0 0 "install xmms-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xmms-debuginfo + CHECK_RESULT $? 0 0 "remove xmms-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-debugsource.sh b/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac2d282bd67ccd51ce88b218b395618d1d659334 --- /dev/null +++ b/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmms +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmms-debugsource | grep -v \.src | grep xmms-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmms-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmms-debugsource + CHECK_RESULT $? 0 0 "install xmms-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xmms-debugsource + CHECK_RESULT $? 0 0 "remove xmms-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-devel.sh b/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..77af6ce22c2238911fa7eb6f33cbeb31976064b8 --- /dev/null +++ b/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmms +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmms-devel | grep -v \.src | grep xmms-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmms-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmms-devel + CHECK_RESULT $? 0 0 "install xmms-devel failed" + SLEEP_WAIT 1 + dnf remove -y xmms-devel + CHECK_RESULT $? 0 0 "remove xmms-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-help.sh b/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8fbb9fc678c41bb550f6be63eee05b38eff1c1df --- /dev/null +++ b/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmms +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmms-help | grep -v \.src | grep xmms-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmms-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmms-help + CHECK_RESULT $? 0 0 "install xmms-help failed" + SLEEP_WAIT 1 + dnf remove -y xmms-help + CHECK_RESULT $? 0 0 "remove xmms-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms.sh b/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms.sh new file mode 100644 index 0000000000000000000000000000000000000000..723fa9fa7c6ad48aae0e60d19573b20a844f22d5 --- /dev/null +++ b/testcases/cli-test/xmms/oe_test_xmms_install_and_remove_xmms.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xmms +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xmms | grep -v \.src | grep xmms + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xmms" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xmms + CHECK_RESULT $? 0 0 "install xmms failed" + SLEEP_WAIT 1 + dnf remove -y xmms + CHECK_RESULT $? 0 0 "remove xmms failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drivers/oe_test_xorg-x11-drivers_install_and_remove_xorg-x11-drivers.sh b/testcases/cli-test/xorg-x11-drivers/oe_test_xorg-x11-drivers_install_and_remove_xorg-x11-drivers.sh new file mode 100644 index 0000000000000000000000000000000000000000..dbf74da8bfce9aa8ce5e601ed5d3c83d8c682540 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drivers/oe_test_xorg-x11-drivers_install_and_remove_xorg-x11-drivers.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drivers +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drivers | grep -v \.src | grep xorg-x11-drivers + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drivers" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drivers + CHECK_RESULT $? 0 0 "install xorg-x11-drivers failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drivers + CHECK_RESULT $? 0 0 "remove xorg-x11-drivers failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..bacf1d69aad84c5632be8e14be88f055a51dc6da --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-ati +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-ati-debuginfo | grep -v \.src | grep xorg-x11-drv-ati-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-ati-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-ati-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-ati-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-ati-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-ati-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-debugsource.sh b/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0dafcb7a76f537ed554e89603948518e2b58d44 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-ati +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-ati-debugsource | grep -v \.src | grep xorg-x11-drv-ati-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-ati-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-ati-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-ati-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-ati-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-ati-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-help.sh b/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..da505269123aa262be3c23221fdddde01efefec2 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-ati +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-ati-help | grep -v \.src | grep xorg-x11-drv-ati-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-ati-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-ati-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-ati-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-ati-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-ati-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati.sh b/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati.sh new file mode 100644 index 0000000000000000000000000000000000000000..366951af245ca34b405256da50d355fa80fbdb85 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-ati/oe_test_xorg-x11-drv-ati_install_and_remove_xorg-x11-drv-ati.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-ati +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-ati | grep -v \.src | grep xorg-x11-drv-ati + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-ati" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-ati + CHECK_RESULT $? 0 0 "install xorg-x11-drv-ati failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-ati + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-ati failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe4fffe6f38306ac9c33478eea8f608a8a5637e2 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-dummy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-dummy-debuginfo | grep -v \.src | grep xorg-x11-drv-dummy-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-dummy-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-dummy-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-dummy-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-dummy-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-dummy-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-debugsource.sh b/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..89f38191fbe0b02af42c82559167f9d6a25f8e99 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-dummy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-dummy-debugsource | grep -v \.src | grep xorg-x11-drv-dummy-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-dummy-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-dummy-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-dummy-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-dummy-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-dummy-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-help.sh b/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..3cc8daf5cca9ec36e423d09191f9db84c2743c80 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-dummy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-dummy-help | grep -v \.src | grep xorg-x11-drv-dummy-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-dummy-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-dummy-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-dummy-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-dummy-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-dummy-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy.sh b/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0621bba658d969200e46b783e5f7041decbf6a3 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-dummy/oe_test_xorg-x11-drv-dummy_install_and_remove_xorg-x11-drv-dummy.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-dummy +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-dummy | grep -v \.src | grep xorg-x11-drv-dummy + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-dummy" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-dummy + CHECK_RESULT $? 0 0 "install xorg-x11-drv-dummy failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-dummy + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-dummy failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..06e6a246107dcb67556f20ed252106e6996281cc --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-evdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-evdev-debuginfo | grep -v \.src | grep xorg-x11-drv-evdev-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-evdev-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-evdev-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-evdev-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-evdev-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-evdev-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-debugsource.sh b/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfe5ed6a46eff0a318ef4a23b21c42ecd9c2960e --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-evdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-evdev-debugsource | grep -v \.src | grep xorg-x11-drv-evdev-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-evdev-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-evdev-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-evdev-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-evdev-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-evdev-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-devel.sh b/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..c238189cf16ad0c271c366d57480e3e4060c2ebe --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-evdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-evdev-devel | grep -v \.src | grep xorg-x11-drv-evdev-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-evdev-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-evdev-devel + CHECK_RESULT $? 0 0 "install xorg-x11-drv-evdev-devel failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-evdev-devel + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-evdev-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-help.sh b/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..e57cc7032f03393f4bd1b976c54f4bb7797ffd9d --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-evdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-evdev-help | grep -v \.src | grep xorg-x11-drv-evdev-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-evdev-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-evdev-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-evdev-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-evdev-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-evdev-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev.sh b/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0c923c71b8e24404abe7ff7690b988770da8bee --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-evdev/oe_test_xorg-x11-drv-evdev_install_and_remove_xorg-x11-drv-evdev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-evdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-evdev | grep -v \.src | grep xorg-x11-drv-evdev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-evdev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-evdev + CHECK_RESULT $? 0 0 "install xorg-x11-drv-evdev failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-evdev + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-evdev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0cb13eed92d937dfeeb7c4b7823bedf189dfd5d --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-fbdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-fbdev-debuginfo | grep -v \.src | grep xorg-x11-drv-fbdev-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-fbdev-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-fbdev-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-fbdev-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-fbdev-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-fbdev-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-debugsource.sh b/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd1eaf21c009fc680ec6b0f77bbc64e42ff3092b --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-fbdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-fbdev-debugsource | grep -v \.src | grep xorg-x11-drv-fbdev-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-fbdev-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-fbdev-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-fbdev-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-fbdev-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-fbdev-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-help.sh b/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c380171d4ef34367051e85a3ac4bbf4d6eaa84f --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-fbdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-fbdev-help | grep -v \.src | grep xorg-x11-drv-fbdev-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-fbdev-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-fbdev-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-fbdev-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-fbdev-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-fbdev-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev.sh b/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev.sh new file mode 100644 index 0000000000000000000000000000000000000000..03deb921459f08e29985713594c45fa21f75eb4b --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-fbdev/oe_test_xorg-x11-drv-fbdev_install_and_remove_xorg-x11-drv-fbdev.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-fbdev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-fbdev | grep -v \.src | grep xorg-x11-drv-fbdev + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-fbdev" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-fbdev + CHECK_RESULT $? 0 0 "install xorg-x11-drv-fbdev failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-fbdev + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-fbdev failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d3a61af9df07aa8a82b56a4f0b8271b8b032d85 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-intel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-intel-debuginfo | grep -v \.src | grep xorg-x11-drv-intel-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-intel-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-intel-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-intel-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-intel-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-intel-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-debugsource.sh b/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf2ca1c23ed3f04db1f8957062430b4787702b1d --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-intel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-intel-debugsource | grep -v \.src | grep xorg-x11-drv-intel-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-intel-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-intel-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-intel-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-intel-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-intel-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-help.sh b/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2012d6ca515a47521baec27a190437774dd1781 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-intel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-intel-help | grep -v \.src | grep xorg-x11-drv-intel-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-intel-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-intel-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-intel-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-intel-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-intel-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel.sh b/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e78e5edc1a347353c1598d339a0da72d51a09f6f --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-intel/oe_test_xorg-x11-drv-intel_install_and_remove_xorg-x11-drv-intel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-intel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-intel | grep -v \.src | grep xorg-x11-drv-intel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-intel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-intel + CHECK_RESULT $? 0 0 "install xorg-x11-drv-intel failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-intel + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-intel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..abf062843fa0da5b8c7e444f1cb47cb9c383542f --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-libinput-debuginfo | grep -v \.src | grep xorg-x11-drv-libinput-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-libinput-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-libinput-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-libinput-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-libinput-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-libinput-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-debugsource.sh b/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..43471e2b78a57b451c38be1d62a55f2f3c12eb85 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-libinput-debugsource | grep -v \.src | grep xorg-x11-drv-libinput-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-libinput-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-libinput-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-libinput-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-libinput-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-libinput-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-devel.sh b/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..efd71c61cc4d3615c9c3c57918059c7c333e07bd --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-libinput-devel | grep -v \.src | grep xorg-x11-drv-libinput-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-libinput-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-libinput-devel + CHECK_RESULT $? 0 0 "install xorg-x11-drv-libinput-devel failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-libinput-devel + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-libinput-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-help.sh b/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbd17a58923fbd39f052fb028f111b2de5f985ca --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-libinput-help | grep -v \.src | grep xorg-x11-drv-libinput-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-libinput-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-libinput-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-libinput-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-libinput-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-libinput-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput.sh b/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ed3ecd12ecad6b53452dfb9795f0cd00202b6d1 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-libinput/oe_test_xorg-x11-drv-libinput_install_and_remove_xorg-x11-drv-libinput.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-libinput +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-libinput | grep -v \.src | grep xorg-x11-drv-libinput + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-libinput" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-libinput + CHECK_RESULT $? 0 0 "install xorg-x11-drv-libinput failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-libinput + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-libinput failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b11a5b69ab1c092036d5d7282276f40f0c9bcef7 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-nouveau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-nouveau-debuginfo | grep -v \.src | grep xorg-x11-drv-nouveau-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-nouveau-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-nouveau-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-nouveau-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-nouveau-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-nouveau-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-debugsource.sh b/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c38668b841cc624238f35a441ea98deeb019f4c --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-nouveau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-nouveau-debugsource | grep -v \.src | grep xorg-x11-drv-nouveau-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-nouveau-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-nouveau-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-nouveau-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-nouveau-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-nouveau-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-help.sh b/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..28a463302f8cdc9d97e0fc572e1598056f10be20 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-nouveau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-nouveau-help | grep -v \.src | grep xorg-x11-drv-nouveau-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-nouveau-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-nouveau-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-nouveau-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-nouveau-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-nouveau-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau.sh b/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6605efd486186bb1da91b1b135a8ef54b18d5cf --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-nouveau/oe_test_xorg-x11-drv-nouveau_install_and_remove_xorg-x11-drv-nouveau.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-nouveau +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-nouveau | grep -v \.src | grep xorg-x11-drv-nouveau + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-nouveau" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-nouveau + CHECK_RESULT $? 0 0 "install xorg-x11-drv-nouveau failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-nouveau + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-nouveau failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a1c03a202fc1ccbb3115f8603713a6a5d11c28b --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-qxl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-qxl-debuginfo | grep -v \.src | grep xorg-x11-drv-qxl-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-qxl-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-qxl-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-qxl-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-qxl-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-qxl-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl-debugsource.sh b/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa2b46b1a9eba4bd12992e6979638f551aac28f9 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-qxl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-qxl-debugsource | grep -v \.src | grep xorg-x11-drv-qxl-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-qxl-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-qxl-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-qxl-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-qxl-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-qxl-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl.sh b/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl.sh new file mode 100644 index 0000000000000000000000000000000000000000..cce4a72241b96f1dc4b356b2bccced30eff6fd7a --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-drv-qxl.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-qxl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-qxl | grep -v \.src | grep xorg-x11-drv-qxl + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-qxl" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-qxl + CHECK_RESULT $? 0 0 "install xorg-x11-drv-qxl failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-qxl + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-qxl failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-server-Xspice.sh b/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-server-Xspice.sh new file mode 100644 index 0000000000000000000000000000000000000000..1bb469f8494514f70c21cd05745fff8988b30dd3 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-qxl/oe_test_xorg-x11-drv-qxl_install_and_remove_xorg-x11-server-Xspice.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-qxl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-Xspice | grep -v \.src | grep xorg-x11-server-Xspice + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-Xspice" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-Xspice + CHECK_RESULT $? 0 0 "install xorg-x11-server-Xspice failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-Xspice + CHECK_RESULT $? 0 0 "remove xorg-x11-server-Xspice failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..3cd8dbdd64a270210825f854c42ad04c83076c8b --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-v4l +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-v4l-debuginfo | grep -v \.src | grep xorg-x11-drv-v4l-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-v4l-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-v4l-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-v4l-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-v4l-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-v4l-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-debugsource.sh b/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cef2b5d64136dd9a12df3aef8ac19d0c6df5c08 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-v4l +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-v4l-debugsource | grep -v \.src | grep xorg-x11-drv-v4l-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-v4l-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-v4l-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-v4l-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-v4l-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-v4l-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-help.sh b/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce49a86bcc523a496a0a24cc3ff862185f1211d6 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-v4l +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-v4l-help | grep -v \.src | grep xorg-x11-drv-v4l-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-v4l-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-v4l-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-v4l-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-v4l-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-v4l-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l.sh b/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef609dcdac6b49f5f7f227df1803a3d310e28e04 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-v4l/oe_test_xorg-x11-drv-v4l_install_and_remove_xorg-x11-drv-v4l.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-v4l +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-v4l | grep -v \.src | grep xorg-x11-drv-v4l + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-v4l" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-v4l + CHECK_RESULT $? 0 0 "install xorg-x11-drv-v4l failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-v4l + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-v4l failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..65669370c69a2d09e2cc5e585ba78afd06ee9a02 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-vesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-vesa-debuginfo | grep -v \.src | grep xorg-x11-drv-vesa-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-vesa-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-vesa-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-vesa-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-vesa-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-vesa-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-debugsource.sh b/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c95b086bbd9fcd21d6148f74f81c2e3fbb1256f --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-vesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-vesa-debugsource | grep -v \.src | grep xorg-x11-drv-vesa-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-vesa-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-vesa-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-vesa-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-vesa-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-vesa-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-help.sh b/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..46adf43259dca3306bff8253befba41d10b0a140 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-vesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-vesa-help | grep -v \.src | grep xorg-x11-drv-vesa-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-vesa-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-vesa-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-vesa-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-vesa-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-vesa-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa.sh b/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa.sh new file mode 100644 index 0000000000000000000000000000000000000000..50aea320d5893022447cc6222e58e3685c80d890 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-vesa/oe_test_xorg-x11-drv-vesa_install_and_remove_xorg-x11-drv-vesa.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-vesa +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-vesa | grep -v \.src | grep xorg-x11-drv-vesa + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-vesa" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-vesa + CHECK_RESULT $? 0 0 "install xorg-x11-drv-vesa failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-vesa + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-vesa failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..912c333047a59edd217d649c4ee201d70975d224 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-vmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-vmware-debuginfo | grep -v \.src | grep xorg-x11-drv-vmware-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-vmware-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-vmware-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-vmware-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-vmware-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-vmware-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-debugsource.sh b/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..3282db516d1791b847bc7831bbe885a91637b861 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-vmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-vmware-debugsource | grep -v \.src | grep xorg-x11-drv-vmware-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-vmware-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-vmware-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-vmware-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-vmware-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-vmware-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-help.sh b/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c890c4c4d888a242d7cc2dae138bea783e2959ed --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-vmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-vmware-help | grep -v \.src | grep xorg-x11-drv-vmware-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-vmware-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-vmware-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-vmware-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-vmware-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-vmware-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware.sh b/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff25667ed3775f012ccdd0b65c16dc52cfd2e02e --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-vmware/oe_test_xorg-x11-drv-vmware_install_and_remove_xorg-x11-drv-vmware.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-vmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-vmware | grep -v \.src | grep xorg-x11-drv-vmware + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-vmware" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-vmware + CHECK_RESULT $? 0 0 "install xorg-x11-drv-vmware failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-vmware + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-vmware failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-debuginfo.sh b/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..382e933a1e3cd6d48ac72f6e2ce25428e0a8a49f --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-wacom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-wacom-debuginfo | grep -v \.src | grep xorg-x11-drv-wacom-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-wacom-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-wacom-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-drv-wacom-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-wacom-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-wacom-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-debugsource.sh b/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..a81fb3f91c54babb92b327d5a3cfba3a51e675d2 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-wacom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-wacom-debugsource | grep -v \.src | grep xorg-x11-drv-wacom-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-wacom-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-wacom-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-drv-wacom-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-wacom-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-wacom-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-devel.sh b/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b0c8a8af54c616ebd36d273e5f043248dac5ca5 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-wacom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-wacom-devel | grep -v \.src | grep xorg-x11-drv-wacom-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-wacom-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-wacom-devel + CHECK_RESULT $? 0 0 "install xorg-x11-drv-wacom-devel failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-wacom-devel + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-wacom-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-help.sh b/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6821d6f02c3c33a5ee513e2f6f3ca6f0cc824fb5 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-wacom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-wacom-help | grep -v \.src | grep xorg-x11-drv-wacom-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-wacom-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-wacom-help + CHECK_RESULT $? 0 0 "install xorg-x11-drv-wacom-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-wacom-help + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-wacom-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom.sh b/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom.sh new file mode 100644 index 0000000000000000000000000000000000000000..21a9e5a70cb6a841bd4f2de6de258eb4793498d7 --- /dev/null +++ b/testcases/cli-test/xorg-x11-drv-wacom/oe_test_xorg-x11-drv-wacom_install_and_remove_xorg-x11-drv-wacom.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-drv-wacom +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-drv-wacom | grep -v \.src | grep xorg-x11-drv-wacom + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-drv-wacom" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-drv-wacom + CHECK_RESULT $? 0 0 "install xorg-x11-drv-wacom failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-drv-wacom + CHECK_RESULT $? 0 0 "remove xorg-x11-drv-wacom failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-debuginfo.sh b/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d7bfdaefbe195df65d4b4aa6cf2d6d569e0a687 --- /dev/null +++ b/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-font-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-font-utils-debuginfo | grep -v \.src | grep xorg-x11-font-utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-font-utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-font-utils-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-font-utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-font-utils-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-font-utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-debugsource.sh b/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf642b77671adb09ffe8294caddc89e422cf9398 --- /dev/null +++ b/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-font-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-font-utils-debugsource | grep -v \.src | grep xorg-x11-font-utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-font-utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-font-utils-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-font-utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-font-utils-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-font-utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-help.sh b/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5fd9d143becbd3c968e5b298979d9e2a8b0b349 --- /dev/null +++ b/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-font-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-font-utils-help | grep -v \.src | grep xorg-x11-font-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-font-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-font-utils-help + CHECK_RESULT $? 0 0 "install xorg-x11-font-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-font-utils-help + CHECK_RESULT $? 0 0 "remove xorg-x11-font-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils.sh b/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7604ec079208fbd524bccc9eedae9c365289799 --- /dev/null +++ b/testcases/cli-test/xorg-x11-font-utils/oe_test_xorg-x11-font-utils_install_and_remove_xorg-x11-font-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-font-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-font-utils | grep -v \.src | grep xorg-x11-font-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-font-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-font-utils + CHECK_RESULT $? 0 0 "install xorg-x11-font-utils failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-font-utils + CHECK_RESULT $? 0 0 "remove xorg-x11-font-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-fonts/oe_test_xorg-x11-fonts_install_and_remove_xorg-x11-fonts-others.sh b/testcases/cli-test/xorg-x11-fonts/oe_test_xorg-x11-fonts_install_and_remove_xorg-x11-fonts-others.sh new file mode 100644 index 0000000000000000000000000000000000000000..e27c815b9028d22bc97bcdc29419269637714ea6 --- /dev/null +++ b/testcases/cli-test/xorg-x11-fonts/oe_test_xorg-x11-fonts_install_and_remove_xorg-x11-fonts-others.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-fonts-others | grep -v \.src | grep xorg-x11-fonts-others + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-fonts-others" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-fonts-others + CHECK_RESULT $? 0 0 "install xorg-x11-fonts-others failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-fonts-others + CHECK_RESULT $? 0 0 "remove xorg-x11-fonts-others failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-fonts/oe_test_xorg-x11-fonts_install_and_remove_xorg-x11-fonts.sh b/testcases/cli-test/xorg-x11-fonts/oe_test_xorg-x11-fonts_install_and_remove_xorg-x11-fonts.sh new file mode 100644 index 0000000000000000000000000000000000000000..062e55b36bd94a4283fac030caf472a3a5071433 --- /dev/null +++ b/testcases/cli-test/xorg-x11-fonts/oe_test_xorg-x11-fonts_install_and_remove_xorg-x11-fonts.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-fonts +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-fonts | grep -v \.src | grep xorg-x11-fonts + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-fonts" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-fonts + CHECK_RESULT $? 0 0 "install xorg-x11-fonts failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-fonts + CHECK_RESULT $? 0 0 "remove xorg-x11-fonts failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-proto-devel/oe_test_xorg-x11-proto-devel_install_and_remove_xorg-x11-proto-devel.sh b/testcases/cli-test/xorg-x11-proto-devel/oe_test_xorg-x11-proto-devel_install_and_remove_xorg-x11-proto-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7691db8d005a6699e8b16c928a64a17a589f8795 --- /dev/null +++ b/testcases/cli-test/xorg-x11-proto-devel/oe_test_xorg-x11-proto-devel_install_and_remove_xorg-x11-proto-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-proto-devel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-proto-devel | grep -v \.src | grep xorg-x11-proto-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-proto-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-proto-devel + CHECK_RESULT $? 0 0 "install xorg-x11-proto-devel failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-proto-devel + CHECK_RESULT $? 0 0 "remove xorg-x11-proto-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-debuginfo.sh b/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8e7dbc554182d253e775566fe46b1696b626a2b --- /dev/null +++ b/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-utils-debuginfo | grep -v \.src | grep xorg-x11-server-utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-utils-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-server-utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-utils-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-server-utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-debugsource.sh b/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c008abf701a476996638928129a0f90fc6b10a4 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-utils-debugsource | grep -v \.src | grep xorg-x11-server-utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-utils-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-server-utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-utils-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-server-utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-help.sh b/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf80bb9d2ab99ba692563581608774882764a227 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-utils-help | grep -v \.src | grep xorg-x11-server-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-utils-help + CHECK_RESULT $? 0 0 "install xorg-x11-server-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-utils-help + CHECK_RESULT $? 0 0 "remove xorg-x11-server-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils.sh b/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0aba27a9bc44beabb058ead6adb6bc50c3b37ac --- /dev/null +++ b/testcases/cli-test/xorg-x11-server-utils/oe_test_xorg-x11-server-utils_install_and_remove_xorg-x11-server-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-utils | grep -v \.src | grep xorg-x11-server-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-utils + CHECK_RESULT $? 0 0 "install xorg-x11-server-utils failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-utils + CHECK_RESULT $? 0 0 "remove xorg-x11-server-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xdmx.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xdmx.sh new file mode 100644 index 0000000000000000000000000000000000000000..d26ff9444a7c7bb1dea7c5696be6395c809a8ba8 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xdmx.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-Xdmx | grep -v \.src | grep xorg-x11-server-Xdmx + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-Xdmx" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-Xdmx + CHECK_RESULT $? 0 0 "install xorg-x11-server-Xdmx failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-Xdmx + CHECK_RESULT $? 0 0 "remove xorg-x11-server-Xdmx failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xephyr.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xephyr.sh new file mode 100644 index 0000000000000000000000000000000000000000..70844eb7b21bb9e3b7993d2f427057d651edee55 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xephyr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-Xephyr | grep -v \.src | grep xorg-x11-server-Xephyr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-Xephyr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-Xephyr + CHECK_RESULT $? 0 0 "install xorg-x11-server-Xephyr failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-Xephyr + CHECK_RESULT $? 0 0 "remove xorg-x11-server-Xephyr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xnest.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xnest.sh new file mode 100644 index 0000000000000000000000000000000000000000..84ec414e066fc83a53a1b519c8e52683db8e0b82 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xnest.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-Xnest | grep -v \.src | grep xorg-x11-server-Xnest + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-Xnest" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-Xnest + CHECK_RESULT $? 0 0 "install xorg-x11-server-Xnest failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-Xnest + CHECK_RESULT $? 0 0 "remove xorg-x11-server-Xnest failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xorg.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xorg.sh new file mode 100644 index 0000000000000000000000000000000000000000..47473b839c81170cd81011d2bab48c556e4f8ad2 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xorg.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-Xorg | grep -v \.src | grep xorg-x11-server-Xorg + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-Xorg" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-Xorg + CHECK_RESULT $? 0 0 "install xorg-x11-server-Xorg failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-Xorg + CHECK_RESULT $? 0 0 "remove xorg-x11-server-Xorg failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xvfb.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xvfb.sh new file mode 100644 index 0000000000000000000000000000000000000000..528cf8625efd5f64e278a05cf31979a05ded6710 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xvfb.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-Xvfb | grep -v \.src | grep xorg-x11-server-Xvfb + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-Xvfb" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-Xvfb + CHECK_RESULT $? 0 0 "install xorg-x11-server-Xvfb failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-Xvfb + CHECK_RESULT $? 0 0 "remove xorg-x11-server-Xvfb failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xwayland.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xwayland.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d7f7b934fddb55f614e75b00bbd2feef49f3e0b --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-Xwayland.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-Xwayland | grep -v \.src | grep xorg-x11-server-Xwayland + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-Xwayland" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-Xwayland + CHECK_RESULT $? 0 0 "install xorg-x11-server-Xwayland failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-Xwayland + CHECK_RESULT $? 0 0 "remove xorg-x11-server-Xwayland failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-common.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-common.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb1693ba056aafe4082af462cad2840273829252 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-common.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-common | grep -v \.src | grep xorg-x11-server-common + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-common" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-common + CHECK_RESULT $? 0 0 "install xorg-x11-server-common failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-common + CHECK_RESULT $? 0 0 "remove xorg-x11-server-common failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-debuginfo.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f78a08fd21d53e8934e9a5eff99d5a9998d3df6 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-debuginfo | grep -v \.src | grep xorg-x11-server-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-server-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-server-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-debugsource.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4899a9ae4e3d13e61eeb15210ce540d6d2a67bc9 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-debugsource | grep -v \.src | grep xorg-x11-server-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-server-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-server-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-devel.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..551e89e52af32b2f06c9bfbcd0d9438f52899aca --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-devel | grep -v \.src | grep xorg-x11-server-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-devel + CHECK_RESULT $? 0 0 "install xorg-x11-server-devel failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-devel + CHECK_RESULT $? 0 0 "remove xorg-x11-server-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-doc.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fea56a9707f4f98a63d46ece8e57b4c50b10c25 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-doc | grep -v \.src | grep xorg-x11-server-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-doc + CHECK_RESULT $? 0 0 "install xorg-x11-server-doc failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-doc + CHECK_RESULT $? 0 0 "remove xorg-x11-server-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-help.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fef0717cb7fc34e1809b3e93fd0d77134a79749 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-help | grep -v \.src | grep xorg-x11-server-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-help + CHECK_RESULT $? 0 0 "install xorg-x11-server-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-help + CHECK_RESULT $? 0 0 "remove xorg-x11-server-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-source.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-source.sh new file mode 100644 index 0000000000000000000000000000000000000000..be2ebc5d0426407670164fc105a4debcd3633fd7 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server-source.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server-source | grep -v \.src | grep xorg-x11-server-source + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server-source" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server-source + CHECK_RESULT $? 0 0 "install xorg-x11-server-source failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server-source + CHECK_RESULT $? 0 0 "remove xorg-x11-server-source failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server.sh b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server.sh new file mode 100644 index 0000000000000000000000000000000000000000..7614f9bc608527b20b5ef2133c8b5bab9b9ad202 --- /dev/null +++ b/testcases/cli-test/xorg-x11-server/oe_test_xorg-x11-server_install_and_remove_xorg-x11-server.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-server +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-server | grep -v \.src | grep xorg-x11-server + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-server" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-server + CHECK_RESULT $? 0 0 "install xorg-x11-server failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-server + CHECK_RESULT $? 0 0 "remove xorg-x11-server failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-util-macros/oe_test_xorg-x11-util-macros_install_and_remove_xorg-x11-util-macros.sh b/testcases/cli-test/xorg-x11-util-macros/oe_test_xorg-x11-util-macros_install_and_remove_xorg-x11-util-macros.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6d3f4455ff6e9aeaf4188ba8123f838b7de3168 --- /dev/null +++ b/testcases/cli-test/xorg-x11-util-macros/oe_test_xorg-x11-util-macros_install_and_remove_xorg-x11-util-macros.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-util-macros +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-util-macros | grep -v \.src | grep xorg-x11-util-macros + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-util-macros" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-util-macros + CHECK_RESULT $? 0 0 "install xorg-x11-util-macros failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-util-macros + CHECK_RESULT $? 0 0 "remove xorg-x11-util-macros failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-debuginfo.sh b/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e7edbdb42f15ff975ecffde3f9bb98fecf14b6a --- /dev/null +++ b/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-utils-debuginfo | grep -v \.src | grep xorg-x11-utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-utils-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-utils-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-debugsource.sh b/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f770883f360f3212a7fa84a61a2566dc064a305 --- /dev/null +++ b/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-utils-debugsource | grep -v \.src | grep xorg-x11-utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-utils-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-utils-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-help.sh b/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8d56a3bd6f747bee3d186576321fbd14d0cb035 --- /dev/null +++ b/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-utils-help | grep -v \.src | grep xorg-x11-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-utils-help + CHECK_RESULT $? 0 0 "install xorg-x11-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-utils-help + CHECK_RESULT $? 0 0 "remove xorg-x11-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils.sh b/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..897a45d07ac438a3f8fb216dd77b5a1458f30775 --- /dev/null +++ b/testcases/cli-test/xorg-x11-utils/oe_test_xorg-x11-utils_install_and_remove_xorg-x11-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-utils | grep -v \.src | grep xorg-x11-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-utils + CHECK_RESULT $? 0 0 "install xorg-x11-utils failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-utils + CHECK_RESULT $? 0 0 "remove xorg-x11-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-debuginfo.sh b/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e248318e98a0dbf4b21e4ea49ab5ee7b9b21cb93 --- /dev/null +++ b/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xauth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xauth-debuginfo | grep -v \.src | grep xorg-x11-xauth-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xauth-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xauth-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-xauth-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xauth-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-xauth-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-debugsource.sh b/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..35ec409d3abef8c05022d3739b8ced1679a305e9 --- /dev/null +++ b/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xauth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xauth-debugsource | grep -v \.src | grep xorg-x11-xauth-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xauth-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xauth-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-xauth-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xauth-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-xauth-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-help.sh b/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..dec79d1785e1f8db1f23fbf1d70348a92ac51c25 --- /dev/null +++ b/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xauth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xauth-help | grep -v \.src | grep xorg-x11-xauth-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xauth-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xauth-help + CHECK_RESULT $? 0 0 "install xorg-x11-xauth-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xauth-help + CHECK_RESULT $? 0 0 "remove xorg-x11-xauth-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth.sh b/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f1721794b3f83843967b436109aeccf29efe29a --- /dev/null +++ b/testcases/cli-test/xorg-x11-xauth/oe_test_xorg-x11-xauth_install_and_remove_xorg-x11-xauth.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xauth +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xauth | grep -v \.src | grep xorg-x11-xauth + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xauth" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xauth + CHECK_RESULT $? 0 0 "install xorg-x11-xauth failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xauth + CHECK_RESULT $? 0 0 "remove xorg-x11-xauth failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-debuginfo.sh b/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..12af4fee316e0fdfdd4803401644e7e6fdbe913c --- /dev/null +++ b/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xinit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xinit-debuginfo | grep -v \.src | grep xorg-x11-xinit-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xinit-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xinit-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-xinit-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xinit-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-xinit-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-debugsource.sh b/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1817b0f6272066c077c40b6c52703a6783f76aff --- /dev/null +++ b/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xinit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xinit-debugsource | grep -v \.src | grep xorg-x11-xinit-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xinit-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xinit-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-xinit-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xinit-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-xinit-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-help.sh b/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..09aef89a2ea5e603ca9481f990e2825e4367062f --- /dev/null +++ b/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xinit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xinit-help | grep -v \.src | grep xorg-x11-xinit-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xinit-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xinit-help + CHECK_RESULT $? 0 0 "install xorg-x11-xinit-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xinit-help + CHECK_RESULT $? 0 0 "remove xorg-x11-xinit-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit.sh b/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e9f08a4563791f3020feae23631c444dc096209 --- /dev/null +++ b/testcases/cli-test/xorg-x11-xinit/oe_test_xorg-x11-xinit_install_and_remove_xorg-x11-xinit.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xinit +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xinit | grep -v \.src | grep xorg-x11-xinit + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xinit" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xinit + CHECK_RESULT $? 0 0 "install xorg-x11-xinit failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xinit + CHECK_RESULT $? 0 0 "remove xorg-x11-xinit failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-debuginfo.sh b/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..55b8c7fd766b27287d42a0c152bea28d4f23e0f3 --- /dev/null +++ b/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xkb-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xkb-utils-debuginfo | grep -v \.src | grep xorg-x11-xkb-utils-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xkb-utils-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xkb-utils-debuginfo + CHECK_RESULT $? 0 0 "install xorg-x11-xkb-utils-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xkb-utils-debuginfo + CHECK_RESULT $? 0 0 "remove xorg-x11-xkb-utils-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-debugsource.sh b/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1527dc4b53283c05aef9215589023dad0937cc69 --- /dev/null +++ b/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xkb-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xkb-utils-debugsource | grep -v \.src | grep xorg-x11-xkb-utils-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xkb-utils-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xkb-utils-debugsource + CHECK_RESULT $? 0 0 "install xorg-x11-xkb-utils-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xkb-utils-debugsource + CHECK_RESULT $? 0 0 "remove xorg-x11-xkb-utils-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-devel.sh b/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..57f8f064af0f3136bf8c45dc4b67fdb7420c8d40 --- /dev/null +++ b/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xkb-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xkb-utils-devel | grep -v \.src | grep xorg-x11-xkb-utils-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xkb-utils-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xkb-utils-devel + CHECK_RESULT $? 0 0 "install xorg-x11-xkb-utils-devel failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xkb-utils-devel + CHECK_RESULT $? 0 0 "remove xorg-x11-xkb-utils-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-help.sh b/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ad05e4f15805852c0abce8c1219aca335e16892 --- /dev/null +++ b/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xkb-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xkb-utils-help | grep -v \.src | grep xorg-x11-xkb-utils-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xkb-utils-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xkb-utils-help + CHECK_RESULT $? 0 0 "install xorg-x11-xkb-utils-help failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xkb-utils-help + CHECK_RESULT $? 0 0 "remove xorg-x11-xkb-utils-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils.sh b/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils.sh new file mode 100644 index 0000000000000000000000000000000000000000..f52c6e5f3c6ae15b7718f5228890593db7940ded --- /dev/null +++ b/testcases/cli-test/xorg-x11-xkb-utils/oe_test_xorg-x11-xkb-utils_install_and_remove_xorg-x11-xkb-utils.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xkb-utils +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xkb-utils | grep -v \.src | grep xorg-x11-xkb-utils + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xkb-utils" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xkb-utils + CHECK_RESULT $? 0 0 "install xorg-x11-xkb-utils failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xkb-utils + CHECK_RESULT $? 0 0 "remove xorg-x11-xkb-utils failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xorg-x11-xtrans-devel/oe_test_xorg-x11-xtrans-devel_install_and_remove_xorg-x11-xtrans-devel.sh b/testcases/cli-test/xorg-x11-xtrans-devel/oe_test_xorg-x11-xtrans-devel_install_and_remove_xorg-x11-xtrans-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e2ce22de967f3f2e584ab7f7900f3f94f74b54ef --- /dev/null +++ b/testcases/cli-test/xorg-x11-xtrans-devel/oe_test_xorg-x11-xtrans-devel_install_and_remove_xorg-x11-xtrans-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xorg-x11-xtrans-devel +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xorg-x11-xtrans-devel | grep -v \.src | grep xorg-x11-xtrans-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xorg-x11-xtrans-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xorg-x11-xtrans-devel + CHECK_RESULT $? 0 0 "install xorg-x11-xtrans-devel failed" + SLEEP_WAIT 1 + dnf remove -y xorg-x11-xtrans-devel + CHECK_RESULT $? 0 0 "remove xorg-x11-xtrans-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_gxvattr.sh b/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_gxvattr.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c27d256f0e1f0ada3e4173cd1707660a2dc3733 --- /dev/null +++ b/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_gxvattr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xvattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available gxvattr | grep -v \.src | grep gxvattr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm gxvattr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y gxvattr + CHECK_RESULT $? 0 0 "install gxvattr failed" + SLEEP_WAIT 1 + dnf remove -y gxvattr + CHECK_RESULT $? 0 0 "remove gxvattr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr-debuginfo.sh b/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..80505b473193443a7fda64110158e69a000f34fb --- /dev/null +++ b/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xvattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xvattr-debuginfo | grep -v \.src | grep xvattr-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xvattr-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xvattr-debuginfo + CHECK_RESULT $? 0 0 "install xvattr-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xvattr-debuginfo + CHECK_RESULT $? 0 0 "remove xvattr-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr-debugsource.sh b/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..1eebc04536b34c2b6a31ad164ba096693d25e1f2 --- /dev/null +++ b/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xvattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xvattr-debugsource | grep -v \.src | grep xvattr-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xvattr-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xvattr-debugsource + CHECK_RESULT $? 0 0 "install xvattr-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xvattr-debugsource + CHECK_RESULT $? 0 0 "remove xvattr-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr-help.sh b/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d627a215e295ecea00fcec14e339e7ce4345f8ff --- /dev/null +++ b/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xvattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xvattr-help | grep -v \.src | grep xvattr-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xvattr-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xvattr-help + CHECK_RESULT $? 0 0 "install xvattr-help failed" + SLEEP_WAIT 1 + dnf remove -y xvattr-help + CHECK_RESULT $? 0 0 "remove xvattr-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr.sh b/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec11336dd8dbe23e7f1ce21c7c64957fc41c9193 --- /dev/null +++ b/testcases/cli-test/xvattr/oe_test_xvattr_install_and_remove_xvattr.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xvattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xvattr | grep -v \.src | grep xvattr + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xvattr" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xvattr + CHECK_RESULT $? 0 0 "install xvattr failed" + SLEEP_WAIT 1 + dnf remove -y xvattr + CHECK_RESULT $? 0 0 "remove xvattr failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-debuginfo.sh b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..55463f0eab7a9c270dbcf3b3650b119b6e2e59ef --- /dev/null +++ b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xz-debuginfo | grep -v \.src | grep xz-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xz-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xz-debuginfo + CHECK_RESULT $? 0 0 "install xz-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y xz-debuginfo + CHECK_RESULT $? 0 0 "remove xz-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-debugsource.sh b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3d3ae8dd4570e297e3798d7e31e86974c59ae6c --- /dev/null +++ b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xz-debugsource | grep -v \.src | grep xz-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xz-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xz-debugsource + CHECK_RESULT $? 0 0 "install xz-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y xz-debugsource + CHECK_RESULT $? 0 0 "remove xz-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-devel.sh b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b419262659e5b433c958e87ced7a68c595a9165 --- /dev/null +++ b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xz-devel | grep -v \.src | grep xz-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xz-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xz-devel + CHECK_RESULT $? 0 0 "install xz-devel failed" + SLEEP_WAIT 1 + dnf remove -y xz-devel + CHECK_RESULT $? 0 0 "remove xz-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-help.sh b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6ad73dd50a4f67a0159285c3ff70a29e4ceab91 --- /dev/null +++ b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xz-help | grep -v \.src | grep xz-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xz-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xz-help + CHECK_RESULT $? 0 0 "install xz-help failed" + SLEEP_WAIT 1 + dnf remove -y xz-help + CHECK_RESULT $? 0 0 "remove xz-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-libs.sh b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-libs.sh new file mode 100644 index 0000000000000000000000000000000000000000..2756edbbf868d349c62c4ad7b1ee8a190883cf79 --- /dev/null +++ b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-libs.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xz-libs | grep -v \.src | grep xz-libs + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xz-libs" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xz-libs + CHECK_RESULT $? 0 0 "install xz-libs failed" + SLEEP_WAIT 1 + dnf remove -y xz-libs + CHECK_RESULT $? 0 0 "remove xz-libs failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-lzma-compat.sh b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-lzma-compat.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae81dc3c4fbd018f7130f8415fc5608c3ac0bb35 --- /dev/null +++ b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz-lzma-compat.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xz-lzma-compat | grep -v \.src | grep xz-lzma-compat + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xz-lzma-compat" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xz-lzma-compat + CHECK_RESULT $? 0 0 "install xz-lzma-compat failed" + SLEEP_WAIT 1 + dnf remove -y xz-lzma-compat + CHECK_RESULT $? 0 0 "remove xz-lzma-compat failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz.sh b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz.sh new file mode 100644 index 0000000000000000000000000000000000000000..1abbe140724d3cdadc9e4d08bab39fd65c0b8051 --- /dev/null +++ b/testcases/cli-test/xz/oe_test_xz_install_and_remove_xz.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src xz +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available xz | grep -v \.src | grep xz + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm xz" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y xz + CHECK_RESULT $? 0 0 "install xz failed" + SLEEP_WAIT 1 + dnf remove -y xz + CHECK_RESULT $? 0 0 "remove xz failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/yelp-tools/oe_test_yelp-tools_install_and_remove_yelp-tools.sh b/testcases/cli-test/yelp-tools/oe_test_yelp-tools_install_and_remove_yelp-tools.sh new file mode 100644 index 0000000000000000000000000000000000000000..1bcc6ac9c2a8fd2a340814c55b40d2bbea743fe1 --- /dev/null +++ b/testcases/cli-test/yelp-tools/oe_test_yelp-tools_install_and_remove_yelp-tools.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src yelp-tools +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available yelp-tools | grep -v \.src | grep yelp-tools + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm yelp-tools" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y yelp-tools + CHECK_RESULT $? 0 0 "install yelp-tools failed" + SLEEP_WAIT 1 + dnf remove -y yelp-tools + CHECK_RESULT $? 0 0 "remove yelp-tools failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zd1211-firmware/oe_test_zd1211-firmware_install_and_remove_zd1211-firmware-help.sh b/testcases/cli-test/zd1211-firmware/oe_test_zd1211-firmware_install_and_remove_zd1211-firmware-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f7700dcbc9c0bb4fc63daeb3c432c0c88018a1f --- /dev/null +++ b/testcases/cli-test/zd1211-firmware/oe_test_zd1211-firmware_install_and_remove_zd1211-firmware-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zd1211-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zd1211-firmware-help | grep -v \.src | grep zd1211-firmware-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zd1211-firmware-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zd1211-firmware-help + CHECK_RESULT $? 0 0 "install zd1211-firmware-help failed" + SLEEP_WAIT 1 + dnf remove -y zd1211-firmware-help + CHECK_RESULT $? 0 0 "remove zd1211-firmware-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zd1211-firmware/oe_test_zd1211-firmware_install_and_remove_zd1211-firmware.sh b/testcases/cli-test/zd1211-firmware/oe_test_zd1211-firmware_install_and_remove_zd1211-firmware.sh new file mode 100644 index 0000000000000000000000000000000000000000..d85245783459e7d0909a2abd1c2a654a522579f7 --- /dev/null +++ b/testcases/cli-test/zd1211-firmware/oe_test_zd1211-firmware_install_and_remove_zd1211-firmware.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zd1211-firmware +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zd1211-firmware | grep -v \.src | grep zd1211-firmware + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zd1211-firmware" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zd1211-firmware + CHECK_RESULT $? 0 0 "install zd1211-firmware failed" + SLEEP_WAIT 1 + dnf remove -y zd1211-firmware + CHECK_RESULT $? 0 0 "remove zd1211-firmware failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity-debuginfo.sh b/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..16c3f8da7cd1e4a6f27b622e156a9dcdbb7da905 --- /dev/null +++ b/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zenity +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zenity-debuginfo | grep -v \.src | grep zenity-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zenity-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zenity-debuginfo + CHECK_RESULT $? 0 0 "install zenity-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y zenity-debuginfo + CHECK_RESULT $? 0 0 "remove zenity-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity-debugsource.sh b/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6b8e4f1498691b7464509271b01c1f11a6d198a --- /dev/null +++ b/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zenity +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zenity-debugsource | grep -v \.src | grep zenity-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zenity-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zenity-debugsource + CHECK_RESULT $? 0 0 "install zenity-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y zenity-debugsource + CHECK_RESULT $? 0 0 "remove zenity-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity-help.sh b/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..00497adc0db4986317bc1c0ea90396f240472c36 --- /dev/null +++ b/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zenity +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zenity-help | grep -v \.src | grep zenity-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zenity-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zenity-help + CHECK_RESULT $? 0 0 "install zenity-help failed" + SLEEP_WAIT 1 + dnf remove -y zenity-help + CHECK_RESULT $? 0 0 "remove zenity-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity.sh b/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity.sh new file mode 100644 index 0000000000000000000000000000000000000000..32ff43879f9e49d3dbb4171d248e25b145fefc02 --- /dev/null +++ b/testcases/cli-test/zenity/oe_test_zenity_install_and_remove_zenity.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zenity +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zenity | grep -v \.src | grep zenity + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zenity" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zenity + CHECK_RESULT $? 0 0 "install zenity failed" + SLEEP_WAIT 1 + dnf remove -y zenity + CHECK_RESULT $? 0 0 "remove zenity failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-debuginfo.sh b/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0455bf4df9791e19d94557e97d91fc8eb3d73bb --- /dev/null +++ b/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zip-debuginfo | grep -v \.src | grep zip-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zip-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zip-debuginfo + CHECK_RESULT $? 0 0 "install zip-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y zip-debuginfo + CHECK_RESULT $? 0 0 "remove zip-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-debugsource.sh b/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..d545dcd13137c65b247b3cdf28780608203937e9 --- /dev/null +++ b/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zip-debugsource | grep -v \.src | grep zip-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zip-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zip-debugsource + CHECK_RESULT $? 0 0 "install zip-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y zip-debugsource + CHECK_RESULT $? 0 0 "remove zip-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-doc.sh b/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-doc.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e1dd453f4a547ca27bb72e59efb733b9772401a --- /dev/null +++ b/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-doc.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zip-doc | grep -v \.src | grep zip-doc + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zip-doc" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zip-doc + CHECK_RESULT $? 0 0 "install zip-doc failed" + SLEEP_WAIT 1 + dnf remove -y zip-doc + CHECK_RESULT $? 0 0 "remove zip-doc failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-help.sh b/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..af84ae5ddcb2fad9cd2afdb9504cccc483c2cbfe --- /dev/null +++ b/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zip-help | grep -v \.src | grep zip-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zip-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zip-help + CHECK_RESULT $? 0 0 "install zip-help failed" + SLEEP_WAIT 1 + dnf remove -y zip-help + CHECK_RESULT $? 0 0 "remove zip-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip.sh b/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip.sh new file mode 100644 index 0000000000000000000000000000000000000000..35d589ea799c124a7f7c64cb74c6e06aa962af9a --- /dev/null +++ b/testcases/cli-test/zip/oe_test_zip_install_and_remove_zip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zip +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zip | grep -v \.src | grep zip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zip + CHECK_RESULT $? 0 0 "install zip failed" + SLEEP_WAIT 1 + dnf remove -y zip + CHECK_RESULT $? 0 0 "remove zip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_minizip-devel.sh b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_minizip-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..d453aefa8cb85434c007064af833b3e5d9fd8435 --- /dev/null +++ b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_minizip-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available minizip-devel | grep -v \.src | grep minizip-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm minizip-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y minizip-devel + CHECK_RESULT $? 0 0 "install minizip-devel failed" + SLEEP_WAIT 1 + dnf remove -y minizip-devel + CHECK_RESULT $? 0 0 "remove minizip-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_minizip.sh b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_minizip.sh new file mode 100644 index 0000000000000000000000000000000000000000..6143edf069fcf716798e80dbb684d30982dd111c --- /dev/null +++ b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_minizip.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available minizip | grep -v \.src | grep minizip + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm minizip" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y minizip + CHECK_RESULT $? 0 0 "install minizip failed" + SLEEP_WAIT 1 + dnf remove -y minizip + CHECK_RESULT $? 0 0 "remove minizip failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-debuginfo.sh b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..80c1ff90ddf274871d5511c24b56e23596688bcc --- /dev/null +++ b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zlib-debuginfo | grep -v \.src | grep zlib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zlib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zlib-debuginfo + CHECK_RESULT $? 0 0 "install zlib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y zlib-debuginfo + CHECK_RESULT $? 0 0 "remove zlib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-debugsource.sh b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fee5f30a0a50dbca0b02e52c80106e070b45d46 --- /dev/null +++ b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zlib-debugsource | grep -v \.src | grep zlib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zlib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zlib-debugsource + CHECK_RESULT $? 0 0 "install zlib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y zlib-debugsource + CHECK_RESULT $? 0 0 "remove zlib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-devel.sh b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..66a9877c116bfb0566b8ee58d956ab5cf1dbf196 --- /dev/null +++ b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zlib-devel | grep -v \.src | grep zlib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zlib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zlib-devel + CHECK_RESULT $? 0 0 "install zlib-devel failed" + SLEEP_WAIT 1 + dnf remove -y zlib-devel + CHECK_RESULT $? 0 0 "remove zlib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-help.sh b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..d778509b3ccaca76b485b600d9f69d0a4d8ec39b --- /dev/null +++ b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zlib-help | grep -v \.src | grep zlib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zlib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zlib-help + CHECK_RESULT $? 0 0 "install zlib-help failed" + SLEEP_WAIT 1 + dnf remove -y zlib-help + CHECK_RESULT $? 0 0 "remove zlib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-relocation.sh b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-relocation.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc12bbf4cc66af895bbda76220dde5ec583e1550 --- /dev/null +++ b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib-relocation.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zlib-relocation | grep -v \.src | grep zlib-relocation + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zlib-relocation" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zlib-relocation + CHECK_RESULT $? 0 0 "install zlib-relocation failed" + SLEEP_WAIT 1 + dnf remove -y zlib-relocation + CHECK_RESULT $? 0 0 "remove zlib-relocation failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib.sh b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib.sh new file mode 100644 index 0000000000000000000000000000000000000000..45749472c76358ff268a3507de978972bb3f867c --- /dev/null +++ b/testcases/cli-test/zlib/oe_test_zlib_install_and_remove_zlib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zlib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zlib | grep -v \.src | grep zlib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zlib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zlib + CHECK_RESULT $? 0 0 "install zlib failed" + SLEEP_WAIT 1 + dnf remove -y zlib + CHECK_RESULT $? 0 0 "remove zlib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-debuginfo.sh b/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..b99a5577f19323d77cced20bafd43870bb943cd0 --- /dev/null +++ b/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zstd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zstd-debuginfo | grep -v \.src | grep zstd-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zstd-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zstd-debuginfo + CHECK_RESULT $? 0 0 "install zstd-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y zstd-debuginfo + CHECK_RESULT $? 0 0 "remove zstd-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-debugsource.sh b/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..9eb969f9e237fc6c5170a2ae7d16cddda898b66b --- /dev/null +++ b/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zstd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zstd-debugsource | grep -v \.src | grep zstd-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zstd-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zstd-debugsource + CHECK_RESULT $? 0 0 "install zstd-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y zstd-debugsource + CHECK_RESULT $? 0 0 "remove zstd-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-devel.sh b/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..7daf1ba33f5e775814441e342b64e7c2d153c440 --- /dev/null +++ b/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zstd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zstd-devel | grep -v \.src | grep zstd-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zstd-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zstd-devel + CHECK_RESULT $? 0 0 "install zstd-devel failed" + SLEEP_WAIT 1 + dnf remove -y zstd-devel + CHECK_RESULT $? 0 0 "remove zstd-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-help.sh b/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff01a6b975e98e37a7fc8dd682c833724f49db74 --- /dev/null +++ b/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zstd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zstd-help | grep -v \.src | grep zstd-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zstd-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zstd-help + CHECK_RESULT $? 0 0 "install zstd-help failed" + SLEEP_WAIT 1 + dnf remove -y zstd-help + CHECK_RESULT $? 0 0 "remove zstd-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd.sh b/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4d81275d4c9135b23ea063d7308352a7688e541 --- /dev/null +++ b/testcases/cli-test/zstd/oe_test_zstd_install_and_remove_zstd.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zstd +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zstd | grep -v \.src | grep zstd + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zstd" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zstd + CHECK_RESULT $? 0 0 "install zstd failed" + SLEEP_WAIT 1 + dnf remove -y zstd + CHECK_RESULT $? 0 0 "remove zstd failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-debuginfo.sh b/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-debuginfo.sh new file mode 100644 index 0000000000000000000000000000000000000000..df5b9be817ba896fa979ad845c6005477bcc7608 --- /dev/null +++ b/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-debuginfo.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zziplib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zziplib-debuginfo | grep -v \.src | grep zziplib-debuginfo + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zziplib-debuginfo" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zziplib-debuginfo + CHECK_RESULT $? 0 0 "install zziplib-debuginfo failed" + SLEEP_WAIT 1 + dnf remove -y zziplib-debuginfo + CHECK_RESULT $? 0 0 "remove zziplib-debuginfo failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-debugsource.sh b/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-debugsource.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa79f714a739952a13fefc40d922cc0dd938f0e4 --- /dev/null +++ b/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-debugsource.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zziplib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zziplib-debugsource | grep -v \.src | grep zziplib-debugsource + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zziplib-debugsource" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zziplib-debugsource + CHECK_RESULT $? 0 0 "install zziplib-debugsource failed" + SLEEP_WAIT 1 + dnf remove -y zziplib-debugsource + CHECK_RESULT $? 0 0 "remove zziplib-debugsource failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-devel.sh b/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-devel.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3c13fe9fc5793a164f97723535a58d77466b007 --- /dev/null +++ b/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-devel.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zziplib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zziplib-devel | grep -v \.src | grep zziplib-devel + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zziplib-devel" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zziplib-devel + CHECK_RESULT $? 0 0 "install zziplib-devel failed" + SLEEP_WAIT 1 + dnf remove -y zziplib-devel + CHECK_RESULT $? 0 0 "remove zziplib-devel failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-help.sh b/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-help.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c2a53f7864061da6544cc1abbb740849fb61c9a --- /dev/null +++ b/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib-help.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zziplib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zziplib-help | grep -v \.src | grep zziplib-help + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zziplib-help" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zziplib-help + CHECK_RESULT $? 0 0 "install zziplib-help failed" + SLEEP_WAIT 1 + dnf remove -y zziplib-help + CHECK_RESULT $? 0 0 "remove zziplib-help failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib.sh b/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f7c3bb64517055a92d345b154e2845094fbf899 --- /dev/null +++ b/testcases/cli-test/zziplib/oe_test_zziplib_install_and_remove_zziplib.sh @@ -0,0 +1,49 @@ +#!/usr/bin/bash + +# Copyright (c) 2024 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024-08-14 +# @License : Mulan PSL v2 +# @Desc : test install and remove rpm which build from src zziplib +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + dnf list available zziplib | grep -v \.src | grep zziplib + if [ $? -ne 0 ]; then + LOG_ERROR "do not support rpm zziplib" + exit 255 + fi + LOG_INFO "End of environmental preparation!" +} + +function run_test() { + LOG_INFO "Start testing..." + + dnf install -y zziplib + CHECK_RESULT $? 0 0 "install zziplib failed" + SLEEP_WAIT 1 + dnf remove -y zziplib + CHECK_RESULT $? 0 0 "remove zziplib failed" + + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + LOG_INFO "Finish environment cleanup!" +} + +main $@ \ No newline at end of file diff --git a/testcases/doc-test/admin_guide/oe_test_nmcli_config_dynamic_IP/oe_test_nmcli_config_dynamic_IP.sh b/testcases/doc-test/admin_guide/oe_test_nmcli_config_dynamic_IP/oe_test_nmcli_config_dynamic_IP.sh index 4266fa4c5b06de8738b9489fd7392522f639f351..ca1debe22e009914a0ceafd02297a4e174cfd1ca 100755 --- a/testcases/doc-test/admin_guide/oe_test_nmcli_config_dynamic_IP/oe_test_nmcli_config_dynamic_IP.sh +++ b/testcases/doc-test/admin_guide/oe_test_nmcli_config_dynamic_IP/oe_test_nmcli_config_dynamic_IP.sh @@ -16,7 +16,7 @@ # @License : Mulan PSL v2 # @Desc : Nmcli configure dynamic IP connection # ############################################ -source ${OET_PATH}/libs/locallibs/common_lib.sh +source "${OET_PATH}"/libs/locallibs/common_lib.sh function config_params() { LOG_INFO "Start loading data!" con_name='test_con' @@ -25,10 +25,10 @@ function config_params() { function run_test() { LOG_INFO "Start executing testcase!" - nmcli connection add type ethernet con-name ${con_name} ifname ${NODE1_NIC} | grep successfully + nmcli connection add type ethernet con-name "${con_name}" ifname "${NODE1_NIC}" | grep successfully CHECK_RESULT $? - nmcli con up ${con_name} + nmcli con up "${con_name}" CHECK_RESULT $? nmcli device status | grep "${con_name}" | grep "connected" CHECK_RESULT $? @@ -37,8 +37,11 @@ function run_test() { function post_test() { LOG_INFO "start environment cleanup." - nmcli con delete ${con_name} + nmcli con delete "${con_name}" + systemctl restart NetworkManager + SLEP_WAIT 3 + nmcli con up "${NODE1_NIC}" LOG_INFO "Finish environment cleanup." } -main $@ +main "$@" diff --git a/testcases/performance-test/comprehensive/unixbench_comprehensive/oe_test_unixbench_comprehensive.sh b/testcases/performance-test/comprehensive/unixbench_comprehensive/oe_test_unixbench_comprehensive.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fc93c8b88d0d73b829105a2b5492af2c40f0316 --- /dev/null +++ b/testcases/performance-test/comprehensive/unixbench_comprehensive/oe_test_unixbench_comprehensive.sh @@ -0,0 +1,67 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : comprehensive performance test with unixbench +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + + DNF_INSTALL "git gcc clang make" + git clone https://code.osssc.ac.cn/oepkgs/os-test-framework/unixbench.git /opt/unixbench + cd /opt/unixbench && make all + unixbench_path="/opt/unixbench" + if [[ "$COMPILER" == "clang" ]]; then + sed -i 's/CC=gcc/CC=clang/g' Makefile + fi + max_threads_num=$(nproc) + + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + cd /opt/unixbench || exit 255 + chmod +x /opt/unixbench/pgms/multi.sh + chmod +x /opt/unixbench/pgms/gfx-11 + chmod +x /opt/unixbench/pgms/tst.sh + chmod +x ./Run + ./Run >tmp.txt 2>&1 + echo -n "comprehensive_sccore_1_thread:单线程综合性能评分:分:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "System Benchmarks Index Score"|head -n 1| awk -F ' ' '{print $NF}' >> /opt/performance_test_result.txt + echo -n "comprehensive_sccore_multi_thread:多线程综合性能评分:分:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "System Benchmarks Index Score"|tail -n 1| awk -F ' ' '{print $NF}' >> /opt/performance_test_result.txt + 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/performance-test/cpu/lmbench_cpu/oe_test_lmbench_cpu.sh b/testcases/performance-test/cpu/lmbench_cpu/oe_test_lmbench_cpu.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb87eb072601912f79d55fc8644c09b62c591ddf --- /dev/null +++ b/testcases/performance-test/cpu/lmbench_cpu/oe_test_lmbench_cpu.sh @@ -0,0 +1,121 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : lmbench test +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "git libtirpc libtirpc-devel glibc-devel make gcc" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + cd /opt || exit 255 + git clone https://gitee.com/redrsoe2100/lmbench.git && ls ./|grep lmbench + cd /opt/lmbench || exit 255 + sed -i '/^LDLIBS=-lm/i cp /usr/include/netdb.h /usr/include/tirpc/rpc/' scripts/build + sed -i '/^LDLIBS=-lm/a CFLAGS="${CFLAGS} -I /usr/include/tirpc"' scripts/build + sed -i 's/^LDLIBS=-lm/LDLIBS="-lm -ltirpc"/' scripts/build + sed -i 's/arm\*/aarch64\*/' scripts/gnu-os + sed -i 's/lseek/lseek64/' src/disk.c + cd /opt/lmbench/src || exit 255 + { + if [[ "$COMPILER" == "clang" ]]; then + DNF_INSTALL clang + sed -i 's/CFLAGS=.*/CFLAGS="${CFLAGS} -I /usr/include/tirpc -Wno-error=implicit-int"/g' scripts/build + make CC=clang + else + make + fi + + } >>/dev/null 2>&1 + LOG_INFO "End to prepare the test environment." +} +function run_test() { + LOG_INFO "Start to run test." + cd /opt/lmbench/src || exit 1 + expect < tmp.txt + CHECK_RESULT $? 0 0 "Execute failed" + SLEEP_WAIT 3 + echo -n "slct_tcp_time:网络连接建立时延:ms:" > /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Processor, Processes'|tail -n 1|awk -F ' ' '{print $9}' >> /opt/performance_test_result.txt + echo -n "single_install_time:信号安装时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Processor, Processes'|tail -n 1|awk -F ' ' '{print $10}' >> /opt/performance_test_result.txt + echo -n "single_handle_time:信号处理时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Processor, Processes'|tail -n 1|awk -F ' ' '{print $11}' >> /opt/performance_test_result.txt + echo -n "fork_process_time:新建进程时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Processor, Processes'|tail -n 1|awk -F ' ' '{print $12}' >> /opt/performance_test_result.txt + echo -n "exec_process_time:执行进程时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Processor, Processes'|tail -n 1|awk -F ' ' '{print $13}' >> /opt/performance_test_result.txt + echo -n "shell_process_time:shell脚本执行时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Processor, Processes'|tail -n 1|awk -F ' ' '{print $14}' >> /opt/performance_test_result.txt + echo -n "integer_bit_time:整数比特运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic integer operations'|tail -n 1|awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + echo -n "integer_multi_time:整数乘法运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic integer operations'|tail -n 1|awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "integer_div_time:整数除法运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic integer operations'|tail -n 1|awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + echo -n "integer_mod_time:整数取模运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic integer operations'|tail -n 1|awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "float_add_time:单精度加法运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic float operations'|tail -n 1|awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + echo -n "float_multi_time:单精度乘法运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic float operations'|tail -n 1|awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "float_div_time:单精度除法运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic float operations'|tail -n 1|awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + echo -n "float_bogo_time:单精度Bogo运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic float operations'|tail -n 1|awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "double_add_time:双精度加法运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic double operations'|tail -n 1|awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + echo -n "double_multi_time:双精度乘法运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic double operations'|tail -n 1|awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "double_div_time:双精度除法运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic double operations'|tail -n 1|awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + echo -n "double_bogo_time:双精度Bogo运算时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Basic double operations'|tail -n 1|awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "context_switching_2p0k:上下文切换2p0k时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Context switching'|tail -n 1|awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + echo -n "context_switching_2p16k:上下文切换2p16k时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Context switching'|tail -n 1|awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "context_switching_2p64k:上下文切换2p64k时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Context switching'|tail -n 1|awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + echo -n "context_switching_8p16k:上下文切换8p16k时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Context switching'|tail -n 1|awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "context_switching_8p64k:上下文切换8p64k时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Context switching'|tail -n 1|awk -F ' ' '{print $8}' >> /opt/performance_test_result.txt + echo -n "context_switching_16p16k:上下文切换16p16k时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Context switching'|tail -n 1|awk -F ' ' '{print $9}' >> /opt/performance_test_result.txt + echo -n "context_switching_16p64k:上下文切换16p64k时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Context switching'|tail -n 1|awk -F ' ' '{print $10}' >> /opt/performance_test_result.txt + echo -n "process_communication_2p0k_latency:进程间通信16p64k时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication latencies'|tail -n 1|awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + echo -n "process_communication_pipe_latency:进程间通信管道时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication latencies'|tail -n 1|awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "process_communication_AF_Unix_latency:进程间通信AF_Unix时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication latencies'|tail -n 1|awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + echo -n "process_communication_UDP_latency:进程间通信UDP时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication latencies'|tail -n 1|awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "process_communication_RPC/UDP_latency:进程间通信RPC/UDP时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication latencies'|tail -n 1|awk -F ' ' '{print $8}' >> /opt/performance_test_result.txt + echo -n "process_communication_TCP_latency:进程间通信TCP时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication latencies'|tail -n 1|awk -F ' ' '{print $9}' >> /opt/performance_test_result.txt + echo -n "process_communication_RPC/TCP_latency:进程间通信RPC/TCP时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication latencies'|tail -n 1|awk -F ' ' '{print $10}' >> /opt/performance_test_result.txt + echo -n "process_communication_RTCP_conn_latency:进程间通信TCP_conn时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication latencies'|tail -n 1|awk -F ' ' '{print $11}' >> /opt/performance_test_result.txt + 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 "$@" \ No newline at end of file diff --git a/testcases/performance-test/cpu/sysbench_cpu/oe_test_sysbench_cpu.sh b/testcases/performance-test/cpu/sysbench_cpu/oe_test_sysbench_cpu.sh new file mode 100644 index 0000000000000000000000000000000000000000..d95b616d91e3aa98d0a7961ee2d65c70dac76e4b --- /dev/null +++ b/testcases/performance-test/cpu/sysbench_cpu/oe_test_sysbench_cpu.sh @@ -0,0 +1,68 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : sysbench test +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + + DNF_INSTALL "sysbench" + max_threads_num=$(nproc) + max_prime=20000 + + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + # sysbench 单线程cpu基准测试 + sysbench cpu --cpu-max-prime=1 --threads="$max_prime" --time=60 run>tmp.txt 2>&1 + CHECK_RESULT 0 0 0 "failed to run sysben cpu --cpu-max-prime=$max_prime --threads=1 --time=60 run" + echo -n "event_per_second_1_thread:单线程CPU处理能力:events/s:" > /opt/performance_test_result.txt && cat tmp.txt | grep "events per second:"|awk -F " " '{print $NF}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get events per second" + echo -n "avg_latency_1_thread:单线程CPU平均时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt | grep -A 5 "Latency (ms):"|grep "avg:"|awk -F " " '{print $NF}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get avg latency in 1 thread" + # sysbench 多线程cpu基准测试 + sysbench cpu --cpu-max-prime="$max_threads_num" --threads=$max_prime --time=60 run>tmp.txt 2>&1 + CHECK_RESULT 0 0 0 "failed to run sysben cpu --cpu-max-prime=$max_prime --threads=$max_threads_num --time=60 run" + echo -n "event_per_second_multi_thread:多线程CPU处理能力:events/s:" >> /opt/performance_test_result.txt && cat tmp.txt | grep "events per second:"|awk -F " " '{print $NF}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get events per second" + echo -n "avg_latency_multi_thread:多线程CPU处理平均时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt | grep -A 5 "Latency (ms):"|grep "avg:"|awk -F " " '{print $NF}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get avg latency in ${max_threads_num} thread" + 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/performance-test/cpu/unixbench_cpu/oe_test_unixbench_cpu.sh b/testcases/performance-test/cpu/unixbench_cpu/oe_test_unixbench_cpu.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a061b088e6448c391ccb243546087836268a389 --- /dev/null +++ b/testcases/performance-test/cpu/unixbench_cpu/oe_test_unixbench_cpu.sh @@ -0,0 +1,77 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : cpu performance test with unixbench +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + + DNF_INSTALL "git gcc clang make" + git clone https://code.osssc.ac.cn/oepkgs/os-test-framework/unixbench.git /opt/unixbench + cd /opt/unixbench && make all + unixbench_path="/opt/unixbench" + if [[ "$COMPILER" == "clang" ]]; then + sed -i 's/CC=gcc/CC=clang/g' Makefile + fi + max_threads_num=$(nproc) + + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + cd /opt/unixbench || exit 255 + chmod +x /opt/unixbench/pgms/multi.sh + chmod +x /opt/unixbench/pgms/gfx-11 + chmod +x /opt/unixbench/pgms/tst.sh + chmod +x ./Run + ./Run >tmp.txt 2>&1 + echo -n "integer_compute_performance_1_thread:单线程整数运算性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Dhrystone 2 using register variables"|grep lps|head -n 1| awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + echo -n "integer_compute_performance_multi_thread:多线程整数运算性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Dhrystone 2 using register variables"|grep lps|tail -n 1| awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + echo -n "float_compute_performance_1_thread:单线程浮点运算性能:MWIPS:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Double-Precision Whetstone"|grep MWIPS|head -n 1| awk -F ' ' '{print $3}' >> /opt/performance_test_result.txt + echo -n "float_compute_performance_multi_thread:多线程浮点运算性能:MWIPS:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Double-Precision Whetstone"|grep MWIPS|tail -n 1| awk -F ' ' '{print $3}' >> /opt/performance_test_result.txt + echo -n "process_create_performance_1_thread:单线程进程创建性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Process Creation"|grep lps|head -n 1| awk -F ' ' '{print $3}' >> /opt/performance_test_result.txt + echo -n "process_create_performance_multi_thread:多线程进程创建性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Process Creation"|grep lps|tail -n 1| awk -F ' ' '{print $3}' >> /opt/performance_test_result.txt + echo -n "process_exec_performance_1_thread:单线程进程执行性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Execl Throughput"|grep lps|head -n 1| awk -F ' ' '{print $3}' >> /opt/performance_test_result.txt + echo -n "process_exec_performance_multi_thread:多线程进程执行性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Execl Throughput"|grep lps|tail -n 1| awk -F ' ' '{print $3}' >> /opt/performance_test_result.txt + echo -n "process_exec_performance_1_thread:单线程shell脚本1并发性能:lpm:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Shell Scripts (1 concurrent) "|grep lpm|head -n 1| awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "process_exec_performance_multi_thread:多线程shell脚本1并发性能:lpm:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Shell Scripts (1 concurrent) "|grep lpm|tail -n 1| awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "process_exec_performance_1_thread:单线程shell脚本8并发性能:lpm:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Shell Scripts (8 concurrent) "|grep lpm|head -n 1| awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "process_exec_performance_multi_thread:多线程shell脚本8并发性能:lpm:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Shell Scripts (8 concurrent) "|grep lpm|tail -n 1| awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + 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/performance-test/file_system/iozone_file_system/oe_test_iozone_file_system.sh b/testcases/performance-test/file_system/iozone_file_system/oe_test_iozone_file_system.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d4aaec22e385d637f0e358d4233990c3542b47b --- /dev/null +++ b/testcases/performance-test/file_system/iozone_file_system/oe_test_iozone_file_system.sh @@ -0,0 +1,58 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : iozone test +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "wget git gcc make tar" + cd /opt || exit 255 + wget https://www.iozone.org/src/current/iozone3_506.tar && ls ./|grep iozone3_506.tar + tar xvf iozone3_506.tar + cd /opt/iozone3_506/src/current/ || exit 255 + make && make clean && make CFLAGS=-fcommon linux + + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + ./iozone -a > tmp.txt 2>&1 + cat tmp.txt |awk '/kB reclen write rewrite read reread/{found=1;next} found'|awk '/iozone test complete/{exit} {print}'|awk 'NF' > /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get iozone output." + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + cd /opt/ || exit 255 + rm -rf iozone3_506* + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" \ No newline at end of file diff --git a/testcases/performance-test/file_system/lmbench_file_system/oe_test_lmbench_file_system.sh b/testcases/performance-test/file_system/lmbench_file_system/oe_test_lmbench_file_system.sh new file mode 100644 index 0000000000000000000000000000000000000000..27c114114040be8a0b680f5fbe5be81967cbe3cc --- /dev/null +++ b/testcases/performance-test/file_system/lmbench_file_system/oe_test_lmbench_file_system.sh @@ -0,0 +1,93 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : lmbench test +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "git libtirpc libtirpc-devel glibc-devel make gcc" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + cd /opt || exit 255 + git clone https://gitee.com/redrsoe2100/lmbench.git && ls ./|grep lmbench + cd /opt/lmbench || exit 255 + sed -i '/^LDLIBS=-lm/i cp /usr/include/netdb.h /usr/include/tirpc/rpc/' scripts/build + sed -i '/^LDLIBS=-lm/a CFLAGS="${CFLAGS} -I /usr/include/tirpc"' scripts/build + sed -i 's/^LDLIBS=-lm/LDLIBS="-lm -ltirpc"/' scripts/build + sed -i 's/arm\*/aarch64\*/' scripts/gnu-os + sed -i 's/lseek/lseek64/' src/disk.c + cd /opt/lmbench/src || exit 255 + { + if [[ "$COMPILER" == "clang" ]]; then + DNF_INSTALL clang + sed -i 's/CFLAGS=.*/CFLAGS="${CFLAGS} -I /usr/include/tirpc -Wno-error=implicit-int"/g' scripts/build + make CC=clang + else + make + fi + + } >>/dev/null 2>&1 + LOG_INFO "End to prepare the test environment." +} +function run_test() { + LOG_INFO "Start to run test." + cd /opt/lmbench/src || exit 1 + expect < tmp.txt + CHECK_RESULT $? 0 0 "Execute failed" + echo -n "open_close_file_time:文件打开关闭时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Processor, Processes'|tail -n 1|awk -F ' ' '{print $8}' >> /opt/performance_test_result.txt + echo -n "file_create_0k_latency:0k文件创建时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'File & VM system latencies'|tail -n 1|awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + echo -n "file_delete_0k_latency:0k文件删除时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'File & VM system latencies'|tail -n 1|awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "file_create_10k_latency:10k文件创建时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'File & VM system latencies'|tail -n 1|awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + echo -n "file_delete_10k_latency:10k文件删除时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'File & VM system latencies'|tail -n 1|awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "process_communication_file_reread_bandwidths:文件重读带宽:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication bandwidths'|tail -n 1|awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + 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 "$@" \ No newline at end of file diff --git a/testcases/performance-test/file_system/unixbench_file_system/oe_test_unixbench_file_system.sh b/testcases/performance-test/file_system/unixbench_file_system/oe_test_unixbench_file_system.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f47131512da6188efdd3882c00b174cb78d7ee5 --- /dev/null +++ b/testcases/performance-test/file_system/unixbench_file_system/oe_test_unixbench_file_system.sh @@ -0,0 +1,71 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : file system performance test with unixbench +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + + DNF_INSTALL "git gcc clang make" + git clone https://code.osssc.ac.cn/oepkgs/os-test-framework/unixbench.git /opt/unixbench + cd /opt/unixbench && make all + unixbench_path="/opt/unixbench" + if [[ "$COMPILER" == "clang" ]]; then + sed -i 's/CC=gcc/CC=clang/g' Makefile + fi + max_threads_num=$(nproc) + + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + cd /opt/unixbench || exit 255 + chmod +x /opt/unixbench/pgms/multi.sh + chmod +x /opt/unixbench/pgms/gfx-11 + chmod +x /opt/unixbench/pgms/tst.sh + chmod +x ./Run + ./Run >tmp.txt 2>&1 + echo -n "file_copy_256_bufsize_500_maxblocks_performance_1_thread:单线程文件拷贝 256 bufsize 500 maxblocks 性能:KBps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "File Copy 256 bufsize 500 maxblocks"|grep KBps|head -n 1| awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "file_copy_256_bufsize_500_maxblocks_performance_multi_thread:多线程文件拷贝 256 bufsize 500 maxblocks 性能:KBps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "File Copy 256 bufsize 500 maxblocks"|grep KBps|tail -n 1| awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "file_copy_1024_bufsize_2000_maxblocks_performance_1_thread:单线程文件拷贝 1024 bufsize 2000 maxblocks 性能:KBps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "File Copy 1024 bufsize 2000 maxblocks"|grep KBps|head -n 1| awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "file_copy_1024_bufsize_2000_maxblocks_performance_multi_thread:多线程文件拷贝 1024 bufsize 2000 maxblocks 性能:KBps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "File Copy 1024 bufsize 2000 maxblocks"|grep KBps|tail -n 1| awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "file_copy_4096_bufsize_8000_maxblocks_performance_1_thread:单线程文件拷贝 4096 bufsize 8000 maxblocks 性能:KBps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "File Copy 4096 bufsize 8000 maxblocks"|grep KBps|head -n 1| awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "file_copy_4096_bufsize_8000_maxblocks_performance_multi_thread:多线程文件拷贝 4096 bufsize 8000 maxblocks 性能:KBps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "File Copy 4096 bufsize 8000 maxblocks"|grep KBps|tail -n 1| awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + 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/performance-test/io/lmbench_io/oe_test_lmbench_io.sh b/testcases/performance-test/io/lmbench_io/oe_test_lmbench_io.sh new file mode 100644 index 0000000000000000000000000000000000000000..604fa475c7b40f4e4de14162a4b59ecdad31756a --- /dev/null +++ b/testcases/performance-test/io/lmbench_io/oe_test_lmbench_io.sh @@ -0,0 +1,91 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : lmbench test +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "git libtirpc libtirpc-devel glibc-devel make gcc" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + cd /opt || exit 255 + git clone https://gitee.com/redrsoe2100/lmbench.git && ls ./|grep lmbench + cd /opt/lmbench || exit 255 + sed -i '/^LDLIBS=-lm/i cp /usr/include/netdb.h /usr/include/tirpc/rpc/' scripts/build + sed -i '/^LDLIBS=-lm/a CFLAGS="${CFLAGS} -I /usr/include/tirpc"' scripts/build + sed -i 's/^LDLIBS=-lm/LDLIBS="-lm -ltirpc"/' scripts/build + sed -i 's/arm\*/aarch64\*/' scripts/gnu-os + sed -i 's/lseek/lseek64/' src/disk.c + cd /opt/lmbench/src || exit 255 + { + if [[ "$COMPILER" == "clang" ]]; then + DNF_INSTALL clang + sed -i 's/CFLAGS=.*/CFLAGS="${CFLAGS} -I /usr/include/tirpc -Wno-error=implicit-int"/g' scripts/build + make CC=clang + else + make + fi + + } >>/dev/null 2>&1 + LOG_INFO "End to prepare the test environment." +} +function run_test() { + LOG_INFO "Start to run test." + cd /opt/lmbench/src || exit 1 + expect < tmp.txt + CHECK_RESULT $? 0 0 "Execute failed" + echo -n "io_time:io时间:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Processor, Processes'|tail -n 1|awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + echo -n "process_communication_pipe_bandwidths:进程间通信管道带宽:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication bandwidths'|tail -n 1|awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + echo -n "process_communication_AF_Unix_bandwidths:进程间通信AF_Unix带宽:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication bandwidths'|tail -n 1|awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "process_communication_TCP_bandwidths:进程间通信TCP带宽:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication bandwidths'|tail -n 1|awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + 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 "$@" \ No newline at end of file diff --git a/testcases/performance-test/io/unixbench_io/oe_test_unixbench_io.sh b/testcases/performance-test/io/unixbench_io/oe_test_unixbench_io.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b02836a53d7cc039916ac6a325f9502948ed51b --- /dev/null +++ b/testcases/performance-test/io/unixbench_io/oe_test_unixbench_io.sh @@ -0,0 +1,69 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : cpu performance test with unixbench +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + + DNF_INSTALL "git gcc clang make" + git clone https://code.osssc.ac.cn/oepkgs/os-test-framework/unixbench.git /opt/unixbench + cd /opt/unixbench && make all + unixbench_path="/opt/unixbench" + if [[ "$COMPILER" == "clang" ]]; then + sed -i 's/CC=gcc/CC=clang/g' Makefile + fi + max_threads_num=$(nproc) + + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + cd /opt/unixbench || exit 255 + chmod +x /opt/unixbench/pgms/multi.sh + chmod +x /opt/unixbench/pgms/gfx-11 + chmod +x /opt/unixbench/pgms/tst.sh + chmod +x ./Run + ./Run >tmp.txt 2>&1 + echo -n "pip_throughout_performance_1_thread:单线程管道传输性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Pipe Throughput"|grep lps|head -n 1| awk -F ' ' '{print $3}' >> /opt/performance_test_result.txt + echo -n "pip_throughout_performance_multi_thread:多线程管道传输性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Pipe Throughput"|grep lps|tail -n 1| awk -F ' ' '{print $3}' >> /opt/performance_test_result.txt + echo -n "float_compute_performance_1_thread:单线程基于管道上下文切换性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Pipe-based Context Switching "|grep lps|head -n 1| awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + echo -n "float_compute_performance_multi_thread:多线程基于管道上下文切换性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "Pipe-based Context Switching "|grep lps|tail -n 1| awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + 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/performance-test/memory/lmbench_memory/oe_test_lmbench_memory.sh b/testcases/performance-test/memory/lmbench_memory/oe_test_lmbench_memory.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6ab90d742f4fac99713e9144c5208ddc5e003d0 --- /dev/null +++ b/testcases/performance-test/memory/lmbench_memory/oe_test_lmbench_memory.sh @@ -0,0 +1,98 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : lmbench test +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "git libtirpc libtirpc-devel glibc-devel make gcc" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + cd /opt || exit 255 + git clone https://gitee.com/redrsoe2100/lmbench.git && ls ./|grep lmbench + cd /opt/lmbench || exit 255 + sed -i '/^LDLIBS=-lm/i cp /usr/include/netdb.h /usr/include/tirpc/rpc/' scripts/build + sed -i '/^LDLIBS=-lm/a CFLAGS="${CFLAGS} -I /usr/include/tirpc"' scripts/build + sed -i 's/^LDLIBS=-lm/LDLIBS="-lm -ltirpc"/' scripts/build + sed -i 's/arm\*/aarch64\*/' scripts/gnu-os + sed -i 's/lseek/lseek64/' src/disk.c + cd /opt/lmbench/src || exit 255 + { + if [[ "$COMPILER" == "clang" ]]; then + DNF_INSTALL clang + sed -i 's/CFLAGS=.*/CFLAGS="${CFLAGS} -I /usr/include/tirpc -Wno-error=implicit-int"/g' scripts/build + make CC=clang + else + make + fi + + } >>/dev/null 2>&1 + LOG_INFO "End to prepare the test environment." +} +function run_test() { + LOG_INFO "Start to run test." + cd /opt/lmbench/src || exit 1 + expect < tmp.txt + CHECK_RESULT $? 0 0 "Execute failed" + echo -n "file_mmap_latency:文件映射内存时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'File & VM system latencies'|tail -n 1|awk -F ' ' '{print $8}' >> /opt/performance_test_result.txt + echo -n "page_protection_fault_latency:页故障保护时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'File & VM system latencies'|tail -n 1|awk -F ' ' '{print $9}' >> /opt/performance_test_result.txt + echo -n "process_communication_mmap_reread_bandwidths:基于内存映射文件重读带宽:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication bandwidths'|tail -n 1|awk -F ' ' '{print $8}' >> /opt/performance_test_result.txt + echo -n "process_communication_bcopy_libc_bandwidths:基于libc的内存块复制带宽:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication bandwidths'|tail -n 1|awk -F ' ' '{print $8}' >> /opt/performance_test_result.txt + echo -n "process_communication_bcopy_libc_bandwidths:基于手动实现的内存块复制带宽:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication bandwidths'|tail -n 1|awk -F ' ' '{print $9}' >> /opt/performance_test_result.txt + echo -n "process_communication_mem_read_bandwidths:内存读带宽:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication bandwidths'|tail -n 1|awk -F ' ' '{print $10}' >> /opt/performance_test_result.txt + echo -n "process_communication_mem_write_bandwidths:内存写带宽:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Communication bandwidths'|tail -n 1|awk -F ' ' '{print $11}' >> /opt/performance_test_result.txt + echo -n "memory_L1_latency:内存L1时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Memory latencies'|tail -n 1|awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "memory_L2_latency:内存L2时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Memory latencies'|tail -n 1|awk -F ' ' '{print $6}' >> /opt/performance_test_result.txt + echo -n "memory_main_latency:主内存时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Memory latencies'|tail -n 1|awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "memory_rand_latency:随机内存时延:ns:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Memory latencies'|tail -n 1|awk -F ' ' '{print $8}' >> /opt/performance_test_result.txt + 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 "$@" \ No newline at end of file diff --git a/testcases/performance-test/memory/mbw_memory/oe_test_mbw_memory.sh b/testcases/performance-test/memory/mbw_memory/oe_test_mbw_memory.sh new file mode 100644 index 0000000000000000000000000000000000000000..063c15db173d805017196d428afc83a52eb5dec8 --- /dev/null +++ b/testcases/performance-test/memory/mbw_memory/oe_test_mbw_memory.sh @@ -0,0 +1,63 @@ +#!/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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : memory performance test with mbw +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "sysbench git gcc clang make gcc-gfortran" + git clone https://gitee.com/devops_dev/mbw.git && ls ./ |grep mbw + cd mbw && make + cd .. + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + + # mbw 拷贝内存带宽 + cd mbw || exit 255 + ./mbw -n 10 1024 > tmp.txt 2>&1 + echo -n "memory_copy_rate:内存拷贝平均速率:MB/s:" > /opt/performance_test_result.txt && cat tmp.txt |grep AVG|grep MEMCPY |awk -F ':' '{print $NF}' |awk -F ' ' '{print $1}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get memory copy rate" + echo -n "char_copy_rate:字符拷贝平均速率:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep AVG|grep DUMB |awk -F ':' '{print $NF}' |awk -F ' ' '{print $1}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get char copy rate" + echo -n "memory_block_copy_rate:内存块拷贝平均速率:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep AVG|grep MCBLOCK |awk -F ':' '{print $NF}' |awk -F ' ' '{print $1}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get memory block copy rate" + cd .. + LOG_INFO "End to run test." +} + +# 后置处理,恢复测试环境 +function post_test() { + LOG_INFO "Start to restore the test environment." + rm -rf mbw + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/performance-test/memory/stream_memory/oe_test_stream_memory.sh b/testcases/performance-test/memory/stream_memory/oe_test_stream_memory.sh new file mode 100644 index 0000000000000000000000000000000000000000..a58f0ba9e870790ef473749a265bbc710a6bade8 --- /dev/null +++ b/testcases/performance-test/memory/stream_memory/oe_test_stream_memory.sh @@ -0,0 +1,72 @@ +#!/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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : memory performance test with stream +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "git gcc clang make gcc-gfortran" + git clone https://code.osssc.ac.cn/oepkgs/os-test-framework/stream.git && ls ./|grep stream + cd stream || exit 1 + { + if [[ "$COMPILER" == "clang" ]]; then + sed -i "s/CC =.*/CC = clang/" Makefile + else + sed -i "s/CC =.*/CC = gcc/" Makefile + fi + sed -i "s/FC =.*/FC = gfortran/" Makefile + make + } + cd .. + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + # stream 内存带宽性能 + cd stream || exit 255 + ./stream_c.exe > tmp.txt 2>&1 + echo -n "stream_copy_best_rate:Copy 最佳速率:MB/s:" > /opt/performance_test_result.txt && cat tmp.txt |grep Copy|awk -F ' ' '{print $2}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get copy best rate" + echo -n "stream_scale_best_rate:Scale 最佳速率:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep Scale|awk -F ' ' '{print $2}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get scale best rate" + echo -n "stream_add_best_rate:Add 最佳速率:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep Add|awk -F ' ' '{print $2}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get add best rate" + echo -n "stream_triad_best_rate:Triad 最佳速率:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep Triad|awk -F ' ' '{print $2}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get triad best rate" + LOG_INFO "End to run test." +} + +# 后置处理,恢复测试环境 +function post_test() { + LOG_INFO "Start to restore the test environment." + rm -rf stream + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/performance-test/memory/sysbench_memory/oe_test_sysbench_memory.sh b/testcases/performance-test/memory/sysbench_memory/oe_test_sysbench_memory.sh new file mode 100644 index 0000000000000000000000000000000000000000..e42251564f051c1ac30310cb3f8835057b252168 --- /dev/null +++ b/testcases/performance-test/memory/sysbench_memory/oe_test_sysbench_memory.sh @@ -0,0 +1,73 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : sysbench test +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + + DNF_INSTALL "sysbench" + max_threads_num=$(nproc) + + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + # sysbench 顺序读内存带宽 + sysbench memory --memory-block-size=8K --memory-total-size=10G --memory-oper=read run >tmp.txt 2>&1 + CHECK_RESULT 0 0 0 "failed to run memory --memory-block-size=8K --memory-total-size=10G --memory-oper=read run" + echo -n "memory_read_in_order_rate:顺序读内存速率:MB/s:" > /opt/performance_test_result.txt && cat tmp.txt |grep transferred|awk -F '[()]' '{print $2}' |awk -F ' ' '{print $1}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get memory read in order rate" + # sysbench 随机读内存带宽 + sysbench memory --memory-block-size=8K --memory-total-size=10G --memory-oper=read --memory-access-mode=rnd run >tmp.txt 2>&1 + CHECK_RESULT 0 0 0 "failed to run sysbench memory --memory-block-size=8K --memory-total-size=10G --memory-oper=read --memory-access-mode=rnd run" + echo -n "memory_read_in_random_rate:随机读内存速率:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep transferred|awk -F '[()]' '{print $2}' |awk -F ' ' '{print $1}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get memory read in random rate" + # sysbench 顺序写内存带宽 + sysbench memory --memory-block-size=8K --memory-total-size=10G --memory-oper=write run >tmp.txt 2>&1 + CHECK_RESULT 0 0 0 "failed to run sysbench memory --memory-block-size=8K --memory-total-size=10G --memory-oper=write run" + echo -n "memory_write_in_order_rate:顺序写内存速率:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep transferred|awk -F '[()]' '{print $2}' |awk -F ' ' '{print $1}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get memory write in order rate" + # sysbench 随机写内存带宽 + sysbench memory --memory-block-size=8K --memory-total-size=10G --memory-oper=write --memory-access-mode=rnd run >tmp.txt 2>&1 + CHECK_RESULT 0 0 0 "failed to run sysbench memory --memory-block-size=8K --memory-total-size=10G --memory-oper=write --memory-access-mode=rnd run" + echo -n "memory_write_in_random_rate:随机写内存速率:MB/s:" >> /opt/performance_test_result.txt && cat tmp.txt |grep transferred|awk -F '[()]' '{print $2}' |awk -F ' ' '{print $1}' >> /opt/performance_test_result.txt + CHECK_RESULT 0 0 0 "failed to get memory write in random rate" + 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/performance-test/network/netperf_network/oe_test_netperf_network.sh b/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh new file mode 100644 index 0000000000000000000000000000000000000000..667842b3335119cade97b0e459e52e239b0c30d8 --- /dev/null +++ b/testcases/performance-test/network/netperf_network/oe_test_netperf_network.sh @@ -0,0 +1,77 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : netperf test +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + + DNF_INSTALL "netperf gcc make automake" + SSH_CMD "dnf install -y netperf" ${NODE2_IPV4} ${NODE2_PASSWORD} ${NODE2_USER} + systemctl stop iptables + systemctl stop firewalld + SSH_CMD "systemctl stop iptables" ${NODE2_IPV4} ${NODE2_PASSWORD} ${NODE2_USER} + SSH_CMD "systemctl stop firewalld" ${NODE2_IPV4} ${NODE2_PASSWORD} ${NODE2_USER} + + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to 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 +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 +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 + " > test_netperf.sh + chmod 755 test_netperf.sh + SSH_CMD "netserver -p 49999" ${NODE2_IPV4} ${NODE2_PASSWORD} ${NODE2_USER} + SSH_CMD "netstat -tlnp" ${NODE2_IPV4} ${NODE2_PASSWORD} ${NODE2_USER} | grep "netserver" + CHECK_RESULT $? 0 0 "netserver -p 49999 execution failed in server machine." + SLEEP_WAIT 3 + sh test_netperf.sh > tmp.txt 2>&1 + CHECK_RESULT $? 0 0 "failed to run netperf script." + + 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/performance-test/syscall/lmbench_syscall/oe_test_lmbench_syscall.sh b/testcases/performance-test/syscall/lmbench_syscall/oe_test_lmbench_syscall.sh new file mode 100644 index 0000000000000000000000000000000000000000..225879f675e18e268ac9114720415c17991586f2 --- /dev/null +++ b/testcases/performance-test/syscall/lmbench_syscall/oe_test_lmbench_syscall.sh @@ -0,0 +1,90 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : lmbench test +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "git libtirpc libtirpc-devel glibc-devel make gcc" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + cd /opt || exit 255 + git clone https://gitee.com/redrsoe2100/lmbench.git && ls ./|grep lmbench + cd /opt/lmbench || exit 255 + sed -i '/^LDLIBS=-lm/i cp /usr/include/netdb.h /usr/include/tirpc/rpc/' scripts/build + sed -i '/^LDLIBS=-lm/a CFLAGS="${CFLAGS} -I /usr/include/tirpc"' scripts/build + sed -i 's/^LDLIBS=-lm/LDLIBS="-lm -ltirpc"/' scripts/build + sed -i 's/arm\*/aarch64\*/' scripts/gnu-os + sed -i 's/lseek/lseek64/' src/disk.c + cd /opt/lmbench/src || exit 255 + { + if [[ "$COMPILER" == "clang" ]]; then + DNF_INSTALL clang + sed -i 's/CFLAGS=.*/CFLAGS="${CFLAGS} -I /usr/include/tirpc -Wno-error=implicit-int"/g' scripts/build + make CC=clang + else + make + fi + + } >>/dev/null 2>&1 + LOG_INFO "End to prepare the test environment." +} +function run_test() { + LOG_INFO "Start to run test." + cd /opt/lmbench/src || exit 1 + expect < tmp.txt + CHECK_RESULT $? 0 0 "Execute failed" + echo -n "syscall_time:系统调用时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Processor, Processes'|tail -n 1|awk -F ' ' '{print $5}' >> /opt/performance_test_result.txt + echo -n "stat_time:stat系统调用时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'Processor, Processes'|tail -n 1|awk -F ' ' '{print $7}' >> /opt/performance_test_result.txt + echo -n "select_100fd_latency:select系统调用处理100个文件描述符时延:ms:" >> /opt/performance_test_result.txt && cat tmp.txt |grep -A 5 'File & VM system latencies'|tail -n 1|awk -F ' ' '{print $10}' >> /opt/performance_test_result.txt + 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 "$@" \ No newline at end of file diff --git a/testcases/performance-test/syscall/unixbench_syscall/oe_test_unixbench_syscall.sh b/testcases/performance-test/syscall/unixbench_syscall/oe_test_unixbench_syscall.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe80f23d0898030a2070406ce18988878eda2240 --- /dev/null +++ b/testcases/performance-test/syscall/unixbench_syscall/oe_test_unixbench_syscall.sh @@ -0,0 +1,67 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/26 +# @License : Mulan PSL v2 +# @Desc : syscall performance test with unixbench +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + + DNF_INSTALL "git gcc clang make" + git clone https://code.osssc.ac.cn/oepkgs/os-test-framework/unixbench.git /opt/unixbench + cd /opt/unixbench && make all + unixbench_path="/opt/unixbench" + if [[ "$COMPILER" == "clang" ]]; then + sed -i 's/CC=gcc/CC=clang/g' Makefile + fi + max_threads_num=$(nproc) + + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + cd /opt/unixbench || exit 255 + chmod +x /opt/unixbench/pgms/multi.sh + chmod +x /opt/unixbench/pgms/gfx-11 + chmod +x /opt/unixbench/pgms/tst.sh + chmod +x ./Run + ./Run >tmp.txt 2>&1 + echo -n "syscall_overhead_performance_1_thread:单线程系统调用开销性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "System Call Overhead"|grep lps|head -n 1| awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + echo -n "syscall_overhead_performance_multi_thread:多线程系统调用性能:lps:" >> /opt/performance_test_result.txt && cat tmp.txt |grep "System Call Overhead"|grep lps|tail -n 1| awk -F ' ' '{print $4}' >> /opt/performance_test_result.txt + 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/system-test/compiler-test/csmith-test/oe_test_csmith-test.sh b/testcases/system-test/compiler-test/csmith-test/oe_test_csmith-test.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e08d488c27ee62e5f8a23ac9f0191e32d3cdf33 --- /dev/null +++ b/testcases/system-test/compiler-test/csmith-test/oe_test_csmith-test.sh @@ -0,0 +1,85 @@ +#!/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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/23 +# @License : Mulan PSL v2 +# @Desc : Compiler csmith +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "gcc gcc-* make cmake m4 clang git" + git clone https://gitee.com/devops_dev/csmith.git + SLEEP_WAIT 3 + mkdir -p /usr/local/csmith + cd csmith || exit 255 + cmake -DCMAKE_INSTALL_PREFIX=/usr/local/csmith . + make & make install + export PATH=$PATH:/usr/local/csmith/bin + failed_logs_dir=/tmp/oe_test_csmith/failed_cases/ + if [ -d "/tmp/os_test_csmith/failed_cases" ]; then + rm -rf "$failed_logs_dir" + fi + mkdir -p "$failed_logs_dir" + + LOG_INFO "End to prepare the test environment." +} + + + +function run_test() { + LOG_INFO "Start to run test." + for i in $(seq 1 100) + do + cfile="random$i.c" + csmith > "$cfile" + gcc "$cfile" -I/usr/local/csmith/include -o random_gcc + clang "$cfile" -I/usr/local/csmith/include -o random_clang + gcc_checksum=$(./random_gcc) + clang_checksum=$(./random_clang) + gcc_value=${gcc_checksum:11} + clang_value=${clang_checksum:11} + if [ "$gcc_value" = "$clang_value" ]; then + echo "${GREEN}Passed${NONE}" + ((passed += 1)) + else + echo "${RED}Failed${NONE}" + cp "$cfile" "$failed_logs_dir" + ((failed += 1)) + fi + ((total += 1)) + rm -rf "$cfile" random_gcc random_clang + done + CHECK_RESULT "$total" "$passed" 0 "Failed to run the test csmith_run.sh" + ls "$failed_logs_dir" + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + rm -rf csmith /usr/local/csmith /tmp/oe_test_csmith/failed_cases/ + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/system-test/compiler-test/dejagnu-test/oe_test_dejagnu-test.sh b/testcases/system-test/compiler-test/dejagnu-test/oe_test_dejagnu-test.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fbaac229d513dc61046577d41609e449e416e53 --- /dev/null +++ b/testcases/system-test/compiler-test/dejagnu-test/oe_test_dejagnu-test.sh @@ -0,0 +1,61 @@ +#!/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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/24 +# @License : Mulan PSL v2 +# @Desc : Compiler dejagnu +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 +source "$OET_PATH"/libs/locallibs/common_lib.sh + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "dejagnu git gcc gcc-g++ gcc-gfortran" + git clone https://gitee.com/openeuler/gcc.git + SLEEP_WAIT 3 + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + cd gcc/gcc/testsuite/ || exit 255 + runtest --tool gcc + CHECK_RESULT 0 0 0 "failed to run gcc testsuite." + cat gcc.sum + cat gcc.log + runtest --tool g++ + CHECK_RESULT 0 0 0 "failed to run g++ testsuite." + cat g++.sum + cat g++.log + runtest --tool gfortran + CHECK_RESULT 0 0 0 "failed to run gfortran testsuite." + cat gfortran.sum + cat gfortran.log + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + rm -rf gcc + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/system-test/compiler-test/jotai-benchmarks/oe_test_jotai-benchmarks.sh b/testcases/system-test/compiler-test/jotai-benchmarks/oe_test_jotai-benchmarks.sh new file mode 100644 index 0000000000000000000000000000000000000000..becc5e0b5bec930d2172cd45baccd4c64a5c82db --- /dev/null +++ b/testcases/system-test/compiler-test/jotai-benchmarks/oe_test_jotai-benchmarks.sh @@ -0,0 +1,112 @@ +#!/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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/23 +# @License : Mulan PSL v2 +# @Desc : Compiler jotai-benchmarks +# ############################################ +# shellcheck disable=SC2034,SC2154,SC1091 + + +source "${OET_PATH}"/libs/locallibs/common_lib.sh + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="120m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment." + DNF_INSTALL "gcc gcc-* git" + git clone https://gitee.com/devops_dev/jotai-benchmarks.git + cd jotai-benchmarks || exit 255 + if [ -d "./anghaLeaves_failure_log" ]; then + rm -rf anghaLeaves_failure_log + fi + if [ -d "./anghaMath_failure_log" ]; then + rm -rf anghaMath_failure_log + fi + failed=0 + passed=0 + total=0 + mkdir angha_leaves_failure_log + mkdir angha_math_failure_log + LOG_INFO "End to prepare the test environment." +} + +function run_test() { + LOG_INFO "Start to run test." + anghaleaves_array=() + while IFS= read -r -d $'\0' file; do + anghaleaves_array+=("$file") + done < <(find benchmarks/anghaLeaves -type f -print0) + anghamath_array=() + while IFS= read -r -d $'\0' file; do + anghamath_array+=("$file") + done < <(find benchmarks/anghaMath -type f -print0) + + for src in "${anghaleaves_array[@]}" + do + failed_log=./angha_leaves_failure_log/$(basename "$src").log + gcc "$src" -o "$src".out &> "$failed_log" + if [ ! -e "$src".out ]; then + echo "${RED}Compilation Error${NONE} $src" + ((failed += 1)) + else + "$src".out &>> "$failed_log" + if "$src".out 0 &>> ."$failed_log"; then + echo "${GREEN}Passed${NONE} $src" + rm -rf "$src".out "$failed_log" + ((passed += 1)) + else + echo "${RED}Test Run Failed${NONE} $src" + ((failed += 1)) + fi + fi + ((total += 1)) + done + for src in "${anghamath_array[@]}" + do + failed_log=./angha_math_failure_log/$(basename "$src").log + gcc "$src" -o "$src".out &> "$failed_log" + if [ ! -e "$src".out ]; then + echo "${RED}Compilation Error${NONE} $src" + ((failed += 1)) + else + "$src".out &>> "$failed_log" + if "$src".out 0 &>> "$failed_log"; then + echo "${GREEN}Passed${NONE} $src" + rm -rf "$src".out "$failed_log" + ((passed += 1)) + else + echo "${RED}Test Run Failed${NONE} $src" + ((failed += 1)) + fi + fi + ((total += 1)) + done + CHECK_RESULT "$total" "$passed" 0 "failed to run jotai-benchmarks cases" + + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "Start to restore the test environment." + rm -rf jotai-benchmarks angha_leaves_failure_log angha_math_failure_log + DNF_REMOVE "$@" + LOG_INFO "End to restore the test environment." +} + +main "$@" diff --git a/testcases/system-test/compiler-test/yarpgen-test/oe_test_yarpgen-test.sh b/testcases/system-test/compiler-test/yarpgen-test/oe_test_yarpgen-test.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7225baf123bc0db8be6c5017ba9e4befe124cbf --- /dev/null +++ b/testcases/system-test/compiler-test/yarpgen-test/oe_test_yarpgen-test.sh @@ -0,0 +1,111 @@ +#!/usr/bin/bash + +# Copyright (c) 2023. 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 : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : 2024/07/23 +# @License : Mulan PSL v2 +# @Desc : Compiler yarpen +# ############################################ +# shellcheck disable=SC2034 disable=SC2028 + +source "$OET_PATH"/libs/locallibs/common_lib.sh + +function config_params(){ + L0G_INFO "Start to config params of the case." + EXECUTE_T="2880m" + LOG_INFO "End to config params of the case." +} + +function pre_test() { + LOG_INFO "Start to prepare the test environment!" + DNF_INSTALL "tar git wget cmake gcc gcc-g++ clang" + git clone -b main https://gitee.com/devops_dev/yarpgen.git + cd yarpgen || exit 255 + mkdir build + cd build || exit 255 + cmake .. + make + if [ -d "./yarpgen_failure_log" ]; then + rm -rf yarpgen_failure_log + fi + if [ -d "./testdir" ]; then + rm -rf testdir + fi + mkdir yarpgen_failure_log + mkdir testdir && cd testdir || exit 255 + LOG_INFO "End to prepare the test environment!" +} + +function run_test() { + LOG_INFO "Start to run test." + for _ in $(seq 1 100) + do + string=$(../yarpgen) + pattern='[0-9]+' + dirname=seed_$(echo "$string" | grep -oE "$pattern") + cat init.h func.cpp driver.cpp > test_random.cpp + optlevel_array=(O0 O3) + result_array=() + touch log.txt + for optlevel in "${optlevel_array[@]}" + do + g++ -"$optlevel" test_random.cpp -o gcc_"$optlevel"_out >> log.txt + g++ -"$optlevel" test_random.cpp -o gcc_"$optlevel"_out &>> log.txt + if [ ! -e gcc_"$optlevel"_out ]; then + echo "${RED}Compilation Error${NONE} $dirname" + echo "Compilation Error" >> log.txt + else + ./gcc_"$optlevel"_out >> log.txt + if ./gcc_"$optlevel"_out &>> log.txt; then + mapfile -t result_array < <(./gcc_"$optlevel"_out) + echo "./gcc_${optlevel}_out : \n" >> log.txt + ./gcc_"$optlevel"_out >> log.txt + else + echo "${RED}Test Run Failed${NONE} $dirname" + echo "Test Run Failed" >> log.txt + fi + fi + done + if [ ${#result_array[@]} == 2 ]; then + if [ "${result_array[0]}" == "${result_array[1]}" ]; then + echo "${GREEN}Passed${NONE} $dirname" + rm -rf ./* + ((passed += 1)) + else + echo "${RED}Output Mismatch${NONE} $dirname" + echo "Output Mismatch" >> log.txt + mkdir ../yarpgen_failure_log/"$dirname"/ + mv ./* ../yarpgen_failure_log/"$dirname"/ + ((failed += 1)) + fi + else + echo "${RED}Test Error${NONE} $dirname" + echo "Test Error" >> log.txt + mkdir ../yarpgen_failure_log/"$dirname"/ + mv ./* ../yarpgen_failure_log/"$dirname"/ + ((failed += 1)) + fi + ((total += 1)) + done + CHECK_RESULT "$total" "$passed" 0 "failed to run yarpgen test." + LOG_INFO "End to run test." +} + +function post_test() { + LOG_INFO "start environment cleanup." + cd ../.. + DNF_REMOVE "$@" + 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 new file mode 100644 index 0000000000000000000000000000000000000000..92c6948c48888a398d5e6a7550e5f7afaa691590 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_bcm01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_can can_bcm01 can_bcm01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "can can_bcm01 can_bcm01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_filter.sh b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_filter.sh new file mode 100644 index 0000000000000000000000000000000000000000..7bf4b46b9069dd4e8633f6e0133f288d291d1082 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_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_can can_filter can_filter +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "can can_filter can_filter failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rcv_own_msgs.sh b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_rcv_own_msgs.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7869cf23cd2924f4171382acb354114fea4bf5c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_can/oe_test_ltp_can_can_rcv_own_msgs.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_can can_rcv_own_msgs can_rcv_own_msgs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "can can_rcv_own_msgs can_rcv_own_msgs failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..de5eda4f690e40952ede1b1b44a705771e9c0bb5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cap_bounds/oe_test_ltp_cap_bounds_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_cap_bounds 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 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" + CHECK_RESULT $? 1 0 "cap_bounds 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_commands/oe_test_ltp_commands_ar_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ar_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..9d774cf211e3bb8e610c10fd2e69e517d4b6f0d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ar_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_commands ar_sh export TCdat=$LTPROOT/testcases/bin; ar01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands ar_sh export TCdat=$LTPROOT/testcases/bin; ar01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_cp01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cp01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..996fd21e0936c94f892c29c40d68658c5103cf84 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cp01_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_commands cp01_sh cp_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 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" + CHECK_RESULT $? 1 0 "commands cp01_sh cp_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_commands/oe_test_ltp_commands_cpio01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cpio01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..595bacf992e0129fe2e90234b43b02287a797576 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_cpio01_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_commands cpio01_sh cpio_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 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" + CHECK_RESULT $? 1 0 "commands cpio01_sh cpio_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_commands/oe_test_ltp_commands_df01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_df01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..26ab0059be3c8ee12ec664d9517e2233713667de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_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_commands 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 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" + CHECK_RESULT $? 1 0 "commands 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_commands/oe_test_ltp_commands_du01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_du01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a1e2312fe25728166b20e88376ffc7c6f25dd85 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_du01_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_commands du01_sh du01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands du01_sh du01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_file01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_file01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..5967a915e92f201fcf94f67ec2fee16451e8d647 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_file01_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_commands file01_sh file01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands file01_sh file01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_gdb01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gdb01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..a828b1756ed7d04355e09ec4a80cec834351b41f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gdb01_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_commands gdb01_sh gdb01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands gdb01_sh gdb01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_gzip01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gzip01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f722c65b818159961416dce66323209f9d14b02 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_gzip01_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_commands gzip01_sh gzip_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 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" + CHECK_RESULT $? 1 0 "commands gzip01_sh gzip_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_commands/oe_test_ltp_commands_insmod01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_insmod01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ce5665f344b8359f4b57fe8a3a3e5c396c1ec56 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_insmod01_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_commands insmod01_sh insmod01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands insmod01_sh insmod01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_keyctl01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_keyctl01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..292bc28a6a26e5e592f4f2f1792b9169085943de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_keyctl01_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_commands keyctl01_sh keyctl01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands keyctl01_sh keyctl01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ld01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ld01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..c854deb0f352daa718234d8c9d80f0ea7d800b59 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ld01_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_commands ld01_sh ld01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands ld01_sh ld01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ldd01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ldd01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..79d741e4ca790f37f6e81acd1157d0097fe0ef67 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ldd01_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_commands ldd01_sh ldd01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands ldd01_sh ldd01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ln01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ln01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..7183a0b50d024790827d4969db3665b1ab9a2a66 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_ln01_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_commands ln01_sh ln_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 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" + CHECK_RESULT $? 1 0 "commands ln01_sh ln_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_commands/oe_test_ltp_commands_logrotate_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_logrotate_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..775ed53b8e7a4119c97bda4965c3fc7d37cbdeaf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_logrotate_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_commands logrotate_sh export TCdat=$LTPROOT/testcases/bin; logrotate_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 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" + CHECK_RESULT $? 1 0 "commands logrotate_sh export TCdat=$LTPROOT/testcases/bin; logrotate_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_commands/oe_test_ltp_commands_lsmod01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_lsmod01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..236ae12b7991ddd041d98446dfc1e29052b0cb49 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_lsmod01_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_commands lsmod01_sh lsmod01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands lsmod01_sh lsmod01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkdir01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkdir01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..85f162e62b093a534b337886a3867fdac5a4af79 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkdir01_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_commands mkdir01_sh mkdir_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 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" + CHECK_RESULT $? 1 0 "commands mkdir01_sh mkdir_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..3f62dafea3c5ee0963d403a190dd32cc98163d0f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_btrfs_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_commands mkfs01_btrfs_sh mkfs01.sh -f btrfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkfs01_btrfs_sh mkfs01.sh -f btrfs failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkfs01_ext2_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext2_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..0609e6e64ac0c28215dcb48f310442d997f6a5fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext2_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_commands mkfs01_ext2_sh mkfs01.sh -f ext2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkfs01_ext2_sh mkfs01.sh -f ext2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkfs01_ext3_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext3_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b5e0dd6136c2d28dca9cad047aca93250269ac8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext3_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_commands mkfs01_ext3_sh mkfs01.sh -f ext3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkfs01_ext3_sh mkfs01.sh -f ext3 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkfs01_ext4_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext4_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b187eef7e3d52765188d8a05af3deabb39106ce --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ext4_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_commands mkfs01_ext4_sh mkfs01.sh -f ext4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkfs01_ext4_sh mkfs01.sh -f ext4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkfs01_minix_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_minix_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ce90e09af2bba4019e50c26c1c67e89f3662398 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_minix_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_commands mkfs01_minix_sh mkfs01.sh -f minix +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkfs01_minix_sh mkfs01.sh -f minix failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkfs01_msdos_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_msdos_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3a6ed37379f5a8437a082466cca12ead9fc3066 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_msdos_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_commands mkfs01_msdos_sh mkfs01.sh -f msdos +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkfs01_msdos_sh mkfs01.sh -f msdos failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkfs01_ntfs_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ntfs_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..fde6e647df57013da62cee5f554d040f1dc86fe4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_ntfs_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_commands mkfs01_ntfs_sh mkfs01.sh -f ntfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkfs01_ntfs_sh mkfs01.sh -f ntfs failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkfs01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3b7b08c8b0867e11d691793980fbdf53e2933a8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_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_commands mkfs01_sh mkfs01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkfs01_sh mkfs01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkfs01_vfat_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_vfat_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c56f81f815c70023929be2165f0dcb0b40edf11 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_vfat_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_commands mkfs01_vfat_sh mkfs01.sh -f vfat +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkfs01_vfat_sh mkfs01.sh -f vfat failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkfs01_xfs_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_xfs_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..301141795d980193f262133b6124e4565e1c1af9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkfs01_xfs_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_commands mkfs01_xfs_sh mkfs01.sh -f xfs +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkfs01_xfs_sh mkfs01.sh -f xfs failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkswap01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkswap01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c4afbf040396c84865d32cd492330050d9e9d4a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mkswap01_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_commands mkswap01_sh mkswap01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands mkswap01_sh mkswap01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mv01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mv01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..5aa9f09550eeeca1541665e18a75ca5bf308c8e2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_mv01_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_commands mv01_sh mv_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 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" + CHECK_RESULT $? 1 0 "commands mv01_sh mv_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_commands/oe_test_ltp_commands_nm01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_nm01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..55b49f01955f7ae2c99cc868fbc467f2c7d25924 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_nm01_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_commands nm01_sh nm01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands nm01_sh nm01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shell_test01.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_shell_test01.sh new file mode 100644 index 0000000000000000000000000000000000000000..942dde3edd85d80a0e66e9634a883101a00af87e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_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_commands 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 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" + CHECK_RESULT $? 1 0 "commands 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_commands/oe_test_ltp_commands_sysctl01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d20b024a0a9ad11b47a28e43cbc1481d664871b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl01_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_commands sysctl01_sh sysctl01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands sysctl01_sh sysctl01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysctl02_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl02_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5f700e24a498807cf4d7d7fdb9fd428f3972df3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_sysctl02_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_commands sysctl02_sh sysctl02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands sysctl02_sh sysctl02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tar01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_tar01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..34e4c7d1f6f49ac6c235f689a390341c0b3e4230 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_tar01_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_commands tar01_sh tar_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 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" + CHECK_RESULT $? 1 0 "commands tar01_sh tar_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_commands/oe_test_ltp_commands_unshare01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unshare01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f3b7bfc735470dc8412d924bbfb7030508556f2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unshare01_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_commands unshare01_sh unshare01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands unshare01_sh unshare01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_unzip01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unzip01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..556409913423eb4fea15c49113aa759a94f72ad9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_unzip01_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_commands unzip01_sh unzip01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands unzip01_sh unzip01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_wc01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_wc01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..7406bd11317f64a63d905663b748be75311c8779 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_wc01_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_commands wc01_sh wc01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands wc01_sh wc01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_which01_sh.sh b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_which01_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfa262f361012f8ea5610caa476d4754c2adbb89 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_commands/oe_test_ltp_commands_which01_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_commands which01_sh which01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "commands which01_sh which01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cbe92e2278cc86e2c4c9699c20a8faa67da092a6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_clock_gettime03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers clock_gettime03 clock_gettime03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers clock_gettime03 clock_gettime03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c50228a39aac3f344e7cf9ce257f90566e830dc8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_clock_nanosleep03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers clock_nanosleep03 clock_nanosleep03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers clock_nanosleep03 clock_nanosleep03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a9e47474fe2307e754218d577b517c7d473e9892 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mesgq_nstest_clone mesgq_nstest -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mesgq_nstest_clone mesgq_nstest -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..21f3ec2cef596ce3659708a140a7d61db85f2ed6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mesgq_nstest_none mesgq_nstest -m none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mesgq_nstest_none mesgq_nstest -m none failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e492f810fed4bc766a493e00e0c0978c2c1547d3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mesgq_nstest_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mesgq_nstest_unshare mesgq_nstest -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mesgq_nstest_unshare mesgq_nstest -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..002242b18255e7977e38f8509778bb0b214f533d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mountns01 mountns01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mountns01 mountns01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1d6a21b7f4dff091938d5d84674136d539c40098 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mountns02 mountns02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mountns02 mountns02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..856e7153af966ebc972b60c09399644d7acf345a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mountns03 mountns03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mountns03 mountns03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ff70c39f7191ffb8bcd7c449827fce188eb68f1a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mountns04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mountns04 mountns04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mountns04 mountns04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ded085e5aa52fca5fc0eefd523e4fb40bef75dd7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_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_containers mqns_01 mqns_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 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" + CHECK_RESULT $? 1 0 "containers mqns_01 mqns_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..fcbf2b6aa253229466ae84bca8e673d28683de89 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mqns_01_clone mqns_01 -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mqns_01_clone mqns_01 -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ef3f8963c939405fb2166a0389602d69670b31c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_01_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mqns_01_unshare mqns_01 -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mqns_01_unshare mqns_01 -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..aa0d61db2daf280b2a10984d03949783af5b5b55 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_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_containers mqns_02 mqns_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 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" + CHECK_RESULT $? 1 0 "containers mqns_02 mqns_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..c4c0540ce4699bbf06099ee539c644dead38e363 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mqns_02_clone mqns_02 -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mqns_02_clone mqns_02 -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..de94c830f9e3aed101bacb36ee49c419b8f2cf6b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_02_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mqns_02_unshare mqns_02 -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mqns_02_unshare mqns_02 -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..52b7902acb6cdbc22a3b1a1fc5e999dd00218cd9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_03_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mqns_03_clone mqns_03 -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mqns_03_clone mqns_03 -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a20b5fdda28497d7ae667fa67e5845719c0c5941 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_03_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mqns_03_unshare mqns_03 -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mqns_03_unshare mqns_03 -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7cd0188d1406b702ba0e972fe21a9ace23648eb4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_04_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mqns_04_clone mqns_04 -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mqns_04_clone mqns_04 -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..873fbdad6ad9b25b962c70f213564f784f820206 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_mqns_04_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers mqns_04_unshare mqns_04 -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers mqns_04_unshare mqns_04 -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8c6c21d1bed88cd2488d543bd3cefb55e731139c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_msg_comm.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers msg_comm msg_comm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers msg_comm msg_comm failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b5b7c9d5675aa02b8abbe25f279e23940ccba163 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv4_ioctl.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_breakns_ip_ipv4_ioctl netns_breakns.sh -I +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_breakns_ip_ipv4_ioctl netns_breakns.sh -I failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..003e73c24faa56cd92ff805cd03503b329ca216f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv4_netlink.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_breakns_ip_ipv4_netlink netns_breakns.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_breakns_ip_ipv4_netlink netns_breakns.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..026191b0d5d4e989fcb590d57c7bc9f73a8471e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv6_ioctl.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_breakns_ip_ipv6_ioctl netns_breakns.sh -6I +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_breakns_ip_ipv6_ioctl netns_breakns.sh -6I failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..551829527243b6bcb2670e99e7e82142a061485a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ip_ipv6_netlink.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_breakns_ip_ipv6_netlink netns_breakns.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 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" + CHECK_RESULT $? 1 0 "containers netns_breakns_ip_ipv6_netlink netns_breakns.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_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 new file mode 100644 index 0000000000000000000000000000000000000000..11d470e30fbbb1d4ea705284ab7670151d4b007a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_ioctl.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_breakns_ns_exec_ipv4_ioctl netns_breakns.sh -eI +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_breakns_ns_exec_ipv4_ioctl netns_breakns.sh -eI failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..096e4e9fac5bdc2b5ae0cdd4ee2dcf59e890b504 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv4_netlink.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_breakns_ns_exec_ipv4_netlink netns_breakns.sh -e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_breakns_ns_exec_ipv4_netlink netns_breakns.sh -e failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..22f42a5ae871e8fe3db1ae11f86f861feddc0c2a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_ioctl.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_breakns_ns_exec_ipv6_ioctl netns_breakns.sh -6eI +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_breakns_ns_exec_ipv6_ioctl netns_breakns.sh -6eI failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..791c7ffd071c2fd048fdc12123dea54a1809340c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_breakns_ns_exec_ipv6_netlink.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_breakns_ns_exec_ipv6_netlink netns_breakns.sh -6e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_breakns_ns_exec_ipv6_netlink netns_breakns.sh -6e failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2ff89f60cfd90143af0e40c2ac51f58ee3583232 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv4_ioctl.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_comm_ip_ipv4_ioctl netns_comm.sh -I +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_comm_ip_ipv4_ioctl netns_comm.sh -I failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..52b625c4553f19e93866e477321c280cc5f770cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv4_netlink.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_comm_ip_ipv4_netlink netns_comm.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_comm_ip_ipv4_netlink netns_comm.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e869ace55b92df783eaefd58d633e70017cda238 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv6_ioctl.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_comm_ip_ipv6_ioctl netns_comm.sh -6I +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_comm_ip_ipv6_ioctl netns_comm.sh -6I failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9f3dec16afe34d0dec7240b4fc7d3fe1cf3149ae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ip_ipv6_netlink.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_comm_ip_ipv6_netlink netns_comm.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 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" + CHECK_RESULT $? 1 0 "containers netns_comm_ip_ipv6_netlink netns_comm.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_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 new file mode 100644 index 0000000000000000000000000000000000000000..d4ac04e8a3be1269bff1910aa48df87e5ab54f00 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv4_ioctl.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_comm_ns_exec_ipv4_ioctl netns_comm.sh -eI +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_comm_ns_exec_ipv4_ioctl netns_comm.sh -eI failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..3a39480eb5539747ae694b978b3bc195f26f248c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv4_netlink.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_comm_ns_exec_ipv4_netlink netns_comm.sh -e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_comm_ns_exec_ipv4_netlink netns_comm.sh -e failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2a79ebb9cb355140ec8ac41643d64efba078ca03 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv6_ioctl.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_comm_ns_exec_ipv6_ioctl netns_comm.sh -6eI +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_comm_ns_exec_ipv6_ioctl netns_comm.sh -6eI failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..824102efdb0084644df3388eee38da4704a4e5e7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_comm_ns_exec_ipv6_netlink.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_comm_ns_exec_ipv6_netlink netns_comm.sh -6e +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_comm_ns_exec_ipv6_netlink netns_comm.sh -6e failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0cf865fe87779f38743773f707cd83257552baec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_netlink.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_netlink netns_netlink +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_netlink netns_netlink failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..99dae082769aa7c1412fbb98c2f5969ef84152ac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_netns_sysfs.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers netns_sysfs netns_sysfs.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers netns_sysfs netns_sysfs.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..822f05bd9c4dccc16994a84e13d7ebdab538bc43 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns01 pidns01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns01 pidns01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c08f9882fdb4ae3b54499891f2498e31c4a4f116 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns02 pidns02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns02 pidns02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..86117d96302b11f3ee4c22e718910bc23238fa5b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns03 pidns03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns03 pidns03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..fa1410e19594fd693eba544b7a9f5a21535934b4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns04 pidns04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns04 pidns04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cd746a6014f319d19c7a32380f0fe6f097e7c3e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns05 pidns05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns05 pidns05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e632e8f6cf56689475a93c770ebaaafe3f8de809 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns06 pidns06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns06 pidns06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..600f8bed5736a2a18f56acdedc9719932d44d7a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns10 pidns10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns10 pidns10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1fa7dd4794efbe3ed748f0c1a8e4f4ac51b1e6ae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns12 pidns12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns12 pidns12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6f26e5e51fc024467a93381f77cbba5c223edcae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns13 pidns13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns13 pidns13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8656a4a42f3db5b526911968a30d72c2f4da9b71 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns16 pidns16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns16 pidns16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7a25b1969a5f8bf9dd85b154c54513dbbb24cbf0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns17 pidns17 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns17 pidns17 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..068d031d11ba0ff41fbec2b0c673cde6b27c9d22 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns20 pidns20 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns20 pidns20 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..171e8bbe6df88fd9e34e99625b324df2d52064b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns30 pidns30 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns30 pidns30 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7eb5b5e18b42d0713d9e114c4899f5b8691bde92 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns31 pidns31 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns31 pidns31 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..63a90eaa645577ec7b3c13873aa7359e16f69ccf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_pidns32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers pidns32 pidns32 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers pidns32 pidns32 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6d2712cce0a50be0c31bd6657754fbb0240aafe2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_comm.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers sem_comm sem_comm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers sem_comm sem_comm failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8104065b79f794686c3fe89b22c63e82f902a38c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers sem_nstest_clone sem_nstest -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers sem_nstest_clone sem_nstest -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..35f1fc1a63146762a6d47f0beaa48573bcdcf5a7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers sem_nstest_none sem_nstest -m none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers sem_nstest_none sem_nstest -m none failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..13c42b5799225c7be0aacf5cdb4bee1059706e27 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sem_nstest_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers sem_nstest_unshare sem_nstest -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers sem_nstest_unshare sem_nstest -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0a3cc71779bd9f63e78769d03e6004804d8e9634 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers semtest_2ns_clone semtest_2ns -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers semtest_2ns_clone semtest_2ns -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8d55bb500ec57f6b5ecebcac95c3c43bc0f900e9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers semtest_2ns_none semtest_2ns -m none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers semtest_2ns_none semtest_2ns -m none failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b7f2d98a5e2b44fc4570ab5499b51e97e3fdf4b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_semtest_2ns_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers semtest_2ns_unshare semtest_2ns -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers semtest_2ns_unshare semtest_2ns -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1fb1fe70bc6f7bb99711fc8130ab500117191f46 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shm_comm.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers shm_comm shm_comm +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers shm_comm shm_comm failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bb3a66f428429863f0694296895f749fa9fcad41 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers shmem_2nstest_clone shmem_2nstest -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers shmem_2nstest_clone shmem_2nstest -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bef7b0a4b1f820636d2c37b3cf170aed49518124 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers shmem_2nstest_none shmem_2nstest -m none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers shmem_2nstest_none shmem_2nstest -m none failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..44c958e6114769d5211684bee6e43d1bfed2bd2f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmem_2nstest_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers shmem_2nstest_unshare shmem_2nstest -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers shmem_2nstest_unshare shmem_2nstest -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c9a4e97bddaa81725a2134b06a169402fec4c240 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers shmnstest_clone shmnstest -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers shmnstest_clone shmnstest -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f5ddc014f851ce8c6f9a22f6c0b903fc143840f0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers shmnstest_none shmnstest -m none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers shmnstest_none shmnstest -m none failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..befe8e85a3da57278c79a8b75f6ebc1353183f16 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_shmnstest_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers shmnstest_unshare shmnstest -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers shmnstest_unshare shmnstest -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..920a624930182fbe7b1d4c1344a5bbd3e74ba8ae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_sysinfo03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers sysinfo03 sysinfo03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers sysinfo03 sysinfo03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..135654d79fc84f3d59909fdae29558b53d0cc1f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_timens01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers timens01 timens01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers timens01 timens01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4be65f9b859a2e6ee25a01fce0a404619715863b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_timerfd04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers timerfd04 timerfd04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers timerfd04 timerfd04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f7b6d6f74b7301e4d7da07fd4600cd6432cc6fa2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers userns01 userns01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers userns01 userns01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..efba6e1fb805457aa6e81795c140414edcd61715 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers userns02 userns02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers userns02 userns02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d2df215b137b38e7b6560ee4a8de2cc202710924 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers userns03 userns03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers userns03 userns03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0970083c85f8135125ce0f074240fcca7fa4002a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers userns04 userns04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers userns04 userns04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..64eb69a11298d49b11e3472065bd9c58a0be8b03 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers userns05 userns05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers userns05 userns05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..47873f9069fbe85039f25d1bfec5c35818ffca8b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers userns06 userns06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers userns06 userns06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5f250ba28f36906c9d2da027f53cbc8a5b45c623 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers userns07 userns07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers userns07 userns07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b6936d2d618afa9e7a9961f2d9fe4df4df20ffb7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_userns08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers userns08 userns08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers userns08 userns08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4f599f063f6706c9b30955d19b68a2db026b28ad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers utsname01 utsname01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers utsname01 utsname01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e060dc55f9fb6eac63e2a7a48486a7eff94bf0b4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers utsname02 utsname02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers utsname02 utsname02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..975b2bd7a9cce4df7020c53112a12a5d33360099 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname03_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers utsname03_clone utsname03 -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers utsname03_clone utsname03 -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..95ec58742deaa4541f36bae1a867b680f0debb92 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname03_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers utsname03_unshare utsname03 -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers utsname03_unshare utsname03 -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..fd7166dc5fd831e8ef36d4cea7b2b354dc9bf433 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname04_clone.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers utsname04_clone utsname04 -m clone +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers utsname04_clone utsname04 -m clone failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0c907eb310d4d9f11f2fc032880af7871bdfe046 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_containers/oe_test_ltp_containers_utsname04_unshare.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_containers utsname04_unshare utsname04 -m unshare +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "containers utsname04_unshare utsname04 -m unshare failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..582d5508f5de94360d14e9727ebf756cfdff5e66 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup cgroup_regression_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup cgroup_regression_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0d25ccfb655a6d21e344203165b3e59c1865c4f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_core01 cgroup_core01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_core01 cgroup_core01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..62ee64d4402740f4c63b695804674ec9e3ad15d7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_core02 cgroup_core02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_core02 cgroup_core02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..31d24c2c07d910a3be5315d04063bacb29efb326 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_core03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_core03 cgroup_core03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_core03 cgroup_core03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b8f36a3f85beaa7ab3d23731d0c1a6e11cd5e088 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_blkio.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_blkio cgroup_fj_function.sh blkio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_blkio cgroup_fj_function.sh blkio failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cb112bed0c20c5059b838868ac24f82c57456567 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpu.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_cpu cgroup_fj_function.sh cpu +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_cpu cgroup_fj_function.sh cpu failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9918a04a5bfe340439de8f9c64c85fa22eff1851 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpuacct.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_cpuacct cgroup_fj_function.sh cpuacct +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_cpuacct cgroup_fj_function.sh cpuacct failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ddc384bf2770f3f6168f7c0e305fc7ceec8ac1b5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_cpuset.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_cpuset cgroup_fj_function.sh cpuset +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_cpuset cgroup_fj_function.sh cpuset failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a5f5cae688a6e7b1ef805c72171d35798be1d085 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_debug.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_debug cgroup_fj_function.sh debug +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_debug cgroup_fj_function.sh debug failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..607d4498225ab0dfe1da579084391a8d5f23a907 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_devices.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_devices cgroup_fj_function.sh devices +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_devices cgroup_fj_function.sh devices failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..83126ba2340c3a8f364d612be239faf0dce05615 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_freezer.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_freezer cgroup_fj_function.sh freezer +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_freezer cgroup_fj_function.sh freezer failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cc4dac5c869f1c7442dbad82ae6e8be0ef5cfa4f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_hugetlb.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_hugetlb cgroup_fj_function.sh hugetlb +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_hugetlb cgroup_fj_function.sh hugetlb failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..caf0cd96df378b2366172b0afa5176b2059d8164 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_memory.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_memory cgroup_fj_function.sh memory +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_memory cgroup_fj_function.sh memory failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6bd9c79f304dfdbaedd25969f2682f029141041b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_net_cls.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_net_cls cgroup_fj_function.sh net_cls +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_net_cls cgroup_fj_function.sh net_cls failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1ed864bb57541271b41226217656dc24bbfb9a6f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_net_prio.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_net_prio cgroup_fj_function.sh net_prio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_net_prio cgroup_fj_function.sh net_prio failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f07e9566052c87dc44c7f6daa1b7f459655a2ef7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_function_perf_event.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_function_perf_event cgroup_fj_function.sh perf_event +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_fj_function_perf_event cgroup_fj_function.sh perf_event failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6587f4be1a7a1520f8e6e3e4349a3160a3201a59 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_10_3_each cgroup_fj_stress.sh blkio 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..05c49c1796b3b0c0806581a0a4b20f43cd86e9d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_10_3_none cgroup_fj_stress.sh blkio 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..62b724a9f9e1c88432a0abd186b06a76dd6df0db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_10_3_one cgroup_fj_stress.sh blkio 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d5025d09cb1b0e3172dbca21aac0913c34ae9890 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_1_200_each cgroup_fj_stress.sh blkio 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..42f42b10de4b7ef17b4a7500df5120a9f5f15296 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_1_200_none cgroup_fj_stress.sh blkio 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5d00709a0ac2ad46a0a49925d49b1a12c797fc06 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_1_200_one cgroup_fj_stress.sh blkio 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9eccb10b273d4b59285f720fed6d0ee90304ce32 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_200_1_each cgroup_fj_stress.sh blkio 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0ff9f80cefcdae9ca97178efd19296fd54fafd1b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_200_1_none cgroup_fj_stress.sh blkio 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cec7d489ed4ebae4da33cf164619ea16e7a3cbe4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_200_1_one cgroup_fj_stress.sh blkio 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..16df732a1af6bb0bad0d95138823259bd2113ec0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_2_2_each cgroup_fj_stress.sh blkio 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e046fc0288585712d4948dbd94f12e25452630bf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_2_2_none cgroup_fj_stress.sh blkio 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b2f712cdbb7d8b442197caee914f07f42e6ca6ad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_2_2_one cgroup_fj_stress.sh blkio 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a262d9d6b0f359a700ee2a45c7c6a7b344332d28 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_2_9_each cgroup_fj_stress.sh blkio 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7a5a1dabc2b3280652b411fdc6790fb598e79a27 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_2_9_none cgroup_fj_stress.sh blkio 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..88ac72d1d5dcd714af2e6e9d557eae4ee34d795b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_2_9_one cgroup_fj_stress.sh blkio 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bebce163bb4232efea5ca0bbcb766d4150545b51 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_3_3_each cgroup_fj_stress.sh blkio 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..dda9319a1f31ca4abe49f00eb58999e9aeebb6af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_3_3_none cgroup_fj_stress.sh blkio 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c37e05c24bf5451cdc57aa6116b054e101a94690 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_3_3_one cgroup_fj_stress.sh blkio 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..110b0d18b35d3c3409349cfde4a723661e7bc2a8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_4_4_each cgroup_fj_stress.sh blkio 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..05f5c14d4473e8fbc16141090a30a1e4c3b81218 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_4_4_none cgroup_fj_stress.sh blkio 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d5f3fba87381f4eb2482a7727c3cb30b35b0a999 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_blkio_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_blkio_4_4_one cgroup_fj_stress.sh blkio 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2fcbb1808a5eb8757d6545c18b35a7d6ca64147c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_10_3_each cgroup_fj_stress.sh cpu 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..08dc7558b0b81f2fcf6506fe2297a8c4e8095573 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_10_3_none cgroup_fj_stress.sh cpu 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a6930accfdff1df9eebb6f92f89fc560855dc600 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_10_3_one cgroup_fj_stress.sh cpu 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..dc72b8fb0517c7611877fcfbbfad894abc90f48c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_1_200_each cgroup_fj_stress.sh cpu 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b5eed7899f499595f3e0634722e269ae186bb632 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_1_200_none cgroup_fj_stress.sh cpu 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..393cf4115b21e0998ae5a972cce606c9c1c81f7c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_1_200_one cgroup_fj_stress.sh cpu 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..423941a31426a0746bf79557412b29f896cf1b20 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_200_1_each cgroup_fj_stress.sh cpu 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..68fef1e304dddad38a94c8dfdee9774eb5417cc7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_200_1_none cgroup_fj_stress.sh cpu 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e4e0dbfe404b67f9a8e580f971a9030273171720 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_200_1_one cgroup_fj_stress.sh cpu 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4c35ee7754f61abf15a95babe1efc0a569e8a108 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_2_2_each cgroup_fj_stress.sh cpu 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5a0aff4f6aedb9096f9490ada4405e33b6cb27a8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_2_2_none cgroup_fj_stress.sh cpu 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cb756ec779286b0924eae312d0ad848082e78bc8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_2_2_one cgroup_fj_stress.sh cpu 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..857be536219e116fd53d5911315f0be39699eef1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_2_9_each cgroup_fj_stress.sh cpu 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f0bbe2356c9e490222f996b3639f90774c76f03a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_2_9_none cgroup_fj_stress.sh cpu 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a1a98b993172bdcd3939aac5d17654699ec8239a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_2_9_one cgroup_fj_stress.sh cpu 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ddd6994346aeb3a8d0c04c1bf018a5389d162745 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_3_3_each cgroup_fj_stress.sh cpu 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4e241e6f693a0b566b8043170d07480f422e609b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_3_3_none cgroup_fj_stress.sh cpu 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..51d7390a11eba17601ddc8aa73516a94153cde97 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_3_3_one cgroup_fj_stress.sh cpu 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c4db36fc2099d8269c7d9b79e0538f454ab79b30 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_4_4_each cgroup_fj_stress.sh cpu 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e8c063b01798d0d9f26b187dfc186ecc43713d83 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_4_4_none cgroup_fj_stress.sh cpu 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cdc5b3ed5690494a0212942a82dcb522a4814152 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpu_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpu_4_4_one cgroup_fj_stress.sh cpu 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..72297dca3796e6203f1b83cc296034092b2e40fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_10_3_each cgroup_fj_stress.sh cpuacct 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cb3375c4c446992c2ffa837338075176b41efe4b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_10_3_none cgroup_fj_stress.sh cpuacct 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..dfc8e9ac1efe208a12589f5a3b03ab45f78ea75a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_10_3_one cgroup_fj_stress.sh cpuacct 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ed60c6c534b7be77ba493ca335c9ee2bdbe8a5df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_1_200_each cgroup_fj_stress.sh cpuacct 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a158ed3e2a2c96f92a860a0b9d83193e24d263f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_1_200_none cgroup_fj_stress.sh cpuacct 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f3fe1f8579209ac87c19485c69c876bdc46a543f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_1_200_one cgroup_fj_stress.sh cpuacct 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b0f8be1a379de704fb5e50dfc970156b510b194a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_200_1_each cgroup_fj_stress.sh cpuacct 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6eba64976fab95edd24380660ae7fff7933db855 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_200_1_none cgroup_fj_stress.sh cpuacct 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0f3dba79de7f75d5c5773fa9355017df2b996570 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_200_1_one cgroup_fj_stress.sh cpuacct 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9d10f8a616b0e9104bce771731bcd8d3101c5a5b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_2_2_each cgroup_fj_stress.sh cpuacct 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..dc9de8c06558da92543fa3c9301786b547c10898 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_2_2_none cgroup_fj_stress.sh cpuacct 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8208eb9b40fd6e021b8c6c8643f58dc90f26512c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_2_2_one cgroup_fj_stress.sh cpuacct 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d9f109f4397d86172f4cbce691da9b9b01685fc8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_2_9_each cgroup_fj_stress.sh cpuacct 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..824d1cb49507d23f4780eec97dde7dbe174a227c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_2_9_none cgroup_fj_stress.sh cpuacct 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..067629038a7be3b7ffcced0f7a790405b54395db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_2_9_one cgroup_fj_stress.sh cpuacct 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bc015db79bfcef8c91260da4c907a708d3538bf0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_3_3_each cgroup_fj_stress.sh cpuacct 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9dafca62be35674925ad35d9ba5c3082a73dfcce --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_3_3_none cgroup_fj_stress.sh cpuacct 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2a364ef230a4c424fe38fe5d921a32cc208624a3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_3_3_one cgroup_fj_stress.sh cpuacct 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b62ee134317d102993e77803ac0cbb16f1356fba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_4_4_each cgroup_fj_stress.sh cpuacct 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..fe9266f489a59b32a32a181fce35bc2b08565c80 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_4_4_none cgroup_fj_stress.sh cpuacct 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cce1dafb8df9de97f714b685916691155deefa70 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuacct_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuacct_4_4_one cgroup_fj_stress.sh cpuacct 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c1f948b79c45a7a1e60296d2b983d8854f841f97 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_10_3_each cgroup_fj_stress.sh cpuset 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c8b04fffaa81a89283880518edf84ec2f3de972c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_10_3_none cgroup_fj_stress.sh cpuset 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cd2487e7d895876f7a0df778ef29a581dcc06086 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_10_3_one cgroup_fj_stress.sh cpuset 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d7f59a4a13c894d32a7031d2d586b27dd8672897 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_1_200_each cgroup_fj_stress.sh cpuset 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..65e01262e02d3978ae591cd6624f8bd76dc8711a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_1_200_none cgroup_fj_stress.sh cpuset 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..948eeb2ff8d5833bd922cc08e65b854351252b40 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_1_200_one cgroup_fj_stress.sh cpuset 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b5e477cd6b7c1355a8754501a42184860dc61534 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_200_1_each cgroup_fj_stress.sh cpuset 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2515fd661bf83b37030ec04bf4b941d1a4b73824 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_200_1_none cgroup_fj_stress.sh cpuset 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..88532946cb7d16ec9c71657daf63d29cdbc16d48 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_200_1_one cgroup_fj_stress.sh cpuset 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c837aadff65ecaa8b74be48b3c2c9a39ef13d747 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_2_2_each cgroup_fj_stress.sh cpuset 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1c6866e64d1783a0932bbe0debdaa62ae688e7dd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_2_2_none cgroup_fj_stress.sh cpuset 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..69df212be9478ff787ddc96cd650a6c33c6d14c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_2_2_one cgroup_fj_stress.sh cpuset 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a9f2b1cbbd406610f6dbbf3b74d9df1970d1769c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_2_9_each cgroup_fj_stress.sh cpuset 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6689f38b1cf02dac10c0921dc889e797a6edd57d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_2_9_none cgroup_fj_stress.sh cpuset 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..3353594a0895d7703536dd6f3ff34192f465431c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_2_9_one cgroup_fj_stress.sh cpuset 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ad1bf7bb1c61a4431677139509c1be8e5af27866 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_3_3_each cgroup_fj_stress.sh cpuset 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a0f1f2b944c34dfbd47bd5f10f8e59e8d224d353 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_3_3_none cgroup_fj_stress.sh cpuset 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d32cf4a4fea7fed5f3b667f3c8ef0b28193a1a63 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_3_3_one cgroup_fj_stress.sh cpuset 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e7dcb7486418817d79fe3f6ebd55c60e877e485f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_4_4_each cgroup_fj_stress.sh cpuset 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1f70d2e95e734868b7a582922c6ddb2e276f5a27 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_4_4_none cgroup_fj_stress.sh cpuset 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2eea68867b5cfd03e7a37d778330735b27bf7881 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_cpuset_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_cpuset_4_4_one cgroup_fj_stress.sh cpuset 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..168d0c1c91d9ac46ec0f7a4979c727345649c21c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_10_3_each cgroup_fj_stress.sh debug 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0aca1754b2eea7b0c330114f1bd309c622ca50b8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_10_3_none cgroup_fj_stress.sh debug 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5bf9025c5d2a49b77397b57a5827321018936078 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_10_3_one cgroup_fj_stress.sh debug 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d00689b1d4711df33b7addfe502135ed17a87f70 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_1_200_each cgroup_fj_stress.sh debug 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..116c65fccb6a03807eb57ae7f9e889b5cfcf9501 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_1_200_none cgroup_fj_stress.sh debug 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e70f4d419dce0b57077e94c80f95156ec6cc908a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_1_200_one cgroup_fj_stress.sh debug 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..721dc21f5ae5c76a870b41bde3c97dc1763f13f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_200_1_each cgroup_fj_stress.sh debug 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8b8ad7c388736626383ab6651e24d8369a213cae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_200_1_none cgroup_fj_stress.sh debug 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9c66f68f7de200ceb8e179a095e4437a4aa804b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_200_1_one cgroup_fj_stress.sh debug 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..fbde18f02dc45dfd65fd53970709cb0fed2a891d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_2_2_each cgroup_fj_stress.sh debug 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bfb9ef7263efcd4ea66ece8733637b97485f58f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_2_2_none cgroup_fj_stress.sh debug 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6aa741b6044d76d3bc2cc71818a609fa84f12211 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_2_2_one cgroup_fj_stress.sh debug 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8a8a7be5b5537d08b7c0cc93db65f77909f652a2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_2_9_each cgroup_fj_stress.sh debug 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..68d48b5e03eae95db9088680d5621493f0c11e90 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_2_9_none cgroup_fj_stress.sh debug 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ba7925e525a3f3d30ad53a2b898a32721da647b9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_2_9_one cgroup_fj_stress.sh debug 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..08a01ccc8908bb2c9c74f56919fa8681ac622841 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_3_3_each cgroup_fj_stress.sh debug 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7db1c4541ed059fc5307f4d36adadbb3b05a93c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_3_3_none cgroup_fj_stress.sh debug 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c27122539eb06122d8c2393f297bb1585df32046 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_3_3_one cgroup_fj_stress.sh debug 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1a2c73ee32014b571152d100dc7d753c285bb00a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_4_4_each cgroup_fj_stress.sh debug 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..96ce63d71e5725d5f6814ade2eaa6a29aeea9a89 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_4_4_none cgroup_fj_stress.sh debug 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..353015ba593e07ccaab83e617c271fc5a5361a18 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_debug_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_debug_4_4_one cgroup_fj_stress.sh debug 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..3a49c70e7165714f433d12af5d42631f425029bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_10_3_each cgroup_fj_stress.sh devices 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d6a33d7e6b00e5f395dc7d9bedbaa5533b8f3465 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_10_3_none cgroup_fj_stress.sh devices 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d89c9821f52a1a1c3d8e17ba1ffda38d218e1cbf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_10_3_one cgroup_fj_stress.sh devices 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f3e9bb8a66bfb565718d8fcca1279ece2c1ad1c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_1_200_each cgroup_fj_stress.sh devices 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..86216c3b5dc19583ac83d272465551decf65bea1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_1_200_none cgroup_fj_stress.sh devices 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5614ba65ddf1df9060d2b6c8669d4c0286b02f07 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_1_200_one cgroup_fj_stress.sh devices 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d69834a64d74b4156bcebad2c171d3248b727d9f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_200_1_each cgroup_fj_stress.sh devices 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..85009da101a85b56e710f514f4f9dc9ebc4dd74d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_200_1_none cgroup_fj_stress.sh devices 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0dd42680c0579515b70777a88f72838c9a3e0a27 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_200_1_one cgroup_fj_stress.sh devices 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7e4eca625795bb531936a0e0d55f09202d4b6731 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_2_2_each cgroup_fj_stress.sh devices 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f17f7bab788991e3f1768a94c1374ca5fc86ce68 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_2_2_none cgroup_fj_stress.sh devices 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..edbde8d7ff5d172ae60b9073676a255777e58584 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_2_2_one cgroup_fj_stress.sh devices 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4b40e9f7fed4ac51211348aae2705a6e19c09fd3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_2_9_each cgroup_fj_stress.sh devices 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f5a475e02020d9dc0e0b7f357b5543a4d109596b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_2_9_none cgroup_fj_stress.sh devices 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..880af6e82e2fc5261573cc993f4334e10dd1a98e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_2_9_one cgroup_fj_stress.sh devices 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..eefad6cfa91df1a4fc741abd0d0c452a6eb828b3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_3_3_each cgroup_fj_stress.sh devices 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..29c872a9f7e43e159dcb74ba274b444fb4d5c9f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_3_3_none cgroup_fj_stress.sh devices 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4816325ca0a039c7362817a7548bbdf35ffed6da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_3_3_one cgroup_fj_stress.sh devices 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7a04fdf5ce8979856a77ab2839d8df8c02c25629 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_4_4_each cgroup_fj_stress.sh devices 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9da44ed791fe819587aca7b460d4e6c3ca7f0c00 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_4_4_none cgroup_fj_stress.sh devices 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c78f54a573994cd1db4592f45bdde77051b23033 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_devices_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_devices_4_4_one cgroup_fj_stress.sh devices 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..70b841ed6b84001c974324748fbe6ae2f85037c1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_10_3_each cgroup_fj_stress.sh freezer 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..87292a527d6ba130d328d0bd5311ba477d77d7e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_10_3_none cgroup_fj_stress.sh freezer 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f7e39bc5574d03e7d0d3e6ca8ebfc5274e55f0f6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_10_3_one cgroup_fj_stress.sh freezer 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..46072646908f8fa2caee492dd2f3d9945ee7a82b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_1_200_each cgroup_fj_stress.sh freezer 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c40f3d795f97b78b386bf0ded3ee0ceee31b24c1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_1_200_none cgroup_fj_stress.sh freezer 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c39870259d0fbff715804b6dee23d673bae1838c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_1_200_one cgroup_fj_stress.sh freezer 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..909ed1394927d8b22873ed8b3d9877024776335d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_200_1_each cgroup_fj_stress.sh freezer 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c167ea12823e7ba0d9337e30a8bced4f222cc2cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_200_1_none cgroup_fj_stress.sh freezer 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a4de8570a64990819d6e42238a6fda475211502e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_200_1_one cgroup_fj_stress.sh freezer 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..dd7d6c8c630abc2f6699923eb2a523460b5490f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_2_2_each cgroup_fj_stress.sh freezer 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f64615cf2bedf47f34bef438108aa331ee8ed29c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_2_2_none cgroup_fj_stress.sh freezer 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bfaf60ff2ff5e30956b2edbd08607fa51fda01d7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_2_2_one cgroup_fj_stress.sh freezer 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..75d1bc3e4406252446b82d6864c9ca68c2e92a8d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_2_9_each cgroup_fj_stress.sh freezer 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b9f856eea45495b961a527307dc45624c8de1287 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_2_9_none cgroup_fj_stress.sh freezer 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7fefd59a2a9fc354efebc86f3e86cedcdaaafb87 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_2_9_one cgroup_fj_stress.sh freezer 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f87644263d5fdbe0f8f5d41b9a765ec0baa9569c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_3_3_each cgroup_fj_stress.sh freezer 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..53f0d647ccb00e5a035284a582e52493c9a520d7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_3_3_none cgroup_fj_stress.sh freezer 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4e3a345812723adc0b133b38c47d0e9fc638fbe5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_3_3_one cgroup_fj_stress.sh freezer 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5b1d211e91808d045595f9effd5581c0d75d4a94 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_4_4_each cgroup_fj_stress.sh freezer 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..45405fa26e0afd6ce1522454f3e5b482deb80b72 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_4_4_none cgroup_fj_stress.sh freezer 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..496d119fc6f2ff1edf3d991bfb478a2be143a525 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_freezer_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_freezer_4_4_one cgroup_fj_stress.sh freezer 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5ad30a928c3bef5981af915c8f08d8275c7f1972 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_10_3_each cgroup_fj_stress.sh hugetlb 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..135754d493421b8df9e61ff5cb8a72bace7c85cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_10_3_none cgroup_fj_stress.sh hugetlb 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0c6f23d2f94ff8d38c77fd355f2d69e8a8e4e852 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_10_3_one cgroup_fj_stress.sh hugetlb 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4c88c5c912f520e9767156a876b9add872dd69f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_1_200_each cgroup_fj_stress.sh hugetlb 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cebdd5e19b16bfb4c7714a10fde34444a351afa5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_1_200_none cgroup_fj_stress.sh hugetlb 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..851d3221ffb1b2a7a936d1a136707ce5fa5a503b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_1_200_one cgroup_fj_stress.sh hugetlb 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6b8b20471466fc2f71270c4b5cb714fb9ea62a35 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_200_1_each cgroup_fj_stress.sh hugetlb 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2f090b091b4bfca95c645a8c3c74f3eca54b9f30 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_200_1_none cgroup_fj_stress.sh hugetlb 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..eb34b73b6f42b4765873c4c659b0b662c571bbb0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_200_1_one cgroup_fj_stress.sh hugetlb 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..78c7b15cacb2131f54c69d024cf8a7a62afff9af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_2_2_each cgroup_fj_stress.sh hugetlb 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f6a530cbc0dd6ebcb0319e667dd9c8d73c047ae1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_2_2_none cgroup_fj_stress.sh hugetlb 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bc6096aa2491829b7010cfd0cb2f1718818379f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_2_2_one cgroup_fj_stress.sh hugetlb 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ca3abd699e741c607f5b4fb3df30dd931d69d8d2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_2_9_each cgroup_fj_stress.sh hugetlb 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..01922ad93c515b833480189007636c1caf8fbbdb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_2_9_none cgroup_fj_stress.sh hugetlb 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1475ade4113a80d1555d08d2c1a938973dc3be79 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_2_9_one cgroup_fj_stress.sh hugetlb 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..53fb17291b924a20b8c9ff02bd74be9b9279d7b8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_3_3_each cgroup_fj_stress.sh hugetlb 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6044b353a32f3a17b96ad7d05ede8b6af2f23f77 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_3_3_none cgroup_fj_stress.sh hugetlb 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6e4f2a4e987bbd878d00aa06e802291c011373a4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_3_3_one cgroup_fj_stress.sh hugetlb 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1062fd5154a63d2759a7eeb7dfce6084d5c54a56 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_4_4_each cgroup_fj_stress.sh hugetlb 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5e556af3e331a075f9a70a8866677edf54826697 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_4_4_none cgroup_fj_stress.sh hugetlb 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1f01a774ee959f2add0fbbb8c51fa9bd9a73fd2f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_hugetlb_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_hugetlb_4_4_one cgroup_fj_stress.sh hugetlb 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..40808f3c628b0df3778ee2ca3286a532eb8b77b1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_10_3_each cgroup_fj_stress.sh memory 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d5338cbcfb575c2d71fca87ceab6a43e0501de27 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_10_3_none cgroup_fj_stress.sh memory 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5600f5b519081d7ced7db95794608d0ea8e23087 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_10_3_one cgroup_fj_stress.sh memory 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a03ae2eeb18e2b3feeae41fa9b3be38626c83a4b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_1_200_each cgroup_fj_stress.sh memory 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8909a97d77e0f7e19a7d395690bebd5856707938 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_1_200_none cgroup_fj_stress.sh memory 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..26c3532e864b6ee8f8e37e0f293f760295b9e2f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_1_200_one cgroup_fj_stress.sh memory 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4bf8349bf29dfd7758881dddcee1f602ab1bf579 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_200_1_each cgroup_fj_stress.sh memory 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9028d6f511f298fc323f7e4a3cb9e0e61a0c83ae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_200_1_none cgroup_fj_stress.sh memory 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..de009e88d7812acf45357def7e394b033529efef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_200_1_one cgroup_fj_stress.sh memory 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5d83450ec051565a2fb0bd7588ff16634a386032 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_2_2_each cgroup_fj_stress.sh memory 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..286bc0b92ca5b655104f8a62f759b457b4645138 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_2_2_none cgroup_fj_stress.sh memory 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c4257cc1d59d24c755eac2e7ce8980b1253e7f68 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_2_2_one cgroup_fj_stress.sh memory 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0b81e0877a5900ab0c4ff8757c9f725cfc76abeb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_2_9_each cgroup_fj_stress.sh memory 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e95f20e51c6ec627c3750012964225617e7bd5db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_2_9_none cgroup_fj_stress.sh memory 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bf5497636de830df3c6e51c5362f53114adcb131 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_2_9_one cgroup_fj_stress.sh memory 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..491903ff1e47e9ec90a114b7483bee6f97b07784 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_3_3_each cgroup_fj_stress.sh memory 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cce40e0dc04685a266677e77c5f532c48892e023 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_3_3_none cgroup_fj_stress.sh memory 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a3861761eb40e38a0b4c8e3073bd5f2eba1322f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_3_3_one cgroup_fj_stress.sh memory 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2723b8d30477f761dc1d654800bd06f0bfe94086 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_4_4_each cgroup_fj_stress.sh memory 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..186392665ccb6e785cf63c2164dc8ecc8327c03b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_4_4_none cgroup_fj_stress.sh memory 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b3b2b8a73cad2b7094a91b30c05db8a3294d851c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_memory_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_memory_4_4_one cgroup_fj_stress.sh memory 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..aecef7a7751b2c31d0a5605293db7fa87d387df9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_10_3_each cgroup_fj_stress.sh net_cls 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9476d1180a14a660185b276a3f6f0488ae7dddfd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_10_3_none cgroup_fj_stress.sh net_cls 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1402302c9597080eaf1c45b36ce077277b1a906a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_10_3_one cgroup_fj_stress.sh net_cls 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..84cdda7a69ead54fb45be836de0f20a0e67b4836 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_1_200_each cgroup_fj_stress.sh net_cls 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ae966923b78033819be886f1c4050b072ac70c05 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_1_200_none cgroup_fj_stress.sh net_cls 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..07e09067f7459271a3ace14bd98f776e08912e6f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_1_200_one cgroup_fj_stress.sh net_cls 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a68a4db189d83a859b538521f912c79c518f7d99 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_200_1_each cgroup_fj_stress.sh net_cls 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7079841f83d80b8ea3321710d3e65e25ccc80f6c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_200_1_none cgroup_fj_stress.sh net_cls 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b15e37d82d0aca942614a00a645bd541eb92fb6a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_200_1_one cgroup_fj_stress.sh net_cls 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..969a0ca8a17ab7b67b9b47c4c65b9a2cfcb08bc9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_2_2_each cgroup_fj_stress.sh net_cls 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..40366b268c0980c442ab471090258c2e70534209 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_2_2_none cgroup_fj_stress.sh net_cls 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..733379be861446813d0a01d70893c7429949619e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_2_2_one cgroup_fj_stress.sh net_cls 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6dec4dd6db0725a11e91a680943e32e2d8868c12 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_2_9_each cgroup_fj_stress.sh net_cls 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f3a47fcb1c9d42f26c924e3f38cf039b541a17d3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_2_9_none cgroup_fj_stress.sh net_cls 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6da7b6b1b75ab3f0194cfb2e7012bddbdf241c66 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_2_9_one cgroup_fj_stress.sh net_cls 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c6a7c72b59b76a8dfa0f301d7a54e663252ff4df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_3_3_each cgroup_fj_stress.sh net_cls 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..80ca0967db15c33357206d6458034ef67c6496fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_3_3_none cgroup_fj_stress.sh net_cls 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..66539d7e8379ee5f6819e0f907b98b862bac0c94 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_3_3_one cgroup_fj_stress.sh net_cls 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..63d4bcb32b0f4c4e0967af321a55bd5f757c3526 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_4_4_each cgroup_fj_stress.sh net_cls 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..94b8d70952ccc3993dbe2ae7811acdd3f61fda26 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_4_4_none cgroup_fj_stress.sh net_cls 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5ec162bf9bf468dce38e6f07a6eb5fd5058bdf95 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_cls_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_cls_4_4_one cgroup_fj_stress.sh net_cls 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c1900179d2561b9c5a907dd08ba238836239f5db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_10_3_each cgroup_fj_stress.sh net_prio 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..902e43133d1c2db6bba4b34ab890cd5561b1a20d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_10_3_none cgroup_fj_stress.sh net_prio 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cdc3c884c5953d6d7da9c1142ab6d4b7e33273b5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_10_3_one cgroup_fj_stress.sh net_prio 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9282c62d44aeae04c015fec94e54ddf2057acda4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_1_200_each cgroup_fj_stress.sh net_prio 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ebf5930def0365b8a797af7974bb62385190de14 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_1_200_none cgroup_fj_stress.sh net_prio 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..84db6fb022dd0732a4c6a15309b89898e3907097 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_1_200_one cgroup_fj_stress.sh net_prio 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d1996e3a6155f730c5906864de71b9c9b196fc8c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_200_1_each cgroup_fj_stress.sh net_prio 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..122e59aa6be479edc4404c447dc1f0b954bda06d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_200_1_none cgroup_fj_stress.sh net_prio 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b5e415560f91df15a5e947f8251b2a6bb9388b71 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_200_1_one cgroup_fj_stress.sh net_prio 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bf1efb463ce6dee62defe846e8ffb807601b4c4c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_2_2_each cgroup_fj_stress.sh net_prio 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..621c16baa338e664606cb19f58b263e3d081774a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_2_2_none cgroup_fj_stress.sh net_prio 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cf5e400c1f073b15c8f3d0b2e4f6a69436e60743 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_2_2_one cgroup_fj_stress.sh net_prio 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e944655325e0433b97fbe87484b9a6b4052e6eea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_2_9_each cgroup_fj_stress.sh net_prio 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1ecf6ddb1e6ed3497cd982ecd76b391d3f72ff8f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_2_9_none cgroup_fj_stress.sh net_prio 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ca8afe58bf17e81cab8d878bba7c9372ea56e46b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_2_9_one cgroup_fj_stress.sh net_prio 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a037d25744b5d6991e37977624cb8705c8283f1f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_3_3_each cgroup_fj_stress.sh net_prio 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4efbcf13beb8beee99e0ccca627c1dd4e51c409f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_3_3_none cgroup_fj_stress.sh net_prio 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1611bb73348a6139fe1349e74d0216c066cecba8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_3_3_one cgroup_fj_stress.sh net_prio 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4dfd386c428d4ff1db8f3d21168cf8a54f482ce9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_4_4_each cgroup_fj_stress.sh net_prio 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..43f58152d7e0ac7de4219581495b5b2e796f547c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_4_4_none cgroup_fj_stress.sh net_prio 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..593bf7360c1c01edb9f00107722ee90eacef826c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_net_prio_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_net_prio_4_4_one cgroup_fj_stress.sh net_prio 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bdc04bd189a2fd55124ee7f47792c4cdb7c65670 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_10_3_each cgroup_fj_stress.sh perf_event 10 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cf7f59bb9bd85def58aea348712063e2fdd303df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_10_3_none cgroup_fj_stress.sh perf_event 10 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8f5e9f9189c9e1f535e0680afd0cff8787fca1b9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_10_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_10_3_one cgroup_fj_stress.sh perf_event 10 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e0ba2f4c10eae84ad5ed8f80192071cdb8f92898 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_1_200_each cgroup_fj_stress.sh perf_event 1 200 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..62d51836ea6b3dca289deb85c1f03cb313f0e7b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_1_200_none cgroup_fj_stress.sh perf_event 1 200 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..287696939fddbe0f2e9ece1534cbb4111e723cc3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_1_200_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_1_200_one cgroup_fj_stress.sh perf_event 1 200 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bd4ede028695f83228e6458fc228d1e7f0bd5a1e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_200_1_each cgroup_fj_stress.sh perf_event 200 1 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8d900a0acd8374792ea4950f4e8a6d944d0a9236 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_200_1_none cgroup_fj_stress.sh perf_event 200 1 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ac5bc110ceb0cdeee9e611f0a79d1acdd1d8cd65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_200_1_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_200_1_one cgroup_fj_stress.sh perf_event 200 1 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a6eac986650035f49cf3fe630d1a4c7d5eaae0e6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_2_2_each cgroup_fj_stress.sh perf_event 2 2 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5148f774e591a4169ede33ad53169583b8a13d2a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_2_2_none cgroup_fj_stress.sh perf_event 2 2 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5a1b108c85df1142f3427c23bc0878367065bd2e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_2_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_2_2_one cgroup_fj_stress.sh perf_event 2 2 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..663fc0c94565fe9cf80e427ec3bafc9f0d3de288 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_2_9_each cgroup_fj_stress.sh perf_event 2 9 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0c09c23c8cea4ae7b88212ca2de10e0baaa8c9d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_2_9_none cgroup_fj_stress.sh perf_event 2 9 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..dd66890382a8513426a5975529bff9223892ffe9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_2_9_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_2_9_one cgroup_fj_stress.sh perf_event 2 9 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..59ace8e68bdb085920083ef0e813852aab8ba0da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_3_3_each cgroup_fj_stress.sh perf_event 3 3 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..97443d720ffcb5109a3c51c8d618d8108580f719 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_3_3_none cgroup_fj_stress.sh perf_event 3 3 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d396651b65bbcc5ddef59d124c5e2b2f4fee0b8d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_3_3_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_3_3_one cgroup_fj_stress.sh perf_event 3 3 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..57267ed1462e2982a61e281b29b82c5eecb462d8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_each.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_4_4_each cgroup_fj_stress.sh perf_event 4 4 each +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b8baabd5955cb9ed8572ce26e337bab769802b02 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_none.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_4_4_none cgroup_fj_stress.sh perf_event 4 4 none +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0be4cf5fe47e2d9abd32f6566f2c9d837d918e37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_fj_stress_perf_event_4_4_one.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_fj_stress_perf_event_4_4_one cgroup_fj_stress.sh perf_event 4 4 one +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..188f70d3fd8ac43f00fd111a41942a952cb60869 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cgroup_xattr.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cgroup_xattr cgroup_xattr +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cgroup_xattr cgroup_xattr failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4537b6672526b90f1118942b057329b6bf1c7754 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_controllers.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers controllers test_controllers.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers controllers test_controllers.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..44d3b74c19f34c55b1a90a3dc4c587ec1476d7bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_100_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuacct_100_1 cpuacct.sh 100 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 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" + CHECK_RESULT $? 1 0 "controllers cpuacct_100_1 cpuacct.sh 100 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..62dd9b98cc8dd93f4ff3ba8d7e37fe8e660805b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_100_100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuacct_100_100 cpuacct.sh 100 100 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuacct_100_100 cpuacct.sh 100 100 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..91d730883737857f3679ff1c992fcc94cd7ee845 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_10_10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuacct_10_10 cpuacct.sh 10 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuacct_10_10 cpuacct.sh 10 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7360669aca170ba4d84c75cda2db10578cc51fb8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuacct_1_1 cpuacct.sh 1 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 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" + CHECK_RESULT $? 1 0 "controllers cpuacct_1_1 cpuacct.sh 1 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..391cf8302f17c50ed9242ff5f03bc7c0d578f2d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuacct_1_10 cpuacct.sh 1 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuacct_1_10 cpuacct.sh 1 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1ebb97ece1b8b478fd51fb03784468d4dc29f7b5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuacct_1_100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuacct_1_100 cpuacct.sh 1 100 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuacct_1_100 cpuacct.sh 1 100 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..631de4f40df5f804ac567152ec70af055fdbc24e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_base_ops.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_base_ops cpuset_base_ops_testset.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_base_ops cpuset_base_ops_testset.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..3f36db04cf2176d56faa723949f48e0f4e2d6689 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_exclusive.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_exclusive cpuset_exclusive_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_exclusive cpuset_exclusive_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4c841084665cf2932073e9c3fef874f046563e87 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_hierarchy.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_hierarchy cpuset_hierarchy_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_hierarchy cpuset_hierarchy_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b52cddbef9af00e013f96a6231675dc46ea1636b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_hotplug.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_hotplug cpuset_hotplug_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_hotplug cpuset_hotplug_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..24af0c8d41f11fdaff26aa783a8c72da9e39f604 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_inherit.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_inherit cpuset_inherit_testset.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_inherit cpuset_inherit_testset.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f8d9eceab1617df572e4d5a240e05d71ac4420f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_load_balance.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_load_balance cpuset_load_balance_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_load_balance cpuset_load_balance_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8621bce255a3c6860cdb8d6dcecb41f2954a107a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_memory cpuset_memory_testset.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_memory cpuset_memory_testset.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..02035ce54967e18c33b6b60d3a4578e3265338b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory_pressure.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_memory_pressure cpuset_memory_pressure_testset.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_memory_pressure cpuset_memory_pressure_testset.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f0516e8de4924597cbb329190906ec8361891ab1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_memory_spread.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_memory_spread cpuset_memory_spread_testset.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_memory_spread cpuset_memory_spread_testset.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bb1df8361933c51e6dbcd30f88e302e6d7140f33 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_regression_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_controllers cpuset_regression_test cpuset_regression_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_regression_test cpuset_regression_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8b498e38dc1a582d37ad02de752489d5ee69f16e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_sched_domains.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_sched_domains cpuset_sched_domains_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_sched_domains cpuset_sched_domains_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e53a862837c31c018075aeff2cee0a82f47b8baf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_cpuset_syscall.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers cpuset_syscall cpuset_syscall_testset.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers cpuset_syscall cpuset_syscall_testset.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7d131a9e69802fdc708b1fc29d25370bd03aa4da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_io_control01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers io_control01 io_control01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers io_control01 io_control01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9b209e70a6a5df8bae96fba9d7cfe265aa1e5b76 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_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_controllers memcg_control memcg_control_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_control memcg_control_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a24ca294faa30829752953dea794ae3a30f41b3e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_failcnt.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_failcnt memcg_failcnt.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_failcnt memcg_failcnt.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..820f0d36426b42f79f113c4b09d336d1ae2fc918 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_force_empty.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_force_empty memcg_force_empty.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_force_empty memcg_force_empty.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..656b37b43f9af66b527c0ca1747f1c0167407cfc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_limit_in_bytes.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_limit_in_bytes memcg_limit_in_bytes.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_limit_in_bytes memcg_limit_in_bytes.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..54fb416bfce5dbf210a184b98382b3eea6e697ca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_max_usage_in_bytes.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_max_usage_in_bytes memcg_max_usage_in_bytes_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_max_usage_in_bytes memcg_max_usage_in_bytes_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..8404a80b8a03948bf8b48a4b832739b76d09bf65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_memsw_limit_in_bytes.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_memsw_limit_in_bytes memcg_memsw_limit_in_bytes_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_memsw_limit_in_bytes memcg_memsw_limit_in_bytes_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..1462b6551a474a891c47706235d46ce2fd2f1134 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_move_charge_at_immigrate.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_move_charge_at_immigrate memcg_move_charge_at_immigrate_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_move_charge_at_immigrate memcg_move_charge_at_immigrate_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..12d74c81e43d601a69480fdb61fcb8fd46c05eb3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_regression.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_regression memcg_regression_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_regression memcg_regression_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..34fbdce9748f106d725ba3acb85022cdf0c4c001 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stat.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_stat memcg_stat_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_stat memcg_stat_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..47560d63408092c2de4a4ad5548f0e13504e64e0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_stat_rss.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_stat_rss memcg_stat_rss.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_stat_rss memcg_stat_rss.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d46631064f8d557043681ebd97ea035960f4bac6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_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_controllers memcg_stress memcg_stress_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_stress memcg_stress_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7de7cb0a787f1f5eb46550ebfa93ab9b32737642 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_subgroup_charge.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_subgroup_charge memcg_subgroup_charge.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_subgroup_charge memcg_subgroup_charge.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..03f35092c75c30821f6ee165ac11fd8ec44b36e7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_test_3.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_test_3 memcg_test_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 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" + CHECK_RESULT $? 1 0 "controllers memcg_test_3 memcg_test_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..8c58bce02a920227f1a00c7a30ba7a8fb39d37b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_usage_in_bytes.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_usage_in_bytes memcg_usage_in_bytes_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_usage_in_bytes memcg_usage_in_bytes_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f0af7199ce14333a72ec2b8b63f43127f7a9f159 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcg_use_hierarchy.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcg_use_hierarchy memcg_use_hierarchy_test.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcg_use_hierarchy memcg_use_hierarchy_test.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6557138033b264f4354a0c6819335bafe45471bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcontrol01 memcontrol01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcontrol01 memcontrol01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4faec16858395987bd7464a3b0f5a2036b3d2599 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcontrol02 memcontrol02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcontrol02 memcontrol02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e978df8906074e439d6d2d76191a02f4c902da59 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcontrol03 memcontrol03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcontrol03 memcontrol03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..873e29e7f97e28d0f641609acacdd8c79f48d372 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_memcontrol04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers memcontrol04 memcontrol04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers memcontrol04 memcontrol04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..05a66a9b087542bcac58730bd574d26a69d121d3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_1_1 pids.sh 1 1 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_1_1 pids.sh 1 1 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..5645355e662f3bdbe8e78e3010510df789c4b0f7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_1_10 pids.sh 1 10 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_1_10 pids.sh 1 10 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c588dde556aa221f34b766c400e3efe7d7f1cd37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_1_100 pids.sh 1 100 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_1_100 pids.sh 1 100 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f404ac69ea683cb7d097ad02580a2ad4c06004c9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_1_2 pids.sh 1 2 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_1_2 pids.sh 1 2 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..504235ea7598ae347b0cb80821a26544275862e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_1_50.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_1_50 pids.sh 1 50 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_1_50 pids.sh 1 50 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a8d4e11c9a06975c5e43492d5374d118cfe2f20b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_2_1 pids.sh 2 1 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_2_1 pids.sh 2 1 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6a9a726a134f6918cac46c7bc06c5d0a3a3a7fcf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_2_10 pids.sh 2 10 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_2_10 pids.sh 2 10 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bb2e6f3d5c0079d1e894bdf4da50d22b0efa67f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_2_100 pids.sh 2 100 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_2_100 pids.sh 2 100 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..20afc1c846745eb3ff69bca467c082c60f1649b8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_2_2 pids.sh 2 2 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_2_2 pids.sh 2 2 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0b6ec5c8a58257a81ede77c7bd3f92769b3aa642 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_2_50.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_2_50 pids.sh 2 50 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_2_50 pids.sh 2 50 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b0a501ffa4cb204fde17cee5ad1db2aa74093b8d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_0.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_3_0 pids.sh 3 0 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_3_0 pids.sh 3 0 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..971c5619ce89874f0b62a3cd030453ef6fe32210 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_3_1 pids.sh 3 1 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_3_1 pids.sh 3 1 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..65ac92aad101b0d6b52123266267b506e40c659a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_3_10 pids.sh 3 10 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_3_10 pids.sh 3 10 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e2dc7fa62c57f029f9ea94ccf25c43b485dd09e9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_3_100 pids.sh 3 100 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_3_100 pids.sh 3 100 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..3d015a1e3e7832625fac2a1092e36f47912b28d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_3_50.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_3_50 pids.sh 3 50 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_3_50 pids.sh 3 50 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..44608dbedd720ff5a1a0b058a6ac39f5f29b6d2e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_4_1 pids.sh 4 1 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_4_1 pids.sh 4 1 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..52989d4f48765b80202e5aa7ae3d83722d7a210f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_4_10 pids.sh 4 10 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_4_10 pids.sh 4 10 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a6f0879e06b4e698a5ad1fc93524732eb54c1796 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_4_100 pids.sh 4 100 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_4_100 pids.sh 4 100 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..49b6e246e5028451b88bbd0c12aed6b99621e475 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_4_2 pids.sh 4 2 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_4_2 pids.sh 4 2 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..690a9812d940088c05a4e54ae0581f7cf93e324a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_4_50.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_4_50 pids.sh 4 50 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_4_50 pids.sh 4 50 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..d10d41a852ced29f0359d3df200e7d32e49a2461 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_5_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_5_1 pids.sh 5 1 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_5_1 pids.sh 5 1 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..987fbc63f9dca719456acd13c0019f5c21175af5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_6_1 pids.sh 6 1 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_6_1 pids.sh 6 1 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7252972e4af2d9608c61067341f96f15a781a2fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_6_10 pids.sh 6 10 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_6_10 pids.sh 6 10 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0a7591e834e4a999971f97105e9ca39e9e145e3b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_6_100 pids.sh 6 100 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_6_100 pids.sh 6 100 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..fd4789370b777ca2d6dfac65f83d14e73177c14b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_6_2 pids.sh 6 2 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_6_2 pids.sh 6 2 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e58bd06adba94b75bacd0226f62091244a232604 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_6_50.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_6_50 pids.sh 6 50 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_6_50 pids.sh 6 50 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..46a335ae611097494f565200decdc6f8374d8ccb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_7_10 pids.sh 7 10 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_7_10 pids.sh 7 10 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..08f3f78a54e4b799f7bad818d970c0d53fc4c85a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_7_100 pids.sh 7 100 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_7_100 pids.sh 7 100 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..cf5922d777eb3933b807df667134d20ad044961c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_1000.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_7_1000 pids.sh 7 1000 100 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_7_1000 pids.sh 7 1000 100 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..626d1b0ccb594c02e08a230d83a449533f38834c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_50.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_7_50 pids.sh 7 50 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_7_50 pids.sh 7 50 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..310f37528118cc1176f2de13955204671fa0073f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_7_500.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_7_500 pids.sh 7 500 50 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_7_500 pids.sh 7 500 50 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..255076497743f21b72f967c8be1b1a85a8d5587b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_8_10 pids.sh 8 10 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_8_10 pids.sh 8 10 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..876e68223b7f22c990afe562b348cd80b6b97162 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_8_100 pids.sh 8 100 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_8_100 pids.sh 8 100 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2cc6cae505e813ba02d757ae73434189598fc13c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_8_2 pids.sh 8 2 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_8_2 pids.sh 8 2 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..b5cd625ae473358331c010a060eed3f9fdb8d90a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_8_50.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_8_50 pids.sh 8 50 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_8_50 pids.sh 8 50 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..894e798fe99ff76ff47ebaa1da8cb79431e9cb09 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_9_10 pids.sh 9 10 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_9_10 pids.sh 9 10 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7f5297e500682757998d03d50db05c8ee9ee1506 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_100.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_9_100 pids.sh 9 100 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_9_100 pids.sh 9 100 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..604515853f2c9fa2c02c8fa4281830f088b3cdc5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_9_2 pids.sh 9 2 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_9_2 pids.sh 9 2 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..592791b171918548d66eccfee37e8971740694b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_controllers/oe_test_ltp_controllers_pids_9_50.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_controllers pids_9_50 pids.sh 9 50 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "controllers pids_9_50 pids.sh 9 50 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c25552921bf397304636cfb4be41053c73e8ca50 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cpuhotplug cpuhotplug02 cpuhotplug02.sh -c 1 -l 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 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" + CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug02 cpuhotplug02.sh -c 1 -l 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_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug03.sh b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug03.sh new file mode 100644 index 0000000000000000000000000000000000000000..d70fb9ba54093f5bc8e4d45bd809e37e352b3c6d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cpuhotplug cpuhotplug03 cpuhotplug03.sh -c 1 -l 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 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" + CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug03 cpuhotplug03.sh -c 1 -l 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_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug04.sh b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug04.sh new file mode 100644 index 0000000000000000000000000000000000000000..8525a455daea1b65974ac7d50b4b13a1ed765326 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cpuhotplug cpuhotplug04 cpuhotplug04.sh -l 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 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" + CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug04 cpuhotplug04.sh -l 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_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug05.sh b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug05.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fdac953fc9cd0febfdff1166228ac5f31c03942 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cpuhotplug cpuhotplug05 cpuhotplug05.sh -c 1 -l 1 -d /tmp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug05 cpuhotplug05.sh -c 1 -l 1 -d /tmp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ab98c434f5045857e10c2d0fc28e3a6e69f79624 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cpuhotplug cpuhotplug06 cpuhotplug06.sh -c 1 -l 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 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" + CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug06 cpuhotplug06.sh -c 1 -l 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_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug07.sh b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug07.sh new file mode 100644 index 0000000000000000000000000000000000000000..323bccb41af29f34864713a02be917b69b02b355 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cpuhotplug/oe_test_ltp_cpuhotplug_cpuhotplug07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cpuhotplug cpuhotplug07 cpuhotplug07.sh -c 1 -l 1 -d /usr/src/linux +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cpuhotplug cpuhotplug07 cpuhotplug07.sh -c 1 -l 1 -d /usr/src/linux failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..2d26ef1fb0ff121579b90a50b7c65b124b554fe3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crypto af_alg01 af_alg01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "crypto af_alg01 af_alg01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alg02.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6774af4581d54f2c74ee1c5f5755168b466e4f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crypto af_alg02 af_alg02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "crypto af_alg02 af_alg02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alg03.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg03.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e1c2e8b2cd14ad805fbddc9efaf919f291cf524 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crypto af_alg03 af_alg03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "crypto af_alg03 af_alg03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alg04.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg04.sh new file mode 100644 index 0000000000000000000000000000000000000000..357c9c8f65a7b6d1238ca131cf45d0c6938dfe83 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crypto af_alg04 af_alg04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "crypto af_alg04 af_alg04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alg05.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg05.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8ea3ae57927babee146b6a6a50852e2a1b3d0a9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crypto af_alg05 af_alg05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "crypto af_alg05 af_alg05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alg06.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg06.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4d0f1a37050248dd1b8f24aa73acd25ae59069a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crypto af_alg06 af_alg06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "crypto af_alg06 af_alg06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alg07.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg07.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ccf08871fec678a19cf08d7b38f8c1223a976d7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_af_alg07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crypto af_alg07 af_alg07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "crypto af_alg07 af_alg07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_crypto_user01.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user01.sh new file mode 100644 index 0000000000000000000000000000000000000000..de19c9d64b5f4cc083277c6eca7d659aba902bb5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crypto crypto_user01 crypto_user01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "crypto crypto_user01 crypto_user01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_crypto_user02.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user02.sh new file mode 100644 index 0000000000000000000000000000000000000000..1697ada94100d7588f34480da159ad3d945c98b1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_crypto_user02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crypto crypto_user02 crypto_user02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "crypto crypto_user02 crypto_user02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pcrypt_aead01.sh b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_pcrypt_aead01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6191dfbb9e82fdb802b19859f4e05382673f988f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_crypto/oe_test_ltp_crypto_pcrypt_aead01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_crypto pcrypt_aead01 pcrypt_aead01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "crypto pcrypt_aead01 pcrypt_aead01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh new file mode 100644 index 0000000000000000000000000000000000000000..32b44922da482384382c6f55e96860163c505035 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-0999.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2011-0999 thp01 -I 120 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2011-0999 thp01 -I 120 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh new file mode 100644 index 0000000000000000000000000000000000000000..e98feb6255d8c1d66b807ddacdfa41e5204cddd4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-2183.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2011-2183 ksm05 -I 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2011-2183 ksm05 -I 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e3e2b37668a8ba918de74e68df60c68a37e193b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2011-2496.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2011-2496 vma03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2011-2496 vma03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh new file mode 100644 index 0000000000000000000000000000000000000000..de62c550306f9f89ee022cb520aa0f38c7b67fdf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2012-0957.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2012-0957 uname04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2012-0957 uname04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b8781fe925b5f044ae0dfaccc3e2e1fd13a5592 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2014-0196.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2014-0196 cve-2014-0196 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2014-0196 cve-2014-0196 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh new file mode 100644 index 0000000000000000000000000000000000000000..eeb5f9ec0d75c48e8a2aed0107615de688cf3c5f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-0235.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2015-0235 gethostbyname_r01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2015-0235 gethostbyname_r01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh new file mode 100644 index 0000000000000000000000000000000000000000..599e5d91face64f41ab531527dfe4a7195304904 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-3290.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2015-3290 cve-2015-3290 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2015-3290 cve-2015-3290 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh new file mode 100644 index 0000000000000000000000000000000000000000..81b686826f2ca11d2508b24a43a83e9264a1c071 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2015-7550.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2015-7550 keyctl02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2015-7550 keyctl02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5d43b821b40b9c51e8625cfbaddfaa3a9ec2c1c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-10044.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2016-10044 cve-2016-10044 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2016-10044 cve-2016-10044 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ff8bc50a3093ce03e94e68e67ce71f4023fc1ec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-4470.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2016-4470 keyctl01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2016-4470 keyctl01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh new file mode 100644 index 0000000000000000000000000000000000000000..18b8bb847f616ad3af0f73e7dd8ea489c895fd86 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-4997.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2016-4997 setsockopt03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2016-4997 setsockopt03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2cda6d65ea8b4cff35aef0a889204f6b2ff37d2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-5195.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2016-5195 dirtyc0w +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2016-5195 dirtyc0w failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh new file mode 100644 index 0000000000000000000000000000000000000000..5efcf3e065c55ca91a360587dcbad2095f98bebc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-7042.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2016-7042 cve-2016-7042 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2016-7042 cve-2016-7042 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh new file mode 100644 index 0000000000000000000000000000000000000000..4dece0f6c9b47cb672c2ad0b41572b41ae94e1c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-7117.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2016-7117 cve-2016-7117 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2016-7117 cve-2016-7117 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh new file mode 100644 index 0000000000000000000000000000000000000000..bca2f93fd7e25fe5099d7dafe09a0090aac667f3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-8655.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2016-8655 setsockopt06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2016-8655 setsockopt06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh new file mode 100644 index 0000000000000000000000000000000000000000..c47a0dbfa0048320c210ae5c3a0f8a66f73d630a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-9604.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2016-9604 keyctl08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2016-9604 keyctl08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh new file mode 100644 index 0000000000000000000000000000000000000000..63d7aebf06333f94fc150adc19014d49455d9d56 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2016-9793.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2016-9793 setsockopt04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2016-9793 setsockopt04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh new file mode 100644 index 0000000000000000000000000000000000000000..522cb181a721cc3c9cde56eaaeea781a523c7b39 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000111.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-1000111 setsockopt07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-1000111 setsockopt07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh new file mode 100644 index 0000000000000000000000000000000000000000..856c16bc8cf77de6d9ce2017f3652342a7b6d179 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000112.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-1000112 setsockopt05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-1000112 setsockopt05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh new file mode 100644 index 0000000000000000000000000000000000000000..950469267d613fd8c62f7384ea2bfa0ce9ad1cee --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000364.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-1000364 stack_clash +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-1000364 stack_clash failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh new file mode 100644 index 0000000000000000000000000000000000000000..65eeea07ac131028348f99936300edc3b36bc74c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000380.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-1000380 snd_timer01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-1000380 snd_timer01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh new file mode 100644 index 0000000000000000000000000000000000000000..aba8a0fa6bf19266572d38547aec85e41f0b748c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-1000405.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-1000405 thp04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-1000405 thp04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a03dfa5cd447b35ae0110e96b47deddb0cb3d47 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-10661.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-10661 timerfd_settime02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-10661 timerfd_settime02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a5811d478634968fd7242b71fe1d239d8490e3a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-12192.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-12192 keyctl07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-12192 keyctl07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh new file mode 100644 index 0000000000000000000000000000000000000000..b13fb86d070eab9c72c4bc18f8ac401b5e8e7205 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-12193.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-12193 add_key04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-12193 add_key04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh new file mode 100644 index 0000000000000000000000000000000000000000..25b6009b371a433075ec6232c752585a666554cb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15274.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-15274 add_key02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-15274 add_key02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh new file mode 100644 index 0000000000000000000000000000000000000000..e290f999cce350665e331f1b5e74def6f4a40c89 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15299.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-15299 request_key03 -b cve-2017-15299 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-15299 request_key03 -b cve-2017-15299 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh new file mode 100644 index 0000000000000000000000000000000000000000..827601b17e97396b91b72a2630f1cefa205294f0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15537.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-15537 ptrace07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-15537 ptrace07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8745b183bfb7f0e115663317544d12e9b41b05e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15649.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-15649 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 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" + CHECK_RESULT $? 1 0 "cve cve-2017-15649 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_cve/oe_test_ltp_cve_cve-2017-15951.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh new file mode 100644 index 0000000000000000000000000000000000000000..792ea407df53efc779f4566d1a0526bc757a7169 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-15951.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-15951 request_key03 -b cve-2017-15951 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-15951 request_key03 -b cve-2017-15951 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c24e45a75462feab8193859700520f0a0a09139 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-16939.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-16939 cve-2017-16939 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-16939 cve-2017-16939 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh new file mode 100644 index 0000000000000000000000000000000000000000..824ca4be97ef8a28c7cfa9c8d6e11a9a0e733034 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-16995.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-16995 bpf_prog03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-16995 bpf_prog03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c6b8b23ace50c778104b751113c7b69938f538d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17052.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-17052 cve-2017-17052 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-17052 cve-2017-17052 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh new file mode 100644 index 0000000000000000000000000000000000000000..484664e8c823779b594778669ffdc4441e28442c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17053.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-17053 cve-2017-17053 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-17053 cve-2017-17053 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh new file mode 100644 index 0000000000000000000000000000000000000000..35afa35ecd1a39e7f14adfe5d82f5cc63513ad65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17712.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-17712 sendmsg03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-17712 sendmsg03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh new file mode 100644 index 0000000000000000000000000000000000000000..0cf4e5205f36da514a228a2999a6ddf67241caf2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17805.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-17805 af_alg02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-17805 af_alg02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh new file mode 100644 index 0000000000000000000000000000000000000000..3823ecd01271cc126f13b4cbb15cd4e847d6e5e6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17806.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-17806 af_alg01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-17806 af_alg01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a57ae277c7f367906155c78d632f62194d035d7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-17807.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-17807 request_key04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-17807 request_key04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh new file mode 100644 index 0000000000000000000000000000000000000000..aff9e78767144de6dd6add7b7d9f1bc9e947bbaf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-18075.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-18075 pcrypt_aead01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-18075 pcrypt_aead01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh new file mode 100644 index 0000000000000000000000000000000000000000..7463806a75d99d89fbf8aee1f81d69c8f8d323ca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-18344.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-18344 timer_create03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-18344 timer_create03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh new file mode 100644 index 0000000000000000000000000000000000000000..b72e93f8b2678c7315df247ca531932beaa87923 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2618.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-2618 cve-2017-2618 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-2618 cve-2017-2618 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e41a424c2abc5eaaf60e7399dd6cc5200dc1364 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2636.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-2636 pty05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-2636 pty05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c74edec16fccd9e4ab6088529c8a7f42f53380a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-2671.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-2671 cve-2017-2671 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-2671 cve-2017-2671 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh new file mode 100644 index 0000000000000000000000000000000000000000..c592fdaaded0827b9cc58e836803fe1c6cb2dad1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-5754.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-5754 meltdown +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-5754 meltdown failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh new file mode 100644 index 0000000000000000000000000000000000000000..c64f7046bb2ab9ef51900d165f8d6f8f1f1c4abf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-6951.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-6951 request_key05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-6951 request_key05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh new file mode 100644 index 0000000000000000000000000000000000000000..416aa7dcbde9a634b444179a42617478cf363ab7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7308.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-7308 setsockopt02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-7308 setsockopt02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a4fe914d0005d27fcffc0f70d4b0148e66dba75 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7472.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-7472 keyctl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-7472 keyctl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9242230bb9785584813ae5e30521abded1ccf75 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-7616.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-7616 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 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" + CHECK_RESULT $? 1 0 "cve cve-2017-7616 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_cve/oe_test_ltp_cve_cve-2017-8890.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh new file mode 100644 index 0000000000000000000000000000000000000000..95c48694d31e052b7227996bd0d4818428d3e42c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2017-8890.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2017-8890 accept02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2017-8890 accept02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh new file mode 100644 index 0000000000000000000000000000000000000000..f96ccb361cbeafde58208dee265386e9e65b42bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000001.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-1000001 realpath01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-1000001 realpath01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef257f1ffa6c55eb2fad514e6d0129dd2a6cb4ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000199.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-1000199 ptrace08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-1000199 ptrace08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh new file mode 100644 index 0000000000000000000000000000000000000000..31454f7ee6904d36f072e32fe6729df148758010 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-1000204.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-1000204 ioctl_sg01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-1000204 ioctl_sg01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh new file mode 100644 index 0000000000000000000000000000000000000000..297c7bbbda34e454da6a69c0d9bbe3596b17bc94 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-10124.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-10124 kill13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-10124 kill13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e4bc2b9d930298636dc2e02c114183e87e0b345 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-11508.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-11508 adjtimex03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-11508 adjtimex03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh new file mode 100644 index 0000000000000000000000000000000000000000..248597817b0d79bfaabb326b4740862b7766b9b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-12896.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-12896 timer_settime03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-12896 timer_settime03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh new file mode 100644 index 0000000000000000000000000000000000000000..75350d97ca91dcba32d0db57a745fd8c772eee0f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-13405.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-13405 creat09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-13405 creat09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh new file mode 100644 index 0000000000000000000000000000000000000000..795b6c64f303df6d88b51bfaf0029f5001abe45c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18445.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-18445 bpf_prog04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-18445 bpf_prog04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a9567d5f75fd324c5dbc03b5b545ce6499437aa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18559.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-18559 bind06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-18559 bind06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh new file mode 100644 index 0000000000000000000000000000000000000000..02ce9a798873faf48a7ab0821e657b01661b8512 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-18955.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-18955 userns08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-18955 userns08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a1303390212318ad9c868a666291e8ec3ae6b6b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-19854.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-19854 crypto_user01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-19854 crypto_user01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh new file mode 100644 index 0000000000000000000000000000000000000000..787fbd960e96321e71cb562c3e599aff8105e1a1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-5803.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-5803 sctp_big_chunk +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-5803 sctp_big_chunk failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh new file mode 100644 index 0000000000000000000000000000000000000000..a60c71a4e7891f8e020fac29f6d08686ce969f9d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-6927.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-6927 futex_cmp_requeue02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-6927 futex_cmp_requeue02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh new file mode 100644 index 0000000000000000000000000000000000000000..53737e30bb2eb7d445ef6655902a704293c9f480 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-7566.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-7566 snd_seq01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-7566 snd_seq01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0fc435567f322291a04e344d0fdec07ee387874 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-8897.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-8897 ptrace09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-8897 ptrace09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh new file mode 100644 index 0000000000000000000000000000000000000000..9944252f0d84994a39f0e7249f7dd4c57fb47bc4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2018-9568.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2018-9568 connect02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2018-9568 connect02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d92266909c8cec0a6871be005529ac932a74622 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2019-8912.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2019-8912 af_alg07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2019-8912 af_alg07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh new file mode 100644 index 0000000000000000000000000000000000000000..e65524d0e657684e5feee229ea325e08f92a1457 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-11494.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2020-11494 pty04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2020-11494 pty04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh new file mode 100644 index 0000000000000000000000000000000000000000..19187ddceac39fe0b3c7705ff2b38fe9ee3de7ff --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-14386.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2020-14386 sendto03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2020-14386 sendto03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh new file mode 100644 index 0000000000000000000000000000000000000000..c67e98b7d196e12f341e3018c2742173800d38c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-14416.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2020-14416 pty03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2020-14416 pty03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh new file mode 100644 index 0000000000000000000000000000000000000000..254da5e4939b4488fb1bafde7d76b4a79e3ace81 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-25704.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2020-25704 perf_event_open03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2020-25704 perf_event_open03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh new file mode 100644 index 0000000000000000000000000000000000000000..55d6416df2c87dabfbe769a42bfa03d95b86b798 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-25705.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2020-25705 icmp_rate_limit01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2020-25705 icmp_rate_limit01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh new file mode 100644 index 0000000000000000000000000000000000000000..6355ba157e42e067e08970dcfe0a4eb23dda55bf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-29373.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2020-29373 io_uring02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2020-29373 io_uring02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh new file mode 100644 index 0000000000000000000000000000000000000000..80290d85a17d77c8194da3864b4f00d6fddd7d81 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2020-36557.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2020-36557 pty06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2020-36557 pty06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh new file mode 100644 index 0000000000000000000000000000000000000000..b36d06552c0fabc6008de3064f4167bcf824d989 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-22555.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2021-22555 setsockopt08 -i 100 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2021-22555 setsockopt08 -i 100 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh new file mode 100644 index 0000000000000000000000000000000000000000..94c678b385a854391eb6d88c4c65ad13cd420f73 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-22600.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2021-22600 setsockopt09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2021-22600 setsockopt09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh new file mode 100644 index 0000000000000000000000000000000000000000..453f83ebe96aaad7b55e8b06dea6db9e0ca691ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-26708.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2021-26708 vsock01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2021-26708 vsock01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8887d79b0ea66b70d3fdb324ce376003f0f69d7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-3444.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2021-3444 bpf_prog05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2021-3444 bpf_prog05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh new file mode 100644 index 0000000000000000000000000000000000000000..857b8c1ac77e5ba69c36dbf286fb98e5b9505d24 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-3609.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2021-3609 can_bcm01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2021-3609 can_bcm01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh new file mode 100644 index 0000000000000000000000000000000000000000..afdc8870b801d33379fbe29ef2e7dd6d6a0d6a2c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-38604.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2021-38604 mq_notify03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2021-38604 mq_notify03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh new file mode 100644 index 0000000000000000000000000000000000000000..5bfdfe32c7f1c426f6fbf7affada2dd78118fa44 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4034.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2021-4034 execve06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2021-4034 execve06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh new file mode 100644 index 0000000000000000000000000000000000000000..9829460d08c3457393edcf30a0d7546a372fa737 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2021-4197_1 cgroup_core01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2021-4197_1 cgroup_core01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh new file mode 100644 index 0000000000000000000000000000000000000000..973af2b35e429bea6c6da11db77cc883a7550635 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4197_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2021-4197_2 cgroup_core02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2021-4197_2 cgroup_core02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh new file mode 100644 index 0000000000000000000000000000000000000000..15ed697972a6402c9f272ae5f7bb68b9a457d507 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2021-4204.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2021-4204 bpf_prog06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2021-4204 bpf_prog06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b2edf91320b3c016e01db5692768101e7462afb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-0185.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2022-0185 fsconfig03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2022-0185 fsconfig03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh new file mode 100644 index 0000000000000000000000000000000000000000..c869af5d046c3b48d3a463b8f3cc0601aaf93773 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-0847.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2022-0847 dirtypipe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2022-0847 dirtypipe failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh new file mode 100644 index 0000000000000000000000000000000000000000..67a5db7e801b3bf8a1e1a85b6fb52553b2c318fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-23222.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2022-23222 bpf_prog07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2022-23222 bpf_prog07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7023a7492e11702d586c91a5be54010e749ec7f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-2590.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2022-2590 dirtyc0w_shmem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2022-2590 dirtyc0w_shmem failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh new file mode 100644 index 0000000000000000000000000000000000000000..46a94c3b57e804f3053226156c1e4c03236b25d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2022-4378.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2022-4378 cve-2022-4378 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2022-4378 cve-2022-4378 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8bbe203ad3b99342de229a71b4f9e2846355f35 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-0461.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2023-0461 setsockopt10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2023-0461 setsockopt10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh new file mode 100644 index 0000000000000000000000000000000000000000..e48a3691de95a97a69987844e9e696cfb17cc795 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-1829.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2023-1829 tcindex01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2023-1829 tcindex01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file diff --git a/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5b01fdf090fbd9bed93a2504de8771d4cf3f623 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_cve/oe_test_ltp_cve_cve-2023-31248.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_cve cve-2023-31248 nft02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "cve cve-2023-31248 nft02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7bec6162e579bdf3fc1c3bd1ca822541c959a9df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_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_dio dio01 diotest1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio01 diotest1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a1ea1ee2bc0e43c92e52dd1c4514d2dff54608ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_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_dio dio02 diotest2 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio02 diotest2 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f5f39918a477113cceddbea84f019d59b4c3e145 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_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_dio dio03 diotest3 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio03 diotest3 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..eb7c7c224bbd4486f69ad78c3a78b945d33653d3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_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_dio dio04 diotest4 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio04 diotest4 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..ad30d2094196e31b91beaa7cdee60e18e3940205 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_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_dio dio05 diotest5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio05 diotest5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..35bd71805229355dcd0e2f97623d610799a6457c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_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_dio dio06 diotest6 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio06 diotest6 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..fa46e25ea6aa5854c7532f3f1214c3814d5a2f4f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_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_dio dio07 diotest1 -b 65536 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio07 diotest1 -b 65536 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..59364dd0455c1762fc93a1cc352865df83644efe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_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_dio dio08 diotest2 -b 65536 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio08 diotest2 -b 65536 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..9109f881551ad33c3202c5d777553a73aeef29fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_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_dio dio09 diotest3 -b 65536 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio09 diotest3 -b 65536 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e7db06dbc68c6a2b52e149ffdd41ec832d03f6e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio10 diotest4 -b 65536 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio10 diotest4 -b 65536 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7b33c6ad1cdf5f2a98ebee3d87d5f01e8187bd91 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio11 diotest5 -b 65536 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio11 diotest5 -b 65536 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..584fc044bbb7313e7945b9c18c0b8d0e5912bde6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio12 diotest6 -b 65536 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio12 diotest6 -b 65536 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..fc6ab84989cf05cfb08989051cb4b6e50c707bb8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio13 diotest1 -b 65536 -n 2000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio13 diotest1 -b 65536 -n 2000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2c31e44297d1edfe592218231432d01fa9ec570e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio14 diotest2 -b 65536 -i 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 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" + CHECK_RESULT $? 1 0 "dio dio14 diotest2 -b 65536 -i 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_dio/oe_test_ltp_dio_dio15.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio15.sh new file mode 100644 index 0000000000000000000000000000000000000000..d38c47dcb4c877156ee6cfc06fd61174c03eb4c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio15 diotest3 -b 65536 -i 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 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" + CHECK_RESULT $? 1 0 "dio dio15 diotest3 -b 65536 -i 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_dio/oe_test_ltp_dio_dio16.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio16.sh new file mode 100644 index 0000000000000000000000000000000000000000..741b7aaad8e181b7d683db6b57126f1491aeccd6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio16 diotest5 -b 65536 -i 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 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" + CHECK_RESULT $? 1 0 "dio dio16 diotest5 -b 65536 -i 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_dio/oe_test_ltp_dio_dio17.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio17.sh new file mode 100644 index 0000000000000000000000000000000000000000..0fab538df6d6be0c08f6314aa662938400ea8478 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio17 diotest6 -b 65536 -i 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 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" + CHECK_RESULT $? 1 0 "dio dio17 diotest6 -b 65536 -i 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_dio/oe_test_ltp_dio_dio18.sh b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio18.sh new file mode 100644 index 0000000000000000000000000000000000000000..03a201c197a8816b13b2fef850001ee7f1f4605e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio18 diotest2 -b 65536 -i 1000 -o 1024000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio18 diotest2 -b 65536 -i 1000 -o 1024000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f1a6cb46308c6543d55575139ffc354a9d60d170 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio19 diotest3 -b 65536 -i 1000 -o 1024000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio19 diotest3 -b 65536 -i 1000 -o 1024000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..02a219d7e4166a9d4833f3739625d75efbb2aa2c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio20 diotest5 -b 65536 -i 1000 -o 1024000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio20 diotest5 -b 65536 -i 1000 -o 1024000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0bde0a65b87e90997aaf3a6571faa08c3961cf62 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio21 diotest6 -b 65536 -i 1000 -o 1024000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio21 diotest6 -b 65536 -i 1000 -o 1024000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..0781e167ea02c56ab35f0d7b295b8a1b5d6fa674 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio22 diotest2 -b 65536 -i 1000 -o 104857600 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio22 diotest2 -b 65536 -i 1000 -o 104857600 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..f222c1dcd1bc3b8385826a60d70ab6e318173f24 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio23 diotest3 -b 65536 -i 1000 -o 104857600 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio23 diotest3 -b 65536 -i 1000 -o 104857600 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..997ad331a420c8b1d5e3282da0895a8e8fa6d940 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio24 diotest5 -b 65536 -i 1000 -o 104857600 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio24 diotest5 -b 65536 -i 1000 -o 104857600 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..418e9b0fba437a55b37201832011146ae5a3358b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio25 diotest6 -b 65536 -i 1000 -o 104857600 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio25 diotest6 -b 65536 -i 1000 -o 104857600 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..58ae42026e1ffc13befb3e87079edb7200df3e9e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio26 diotest6 -b 8192 -v 100 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio26 diotest6 -b 8192 -v 100 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..639e135dc97a5079abf72fbed6a07d2208525a1d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio27 diotest6 -b 8192 -o 1024000 -i 1000 -v 100 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio27 diotest6 -b 8192 -o 1024000 -i 1000 -v 100 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..313513a221dbb625bf69816b893f005ea091da92 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio28 diotest6 -b 8192 -o 1024000 -i 1000 -v 200 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio28 diotest6 -b 8192 -o 1024000 -i 1000 -v 200 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..6b1c80785f3d8f3abcb0fc6a042ee729b64ae83b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio29 diotest3 -b 65536 -n 100 -i 100 -o 1024000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio29 diotest3 -b 65536 -n 100 -i 100 -o 1024000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..629fc292eae1c9f4b7c2e05bd86e2975082f45db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_dio/oe_test_ltp_dio_dio30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_dio dio30 diotest6 -b 65536 -n 100 -i 100 -o 1024000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "dio dio30 diotest6 -b 65536 -n 100 -i 100 -o 1024000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..356168005c9a8eb819f5259a8ac3d63b199185b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fcntl-locktests/oe_test_ltp_fcntl-locktests_FCNTL_LOCKTESTS.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_fcntl-locktests FCNTL_LOCKTESTS locktests -n 100 -f /tmp/fcntl_locktest_testfile +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "fcntl-locktests FCNTL_LOCKTESTS locktests -n 100 -f /tmp/fcntl_locktest_testfile failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..20b5919139f815c4d02392334cdd08a68721347e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_filecaps/oe_test_ltp_filecaps_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_filecaps 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 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" + CHECK_RESULT $? 1 0 "filecaps 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_fs/oe_test_ltp_fs_binfmt_misc01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc01.sh new file mode 100644 index 0000000000000000000000000000000000000000..29f67c5e3624f10245200441339d1e7fa0570382 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 binfmt_misc01 binfmt_misc01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs binfmt_misc01 binfmt_misc01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_binfmt_misc02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc02.sh new file mode 100644 index 0000000000000000000000000000000000000000..102cda8169739a217b1dc7dab1ae5a474d0fce4b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_binfmt_misc02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 binfmt_misc02 binfmt_misc02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs binfmt_misc02 binfmt_misc02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_fs_di.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_di.sh new file mode 100644 index 0000000000000000000000000000000000000000..e842df957090695e7fbc0378bbad14af7b701b64 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_di.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fs_di fs_di -d $TMPDIR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs fs_di fs_di -d $TMPDIR failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_fs_fill.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_fill.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c09258042c517cf8183176ce045a2e51472ffb4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_fill.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fs_fill fs_fill +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs fs_fill fs_fill failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_fs_inod01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_inod01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ddb479a9323f82e8182f2b7dd3fa3419b43f8983 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_inod01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fs_inod01 fs_inod $TMPDIR 10 10 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs fs_inod01 fs_inod $TMPDIR 10 10 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_fs_racer.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_racer.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc5d20a0127edddc2e99b9721cc98fef765b8d19 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_fs_racer.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fs_racer fs_racer.sh -t 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs fs_racer fs_racer.sh -t 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_ftest01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f4de8d5369e842e24ea1f256e47ec43b0da7556 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftest01 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 -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" + CHECK_RESULT $? 1 0 "fs ftest01 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/oe_test_ltp_fs_ftest02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3667807407111c3fc08935d782c63c542f4376af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftest02 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 -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" + CHECK_RESULT $? 1 0 "fs ftest02 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/oe_test_ltp_fs_ftest03.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest03.sh new file mode 100644 index 0000000000000000000000000000000000000000..c066821c0483982db4074d92a13179fea7343d5c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftest03 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 -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" + CHECK_RESULT $? 1 0 "fs ftest03 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/oe_test_ltp_fs_ftest04.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest04.sh new file mode 100644 index 0000000000000000000000000000000000000000..93bfbd24c34d9b68008caf40b1ba99b6cc5436e2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftest04 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 -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" + CHECK_RESULT $? 1 0 "fs ftest04 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/oe_test_ltp_fs_ftest05.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest05.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2926a3369a2010f7c3560a152e1a426e8116469 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftest05 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 -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" + CHECK_RESULT $? 1 0 "fs ftest05 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/oe_test_ltp_fs_ftest06.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest06.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4fb0a83fd6c8c6c3d40ca1fb3c7233c9e59fb5e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftest06 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 -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" + CHECK_RESULT $? 1 0 "fs ftest06 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/oe_test_ltp_fs_ftest07.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest07.sh new file mode 100644 index 0000000000000000000000000000000000000000..e16042537f5c96f2577e525352968d4b8bf9bed5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftest07 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 -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" + CHECK_RESULT $? 1 0 "fs ftest07 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/oe_test_ltp_fs_ftest08.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest08.sh new file mode 100644 index 0000000000000000000000000000000000000000..50ca6543c537c8c34c0511e1fd7b74059055e88f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_ftest08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftest08 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 -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" + CHECK_RESULT $? 1 0 "fs ftest08 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/oe_test_ltp_fs_gf01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf01.sh new file mode 100644 index 0000000000000000000000000000000000000000..81eae36f82e9cadaea933611c45f058aedf1dfe0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6419227f08f5af768dcd4b27155ebcee3dc24451 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf02 growfiles -W gf02 -b -e 1 -L 10 -i 100 -I p -S 2 -u -f gf03_ -d $TMPDIR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf03.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf03.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a32c95968538c2052550e59451a03bfe96ba38b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf03 growfiles -W gf03 -b -e 1 -g 1 -i 1 -S 150 -u -f gf05_ -d $TMPDIR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf04.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf04.sh new file mode 100644 index 0000000000000000000000000000000000000000..71e2ba3c7c1b2655cd2893fe3bba57600cf6559e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf04 growfiles -W gf04 -b -e 1 -g 4090 -i 500 -t 39000 -u -f gf06_ -d $TMPDIR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf05.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf05.sh new file mode 100644 index 0000000000000000000000000000000000000000..83e0a9c62d350ee3747b08bde55629d2c944d3cb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf05 growfiles -W gf05 -b -e 1 -g 5000 -i 500 -t 49900 -T10 -c9 -I p -u -f gf07_ -d $TMPDIR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf06.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf06.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fb67c8f0179fe44001cfff72b7877568468ea44 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf07.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf07.sh new file mode 100644 index 0000000000000000000000000000000000000000..95a205f0f2b1c34b78f1d234b919a76f463e78a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf08.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf08.sh new file mode 100644 index 0000000000000000000000000000000000000000..01223ab176fb1cf8cb5e073f57b5650f33e18798 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf09.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf09.sh new file mode 100644 index 0000000000000000000000000000000000000000..10696075b8bb74a5f9528547a6503f242406d63b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf10.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf10.sh new file mode 100644 index 0000000000000000000000000000000000000000..30027e83f3e681d1b53811defe32eb59f35a624a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf11.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf11.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b7edf7b6cee0fb7bf9b424254a33c591155d5f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf12.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf12.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d2065cc8b75f7c5f85f4b24fd4a30fdf410949f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf12 mkfifo $TMPDIR/gffifo17; growfiles -b -W gf12 -e 1 -u -i 0 -L 30 $TMPDIR/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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf13.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf13.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb551d68ea3420b4191a2ff22dabd257f811ccff --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf13 mkfifo $TMPDIR/gffifo18; growfiles -b -W gf13 -e 1 -u -i 0 -L 30 -I r -r 1-4096 $TMPDIR/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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf14.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf14.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d7fa69ff58a10b9219b518b8ee68e3d5691e086 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf14 growfiles -W gf14 -b -e 1 -u -i 0 -L 20 -w -l -C 1 -T 10 -f glseek19 -S 2 -d $TMPDIR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf15.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf15.sh new file mode 100644 index 0000000000000000000000000000000000000000..d601e545cba4bdb0266ef40cd3090fa4ef0464bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf15 growfiles -W gf15 -b -e 1 -u -r 1-49600 -I r -u -i 0 -L 120 -f Lgfile1 -d $TMPDIR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf16.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf16.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca3e0cbabaac97ff2c44f5da0b86bfdcd0ac0b3f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf17.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf17.sh new file mode 100644 index 0000000000000000000000000000000000000000..386ced492766a6b7960ac4c6dc0d2cb2b40a82b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf18.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf18.sh new file mode 100644 index 0000000000000000000000000000000000000000..97173fd90eab7fcf2c2fc54036c01b3a5ffd2cbf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf19.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf19.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f5cdac1bb5d7ef7a1e6743ddb7a7875736e62b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf20.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf20.sh new file mode 100644 index 0000000000000000000000000000000000000000..eadb976e2aaf4e4fed032a64b1e40982f974525c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf21.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf21.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ef4400ea3bc0c903750f23a667222e41be797df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf22.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf22.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0469968c547a64c5807fc603a628d7978d34883 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf23.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf23.sh new file mode 100644 index 0000000000000000000000000000000000000000..db48e7061ce4db182e5cade00780bf0682817404 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf24.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf24.sh new file mode 100644 index 0000000000000000000000000000000000000000..83f040a9abd8868423fba8efa4519248b8627f7e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf24 growfiles -W gf24 -D 0 -b -i 0 -L 60 -u -B 1000b -e 1 -g 20480 -f gf-jbld-$$ -d $TMPDIR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf25.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf25.sh new file mode 100644 index 0000000000000000000000000000000000000000..4059688067530b57930bc1546eb36787773222b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf26.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf26.sh new file mode 100644 index 0000000000000000000000000000000000000000..411bc200bac5b8212d8c242da744be95f848f046 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf27.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf27.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e0a749d31a75d8e7551c2e21d9e5ee3c4679a2b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf27 growfiles -W gf27 -b -D 0 -w -g 8b -C 1 -b -i 1000 -u -f gfsparse-1-$$ -d $TMPDIR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf28.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf28.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcd851cefd5d1d728f0d40331cbd9815bf19cd4c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gf28 growfiles -W gf28 -b -D 0 -w -g 16b -C 1 -b -i 1000 -u -f gfsparse-2-$$ -d $TMPDIR +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf29.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf29.sh new file mode 100644 index 0000000000000000000000000000000000000000..f005c08d651cbfd2a4b66a58ae415d8455ec920d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_gf30.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf30.sh new file mode 100644 index 0000000000000000000000000000000000000000..57692172831e57470429af28d3d7924d13901b78 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_gf30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 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 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_inode01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e93dfdd53ea03ca89d9afe687047c9882a41bd28 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inode01 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 -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" + CHECK_RESULT $? 1 0 "fs inode01 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/oe_test_ltp_fs_inode02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6165224717a1b951e918a392b084ecf8cb086c1c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_inode02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inode02 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 -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" + CHECK_RESULT $? 1 0 "fs inode02 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/oe_test_ltp_fs_iogen01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_iogen01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7076b1b66107fe644a5ad0d536d656a916262394 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_iogen01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 iogen01 export LTPROOT; rwtest -N iogen01 -i 120s -s read,write -Da -Dv -n 2 500b:$TMPDIR/doio.f1.$$ 1000b:$TMPDIR/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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_isofs.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_isofs.sh new file mode 100644 index 0000000000000000000000000000000000000000..206cc6a069c4d6352162024e0460558218cdeab9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_isofs.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 isofs isofs.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs isofs isofs.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_lftest01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_lftest01.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3d1b4dfd1d1cfd9ea4968a3bbf461b4a6822d42 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_lftest01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lftest01 lftest +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs lftest01 lftest failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_linker01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_linker01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ecc962ffe9447ff6b791f9316fafbafc54f92d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_linker01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 linker01 linktest.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs linker01 linktest.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_openfile01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_openfile01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6220489cfad570cbf7988f0e0bfc1b2ed472c57 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_openfile01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 openfile01 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 -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" + CHECK_RESULT $? 1 0 "fs openfile01 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/oe_test_ltp_fs_proc01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_proc01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a389446653ca6587fd12997cfa05670dc61ca4f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_proc01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 proc01 proc01 -m 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 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" + CHECK_RESULT $? 1 0 "fs proc01 proc01 -m 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..b997e29d62385138217503303e8f1dfbba49e5b5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_quota_remount_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_fs quota_remount_test01 quota_remount_test01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs quota_remount_test01 quota_remount_test01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_read_all_dev.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_dev.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ddea13845ff9d6d2afb347dde8fc655b5a1aef6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_dev.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 read_all_dev read_all -d /dev -p -q -r 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 -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" + CHECK_RESULT $? 1 0 "fs read_all_dev read_all -d /dev -p -q -r 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/oe_test_ltp_fs_read_all_proc.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_proc.sh new file mode 100644 index 0000000000000000000000000000000000000000..010597cd41fdca05debfddb74b09d76f3fe8adcb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_proc.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 read_all_proc read_all -d /proc -q -r 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 -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" + CHECK_RESULT $? 1 0 "fs read_all_proc read_all -d /proc -q -r 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/oe_test_ltp_fs_read_all_sys.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_sys.sh new file mode 100644 index 0000000000000000000000000000000000000000..04880717faa38bbe7ec1f73f6e3a308b00dd3c60 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_read_all_sys.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 read_all_sys read_all -d /sys -q -r 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 -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" + CHECK_RESULT $? 1 0 "fs read_all_sys read_all -d /sys -q -r 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/oe_test_ltp_fs_rwtest01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1166172cef23b0f03855a109569914dbf548748e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_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_fs rwtest01 export LTPROOT; rwtest -N rwtest01 -c -q -i 60s -f sync 10%25000:$TMPDIR/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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_rwtest02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest02.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d09ae62ec6affa56ed179017294c7b3fc324a0e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_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_fs rwtest02 export LTPROOT; rwtest -N rwtest02 -c -q -i 60s -f buffered 10%25000:$TMPDIR/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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_rwtest03.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest03.sh new file mode 100644 index 0000000000000000000000000000000000000000..19fc15f9291b39982a624ff749a3e41a7a6cbde9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_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_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-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_rwtest04.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest04.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b63266435728971f8854e475d1e446b954f960c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_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_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-$$ +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_rwtest05.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_rwtest05.sh new file mode 100644 index 0000000000000000000000000000000000000000..86721f058eafd672ebe78b2a96e68996ff47162d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_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_fs rwtest05 export LTPROOT; rwtest -N rwtest05 -c -q -i 50 -T 64b 500b:$TMPDIR/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 -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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_squashfs01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_squashfs01.sh new file mode 100644 index 0000000000000000000000000000000000000000..441e5768247ab4d35fb8a7798b04c604cd9f1600 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_squashfs01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 squashfs01 squashfs01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "fs squashfs01 squashfs01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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/oe_test_ltp_fs_stream01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebab708029af6540108273248fa2b4ccd8c8ba1a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stream01 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 -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" + CHECK_RESULT $? 1 0 "fs stream01 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/oe_test_ltp_fs_stream02.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9837c882547beaa5831bf6994e0e29601e819b3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stream02 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 -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" + CHECK_RESULT $? 1 0 "fs stream02 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/oe_test_ltp_fs_stream03.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream03.sh new file mode 100644 index 0000000000000000000000000000000000000000..005127bc16524bd719c130324bcea1ee1fa6a831 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stream03 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 -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" + CHECK_RESULT $? 1 0 "fs stream03 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/oe_test_ltp_fs_stream04.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream04.sh new file mode 100644 index 0000000000000000000000000000000000000000..38055a1b6931468aa00e6b5e7d3d29b7a0b198a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stream04 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 -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" + CHECK_RESULT $? 1 0 "fs stream04 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/oe_test_ltp_fs_stream05.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream05.sh new file mode 100644 index 0000000000000000000000000000000000000000..03976f61ec9ef5c90364f19af575ba1632a3a06a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_stream05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stream05 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 -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" + CHECK_RESULT $? 1 0 "fs stream05 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/oe_test_ltp_fs_writetest01.sh b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_writetest01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6efdb2b1711e13a1e0d3078cfa203e2dfc70cfd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs/oe_test_ltp_fs_writetest01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 writetest01 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 -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" + CHECK_RESULT $? 1 0 "fs writetest01 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..dbf0ee6303aa44fcd43ea3480fb02dacf8e2b9a6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind01_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_fs_bind fs_bind01_sh fs_bind01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind01_sh fs_bind01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..7b85cdec01c25ed032c3faedb45fc7c87537eea0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind02_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_fs_bind fs_bind02_sh fs_bind02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind02_sh fs_bind02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..c8f0ec2b55d870e58f48d1222d6b7d4ebd2fc3fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind03_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_fs_bind fs_bind03_sh fs_bind03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind03_sh fs_bind03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..582bde1bb1d739330a9ccda12dadb22ac8372c8a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind04_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_fs_bind fs_bind04_sh fs_bind04.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind04_sh fs_bind04.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..2c76a8ceb7113f3657cccb8997be1628e7c9b33f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind05_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_fs_bind fs_bind05_sh fs_bind05.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind05_sh fs_bind05.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..c458a83b8e19f6927544803607292a23f2d3c6fb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind06_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_fs_bind fs_bind06_sh fs_bind06.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind06_sh fs_bind06.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..a340ce260de2d1d9f12bdb2fc52efc66ab8330cf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind07-2_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_fs_bind fs_bind07-2_sh fs_bind07-2.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind07-2_sh fs_bind07-2.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..b9e4c472f657a7155762c8a8de742dc796093643 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind07_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_fs_bind fs_bind07_sh fs_bind07.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind07_sh fs_bind07.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..cb0f0c986eea6a4263d0bcdecf0229941f64b74a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind08_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_fs_bind fs_bind08_sh fs_bind08.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind08_sh fs_bind08.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..743192cd6d50e449225082841cd003bfeb35bcaf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind09_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_fs_bind fs_bind09_sh fs_bind09.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind09_sh fs_bind09.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..58edfa8aaf0fb2338e256c87a358443a93b0fcd9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind10_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_fs_bind fs_bind10_sh fs_bind10.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind10_sh fs_bind10.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..02dbeba3806fa629855338d6b9f84b24393e8619 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind11_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_fs_bind fs_bind11_sh fs_bind11.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind11_sh fs_bind11.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..0b3d4d0aef403025678c239b87afece462df9713 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind12_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_fs_bind fs_bind12_sh fs_bind12.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind12_sh fs_bind12.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..b7087e2ec1fba2295faf58a0a378f5377a5c697b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind13_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_fs_bind fs_bind13_sh fs_bind13.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind13_sh fs_bind13.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..34187fbcf6e537086b2e799dd1884c16399d4b80 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind14_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_fs_bind fs_bind14_sh fs_bind14.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind14_sh fs_bind14.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..045d557d81dc97a590ceb17ddc581c5ea84f4d0b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind15_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_fs_bind fs_bind15_sh fs_bind15.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind15_sh fs_bind15.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..08ee7f9b99aa790e8ed7952920a788d0ee75f56e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind16_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_fs_bind fs_bind16_sh fs_bind16.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind16_sh fs_bind16.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..ef1d6c23dd64ac91675f01ce7294ae52b90313a1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind17_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_fs_bind fs_bind17_sh fs_bind17.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind17_sh fs_bind17.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..20acd925ca961fd6a424b2e8823224e3f5e93510 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind18_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_fs_bind fs_bind18_sh fs_bind18.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind18_sh fs_bind18.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..3357cb23bb67761b2680868a4e701c7263ff4684 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind19_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_fs_bind fs_bind19_sh fs_bind19.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind19_sh fs_bind19.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..e98399754b1d4cf049ec235a13a50f0d35c8cfd4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind20_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_fs_bind fs_bind20_sh fs_bind20.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind20_sh fs_bind20.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..1b1cddefbcee7668d93a45e81416ff56a7117b13 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind21_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_fs_bind fs_bind21_sh fs_bind21.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind21_sh fs_bind21.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..5b57404c8fc9e1d9a2bd11bd15497d0590b0e3d9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind22_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_fs_bind fs_bind22_sh fs_bind22.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind22_sh fs_bind22.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..637985953d63f8513c23b20f75674eb7dc64a5b9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind23_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_fs_bind fs_bind23_sh fs_bind23.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind23_sh fs_bind23.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..85a1e687fc54975726118f4e9cf42be6bd0a54ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind24_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_fs_bind fs_bind24_sh fs_bind24.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind24_sh fs_bind24.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..8aaabd2323ef7408b015ab7fe7361dcc58cc45dd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS01_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_fs_bind fs_bind_cloneNS01_sh fs_bind_cloneNS01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS01_sh fs_bind_cloneNS01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..a0376d2d7c6c78564ca33cdba593d3b0f3e4cff0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS02_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_fs_bind fs_bind_cloneNS02_sh fs_bind_cloneNS02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS02_sh fs_bind_cloneNS02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..b7ea704ed8efba990032156e7fc2847fbbcfc24e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS03_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_fs_bind fs_bind_cloneNS03_sh fs_bind_cloneNS03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS03_sh fs_bind_cloneNS03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..f15fdb7ebb7098e080be956c8aba3e209fefb90e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS04_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_fs_bind fs_bind_cloneNS04_sh fs_bind_cloneNS04.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS04_sh fs_bind_cloneNS04.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..bf2e6252ee5bf93aed26c7f7f6aa5edce08bc355 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS05_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_fs_bind fs_bind_cloneNS05_sh fs_bind_cloneNS05.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS05_sh fs_bind_cloneNS05.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..dbac4e84b3f3075a7b075db239c3a1453df2ce24 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS06_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_fs_bind fs_bind_cloneNS06_sh fs_bind_cloneNS06.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS06_sh fs_bind_cloneNS06.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..f1780306f31509389dbb2cba35e10fe80833f263 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_cloneNS07_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_fs_bind fs_bind_cloneNS07_sh fs_bind_cloneNS07.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_cloneNS07_sh fs_bind_cloneNS07.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..bd2e75ec5cb8d5d72ba638e3a6de9b328f8b5a36 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move01_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_fs_bind fs_bind_move01_sh fs_bind_move01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move01_sh fs_bind_move01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..a0ef7f807a1e02b112919b0ef5357906b956febd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move02_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_fs_bind fs_bind_move02_sh fs_bind_move02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move02_sh fs_bind_move02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..45dfba5886baaaf31d077f70f9aa902a751084ae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move03_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_fs_bind fs_bind_move03_sh fs_bind_move03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move03_sh fs_bind_move03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..b0231fbf64d8971b6a42b4a6c07949d0a06782c3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move04_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_fs_bind fs_bind_move04_sh fs_bind_move04.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move04_sh fs_bind_move04.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..b0053454b1bac36655363c17ac99d80264da474a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move05_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_fs_bind fs_bind_move05_sh fs_bind_move05.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move05_sh fs_bind_move05.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..cbc67245acc39551d79abff44acfd7a1fb308bc5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move06_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_fs_bind fs_bind_move06_sh fs_bind_move06.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move06_sh fs_bind_move06.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..365013bbe90a7ad631356a72f15b926110683f4d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move07_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_fs_bind fs_bind_move07_sh fs_bind_move07.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move07_sh fs_bind_move07.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..d9892e7b4d248561cf8c463eae7d9df8bbd178ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move08_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_fs_bind fs_bind_move08_sh fs_bind_move08.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move08_sh fs_bind_move08.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..6625a98a5bfeca723cbe9fa83889df8c87a80022 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move09_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_fs_bind fs_bind_move09_sh fs_bind_move09.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move09_sh fs_bind_move09.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..03622bf9980ce1d938982a38142f4d6870d533b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move10_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_fs_bind fs_bind_move10_sh fs_bind_move10.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move10_sh fs_bind_move10.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..21256bc3e75456d90fb06ce6547d6ad45c702ee4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move11_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_fs_bind fs_bind_move11_sh fs_bind_move11.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move11_sh fs_bind_move11.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..7d2691884a90de70e23637204f03a4d33e623189 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move12_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_fs_bind fs_bind_move12_sh fs_bind_move12.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move12_sh fs_bind_move12.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..e4281dbb801f1ea33cbd4dd6422ff3b209676c6f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move13_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_fs_bind fs_bind_move13_sh fs_bind_move13.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move13_sh fs_bind_move13.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..67aa2a92e6e362fb85b472668bf13dd74180c41c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move14_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_fs_bind fs_bind_move14_sh fs_bind_move14.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move14_sh fs_bind_move14.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..75e952914b0cf6a00badb71dacc641ac8fcb77d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move15_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_fs_bind fs_bind_move15_sh fs_bind_move15.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move15_sh fs_bind_move15.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..8250591b7ea1d3ea302bdf3f8f60dafcaa28e5dd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move16_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_fs_bind fs_bind_move16_sh fs_bind_move16.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move16_sh fs_bind_move16.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..eef56ed13cebf8f9df6facb2acfcf6a132c8b39c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move17_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_fs_bind fs_bind_move17_sh fs_bind_move17.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move17_sh fs_bind_move17.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..eed4a381687b587a76358d0a0714d6515e539956 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move18_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_fs_bind fs_bind_move18_sh fs_bind_move18.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move18_sh fs_bind_move18.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..499faebcc26d469d67e29cabcc91a12d1918d017 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move19_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_fs_bind fs_bind_move19_sh fs_bind_move19.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move19_sh fs_bind_move19.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..f860c7d84915bbdae692cb3362e2b1996b79def1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move20_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_fs_bind fs_bind_move20_sh fs_bind_move20.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move20_sh fs_bind_move20.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..f1bb9285876cbb1d5cf64388c6f9a760825b30fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move21_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_fs_bind fs_bind_move21_sh fs_bind_move21.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move21_sh fs_bind_move21.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..5e8a8c2ef1873a0504de4128c01f2c79387b1859 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_move22_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_fs_bind fs_bind_move22_sh fs_bind_move22.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_move22_sh fs_bind_move22.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..345ed0722e535c5ce215d1aec0d396e92621d9f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind01_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_fs_bind fs_bind_rbind01_sh fs_bind_rbind01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind01_sh fs_bind_rbind01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..d50e934bd4cf0cc9f6b0ee15f80e90eed745c634 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind02_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_fs_bind fs_bind_rbind02_sh fs_bind_rbind02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind02_sh fs_bind_rbind02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..ff5648e21f653e88b41c896bccb61c3f22b83f99 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind03_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_fs_bind fs_bind_rbind03_sh fs_bind_rbind03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind03_sh fs_bind_rbind03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..ba60534cd2b0384990249a87f8aec53bd40bb5b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind04_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_fs_bind fs_bind_rbind04_sh fs_bind_rbind04.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind04_sh fs_bind_rbind04.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..e84995ff1348756f8fd200bf3234c8d8deaa3ff0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind05_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_fs_bind fs_bind_rbind05_sh fs_bind_rbind05.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind05_sh fs_bind_rbind05.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..cf41d8af314cea47f9aead6054701352ebf84a85 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind06_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_fs_bind fs_bind_rbind06_sh fs_bind_rbind06.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind06_sh fs_bind_rbind06.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..ecb659b028fa7bd3245cb489b315babd5a9c242b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind07-2_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_fs_bind fs_bind_rbind07-2_sh fs_bind_rbind07-2.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind07-2_sh fs_bind_rbind07-2.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..08e9f2d0bbbe70b689f0a465843944f360c4fe74 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind07_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_fs_bind fs_bind_rbind07_sh fs_bind_rbind07.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind07_sh fs_bind_rbind07.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..c74300cfd0b1e3a1674d732cc3cbd5b4c3925751 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind08_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_fs_bind fs_bind_rbind08_sh fs_bind_rbind08.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind08_sh fs_bind_rbind08.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..ae428cf189e12db1a11f29c0507b97b58e8cef49 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind09_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_fs_bind fs_bind_rbind09_sh fs_bind_rbind09.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind09_sh fs_bind_rbind09.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..1a6424933c255e1919e1bf7baf8ce075b61f2b44 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind10_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_fs_bind fs_bind_rbind10_sh fs_bind_rbind10.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind10_sh fs_bind_rbind10.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..3970efd197a981f2b599f970a744d80c1cf65b8a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind11_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_fs_bind fs_bind_rbind11_sh fs_bind_rbind11.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind11_sh fs_bind_rbind11.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..5ea8b6490cdaf13db9be8e108e497951f7694039 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind12_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_fs_bind fs_bind_rbind12_sh fs_bind_rbind12.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind12_sh fs_bind_rbind12.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..2acb642fcf6747c80f2386e3fa0f35220ec1e30d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind13_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_fs_bind fs_bind_rbind13_sh fs_bind_rbind13.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind13_sh fs_bind_rbind13.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..2504f1853b2942e513cb873b524fef66be77efe5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind14_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_fs_bind fs_bind_rbind14_sh fs_bind_rbind14.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind14_sh fs_bind_rbind14.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..8ece9f5787290c8ad022073f88237c7d5363053d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind15_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_fs_bind fs_bind_rbind15_sh fs_bind_rbind15.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind15_sh fs_bind_rbind15.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..ce8efde898805b6d625eff0d227c38feec00e54b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind16_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_fs_bind fs_bind_rbind16_sh fs_bind_rbind16.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind16_sh fs_bind_rbind16.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..dfd0d15cc342394a094e50451a7d5790068838d8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind17_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_fs_bind fs_bind_rbind17_sh fs_bind_rbind17.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind17_sh fs_bind_rbind17.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..e9fb9762f138a6528ba01a27c9ebe0d921983f64 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind18_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_fs_bind fs_bind_rbind18_sh fs_bind_rbind18.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind18_sh fs_bind_rbind18.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..1dde2dcd87f450422b247cbee7a1c1fbafac14fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind19_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_fs_bind fs_bind_rbind19_sh fs_bind_rbind19.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind19_sh fs_bind_rbind19.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..fb158a25d3a142e03dd652b5309db44919b1c65e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind20_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_fs_bind fs_bind_rbind20_sh fs_bind_rbind20.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind20_sh fs_bind_rbind20.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..647dd97b74447d3a1595fc377934e797540bb793 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind21_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_fs_bind fs_bind_rbind21_sh fs_bind_rbind21.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind21_sh fs_bind_rbind21.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..ffeced000b05ecdad806d20634a7588fff714b04 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind22_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_fs_bind fs_bind_rbind22_sh fs_bind_rbind22.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind22_sh fs_bind_rbind22.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..ed59f71e2e8eb9f6e066ba4343ab9c9ae0b60f7f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind23_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_fs_bind fs_bind_rbind23_sh fs_bind_rbind23.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind23_sh fs_bind_rbind23.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..20d2c278d18ee13af0006672b67f786ed043e14f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind24_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_fs_bind fs_bind_rbind24_sh fs_bind_rbind24.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind24_sh fs_bind_rbind24.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..58ca2962fcbdcafc356ec26572489245d5600b0a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind25_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_fs_bind fs_bind_rbind25_sh fs_bind_rbind25.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind25_sh fs_bind_rbind25.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..533433e262dc2157d7a6cd71426fd91e119a5396 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind26_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_fs_bind fs_bind_rbind26_sh fs_bind_rbind26.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind26_sh fs_bind_rbind26.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..db06980ae36acf47e5f4c0a8496733dd619aea1c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind27_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_fs_bind fs_bind_rbind27_sh fs_bind_rbind27.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind27_sh fs_bind_rbind27.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..7858db2021b2df23627b21018c667f767e7b02f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind28_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_fs_bind fs_bind_rbind28_sh fs_bind_rbind28.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind28_sh fs_bind_rbind28.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..b6e4ba61cfb345a33a656ac436bfa74aadcac82e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind29_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_fs_bind fs_bind_rbind29_sh fs_bind_rbind29.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind29_sh fs_bind_rbind29.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..78574a0b8bee0197387bc19d1b5c970d0e1a3ca6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind30_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_fs_bind fs_bind_rbind30_sh fs_bind_rbind30.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind30_sh fs_bind_rbind30.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..e8d992f2af9d37485337342a4ae65c2148bc1de3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind31_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_fs_bind fs_bind_rbind31_sh fs_bind_rbind31.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind31_sh fs_bind_rbind31.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..eab129c9f948a29febc9b9134a0e025bab04529e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind32_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_fs_bind fs_bind_rbind32_sh fs_bind_rbind32.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind32_sh fs_bind_rbind32.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..2ea8be29c31b62fbe03ac5cba4d25b3c865060e6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind33_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_fs_bind fs_bind_rbind33_sh fs_bind_rbind33.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind33_sh fs_bind_rbind33.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..9f994ad39c5cb985d60fe2482fa07fdd0b9bb142 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind34_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_fs_bind fs_bind_rbind34_sh fs_bind_rbind34.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind34_sh fs_bind_rbind34.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..84e995efd08ca01d9f3964433acd3c6e4679274e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind35_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_fs_bind fs_bind_rbind35_sh fs_bind_rbind35.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind35_sh fs_bind_rbind35.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..e94e7b50d4ba411151bd64e74f5246e4e6aa383c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind36_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_fs_bind fs_bind_rbind36_sh fs_bind_rbind36.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind36_sh fs_bind_rbind36.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..690966efdca7c0f8bd8d231a5bfa06c54a2da575 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind37_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_fs_bind fs_bind_rbind37_sh fs_bind_rbind37.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind37_sh fs_bind_rbind37.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..b6c8007c573f83a73a81509559c13c9dc4dc8d0a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind38_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_fs_bind fs_bind_rbind38_sh fs_bind_rbind38.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind38_sh fs_bind_rbind38.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..12e480784c44844076a93f99515ae2faaaa248f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_rbind39_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_fs_bind fs_bind_rbind39_sh fs_bind_rbind39.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_rbind39_sh fs_bind_rbind39.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..600ab4262cd55585804e45e99f8c26cfef6b8f5c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_bind/oe_test_ltp_fs_bind_fs_bind_regression_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_fs_bind fs_bind_regression_sh fs_bind_regression.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_bind fs_bind_regression_sh fs_bind_regression.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..1860e5e2b3f02a2527ae2f4c3758738a62b68191 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms01 fs_perms 005 99 99 12 100 x 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms01 fs_perms 005 99 99 12 100 x 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..ac866a4cf9e3e1a5ecc5f63ec64ccad94fb80e20 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms02 fs_perms 050 99 99 200 99 x 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms02 fs_perms 050 99 99 200 99 x 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..a866dbc0934e876525e8c50abbf96b8486d6727a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms03 fs_perms 500 99 99 99 500 x 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms03 fs_perms 500 99 99 99 500 x 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..d273ffbf6d7b460a672d7e62c3b1f060837a5af6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms04 fs_perms 002 99 99 12 100 w 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms04 fs_perms 002 99 99 12 100 w 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..32bf8ca555949154d07369de761803854fd8a694 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms05 fs_perms 020 99 99 200 99 w 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms05 fs_perms 020 99 99 200 99 w 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..802665d1b91ebd611b9f25f7ea96698c667b1cc9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms06 fs_perms 200 99 99 99 500 w 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms06 fs_perms 200 99 99 99 500 w 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..b6f78f8fcb69184d841a4d1dea1bd0e649b2c5c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms07 fs_perms 004 99 99 12 100 r 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms07 fs_perms 004 99 99 12 100 r 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..a64997e91c76b43440d773c06ef23f3bc79233e0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms08 fs_perms 040 99 99 200 99 r 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms08 fs_perms 040 99 99 200 99 r 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..18952c139bf7b7da5583dcf92d7f8043202ebca2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms09 fs_perms 400 99 99 99 500 r 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms09 fs_perms 400 99 99 99 500 r 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_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 new file mode 100644 index 0000000000000000000000000000000000000000..3c44f945f35141177f25d6f7fefe15fbb2688abb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms10 fs_perms 000 99 99 99 99 r 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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms10 fs_perms 000 99 99 99 99 r 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..fd4fd48f708c1757720e181fbe629b3fca035a95 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms11 fs_perms 000 99 99 99 99 w 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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms11 fs_perms 000 99 99 99 99 w 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..10587a981b1aa0d8f35d7a57d953629c3b25ae07 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms12 fs_perms 000 99 99 99 99 x 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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms12 fs_perms 000 99 99 99 99 x 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..61efdb88b30b1ef10dfa44ad1a73b5f3057659f6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms13 fs_perms 010 99 99 99 500 x 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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms13 fs_perms 010 99 99 99 500 x 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..7239424fb32b7ea8170c09c166f5eddb3c809ea7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms14 fs_perms 100 99 99 200 99 x 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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms14 fs_perms 100 99 99 200 99 x 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..54c893a2686a9021d2a6bcc83283af49752ab333 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms15 fs_perms 020 99 99 99 500 w 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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms15 fs_perms 020 99 99 99 500 w 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..81183d98c4aaa9b4f97bfc1a340b5728e1ef743c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms16 fs_perms 200 99 99 200 99 w 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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms16 fs_perms 200 99 99 200 99 w 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..8a2228f22d68e832123343187768aef7eb000db0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms17 fs_perms 040 99 99 99 500 r 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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms17 fs_perms 040 99 99 99 500 r 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..452d546cfa1229b399d07b7becea0a487b2ba96f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_fs_perms_simple/oe_test_ltp_fs_perms_simple_fs_perms18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_perms_simple fs_perms18 fs_perms 400 99 99 200 99 r 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_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" + CHECK_RESULT $? 1 0 "fs_perms_simple fs_perms18 fs_perms 400 99 99 200 99 r 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_hugetlb/oe_test_ltp_hugetlb_hugefallocate01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate01.sh new file mode 100644 index 0000000000000000000000000000000000000000..289315160b2a14956e8f9686c72608c1bbd1550c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugefallocate01 hugefallocate01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugefallocate01 hugefallocate01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugefallocate02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate02.sh new file mode 100644 index 0000000000000000000000000000000000000000..aeb0c12f4eaa7c76f8137bf6add36f784a2487ab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefallocate02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugefallocate02 hugefallocate02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugefallocate02 hugefallocate02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugefork01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d487fafed785c0b2b752f4a4a6b90b314473226 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugefork01 hugefork01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugefork01 hugefork01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugefork02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5b255f3b7540fdbf3e8a864d9895a6dfc8eebdd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugefork02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugefork02 hugefork02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugefork02 hugefork02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f119bf88dad28110d03c3b0f6f271a71a4a2e6d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap01 hugemmap01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap01 hugemmap01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a364fe3b8586f23ed4ecb20bc58f500c0471ba77 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap02 hugemmap02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap02 hugemmap02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap04.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap04.sh new file mode 100644 index 0000000000000000000000000000000000000000..c822ed57e45095c7aed81dc54eb019f4919f6b80 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap04 hugemmap04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap04 hugemmap04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap05.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05.sh new file mode 100644 index 0000000000000000000000000000000000000000..c87cc01af12f861d6a5646bf4892cd375bcd0aef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap05 hugemmap05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap05 hugemmap05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap05_1.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_1.sh new file mode 100644 index 0000000000000000000000000000000000000000..edcee71b24e14102d3ad19199e25ce82ddb497d8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap05_1 hugemmap05 -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 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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap05_1 hugemmap05 -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_hugetlb/oe_test_ltp_hugetlb_hugemmap05_2.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_2.sh new file mode 100644 index 0000000000000000000000000000000000000000..22732006ff48f22fceffec883026eb3798e050fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap05_2 hugemmap05 -s +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap05_2 hugemmap05 -s failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap05_3.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_3.sh new file mode 100644 index 0000000000000000000000000000000000000000..00d79eed2604fec4263007060862064878139978 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap05_3.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap05_3 hugemmap05 -s -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 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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap05_3 hugemmap05 -s -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_hugetlb/oe_test_ltp_hugetlb_hugemmap06.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap06.sh new file mode 100644 index 0000000000000000000000000000000000000000..623aa913ed7954e77d3bc7a4a589779ba723c2d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap06 hugemmap06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap06 hugemmap06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap07.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap07.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f292fe98f4c8aa82ad38de5398df642909432dc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap07 hugemmap07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap07 hugemmap07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap08.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap08.sh new file mode 100644 index 0000000000000000000000000000000000000000..d40b651b62b6342a018ec4242fe9a155de7d04b5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap08 hugemmap08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap08 hugemmap08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap09.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap09.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7d3084abef3bc115aa067da0e778fc2ef1cac4b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap09 hugemmap09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap09 hugemmap09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap10.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap10.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cacdaefcae22e2877b1bc78bea61e3d022049df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap10 hugemmap10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap10 hugemmap10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap11.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap11.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbdf4b52d5ff0260de6fdd07c30b8921ad046cfe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap11 hugemmap11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap11 hugemmap11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap12.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap12.sh new file mode 100644 index 0000000000000000000000000000000000000000..672fd11a234380a9ba0d18d3fd73d0144508ff98 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap12 hugemmap12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap12 hugemmap12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap13.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap13.sh new file mode 100644 index 0000000000000000000000000000000000000000..909c453285f1010401188fb5100e71e9b11a946a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap13 hugemmap13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap13 hugemmap13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap14.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap14.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fad2759547102b103970e8423740acfe4a84caa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap14 hugemmap14 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap14 hugemmap14 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap15.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap15.sh new file mode 100644 index 0000000000000000000000000000000000000000..84aed54ab03ee0556e686097422ac52469c998de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap15 hugemmap15 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap15 hugemmap15 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap16.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap16.sh new file mode 100644 index 0000000000000000000000000000000000000000..24e2aa2d18db218db78572bc40043816e8e7c026 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap16 hugemmap16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap16 hugemmap16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap17.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap17.sh new file mode 100644 index 0000000000000000000000000000000000000000..55f9dda26411f85eecdc91bbf99bdf9e28f5c5e3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap17 hugemmap17 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap17 hugemmap17 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap18.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap18.sh new file mode 100644 index 0000000000000000000000000000000000000000..31727510846a7891e32d34fcec1b29563160bca4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap18 hugemmap18 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap18 hugemmap18 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap19.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap19.sh new file mode 100644 index 0000000000000000000000000000000000000000..eaa93adfd16feb7e1db95cfb3f8e91b0f9f1aa3d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap19 hugemmap19 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap19 hugemmap19 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap20.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap20.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfb774cfb54571f2d5c81296e3fcb256117e1bc8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap20 hugemmap20 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap20 hugemmap20 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap21.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap21.sh new file mode 100644 index 0000000000000000000000000000000000000000..57a56cf1a397fd6d9da565eac41e764cfd1f642e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap21 hugemmap21 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap21 hugemmap21 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap22.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap22.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e5deddec179edf09444e5f77488aa8924adcdbe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap22 hugemmap22 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap22 hugemmap22 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap23.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap23.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb821246779f21eeb89526e56f1fd4cf4afb350d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap23 hugemmap23 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap23 hugemmap23 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap24.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap24.sh new file mode 100644 index 0000000000000000000000000000000000000000..18746a345a2acf2b1368f7d4c7c107ab06cfea60 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap24 hugemmap24 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap24 hugemmap24 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap25.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap25.sh new file mode 100644 index 0000000000000000000000000000000000000000..bffc4c8cd300075db9e5bc857f6287aed88f7148 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap25 hugemmap25 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap25 hugemmap25 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap26.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap26.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2422e01aa2dd5ef18128bcca0d972b5b99c4f02 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap26 hugemmap26 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap26 hugemmap26 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap27.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap27.sh new file mode 100644 index 0000000000000000000000000000000000000000..47fbb99fcb7af1c7c7f0e31fa213fa6cc0aa4030 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap27 hugemmap27 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap27 hugemmap27 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap28.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap28.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9b1892f39cee28e68cc10111004b55b34b20602 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap28 hugemmap28 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap28 hugemmap28 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap29.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap29.sh new file mode 100644 index 0000000000000000000000000000000000000000..65eb1c398f0f93e0179f6e2594aea45d6ee49b53 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap29 hugemmap29 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap29 hugemmap29 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap30.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap30.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ad65bc36a2f31e128d5e84a763f3bafbd668f77 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap30 hugemmap30 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap30 hugemmap30 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap31.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap31.sh new file mode 100644 index 0000000000000000000000000000000000000000..491fa65720e17c8c9fdaeef4b29aaa8e1587d589 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap31 hugemmap31 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap31 hugemmap31 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugemmap32.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap32.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc53a27c6947e53390ee30aabf6a09d5a7b145a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugemmap32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugemmap32 hugemmap32 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugemmap32 hugemmap32 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmat01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..21002735309e217a93f1ce855f5a06aef60d3209 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmat01 hugeshmat01 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmat01 hugeshmat01 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmat02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..18a23237ffd78c027474c82d27df6b2f2cd46b65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmat02 hugeshmat02 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmat02 hugeshmat02 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmat03.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat03.sh new file mode 100644 index 0000000000000000000000000000000000000000..2103d70e8c70d1ba41e048004234bff9958b12d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmat03 hugeshmat03 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmat03 hugeshmat03 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmat04.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat04.sh new file mode 100644 index 0000000000000000000000000000000000000000..683e27497f5f8aaba8bd374e45fc7e96d158df0c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmat04 hugeshmat04 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmat04 hugeshmat04 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmat05.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat05.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a91eca6248fea4858642b04511a415a39bff015 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmat05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmat05 hugeshmat05 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmat05 hugeshmat05 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmctl01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..b25539ae9419499edd997ee26e7a3ca8226e28f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmctl01 hugeshmctl01 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmctl01 hugeshmctl01 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmctl02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..af31d70b6f92a1de4af5599d93733f3087db732b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmctl02 hugeshmctl02 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmctl02 hugeshmctl02 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmctl03.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c38ddb69fe65294caa43d43fffbd352533446b1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmctl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmctl03 hugeshmctl03 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmctl03 hugeshmctl03 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmdt01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmdt01.sh new file mode 100644 index 0000000000000000000000000000000000000000..df2a1439f3e016d0364671438cbcfce5febb6d3e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmdt01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmdt01 hugeshmdt01 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmdt01 hugeshmdt01 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmget01.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget01.sh new file mode 100644 index 0000000000000000000000000000000000000000..df67beb8519a752b19d5b2852f6305b06d11746a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmget01 hugeshmget01 -i 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmget01 hugeshmget01 -i 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmget02.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a6e80876d42dbead4cafe4f661187f2606a6d1f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmget02 hugeshmget02 -i 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmget02 hugeshmget02 -i 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmget03.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget03.sh new file mode 100644 index 0000000000000000000000000000000000000000..df05f1a04eab16dd63dd6a20a8de9b999c0e632f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmget03 hugeshmget03 -i 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmget03 hugeshmget03 -i 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hugeshmget05.sh b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget05.sh new file mode 100644 index 0000000000000000000000000000000000000000..c10ba970e7947ed6550a099b0ec4883badfd52e0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hugetlb/oe_test_ltp_hugetlb_hugeshmget05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hugetlb hugeshmget05 hugeshmget05 -i 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hugetlb hugeshmget05 hugeshmget05 -i 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e1cfe534eaa37f173b2cc059656046c90120c8ec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hyperthreading/oe_test_ltp_hyperthreading_smt_smp_affinity.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hyperthreading smt_smp_affinity smt_smp_affinity.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hyperthreading smt_smp_affinity smt_smp_affinity.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..7a86dad90644fe2ce5137ba2363671d1a1e6ad24 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_hyperthreading/oe_test_ltp_hyperthreading_smt_smp_enabled.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_hyperthreading smt_smp_enabled smt_smp_enabled.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "hyperthreading smt_smp_enabled smt_smp_enabled.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..7d7bebae35e7dff7bd817320df16b3d0860dc5bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_input input01 input01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "input input01 input01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_input02.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input02.sh new file mode 100644 index 0000000000000000000000000000000000000000..12eb4042c55a50bd3d327927b5097e633afdd427 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_input input02 input02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "input input02 input02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_input03.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input03.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c087f026f6e6828bf047f57786d0a94e76ab1fd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_input input03 input03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "input input03 input03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_input04.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input04.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ca5313ea095893659e7b5858cdbf5cfb2804068 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_input input04 input04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "input input04 input04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_input05.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input05.sh new file mode 100644 index 0000000000000000000000000000000000000000..24abda23bbc785cb4c34283c336debdeb15a46df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_input input05 input05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "input input05 input05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_input06.sh b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input06.sh new file mode 100644 index 0000000000000000000000000000000000000000..361eea006a27b341a6e84df69033bc14b7e7e01f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_input/oe_test_ltp_input_input06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_input input06 input06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "input input06 input06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a6bb3eeb541f81495ac17eaa7e43aea569dcab71 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_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_io 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 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" + CHECK_RESULT $? 1 0 "io 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_io/oe_test_ltp_io_aio02.sh b/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_aio02.sh new file mode 100644 index 0000000000000000000000000000000000000000..cce72f9da22ff7f5c772636aefe1b25f4aebef50 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_io/oe_test_ltp_io_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_io 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 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" + CHECK_RESULT $? 1 0 "io 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_ipc/oe_test_ltp_ipc_pipeio_1.sh b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_1.sh new file mode 100644 index 0000000000000000000000000000000000000000..e231ed77163180f901c3bd155b95f5b9a0a7c36b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ipc pipeio_1 pipeio -T pipeio_1 -c 5 -s 4090 -i 100 -b -f x80 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..dffeb4bc9cecdc0570a3d79d0b5a17010455ead0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_3.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ipc pipeio_3 pipeio -T pipeio_3 -c 5 -s 4090 -i 100 -u -b -f x80 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4a3e388b2455836f3a28d107b409baa68f984f7c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_4.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ipc pipeio_4 pipeio -T pipeio_4 -c 5 -s 4090 -i 100 -u -f x80 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..4afa2d59d1586bc200296e377f0ec7552605bde6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_5.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ipc pipeio_5 pipeio -T pipeio_5 -c 5 -s 5000 -i 10 -b -f x80 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..c895adcb5486bbe81a79fd2e81bdd754b660cc76 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_6.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ipc pipeio_6 pipeio -T pipeio_6 -c 5 -s 5000 -i 10 -b -u -f x80 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..63c3dc8ac1dd372aa790b85e7f27a1f1c732012e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_ipc/oe_test_ltp_ipc_pipeio_8.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_ipc pipeio_8 pipeio -T pipeio_8 -c 5 -s 5000 -i 10 -u -f x80 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + 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!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..e6956b7254cb87dc6bc88ae88d3e3a2ba99f5c9e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_irq/oe_test_ltp_irq_irqbalance01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_irq irqbalance01 irqbalance01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "irq irqbalance01 irqbalance01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..79d535686f435cf0d9b0d11818ee83ac22e71cf2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_block_dev.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 block_dev block_dev +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc block_dev block_dev failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_cn_pec_sh.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cn_pec_sh.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a826d752f81fdf37cabaae4739e4ba677494df2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cn_pec_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_kernel_misc cn_pec_sh cn_pec.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc cn_pec_sh cn_pec.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_cpufreq_boost.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cpufreq_boost.sh new file mode 100644 index 0000000000000000000000000000000000000000..f25c31eb56aef4cebe13e2f154ec09280ee0fba1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_cpufreq_boost.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 cpufreq_boost cpufreq_boost +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc cpufreq_boost cpufreq_boost failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fw_load.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_fw_load.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8859ca987ee2297069434da4dd5f979dd869c2c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_fw_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_kernel_misc fw_load fw_load +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc fw_load fw_load failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kmsg01.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_kmsg01.sh new file mode 100644 index 0000000000000000000000000000000000000000..264441d26d903e8d7cac536c0b8e2ae0e8d3ef4d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_kmsg01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kmsg01 kmsg01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc kmsg01 kmsg01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lock_torture.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_lock_torture.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3d19bf9966332aced2aa4ff23a40b1cc68574f6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_lock_torture.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lock_torture lock_torture.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc lock_torture lock_torture.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ltp_acpi.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_ltp_acpi.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0c18f8a5c5514b64070ff2f62b9daadb0fec1ba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_ltp_acpi.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ltp_acpi ltp_acpi +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc ltp_acpi ltp_acpi failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rcu_torture.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rcu_torture.sh new file mode 100644 index 0000000000000000000000000000000000000000..4408d7ca2da9a50d66f3f64c6f26f23b19126481 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rcu_torture.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rcu_torture rcu_torture.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc rcu_torture rcu_torture.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rtc01.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee07f4b7646f7c741c7aefefe6af7945eda1cf6b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rtc01 rtc01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc rtc01 rtc01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rtc02.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc02.sh new file mode 100644 index 0000000000000000000000000000000000000000..23f519a0f17fed8be3a02b70152bf71abd852991 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_rtc02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rtc02 rtc02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc rtc02 rtc02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tbio.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tbio.sh new file mode 100644 index 0000000000000000000000000000000000000000..f94a8f73b003f4271aa0f92b820335c672b9b1f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tbio.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 tbio tbio +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc tbio tbio failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tpci.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tpci.sh new file mode 100644 index 0000000000000000000000000000000000000000..12a2dca9a6bd0630641f2443ae2e8a718700bd9c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_tpci.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 tpci tpci +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc tpci tpci failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_uaccess.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_uaccess.sh new file mode 100644 index 0000000000000000000000000000000000000000..437c5b8157a3a54e2544e854d40f3c25d5d44467 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_uaccess.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 uaccess uaccess +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc uaccess uaccess failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_umip_basic_test.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_umip_basic_test.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1a1f97633fb8a3562a875b4412c56a61038d595 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_umip_basic_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_kernel_misc umip_basic_test umip_basic_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 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" + CHECK_RESULT $? 1 0 "kernel_misc umip_basic_test umip_basic_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..62d82818768e5dd70312598b97c3beec5fecf87d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 zram01 zram01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc zram01 zram01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_zram02.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8931aeaa165ebe63d213d7bd5f79112634a9afd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 zram02 zram02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc zram02 zram02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_zram03.sh b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram03.sh new file mode 100644 index 0000000000000000000000000000000000000000..87fcdade35915a1cfd7bd174366a94fb79964f9c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_kernel_misc/oe_test_ltp_kernel_misc_zram03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 zram03 zram03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "kernel_misc zram03 zram03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..160b90964ac171fd9a24b22fa1ec51640cb7816d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_abs01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_math abs01 abs01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "math abs01 abs01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_atof01.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_atof01.sh new file mode 100644 index 0000000000000000000000000000000000000000..641f8ade1d025116ddd6655cdb2f8d1e217776d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_atof01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_math atof01 atof01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "math atof01 atof01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_float_bessel.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_bessel.sh new file mode 100644 index 0000000000000000000000000000000000000000..2cff4e6f042fdfe1cf5b02ca8bacc8d1a0f62019 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_bessel.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_math float_bessel float_bessel -v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "math float_bessel float_bessel -v failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_float_exp_log.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_exp_log.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e7238f34a00b8c808b97508e958718c66bc85d8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_exp_log.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_math float_exp_log float_exp_log -v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "math float_exp_log float_exp_log -v failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_float_iperb.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_iperb.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfbbc9d5f4a31d0292eb2cf70548f6e8af07e472 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_iperb.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_math float_iperb float_iperb -v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "math float_iperb float_iperb -v failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_float_power.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_power.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a5aba50e59c990f88766f7dac633a9991acfc95 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_power.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_math float_power float_power -v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "math float_power float_power -v failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_float_trigo.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_trigo.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6b30adc00ed7f619dbad3c318e53e01cfa7553f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_float_trigo.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_math float_trigo float_trigo -v +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "math float_trigo float_trigo -v failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fptest01.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6dec66e6bcb5fd585836be94d2dc2408829177e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_math fptest01 fptest01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "math fptest01 fptest01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fptest02.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest02.sh new file mode 100644 index 0000000000000000000000000000000000000000..923b94767ca22230376eee68f2b1b2b8679e5c60 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_fptest02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_math fptest02 fptest02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "math fptest02 fptest02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nextafter01.sh b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_nextafter01.sh new file mode 100644 index 0000000000000000000000000000000000000000..784173f08a1a588267c899f2183fae663d79d49f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_math/oe_test_ltp_math_nextafter01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_math nextafter01 nextafter01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "math nextafter01 nextafter01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_cpuset01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_cpuset01.sh new file mode 100644 index 0000000000000000000000000000000000000000..18e4b568b6429f93271784ae908915c0b42c40f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_cpuset01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 cpuset01 cpuset01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm cpuset01 cpuset01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_data_space.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_data_space.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d4e61ba8e7e97cd9dd0349e775e0a0866548c75 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_data_space.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 data_space data_space +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm data_space data_space failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..46a693a97f92c6cb3d8cd3dec82af776aff330c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm01 ksm01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm ksm01 ksm01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01_1.sh new file mode 100644 index 0000000000000000000000000000000000000000..86f0c141730045f76eb6fe238f2e8adc75e86b19 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm01_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm01_1 ksm01 -u 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 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" + CHECK_RESULT $? 1 0 "mm ksm01_1 ksm01 -u 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_mm/oe_test_ltp_mm_ksm02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba2474463562304a4cf0a34ae76847cf070f1761 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm02 ksm02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm ksm02 ksm02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ksm02_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02_1.sh new file mode 100644 index 0000000000000000000000000000000000000000..666febe0b43579e43fd3e4491b565da30dee4d1e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm02_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm02_1 ksm02 -u 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 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" + CHECK_RESULT $? 1 0 "mm ksm02_1 ksm02 -u 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_mm/oe_test_ltp_mm_ksm03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03.sh new file mode 100644 index 0000000000000000000000000000000000000000..3957d4ac1ec46dac521d1f2e4245e899d174c4c1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm03 ksm03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm ksm03 ksm03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ksm03_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03_1.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fc58c5c0e23fbf9e1dca1ae685434e11898aa74 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm03_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm03_1 ksm03 -u 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 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" + CHECK_RESULT $? 1 0 "mm ksm03_1 ksm03 -u 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_mm/oe_test_ltp_mm_ksm04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04.sh new file mode 100644 index 0000000000000000000000000000000000000000..1576a966cc7f429ec8a2a0ce9d5c565ae7cd56b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm04 ksm04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm ksm04 ksm04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ksm04_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04_1.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8d001a15c3f6372d2699ca9fd6849269ce3926f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm04_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm04_1 ksm04 -u 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 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" + CHECK_RESULT $? 1 0 "mm ksm04_1 ksm04 -u 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_mm/oe_test_ltp_mm_ksm05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm05.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ec36073665cc00cb3353495a342fd4ba6a4bcfb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm05 ksm05 -I 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm ksm05 ksm05 -I 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ksm06.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfac924b560f8e6cd7f6ac8dd3b916eea9d88716 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm06 ksm06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm ksm06 ksm06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ksm06_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_1.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ea0949b01fcc5babb4b6c3148c0c1da84e779fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm06_1 ksm06 -n 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm ksm06_1 ksm06 -n 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ksm06_2.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_2.sh new file mode 100644 index 0000000000000000000000000000000000000000..6783fce7d498b9d8b9d64d18c17f716f0f549568 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm06_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm06_2 ksm06 -n 8000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm ksm06_2 ksm06 -n 8000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ksm07.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm07.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfcac096839f5c8ffd1a4f1c7485763788300387 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_ksm07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ksm07 ksm07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm ksm07 ksm07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mallocstress01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mallocstress01.sh new file mode 100644 index 0000000000000000000000000000000000000000..870d3e5764daa9cd5976a90b223a32344db76d3e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mallocstress01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mallocstress01 mallocstress +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mallocstress01 mallocstress failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_max_map_count.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_max_map_count.sh new file mode 100644 index 0000000000000000000000000000000000000000..b59407b5b1761e70a7ebd843bb495e9533194edf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_max_map_count.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 max_map_count max_map_count -i 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm max_map_count max_map_count -i 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mem02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mem02.sh new file mode 100644 index 0000000000000000000000000000000000000000..353f45a28e8a9384e6c7cc09676300dd76a505cc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mem02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mem02 mem02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mem02 mem02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_min_free_kbytes.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_min_free_kbytes.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc89b9b086d5fad5c567f5ad7fc8e27e2df8885a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_min_free_kbytes.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 min_free_kbytes min_free_kbytes +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm min_free_kbytes min_free_kbytes failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mm01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0534aee3581c09ac9cfd6abf1a5493e8ca0c9c45 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mm01 mmap001 -m 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 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" + CHECK_RESULT $? 1 0 "mm mm01 mmap001 -m 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_mm/oe_test_ltp_mm_mm02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm02.sh new file mode 100644 index 0000000000000000000000000000000000000000..5329369adc3fac6ca69a539315cd0957ed528d25 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mm02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mm02 mmap001 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mm02 mmap001 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap10.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10.sh new file mode 100644 index 0000000000000000000000000000000000000000..c857ffd4d51d0727bba81d29eae09077051c31ad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap10 mmap10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmap10 mmap10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap10_1.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_1.sh new file mode 100644 index 0000000000000000000000000000000000000000..00feb6c5e3d11f721cb7a54cefbd5ea31e02cd05 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_1.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap10_1 mmap10 -a +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmap10_1 mmap10 -a failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap10_2.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_2.sh new file mode 100644 index 0000000000000000000000000000000000000000..401ac31bb1db8c75c6970c93c3541b613f7b32c1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap10_2 mmap10 -s +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmap10_2 mmap10 -s failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap10_3.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_3.sh new file mode 100644 index 0000000000000000000000000000000000000000..cba51f840d73a6a92e3bda7f26b798f001fa678b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_3.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap10_3 mmap10 -a -s +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmap10_3 mmap10 -a -s failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap10_4.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_4.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ec5193d234ff3a57b061e6c73d1a5aa93e2089f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmap10_4.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap10_4 mmap10 -a -s -i 60 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmap10_4 mmap10 -a -s -i 60 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmapstress01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7298b214225500f292d57fb13a57f21695cc5a9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmapstress01 mmapstress01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmapstress01 mmapstress01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmapstress02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress02.sh new file mode 100644 index 0000000000000000000000000000000000000000..5156362fe7e7e1d6d5016364dc1db111c064403d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmapstress02 mmapstress02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmapstress02 mmapstress02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmapstress03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress03.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e5357b7ef96f88a7d6259573da1d1dcddc39154 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmapstress03 mmapstress03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmapstress03 mmapstress03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmapstress04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress04.sh new file mode 100644 index 0000000000000000000000000000000000000000..46f1e6ece4cecfb50cb45b5df88e48f35bf24df5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmapstress04 mmapstress04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmapstress04 mmapstress04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmapstress05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress05.sh new file mode 100644 index 0000000000000000000000000000000000000000..59833fce5b08360e04f849533f5a5825736242e7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmapstress05 mmapstress05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmapstress05 mmapstress05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmapstress06.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress06.sh new file mode 100644 index 0000000000000000000000000000000000000000..2751f85b48202b329614b423321e36f54ba41d76 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmapstress06 mmapstress06 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 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" + CHECK_RESULT $? 1 0 "mm mmapstress06 mmapstress06 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_mm/oe_test_ltp_mm_mmapstress07.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress07.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d0dcc697f63eca51c8b31113e57abdb282fde2f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmapstress07 TMPFILE=`mktemp /tmp/example.XXXXXXXXXXXX`; mmapstress07 $TMPFILE +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmapstress07 TMPFILE=`mktemp /tmp/example.XXXXXXXXXXXX`; mmapstress07 $TMPFILE failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmapstress08.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress08.sh new file mode 100644 index 0000000000000000000000000000000000000000..117c80f53f890472e1c771f6e94231b61428d8e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmapstress08 mmapstress08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mmapstress08 mmapstress08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmapstress09.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress09.sh new file mode 100644 index 0000000000000000000000000000000000000000..05abdccee06975afd63d5670444073c0321ed641 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmapstress09 mmapstress09 -p 20 -t 0.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 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" + CHECK_RESULT $? 1 0 "mm mmapstress09 mmapstress09 -p 20 -t 0.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_mm/oe_test_ltp_mm_mmapstress10.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress10.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdc7c52113acae84e550a4127dd0b21b30bc7e08 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mmapstress10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmapstress10 mmapstress10 -p 20 -t 0.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 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" + CHECK_RESULT $? 1 0 "mm mmapstress10 mmapstress10 -p 20 -t 0.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_mm/oe_test_ltp_mm_mtest01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01.sh new file mode 100644 index 0000000000000000000000000000000000000000..db9f233ba2f512676654a4bff209958a60413be3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mtest01 mtest01 -p80 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mtest01 mtest01 -p80 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mtest01w.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01w.sh new file mode 100644 index 0000000000000000000000000000000000000000..17232216fa979ddd7deee7bbfe8039a2935844aa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest01w.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mtest01w mtest01 -p80 -w +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mtest01w mtest01 -p80 -w failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mtest05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest05.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c3ab57213a410c1dc14d120269bfd982ce0a040 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mtest05 mmstress +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mtest05 mmstress failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mtest06.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06.sh new file mode 100644 index 0000000000000000000000000000000000000000..ca2049e702441bb98e99fdff7791007e30339dac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mtest06 mmap1 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mtest06 mmap1 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mtest06_2.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_2.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6b4e31e8621fea1d07619d2a112060f47686097 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_2.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mtest06_2 mmap2 -a -p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mtest06_2 mmap2 -a -p failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mtest06_3.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_3.sh new file mode 100644 index 0000000000000000000000000000000000000000..41b16998165cd401f95b0d517a6843e844b8589d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_mtest06_3.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mtest06_3 mmap3 -p +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm mtest06_3 mmap3 -p failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_oom01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1dbb44ebd6e1f9746ee0eb24145eec1e75cb742c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 oom01 oom01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm oom01 oom01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_oom02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6bebabd75d41f12072ab182898ee42ed5ecb1e51 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 oom02 oom02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm oom02 oom02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_oom03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom03.sh new file mode 100644 index 0000000000000000000000000000000000000000..2588f99822d211287158e33b3dd7e19f042910bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 oom03 oom03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm oom03 oom03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_oom04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom04.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7cf48320752556abbe7135d893987bbc7ac37c2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 oom04 oom04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm oom04 oom04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_oom05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom05.sh new file mode 100644 index 0000000000000000000000000000000000000000..a487769bd042a6e40008d090157c8103d1a7e143 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_oom05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 oom05 oom05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm oom05 oom05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_overcommit_memory01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c8476c36f2bf417fe24d56b111bf3e852874d2d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 overcommit_memory01 overcommit_memory +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm overcommit_memory01 overcommit_memory failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_overcommit_memory02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory02.sh new file mode 100644 index 0000000000000000000000000000000000000000..7db2fe5f092e8786927bd718485885fc495e0d0f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 overcommit_memory02 overcommit_memory -R 0 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm overcommit_memory02 overcommit_memory -R 0 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_overcommit_memory03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory03.sh new file mode 100644 index 0000000000000000000000000000000000000000..da0b7fd965ab35c6a10daaef8523701de5e37d8d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 overcommit_memory03 overcommit_memory -R 30 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm overcommit_memory03 overcommit_memory -R 30 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_overcommit_memory04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory04.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b3cc5ad7c688d9876729882de6d3196758905e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 overcommit_memory04 overcommit_memory -R 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 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" + CHECK_RESULT $? 1 0 "mm overcommit_memory04 overcommit_memory -R 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_mm/oe_test_ltp_mm_overcommit_memory05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory05.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3f2da970e7a5575b3f11cb6f6bbd8473a529696 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 overcommit_memory05 overcommit_memory -R 100 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm overcommit_memory05 overcommit_memory -R 100 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_overcommit_memory06.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory06.sh new file mode 100644 index 0000000000000000000000000000000000000000..55987155f8ab291c96462cdbdb4c7dc4178845af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_overcommit_memory06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 overcommit_memory06 overcommit_memory -R 200 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm overcommit_memory06 overcommit_memory -R 200 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_page01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page01.sh new file mode 100644 index 0000000000000000000000000000000000000000..faea2c7334fc5da2e6a31c6d4032420f1b708e0d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 page01 page01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm page01 page01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_page02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e65eeaf9e10c1e32b3858aec7a983463263ba11 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_page02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 page02 page02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm page02 page02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shm_test01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shm_test01.sh new file mode 100644 index 0000000000000000000000000000000000000000..67d5a2ac5e16f883732482fca2524a6c6637f73e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shm_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_mm shm_test01 shm_test -l 10 -t 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 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" + CHECK_RESULT $? 1 0 "mm shm_test01 shm_test -l 10 -t 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_mm/oe_test_ltp_mm_shmt02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f363160a944935fe9739e0b087a0b6d77e93d199 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 shmt02 shmt02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm shmt02 shmt02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shmt03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt03.sh new file mode 100644 index 0000000000000000000000000000000000000000..66cb3b5fc91d7282c401471f3872839819b18144 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 shmt03 shmt03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm shmt03 shmt03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shmt04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt04.sh new file mode 100644 index 0000000000000000000000000000000000000000..2dd0f1a5e637fa1bffb24caff8b1f0d634eac6b4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 shmt04 shmt04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm shmt04 shmt04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shmt05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt05.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6075e7a6df7255f461e07d6385218237785c007 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 shmt05 shmt05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm shmt05 shmt05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shmt06.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt06.sh new file mode 100644 index 0000000000000000000000000000000000000000..573fd847fac3ca3f6b172e96bd61ae10076309eb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 shmt06 shmt06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm shmt06 shmt06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shmt07.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt07.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed4a694b9277fa2d5b95bc0a0473a660313975da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 shmt07 shmt07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm shmt07 shmt07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shmt08.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt08.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc89ea8d6d6b02846a2abd7ae6559668a823b81e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 shmt08 shmt08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm shmt08 shmt08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shmt09.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt09.sh new file mode 100644 index 0000000000000000000000000000000000000000..091b776f233da6e2b0ba2b36d0861e65e69c306f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 shmt09 shmt09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm shmt09 shmt09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shmt10.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt10.sh new file mode 100644 index 0000000000000000000000000000000000000000..59873edcedd3821856520bec03fa62ad47b5cadf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_shmt10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 shmt10 shmt10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm shmt10 shmt10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_stack_space.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_stack_space.sh new file mode 100644 index 0000000000000000000000000000000000000000..847a39f3a1523039f8421ba4df42dcafee8f7c2c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_stack_space.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stack_space stack_space +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm stack_space stack_space failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_swapping01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_swapping01.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfb4598906e67d6e5bbcdef39a2e45abdfacd9d9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_swapping01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 swapping01 swapping01 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm swapping01 swapping01 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_thp01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp01.sh new file mode 100644 index 0000000000000000000000000000000000000000..581707f26e90ab732227fe4cbc0b8f8eab69fa80 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 thp01 thp01 -I 120 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm thp01 thp01 -I 120 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_thp02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp02.sh new file mode 100644 index 0000000000000000000000000000000000000000..2052dab4b727b86e4d11a4e05fd5543dce431775 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 thp02 thp02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm thp02 thp02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_thp03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp03.sh new file mode 100644 index 0000000000000000000000000000000000000000..375253844906fc66cbd61f02e11c4025f6d1a5fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 thp03 thp03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm thp03 thp03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_thp04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp04.sh new file mode 100644 index 0000000000000000000000000000000000000000..8bc2cc97f99fdc3099f9458807c3628091dc8499 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_thp04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 thp04 thp04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm thp04 thp04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vma01.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma01.sh new file mode 100644 index 0000000000000000000000000000000000000000..13fe5f78c8451934b17c8ba8a619d3fcb11b427a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vma01 vma01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm vma01 vma01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vma02.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma02.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a047d504ba85efd651275c0f4c5ab18102b7797 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vma02 vma02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm vma02 vma02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vma03.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma03.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b91f2e6470b628492ff55f789490f7bed3ede63 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vma03 vma03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm vma03 vma03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vma04.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma04.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c49621c0a2c1e900d7c8ce25a362ddd1f7d05e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vma04 vma04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm vma04 vma04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vma05.sh b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma05.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd89f3c89fef2317566c7d970b69b1dcbcd20bdd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_mm/oe_test_ltp_mm_vma05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vma05 vma05.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "mm vma05 vma05.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /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 new file mode 100644 index 0000000000000000000000000000000000000000..8408c3c216fca678fbfa42f85b244db30be40685 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_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_ipv6_lib asapi_01 asapi_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 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" + CHECK_RESULT $? 1 0 "net.ipv6_lib asapi_01 asapi_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..e1318ccbabe4384488ae49f5268b2a61ff9976a2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_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_ipv6_lib asapi_02 asapi_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 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" + CHECK_RESULT $? 1 0 "net.ipv6_lib asapi_02 asapi_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..9be0545bb89034cc9fc127caaaf61c01cb2aa61b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_asapi_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_ipv6_lib asapi_03 asapi_03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/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_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" + CHECK_RESULT $? 1 0 "net.ipv6_lib asapi_03 asapi_03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /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_getaddrinfo_01.sh b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_getaddrinfo_01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a81d14c91f5d57f2a6b93ba3cdfb2eccfeb5713 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_getaddrinfo_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_ipv6_lib getaddrinfo_01 getaddrinfo_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 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" + CHECK_RESULT $? 1 0 "net.ipv6_lib getaddrinfo_01 getaddrinfo_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..8bbba9104bd5cfd4e421626266af282b1db499e3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_in6_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_ipv6_lib in6_01 in6_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 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" + CHECK_RESULT $? 1 0 "net.ipv6_lib in6_01 in6_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..b032aaf201404e83d73715dfc7f82d14f4f0daca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_net_ipv6_lib/oe_test_ltp_net_ipv6_lib_in6_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_ipv6_lib in6_02 in6_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 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" + CHECK_RESULT $? 1 0 "net.ipv6_lib in6_02 in6_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_nptl/oe_test_ltp_nptl_nptl01.sh b/testcases/system-test/ltp-test/ltp_nptl/oe_test_ltp_nptl_nptl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..87e64579d77104e40d7f849bbbebd5889a3f0156 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_nptl/oe_test_ltp_nptl_nptl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_nptl nptl01 nptl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "nptl nptl01 nptl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..a70ecfe2a26ded187df4b50b600ac741f94e02c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 runpwtests01 runpwtests01.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "power_management_tests runpwtests01 runpwtests01.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_runpwtests02.sh b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests02.sh new file mode 100644 index 0000000000000000000000000000000000000000..36fb8c447cb63d109ad6a5a91417c88c089b709b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 runpwtests02 runpwtests02.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "power_management_tests runpwtests02 runpwtests02.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_runpwtests03.sh b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests03.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba4f2b7fa65176182398a3fe8e0aa21a3a94be4e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 runpwtests03 runpwtests03.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "power_management_tests runpwtests03 runpwtests03.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_runpwtests04.sh b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests04.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a3a642b8d01bc2866d53aeb0ccdc1cfa528baf8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 runpwtests04 runpwtests04.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "power_management_tests runpwtests04 runpwtests04.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_runpwtests06.sh b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests06.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f6a253fd298b812d85edc13c86103d1b6294438 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_power_management_tests/oe_test_ltp_power_management_tests_runpwtests06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 runpwtests06 runpwtests06.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 -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" + CHECK_RESULT $? 1 0 "power_management_tests runpwtests06 runpwtests06.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..69e76b81bf972e8f56399a33aea757d65fd27f45 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_hangup01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_pty hangup01 hangup01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "pty hangup01 hangup01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptem01.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_ptem01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4124e9af4a5ef601a3c5c74ae868189d78456a7e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_ptem01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_pty ptem01 ptem01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "pty ptem01 ptem01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pty01.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty01.sh new file mode 100644 index 0000000000000000000000000000000000000000..64778f2126332268335fc2a41c6dcc61eb40409c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_pty pty01 pty01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "pty pty01 pty01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pty02.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty02.sh new file mode 100644 index 0000000000000000000000000000000000000000..9df5b09952dfbac9c55b744848ef39941ccd5d04 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_pty pty02 pty02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "pty pty02 pty02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pty03.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty03.sh new file mode 100644 index 0000000000000000000000000000000000000000..a34102029517059a27fa474037937d63e17d3cac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_pty pty03 pty03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "pty pty03 pty03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pty04.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty04.sh new file mode 100644 index 0000000000000000000000000000000000000000..7501d1fc83df4546710719b55e5b890f43167b02 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_pty pty04 pty04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "pty pty04 pty04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pty05.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty05.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b36844ff45617c725c5d3a69f580ab9df289319 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_pty pty05 pty05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "pty pty05 pty05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pty06.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty06.sh new file mode 100644 index 0000000000000000000000000000000000000000..885b8a5d695ec7711b640b58dface0681a96f969 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_pty pty06 pty06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "pty pty06 pty06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pty07.sh b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty07.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d329731b8b958276fede34bb4564cf6ec6d6a63 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_pty/oe_test_ltp_pty_pty07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_pty pty07 pty07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "pty pty07 pty07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..19603524414923f43b178bdb0aa8a2db333234ac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_autogroup01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 autogroup01 autogroup01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "sched autogroup01 autogroup01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_cfs_bandwidth01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_cfs_bandwidth01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7f1d08ab32a595435a2e398ad7706665146fccc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_cfs_bandwidth01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 cfs_bandwidth01 cfs_bandwidth01 -i 5 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "sched cfs_bandwidth01 cfs_bandwidth01 -i 5 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_hackbench01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d420c5c05b470f00c2cdf3071e7a836aefa43471 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 hackbench01 hackbench 50 process 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 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" + CHECK_RESULT $? 1 0 "sched hackbench01 hackbench 50 process 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_sched/oe_test_ltp_sched_hackbench02.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench02.sh new file mode 100644 index 0000000000000000000000000000000000000000..934fe12eaa2a830aa8be1cebb1c7193610aeb848 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_hackbench02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 hackbench02 hackbench 20 thread 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 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" + CHECK_RESULT $? 1 0 "sched hackbench02 hackbench 20 thread 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_sched/oe_test_ltp_sched_pth_str01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str01.sh new file mode 100644 index 0000000000000000000000000000000000000000..47f8c37ce3f847c4981b93682a85cb684487f8de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pth_str01 pth_str01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "sched pth_str01 pth_str01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_str02.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6d718254a57a9f30375cf270ce624e4770fed50 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pth_str02 pth_str02 -n1000 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "sched pth_str02 pth_str02 -n1000 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_str03.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str03.sh new file mode 100644 index 0000000000000000000000000000000000000000..036b9cd555ec99304135c77a4d7466e64a0fd786 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_pth_str03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pth_str03 pth_str03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "sched pth_str03 pth_str03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_cli_serv.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_cli_serv.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a2c820bba4b75110c4ee42c51cd86adbbfa62dd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_cli_serv.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_cli_serv run_sched_cliserv.sh +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "sched sched_cli_serv run_sched_cliserv.sh failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..02515b225ec134378527c2167438237acf85ee6a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_sched_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_sched sched_stress sched_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 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" + CHECK_RESULT $? 1 0 "sched sched_stress sched_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_sched/oe_test_ltp_sched_starvation.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_starvation.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0abe1aaac868d94ea7b04f5cc6a44abab41de0c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_starvation.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 starvation starvation +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "sched starvation starvation failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_time-schedule01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_time-schedule01.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb2c174dd045e754f0a41cd808985523546fadb8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_time-schedule01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 time-schedule01 time-schedule +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "sched time-schedule01 time-schedule failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_trace_sched01.sh b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_trace_sched01.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd541d4106381bd38f12b526f6df2e6b17b61089 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_sched/oe_test_ltp_sched_trace_sched01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 trace_sched01 trace_sched -c 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 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" + CHECK_RESULT $? 1 0 "sched trace_sched01 trace_sched -c 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_syscalls/oe_test_ltp_syscalls_abort01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_abort01.sh new file mode 100644 index 0000000000000000000000000000000000000000..fce64e97de3420bf1f5e4e18b5200bc4b3f50151 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_abort01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 abort01 abort01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls abort01 abort01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_accept01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ef623c99c72af12996e07a85837cac3215f21eb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 accept01 accept01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls accept01 accept01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_accept02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4aaaba1bd67217e3cd2e4e26de01635f4405ae88 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 accept02 accept02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls accept02 accept02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..2533d7da3065fd6c80dc4a7a96ccfb91e7b4d8c2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_accept4_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 accept4_01 accept4_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 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" + CHECK_RESULT $? 1 0 "syscalls accept4_01 accept4_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_access01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4d20a576aa3af7c03ba3d19743afed872feaece --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_access02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access02.sh new file mode 100644 index 0000000000000000000000000000000000000000..2de90ff4e021956cdbec32e3bde044b6bac02d92 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 access02 access02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls access02 access02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_access03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access03.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd9389f39de09283208a54b53fd9c018a25b86a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 access03 access03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls access03 access03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_access04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access04.sh new file mode 100644 index 0000000000000000000000000000000000000000..897708cecab42eed9e1737d07de39ad3b389da3c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_access04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 access04 access04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls access04 access04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_acct01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c3cbd942d3ecfd505cd4b7986ac452ac25315f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 acct01 acct01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls acct01 acct01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_acct02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b19fc7ab042733cd74c96097aec5f1122916408 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_acct02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 acct02 acct02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls acct02 acct02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_add_key01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key01.sh new file mode 100644 index 0000000000000000000000000000000000000000..92abb4f4f7a709ca034c0e0598b8ccf7db5a7b1c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 add_key01 add_key01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls add_key01 add_key01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_add_key02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2111b91f4122c0d2f139ab5d80b114c0ebfa85d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 add_key02 add_key02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls add_key02 add_key02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_add_key03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key03.sh new file mode 100644 index 0000000000000000000000000000000000000000..258f0d2b4610bbdc1e52e7241a5766a3c36e113d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 add_key03 add_key03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls add_key03 add_key03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_add_key04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key04.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbf4f23caf051af24685b6341ac632cae312f80f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 add_key04 add_key04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls add_key04 add_key04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_add_key05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key05.sh new file mode 100644 index 0000000000000000000000000000000000000000..6eecf76ed6c9eddc72f2c31dc8cd97f0fbd11ce1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_add_key05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 add_key05 add_key05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls add_key05 add_key05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_adjtimex01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex01.sh new file mode 100644 index 0000000000000000000000000000000000000000..339b452e75452412cf5e2889e1f65ca2f62dc142 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 adjtimex01 adjtimex01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls adjtimex01 adjtimex01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_adjtimex02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex02.sh new file mode 100644 index 0000000000000000000000000000000000000000..06cc69ded83bf68219b97fc85bf47fb112ab51a7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 adjtimex02 adjtimex02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls adjtimex02 adjtimex02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_adjtimex03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex03.sh new file mode 100644 index 0000000000000000000000000000000000000000..99f44eb456558354da61c5513e7c9c9b173e5f4c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_adjtimex03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 adjtimex03 adjtimex03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls adjtimex03 adjtimex03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alarm02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f44d266779377f8181deb8235707be707bce423e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 alarm02 alarm02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls alarm02 alarm02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alarm03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm03.sh new file mode 100644 index 0000000000000000000000000000000000000000..090cf19fe7f5177531108bf4857410864e2b25fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 alarm03 alarm03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls alarm03 alarm03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alarm05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm05.sh new file mode 100644 index 0000000000000000000000000000000000000000..f21eae69575c11dfd70199079ad5d04972d4a0ec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 alarm05 alarm05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls alarm05 alarm05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alarm06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm06.sh new file mode 100644 index 0000000000000000000000000000000000000000..388d0ff1ee63b886578218cc9694fdf8597825ba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 alarm06 alarm06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls alarm06 alarm06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_alarm07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm07.sh new file mode 100644 index 0000000000000000000000000000000000000000..e5b074e9160bd539c25c5904dd9169a8a3a5c00e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_alarm07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 alarm07 alarm07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls alarm07 alarm07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..c3aaf4498528183c39c777e1e92fe7ff0b886651 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bind01 bind01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bind01 bind01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bind02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d5b29373a3a2b78af681acf6fefc47f70f9af82 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bind02 bind02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bind02 bind02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bind03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind03.sh new file mode 100644 index 0000000000000000000000000000000000000000..033742a0b8886b7e9c84274703ae3bdbd8ec1973 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bind03 bind03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bind03 bind03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bind04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind04.sh new file mode 100644 index 0000000000000000000000000000000000000000..68bdec5d27d7e54f4f8ed3d36b52c40b23b7e519 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bind04 bind04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bind04 bind04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bind05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind05.sh new file mode 100644 index 0000000000000000000000000000000000000000..452fb1c0fee3b3685466d47795701cfacee64de9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bind05 bind05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bind05 bind05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bind06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind06.sh new file mode 100644 index 0000000000000000000000000000000000000000..464a55bc035af9a488a9de4a79062837a7b06589 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bind06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bind06 bind06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bind06 bind06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bpf_map01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_map01.sh new file mode 100644 index 0000000000000000000000000000000000000000..bd9aca7b1c51aa0afd92d27656d20c101b4c51b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_map01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bpf_map01 bpf_map01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bpf_map01 bpf_map01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bpf_prog01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog01.sh new file mode 100644 index 0000000000000000000000000000000000000000..964bf23764f425cc1348abdf940a6fb6b7f2210a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bpf_prog01 bpf_prog01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bpf_prog01 bpf_prog01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bpf_prog02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog02.sh new file mode 100644 index 0000000000000000000000000000000000000000..869d9fa201181bc21146b9b328cce8b93bea7576 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bpf_prog02 bpf_prog02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bpf_prog02 bpf_prog02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bpf_prog03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog03.sh new file mode 100644 index 0000000000000000000000000000000000000000..aaddbc273a95d4748839015c74ccbebfbdd34a0e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bpf_prog03 bpf_prog03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bpf_prog03 bpf_prog03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bpf_prog04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog04.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b5771c39abba79a79c2029378162b469bf201bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bpf_prog04 bpf_prog04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bpf_prog04 bpf_prog04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bpf_prog05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog05.sh new file mode 100644 index 0000000000000000000000000000000000000000..2202a36758c7e582c4923a9bf24f55718fb45ea8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bpf_prog05 bpf_prog05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bpf_prog05 bpf_prog05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bpf_prog06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog06.sh new file mode 100644 index 0000000000000000000000000000000000000000..95f2ff9514ad0c4e5a36832caa50861288e25928 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bpf_prog06 bpf_prog06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bpf_prog06 bpf_prog06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_bpf_prog07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog07.sh new file mode 100644 index 0000000000000000000000000000000000000000..da3dc04b3bd707eb0f5235f8fee36d9c68181ba6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_bpf_prog07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 bpf_prog07 bpf_prog07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls bpf_prog07 bpf_prog07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_brk01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d41ee9edb1ae29eb38b3589268acf31d74dce5b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 brk01 brk01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls brk01 brk01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_brk02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk02.sh new file mode 100644 index 0000000000000000000000000000000000000000..32f6eead014bbde2e9cf2bb38f999ebdfa44b2f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_brk02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 brk02 brk02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls brk02 brk02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_cacheflush01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cacheflush01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a1643b1c109d521a257419bd42c8b392114bcee --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_cacheflush01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 cacheflush01 cacheflush01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls cacheflush01 cacheflush01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..6d8a88233c6f99f446c8730a6f3fa86a39a7ea98 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 capget01 capget01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls capget01 capget01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_capget02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget02.sh new file mode 100644 index 0000000000000000000000000000000000000000..128154908be4e8fbb3da41a61687aef08752e20e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capget02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 capget02 capget02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls capget02 capget02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_capset01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset01.sh new file mode 100644 index 0000000000000000000000000000000000000000..293ade6f7585da2230f3eaafde69a5258ba75af8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 capset01 capset01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls capset01 capset01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_capset02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset02.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b52aa4b11e04339ad6b1b55336033dc417ea357 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 capset02 capset02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls capset02 capset02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_capset03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset03.sh new file mode 100644 index 0000000000000000000000000000000000000000..08e70737934c39e7c924d5a8683b1466297165e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 capset03 capset03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls capset03 capset03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_capset04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset04.sh new file mode 100644 index 0000000000000000000000000000000000000000..25589a14f43b53e3e5ea6812ee671ba6200b8711 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_capset04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 capset04 capset04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls capset04 capset04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chdir01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01.sh new file mode 100644 index 0000000000000000000000000000000000000000..57b581af4216c013bea84075f001fb9ae3ea68b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_chdir01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01A.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f083bc0bba37b72bfb43dee443b11c5e3ca942f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir01A.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chdir01A symlink01 -T 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 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" + CHECK_RESULT $? 1 0 "syscalls chdir01A symlink01 -T 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_syscalls/oe_test_ltp_syscalls_chdir04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir04.sh new file mode 100644 index 0000000000000000000000000000000000000000..94e6957af00e297bd1c950c5b30d13e372a62bb8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chdir04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chdir04 chdir04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chdir04 chdir04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chmod01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01.sh new file mode 100644 index 0000000000000000000000000000000000000000..09ccedce47c18c4b13208e779e90563910a7f417 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chmod01 chmod01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chmod01 chmod01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chmod01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01A.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a14cec6fe3991ce10616684a1aabe4ffe1b4341 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod01A.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chmod01A symlink01 -T chmod01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chmod01A symlink01 -T chmod01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chmod03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod03.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c92dcda609ccfa04bbb8dad4c4475504f6a47e7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chmod03 chmod03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chmod03 chmod03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chmod05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod05.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f08e357155df813eabde35f68b7164fd799bab6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chmod05 chmod05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chmod05 chmod05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chmod06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod06.sh new file mode 100644 index 0000000000000000000000000000000000000000..cba83ec92ae22d0fff37483c4362dcd28e288561 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chmod06 chmod06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chmod06 chmod06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chmod07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod07.sh new file mode 100644 index 0000000000000000000000000000000000000000..18ac9bdacdf36235888185ecfe373fcd74fd939f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chmod07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chmod07 chmod07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chmod07 chmod07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..2bfb15e857cfb7f3f0e317e221cff163010fe1bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chown01 chown01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chown01 chown01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8deb3b07fb543efd3f77b5da6af20aaecf4a4df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chown01_16 chown01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chown01_16 chown01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chown02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c43b4abaf44b4f801b88d8cf3bc978de7ce7a54 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chown02 chown02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chown02 chown02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chown02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..535253999a2e542a3e26078a2b821ca1e2add4b3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chown02_16 chown02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chown02_16 chown02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chown03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03.sh new file mode 100644 index 0000000000000000000000000000000000000000..175d6c4f899c7fdc2333797ba458e89725ef11cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chown03 chown03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chown03 chown03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chown03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff6c113440cb93b809e879e14cc06dd5871c4de1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chown03_16 chown03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chown03_16 chown03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chown04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04.sh new file mode 100644 index 0000000000000000000000000000000000000000..41ad5dc4e3c614943415a1607e2424f40004f8ee --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chown04 chown04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chown04 chown04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chown04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..7feb601b8681c63e428abb1baa5a81f85e7b6fe6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown04_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chown04_16 chown04_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chown04_16 chown04_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chown05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05.sh new file mode 100644 index 0000000000000000000000000000000000000000..81cf0d03ba82310cbcada9bffa2a6a9e179674cb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chown05 chown05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chown05 chown05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chown05_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..6729b3cdfacff1c5711da6f641d8088e051a528f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chown05_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chown05_16 chown05_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chown05_16 chown05_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chroot01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot01.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfee4dc5787a6978c82c41fcfea5c2bc90b9007f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chroot01 chroot01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chroot01 chroot01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chroot02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot02.sh new file mode 100644 index 0000000000000000000000000000000000000000..8990a5411d7a880eb9151f9c3d718b86e89e97e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chroot02 chroot02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chroot02 chroot02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chroot03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot03.sh new file mode 100644 index 0000000000000000000000000000000000000000..436e37b3c4f69b3bdb30e19854d6f20b5ade109d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chroot03 chroot03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chroot03 chroot03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_chroot04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot04.sh new file mode 100644 index 0000000000000000000000000000000000000000..aebdea3bd903f623a5ade94b8c2364f63b09ded0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_chroot04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 chroot04 chroot04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls chroot04 chroot04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_adjtime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime01.sh new file mode 100644 index 0000000000000000000000000000000000000000..84f186024506e4c8ca903c14c858d87b0e2188cb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_adjtime01 clock_adjtime01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_adjtime01 clock_adjtime01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_adjtime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime02.sh new file mode 100644 index 0000000000000000000000000000000000000000..00e7e7ac0af2ae1791655a8dadcfe4c1247f5985 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_adjtime02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_adjtime02 clock_adjtime02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_adjtime02 clock_adjtime02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_getres01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_getres01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c681a888ec8a57bb33e7c5758921910703998d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_getres01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_getres01 clock_getres01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_getres01 clock_getres01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_gettime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime01.sh new file mode 100644 index 0000000000000000000000000000000000000000..02d2b3682f2c98ac588b91a6db6aa3c4d8b4f18e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_gettime01 clock_gettime01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_gettime01 clock_gettime01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_gettime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime02.sh new file mode 100644 index 0000000000000000000000000000000000000000..df74d5dd309a7f4720a5a546314eeb36e1ecbf92 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_gettime02 clock_gettime02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_gettime02 clock_gettime02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_gettime03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime03.sh new file mode 100644 index 0000000000000000000000000000000000000000..fdb167ea52519145844f4b45b4da67d53f334f28 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_gettime03 clock_gettime03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_gettime03 clock_gettime03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_gettime04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime04.sh new file mode 100644 index 0000000000000000000000000000000000000000..b07a2cfd84f645c48136d7d62125aa0b98e917fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_gettime04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_gettime04 clock_gettime04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_gettime04 clock_gettime04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_nanosleep01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d20ba36924bb54425298ee6b213f5e16bf19dffa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_nanosleep01 clock_nanosleep01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_nanosleep01 clock_nanosleep01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_nanosleep02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep02.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbaaade2dd7a3aa34ddee7169c3ffc7ffeb462dc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_nanosleep02 clock_nanosleep02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_nanosleep02 clock_nanosleep02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_nanosleep03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep03.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee04653354fb666a23c4304b0378a01a755c6663 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_nanosleep03 clock_nanosleep03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_nanosleep03 clock_nanosleep03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_nanosleep04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep04.sh new file mode 100644 index 0000000000000000000000000000000000000000..257813b6d86f6eb587a1a7856771215e8e743ee3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_nanosleep04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_nanosleep04 clock_nanosleep04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_nanosleep04 clock_nanosleep04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_settime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime01.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe3f8ce52fac605f06414f82949ebc3c5810010b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_settime01 clock_settime01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_settime01 clock_settime01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_settime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b38b276a03eac003ecd88fcbfbbee373c20088f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_settime02 clock_settime02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_settime02 clock_settime02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clock_settime03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime03.sh new file mode 100644 index 0000000000000000000000000000000000000000..26a2bbeec329715bd60fc1f40ef522e74af5a0b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clock_settime03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clock_settime03 clock_settime03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clock_settime03 clock_settime03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone01.sh new file mode 100644 index 0000000000000000000000000000000000000000..fcf01e672bd7cd5b8c912c307c05e71a02215785 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone01 clone01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone01 clone01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone02.sh new file mode 100644 index 0000000000000000000000000000000000000000..867069a860bdde9529de0de2533c3220dc40f0a1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone02 clone02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone02 clone02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone03.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ae0ad830ee30713aecd56fcda3918fc6aa5a04c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone03 clone03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone03 clone03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone04.sh new file mode 100644 index 0000000000000000000000000000000000000000..97614136d8820d8961bebc274ce57454858b1426 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone04 clone04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone04 clone04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone05.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac59d9583ad186804291e54aca2d400786c2c366 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone05 clone05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone05 clone05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone06.sh new file mode 100644 index 0000000000000000000000000000000000000000..f81c4f78eb6dedd496ce20cf4ba83b16f006857d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone06 clone06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone06 clone06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone07.sh new file mode 100644 index 0000000000000000000000000000000000000000..42c3b7ac859fabfa357615fa460bb41a1521c95d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone07 clone07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone07 clone07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone08.sh new file mode 100644 index 0000000000000000000000000000000000000000..abebfc8aee53678d419a9596cc27468e269113a7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone08 clone08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone08 clone08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone09.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7d2331f2c76a6ad6e4a4cbad2371cd6d208e308 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone09 clone09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone09 clone09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone301.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone301.sh new file mode 100644 index 0000000000000000000000000000000000000000..00baf59fd61dc6def94ed0e9c38025682cf09876 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone301.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone301 clone301 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone301 clone301 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone302.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone302.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3cdcfc6b7699533c759f81b60125a1301461cbf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone302.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone302 clone302 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone302 clone302 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_clone303.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone303.sh new file mode 100644 index 0000000000000000000000000000000000000000..78cd28317f18a722fdce5f45fea759dee0274b79 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_clone303.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 clone303 clone303 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls clone303 clone303 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_close01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ea3f0674b4c02108a5262ff9e50d570d6ac2ceb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 close01 close01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls close01 close01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_close02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close02.sh new file mode 100644 index 0000000000000000000000000000000000000000..377c4a5bde32d4d7a5e59bf04073b224f6fbfeca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 close02 close02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls close02 close02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_close_range01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2e58c06b979e3c0d9a59133c99e52031b547bc1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 close_range01 close_range01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls close_range01 close_range01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_close_range02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range02.sh new file mode 100644 index 0000000000000000000000000000000000000000..79cc25a4512f5ecf698e0be55d59d6b685182cbc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_close_range02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 close_range02 close_range02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls close_range02 close_range02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_confstr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_confstr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e03e0bde39980e1220cfcc5d968d47509479f0dd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_confstr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 confstr01 confstr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls confstr01 confstr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_connect01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect01.sh new file mode 100644 index 0000000000000000000000000000000000000000..66a673881506d231c706e838664d17a0c9c0a661 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 connect01 connect01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls connect01 connect01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_connect02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6d4c3b78a536704187c69496bc56645a1d91f43 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_connect02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 connect02 connect02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls connect02 connect02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_copy_file_range01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac54dd5875d3431d9c2aa3f7d63cffda1bf54fa6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 copy_file_range01 copy_file_range01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls copy_file_range01 copy_file_range01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_copy_file_range02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range02.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5f4738faa1599691855c52287eff5a1d546bb65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 copy_file_range02 copy_file_range02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls copy_file_range02 copy_file_range02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_copy_file_range03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range03.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8103fac82708df230916138575836ff55599008 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_copy_file_range03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 copy_file_range03 copy_file_range03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls copy_file_range03 copy_file_range03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_creat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ddbd41473ce7dd70e2bb78af6693177723e87ab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 creat01 creat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls creat01 creat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_creat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat03.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c7d301338d631934e35fd77d091140521c83289 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 creat03 creat03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls creat03 creat03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_creat04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat04.sh new file mode 100644 index 0000000000000000000000000000000000000000..188da0b0204833d585bcbef1a5417345ec00831d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 creat04 creat04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls creat04 creat04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_creat05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat05.sh new file mode 100644 index 0000000000000000000000000000000000000000..d00204dfc689b31994a6e31ed859144e1e44e533 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 creat05 creat05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls creat05 creat05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_creat06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat06.sh new file mode 100644 index 0000000000000000000000000000000000000000..af4df0b5415019b112076e00e1edf10ebd9ec403 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 creat06 creat06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls creat06 creat06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_creat07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat07.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5a9dd53754770629a3e2168485bd2e0a760906a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 creat07 creat07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls creat07 creat07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_creat08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat08.sh new file mode 100644 index 0000000000000000000000000000000000000000..999471200467ebdb022a39352c72319f3e1b5bb2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 creat08 creat08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls creat08 creat08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_creat09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat09.sh new file mode 100644 index 0000000000000000000000000000000000000000..f29891cdaca02b29db84cf919a1a707d7b77e062 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_creat09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 creat09 creat09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls creat09 creat09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_delete_module01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module01.sh new file mode 100644 index 0000000000000000000000000000000000000000..b569843f70a00fa1e26724e017a04e2f16aba46d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 delete_module01 delete_module01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls delete_module01 delete_module01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_delete_module02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module02.sh new file mode 100644 index 0000000000000000000000000000000000000000..b906dd65e813dfd30f5b3f72378dae37d9351220 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 delete_module02 delete_module02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls delete_module02 delete_module02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_delete_module03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module03.sh new file mode 100644 index 0000000000000000000000000000000000000000..f33cc5d0d05e8845ed2c6bb4135967dca6561155 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_delete_module03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 delete_module03 delete_module03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls delete_module03 delete_module03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dirtyc0w.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w.sh new file mode 100644 index 0000000000000000000000000000000000000000..14c4939f46a020cd242d1d8e44374e2def6ea8a6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dirtyc0w dirtyc0w +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dirtyc0w dirtyc0w failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dirtyc0w_shmem.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w_shmem.sh new file mode 100644 index 0000000000000000000000000000000000000000..9df912eb575a5122841189084d6bfce52a1918d7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtyc0w_shmem.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dirtyc0w_shmem dirtyc0w_shmem +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dirtyc0w_shmem dirtyc0w_shmem failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dirtypipe.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtypipe.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ec97c0aafb832770e74e4e11ee7ede684a9bb28 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dirtypipe.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dirtypipe dirtypipe +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dirtypipe dirtypipe failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9553a42b1c2be2f079e3c234091174f08ff66015 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup01 dup01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup01 dup01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup02.sh new file mode 100644 index 0000000000000000000000000000000000000000..e51c43407d1767ad8e85ea3ff421fdba2167d670 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup02 dup02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup02 dup02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1161e54fba769ba6a766c443ab025e8a85a80986 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup03 dup03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup03 dup03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup04.sh new file mode 100644 index 0000000000000000000000000000000000000000..302bb4a24ffa08f24c813721c6d46294457f075c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup04 dup04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup04 dup04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup05.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ed7d37faac1913361daef621dcdd3383b3ca9e7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup05 dup05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup05 dup05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup06.sh new file mode 100644 index 0000000000000000000000000000000000000000..77c2d02b16c063aaceb5a4a07c0684474600f9d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup06 dup06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup06 dup06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup07.sh new file mode 100644 index 0000000000000000000000000000000000000000..be5b504d7df47627e6a01eeaaae501d4c4f0edef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup07 dup07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup07 dup07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup201.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad39a395a0c8beb6d79a45ec7ff5d7ea5e79ea3e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup201.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup201 dup201 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup201 dup201 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup202.sh new file mode 100644 index 0000000000000000000000000000000000000000..785e7860adc026f284960ea5324e2fefe998edfd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup202.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup202 dup202 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup202 dup202 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup203.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup203.sh new file mode 100644 index 0000000000000000000000000000000000000000..a043fcc1b39a17714d15e8f8af29a62c6600af94 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup203.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup203 dup203 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup203 dup203 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup204.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup204.sh new file mode 100644 index 0000000000000000000000000000000000000000..105e6a9c176edbaadc7bc3f19b59a9ce15e44a47 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup204.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup204 dup204 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup204 dup204 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup205.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup205.sh new file mode 100644 index 0000000000000000000000000000000000000000..6cc4f396b968cd469894ac639cdd9ec75bcf1e7d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup205.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup205 dup205 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup205 dup205 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup206.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup206.sh new file mode 100644 index 0000000000000000000000000000000000000000..89db2083943090182808662549e68308231d2a9a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup206.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup206 dup206 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup206 dup206 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup207.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup207.sh new file mode 100644 index 0000000000000000000000000000000000000000..514924f9cf19aa99513eb51b3abeecb452e5ea7b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup207.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 dup207 dup207 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls dup207 dup207 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_dup3_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_01.sh new file mode 100644 index 0000000000000000000000000000000000000000..443cb51fb9b122e6b17d31911bc780dec7c09fd9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_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 dup3_01 dup3_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 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" + CHECK_RESULT $? 1 0 "syscalls dup3_01 dup3_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_dup3_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_02.sh new file mode 100644 index 0000000000000000000000000000000000000000..360cbfaeb319e2d3e9a0e50cf0991d80518b86f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_dup3_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 dup3_02 dup3_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 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" + CHECK_RESULT $? 1 0 "syscalls dup3_02 dup3_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_epoll01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll01.sh new file mode 100644 index 0000000000000000000000000000000000000000..76c55a6980bdd0be17baa76fabc0acaae7b26b91 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll01 epoll-ltp +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll01 epoll-ltp failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_create01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4745abfda77cc70a1699eed97c3658216e471d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_create01 epoll_create01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_create01 epoll_create01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_create02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create02.sh new file mode 100644 index 0000000000000000000000000000000000000000..60e92bac6d8f2e5307649711aa531d953be02c56 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_create02 epoll_create02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_create02 epoll_create02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_create1_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6787614e5687c408e5c7da536aabb99877032415 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_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 epoll_create1_01 epoll_create1_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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_create1_01 epoll_create1_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_epoll_create1_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_02.sh new file mode 100644 index 0000000000000000000000000000000000000000..1670e048a462711da754903f65e67eae787de835 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_create1_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 epoll_create1_02 epoll_create1_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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_create1_02 epoll_create1_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_epoll_ctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f89732249a0c7873f47c2e2d98360c0d61bad70a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_ctl01 epoll_ctl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_ctl01 epoll_ctl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_ctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4fdc742aa37725383bd226c05716ed5c544dc103 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_ctl02 epoll_ctl02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_ctl02 epoll_ctl02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_ctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..067e8fc2a318d301b9353fe45d747a84e89cc53f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_ctl03 epoll_ctl03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_ctl03 epoll_ctl03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_ctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl04.sh new file mode 100644 index 0000000000000000000000000000000000000000..98e218c9b76127515865b362671e4f48ce1d7940 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_ctl04 epoll_ctl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_ctl04 epoll_ctl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_ctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl05.sh new file mode 100644 index 0000000000000000000000000000000000000000..9f49a56c11936cd1d3075fd76236e5e72c33e985 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_ctl05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_ctl05 epoll_ctl05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_ctl05 epoll_ctl05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_pwait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait01.sh new file mode 100644 index 0000000000000000000000000000000000000000..14c3d0f1b6a57970ac6ae3ef88c0ce4f7e84d4c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_pwait01 epoll_pwait01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_pwait01 epoll_pwait01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_pwait02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait02.sh new file mode 100644 index 0000000000000000000000000000000000000000..183f58d961b888497c3404cea1d09798b4249636 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_pwait02 epoll_pwait02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_pwait02 epoll_pwait02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_pwait03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a9fc68ab509af518d74a268f51cc28c08f93fea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_pwait03 epoll_pwait03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_pwait03 epoll_pwait03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_pwait04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait04.sh new file mode 100644 index 0000000000000000000000000000000000000000..243bc26372a3d18431f6e42720d06ef025a89254 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_pwait04 epoll_pwait04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_pwait04 epoll_pwait04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_pwait05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait05.sh new file mode 100644 index 0000000000000000000000000000000000000000..26da0b4f292dfb75c370429e35c90b89c6bb779f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_pwait05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_pwait05 epoll_pwait05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_pwait05 epoll_pwait05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_wait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3cbf656928c6a42d464ca6ef64ac8184e07a8ac8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_wait01 epoll_wait01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_wait01 epoll_wait01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_wait02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait02.sh new file mode 100644 index 0000000000000000000000000000000000000000..5beb708d3f4380e658b4c84f5d6b8327b8e024aa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_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_syscalls epoll_wait02 epoll_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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_wait02 epoll_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_syscalls/oe_test_ltp_syscalls_epoll_wait03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait03.sh new file mode 100644 index 0000000000000000000000000000000000000000..de52bd1f8d5944d14b7c7c604e7a9a42e35f7822 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_wait03 epoll_wait03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_wait03 epoll_wait03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_wait04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait04.sh new file mode 100644 index 0000000000000000000000000000000000000000..92e9e42f3ba6b1dedb6d52ac781fc45c49a90f4c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_wait04 epoll_wait04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_wait04 epoll_wait04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_wait05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait05.sh new file mode 100644 index 0000000000000000000000000000000000000000..e050e537e863acbd9572e26127346a014439b7d5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_wait05 epoll_wait05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_wait05 epoll_wait05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_wait06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait06.sh new file mode 100644 index 0000000000000000000000000000000000000000..9acb8d7872db287fd3f575823b57b4a75eac3ec1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_wait06 epoll_wait06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_wait06 epoll_wait06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_epoll_wait07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait07.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c43539a1ba0e7bd83e3790be18afbadb28174c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_epoll_wait07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 epoll_wait07 epoll_wait07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls epoll_wait07 epoll_wait07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_eventfd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9849751e334805bcdd6895f12c3e29ccd2c496ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 eventfd01 eventfd01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls eventfd01 eventfd01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_eventfd02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd02.sh new file mode 100644 index 0000000000000000000000000000000000000000..056c056a3e27e99cda8bae532c720f813ee121eb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 eventfd02 eventfd02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls eventfd02 eventfd02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_eventfd03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd03.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a46fb6168b02a80605347b8c1ab4d7cec794768 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 eventfd03 eventfd03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls eventfd03 eventfd03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_eventfd04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd04.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4061e5526099e0ee43660e525a3ceeef71233eb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 eventfd04 eventfd04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls eventfd04 eventfd04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_eventfd05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd05.sh new file mode 100644 index 0000000000000000000000000000000000000000..8636ec4fa873a75c79c816460c6f297b4028d748 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 eventfd05 eventfd05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls eventfd05 eventfd05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_eventfd06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd06.sh new file mode 100644 index 0000000000000000000000000000000000000000..415976ced52ef13e5f748526cb60daa47ee29de0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 eventfd06 eventfd06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls eventfd06 eventfd06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_eventfd2_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_01.sh new file mode 100644 index 0000000000000000000000000000000000000000..63b593cb09f7b4676c8649ed9b34a9902efb0fe8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_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 eventfd2_01 eventfd2_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 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" + CHECK_RESULT $? 1 0 "syscalls eventfd2_01 eventfd2_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_eventfd2_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_02.sh new file mode 100644 index 0000000000000000000000000000000000000000..602737e6f11ba0a3e6a2a27ac74888c200bccd7e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_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 eventfd2_02 eventfd2_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 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" + CHECK_RESULT $? 1 0 "syscalls eventfd2_02 eventfd2_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_eventfd2_03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_03.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f03bf2d25a2968425d45d36ffa41d8659af850a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_eventfd2_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_syscalls eventfd2_03 eventfd2_03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls eventfd2_03 eventfd2_03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..26353aeef21b92033da2d769ffaf965b38622ea0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execl01 execl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execl01 execl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execle01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execle01.sh new file mode 100644 index 0000000000000000000000000000000000000000..76f308fe63a27318af6327f02f1c155873279d81 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execle01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execle01 execle01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execle01 execle01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execlp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execlp01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a6866f4917ebd4f6afc02ead86aed3d57c150b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execlp01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execlp01 execlp01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execlp01 execlp01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execv01.sh new file mode 100644 index 0000000000000000000000000000000000000000..99cbf7bf57fa0f27e3c3624abc58911e558e2ff5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execv01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execv01 execv01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execv01 execv01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execve01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b2d9b695e151cca6e88f94c24f71a9e9defa548 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execve01 execve01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execve01 execve01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execve02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed6f8918121317bdd5557fb045e27d91d3707263 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execve02 execve02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execve02 execve02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execve03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve03.sh new file mode 100644 index 0000000000000000000000000000000000000000..4fc86844a228e877fd738f81f765cd350d8f1225 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execve03 execve03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execve03 execve03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execve04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve04.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ef6416e01a93a593cf12945f32a34c0b65a9b1a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execve04 execve04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execve04 execve04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execve05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve05.sh new file mode 100644 index 0000000000000000000000000000000000000000..cb6856a46a703f922060b551a70b450ad227b6ab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execve05 execve05 -i 5 -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 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" + CHECK_RESULT $? 1 0 "syscalls execve05 execve05 -i 5 -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_syscalls/oe_test_ltp_syscalls_execve06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve06.sh new file mode 100644 index 0000000000000000000000000000000000000000..933fb5a6db385ca73ee375ec7e9285fd41c7072d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execve06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execve06 execve06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execve06 execve06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execveat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a670b04bd2a16449111b7b242305cef4ee84ec8a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execveat01 execveat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execveat01 execveat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execveat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..aea9a97f9173f4991e0be79a8f7a08b76a0531bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execveat02 execveat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execveat02 execveat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execveat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat03.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a5c4e8ff1fc23bc69bbe23849d53511e90e2d6b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execveat03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execveat03 execveat03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execveat03 execveat03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_execvp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execvp01.sh new file mode 100644 index 0000000000000000000000000000000000000000..12149f3015041f533fa12c5c00cf08febd434e64 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_execvp01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 execvp01 execvp01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls execvp01 execvp01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_exit01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0558cc235faacf68862ff818479e7d5758578f3d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 exit01 exit01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls exit01 exit01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_exit02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f89a326ade98439e44fa3b5956374cdc928eb121 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 exit02 exit02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls exit02 exit02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_exit_group01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit_group01.sh new file mode 100644 index 0000000000000000000000000000000000000000..acba5e87e743b7013ff757b8c69a255f218e465c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_exit_group01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 exit_group01 exit_group01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls exit_group01 exit_group01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_faccessat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..164df2941382e77cc4a8d909aa07273d4474b822 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 faccessat01 faccessat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls faccessat01 faccessat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_faccessat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c713f1b307e2eb87adff489b95180f4c1f6bf49 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 faccessat02 faccessat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls faccessat02 faccessat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_faccessat201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat201.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f62c0371fa74349b6c78a04ee1c6c256bf4c63b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat201.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 faccessat201 faccessat201 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls faccessat201 faccessat201 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_faccessat202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat202.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae6825224747e4b78f9e5c108c061f280ccb6857 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_faccessat202.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 faccessat202 faccessat202 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls faccessat202 faccessat202 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fallocate01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate01.sh new file mode 100644 index 0000000000000000000000000000000000000000..da57223e2bd8860d7156405cd37b84e755935853 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fallocate01 fallocate01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fallocate01 fallocate01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fallocate02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate02.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd3fbcfb1548a6e48c05f1d275466d70d1b3e541 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fallocate02 fallocate02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fallocate02 fallocate02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fallocate03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate03.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0707f201555034a739a4c2e9bce104f17386958 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fallocate03 fallocate03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fallocate03 fallocate03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fallocate04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate04.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c98f7ad0a7a6da10a186b4855a334353fd0f461 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fallocate04 fallocate04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fallocate04 fallocate04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fallocate05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate05.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad7b038a272dadca98048a49d070d40cf542dfba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fallocate05 fallocate05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fallocate05 fallocate05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fallocate06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate06.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b87a773809878e7c7999cc0202994a65b01b8bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fallocate06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fallocate06 fallocate06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fallocate06 fallocate06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify01.sh new file mode 100644 index 0000000000000000000000000000000000000000..16cba6a81e9ae2240e496a62482f83203b3e9507 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify01 fanotify01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify01 fanotify01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9319d80719e113ac25555d70bba748cdbeb3a91 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify02 fanotify02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify02 fanotify02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify03.sh new file mode 100644 index 0000000000000000000000000000000000000000..e63c1d55d726a1bc328b751b424183d2c52e2d17 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify03 fanotify03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify03 fanotify03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify04.sh new file mode 100644 index 0000000000000000000000000000000000000000..928f36e318cbab60a4b6f4970fd73319d0e9826d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify04 fanotify04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify04 fanotify04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify05.sh new file mode 100644 index 0000000000000000000000000000000000000000..73648e4fd0406f5ed5e5d7fe00271f121b6080a7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify05 fanotify05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify05 fanotify05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify06.sh new file mode 100644 index 0000000000000000000000000000000000000000..409c9bf903e5b55ed90f4c0d23ddc0339a8b19cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify06 fanotify06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify06 fanotify06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify07.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb02a40c235d3a4db693f69a6bb4420279aeea51 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify07 fanotify07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify07 fanotify07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify08.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9ed749ba8ca8cf00e449049a5c2fd1aacfdb5a6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify08 fanotify08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify08 fanotify08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify09.sh new file mode 100644 index 0000000000000000000000000000000000000000..616aedc989cd26d2890e2368c03bee72e45c8fd6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify09 fanotify09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify09 fanotify09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify10.sh new file mode 100644 index 0000000000000000000000000000000000000000..54f8d4e1c464536234173447791699da86bac8f2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify10 fanotify10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify10 fanotify10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify11.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e3c5315b5bf61ef58a5b2c4483be0e0afbfa0da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify11 fanotify11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify11 fanotify11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify12.sh new file mode 100644 index 0000000000000000000000000000000000000000..65b7d344d9de1822e83d3c364231bacd39e2d90a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify12 fanotify12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify12 fanotify12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify13.sh new file mode 100644 index 0000000000000000000000000000000000000000..20eeda8ea74ef3e5543f0edf62b7b5f8e2e3aae1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify13 fanotify13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify13 fanotify13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify14.sh new file mode 100644 index 0000000000000000000000000000000000000000..39f8ada4a8e62e78216ac2c3e54209805cf8b224 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify14 fanotify14 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify14 fanotify14 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify15.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify15.sh new file mode 100644 index 0000000000000000000000000000000000000000..61713cf0cea34cd48c6cbd4f1ffb5a99ddeb0d86 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify15 fanotify15 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify15 fanotify15 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify16.sh new file mode 100644 index 0000000000000000000000000000000000000000..7756c4d28d89fca6eb438923f3c6e82f1fb0f1e0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify16 fanotify16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify16 fanotify16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify17.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify17.sh new file mode 100644 index 0000000000000000000000000000000000000000..431af4f636085985c510f53e7d3eeb09825f124f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify17 fanotify17 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify17 fanotify17 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify18.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify18.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccfc9638e5f3a5350c91bce14d3c84b5b281a538 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify18 fanotify18 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify18 fanotify18 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify19.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify19.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7858e4b9cc3c8b1c58c059b94a18f2e49b7e792 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify19 fanotify19 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify19 fanotify19 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify20.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify20.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0c019e6f1e863cd7734e46e955aa42c09691183 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify20 fanotify20 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify20 fanotify20 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify21.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify21.sh new file mode 100644 index 0000000000000000000000000000000000000000..abbfe0e1b78f980c0640143c5a4bbf392dda8a21 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify21 fanotify21 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify21 fanotify21 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify22.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify22.sh new file mode 100644 index 0000000000000000000000000000000000000000..198deb6707f96b5556683239f4ce01b39b0c8b3d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify22 fanotify22 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify22 fanotify22 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fanotify23.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify23.sh new file mode 100644 index 0000000000000000000000000000000000000000..cbcd5fc3d698a67efa82f99bbd6a5f9e1ec53239 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fanotify23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fanotify23 fanotify23 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fanotify23 fanotify23 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchdir01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir01.sh new file mode 100644 index 0000000000000000000000000000000000000000..65702d85303cb8f6acf2938edf4f598bb4b04e30 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchdir01 fchdir01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchdir01 fchdir01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchdir02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9151236173bcb20bdc17806c6f38b40c77fe933 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchdir02 fchdir02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchdir02 fchdir02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchdir03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir03.sh new file mode 100644 index 0000000000000000000000000000000000000000..45ca4c5d672c010debe97974a34c4de9966707f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchdir03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchdir03 fchdir03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchdir03 fchdir03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchmod01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod01.sh new file mode 100644 index 0000000000000000000000000000000000000000..91a74f415e3b37c92fe35222499f8b511c43c69e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchmod01 fchmod01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchmod01 fchmod01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchmod02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff9239b55f9bb964ac87f7c6e05cd0abf11e54c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchmod02 fchmod02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchmod02 fchmod02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchmod03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod03.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7e11e9180cb0fcec868966ce6448e60c1ff1fb8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchmod03 fchmod03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchmod03 fchmod03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchmod04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod04.sh new file mode 100644 index 0000000000000000000000000000000000000000..52127531492d4b155a3c9bc86a6bbf84f452ecec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchmod04 fchmod04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchmod04 fchmod04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchmod05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod05.sh new file mode 100644 index 0000000000000000000000000000000000000000..83bdfb893b7deb450c24d65a16aa5cb9fe54fded --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchmod05 fchmod05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchmod05 fchmod05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchmod06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod06.sh new file mode 100644 index 0000000000000000000000000000000000000000..823c88b8dafe64ef6687b23fcd07e4556ce987b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmod06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchmod06 fchmod06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchmod06 fchmod06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchmodat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..00e5f27682d0da846538580ec6145d140ad0d309 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchmodat01 fchmodat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchmodat01 fchmodat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchmodat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb97e4d565d5a2fb811246365bf80bf28024f9a7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchmodat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchmodat02 fchmodat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchmodat02 fchmodat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..7ad962c8df0318be9c85c4ce654b8358994d3163 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchown01 fchown01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchown01 fchown01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4db45590fc8fcd0537623dc9fda53963dd3ac18 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchown01_16 fchown01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchown01_16 fchown01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchown02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02.sh new file mode 100644 index 0000000000000000000000000000000000000000..b26b63be9da33427b27907cac2a3abaf5b4038e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchown02 fchown02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchown02 fchown02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchown02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..754f9ceb64d404e4aa85cf325831e6055e429808 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchown02_16 fchown02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchown02_16 fchown02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchown03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03.sh new file mode 100644 index 0000000000000000000000000000000000000000..17f19820e9d95ed2f671afdcb28fadab4599c8d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchown03 fchown03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchown03 fchown03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchown03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d338236a30b2d1676710098b6f352ab2b7b167a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchown03_16 fchown03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchown03_16 fchown03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchown04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04.sh new file mode 100644 index 0000000000000000000000000000000000000000..b196d90c072ee415a63b4402a97d1c7b260db3e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchown04 fchown04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchown04 fchown04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchown04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..cca33f8b43c5b008249d58480623c1393ca2c90a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown04_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchown04_16 fchown04_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchown04_16 fchown04_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchown05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05.sh new file mode 100644 index 0000000000000000000000000000000000000000..fef58ef807a718128a6e18f8cd44a116196e80bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchown05 fchown05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchown05 fchown05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchown05_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e0a8ee0158892b893b5662f2fd5600ee9bf29e9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchown05_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchown05_16 fchown05_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchown05_16 fchown05_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchownat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e632138b36bf00bb1df9959e8c831691a03c312f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchownat01 fchownat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchownat01 fchownat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fchownat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3322a17fc2f39788fd2afab723bbffbd756141fd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fchownat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fchownat02 fchownat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fchownat02 fchownat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..307094bf593371189072b03a227d88ad04ece4bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl01 fcntl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl01 fcntl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2c72a2a2fb002055dc81a0d924557beb41a2dfd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl01_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 fcntl01_64 fcntl01_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl01_64 fcntl01_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_fcntl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b9ea530e32f8162efbf0dae482d1266fc8fc8d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl02 fcntl02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl02 fcntl02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..113126e7e33b23190d92eea8e9f4859fd22453e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl02_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 fcntl02_64 fcntl02_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl02_64 fcntl02_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_fcntl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..59de155e7ffdb90f1d51a378c7989e19bd2a49e7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl03 fcntl03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl03 fcntl03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e7b2420ba4a7edfdd84072d89bae35c5d6aab30 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl03_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 fcntl03_64 fcntl03_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl03_64 fcntl03_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_fcntl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c8a66e295f62ddf8f70c0c9732d9b675351ba91 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl04 fcntl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl04 fcntl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..b8ab844a0c719a224a0a1e92b68a67a4c06759c2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl04_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 fcntl04_64 fcntl04_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl04_64 fcntl04_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_fcntl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05.sh new file mode 100644 index 0000000000000000000000000000000000000000..6230e1067a52264926ba9ad3300dba7978c273dd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl05 fcntl05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl05 fcntl05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl05_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..918f5dc6ea805a59dc738a2c5508fbd1ba19616d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl05_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 fcntl05_64 fcntl05_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl05_64 fcntl05_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_fcntl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e3277414de302604b5d63f6b339e1f6f0c5bb35 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl07 fcntl07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl07 fcntl07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl07_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..58086094d33083baa18ccd7e1ec6758ae7b660c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl07_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 fcntl07_64 fcntl07_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl07_64 fcntl07_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_fcntl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08.sh new file mode 100644 index 0000000000000000000000000000000000000000..edfe53a1f3f69ec4df7b63585b9c5b82847248dc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl08 fcntl08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl08 fcntl08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl08_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..b476b966c1d9199503f51d574a3bc2f1b88dbd60 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl08_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 fcntl08_64 fcntl08_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl08_64 fcntl08_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_fcntl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09.sh new file mode 100644 index 0000000000000000000000000000000000000000..9007f7f7720f7287ce9bc62feca1725254895be3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl09 fcntl09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl09 fcntl09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl09_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..8da2bb05bba1f6ea832f9cbad2c6213ddd9e1ef2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl09_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 fcntl09_64 fcntl09_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl09_64 fcntl09_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_fcntl10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b324f601bee5f5320add4c6671463c84c035b7b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl10 fcntl10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl10 fcntl10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl10_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf71741a56e91eafb3b9f74349344c4b16b76709 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl10_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 fcntl10_64 fcntl10_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl10_64 fcntl10_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_fcntl11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11.sh new file mode 100644 index 0000000000000000000000000000000000000000..d94721c2ff2079c48a74692975a75e34dc691d4e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl11 fcntl11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl11 fcntl11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl11_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..11e1bf5eb358d69351737270fbcbc143ba15e765 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl11_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 fcntl11_64 fcntl11_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl11_64 fcntl11_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_fcntl12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9ef9644341a49a9aa15060fa041fd215ff117dc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl12 fcntl12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl12 fcntl12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl12_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d2114808747c1e7c97cf65ac1fb0d7d90728e3c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl12_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 fcntl12_64 fcntl12_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl12_64 fcntl12_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_fcntl13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b166b528aeb9731720b937d51ba0cf9869c8bac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl13 fcntl13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl13 fcntl13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl13_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..13c5c9dc06bda0bbeef91fa595de5c2ebef449bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl13_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 fcntl13_64 fcntl13_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl13_64 fcntl13_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_fcntl14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14.sh new file mode 100644 index 0000000000000000000000000000000000000000..5477405d5293ede32b0c03ab71546fc71a8fc4a7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl14 fcntl14 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl14 fcntl14 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl14_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..a8d7a1678cd64071368f9ccec80f3ead12b55ecc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl14_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 fcntl14_64 fcntl14_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl14_64 fcntl14_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_fcntl15.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e41ebd37672b99ee15166de191d3775e1554327 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl15 fcntl15 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl15 fcntl15 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl15_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..adcf4596b490ff4e342d436754dced883f06ef17 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl15_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 fcntl15_64 fcntl15_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl15_64 fcntl15_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_fcntl16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16.sh new file mode 100644 index 0000000000000000000000000000000000000000..34ef0a56d299eee9f4a57846bb0e363760f4836f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl16 fcntl16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl16 fcntl16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl16_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb003d3a1e872ddfe6b8f31c9f0d81f4d952f412 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl16_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 fcntl16_64 fcntl16_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl16_64 fcntl16_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_fcntl17.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c34db2610a2875c925fe388446c1e8144dbba3c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl17 fcntl17 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl17 fcntl17 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl17_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..8f170bbda489a1c45657c047321cd1194d33935a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl17_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 fcntl17_64 fcntl17_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl17_64 fcntl17_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_fcntl18.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0fda9af7b05cde34393620e4367d1e1f85dea72 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl18 fcntl18 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl18 fcntl18 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl18_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..f381899445cf3d9ebf7a6cae50e0608b3cad03ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl18_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 fcntl18_64 fcntl18_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl18_64 fcntl18_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_fcntl19.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19.sh new file mode 100644 index 0000000000000000000000000000000000000000..66366d7d6eeb8c3f5f38e5ee77496101bd62a578 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl19 fcntl19 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl19 fcntl19 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl19_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..78c044b771e79cedccc99ae54b4745e556b5ab7d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl19_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 fcntl19_64 fcntl19_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl19_64 fcntl19_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_fcntl20.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d371a8bb5a743cfb168c0938c49230c3ff88d24 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl20 fcntl20 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl20 fcntl20 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl20_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..493bcef078397cbb17204df3d7ab07417fef72e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl20_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 fcntl20_64 fcntl20_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl20_64 fcntl20_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_fcntl21.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf07d0ff13c6df4a00c21e71690c8b717f46576c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl21 fcntl21 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl21 fcntl21 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl21_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..78a603c62cbc5bc9e56fa0a4f7cb4004a306a125 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl21_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 fcntl21_64 fcntl21_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl21_64 fcntl21_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_fcntl22.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22.sh new file mode 100644 index 0000000000000000000000000000000000000000..af2ed2e41bb5f0fd05465fc62c2339b6f933dc4f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl22 fcntl22 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl22 fcntl22 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl22_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..78d71fc913ce9f05cbc8f4267156259817e9f5a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl22_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 fcntl22_64 fcntl22_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl22_64 fcntl22_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_fcntl23.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23.sh new file mode 100644 index 0000000000000000000000000000000000000000..46f45cc2ccc1fff17681de6ce7877cfd3cfec43b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl23 fcntl23 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl23 fcntl23 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl23_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..56d13d779f15216107235e80edaadd13402dfc05 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl23_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 fcntl23_64 fcntl23_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl23_64 fcntl23_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_fcntl24.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24.sh new file mode 100644 index 0000000000000000000000000000000000000000..f147907b53059f647fd7e80870c35c94d45b61e2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl24 fcntl24 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl24 fcntl24 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl24_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..b572a51146c28bcd0b0483139b4fd455e87c8861 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl24_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 fcntl24_64 fcntl24_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl24_64 fcntl24_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_fcntl25.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25.sh new file mode 100644 index 0000000000000000000000000000000000000000..f66d11b780a67efb8edafdbeee34ab2db272ec90 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl25 fcntl25 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl25 fcntl25 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl25_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cd6b4bdf2e83de4c91996a07566ecef403f7ff3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl25_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 fcntl25_64 fcntl25_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl25_64 fcntl25_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_fcntl26.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f64a27b6d0a26146e5195c76c1f2cfc21658862 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl26 fcntl26 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl26 fcntl26 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl26_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3bf24d89c2c7767e8f3e6d27339abb404fa8579 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl26_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 fcntl26_64 fcntl26_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl26_64 fcntl26_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_fcntl27.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b30f830977686e689d9bfc0840d60dac98d2227 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl27 fcntl27 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl27 fcntl27 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl27_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac1b93caa7f68cea2b9cb3aa9bee79ced04f5ee0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl27_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 fcntl27_64 fcntl27_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl27_64 fcntl27_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_fcntl28.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl28.sh new file mode 100644 index 0000000000000000000000000000000000000000..2468d24fbfbc470d47e44087cf2cb7cd62dd3f1a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl28.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl28 fcntl28 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 fcntl28 fcntl28 + 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 fcntl28 fcntl28 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl28_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl28_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..75a00ba40eab3801cbe3d95cf10c694b20aee305 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl28_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 fcntl28_64 fcntl28_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 fcntl28_64 fcntl28_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 fcntl28_64 fcntl28_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_fcntl29.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2a99673886f991e9f374a8395e7796fd5fb2e93 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl29 fcntl29 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl29 fcntl29 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl29_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..87f3d53ee4718280cd8ebd59d66465dad503cf0c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl29_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 fcntl29_64 fcntl29_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl29_64 fcntl29_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_fcntl30.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30.sh new file mode 100644 index 0000000000000000000000000000000000000000..7aebe9613204275046212a49969f91f22dcab6c3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl30 fcntl30 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl30 fcntl30 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl30_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..974c9f487b24767c867c0f6c348811871f468a37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl30_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 fcntl30_64 fcntl30_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl30_64 fcntl30_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_fcntl31.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31.sh new file mode 100644 index 0000000000000000000000000000000000000000..f90d46d48fdd86d689a6cb83c533cbbf681fd830 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl31 fcntl31 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl31 fcntl31 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl31_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..d32a757e510f8ea39de2783d8f0ec4722dc741ce --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl31_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 fcntl31_64 fcntl31_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl31_64 fcntl31_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_fcntl32.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32.sh new file mode 100644 index 0000000000000000000000000000000000000000..01ee0ce99ecb19ca1c26656263863f984da3a623 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl32 fcntl32 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl32 fcntl32 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl32_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ac1c938ddfe1f6b837d5415c2f8f96f48fc238e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl32_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 fcntl32_64 fcntl32_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl32_64 fcntl32_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_fcntl33.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33.sh new file mode 100644 index 0000000000000000000000000000000000000000..2b549c21796830989b9728891111d0218d2abb31 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl33 fcntl33 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl33 fcntl33 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl33_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..f82cb40111471e0e9b6412dd8b0ff16a8816772e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl33_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 fcntl33_64 fcntl33_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl33_64 fcntl33_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_fcntl34.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34.sh new file mode 100644 index 0000000000000000000000000000000000000000..cdb297250baa76cba810dbb88a1c4735e3f70013 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl34 fcntl34 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl34 fcntl34 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl34_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..8832f4734c13ed18b4f3a47788cdfc3b32eccf10 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl34_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 fcntl34_64 fcntl34_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl34_64 fcntl34_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_fcntl35.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc0a223b02309a3ad07eac8ab6fa7f4e53d5e2b3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl35 fcntl35 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl35 fcntl35 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl35_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..f79b6a7d666895837082cf49c65f2e5cb0eb9f1f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl35_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 fcntl35_64 fcntl35_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl35_64 fcntl35_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_fcntl36.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36.sh new file mode 100644 index 0000000000000000000000000000000000000000..894bf7c99bc890d42fa730159b0a03d2168336f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl36 fcntl36 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl36 fcntl36 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl36_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..5a7bf4831203326be8e0aa849409dc2f7536825c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl36_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 fcntl36_64 fcntl36_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl36_64 fcntl36_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_fcntl37.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37.sh new file mode 100644 index 0000000000000000000000000000000000000000..974f71e8e4cee6184fcb7d3255057de58f5824b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl37 fcntl37 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl37 fcntl37 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl37_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ddcb3c23c00f5bbcc1f641497058f701f164eb0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl37_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 fcntl37_64 fcntl37_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl37_64 fcntl37_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_fcntl38.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2454f07f4a858c32964ff238a88a8720ceeda6b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl38 fcntl38 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl38 fcntl38 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl38_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fed12106fb76d8824ca3d39f6bd0535330edb04 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl38_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 fcntl38_64 fcntl38_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl38_64 fcntl38_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_fcntl39.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39.sh new file mode 100644 index 0000000000000000000000000000000000000000..47181278869bd5877831c421e72c7096afa456a1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fcntl39 fcntl39 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl39 fcntl39 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fcntl39_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..40076ffd64444b04293ef524893f844a0f6d7620 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fcntl39_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 fcntl39_64 fcntl39_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 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" + CHECK_RESULT $? 1 0 "syscalls fcntl39_64 fcntl39_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_fdatasync01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0f5469c13aefe64d09595b0d5bb3407047e404e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fdatasync01 fdatasync01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fdatasync01 fdatasync01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fdatasync02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync02.sh new file mode 100644 index 0000000000000000000000000000000000000000..46ee8e36e69e9a479e5ee4dc3c1f7d4d5a93600c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fdatasync02 fdatasync02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fdatasync02 fdatasync02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fdatasync03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b61e61a13be987e3dacb01716bbb7d739054041 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fdatasync03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fdatasync03 fdatasync03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fdatasync03 fdatasync03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fgetxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..25070745f7c77fe0d5f67351b70970b38ab80de6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fgetxattr01 fgetxattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fgetxattr01 fgetxattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fgetxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..eeb2462c616b4c8f1e580e5e14f720920b9676ca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fgetxattr02 fgetxattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fgetxattr02 fgetxattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fgetxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr03.sh new file mode 100644 index 0000000000000000000000000000000000000000..e47199a6568b7d30e1a2e399af4da7e66b9f629a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fgetxattr03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fgetxattr03 fgetxattr03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fgetxattr03 fgetxattr03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_finit_module01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4efcb4a019fc4d03705356bfab43733e77d0d401 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 finit_module01 finit_module01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls finit_module01 finit_module01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_finit_module02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c94f89266d9da5604eb2bec4f29def553289068f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_finit_module02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 finit_module02 finit_module02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls finit_module02 finit_module02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_flistxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..103dca76a818b6cd16e85af0bf8ed2cd2098f65a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 flistxattr01 flistxattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls flistxattr01 flistxattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_flistxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3894e710e9f6b6e8572c6d5c1b7a895f83468a4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 flistxattr02 flistxattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls flistxattr02 flistxattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_flistxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr03.sh new file mode 100644 index 0000000000000000000000000000000000000000..129ced77e7cf490c495f2fe217d30eda6c54ec1f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flistxattr03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 flistxattr03 flistxattr03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls flistxattr03 flistxattr03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_flock01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e5cdde37fd4624ccedaef8f0bf89ef58bb1c8de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 flock01 flock01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls flock01 flock01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_flock02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock02.sh new file mode 100644 index 0000000000000000000000000000000000000000..310082c236391961e215ff04f331f78d3cbbb6b3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 flock02 flock02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls flock02 flock02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_flock03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock03.sh new file mode 100644 index 0000000000000000000000000000000000000000..4818f36f0ed46defb90bb6e0b7fac46c1e7d859f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 flock03 flock03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls flock03 flock03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_flock04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock04.sh new file mode 100644 index 0000000000000000000000000000000000000000..4785ead74968b13c4b78ab4e2fdf61d7e7596f2d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 flock04 flock04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls flock04 flock04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_flock06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock06.sh new file mode 100644 index 0000000000000000000000000000000000000000..886ba99c86f9f24cc8ff5284cd6ceb4b06654b8a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_flock06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 flock06 flock06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls flock06 flock06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fmtmsg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fmtmsg01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8380251d43fd50be89ce45b9772485d5510bca0c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fmtmsg01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fmtmsg01 fmtmsg01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fmtmsg01 fmtmsg01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fork01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork01.sh new file mode 100644 index 0000000000000000000000000000000000000000..afbd96e18f035f40e7493032fb6f03c1c2e14071 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_fork03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork03.sh new file mode 100644 index 0000000000000000000000000000000000000000..161b702b3eb26490183acb18a07b0053f4acefd5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork03 fork03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fork03 fork03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fork04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork04.sh new file mode 100644 index 0000000000000000000000000000000000000000..beb548479de8501e7f2881f680ed47a1fd1dc91d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork04 fork04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fork04 fork04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fork05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork05.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9f8b35ba68bf4d096c19158e32b5b6a3906fff6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork05 fork05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fork05 fork05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fork06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork06.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd28c93b869c6375783396125738637a2e6f9bfc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork06 fork_procs -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 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" + CHECK_RESULT $? 1 0 "syscalls fork06 fork_procs -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_syscalls/oe_test_ltp_syscalls_fork07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork07.sh new file mode 100644 index 0000000000000000000000000000000000000000..63792e00204ef6e5531d999409b117fb4bcfa442 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork07 fork07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fork07 fork07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fork08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork08.sh new file mode 100644 index 0000000000000000000000000000000000000000..8da40f6ae750340c9a3dec94d67ca5664517ef74 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork08 fork08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fork08 fork08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fork09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork09.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f80c7d417abbb8747024f7d2e3bf3baa2e66b15 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork09 fork09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fork09 fork09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fork10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork10.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ba6367102a5263168f2f231880e410ea80c78cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork10 fork10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fork10 fork10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fork11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork11.sh new file mode 100644 index 0000000000000000000000000000000000000000..f46c66bd60356880a1470a849d7c2a53b53a0c2f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork11 fork_procs -n 100 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fork11 fork_procs -n 100 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fork13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork13.sh new file mode 100644 index 0000000000000000000000000000000000000000..7847dce6897cecef2e4030babdc9125e0baec460 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork13 fork13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fork13 fork13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fork14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork14.sh new file mode 100644 index 0000000000000000000000000000000000000000..460b3716cb6d8d7837b73cf9d784d59caf1d89ac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fork14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fork14 fork14 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fork14 fork14 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fpathconf01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fpathconf01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9b8f83c4c6c18a09c09f5ed11e4301dfa030271 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fpathconf01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fpathconf01 fpathconf01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fpathconf01 fpathconf01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fremovexattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..598bdddc377a2c65b387a2f33436b0d081af175d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fremovexattr01 fremovexattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fremovexattr01 fremovexattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fremovexattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..efb8565e1c86ca2b166b9f117b485e14853722c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fremovexattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fremovexattr02 fremovexattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fremovexattr02 fremovexattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsconfig01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c35f845ec943a2378f8e50c35644a4fcb5ec3da8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsconfig01 fsconfig01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsconfig01 fsconfig01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsconfig02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a0609fe169cca64e3f388f3a5777068a82d0755e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsconfig02 fsconfig02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsconfig02 fsconfig02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsconfig03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig03.sh new file mode 100644 index 0000000000000000000000000000000000000000..c88c4084c1ed620227a81859fc45ee50d922d82e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsconfig03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsconfig03 fsconfig03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsconfig03 fsconfig03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsetxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1d5a0149079ac7c56b86141ffdb68e2e43943947 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsetxattr01 fsetxattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsetxattr01 fsetxattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsetxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2c60d3ba96f8173d6100e4216a499aa1c16fcc7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsetxattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsetxattr02 fsetxattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsetxattr02 fsetxattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsmount01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a03663f8305f8ffd2e93183e64d0294e2a143a61 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsmount01 fsmount01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsmount01 fsmount01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsmount02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount02.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf23f9ef63f264df92e05daf0c5f674b3b3ef7a3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsmount02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsmount02 fsmount02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsmount02 fsmount02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsopen01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac30fb1df740b6acad71e32f6e747a930d6f238f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsopen01 fsopen01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsopen01 fsopen01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsopen02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d68b33a22705d0779f8974908e62011ab16f551a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsopen02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsopen02 fsopen02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsopen02 fsopen02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fspick01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7e404404e06744665bcae791fe5dfcb9f771c24 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fspick01 fspick01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fspick01 fspick01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fspick02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4347d1993271419c74501e81a2956f38b3b4878 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fspick02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fspick02 fspick02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fspick02 fspick02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fstat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..daecf9dd6ff035afea30db32dd7521d11e4f11a7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fstat02 fstat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fstat02 fstat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fstat02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..f81e48e5b1d24105618300e1a624e95d4858c1b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat02_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 fstat02_64 fstat02_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 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" + CHECK_RESULT $? 1 0 "syscalls fstat02_64 fstat02_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_fstat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03.sh new file mode 100644 index 0000000000000000000000000000000000000000..b855d140be71958551366c2253058b216b1128f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fstat03 fstat03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fstat03 fstat03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fstat03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..552737f70cf7a468e4c33f96942b3303f5910428 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstat03_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 fstat03_64 fstat03_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 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" + CHECK_RESULT $? 1 0 "syscalls fstat03_64 fstat03_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_fstatat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..45dc617138773dfef97826f98b524f031c40139a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fstatat01 fstatat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fstatat01 fstatat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fstatfs01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01.sh new file mode 100644 index 0000000000000000000000000000000000000000..12aa05221624a96d23b2328143a5297a5f3edec0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fstatfs01 fstatfs01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fstatfs01 fstatfs01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fstatfs01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa131dbe04b4800b64dc1ee6adab6bd6a80ab787 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs01_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 fstatfs01_64 fstatfs01_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 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" + CHECK_RESULT $? 1 0 "syscalls fstatfs01_64 fstatfs01_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_fstatfs02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02.sh new file mode 100644 index 0000000000000000000000000000000000000000..19d9fec225b2c1e4ee9d7a4c12498554dda8bdd9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fstatfs02 fstatfs02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fstatfs02 fstatfs02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fstatfs02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..33446abc259ac9b9bae874f37141a54877ed78f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fstatfs02_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 fstatfs02_64 fstatfs02_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 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" + CHECK_RESULT $? 1 0 "syscalls fstatfs02_64 fstatfs02_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_fsync01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync01.sh new file mode 100644 index 0000000000000000000000000000000000000000..401c59ac1c6b4b782b8ea8bdbed82c6a24459a7c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsync01 fsync01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsync01 fsync01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsync02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync02.sh new file mode 100644 index 0000000000000000000000000000000000000000..012694e5589a7c5372a57b5ff6a2e351477cb624 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsync02 fsync02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsync02 fsync02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsync03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync03.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e50102597c2ad6473723fe52c621ff95f742fc4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsync03 fsync03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsync03 fsync03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_fsync04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync04.sh new file mode 100644 index 0000000000000000000000000000000000000000..7bb942d5d73aa04dfa3be0b86e0c1cfdf142e661 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_fsync04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 fsync04 fsync04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls fsync04 fsync04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ftruncate01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f714b1f8c7b7f26ef020bd392b7602b1816c3809 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftruncate01 ftruncate01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ftruncate01 ftruncate01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ftruncate01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..86e691221d972ca69b8072bef055eed6808247bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate01_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 ftruncate01_64 ftruncate01_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 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" + CHECK_RESULT $? 1 0 "syscalls ftruncate01_64 ftruncate01_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_ftruncate03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03.sh new file mode 100644 index 0000000000000000000000000000000000000000..a07e355a1dcad5005570bab71e3e1bee194f2f9e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftruncate03 ftruncate03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ftruncate03 ftruncate03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ftruncate03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fd08bd404cbb91ea9850e9a3ed82fede1834526 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate03_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 ftruncate03_64 ftruncate03_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 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" + CHECK_RESULT $? 1 0 "syscalls ftruncate03_64 ftruncate03_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_ftruncate04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04.sh new file mode 100644 index 0000000000000000000000000000000000000000..473f902b39a25a000e66060f2ec6ba876f51b9c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ftruncate04 ftruncate04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ftruncate04 ftruncate04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ftruncate04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fa7f02dcbd5555012e283911cafe6881fbfb220 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ftruncate04_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 ftruncate04_64 ftruncate04_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 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" + CHECK_RESULT $? 1 0 "syscalls ftruncate04_64 ftruncate04_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_futex_cmp_requeue01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue01.sh new file mode 100644 index 0000000000000000000000000000000000000000..431a31d6bbb7a9a060c4ae014f565b15d4064e57 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_cmp_requeue01 futex_cmp_requeue01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_cmp_requeue01 futex_cmp_requeue01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_cmp_requeue02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c83db6cb97e4857ff6f3ec70ea327f6e67b9745e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_cmp_requeue02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_cmp_requeue02 futex_cmp_requeue02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_cmp_requeue02 futex_cmp_requeue02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_wait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ce073589611a8013ee154d9d44b9dbcaad8edd1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_wait01 futex_wait01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_wait01 futex_wait01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_wait02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad4df67285dded9affb6abddfb030907f99b90e9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_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_syscalls futex_wait02 futex_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 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" + CHECK_RESULT $? 1 0 "syscalls futex_wait02 futex_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_syscalls/oe_test_ltp_syscalls_futex_wait03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait03.sh new file mode 100644 index 0000000000000000000000000000000000000000..932b67de44fb5a557930226c34cb48a2d9a66fdd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_wait03 futex_wait03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_wait03 futex_wait03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_wait04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait04.sh new file mode 100644 index 0000000000000000000000000000000000000000..b3a86365cf03877f565f7840b43c39fdb5cba7ea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_wait04 futex_wait04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_wait04 futex_wait04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_wait05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait05.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fed558ba654e8942e4b29877def49709791d999 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_wait05 futex_wait05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_wait05 futex_wait05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_wait_bitset01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait_bitset01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3d65b91182a5b34106f0c93ec33a791756332581 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wait_bitset01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_wait_bitset01 futex_wait_bitset01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_wait_bitset01 futex_wait_bitset01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_waitv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ae00502aa42eade209d48fe6ab5332ce084fbca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_waitv01 futex_waitv01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_waitv01 futex_waitv01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_waitv02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv02.sh new file mode 100644 index 0000000000000000000000000000000000000000..278961b53f87c25230c22face55cd269b196d306 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_waitv02 futex_waitv02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_waitv02 futex_waitv02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_waitv03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv03.sh new file mode 100644 index 0000000000000000000000000000000000000000..4737690f99adcc3716dfe3ffe84ab997c09a6298 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_waitv03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_waitv03 futex_waitv03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_waitv03 futex_waitv03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_wake01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake01.sh new file mode 100644 index 0000000000000000000000000000000000000000..749b97a2545bab6aa49dd5c618b089262aa7fa5e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_wake01 futex_wake01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_wake01 futex_wake01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_wake02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake02.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb2db9c284e88fdca6cc798883ab8dea71c10250 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_wake02 futex_wake02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_wake02 futex_wake02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_wake03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake03.sh new file mode 100644 index 0000000000000000000000000000000000000000..6daa4b491e931853c96028bc618e04cc5f87227a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_wake03 futex_wake03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_wake03 futex_wake03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futex_wake04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake04.sh new file mode 100644 index 0000000000000000000000000000000000000000..604366b6160d39adeafabe7c72075704950573c4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futex_wake04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futex_wake04 futex_wake04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futex_wake04 futex_wake04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_futimesat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futimesat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7c7902c618a129d9d7d1adff04785138c630b06 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_futimesat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 futimesat01 futimesat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls futimesat01 futimesat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_get_mempolicy01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_mempolicy01.sh new file mode 100644 index 0000000000000000000000000000000000000000..2baafe241f16019dce72bc69e0dd6a40755b63b5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_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_syscalls get_mempolicy01 get_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 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" + CHECK_RESULT $? 1 0 "syscalls get_mempolicy01 get_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_syscalls/oe_test_ltp_syscalls_get_mempolicy02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_mempolicy02.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a9c41b0ced4c8d4ba161d852b6cb43365ee9b46 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_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_syscalls get_mempolicy02 get_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 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" + CHECK_RESULT $? 1 0 "syscalls get_mempolicy02 get_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..15275f8b3578ffbab8231e114a43c34b24fbdd4f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_get_robust_list01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 get_robust_list01 get_robust_list01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls get_robust_list01 get_robust_list01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getcontext01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcontext01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e6dfa0564d5fa2105e5043890c563d5c9e05c3a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcontext01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getcontext01 getcontext01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getcontext01 getcontext01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getcpu01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcpu01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1618b575c7d1077c30aaca42e7811405b9b4aaa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcpu01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getcpu01 getcpu01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getcpu01 getcpu01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..53cd757ee488c3565ee34985a8103c4ec8bec36a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getcwd01 getcwd01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getcwd01 getcwd01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getcwd02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2cc535444599f0a4f9629cff78b61d79704293f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getcwd02 getcwd02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getcwd02 getcwd02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getcwd03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd03.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7a9afc186c89352a1a28eabd87741fe3d241b3f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getcwd03 getcwd03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getcwd03 getcwd03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getcwd04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd04.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3f34f62315a73cb8ec1bb7c300b8f3e7294e92e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getcwd04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getcwd04 getcwd04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getcwd04 getcwd04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getdents01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a4a5309c1b44086b30d34cf9b62cf29bdd62e100 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getdents01 getdents01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getdents01 getdents01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getdents02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bb944903ed9a108a5e1c4fe0a4f8dfb23959625 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdents02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getdents02 getdents02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getdents02 getdents02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getdomainname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdomainname01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7197cc1505816fb1b408e449dab6bbb1215e699b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getdomainname01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getdomainname01 getdomainname01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getdomainname01 getdomainname01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getegid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..359b134baa9e6a83240e73545262c313fdfd1f80 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getegid01 getegid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getegid01 getegid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getegid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..e94cb347f2a4cbacbda06e838891d55b601b82f3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getegid01_16 getegid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getegid01_16 getegid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getegid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a2f0a86f4cca610a8d3a0ef47dc0ddc3b2ed2c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getegid02 getegid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getegid02 getegid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getegid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c7c5d147420415cbb669f7847522f5866315e5b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getegid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getegid02_16 getegid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getegid02_16 getegid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_geteuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c4e61ffefe9d3089c6e11a82e95cc297187f250 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 geteuid01 geteuid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls geteuid01 geteuid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_geteuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7f7cb2653c6575d44249a2642bcfc460ea1783e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 geteuid01_16 geteuid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls geteuid01_16 geteuid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_geteuid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..34cc2b1cccf4f2cfcabe0365b1d21bd4d86e0ef1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 geteuid02 geteuid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls geteuid02 geteuid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_geteuid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..2dee0bb55c7727a249783d68a2c5b27420694ffc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_geteuid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 geteuid02_16 geteuid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls geteuid02_16 geteuid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3318a2bf8c721d8364b9612823d6f96748b133f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getgid01 getgid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getgid01 getgid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getgid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..138d00e42a6e5e444145524775f614f67ec5ab22 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getgid01_16 getgid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getgid01_16 getgid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..a496bc677d6ecb85536d2f907cbbb39908493b1d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getgid03 getgid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getgid03 getgid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getgid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..a42e33dc14ffcd27de2380ac925bc4c3421d0f6c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getgid03_16 getgid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getgid03_16 getgid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getgroups01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3383472ef9e1f56356d27583c5c09387e7f3c323 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getgroups01 getgroups01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getgroups01 getgroups01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getgroups01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..d5ae1a550c69468f89bcb3765bc2d60ac4aa79c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getgroups01_16 getgroups01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getgroups01_16 getgroups01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getgroups03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03.sh new file mode 100644 index 0000000000000000000000000000000000000000..226974af6c4956bae85cf5dcae3ab2a6eea26152 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getgroups03 getgroups03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getgroups03 getgroups03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getgroups03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..13211b9f24a57648bd0acfd5b922ff8d6f1f310b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getgroups03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getgroups03_16 getgroups03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getgroups03_16 getgroups03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_gethostbyname_r01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostbyname_r01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0849643a766527c931d7505c62e6a497d2525b3a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostbyname_r01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gethostbyname_r01 gethostbyname_r01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls gethostbyname_r01 gethostbyname_r01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_gethostid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..da6723463461f04d392da1768314e769e32e25c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gethostid01 gethostid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls gethostid01 gethostid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_gethostname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostname01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5346fa796efa31d113f0fa79900066da95c2d691 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gethostname01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gethostname01 gethostname01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls gethostname01 gethostname01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..a2f2bca81f261c6bc57f2f9a6096efd3e4064fb1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getitimer01 getitimer01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getitimer01 getitimer01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getitimer02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3029bbd30575f1542657ab7813d1b7d4a339c7f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getitimer02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getitimer02 getitimer02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getitimer02 getitimer02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getpagesize01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpagesize01.sh new file mode 100644 index 0000000000000000000000000000000000000000..caef08320dd64eb4b61142f03c005932faf1f7d5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpagesize01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getpagesize01 getpagesize01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getpagesize01 getpagesize01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getpeername01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpeername01.sh new file mode 100644 index 0000000000000000000000000000000000000000..31c042d9e0a6b725b669da3c003298708963d690 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpeername01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getpeername01 getpeername01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getpeername01 getpeername01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getpgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c7a9aad5ab21b24264b21f2eacde78a8eb56b0d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getpgid01 getpgid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getpgid01 getpgid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getpgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a121fd923f33d05dd361a1decfe74b139d974a2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getpgid02 getpgid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getpgid02 getpgid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getpgrp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgrp01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9e6d2d26bf365fe5640dcc9e6afad9131f2bd89 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpgrp01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getpgrp01 getpgrp01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getpgrp01 getpgrp01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getpid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa568c235a05ff238d44dde93f3e925bc0048459 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getpid01 getpid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getpid01 getpid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getpid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..84cbcafd88b9079b6bf35a26efff036c72f2bb37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getpid02 getpid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getpid02 getpid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getppid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9de907541b562d692c55c8affed5b8535b4831c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getppid01 getppid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getppid01 getppid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getppid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee00bb0747f5ecfd2bc1b333d2df3425eaf55191 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getppid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getppid02 getppid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getppid02 getppid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getpriority01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority01.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd540d7e5018d397336c4355e90accfcf8fa75e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getpriority01 getpriority01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getpriority01 getpriority01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getpriority02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority02.sh new file mode 100644 index 0000000000000000000000000000000000000000..50c115e3606e8612fca2a9c5504289169e1d4719 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getpriority02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getpriority02 getpriority02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getpriority02 getpriority02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrandom01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c37a6887790779d55c8ea01c5af4e2117e175e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrandom01 getrandom01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrandom01 getrandom01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrandom02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom02.sh new file mode 100644 index 0000000000000000000000000000000000000000..91d20cbf4754972b41314ab85ca43c8b801ee7f7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrandom02 getrandom02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrandom02 getrandom02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrandom03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom03.sh new file mode 100644 index 0000000000000000000000000000000000000000..16e73f2a3f5e2a456c90a17cae998cb3b51d715a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrandom03 getrandom03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrandom03 getrandom03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrandom04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom04.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4d0d20e8dae0ad2b3a111343ed5cdc0050a67c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrandom04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrandom04 getrandom04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrandom04 getrandom04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..f8553dd54c1535e714f6c266329026587a496278 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresgid01 getresgid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresgid01 getresgid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..167ab6a57447013cbd9c7bcec6397f85cc052730 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresgid01_16 getresgid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresgid01_16 getresgid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getresgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..1b6cb15cd549ef068e3b0c3a06c4e098dce435da --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresgid02 getresgid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresgid02 getresgid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getresgid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d3981e4c71a10e6cfa6cecbd9bc68ad41e7e961 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresgid02_16 getresgid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresgid02_16 getresgid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getresgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ad25b9d0d36146ce21f473beb18dc3634b51891 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresgid03 getresgid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresgid03 getresgid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getresgid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ca38dcb9c61847cb36435057edb8f02eae40d66 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresgid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresgid03_16 getresgid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresgid03_16 getresgid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getresuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..56b5c82423c894494168647b17a5097b8e4474f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresuid01 getresuid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresuid01 getresuid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getresuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..6982e2a0814f3b3769c0a539b2979fc54ac2c255 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresuid01_16 getresuid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresuid01_16 getresuid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getresuid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c2cc7aae07ebf3dc774f10e4f31816186f6e823 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresuid02 getresuid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresuid02 getresuid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getresuid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..07cbc9b26ec4385ee9e3fd41ded73f01db24b29f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresuid02_16 getresuid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresuid02_16 getresuid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getresuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..fff48b145266880941971fef42626e9c7af511fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresuid03 getresuid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresuid03 getresuid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getresuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..72d817a97a527578077236546be257c218190a48 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getresuid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getresuid03_16 getresuid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getresuid03_16 getresuid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrlimit01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit01.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc9cccb71206a724c15d8ccbf73f2aafa44a6890 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrlimit01 getrlimit01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrlimit01 getrlimit01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrlimit02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit02.sh new file mode 100644 index 0000000000000000000000000000000000000000..1361bf42ad1f93cc9c8c3b243edfe9e66a2a297a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrlimit02 getrlimit02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrlimit02 getrlimit02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrlimit03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit03.sh new file mode 100644 index 0000000000000000000000000000000000000000..11f23bfdf496dfb7d0452e8f5b315b96a6bcfcb0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrlimit03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrlimit03 getrlimit03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrlimit03 getrlimit03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrusage01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7f3157bf0242aa1e37ade457fecdf6172f7755e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrusage01 getrusage01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrusage01 getrusage01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrusage02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage02.sh new file mode 100644 index 0000000000000000000000000000000000000000..293af33b775affe3e373ee2899fdfb9adb7f6890 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrusage02 getrusage02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrusage02 getrusage02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrusage03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage03.sh new file mode 100644 index 0000000000000000000000000000000000000000..0011198e9d08b77798f5bfda88839a1d3caabf4c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrusage03 getrusage03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrusage03 getrusage03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getrusage04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage04.sh new file mode 100644 index 0000000000000000000000000000000000000000..bdfe6e8e55cf64890a29095271a663153ed220f7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getrusage04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getrusage04 getrusage04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getrusage04 getrusage04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getsid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7e8210e71bccf8593e6da6c066062bbd6c36ff30 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getsid01 getsid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getsid01 getsid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getsid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..05052fde790cdcc8968d4b512f4f511398395a39 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getsid02 getsid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getsid02 getsid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getsockname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockname01.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9ff919e8f5cfc77c1d2b9310deda53998a209f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockname01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getsockname01 getsockname01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getsockname01 getsockname01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getsockopt01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt01.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5bf4c2396f59380f6e852d13ba1de672442cdc2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getsockopt01 getsockopt01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getsockopt01 getsockopt01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getsockopt02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt02.sh new file mode 100644 index 0000000000000000000000000000000000000000..11a7a473f30b0445316131c1f46bbb0fe52c1f24 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getsockopt02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getsockopt02 getsockopt02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getsockopt02 getsockopt02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_gettid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8557734e19f4e01ad3f061cbdd4097194239651d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gettid01 gettid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls gettid01 gettid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_gettid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff30f1a562567b2bb26b2cf07b13934237dc7c62 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gettid02 gettid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls gettid02 gettid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_gettimeofday01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e27509de5e5f6fbc76e0a90d030ebd540b4e23e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gettimeofday01 gettimeofday01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls gettimeofday01 gettimeofday01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_gettimeofday02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b76cef049aa670078ff62fdfc42fc47c3c0afc2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_gettimeofday02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 gettimeofday02 gettimeofday02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls gettimeofday02 gettimeofday02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..04ab7bf4fda2ed60ca1f3895c219565114ddd57e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getuid01 getuid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getuid01 getuid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..34007fee0b75fc8b2036be9a62ea559358e2aadb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getuid01_16 getuid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getuid01_16 getuid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7590ce95d587dfbf8e60568cf121ccfecc519fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getuid03 getuid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getuid03 getuid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..85f211ac68009314b5fa15eb4cc576fbd637e5c9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getuid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getuid03_16 getuid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getuid03_16 getuid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c7fd2c1cee811e7cf3f8fba3f7b7cc2b8e7e251a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getxattr01 getxattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getxattr01 getxattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc488596cec07641a0f858c24eb1e3ddd5710e64 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getxattr02 getxattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getxattr02 getxattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr03.sh new file mode 100644 index 0000000000000000000000000000000000000000..92a95fdab869bed2af15d115d376b1cb03e37bdc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getxattr03 getxattr03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getxattr03 getxattr03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getxattr04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr04.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd6363ae8c10b1cd94831b9ff18b3a64d65c1e07 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getxattr04 getxattr04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getxattr04 getxattr04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_getxattr05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr05.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fcf3fe9a7a150c4818f58848b3e7c32ff2a4daf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_getxattr05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 getxattr05 getxattr05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls getxattr05 getxattr05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_init_module01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6587da0f474086478d42dbd2721191c293a4a20 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 init_module01 init_module01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls init_module01 init_module01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_init_module02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module02.sh new file mode 100644 index 0000000000000000000000000000000000000000..99f26195c4ace3c366d9b832889c699bba3ee4ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_init_module02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 init_module02 init_module02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls init_module02 init_module02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a5bd3cab348efc1b2a64145ceff9c88e818d3d2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify01 inotify01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify01 inotify01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify02.sh new file mode 100644 index 0000000000000000000000000000000000000000..36cea42086e54c02a4f8668c7829dcf020bd6670 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify02 inotify02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify02 inotify02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify03.sh new file mode 100644 index 0000000000000000000000000000000000000000..d49f16fe29630d3bfd418db0e0ef471e26ca18e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify03 inotify03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify03 inotify03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify04.sh new file mode 100644 index 0000000000000000000000000000000000000000..8062172a5f51fccdc026053a5ce81b47a7486133 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify04 inotify04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify04 inotify04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify05.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ca22b14e923a6b4f082e6bb00fd718c14ce8c36 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify05 inotify05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify05 inotify05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify06.sh new file mode 100644 index 0000000000000000000000000000000000000000..79e16d013824627219a4f71fcd24faeaf29dc671 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify06 inotify06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify06 inotify06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify07.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1157ae5ce76e459294c1975f2c505c7f04628b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify07 inotify07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify07 inotify07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify08.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebc1477b15840b4df4c74ae9ce33e7c715aaad9f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify08 inotify08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify08 inotify08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify09.sh new file mode 100644 index 0000000000000000000000000000000000000000..d87f3e523321dc796e5be584eb649ce27db3bbd7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify09 inotify09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify09 inotify09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify10.sh new file mode 100644 index 0000000000000000000000000000000000000000..a96af9000c6ea9b9044be06578805f936c1438df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify10 inotify10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify10 inotify10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify11.sh new file mode 100644 index 0000000000000000000000000000000000000000..24b075565f35d166d219ae8ebaf0b0a00c8ce2e6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify11 inotify11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify11 inotify11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify12.sh new file mode 100644 index 0000000000000000000000000000000000000000..84f42db072d22c665f2fa0683aec5c1ae1ee2544 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 inotify12 inotify12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls inotify12 inotify12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_inotify_init1_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b8143110c9e5512936faf75545b4a6beea8a55b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_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 inotify_init1_01 inotify_init1_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 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" + CHECK_RESULT $? 1 0 "syscalls inotify_init1_01 inotify_init1_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_inotify_init1_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_02.sh new file mode 100644 index 0000000000000000000000000000000000000000..9bb09a3d67291d785224703995c8f085c2b80266 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_inotify_init1_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 inotify_init1_02 inotify_init1_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 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" + CHECK_RESULT $? 1 0 "syscalls inotify_init1_02 inotify_init1_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_io_cancel01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel01.sh new file mode 100644 index 0000000000000000000000000000000000000000..12e808aa4d979a79201887dac54851fa28ebf7de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_cancel01 io_cancel01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_cancel01 io_cancel01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_cancel02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d586bbfa3ad7b95f55061cd1aab57a008f5176a6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_cancel02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_cancel02 io_cancel02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_cancel02 io_cancel02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_destroy01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy01.sh new file mode 100644 index 0000000000000000000000000000000000000000..b305d1b85cbad86e2cefbf58ed535b2572ad272e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_destroy01 io_destroy01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_destroy01 io_destroy01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_destroy02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy02.sh new file mode 100644 index 0000000000000000000000000000000000000000..5781bbb7cb62a36378b8392eb2f5f5d49a9ef73d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_destroy02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_destroy02 io_destroy02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_destroy02 io_destroy02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_getevents01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents01.sh new file mode 100644 index 0000000000000000000000000000000000000000..210fca67de94df28a5f622420c7d8abd6f8e8e99 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_getevents01 io_getevents01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_getevents01 io_getevents01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_getevents02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents02.sh new file mode 100644 index 0000000000000000000000000000000000000000..03e4f5e7e9e61b2abf446d8d549353d5b1902569 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_getevents02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_getevents02 io_getevents02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_getevents02 io_getevents02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_pgetevents01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents01.sh new file mode 100644 index 0000000000000000000000000000000000000000..562a4727473115a3209974403157d6af39fde6b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_pgetevents01 io_pgetevents01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_pgetevents01 io_pgetevents01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_pgetevents02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c57af3f0e481fb3b326b0e430518503c8f95dd80 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_pgetevents02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_pgetevents02 io_pgetevents02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_pgetevents02 io_pgetevents02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_setup01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ba55829e238d467fd92eec3e388e7433d63a6a6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_setup01 io_setup01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_setup01 io_setup01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_setup02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0f658a0a8e98dcaf90da228873ab34ceb03466ae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_setup02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_setup02 io_setup02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_setup02 io_setup02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_submit01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit01.sh new file mode 100644 index 0000000000000000000000000000000000000000..68be53d3cde4e9a5359c5c1580be589f23d7dece --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_submit01 io_submit01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_submit01 io_submit01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_submit02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f67041e570f864e23c32d5fb0ab637c4ecf53b56 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_submit02 io_submit02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_submit02 io_submit02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_submit03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit03.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1ee980fa51b31b9b323196e598d912730de2a75 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_submit03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_submit03 io_submit03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_submit03 io_submit03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_uring01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0f6114fd2a9b45d276a862ceba8d1a19f5cb038 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_uring01 io_uring01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_uring01 io_uring01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_io_uring02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring02.sh new file mode 100644 index 0000000000000000000000000000000000000000..31f37e7881b79198429c5e75cc6ae06e585fc2b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_io_uring02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 io_uring02 io_uring02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls io_uring02 io_uring02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..461ed679c01a176cc94a9715e5e05891cc85fb25 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioctl01 ioctl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioctl01 ioctl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..67103b5b2e9ff896f74d1f73395bf2c08ce033d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioctl02 test_ioctl +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioctl02 test_ioctl failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..e3fdbdd796bad7156903c16babc3686a9c32b865 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioctl03 ioctl03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioctl03 ioctl03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl04.sh new file mode 100644 index 0000000000000000000000000000000000000000..911fdcaf6e41691c12a8738322ec446d836cbcf6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioctl04 ioctl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioctl04 ioctl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl05.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ec59f93a1708095185d9b7eb443c809f92d40c9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioctl05 ioctl05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioctl05 ioctl05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl06.sh new file mode 100644 index 0000000000000000000000000000000000000000..1795cfd3199ffbccf33db68c7ef25bad20417e5f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioctl06 ioctl06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioctl06 ioctl06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl07.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7bdce50dcb6f9b000a93078563de0794783688f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioctl07 ioctl07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioctl07 ioctl07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl08.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfb2832b593935657b4dcbc4ba6a2fc51e28c9b3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioctl08 ioctl08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioctl08 ioctl08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioctl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl09.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fac83df90d6a9429929a5c8a5349d343137688e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioctl09 ioctl09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioctl09 ioctl09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..61b6f95aa85372b7396768ab5101bee91fc36205 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_loop01 ioctl_loop01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_loop01 ioctl_loop01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_loop02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop02.sh new file mode 100644 index 0000000000000000000000000000000000000000..8cd458b9cd11681fa6070c92ecd42a811b1719d2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_loop02 ioctl_loop02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_loop02 ioctl_loop02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_loop03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop03.sh new file mode 100644 index 0000000000000000000000000000000000000000..d47f06bfec49fbee97e5967b5381919399db3acc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_loop03 ioctl_loop03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_loop03 ioctl_loop03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_loop04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop04.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2dc314ca35f7e76468c79fd15f5f8007d825507 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_loop04 ioctl_loop04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_loop04 ioctl_loop04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_loop05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop05.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c7fb715ab46089f68fea9059906c17b108e2097 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_loop05 ioctl_loop05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_loop05 ioctl_loop05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_loop06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop06.sh new file mode 100644 index 0000000000000000000000000000000000000000..656879928965ac58391cc3b9990fe110459c5861 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_loop06 ioctl_loop06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_loop06 ioctl_loop06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_loop07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop07.sh new file mode 100644 index 0000000000000000000000000000000000000000..f524687cfbada56a681e6f7c0f919c0da2746d76 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_loop07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_loop07 ioctl_loop07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_loop07 ioctl_loop07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ns01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns01.sh new file mode 100644 index 0000000000000000000000000000000000000000..38c5b030e6df213ab6a7f47aa71fb5fbfa64ef65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_ns01 ioctl_ns01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_ns01 ioctl_ns01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ns02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed763c1e24541cabdeaedff32eb593581bc5a3d2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_ns02 ioctl_ns02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_ns02 ioctl_ns02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ns03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns03.sh new file mode 100644 index 0000000000000000000000000000000000000000..740e21f328aedd9017526cdb6e072f3076e0f58e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_ns03 ioctl_ns03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_ns03 ioctl_ns03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ns04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns04.sh new file mode 100644 index 0000000000000000000000000000000000000000..1154360bce54f7486d627fe7bf1e014405b09b7a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_ns04 ioctl_ns04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_ns04 ioctl_ns04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ns05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns05.sh new file mode 100644 index 0000000000000000000000000000000000000000..f41adeaccaf7a7e38a28baa08f858cafa3810533 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_ns05 ioctl_ns05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_ns05 ioctl_ns05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ns06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns06.sh new file mode 100644 index 0000000000000000000000000000000000000000..394ab6a90d21e7a1d7501f6a664937e9e24fdd11 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_ns06 ioctl_ns06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_ns06 ioctl_ns06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ns07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns07.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed083bd874ccb95b6547d409a8bd7e87b4910cd3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_ns07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_ns07 ioctl_ns07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_ns07 ioctl_ns07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_sg01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e450fa326dcea1d25124bb7a085fa3b059e67ba5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioctl_sg01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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_sg01 ioctl_sg01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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_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" + CHECK_RESULT $? 1 0 "syscalls ioctl_sg01 ioctl_sg01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioperm01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2ad8b9a559aba5f2c416f4e41faca739f3a84e6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioperm01 ioperm01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioperm01 ioperm01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioperm02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm02.sh new file mode 100644 index 0000000000000000000000000000000000000000..76bf9c1dc09ce80b282499a5c0ebb84a3d127366 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioperm02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioperm02 ioperm02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioperm02 ioperm02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_iopl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..753ffb6b8eedda0933986be95ed0e758e25374ba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 iopl01 iopl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls iopl01 iopl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_iopl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0a18c7377322377147b8ef750d6a9e5bd5f19fe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_iopl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 iopl02 iopl02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls iopl02 iopl02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioprio_get01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_get01.sh new file mode 100644 index 0000000000000000000000000000000000000000..bff206c1bc33f1ed0ff540ec3cb4fac0ef2fd355 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_get01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioprio_get01 ioprio_get01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioprio_get01 ioprio_get01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioprio_set01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set01.sh new file mode 100644 index 0000000000000000000000000000000000000000..053c20cf9024ef7b058b9a0ab95925ded9a8dd60 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioprio_set01 ioprio_set01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioprio_set01 ioprio_set01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioprio_set02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set02.sh new file mode 100644 index 0000000000000000000000000000000000000000..b29b26d17fb38a18968ffd8c18cbf08aab04098d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioprio_set02 ioprio_set02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioprio_set02 ioprio_set02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ioprio_set03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set03.sh new file mode 100644 index 0000000000000000000000000000000000000000..58236c80e1a445f5a59ff71a1f00dde29a654000 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ioprio_set03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ioprio_set03 ioprio_set03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ioprio_set03 ioprio_set03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kcmp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b9e65f40a43f9e9fb5b4d8627735af0b4d617ad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kcmp01 kcmp01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kcmp01 kcmp01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kcmp02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp02.sh new file mode 100644 index 0000000000000000000000000000000000000000..889695dc42d9a50d955bcb9fc3048cb8be62a46f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kcmp02 kcmp02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kcmp02 kcmp02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kcmp03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp03.sh new file mode 100644 index 0000000000000000000000000000000000000000..f17f821f856b201fd9add0d4199c2432c3df5a95 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kcmp03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kcmp03 kcmp03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kcmp03 kcmp03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_keyctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5ccea4ace7bb7f296c67cd57446ec2a7d584852d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 keyctl01 keyctl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls keyctl01 keyctl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_keyctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6843739db8da7de507141e4fb0e5ce2e0972301e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 keyctl02 keyctl02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls keyctl02 keyctl02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_keyctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..3572016e467b949f794dc4294688fdc6a56556d3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 keyctl03 keyctl03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls keyctl03 keyctl03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_keyctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl04.sh new file mode 100644 index 0000000000000000000000000000000000000000..f86ae14e4c6d69a2fd731f8b296231aaddebf1f6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 keyctl04 keyctl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls keyctl04 keyctl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_keyctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl05.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed7181a8efabe96450e2d8965fa04afc910974a8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 keyctl05 keyctl05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls keyctl05 keyctl05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_keyctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl06.sh new file mode 100644 index 0000000000000000000000000000000000000000..af68099328ff5acf38a661d78e43e8c5066be836 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 keyctl06 keyctl06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls keyctl06 keyctl06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_keyctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl07.sh new file mode 100644 index 0000000000000000000000000000000000000000..b35b07d7256418b9542f39ed7e0f1e8c93991b95 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 keyctl07 keyctl07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls keyctl07 keyctl07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_keyctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl08.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c3c6004c3bbb600edebbfb5f6574ae340bfd150 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 keyctl08 keyctl08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls keyctl08 keyctl08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_keyctl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl09.sh new file mode 100644 index 0000000000000000000000000000000000000000..b899a61bffb5f87f28767ffe30b52c4fac85ba5a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_keyctl09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 keyctl09 keyctl09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls keyctl09 keyctl09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill02.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c506c8e819a1bf6156c013b341a8e1db0ae3c97 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill02 kill02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill02 kill02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill03.sh new file mode 100644 index 0000000000000000000000000000000000000000..02dc0a49875dc131deb93461dcf643128bfaa9db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill03 kill03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill03 kill03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill05.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6f1c77868d42a748680cdd90e2c5f75ed682fc8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill05 kill05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill05 kill05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill06.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c0d725b0d6366b1d6dfc2b1db4770643cfb345c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill06 kill06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill06 kill06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill07.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6c9e5382d6aab3faac492e92469583b626d1396 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill07 kill07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill07 kill07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill08.sh new file mode 100644 index 0000000000000000000000000000000000000000..f53c0ed077eebc9aaf3fc797d9547d7ac3afb227 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill08 kill08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill08 kill08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill09.sh new file mode 100644 index 0000000000000000000000000000000000000000..58ef470cfa93a63114d0de4850d1bfc438decb22 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill09 kill09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill09 kill09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill10.sh new file mode 100644 index 0000000000000000000000000000000000000000..7775d63c14ea2063f94431ca43d8195c28ac9639 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill10 kill10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill10 kill10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill11.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd2f6ba7156765193ca3b79caee0bc11a041c34e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill11 kill11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill11 kill11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill12.sh new file mode 100644 index 0000000000000000000000000000000000000000..4cfa518540fba359a10976d8e376b0dcb4804365 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill12 kill12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill12 kill12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_kill13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill13.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a2ad18cd84d692a9f9b2a18cae17b0548557139 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_kill13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 kill13 kill13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls kill13 kill13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..6817b636155d66192b3228876b9c55bc877987bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lchown01 lchown01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lchown01 lchown01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d00f1a91bfadfceade90cdb07a76dce8e8c4562 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lchown01_16 lchown01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lchown01_16 lchown01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lchown02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4079720818375b09b459a9dcd0563a754dc3af2d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lchown02 lchown02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lchown02 lchown02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lchown02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..3509ade8563bf338b6e02ea93cd1ddf2f84f028b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lchown02_16 lchown02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lchown02_16 lchown02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lchown03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03.sh new file mode 100644 index 0000000000000000000000000000000000000000..19fa57bc1fe79581020b51197a75a96211bf7d46 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lchown03 lchown03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lchown03 lchown03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lchown03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..daa767b345ca76eb1145269d5d38bb5359f698d1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lchown03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lchown03_16 lchown03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lchown03_16 lchown03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_leapsec01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_leapsec01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c87b438c382fae0fa79c2ad0c05c854ec41af553 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_leapsec01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 leapsec01 leapsec01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls leapsec01 leapsec01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lgetxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1b5506508ff1345c28e0d0c4184fb38faf4b2cb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lgetxattr01 lgetxattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lgetxattr01 lgetxattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lgetxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..08adb8226342cd90ffa480dd3f44541656790882 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lgetxattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lgetxattr02 lgetxattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lgetxattr02 lgetxattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_link01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ed27b65fdaa12013facfe034d4fa73ee232ba9a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 link01 symlink01 -T link01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls link01 symlink01 -T link01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_link02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0638d54ed8e17c1b1fec772b306391b65731662c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 link02 link02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls link02 link02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_link04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link04.sh new file mode 100644 index 0000000000000000000000000000000000000000..44c0f6503988516cd18a7e8139bc92102056bd9e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 link04 link04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls link04 link04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_link05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link05.sh new file mode 100644 index 0000000000000000000000000000000000000000..12b2e54e42c38c4c51da3e015955aac31977912c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 link05 link05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls link05 link05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_link08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link08.sh new file mode 100644 index 0000000000000000000000000000000000000000..f55f2adbdb4950f21ff67fa482351d5aa605dcd4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_link08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 link08 link08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls link08 link08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_linkat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bc5e65762e758c95c34a09f13c687a015a7358f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 linkat01 linkat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls linkat01 linkat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_linkat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec798d1132e8c3bcfb530befb60d9beb9fb048b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_linkat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 linkat02 linkat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls linkat02 linkat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_listen01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listen01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a67b188714da8cc6178a135fdea5da277ee5e158 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listen01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 listen01 listen01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls listen01 listen01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_listxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5b0bf9edd5b6957a6a8f256d5fa6d93ce8b725db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 listxattr01 listxattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls listxattr01 listxattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_listxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a20d2276098c74640c0d2fab356ba80630d33db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 listxattr02 listxattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls listxattr02 listxattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_listxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr03.sh new file mode 100644 index 0000000000000000000000000000000000000000..3bc7ca2dac297effbdc5025d2c2d7baa259552cf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_listxattr03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 listxattr03 listxattr03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls listxattr03 listxattr03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_llistxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..225b7cb6870cd07cdc7868047382c15ad7681477 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 llistxattr01 llistxattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls llistxattr01 llistxattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_llistxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5027b1650b8777ed4a8c8aa4a1c1453cb851a14 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 llistxattr02 llistxattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls llistxattr02 llistxattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_llistxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr03.sh new file mode 100644 index 0000000000000000000000000000000000000000..bf82fc88e5b9c24556d4b91f82765a7f87dc3228 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llistxattr03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 llistxattr03 llistxattr03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls llistxattr03 llistxattr03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_llseek01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek01.sh new file mode 100644 index 0000000000000000000000000000000000000000..23c571552d9afbcdb06e3923b00715e0741cd842 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 llseek01 llseek01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls llseek01 llseek01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_llseek02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek02.sh new file mode 100644 index 0000000000000000000000000000000000000000..71a585576e1ad426d4819c711e57ca0de383bee0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 llseek02 llseek02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls llseek02 llseek02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_llseek03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek03.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1ebd21e24b445dcd72ed46660eace33ad96e2a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_llseek03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 llseek03 llseek03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls llseek03 llseek03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lremovexattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lremovexattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..de418d797aad99c25c2f09135ad26e864f7e0227 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lremovexattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lremovexattr01 lremovexattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lremovexattr01 lremovexattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lseek01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6049f6472ebfa69883291e556ed0bcc0ff72a216 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lseek01 lseek01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lseek01 lseek01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lseek02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3be2c46b9f327d7039f45e80020bfd8e66834bef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lseek02 lseek02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lseek02 lseek02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lseek07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek07.sh new file mode 100644 index 0000000000000000000000000000000000000000..14979a5b70364dce2868e46dd30641e584eac475 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lseek07 lseek07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lseek07 lseek07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lseek11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek11.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfb51391364dae84196a67da34406007cc4682c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lseek11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lseek11 lseek11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lseek11 lseek11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lstat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c410c9de89133774ae79ccf4ed48721bb62a29c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lstat01 lstat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lstat01 lstat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lstat01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01A.sh new file mode 100644 index 0000000000000000000000000000000000000000..75f017a0169ae83c9de76edccb7e2f38cdacb72e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01A.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lstat01A symlink01 -T lstat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 lstat01A symlink01 -T lstat01 + 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 lstat01A symlink01 -T lstat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lstat01A_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01A_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..f31d8f7fc2cbd5683760a16f232d1dc27072b0a8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01A_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 lstat01A_64 symlink01 -T lstat01_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 lstat01A_64 symlink01 -T 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" + CHECK_RESULT $? 1 0 "syscalls lstat01A_64 symlink01 -T lstat01_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_lstat01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..e137bf2eadb5a1e71b81524db332e927a2ea6a11 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat01_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 lstat01_64 lstat01_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 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" + CHECK_RESULT $? 1 0 "syscalls lstat01_64 lstat01_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_lstat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..450df5d7d5c7add4fb9a1e87c0085d6bd02299ea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 lstat02 lstat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls lstat02 lstat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_lstat02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..bfd3e6a217f27fc391dfb6fca5ef66584694e9bf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_lstat02_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 lstat02_64 lstat02_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 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" + CHECK_RESULT $? 1 0 "syscalls lstat02_64 lstat02_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 new file mode 100644 index 0000000000000000000000000000000000000000..563d61e2af8a9a56efc69c2b1a395a44a0fd7342 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 madvise01 madvise01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls madvise01 madvise01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_madvise02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise02.sh new file mode 100644 index 0000000000000000000000000000000000000000..367ed52ef4a654ceca088a49e5737316c0efe6b4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 madvise02 madvise02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls madvise02 madvise02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_madvise03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise03.sh new file mode 100644 index 0000000000000000000000000000000000000000..53337eb92fd8bacffc64243205be51f5529b7a1f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 madvise03 madvise03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls madvise03 madvise03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_madvise05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise05.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d41c7e1d28c493823ea91cc4f491cb26231d4b9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 madvise05 madvise05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls madvise05 madvise05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_madvise06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise06.sh new file mode 100644 index 0000000000000000000000000000000000000000..5256db2e6f03b984e8acab0339c388a03451e5f0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 madvise06 madvise06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls madvise06 madvise06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_madvise07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise07.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dc7154e22245f80bd064690ed6ecfa01cacc94d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 madvise07 madvise07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls madvise07 madvise07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_madvise08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise08.sh new file mode 100644 index 0000000000000000000000000000000000000000..167ab686ddfd8e0715361cd64c3929aa023d8cde --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 madvise08 madvise08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls madvise08 madvise08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_madvise09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise09.sh new file mode 100644 index 0000000000000000000000000000000000000000..73805f594d8450b4da9a35123020f32e66aa0f10 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 madvise09 madvise09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls madvise09 madvise09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_madvise10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise10.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7442b122d7bf3d783daaf00f00dee0f00161ea4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 madvise10 madvise10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls madvise10 madvise10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_madvise11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise11.sh new file mode 100644 index 0000000000000000000000000000000000000000..afa13b1c35745d0d21d61eccb0858af4116cc784 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_madvise11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 madvise11 madvise11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls madvise11 madvise11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mallinfo02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo02.sh new file mode 100644 index 0000000000000000000000000000000000000000..5fdc1594bca22f2ff820c8f0082b38bfe995b175 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mallinfo02 mallinfo02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mallinfo02 mallinfo02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mallinfo2_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo2_01.sh new file mode 100644 index 0000000000000000000000000000000000000000..96d2ebd5638ecea6c5ebb5d62facc4a7cfc2db18 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallinfo2_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 mallinfo2_01 mallinfo2_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 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" + CHECK_RESULT $? 1 0 "syscalls mallinfo2_01 mallinfo2_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_mallopt01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallopt01.sh new file mode 100644 index 0000000000000000000000000000000000000000..60f3dccb014c835478d708a2fceeb1febf9b6617 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mallopt01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mallopt01 mallopt01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mallopt01 mallopt01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mbind01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind01.sh new file mode 100644 index 0000000000000000000000000000000000000000..51584de6378a5558cbcfd6875bc4f8ba9ced501b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mbind01 mbind01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mbind01 mbind01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mbind02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind02.sh new file mode 100644 index 0000000000000000000000000000000000000000..efdf2f7ca6e4bbd291f6bc7f0c8c8868ec30bcd1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mbind02 mbind02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mbind02 mbind02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mbind03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind03.sh new file mode 100644 index 0000000000000000000000000000000000000000..9333384ba78a7a6d68456415c5d4485ba6e99bb5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mbind03 mbind03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mbind03 mbind03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mbind04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind04.sh new file mode 100644 index 0000000000000000000000000000000000000000..d79b5117e2fed239fcf7dc12afa6212d8700ae4b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mbind04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mbind04 mbind04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mbind04 mbind04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_membarrier01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_membarrier01.sh new file mode 100644 index 0000000000000000000000000000000000000000..db7544fbebc84c293fd2c7d2d93c92ccd5d1d894 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_membarrier01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 membarrier01 membarrier01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls membarrier01 membarrier01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_memcmp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcmp01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4bfd9e68b61200977f40a945289f7d764ec3ff63 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcmp01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 memcmp01 memcmp01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls memcmp01 memcmp01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_memcpy01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcpy01.sh new file mode 100644 index 0000000000000000000000000000000000000000..24eae72782b442dba152a8b129a20fdb4bae47b0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memcpy01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 memcpy01 memcpy01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls memcpy01 memcpy01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_memfd_create01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1981f28f876dc6daba706eddf90a82fb9fdc6b81 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 memfd_create01 memfd_create01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls memfd_create01 memfd_create01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_memfd_create02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create02.sh new file mode 100644 index 0000000000000000000000000000000000000000..b804fdac2a26574d02c1f9fad3d4717aa2b15f17 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 memfd_create02 memfd_create02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls memfd_create02 memfd_create02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_memfd_create03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create03.sh new file mode 100644 index 0000000000000000000000000000000000000000..92a7e6c04cc55e337dd84ea4c1c818fc92caa05d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 memfd_create03 memfd_create03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls memfd_create03 memfd_create03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_memfd_create04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create04.sh new file mode 100644 index 0000000000000000000000000000000000000000..04d7243f3c791dedccff098ad8246685419ea7c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memfd_create04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 memfd_create04 memfd_create04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls memfd_create04 memfd_create04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_memset01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memset01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4623de47fea888813350b0361687a7c595deed48 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_memset01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 memset01 memset01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls memset01 memset01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_migrate_pages01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fa67d27d92c309880667caa07b4ff261ff07cf7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_migrate_pages02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages02.sh new file mode 100644 index 0000000000000000000000000000000000000000..58207f156d27d0eb9559b7959547df95c76ce56a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_migrate_pages03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_migrate_pages03.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec97ac7bb190f803eeece7c2e6103fd65d29cab0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_mincore01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a45146342dda8fbd54511db5f42d452a1b30e36 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mincore01 mincore01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mincore01 mincore01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mincore02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0058371f4abc6f1cb1390b9660846b80f629d6b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mincore02 mincore02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mincore02 mincore02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mincore03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore03.sh new file mode 100644 index 0000000000000000000000000000000000000000..b050e5b8865d850bfb428f55ee7a0321d6a9a48b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mincore03 mincore03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mincore03 mincore03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mincore04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore04.sh new file mode 100644 index 0000000000000000000000000000000000000000..846f44e6d47448f8a72c7667822626f98f572c81 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mincore04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mincore04 mincore04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mincore04 mincore04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkdir02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir02.sh new file mode 100644 index 0000000000000000000000000000000000000000..134cc115a30fd5a767c3b46465a0ac19ad86b517 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mkdir02 mkdir02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mkdir02 mkdir02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkdir03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir03.sh new file mode 100644 index 0000000000000000000000000000000000000000..a65d99b3285461ca3496d2ac605496579c56efbc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mkdir03 mkdir03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mkdir03 mkdir03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkdir04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir04.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa0e271941c60b736bbb11d14684d1177562ec6b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mkdir04 mkdir04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mkdir04 mkdir04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkdir05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir05.sh new file mode 100644 index 0000000000000000000000000000000000000000..132e24b6ebc695c75a6524d741c33073ef7ae4b1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mkdir05 mkdir05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mkdir05 mkdir05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkdir05A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir05A.sh new file mode 100644 index 0000000000000000000000000000000000000000..963b51d10cdd40602412220edbfde1afd737c50e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir05A.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mkdir05A symlink01 -T mkdir05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 mkdir05A symlink01 -T mkdir05 + 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 mkdir05A symlink01 -T mkdir05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkdir09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir09.sh new file mode 100644 index 0000000000000000000000000000000000000000..9949f98c59da1c66aa8ae8e16f3aecaa81623373 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdir09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mkdir09 mkdir09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mkdir09 mkdir09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkdirat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0887018118ce510f5bc78e2dbc9c46e57ea81524 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mkdirat01 mkdirat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mkdirat01 mkdirat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mkdirat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..73f157c53b236875b47e808e3053b0cab601395d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mkdirat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mkdirat02 mkdirat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mkdirat02 mkdirat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknod01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod01.sh new file mode 100644 index 0000000000000000000000000000000000000000..80f1d508b36869f7fa2bb42dcba67cac88bfa7f0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknod01 mknod01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknod01 mknod01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknod02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod02.sh new file mode 100644 index 0000000000000000000000000000000000000000..75aa4b7c5b8c891b00dd3780e07f7d0221a197d2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknod02 mknod02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknod02 mknod02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknod03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod03.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ccc573f2b5fb049061e10d186c702326689dec2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknod03 mknod03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknod03 mknod03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknod04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod04.sh new file mode 100644 index 0000000000000000000000000000000000000000..b436a155b99e4939eb91dedc1fa9e9486f0f7b81 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknod04 mknod04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknod04 mknod04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknod05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod05.sh new file mode 100644 index 0000000000000000000000000000000000000000..8a1580335c723df4ad6cfd32cce6e7f798dd2c3c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknod05 mknod05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknod05 mknod05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknod06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod06.sh new file mode 100644 index 0000000000000000000000000000000000000000..01ff935e2314f445f154a97154335130bc60a603 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknod06 mknod06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknod06 mknod06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknod07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod07.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c100505af638fc33e459954429e72f1022b68f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknod07 mknod07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknod07 mknod07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknod08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod08.sh new file mode 100644 index 0000000000000000000000000000000000000000..2edf29b7b51d0e8fcd3bc858b9cc0cc8a0c6279e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknod08 mknod08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknod08 mknod08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknod09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod09.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a0104086a00389c99498c510a1f376ba2333d39 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknod09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknod09 mknod09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknod09 mknod09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknodat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f874847aa8f37bcbcfdd8a62e331325586b6044 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknodat01 mknodat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknodat01 mknodat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mknodat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..74c8a9dbdd1c40d366731830a188e4fabccd185a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mknodat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mknodat02 mknodat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mknodat02 mknodat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mlock01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a0859d03b071a5747a00bd94477f844e724d036 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mlock01 mlock01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mlock01 mlock01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mlock02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4fd32e043121c0e169de65067671731a14ce3648 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mlock02 mlock02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mlock02 mlock02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mlock03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock03.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a35b0693218d00381b788b0e79cd8772bc3451a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mlock03 mlock03 -i 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 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" + CHECK_RESULT $? 1 0 "syscalls mlock03 mlock03 -i 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_syscalls/oe_test_ltp_syscalls_mlock04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock04.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1380d4c5754bd01703269e103c55944021b8ea3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mlock04 mlock04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mlock04 mlock04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..dfe84cf089b06f7c8e05fefe644c0d1749cb825f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock201.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mlock201 mlock201 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mlock201 mlock201 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mlock202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock202.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3cf50053eda073138648d1b54dc4d4c3558d2ec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock202.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mlock202 mlock202 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mlock202 mlock202 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mlock203.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock203.sh new file mode 100644 index 0000000000000000000000000000000000000000..75586954ccf0c2c0fe3816a347ba7bbb1def371e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlock203.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mlock203 mlock203 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mlock203 mlock203 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mlockall01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3ddfb6a6f2c8935da6c9b1f6b5a352095f29d58 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mlockall01 mlockall01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mlockall01 mlockall01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mlockall02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4dd5049d15059a46b0524f00de996e64951e9eb4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mlockall02 mlockall02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mlockall02 mlockall02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mlockall03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall03.sh new file mode 100644 index 0000000000000000000000000000000000000000..324dafc1418165c7a1f71c7d592d12c1de0f914b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mlockall03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mlockall03 mlockall03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mlockall03 mlockall03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap01.sh new file mode 100644 index 0000000000000000000000000000000000000000..85df4bbe7985541bdb45ae4e1d944947517ff1ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap01 mmap01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap01 mmap01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4665b8387c1a6ff20ef0fc47fd2b8787b5ec9660 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap02 mmap02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap02 mmap02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap03.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8cbc64afca13ee437277b1ff7517715a2e9b041 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap03 mmap03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap03 mmap03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap04.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd6958d66585e16142ae153ebce5ed2bf071689b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap04 mmap04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap04 mmap04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap05.sh new file mode 100644 index 0000000000000000000000000000000000000000..69d28f3c99f4bad558a9c86039232d3942271e3f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap05 mmap05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap05 mmap05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap06.sh new file mode 100644 index 0000000000000000000000000000000000000000..96e88fa8e1320fdc5a6f1c215c32837b276c3ee2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap06 mmap06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap06 mmap06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap08.sh new file mode 100644 index 0000000000000000000000000000000000000000..a661b4199b650f32dccce481b243f645074acd65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap08 mmap08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap08 mmap08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap09.sh new file mode 100644 index 0000000000000000000000000000000000000000..47f7308cdec00d89864fd8300b9fd2b7164b50f0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap09 mmap09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap09 mmap09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap12.sh new file mode 100644 index 0000000000000000000000000000000000000000..7beafea0543dd57a2279224d5f64c0dfdb8ffb08 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap12 mmap12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap12 mmap12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap13.sh new file mode 100644 index 0000000000000000000000000000000000000000..89905dfbff18a60cc227ff5309e25055f524e654 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap13 mmap13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap13 mmap13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap14.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a9afa0a33e42bdd25d95e87abca440bc3b48463 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap14 mmap14 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap14 mmap14 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap15.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap15.sh new file mode 100644 index 0000000000000000000000000000000000000000..7aeeb1f7e312c05bc92c19050d368747e1ad8605 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap15 mmap15 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap15 mmap15 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap16.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d22d07d432756e7dfc6ccf019637f83a12f1517 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap16 mmap16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap16 mmap16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap17.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap17.sh new file mode 100644 index 0000000000000000000000000000000000000000..9cdabacf90ae4ea95b98f769a086671ab85b5d01 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap17.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap17 mmap17 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap17 mmap17 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap18.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap18.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9eae9369c89eda7c7645772cad8a84d9a6ac587 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap18.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap18 mmap18 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap18 mmap18 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap19.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap19.sh new file mode 100644 index 0000000000000000000000000000000000000000..064793b5166bf42d5a95902efebc5d82972e3c58 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap19.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap19 mmap19 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap19 mmap19 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mmap20.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap20.sh new file mode 100644 index 0000000000000000000000000000000000000000..605a9ef5b01b02aff461413cd97425270f59d78a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mmap20.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mmap20 mmap20 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mmap20 mmap20 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_modify_ldt01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1964bd2193d127131d723b2997f8a9fb1fde6128 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 modify_ldt01 modify_ldt01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls modify_ldt01 modify_ldt01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_modify_ldt02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt02.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ee1ac46149c1fb0ae1e94c86308877671973e5f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 modify_ldt02 modify_ldt02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls modify_ldt02 modify_ldt02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_modify_ldt03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f606e05c2b133e735b14e53a654622127385a8e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_modify_ldt03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 modify_ldt03 modify_ldt03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls modify_ldt03 modify_ldt03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mount01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ada30ffb734bb30ffeb1251e62280c9acd1d719 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mount01 mount01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mount01 mount01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mount02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce809fbf74402656611ddd7443ab0e3deb77645d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mount02 mount02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mount02 mount02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mount03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount03.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc97eb3f0754a117bef95e0c07f66ec26fb41992 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mount03 mount03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mount03 mount03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mount04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount04.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff38395a35c9a7b63c0367895fad2fbbd705fc81 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mount04 mount04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mount04 mount04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mount05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount05.sh new file mode 100644 index 0000000000000000000000000000000000000000..58c54f68c7ea3abee9a6894c21032cf343dedb97 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mount05 mount05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mount05 mount05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mount06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount06.sh new file mode 100644 index 0000000000000000000000000000000000000000..127d471be5e42dd9d68a955079add863aa7b8f26 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mount06 mount06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mount06 mount06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mount07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount07.sh new file mode 100644 index 0000000000000000000000000000000000000000..79027a51275021b833aea3de66b56e93446d0be3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mount07 mount07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mount07 mount07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mount_setattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount_setattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0bc0205d2c32fbd1d53f0e152d17bade7fc458d9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mount_setattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mount_setattr01 mount_setattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mount_setattr01 mount_setattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_move_mount01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount01.sh new file mode 100644 index 0000000000000000000000000000000000000000..77b2c01e57e98cb6c7156e0722494679af3a922b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 move_mount01 move_mount01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls move_mount01 move_mount01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_move_mount02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount02.sh new file mode 100644 index 0000000000000000000000000000000000000000..745678fe8a611a09f0cdc9ce3ffc231ad5dcbff1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_mount02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 move_mount02 move_mount02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls move_mount02 move_mount02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_move_pages01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a1038078960e355b143f26fc4bbf8d7656a5cc6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_move_pages02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6d332d5563de0f85ee96b74a5c28ac6343d0d0e0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_move_pages03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages03.sh new file mode 100644 index 0000000000000000000000000000000000000000..230cee38f27418eca6318c0205c6e1dfc85067e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_move_pages04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages04.sh new file mode 100644 index 0000000000000000000000000000000000000000..79706f14eb472eb0ea3cc70e64e9ddc0aca10744 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_move_pages05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages05.sh new file mode 100644 index 0000000000000000000000000000000000000000..79c10688f89e081c9d742a985cef7c0a7060ef37 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_move_pages06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages06.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad7efbef26a40831da1d5f5265700f209a51845a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_move_pages07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages07.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a792a4f4164d5be9433f012072704876cbd71f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_move_pages09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages09.sh new file mode 100644 index 0000000000000000000000000000000000000000..f7c684a4a4471f41d352dea55f4db3087aa8d498 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_move_pages10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages10.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab08346fe3226a4f01abb0565a40ddb2559050d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_move_pages11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages11.sh new file mode 100644 index 0000000000000000000000000000000000000000..40ae7d8749f4252945ed09824e1484edb209a60a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_move_pages12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_move_pages12.sh new file mode 100644 index 0000000000000000000000000000000000000000..eba197b10f5e00aa340dcf2a8a17b2117f9ffb32 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_mprotect01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e0da4fdec5859523727af43635c3012ab55c7f5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mprotect01 mprotect01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mprotect01 mprotect01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mprotect02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect02.sh new file mode 100644 index 0000000000000000000000000000000000000000..baffa3a5285ee2b8136bff1769378eec9b5fec70 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mprotect02 mprotect02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mprotect02 mprotect02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mprotect03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect03.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0d083bdca6ed4db63aac302d080d1f841e7e4ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mprotect03 mprotect03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mprotect03 mprotect03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mprotect04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect04.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4c162afe04a621e9735081588a0e149e3f9537f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mprotect04 mprotect04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mprotect04 mprotect04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mprotect05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect05.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2aa40fd35220b748a4d8289c9472b8c06a57d8c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mprotect05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mprotect05 mprotect05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mprotect05 mprotect05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mq_notify01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ed1204a7db9d7bc0237cb0bdae26dd19f04c470 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mq_notify01 mq_notify01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mq_notify01 mq_notify01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mq_notify02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify02.sh new file mode 100644 index 0000000000000000000000000000000000000000..2226c73222315a9e5caaa444733640698b37a050 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mq_notify02 mq_notify02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mq_notify02 mq_notify02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mq_notify03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify03.sh new file mode 100644 index 0000000000000000000000000000000000000000..edf6e2891d9c91de1843c0c1f07f2727f43a17cb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_notify03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mq_notify03 mq_notify03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mq_notify03 mq_notify03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mq_open01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_open01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ae49f348e8e257c781976e28476af2ba7a51755 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_open01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mq_open01 mq_open01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mq_open01 mq_open01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mq_timedreceive01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedreceive01.sh new file mode 100644 index 0000000000000000000000000000000000000000..23ce98bafb2c2f7777ce2e03acc41635a8385682 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedreceive01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mq_timedreceive01 mq_timedreceive01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mq_timedreceive01 mq_timedreceive01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mq_timedsend01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedsend01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2830ec1b817a1e6bbb3c65e8bc415a1af92cf2d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_timedsend01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mq_timedsend01 mq_timedsend01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mq_timedsend01 mq_timedsend01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mq_unlink01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_unlink01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5e9ea1f3c17d7a6f8c008d9bd77c94f0b9a43938 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mq_unlink01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mq_unlink01 mq_unlink01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mq_unlink01 mq_unlink01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mremap01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap01.sh new file mode 100644 index 0000000000000000000000000000000000000000..23c547a9b65afb235331d6d1032a348784823174 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mremap01 mremap01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mremap01 mremap01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mremap02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0be4f241c62a707f89cc5fe2dca6ba7db2492c3f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mremap02 mremap02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mremap02 mremap02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mremap03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap03.sh new file mode 100644 index 0000000000000000000000000000000000000000..85a0f0e6f4c99e770b930a4d0f3add080de8ab8c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mremap03 mremap03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mremap03 mremap03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mremap04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap04.sh new file mode 100644 index 0000000000000000000000000000000000000000..be24a731395da04e5f1bfd05a708d3042c6f37bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mremap04 mremap04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mremap04 mremap04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mremap05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap05.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4aa93e60181f383e5c1de7eb6847285e3712b65 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mremap05 mremap05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mremap05 mremap05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_mremap06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap06.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7b6dafb6da7f4456cdae7082c2e28f19e1d43c4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_mremap06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 mremap06 mremap06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls mremap06 mremap06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..1b9255ef8ff36c400626df6e9964df132683831c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc9f0b38ff1af77a586780c67b062da6833e5fc1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..d619625121d8094065a5c1de49d66eb40375b739 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl04.sh new file mode 100644 index 0000000000000000000000000000000000000000..69e268e1b1563fac5693465dcd95a61307df4c6d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl05.sh new file mode 100644 index 0000000000000000000000000000000000000000..faaa2ac4711a27be8fdc374767b0ce05d88b068d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl06.sh new file mode 100644 index 0000000000000000000000000000000000000000..cd5076ffd63f740d3dcc8d588cb08de699e66641 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgctl12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgctl12.sh new file mode 100644 index 0000000000000000000000000000000000000000..152e172e2535e1fe14d57d34b7de327a6731d030 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgget01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac353b23d5a855fb5fd2b25090ad65b7e7b07e2f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgget02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0ece6625cb5f5b322e37cde8688efb985e22302c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgget03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget03.sh new file mode 100644 index 0000000000000000000000000000000000000000..fdcbb9129b6368d3d05c9529102efcdb2a062efc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgget04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget04.sh new file mode 100644 index 0000000000000000000000000000000000000000..b390d7771ae38a9f8698403bcefb02548334f76a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgget05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgget05.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ef90d54f74d5656d20fc9171f9fd923590fb965 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgrcv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv01.sh new file mode 100644 index 0000000000000000000000000000000000000000..367db69caf8e7c721b820b201ff47e22618a6586 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgrcv02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv02.sh new file mode 100644 index 0000000000000000000000000000000000000000..698bf7aeaaf9f09be433e6e276b0ece2b8bf75a7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgrcv03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv03.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a9db5076e9b218bdfd8832b33122fef14f59c1b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgrcv05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv05.sh new file mode 100644 index 0000000000000000000000000000000000000000..ece49ddbc4bf4f5df22febe30317d1be35111878 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgrcv06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv06.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c46418535c747be93bcf1a54d353c6be600787f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgrcv07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv07.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc563de139027acf131143a2aee8270d6aeb1a4e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgrcv08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgrcv08.sh new file mode 100644 index 0000000000000000000000000000000000000000..556c84b7457635772de11b489f9b8f02753d1709 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgsnd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd01.sh new file mode 100644 index 0000000000000000000000000000000000000000..79d7a62e0be153da06327de3108d305a90dc848d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgsnd02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd02.sh new file mode 100644 index 0000000000000000000000000000000000000000..16e07f0ad8c563f57f8de769746f04aa3a63c3f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgsnd05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd05.sh new file mode 100644 index 0000000000000000000000000000000000000000..d66106b96d662ff8d7580ba56fd23ff69d5cd577 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgsnd06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgsnd06.sh new file mode 100644 index 0000000000000000000000000000000000000000..1160c6f452e4cc0161746432ec6f30c9e19e9a1c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgstress01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f3545d89221ccbcb1dafc54be28b7caa17898aa3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_msgstress02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress02.sh new file mode 100644 index 0000000000000000000000000000000000000000..b55807aea859e6fe97837c88e076b29212dcc3e2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 msgstress02 msgstress02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 msgstress02 msgstress02 + 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 msgstress02 msgstress02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_msgstress03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c9fc1f8147ebb2998ddfb2cfb4316bdebe738d7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 msgstress03 msgstress03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 msgstress03 msgstress03 + 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 msgstress03 msgstress03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_msgstress04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress04.sh new file mode 100644 index 0000000000000000000000000000000000000000..5d73f3708efdea0828b697fe605ce0c514a06d3d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msgstress04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 msgstress04 msgstress04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 msgstress04 msgstress04 + 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 msgstress04 msgstress04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_msync01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync01.sh new file mode 100644 index 0000000000000000000000000000000000000000..329d1db24d2103043107abcc70f3a42163d6ee3e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 msync01 msync01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls msync01 msync01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_msync02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a3fce8feacadc02c792db00149559fc3d0c0070d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 msync02 msync02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls msync02 msync02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_msync03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1c9e36dae34a0893f0006d7de3e11d85e90f0ce8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 msync03 msync03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls msync03 msync03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_msync04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync04.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e78af178efe9abc2df1f750c4af89bd0285510c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_msync04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 msync04 msync04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls msync04 msync04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_munlock01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e657e39da7d4c3cd17e19d69cfe3a5f4dd8c1c29 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 munlock01 munlock01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls munlock01 munlock01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_munlock02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock02.sh new file mode 100644 index 0000000000000000000000000000000000000000..91fd1b6f8c002571e6628394c3985e873b66693c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlock02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 munlock02 munlock02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls munlock02 munlock02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_munlockall01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlockall01.sh new file mode 100644 index 0000000000000000000000000000000000000000..93e9b275baeeefcb953e4fc908cf82cfd06e264c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munlockall01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 munlockall01 munlockall01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls munlockall01 munlockall01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_munmap01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap01.sh new file mode 100644 index 0000000000000000000000000000000000000000..94bb168f94cc927c10ce86afc6e0794795410ec4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 munmap01 munmap01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls munmap01 munmap01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_munmap02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0690f40f1bba6f4cb0c8096cccd5388350471499 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 munmap02 munmap02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls munmap02 munmap02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_munmap03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1a48f3255f317b374f777043797d8167d07b64cb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_munmap03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 munmap03 munmap03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls munmap03 munmap03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_name_to_handle_at01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a220d70cddbab69d1ea7fadd45bd59904926d4b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 name_to_handle_at01 name_to_handle_at01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls name_to_handle_at01 name_to_handle_at01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_name_to_handle_at02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed8fc017613c3766e5e9f9c3d2101896af88fbbf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_name_to_handle_at02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 name_to_handle_at02 name_to_handle_at02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls name_to_handle_at02 name_to_handle_at02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nanosleep01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep01.sh new file mode 100644 index 0000000000000000000000000000000000000000..76dde7240ea50ae0b87a122f8a1473eb412a0b7a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 nanosleep01 nanosleep01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls nanosleep01 nanosleep01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nanosleep02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep02.sh new file mode 100644 index 0000000000000000000000000000000000000000..20e1e2ab4feb9c530f3f0ee51dc53ad39095caed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 nanosleep02 nanosleep02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls nanosleep02 nanosleep02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nanosleep04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep04.sh new file mode 100644 index 0000000000000000000000000000000000000000..0aeb039f849892e7171a96c5dfe2a0afc0bdf5ed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nanosleep04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 nanosleep04 nanosleep04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls nanosleep04 nanosleep04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_newuname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_newuname01.sh new file mode 100644 index 0000000000000000000000000000000000000000..31e38776236c604908184938554a2c7b495f7bbe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_newuname01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 newuname01 newuname01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls newuname01 newuname01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nftw01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e08b62e14f72c27c1227beff6c86c15aaabd7e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 nftw01 nftw01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls nftw01 nftw01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nftw6401.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw6401.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6e785d6737b0d92c075de5426222c387cfe5f93 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nftw6401.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 nftw6401 nftw6401 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls nftw6401 nftw6401 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nice01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e60636c35e30441a4a62ae4ec2c2927e2423a62 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 nice01 nice01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls nice01 nice01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nice02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice02.sh new file mode 100644 index 0000000000000000000000000000000000000000..64d443351c625a3406f6c8ea36587a18bd61973b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 nice02 nice02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls nice02 nice02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nice03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice03.sh new file mode 100644 index 0000000000000000000000000000000000000000..3e4afe7bf9181385a24917510173b609dbf1fd14 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 nice03 nice03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls nice03 nice03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nice04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice04.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c5777f033a8e1b7b30cc2de662af9ea279cbee6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 nice04 nice04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls nice04 nice04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_nice05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice05.sh new file mode 100644 index 0000000000000000000000000000000000000000..79fa3b7f3561d2b6a8e8c0bede1cf67d0a3f0e7a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_nice05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 nice05 nice05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls nice05 nice05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8995a10b18ae554f571ea76e455cde4486c3a36 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open01 open01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open01 open01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open01A.sh new file mode 100644 index 0000000000000000000000000000000000000000..e66f5f6e81dd5e68ea7124137f85049730b1b69e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open01A.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open01A symlink01 -T open01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 open01A symlink01 -T open01 + 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 open01A symlink01 -T open01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d405b57e97732f4cd9aa5a4c53fd86f4fecb40ab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open02 open02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open02 open02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open03.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0e055f1f7634988378f216df800f4a90b34f7e2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open03 open03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open03 open03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open04.sh new file mode 100644 index 0000000000000000000000000000000000000000..60badcfee7234a9bbc1f95d65a4d88ae98c61f20 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open04 open04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open04 open04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open06.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7c68d3c2823b52811cbc9804abe21dfccc12f56 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open06 open06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open06 open06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open07.sh new file mode 100644 index 0000000000000000000000000000000000000000..4045e2352965a8f7773a653b5cf0416370d2e1c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open07 open07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open07 open07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open08.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6355d6641a58bac953a0822833fccf0f2fdd763 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open08 open08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open08 open08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open09.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ff046b9c7c327561dfd5ea0afd012c7dd96ae52 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open09 open09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open09 open09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open10.sh new file mode 100644 index 0000000000000000000000000000000000000000..73bb6e804a50cd24f3226c3c8dfe3132932e35b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open10 open10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open10 open10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open11.sh new file mode 100644 index 0000000000000000000000000000000000000000..a1d1ff604d858aee619dca4fc6a1e4cb4612db4d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open11 open11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open11 open11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open12.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6f6cbd5df6bfa5d0ac3df6f5c5a662c7924a73f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open12 open12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open12 open12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open13.sh new file mode 100644 index 0000000000000000000000000000000000000000..022705543c70a71a2665330abd4abd143b752ebb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open13 open13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open13 open13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_open14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open14.sh new file mode 100644 index 0000000000000000000000000000000000000000..426fa3e695ce2f039864f68cff78be23d4399e51 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open14 open14 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open14 open14 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..4e7c069a0edfe81d5b08cd08bba586131a4a145f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open_by_handle_at01 open_by_handle_at01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open_by_handle_at01 open_by_handle_at01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_at02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at02.sh new file mode 100644 index 0000000000000000000000000000000000000000..19078f3c8a589e2d4c78ebce5dcdbcb9a9f46baa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_by_handle_at02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open_by_handle_at02 open_by_handle_at02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open_by_handle_at02 open_by_handle_at02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tree01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a85b1bb99a1aa4af25d7ce567aef90096e49b69 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open_tree01 open_tree01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open_tree01 open_tree01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tree02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree02.sh new file mode 100644 index 0000000000000000000000000000000000000000..8dc2b6e34f34eeb8d2a86e66019b78c59275e219 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_open_tree02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 open_tree02 open_tree02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls open_tree02 open_tree02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_openat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9134bb0746b357ef24253321173d45d3112f0e1d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 openat01 openat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls openat01 openat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_openat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..61e69694a766bffb6e66cda7724a82c8603e3e53 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 openat02 openat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls openat02 openat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_openat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat03.sh new file mode 100644 index 0000000000000000000000000000000000000000..6fe7413ed98205ee9366c7e2b0f0dc4b92b66557 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 openat03 openat03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls openat03 openat03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_openat04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat04.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fee3913220ac22ef6fc4ba58c10e213ec6a11db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 openat04 openat04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls openat04 openat04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_openat201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat201.sh new file mode 100644 index 0000000000000000000000000000000000000000..09b99bb562b5d9405a8b984758623d4ad5dc5b09 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat201.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 openat201 openat201 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls openat201 openat201 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_openat202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat202.sh new file mode 100644 index 0000000000000000000000000000000000000000..853f9d7612a84b13fb81b79047011066684e8ff3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat202.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 openat202 openat202 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls openat202 openat202 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_openat203.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat203.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c3d2043dc86be4f1745c0c614d57d6758f9eb8e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_openat203.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 openat203 openat203 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls openat203 openat203 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pathconf01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f570ec54d470dac684e79bec0a1a0e75305e579 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pathconf01 pathconf01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pathconf01 pathconf01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pathconf02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf02.sh new file mode 100644 index 0000000000000000000000000000000000000000..80811e358a80e1ac4cb6f0c9d3cad44a343fb7e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pathconf02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pathconf02 pathconf02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pathconf02 pathconf02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pause01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause01.sh new file mode 100644 index 0000000000000000000000000000000000000000..446376982f281d56088a49ec151fbb190005b298 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pause01 pause01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pause01 pause01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pause02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause02.sh new file mode 100644 index 0000000000000000000000000000000000000000..9081e3b8e1b7d81e045df53752721869f8317dab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pause02 pause02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pause02 pause02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pause03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause03.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4bde90c1fd7225612876317dda4daf4d27f6cc9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pause03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pause03 pause03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pause03 pause03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_perf_event_open01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open01.sh new file mode 100644 index 0000000000000000000000000000000000000000..96e8e933a4711950101ebf9b8cc73431c17f971c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 perf_event_open01 perf_event_open01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls perf_event_open01 perf_event_open01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_perf_event_open02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0befd9b3a11a8783faf236207ae271125d8238e5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 perf_event_open02 perf_event_open02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls perf_event_open02 perf_event_open02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_perf_event_open03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open03.sh new file mode 100644 index 0000000000000000000000000000000000000000..0aef733b8e388f290239512ca29db737cb8eb0f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_perf_event_open03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 perf_event_open03 perf_event_open03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls perf_event_open03 perf_event_open03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_personality01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b8a8b731c63af72af902068dc0d43ecdc6c4b07 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 personality01 personality01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls personality01 personality01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_personality02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality02.sh new file mode 100644 index 0000000000000000000000000000000000000000..364bdc7124b059f4f62172e55ad5d674619c8382 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_personality02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 personality02 personality02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls personality02 personality02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pidfd_getfd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1e65b0e9c43162cc83d13acead9f5f828b48c6ad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pidfd_getfd01 pidfd_getfd01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pidfd_getfd01 pidfd_getfd01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pidfd_getfd02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd02.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cfdc9f8c9509a16c9b24d97701eeebf22cdad8c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_getfd02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pidfd_getfd02 pidfd_getfd02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pidfd_getfd02 pidfd_getfd02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pidfd_open01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open01.sh new file mode 100644 index 0000000000000000000000000000000000000000..10a6df075f08aa35ac452a3216737af4c4de1822 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pidfd_open01 pidfd_open01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pidfd_open01 pidfd_open01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pidfd_open02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open02.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa0bd91362d9d6d56477bf89dbec4fb9345580ac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pidfd_open02 pidfd_open02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pidfd_open02 pidfd_open02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pidfd_open03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open03.sh new file mode 100644 index 0000000000000000000000000000000000000000..88ef9476785429a822b52142691050ce3aee062e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pidfd_open03 pidfd_open03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pidfd_open03 pidfd_open03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pidfd_open04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open04.sh new file mode 100644 index 0000000000000000000000000000000000000000..fa948a4615ac9cbbe8be4786577733e972bf1ad8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_open04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pidfd_open04 pidfd_open04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pidfd_open04 pidfd_open04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pidfd_send_signal01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal01.sh new file mode 100644 index 0000000000000000000000000000000000000000..560d1d92bfb7758aa1885dd736ce4f43dd59d59b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pidfd_send_signal01 pidfd_send_signal01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pidfd_send_signal01 pidfd_send_signal01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pidfd_send_signal02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal02.sh new file mode 100644 index 0000000000000000000000000000000000000000..62951e2672195bec28afcfc09ab5ed3027a2706f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pidfd_send_signal02 pidfd_send_signal02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pidfd_send_signal02 pidfd_send_signal02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pidfd_send_signal03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal03.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb3ac53c9f338ef67058486e80f80da48e7fd21d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pidfd_send_signal03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pidfd_send_signal03 pidfd_send_signal03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pidfd_send_signal03 pidfd_send_signal03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe01.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc1abbb8e169037878f2cbe00b1be23b9ca81bdd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe01 pipe01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe01 pipe01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ede255be381c9863c05eec3faf29aba06c2ac238 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe02 pipe02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe02 pipe02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe03.sh new file mode 100644 index 0000000000000000000000000000000000000000..379292347edacc67e4aed25a9d0a56157f18c54c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe03 pipe03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe03 pipe03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe04.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a74f798be04a53e1793a70faa7b216960a887f2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe04 pipe04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe04 pipe04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe05.sh new file mode 100644 index 0000000000000000000000000000000000000000..a5bd2500a842adbe11ff9bf5e29ffb4a5b11d804 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe05 pipe05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe05 pipe05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe06.sh new file mode 100644 index 0000000000000000000000000000000000000000..12c4ad60e60ad03eb98d04662eb237805e78e6c1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe06 pipe06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe06 pipe06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe07.sh new file mode 100644 index 0000000000000000000000000000000000000000..12a0addadebcfac8ff7b4bf36ad6bccad34cf3ca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe07 pipe07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe07 pipe07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe08.sh new file mode 100644 index 0000000000000000000000000000000000000000..a1f943d862828cf65f6b249793db5c20039c17fb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe08 pipe08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe08 pipe08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe09.sh new file mode 100644 index 0000000000000000000000000000000000000000..e27052a9b0991626109715c7c01997a1b332c627 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe09 pipe09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe09 pipe09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe10.sh new file mode 100644 index 0000000000000000000000000000000000000000..21f9c76a71ecdde287f7688020dd8c56ee7c4533 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe10 pipe10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe10 pipe10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe11.sh new file mode 100644 index 0000000000000000000000000000000000000000..83a612b123c835c50a4ab54d80ff7bfb644b2928 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe11 pipe11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe11 pipe11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe12.sh new file mode 100644 index 0000000000000000000000000000000000000000..60346d3c40251ed66f2232b6d3d55e2f32e6abc7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe12 pipe12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe12 pipe12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe13.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d279acd03ab263046bcd2ef1428e62c15f03ab8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe13 pipe13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe13 pipe13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe14.sh new file mode 100644 index 0000000000000000000000000000000000000000..d980f186ee070089eb6ba34e9c265f64cd932b68 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe14 pipe14 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe14 pipe14 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe15.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe15.sh new file mode 100644 index 0000000000000000000000000000000000000000..2de1d996b04cb55bc98e4c26616a10ba2eff04e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe15.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pipe15 pipe15 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe15 pipe15 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pipe2_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ecadef24085aba106657e0f8fdf892d21592564f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_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 pipe2_01 pipe2_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 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" + CHECK_RESULT $? 1 0 "syscalls pipe2_01 pipe2_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_pipe2_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_02.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ec8d473eb722dd066e1d5c68532514a1ead63e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_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 pipe2_02 pipe2_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 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" + CHECK_RESULT $? 1 0 "syscalls pipe2_02 pipe2_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_pipe2_04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_04.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d1f95708e9fe3fea90be2be624f0e09a2fa1d34 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pipe2_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_syscalls pipe2_04 pipe2_04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pipe2_04 pipe2_04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pivot_root01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pivot_root01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7389eb5e31a73240b80b04bd7d862b231b17542 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pivot_root01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pivot_root01 pivot_root01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pivot_root01 pivot_root01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pkey01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pkey01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d48802f26137cbfedf1b9815cf1e501406f32980 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pkey01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pkey01 pkey01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pkey01 pkey01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_poll01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_poll01.sh new file mode 100644 index 0000000000000000000000000000000000000000..47085d0070085957e977d5e05fb5d963ca02c0cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls poll01 poll01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls poll01 poll01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_poll02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_poll02.sh new file mode 100644 index 0000000000000000000000000000000000000000..75488af179007d4d425e7932e2bcf943453e8d90 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls poll02 poll02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls poll02 poll02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_posix_fadvise01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c78658f2a711137db84b7e080c3407e73d38934 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 posix_fadvise01 posix_fadvise01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls posix_fadvise01 posix_fadvise01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_posix_fadvise01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..e31b3de76dd1ee2e7893a0512f6fb08ad3b15d68 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise01_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 posix_fadvise01_64 posix_fadvise01_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 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" + CHECK_RESULT $? 1 0 "syscalls posix_fadvise01_64 posix_fadvise01_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_posix_fadvise02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02.sh new file mode 100644 index 0000000000000000000000000000000000000000..14d687dd59b817c0c585e9ce522e31ad237fa6f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 posix_fadvise02 posix_fadvise02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls posix_fadvise02 posix_fadvise02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_posix_fadvise02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..fdeaf0382ee5c26441f551b69e8f56aa0d38a49e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise02_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 posix_fadvise02_64 posix_fadvise02_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 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" + CHECK_RESULT $? 1 0 "syscalls posix_fadvise02_64 posix_fadvise02_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_posix_fadvise03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e43dc6af036151c6edac29048874c30725aec29 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 posix_fadvise03 posix_fadvise03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls posix_fadvise03 posix_fadvise03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_posix_fadvise03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..5dd72bfa64172178387ac4d467e962b04bad339d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise03_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 posix_fadvise03_64 posix_fadvise03_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 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" + CHECK_RESULT $? 1 0 "syscalls posix_fadvise03_64 posix_fadvise03_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_posix_fadvise04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04.sh new file mode 100644 index 0000000000000000000000000000000000000000..c858ffc5cced4d20e2a48161da8e2871f35e9c1e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 posix_fadvise04 posix_fadvise04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls posix_fadvise04 posix_fadvise04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_posix_fadvise04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..1ab0f56d18239ea66da3d2c51bd128c23801d840 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_posix_fadvise04_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 posix_fadvise04_64 posix_fadvise04_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 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" + CHECK_RESULT $? 1 0 "syscalls posix_fadvise04_64 posix_fadvise04_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_ppoll01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ppoll01.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c0d08d9c53b0d384c2bfa547cd730c4b1124ccc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ppoll01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ppoll01 ppoll01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ppoll01 ppoll01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_prctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c74ae2f59ce05bb981db07ab158dc214b8059c26 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 prctl01 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 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" + CHECK_RESULT $? 1 0 "syscalls prctl01 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_prctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..274a3a9b11e2ef0fb76f04eeee5df34ec704d7f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 prctl02 prctl02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls prctl02 prctl02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_prctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..a00d8e9614dbb169481afb1cf53cb015693d647b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 prctl03 prctl03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls prctl03 prctl03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_prctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl04.sh new file mode 100644 index 0000000000000000000000000000000000000000..100d2c2c5b0ba72a55ce39bd02500e75abfc5284 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 prctl04 prctl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 prctl04 prctl04 + 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 prctl04 prctl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_prctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl05.sh new file mode 100644 index 0000000000000000000000000000000000000000..5019fa9f57e57c1f868bb154320da1f772efd692 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 prctl05 prctl05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls prctl05 prctl05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_prctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl06.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fe098b490f2ee931dd0602550eb8368448bfc52 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 prctl06 prctl06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls prctl06 prctl06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_prctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl07.sh new file mode 100644 index 0000000000000000000000000000000000000000..b5ecab444d8e56e57864447fce8a44ee08d6234c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 prctl07 prctl07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls prctl07 prctl07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_prctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl08.sh new file mode 100644 index 0000000000000000000000000000000000000000..d134f31a0b31ded89b73041a6f06669a473ce44e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 prctl08 prctl08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls prctl08 prctl08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_prctl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl09.sh new file mode 100644 index 0000000000000000000000000000000000000000..07be66f7059a37799c96995258d09f584ba8fcdd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 prctl09 prctl09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls prctl09 prctl09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_prctl10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl10.sh new file mode 100644 index 0000000000000000000000000000000000000000..ead845de96f37d0c1fd05ce20cf05dedcc56c83f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prctl10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 prctl10 prctl10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls prctl10 prctl10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pread01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7e99243e81e0c8842c623abb634647dc3eba793 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pread01 pread01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pread01 pread01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pread01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..88b7da277d2a81e5ddb45f3cde3befbc4ce42a01 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread01_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 pread01_64 pread01_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 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" + CHECK_RESULT $? 1 0 "syscalls pread01_64 pread01_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_pread02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1fb20cb61b59681d507207da15786e895dfa680 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pread02 pread02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pread02 pread02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pread02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..8672a6478280925c93964cdb8d975e4f6199309a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pread02_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 pread02_64 pread02_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 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" + CHECK_RESULT $? 1 0 "syscalls pread02_64 pread02_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_preadv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01.sh new file mode 100644 index 0000000000000000000000000000000000000000..245acd5657950fe2b06b7d8c976d64bb88f16451 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 preadv01 preadv01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls preadv01 preadv01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_preadv01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..da6532aec51f32b86c11933b24ed557b7ac4ef6e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv01_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 preadv01_64 preadv01_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 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" + CHECK_RESULT $? 1 0 "syscalls preadv01_64 preadv01_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_preadv02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02.sh new file mode 100644 index 0000000000000000000000000000000000000000..aedd2e6dd1c065874b249292bd8bc3507266700b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 preadv02 preadv02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls preadv02 preadv02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_preadv02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ef3a66f6d8943a3bbc545d49e4870a9162edce4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv02_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 preadv02_64 preadv02_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 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" + CHECK_RESULT $? 1 0 "syscalls preadv02_64 preadv02_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_preadv03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6e5c3c560d0f0a49d3ccf1f0e2f1784d5c504f7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 preadv03 preadv03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls preadv03 preadv03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_preadv03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d15ac5420ac05ea332c2ee3f27eda1cb260c905 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv03_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 preadv03_64 preadv03_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 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" + CHECK_RESULT $? 1 0 "syscalls preadv03_64 preadv03_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_preadv201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc9109a90f78c50bdf9d27b9a3d55df45ed7b1c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 preadv201 preadv201 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls preadv201 preadv201 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_preadv201_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2eb3c4cd50a13f0273d953afe2a00f92c7a47ac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv201_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 preadv201_64 preadv201_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 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" + CHECK_RESULT $? 1 0 "syscalls preadv201_64 preadv201_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_preadv202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202.sh new file mode 100644 index 0000000000000000000000000000000000000000..3acb62adcdbbe66d19470b95b1fb4819c8ecc8f9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 preadv202 preadv202 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls preadv202 preadv202 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_preadv202_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c9d761dad08d795f6b011560145f5b03c7b2dd3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv202_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 preadv202_64 preadv202_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 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" + CHECK_RESULT $? 1 0 "syscalls preadv202_64 preadv202_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_preadv203.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ea8c1349e477022294cebf1f2a1305ac8137f18 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 preadv203 preadv203 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls preadv203 preadv203 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_preadv203_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..66696138c1d3d99152b59e374790164e02e91e60 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_preadv203_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 preadv203_64 preadv203_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 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" + CHECK_RESULT $? 1 0 "syscalls preadv203_64 preadv203_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_process_madvise01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_madvise01.sh new file mode 100644 index 0000000000000000000000000000000000000000..740b293fc98a891672d38589199463ad6149a466 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_madvise01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 process_madvise01 process_madvise01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls process_madvise01 process_madvise01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_process_vm_readv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv01.sh new file mode 100644 index 0000000000000000000000000000000000000000..db2989acbbd14c85ce1b7908a907ba99f1667d9d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 process_vm_readv01 process_vm01 -r +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls process_vm_readv01 process_vm01 -r failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_process_vm_readv02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4e6a6a5479aeccdc13219aa5867de3327b15e71 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 process_vm_readv02 process_vm_readv02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls process_vm_readv02 process_vm_readv02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_process_vm_readv03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv03.sh new file mode 100644 index 0000000000000000000000000000000000000000..8503c64518ba30523f6b694da726434f43bc0dad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_readv03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 process_vm_readv03 process_vm_readv03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls process_vm_readv03 process_vm_readv03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_process_vm_writev01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev01.sh new file mode 100644 index 0000000000000000000000000000000000000000..59ef0128bffa5c1e08992f40bdd12642448c4905 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 process_vm_writev01 process_vm01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls process_vm_writev01 process_vm01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_process_vm_writev02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev02.sh new file mode 100644 index 0000000000000000000000000000000000000000..baa87af94d2486eee81d76223df3560e3e212b70 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_process_vm_writev02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 process_vm_writev02 process_vm_writev02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls process_vm_writev02 process_vm_writev02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_profil01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_profil01.sh new file mode 100644 index 0000000000000000000000000000000000000000..74e4d5c35b41cf771d43fb11c7e2948eeb62cced --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_profil01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 profil01 profil01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls profil01 profil01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_prot_hsymlinks.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prot_hsymlinks.sh new file mode 100644 index 0000000000000000000000000000000000000000..dff9757d0ef4c84117748d31cad596a9e5c1a73b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_prot_hsymlinks.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 prot_hsymlinks prot_hsymlinks +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls prot_hsymlinks prot_hsymlinks failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pselect01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c322e03cb009e3be809494e46ef50e23a39a925 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pselect01 pselect01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pselect01 pselect01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pselect01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..0d3aa927326668e80f9ec25ded36010a795d580f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect01_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 pselect01_64 pselect01_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 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" + CHECK_RESULT $? 1 0 "syscalls pselect01_64 pselect01_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_pselect02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02.sh new file mode 100644 index 0000000000000000000000000000000000000000..59d2e92cef34acb6d39caf80a034b1701d0cc34c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pselect02 pselect02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pselect02 pselect02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pselect02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..8263c3e0f93427cd6bc3981e400ed1fef45f3296 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect02_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 pselect02_64 pselect02_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 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" + CHECK_RESULT $? 1 0 "syscalls pselect02_64 pselect02_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_pselect03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03.sh new file mode 100644 index 0000000000000000000000000000000000000000..88400deda934211f465e3fb5c30b34b375a28a23 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pselect03 pselect03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pselect03 pselect03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pselect03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb7b096ce5943639da462fc066484c410d626da4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pselect03_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 pselect03_64 pselect03_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 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" + CHECK_RESULT $? 1 0 "syscalls pselect03_64 pselect03_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_ptrace01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f8c20ccb79875ad3e2693166cc27a145f949bead --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace01 ptrace01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace01 ptrace01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptrace02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e1dbd63f4349b35411a6148d2f04d7e8089450a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace02 ptrace02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace02 ptrace02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptrace03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace03.sh new file mode 100644 index 0000000000000000000000000000000000000000..ce330624e1981e7f35b28abda9ea5c94785489ba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace03 ptrace03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace03 ptrace03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptrace04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace04.sh new file mode 100644 index 0000000000000000000000000000000000000000..7abafb058cf741f1869c964191391d5a812005d5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace04 ptrace04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace04 ptrace04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptrace05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace05.sh new file mode 100644 index 0000000000000000000000000000000000000000..83ef23863b9d3b0585b993faa4dcc0b453af6894 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace05 ptrace05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace05 ptrace05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptrace06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace06.sh new file mode 100644 index 0000000000000000000000000000000000000000..943a63f62bc77ddf951030c0bb6ecaed30cec449 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace06 ptrace06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace06 ptrace06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptrace07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace07.sh new file mode 100644 index 0000000000000000000000000000000000000000..263f365f5f34244303aee804803c6608e7561b78 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace07 ptrace07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace07 ptrace07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptrace08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace08.sh new file mode 100644 index 0000000000000000000000000000000000000000..0de13da2ef87d04e98152fb9419a35a8ae844a7a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace08 ptrace08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace08 ptrace08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptrace09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace09.sh new file mode 100644 index 0000000000000000000000000000000000000000..a68fc3d26fc622181870bb0b735656a266c98cb4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace09 ptrace09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace09 ptrace09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptrace10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace10.sh new file mode 100644 index 0000000000000000000000000000000000000000..e161cbbf58854669b09b3d5c628e321f0cc1188b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace10 ptrace10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace10 ptrace10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ptrace11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace11.sh new file mode 100644 index 0000000000000000000000000000000000000000..fbfee1856c289ca1221515939fe5905ea3ea2970 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ptrace11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ptrace11 ptrace11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ptrace11 ptrace11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pwrite01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0108f57caefde32e823c0698f87f9c604105babf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pwrite01 pwrite01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pwrite01 pwrite01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pwrite01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..98e37afb6e0bef1040d51bd6e8fd9d13fe8cec0e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite01_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 pwrite01_64 pwrite01_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 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" + CHECK_RESULT $? 1 0 "syscalls pwrite01_64 pwrite01_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_pwrite02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c64717047bda9ec71f2e9d279a08665255db783 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pwrite02 pwrite02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pwrite02 pwrite02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pwrite02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..60266230b92ebdd25c54f6054e0e5f6b664790c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite02_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 pwrite02_64 pwrite02_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 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" + CHECK_RESULT $? 1 0 "syscalls pwrite02_64 pwrite02_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_pwrite03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03.sh new file mode 100644 index 0000000000000000000000000000000000000000..8713b3fc338963e8b326833eca639fbbac40a418 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pwrite03 pwrite03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pwrite03 pwrite03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pwrite03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..5dc096175ca866c33f3a2edbb0ea1befcc1735b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite03_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 pwrite03_64 pwrite03_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 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" + CHECK_RESULT $? 1 0 "syscalls pwrite03_64 pwrite03_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_pwrite04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04.sh new file mode 100644 index 0000000000000000000000000000000000000000..8b334d1558365f9ea42944c26ae5e0991fa05499 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pwrite04 pwrite04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pwrite04 pwrite04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pwrite04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..88f9c3b9765ab5d9b4d62350a22e8616fee095fd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwrite04_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 pwrite04_64 pwrite04_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 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" + CHECK_RESULT $? 1 0 "syscalls pwrite04_64 pwrite04_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_pwritev01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01.sh new file mode 100644 index 0000000000000000000000000000000000000000..44162ca59c2ed0c22b74e4819dafcfaa0fd89b95 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pwritev01 pwritev01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pwritev01 pwritev01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pwritev01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dce403066b0b050d44c7430cd8875d21744e606 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev01_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 pwritev01_64 pwritev01_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 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" + CHECK_RESULT $? 1 0 "syscalls pwritev01_64 pwritev01_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_pwritev02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02.sh new file mode 100644 index 0000000000000000000000000000000000000000..44be085fac2518ab472ee262f2926e041f01a17c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pwritev02 pwritev02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pwritev02 pwritev02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pwritev02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..44eebed49f094e0167b499978763378533bedf04 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev02_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 pwritev02_64 pwritev02_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 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" + CHECK_RESULT $? 1 0 "syscalls pwritev02_64 pwritev02_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_pwritev03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03.sh new file mode 100644 index 0000000000000000000000000000000000000000..071ed4d529572ccfac3a8fd06ec96ce69a866312 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pwritev03 pwritev03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pwritev03 pwritev03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pwritev03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..848a40e3233875365c9ad1f9dc59979d6c224324 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev03_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 pwritev03_64 pwritev03_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 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" + CHECK_RESULT $? 1 0 "syscalls pwritev03_64 pwritev03_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_pwritev201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201.sh new file mode 100644 index 0000000000000000000000000000000000000000..e781f1b2cb07e06da14a040211e4f3cf37168c0d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pwritev201 pwritev201 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pwritev201 pwritev201 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pwritev201_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..4295f46cf29e4d3ddc8c475d1c20eb354ab75c4f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev201_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 pwritev201_64 pwritev201_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 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" + CHECK_RESULT $? 1 0 "syscalls pwritev201_64 pwritev201_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_pwritev202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac6aaba846bb582608e25bd6d60ccf86333588e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 pwritev202 pwritev202 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls pwritev202 pwritev202 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_pwritev202_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff3b4e30f8652f34cda362fd7ddcfb8e85aec79e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_pwritev202_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 pwritev202_64 pwritev202_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 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" + CHECK_RESULT $? 1 0 "syscalls pwritev202_64 pwritev202_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_qmm01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_qmm01.sh new file mode 100644 index 0000000000000000000000000000000000000000..226d3edc7be15f5a53755a09db2490e4754becff --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_qmm01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 qmm01 mmap001 -m 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 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" + CHECK_RESULT $? 1 0 "syscalls qmm01 mmap001 -m 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_syscalls/oe_test_ltp_syscalls_quotactl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c1b3ed988b29d75249f9252ae17cbc8c2c7b2e72 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 quotactl01 quotactl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls quotactl01 quotactl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_quotactl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..bdbba0d4b56b2a4db172a264825d394323421cd4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 quotactl02 quotactl02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls quotactl02 quotactl02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_quotactl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..0934e3f5d296d0ba107fe40a5ea43105081e8af7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 quotactl03 quotactl03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls quotactl03 quotactl03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_quotactl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl04.sh new file mode 100644 index 0000000000000000000000000000000000000000..e976049b2b4bc5ea9028d03d0e1b53b0c662ae09 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 quotactl04 quotactl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls quotactl04 quotactl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_quotactl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl05.sh new file mode 100644 index 0000000000000000000000000000000000000000..02b556fddd96cdaffc503fd9381e7b25ce44166d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 quotactl05 quotactl05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls quotactl05 quotactl05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_quotactl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl06.sh new file mode 100644 index 0000000000000000000000000000000000000000..49f3d2ab36b5f110171fbbf4db849872d6b9cece --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 quotactl06 quotactl06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls quotactl06 quotactl06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_quotactl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl07.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa043a4e6df01631af056815dfb9b78fca3f01c6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 quotactl07 quotactl07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls quotactl07 quotactl07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_quotactl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl08.sh new file mode 100644 index 0000000000000000000000000000000000000000..187299023ff11f0dcfe3bc7e90f1cf93ead77a0c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 quotactl08 quotactl08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls quotactl08 quotactl08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_quotactl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl09.sh new file mode 100644 index 0000000000000000000000000000000000000000..d855fa190510ca9779cd3e05ff626d6db2cd4357 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_quotactl09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 quotactl09 quotactl09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls quotactl09 quotactl09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_read01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee0843847244c02663e1532ea80c29a4e8932f67 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 read01 read01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls read01 read01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_read02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read02.sh new file mode 100644 index 0000000000000000000000000000000000000000..e93932e64dc00e85019f0ef9ee88ac1fc959f99a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 read02 read02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls read02 read02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_read03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read03.sh new file mode 100644 index 0000000000000000000000000000000000000000..a9506704a980585257ab91c2589092eb892bf5ca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 read03 read03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls read03 read03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_read04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read04.sh new file mode 100644 index 0000000000000000000000000000000000000000..56132eb032e21a979019dfb595a1cc12ab621774 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_read04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 read04 read04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls read04 read04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readahead01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba8844948fd0bc03f4587375ee57315a383293a2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readahead01 readahead01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readahead01 readahead01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readahead02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2e9b57864548e4929de6ae1ac822ab9d1bdc0de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readahead02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readahead02 readahead02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readahead02 readahead02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readdir01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir01.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b25dacb66e13a6927bb36e6cf030b730850da27 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readdir01 readdir01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readdir01 readdir01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readdir21.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir21.sh new file mode 100644 index 0000000000000000000000000000000000000000..9127d6e3a016c300c216960ab4482efd005c4f5c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readdir21.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readdir21 readdir21 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readdir21 readdir21 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readlink01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e69649d07dffe99fde5a7037b2103f10615784b9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readlink01 readlink01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readlink01 readlink01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readlink01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01A.sh new file mode 100644 index 0000000000000000000000000000000000000000..38c97fdb8b20d113451fc30faf1349c9ddec3762 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink01A.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readlink01A symlink01 -T readlink01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readlink01A symlink01 -T readlink01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readlink03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink03.sh new file mode 100644 index 0000000000000000000000000000000000000000..bebd6e50057f92711a0577cab06a07eacbf1c972 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlink03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readlink03 readlink03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readlink03 readlink03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readlinkat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed3fddf05b4b8bb57a1b14cf040c58aac374e34f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readlinkat01 readlinkat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readlinkat01 readlinkat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readlinkat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ccf1162382f230d9f7c29fb4a96a013a77227f6d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readlinkat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readlinkat02 readlinkat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readlinkat02 readlinkat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7d4fed3d9d160d48e755def5cbd4591dfb727213 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readv01 readv01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readv01 readv01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_readv02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv02.sh new file mode 100644 index 0000000000000000000000000000000000000000..001574aeee6fc6ae3d4f21fd204a6477926e8c80 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_readv02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 readv02 readv02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls readv02 readv02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_realpath01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_realpath01.sh new file mode 100644 index 0000000000000000000000000000000000000000..808838d6841dfe5e4f0cbed28dd4d5d21a942763 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_realpath01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 realpath01 realpath01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls realpath01 realpath01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_reboot01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e8f388d2418bef016d76279b21eba05b5df2f965 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 reboot01 reboot01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls reboot01 reboot01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_reboot02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot02.sh new file mode 100644 index 0000000000000000000000000000000000000000..539d230469aaa5912f11c8257832ab6dfb5ce166 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_reboot02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 reboot02 reboot02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls reboot02 reboot02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_recv01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recv01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6871a6388cb6422eaff4b0caff3dbfa770dc5c88 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recv01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 recv01 recv01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls recv01 recv01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_recvfrom01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvfrom01.sh new file mode 100644 index 0000000000000000000000000000000000000000..630106c03872633f3c309cb73fe6b76932b30ffe --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvfrom01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 recvfrom01 recvfrom01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls recvfrom01 recvfrom01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_recvmmsg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmmsg01.sh new file mode 100644 index 0000000000000000000000000000000000000000..130021991dd1c786e51a27ced64100a203b86f0f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmmsg01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 recvmmsg01 recvmmsg01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls recvmmsg01 recvmmsg01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_recvmsg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6dfe8a9e373979887ae19357229bd0f7dbd9defb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 recvmsg01 recvmsg01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls recvmsg01 recvmsg01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_recvmsg02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg02.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f688294f8a4715fd74fa800b644428cac52b42c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 recvmsg02 recvmsg02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls recvmsg02 recvmsg02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_recvmsg03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg03.sh new file mode 100644 index 0000000000000000000000000000000000000000..c921ca156d44c624789768578b29b5850c066827 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_recvmsg03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 recvmsg03 recvmsg03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls recvmsg03 recvmsg03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_remap_file_pages01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_pages01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ee6d8e17fbbcb0799bb37799dde28babc97e3c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_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_syscalls remap_file_pages01 remap_file_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 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" + CHECK_RESULT $? 1 0 "syscalls remap_file_pages01 remap_file_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_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 new file mode 100644 index 0000000000000000000000000000000000000000..4c3c1393ffa5d3501886002a51bd12ce5f2fd0bb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_remap_file_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_syscalls remap_file_pages02 remap_file_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 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" + CHECK_RESULT $? 1 0 "syscalls remap_file_pages02 remap_file_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_syscalls/oe_test_ltp_syscalls_removexattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..da570fd735c8a63b034ff6cb4a7d4e6c9a7c06a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 removexattr01 removexattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls removexattr01 removexattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_removexattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..24c1dbbe3ae9e471eb5f12f73b85aa3af7004eaf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_removexattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 removexattr02 removexattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls removexattr02 removexattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01.sh new file mode 100644 index 0000000000000000000000000000000000000000..47f993eadc7cc1d86266f7ead96689686f20ffc5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename01 rename01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename01 rename01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01A.sh new file mode 100644 index 0000000000000000000000000000000000000000..677d6bcec7955ab2316c6878cd97d40f355179fd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename01A.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename01A symlink01 -T rename01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename01A symlink01 -T rename01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename03.sh new file mode 100644 index 0000000000000000000000000000000000000000..280859f742ec92e9ed90900dc009b43ff938cdd2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename03 rename03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename03 rename03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename04.sh new file mode 100644 index 0000000000000000000000000000000000000000..b2ea257c0f3cc1933d858bc60c590cb6d659fbd2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename04 rename04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename04 rename04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename05.sh new file mode 100644 index 0000000000000000000000000000000000000000..27366aa024c529f5dea919619afdba8909c56ddf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename05 rename05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename05 rename05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename06.sh new file mode 100644 index 0000000000000000000000000000000000000000..a138a5b28da50399573face0cefda856449fcab8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename06 rename06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename06 rename06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename07.sh new file mode 100644 index 0000000000000000000000000000000000000000..b4b2c1a8170894cb87cdfddc65491d0973eb4b21 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename07 rename07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename07 rename07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename08.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2f1e25b1e0449e0d0b4fadeaa7e9e56cf53d5d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename08 rename08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename08 rename08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename09.sh new file mode 100644 index 0000000000000000000000000000000000000000..02231c9ff3ca787992a1f7e1462dab95d1e7c1a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename09 rename09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename09 rename09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename10.sh new file mode 100644 index 0000000000000000000000000000000000000000..a7563e653c858aaab81e9af8cfdf9c4ab3314249 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename10 rename10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename10 rename10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename11.sh new file mode 100644 index 0000000000000000000000000000000000000000..48db813888d54e0ea44b1846e2df86fc62bd4665 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename11 rename11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename11 rename11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename12.sh new file mode 100644 index 0000000000000000000000000000000000000000..a1cc05a9538a974678f14109b84a19f141b169eb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename12 rename12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename12 rename12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename13.sh new file mode 100644 index 0000000000000000000000000000000000000000..740f8efb757f1c686ec6bc41ccf0b588c05451fa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename13 rename13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename13 rename13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rename14.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename14.sh new file mode 100644 index 0000000000000000000000000000000000000000..152508988cb232fee9203acb219620df2c4a3bf4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rename14.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rename14 rename14 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rename14 rename14 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_renameat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ecb1e43a034452c4e77af9bbe79d90db01893ba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 renameat01 renameat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls renameat01 renameat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_renameat201.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat201.sh new file mode 100644 index 0000000000000000000000000000000000000000..c25d25eba2a646ce7ac7dc3ea7137fc91c58421a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat201.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 renameat201 renameat201 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls renameat201 renameat201 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_renameat202.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat202.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c608ab71f40f1a6096bf75d5413d3d3d84bf447 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_renameat202.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 renameat202 renameat202 -i 10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls renameat202 renameat202 -i 10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_request_key01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f799e8a71a883354d283bc65957b8fc28d437748 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 request_key01 request_key01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls request_key01 request_key01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_request_key02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e94d16d4d550fa2fdd629d925eeeffa936e0672 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 request_key02 request_key02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls request_key02 request_key02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_request_key03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key03.sh new file mode 100644 index 0000000000000000000000000000000000000000..f2d605c9fd0f33d54fcb04f42621cc87000c7541 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 request_key03 request_key03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls request_key03 request_key03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_request_key04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key04.sh new file mode 100644 index 0000000000000000000000000000000000000000..0848641a282ced2067c74dae179e4dceb01c50d5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 request_key04 request_key04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls request_key04 request_key04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_request_key05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key05.sh new file mode 100644 index 0000000000000000000000000000000000000000..a08597fd92510135af4a795a5ad16642bd03422a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_request_key05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 request_key05 request_key05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls request_key05 request_key05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rmdir01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8aeb249454204ea39db1e889fb4ba6dd5ed1d4ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rmdir01 rmdir01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rmdir01 rmdir01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rmdir02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4349f223271fcca9e4f909cbef5df3dfda2cd913 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rmdir02 rmdir02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rmdir02 rmdir02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rmdir03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03.sh new file mode 100644 index 0000000000000000000000000000000000000000..064a6b508b7f0a17f367af03c8d73add219d3daa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rmdir03 rmdir03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rmdir03 rmdir03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rmdir03A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03A.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b1e97e784d78dacfc8d3a1b61444a31b0b988a8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rmdir03A.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rmdir03A symlink01 -T rmdir03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rmdir03A symlink01 -T rmdir03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rt_sigaction01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ae04d099413cb466bb9a503b7d61ba8ac293f02 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rt_sigaction01 rt_sigaction01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rt_sigaction01 rt_sigaction01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rt_sigaction02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction02.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b3fd37b4128d569ace097a9223b5a7188d59636 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rt_sigaction02 rt_sigaction02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rt_sigaction02 rt_sigaction02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rt_sigaction03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1132c15a024eba4c4a0fe8c8ddd742069ddb5364 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigaction03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rt_sigaction03 rt_sigaction03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rt_sigaction03 rt_sigaction03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rt_sigprocmask01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask01.sh new file mode 100644 index 0000000000000000000000000000000000000000..85fc31868894c1865273dd85a9d9934bf3afd084 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rt_sigprocmask01 rt_sigprocmask01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rt_sigprocmask01 rt_sigprocmask01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rt_sigprocmask02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask02.sh new file mode 100644 index 0000000000000000000000000000000000000000..830daadd1f8a44c1604953cf37fcb6bd0e922d19 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigprocmask02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rt_sigprocmask02 rt_sigprocmask02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rt_sigprocmask02 rt_sigprocmask02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rt_sigqueueinfo01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigqueueinfo01.sh new file mode 100644 index 0000000000000000000000000000000000000000..35ff4f5daba2f7ca88ee22b554eb8265b33475c4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigqueueinfo01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rt_sigqueueinfo01 rt_sigqueueinfo01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rt_sigqueueinfo01 rt_sigqueueinfo01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rt_sigsuspend01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigsuspend01.sh new file mode 100644 index 0000000000000000000000000000000000000000..55b2ad251aae79843b4eaffd53eeb36881aba518 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigsuspend01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rt_sigsuspend01 rt_sigsuspend01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rt_sigsuspend01 rt_sigsuspend01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rt_sigtimedwait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigtimedwait01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a2e008d3fe1db53ddf77f7f8b15212620abe774 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_sigtimedwait01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rt_sigtimedwait01 rt_sigtimedwait01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rt_sigtimedwait01 rt_sigtimedwait01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_rt_tgsigqueueinfo01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_tgsigqueueinfo01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1be338020c91933860c09e06bb2beeabe46b7af7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_rt_tgsigqueueinfo01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 rt_tgsigqueueinfo01 rt_tgsigqueueinfo01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls rt_tgsigqueueinfo01 rt_tgsigqueueinfo01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sbrk01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk01.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bd03ddcf4cfd1df4abd5f255629f1763d0a8768 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sbrk01 sbrk01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sbrk01 sbrk01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sbrk02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk02.sh new file mode 100644 index 0000000000000000000000000000000000000000..30477b7eff9868c78d297f5104a1c0009de5a7f7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sbrk02 sbrk02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sbrk02 sbrk02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sbrk03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk03.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3904fbdef7dad1746e0559f1cda941238142bd7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sbrk03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sbrk03 sbrk03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sbrk03 sbrk03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_get_priority_max01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max01.sh new file mode 100644 index 0000000000000000000000000000000000000000..33ed2d0c2ca5a516be9f96b42b68a046103e2694 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_get_priority_max01 sched_get_priority_max01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_get_priority_max01 sched_get_priority_max01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_get_priority_max02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max02.sh new file mode 100644 index 0000000000000000000000000000000000000000..52ede089a58bf6fa1ad552f6acd26a22380e0660 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_max02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_get_priority_max02 sched_get_priority_max02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_get_priority_max02 sched_get_priority_max02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_get_priority_min01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min01.sh new file mode 100644 index 0000000000000000000000000000000000000000..16528f59326a2b3a5e5d2e5c5985149709e21289 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_get_priority_min01 sched_get_priority_min01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_get_priority_min01 sched_get_priority_min01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_get_priority_min02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min02.sh new file mode 100644 index 0000000000000000000000000000000000000000..21f09d02e464d525bd02f307a4b8d2fba435e29e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_get_priority_min02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_get_priority_min02 sched_get_priority_min02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_get_priority_min02 sched_get_priority_min02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_getaffinity01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getaffinity01.sh new file mode 100644 index 0000000000000000000000000000000000000000..cfa2f275cca418c29561d6a283121bfca9a5d3d9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getaffinity01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_getaffinity01 sched_getaffinity01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_getaffinity01 sched_getaffinity01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_getattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3b6251b45247116d6ab35e7d80f9746b8c01aa1f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_getattr01 sched_getattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_getattr01 sched_getattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_getattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1a9b8836cbab06daf7f90967736229c51ea2255 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_getattr02 sched_getattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_getattr02 sched_getattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_getparam01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a61c0afe0f2349740f1a43dfc1309f4c73cc37a4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_getparam01 sched_getparam01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_getparam01 sched_getparam01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_getparam03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam03.sh new file mode 100644 index 0000000000000000000000000000000000000000..cab0b64479e90a3f323c262c992d4c127dcc471e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getparam03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_getparam03 sched_getparam03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_getparam03 sched_getparam03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_getscheduler01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3274738fbbf9c161481c9886e995a999c8ff55c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_getscheduler01 sched_getscheduler01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_getscheduler01 sched_getscheduler01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_getscheduler02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler02.sh new file mode 100644 index 0000000000000000000000000000000000000000..30b6bce66c539ec026c2755dd8f40c7cf80c7a3e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_getscheduler02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_getscheduler02 sched_getscheduler02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_getscheduler02 sched_getscheduler02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_rr_get_interval01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ba3603466851b4dcae8ecd0cfce719ad806b347c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_rr_get_interval01 sched_rr_get_interval01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_rr_get_interval01 sched_rr_get_interval01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_rr_get_interval02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4361942e37406b91e4e6c233fbd0b7fc2f266997 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_rr_get_interval02 sched_rr_get_interval02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_rr_get_interval02 sched_rr_get_interval02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_rr_get_interval03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1709d1bcea1987aee6f93567512a0099b89eaa5f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_rr_get_interval03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_rr_get_interval03 sched_rr_get_interval03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_rr_get_interval03 sched_rr_get_interval03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setaffinity01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setaffinity01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4ff1817a7ae3be3e59c3dc1a494d5e29cc12ec5b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setaffinity01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setaffinity01 sched_setaffinity01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setaffinity01 sched_setaffinity01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..b0908f2199a75808c3785f6541cc3bf627f99c2b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setattr01 sched_setattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setattr01 sched_setattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setparam01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam01.sh new file mode 100644 index 0000000000000000000000000000000000000000..706b6bbc360f14097b80e4216c03974e63342fe1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setparam01 sched_setparam01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setparam01 sched_setparam01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setparam02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam02.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e16a044b6d63d200a599e8758eab5c853ac14df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setparam02 sched_setparam02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setparam02 sched_setparam02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setparam03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam03.sh new file mode 100644 index 0000000000000000000000000000000000000000..68dd1a0aba2f82071ff67db2e486e5c7cf9303db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setparam03 sched_setparam03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setparam03 sched_setparam03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setparam04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam04.sh new file mode 100644 index 0000000000000000000000000000000000000000..3dbf92b16d5558acf78e8456e04a30547225c8d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setparam04 sched_setparam04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setparam04 sched_setparam04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setparam05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam05.sh new file mode 100644 index 0000000000000000000000000000000000000000..6afec043a795af41de99e4e3a61d34470db917cb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setparam05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setparam05 sched_setparam05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setparam05 sched_setparam05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setscheduler01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d78dc4555f202c41090aae0c8fc66d0bc94b225 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setscheduler01 sched_setscheduler01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setscheduler01 sched_setscheduler01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setscheduler02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler02.sh new file mode 100644 index 0000000000000000000000000000000000000000..9abb9b361104ca01b130685f2315e0fe2a6f30f7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setscheduler02 sched_setscheduler02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setscheduler02 sched_setscheduler02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setscheduler03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler03.sh new file mode 100644 index 0000000000000000000000000000000000000000..52c3be19af31d20240feecbb1da8db13115cce40 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setscheduler03 sched_setscheduler03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setscheduler03 sched_setscheduler03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_setscheduler04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler04.sh new file mode 100644 index 0000000000000000000000000000000000000000..dd8d31e08f6e82720447ede14e1e91ea54d7e7a6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_setscheduler04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_setscheduler04 sched_setscheduler04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_setscheduler04 sched_setscheduler04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sched_yield01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_yield01.sh new file mode 100644 index 0000000000000000000000000000000000000000..65a390796d1a1b2d652c2a878cbcd9fde9128b3d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sched_yield01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sched_yield01 sched_yield01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sched_yield01 sched_yield01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..4656edb1465147638b2157b145d1bde2a78988c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 select01 select01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls select01 select01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_select02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select02.sh new file mode 100644 index 0000000000000000000000000000000000000000..18ee47f322896c6c5e854ba3673fdc62ef1db0ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 select02 select02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls select02 select02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_select03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select03.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa4310ff91bb6362e22bca30be1b06dd3e3eeea5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 select03 select03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls select03 select03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_select04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select04.sh new file mode 100644 index 0000000000000000000000000000000000000000..39f96820dc10ed403e5963b779fa531397e32db4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_select04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 select04 select04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls select04 select04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_semctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..95f3aff26edff3bb19135e3faed276223304794e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0c09b3230d7b456b532689b2429c165baba9c0bc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..4359161b8e5e1a3c4f2a7499628354ed946aa90d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl04.sh new file mode 100644 index 0000000000000000000000000000000000000000..05c4ab5c652d662715632be8276d83f3520d96f2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl05.sh new file mode 100644 index 0000000000000000000000000000000000000000..16e683f1c20bdcaf03c7eb8f49ed22ad5d6cd08a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl06.sh new file mode 100644 index 0000000000000000000000000000000000000000..ad5527b813cd93adf41a1c5e91379b79dfd7b260 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl07.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6a317cdd3734d0be87f23d86957c358a8bca730 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl08.sh new file mode 100644 index 0000000000000000000000000000000000000000..38bf0b1cce8f95feb5b2bf16e605ac98cefed01e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semctl09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semctl09.sh new file mode 100644 index 0000000000000000000000000000000000000000..8027a0c55df64872c12c9f39caa4973e5008ac42 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semget01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4a61da15eddba26e105186844ec8ede7a6ee3992 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semget02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget02.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed2b1fd41024a7e282196f39af574b7befeae746 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semget05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semget05.sh new file mode 100644 index 0000000000000000000000000000000000000000..535f6b49d0f6d57f21d14e3458ecac0e1faec4be --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semop01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop01.sh new file mode 100644 index 0000000000000000000000000000000000000000..2f2343bf7c729955d224831eef78b3066d6a6f26 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semop02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop02.sh new file mode 100644 index 0000000000000000000000000000000000000000..aceaaaea1d417baabe093d9d2af62a2f9ffb02de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semop03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop03.sh new file mode 100644 index 0000000000000000000000000000000000000000..707e8f218a9022456831a1cdf1aa6f8aa13186d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_semop04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop04.sh new file mode 100644 index 0000000000000000000000000000000000000000..0a89c11d64977e9ce819622a6322ab013bfffb88 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 semop04 semop04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls semop04 semop04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_semop05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop05.sh new file mode 100644 index 0000000000000000000000000000000000000000..886ecb2831c41935b07fd42b3f6f827a79391067 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_semop05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 semop05 semop05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls semop05 semop05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_send01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a6290615ffa136ecce2c255ce13fcecedccd2123 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 send01 send01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls send01 send01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_send02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send02.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e6cf14900757a65ab1ebffa90c5521345929921 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_send02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 send02 send02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls send02 send02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendfile02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3c577d754350b6713310f64f2c9d9aa69174518d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendfile02 sendfile02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile02 sendfile02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendfile02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..ee8b1c1d4a604f57d2c4746d8b523b8d97a6c1df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile02_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 sendfile02_64 sendfile02_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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile02_64 sendfile02_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_sendfile03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03.sh new file mode 100644 index 0000000000000000000000000000000000000000..9c6ac759799632046e3686c3f27b316455a82196 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendfile03 sendfile03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile03 sendfile03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendfile03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3780787ceb0e169bdb7496a193098573ffa84a6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile03_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 sendfile03_64 sendfile03_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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile03_64 sendfile03_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_sendfile04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04.sh new file mode 100644 index 0000000000000000000000000000000000000000..261ccb6328582556f33f2b5f4002ebb7dc3d644c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendfile04 sendfile04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile04 sendfile04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendfile04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..ac843f2e5eb17f15eeb4772e76293daeb28bae46 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile04_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 sendfile04_64 sendfile04_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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile04_64 sendfile04_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_sendfile05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05.sh new file mode 100644 index 0000000000000000000000000000000000000000..a324f735e4f610b7f44778791f97becb98fa72d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendfile05 sendfile05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile05 sendfile05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendfile05_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..6921f5aaa68cb4dd82b64cff6082a8b7697790eb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile05_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 sendfile05_64 sendfile05_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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile05_64 sendfile05_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_sendfile06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06.sh new file mode 100644 index 0000000000000000000000000000000000000000..91ad29e3ad6a9aaa0fd793ec130f94dc29c2cd0c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendfile06 sendfile06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile06 sendfile06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendfile06_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..c5320c8938b3f14ca64b259636301fc714edcccb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile06_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 sendfile06_64 sendfile06_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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile06_64 sendfile06_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_sendfile07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07.sh new file mode 100644 index 0000000000000000000000000000000000000000..69e1c06c5a04fd4a810d2a49d86335c420f6d270 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendfile07 sendfile07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile07 sendfile07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendfile07_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..1021e1538aec5161c6acfb1c015dbe9b23ae094b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile07_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 sendfile07_64 sendfile07_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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile07_64 sendfile07_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_sendfile08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08.sh new file mode 100644 index 0000000000000000000000000000000000000000..0df560d427e44ce3b48e2a23a98fa7626ce56dc5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendfile08 sendfile08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile08 sendfile08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendfile08_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..e0d252b94949486247aa19c8c6226f74178e6970 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile08_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 sendfile08_64 sendfile08_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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile08_64 sendfile08_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_sendfile09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09.sh new file mode 100644 index 0000000000000000000000000000000000000000..9a2b401afa0e8ff1577911cbcfe8f575451e8c22 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendfile09 sendfile09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile09 sendfile09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendfile09_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..e6e03eaa225a0da2884fab48e2be96ae874af195 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendfile09_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 sendfile09_64 sendfile09_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 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" + CHECK_RESULT $? 1 0 "syscalls sendfile09_64 sendfile09_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_sendmmsg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e84252da0037d45a4cf1bc4a7106c2520aa950c1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendmmsg01 sendmmsg01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendmmsg01 sendmmsg01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendmmsg02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg02.sh new file mode 100644 index 0000000000000000000000000000000000000000..cf3b1b577b60f894418fd1a9e7c59000352626aa --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmmsg02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendmmsg02 sendmmsg02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendmmsg02 sendmmsg02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendmsg01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b252b699be1bd36fc7f61f9a38d8c47a334b33c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendmsg01 sendmsg01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendmsg01 sendmsg01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendmsg02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg02.sh new file mode 100644 index 0000000000000000000000000000000000000000..2bde77c03766ae9ecc4b8dc262f8ff40eb2efdd5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendmsg02 sendmsg02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendmsg02 sendmsg02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendmsg03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg03.sh new file mode 100644 index 0000000000000000000000000000000000000000..bc60d0fde37edb8836bff8f4ddda3b3355da96f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendmsg03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendmsg03 sendmsg03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendmsg03 sendmsg03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendto01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto01.sh new file mode 100644 index 0000000000000000000000000000000000000000..2690156bb38b40bcdd8b069751b18cf1c800615c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendto01 sendto01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendto01 sendto01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendto02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a518b9a3014cde0a5b6465f834f5e8a9ab63785f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendto02 sendto02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendto02 sendto02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sendto03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto03.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9c8701093f7559fbb10370bbfcd371c738f5312 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sendto03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sendto03 sendto03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sendto03 sendto03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_set_mempolicy01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3289dac3b18913f0f40ffb429b6af2773181edca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_set_mempolicy02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy02.sh new file mode 100644 index 0000000000000000000000000000000000000000..139ae784e84f8d0e420ee5d22bd65d4f8c6fbbb8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_set_mempolicy03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1767fa33ee81adcfc1b15dea73073d000a05f3a1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_set_mempolicy04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_mempolicy04.sh new file mode 100644 index 0000000000000000000000000000000000000000..59f0e90d43f66aec4969dd886132c71ddf305072 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_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 new file mode 100644 index 0000000000000000000000000000000000000000..3776ecf531d50fbfd6184237138699d366f6a0dd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_robust_list01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 set_robust_list01 set_robust_list01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls set_robust_list01 set_robust_list01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_set_thread_area01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_thread_area01.sh new file mode 100644 index 0000000000000000000000000000000000000000..430d9882c7e3b4d6d283bf1578759845b3c602e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_thread_area01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 set_thread_area01 set_thread_area01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls set_thread_area01 set_thread_area01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_set_tid_address01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_tid_address01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d2b789e8fa37d26b871704028fe0b0ed37d969ce --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_set_tid_address01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 set_tid_address01 set_tid_address01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls set_tid_address01 set_tid_address01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setdomainname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ade3625c26fae4e36652065d9ea022a3721ad6a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setdomainname01 setdomainname01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setdomainname01 setdomainname01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setdomainname02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname02.sh new file mode 100644 index 0000000000000000000000000000000000000000..4c11ddd38defaa94572e4a34f940cff828a18bd5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setdomainname02 setdomainname02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setdomainname02 setdomainname02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setdomainname03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname03.sh new file mode 100644 index 0000000000000000000000000000000000000000..c519f2f13217ed2f38dcfac25f0f8ba5e9baf9b7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setdomainname03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setdomainname03 setdomainname03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setdomainname03 setdomainname03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setegid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..66473abf4eb1a0f6a5872a8c06f9088d607d1aaf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setegid01 setegid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setegid01 setegid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setegid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a07d9f3f92c34b4fb49fe5dd072acc96c63cbed0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setegid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setegid02 setegid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setegid02 setegid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..74634d16908e7373ae1f1532bb2c81155effb5c4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsgid01 setfsgid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsgid01 setfsgid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsgid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..a00450dd1f7433bcbfbea03fd975ba0d36b2eace --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsgid01_16 setfsgid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsgid01_16 setfsgid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d8cec58bf951d503d00b603bdbcc17ab00f6c253 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsgid02 setfsgid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsgid02 setfsgid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsgid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6de2d32e1ec54bbf5cff2ee88b61d2bb6730589 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsgid02_16 setfsgid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsgid02_16 setfsgid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..38808d8f834f18e7ef4f3964b9a7d1807717089d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsgid03 setfsgid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsgid03 setfsgid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsgid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c7d41342f0b4113bdbfe5ba3362ae483a393a5d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsgid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsgid03_16 setfsgid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsgid03_16 setfsgid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4d1e43f27984e4704f28413947b8b8d1c281363c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsuid01 setfsuid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsuid01 setfsuid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..c9b6c1984e6ad59ea44643eab132235ef0194241 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsuid01_16 setfsuid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsuid01_16 setfsuid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsuid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..5cc31f594e06c3bfa6159830bb32af7dc627c99e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsuid02 setfsuid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsuid02 setfsuid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsuid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..9298f39b5d1fc7f891333bfe1b6acaabcfa0c9b4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsuid02_16 setfsuid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsuid02_16 setfsuid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9d9e4c431a2aa29031e1afa036c311b05631599 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsuid03 setfsuid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsuid03 setfsuid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..e9e7550615a8cb7fa78f6a24b79d8ae0ed236d6b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsuid03_16 setfsuid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsuid03_16 setfsuid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsuid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04.sh new file mode 100644 index 0000000000000000000000000000000000000000..7b3a56e7b7cc2a73b1fda35c9cc00ae1284adace --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsuid04 setfsuid04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsuid04 setfsuid04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setfsuid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..365daee85f01937dad369e2c9a74840d984a5c18 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setfsuid04_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setfsuid04_16 setfsuid04_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setfsuid04_16 setfsuid04_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..dded48eed9e3eaf0ad53c2cd339ea22b33659cbd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgid01 setgid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgid01 setgid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..4e90d9faec6c50d3666e261a4ec0fbf7ab947c6a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgid01_16 setgid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgid01_16 setgid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..89ea0ecfb02b27eb2c129096f473245e75aec556 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgid02 setgid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgid02 setgid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..24c6d35c9c64d3112b03ac8cd9e0d905d06cf70f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgid02_16 setgid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgid02_16 setgid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..00f41138e6348a4327383b1752c6e8d6e314ea39 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgid03 setgid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgid03 setgid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd4ed33a90fcdb8d1e29017316dc80dce4d36417 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgid03_16 setgid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgid03_16 setgid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgroups01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01.sh new file mode 100644 index 0000000000000000000000000000000000000000..df81bc8c3afdbf85204007781c8cde70d907dfcf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgroups01 setgroups01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgroups01 setgroups01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgroups01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d23ec09c6a37f73d2866293e1e9fd4844c1fa50 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgroups01_16 setgroups01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgroups01_16 setgroups01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgroups02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02.sh new file mode 100644 index 0000000000000000000000000000000000000000..660602dd52b389e24f5fc4d75466a548b82056fc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgroups02 setgroups02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgroups02 setgroups02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgroups02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..0568e5493c8df2991ade7196e37a5579863aaab1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgroups02_16 setgroups02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgroups02_16 setgroups02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgroups03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c0db143cd2ce93b2024842d30f1ab2f506ae07f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgroups03 setgroups03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgroups03 setgroups03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setgroups03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..22a04a25cbfc22016ae02ed89473bbd33c0fce3c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setgroups03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setgroups03_16 setgroups03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setgroups03_16 setgroups03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sethostname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4cc81519e454b1a67ea1b436ab7537883b867d66 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sethostname01 sethostname01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sethostname01 sethostname01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sethostname02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname02.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b963f31b00138a01c6d0ee1c5f396366b5ea569 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sethostname02 sethostname02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sethostname02 sethostname02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sethostname03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname03.sh new file mode 100644 index 0000000000000000000000000000000000000000..51c4ad3267b2f2cdc58d2b73909ab06b197a19c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sethostname03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sethostname03 sethostname03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sethostname03 sethostname03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setitimer01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer01.sh new file mode 100644 index 0000000000000000000000000000000000000000..88865262dd1a3b87ad4ea766398b93f966c9e5c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setitimer01 setitimer01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setitimer01 setitimer01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setitimer02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer02.sh new file mode 100644 index 0000000000000000000000000000000000000000..858c54e636201ff22f031a78ae50c30d47808c9c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setitimer02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setitimer02 setitimer02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setitimer02 setitimer02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setns01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7176415b22479045b79545c68763bad1c9bbd90b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setns01 setns01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setns01 setns01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setns02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns02.sh new file mode 100644 index 0000000000000000000000000000000000000000..46225d1803bb7efa995840ef74be4dcd09fe6b84 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setns02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setns02 setns02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setns02 setns02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setpgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d147f51ff0b4c6ffe77a200ebde68b0624311af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setpgid01 setpgid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setpgid01 setpgid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setpgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..672b046171356ea56e80dcb4d4b2c02da53e7bba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setpgid02 setpgid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setpgid02 setpgid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setpgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..0b1daf9e11990d567b58d42ed5fd21e5754a8a44 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setpgid03 setpgid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setpgid03 setpgid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setpgrp01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp01.sh new file mode 100644 index 0000000000000000000000000000000000000000..090506b09e27f806279de458e1de2bbe8b98ca4a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setpgrp01 setpgrp01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setpgrp01 setpgrp01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setpgrp02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp02.sh new file mode 100644 index 0000000000000000000000000000000000000000..7283d178d2baad2c5a18abaef67d75e059c256df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpgrp02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setpgrp02 setpgrp02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setpgrp02 setpgrp02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setpriority01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority01.sh new file mode 100644 index 0000000000000000000000000000000000000000..31df395efd936517d6018e0e8803d8df96c6cce1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setpriority01 setpriority01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setpriority01 setpriority01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setpriority02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority02.sh new file mode 100644 index 0000000000000000000000000000000000000000..8676654f96989e92ee5a67c3df7c226481918f9e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setpriority02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setpriority02 setpriority02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setpriority02 setpriority02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setregid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..77abcc2da4cc37a61973c41ec4bd56e0c8670c03 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setregid01 setregid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setregid01 setregid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setregid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..ed5e897d7e1b6d7e0c428a39149a5abde0024364 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setregid01_16 setregid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setregid01_16 setregid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setregid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e646183cb8a0a9cc8ea9bcc92de9bf5d549c09c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setregid02 setregid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setregid02 setregid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setregid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..e7f7fe395269c31d44eb3fa3e81528a8798b9000 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setregid02_16 setregid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setregid02_16 setregid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setregid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..7faa43d342359284c4f7e98b186705b25c9fa151 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setregid03 setregid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setregid03 setregid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setregid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..a10dfd0a639e7824d27327a8388105caf392973d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setregid03_16 setregid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setregid03_16 setregid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setregid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04.sh new file mode 100644 index 0000000000000000000000000000000000000000..6cedca1a401db25d726a297ae0066299fcb3b4b2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setregid04 setregid04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setregid04 setregid04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setregid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..033e146c9c1748048632877e0f8f7c4c326a44cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setregid04_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setregid04_16 setregid04_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setregid04_16 setregid04_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresgid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..89dff832bc204e468b681f6ed9d3047bac1f2e45 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresgid01 setresgid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresgid01 setresgid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresgid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..35f75ae228f3ce905828e0d84374119a96bcc6af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresgid01_16 setresgid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresgid01_16 setresgid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresgid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..2e5c74e6d0b07b27d640556c68708f15ffa8629d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresgid02 setresgid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresgid02 setresgid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresgid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..79dfb7ad12b4404d2ba079b1bb22aa64b55aca69 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresgid02_16 setresgid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresgid02_16 setresgid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresgid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..276cde66336d7589175697e587d5d99e8db28454 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresgid03 setresgid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresgid03 setresgid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresgid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..dfa0e1c5ce0d32adcbbcdb65832c6176b271a530 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresgid03_16 setresgid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresgid03_16 setresgid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresgid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04.sh new file mode 100644 index 0000000000000000000000000000000000000000..4cc031e6ad2f776764095920dea0c6af2420298e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresgid04 setresgid04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresgid04 setresgid04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresgid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d6b2a25a2671e06b1882292390bcd4d45f60569 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresgid04_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresgid04_16 setresgid04_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresgid04_16 setresgid04_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..2fb35bf1d6f6c15f9b96855b70ade668a28a464e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresuid01 setresuid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresuid01 setresuid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..d289f0542b470be7944d97298097167bfdfbf85b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresuid01_16 setresuid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresuid01_16 setresuid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresuid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..185bfb2c6675723ccb17c6ec33b8fec2c9e580b6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresuid02 setresuid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresuid02 setresuid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresuid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb78187597f5fc98bd49616f0d9777baed2163dc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresuid02_16 setresuid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresuid02_16 setresuid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..918b044c68fafdef71e42793c2af56bb3de0a9e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresuid03 setresuid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresuid03 setresuid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..e1ca74e6d8265644d322db63bca8c40a4ad25bad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresuid03_16 setresuid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresuid03_16 setresuid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresuid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04.sh new file mode 100644 index 0000000000000000000000000000000000000000..adb6455847a364c6b287ae96061d64b04d686102 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresuid04 setresuid04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresuid04 setresuid04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresuid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f510858f76adf02dde142f3ccd8f0190adaa126 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid04_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresuid04_16 setresuid04_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresuid04_16 setresuid04_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresuid05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05.sh new file mode 100644 index 0000000000000000000000000000000000000000..e73061b4c6e8a1d8f72aa8e39ac612deca8252c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresuid05 setresuid05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresuid05 setresuid05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setresuid05_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..6ec3dd231f560cc8a639bcf5d898c2e0d0de17ec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setresuid05_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setresuid05_16 setresuid05_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setresuid05_16 setresuid05_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d0a26c554c31cd610b348bc2bc06ed2e8d0992e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid01 setreuid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid01 setreuid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cf496ac5a0271f634ec0e444185b82604d27ccf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid01_16 setreuid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid01_16 setreuid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ef963582bc2a040262202585a8a11d270a6463a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid02 setreuid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid02 setreuid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid02_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..b6302a952beee35be108703551d6bb2ba22782d6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid02_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid02_16 setreuid02_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid02_16 setreuid02_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..b048612be59987444bc8b904ac49c7d04c62a492 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid03 setreuid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid03 setreuid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..eed851a471386abc3e0bf9043c5c29d56f919fa5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid03_16 setreuid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid03_16 setreuid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04.sh new file mode 100644 index 0000000000000000000000000000000000000000..aa56db8834b4ae7e0f80a998261753b4f5c88e7e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid04 setreuid04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid04 setreuid04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d8eb0ff169ccec8dbbf0a74a3b840addc93439c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid04_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid04_16 setreuid04_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid04_16 setreuid04_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05.sh new file mode 100644 index 0000000000000000000000000000000000000000..d80dd0fa076a677f9fc1d0296143501306d7498d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid05 setreuid05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid05 setreuid05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid05_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..da54caea3fd6173c3ebddf8a53010fbad71ccfa4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid05_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid05_16 setreuid05_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid05_16 setreuid05_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06.sh new file mode 100644 index 0000000000000000000000000000000000000000..c3b755bfaf361150f1f0a6f3497276931c9b640a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid06 setreuid06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid06 setreuid06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid06_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..8c558456558400004e4a7aed2312e727fae33e84 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid06_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid06_16 setreuid06_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid06_16 setreuid06_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07.sh new file mode 100644 index 0000000000000000000000000000000000000000..df43c9482cd5c1687fc42d18176e6b4f9b8894bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid07 setreuid07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid07 setreuid07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setreuid07_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..f9b0d9ae194ee254fd365f5b7e2f61a7cbf3c9df --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setreuid07_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setreuid07_16 setreuid07_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setreuid07_16 setreuid07_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setrlimit01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a1f0122eca95a27d33d4e2497e0cb22429d8cae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setrlimit01 setrlimit01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setrlimit01 setrlimit01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setrlimit02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit02.sh new file mode 100644 index 0000000000000000000000000000000000000000..763607003c72e92ac4386cd5ac7908245c35246e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setrlimit02 setrlimit02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setrlimit02 setrlimit02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setrlimit03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit03.sh new file mode 100644 index 0000000000000000000000000000000000000000..747b1fc087ac9c3b13b17fc2fd5eebfd656af60c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setrlimit03 setrlimit03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setrlimit03 setrlimit03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setrlimit04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit04.sh new file mode 100644 index 0000000000000000000000000000000000000000..043f0a8dc7980354f0c875246490e05f303ed9af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setrlimit04 setrlimit04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setrlimit04 setrlimit04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setrlimit05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit05.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ef4df6250e035a6e2251183d289ca72bb391605 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setrlimit05 setrlimit05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setrlimit05 setrlimit05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setrlimit06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit06.sh new file mode 100644 index 0000000000000000000000000000000000000000..23219de08c4e7b9e90bc2adb2647a6819966e15a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setrlimit06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setrlimit06 setrlimit06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setrlimit06 setrlimit06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..b668ff7de336ea64a8421cd6d6f5448fec23db48 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsid01 setsid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsid01 setsid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsockopt01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt01.sh new file mode 100644 index 0000000000000000000000000000000000000000..973454bc1c02046cbd5523576795a4daa361e715 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsockopt01 setsockopt01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsockopt01 setsockopt01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsockopt02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt02.sh new file mode 100644 index 0000000000000000000000000000000000000000..fef6ca9d9b54d387bb19d1455ecf327eea0e1f13 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsockopt02 setsockopt02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsockopt02 setsockopt02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsockopt03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt03.sh new file mode 100644 index 0000000000000000000000000000000000000000..20953dfc93b1d8ff08e993e68e8c31a371390922 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsockopt03 setsockopt03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsockopt03 setsockopt03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsockopt04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt04.sh new file mode 100644 index 0000000000000000000000000000000000000000..4703097d179da329bb8e2c401340f29d1eb58076 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsockopt04 setsockopt04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsockopt04 setsockopt04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsockopt05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt05.sh new file mode 100644 index 0000000000000000000000000000000000000000..c4c3a152784028c8aae1764f376b065f5c18689b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsockopt05 setsockopt05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsockopt05 setsockopt05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsockopt06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt06.sh new file mode 100644 index 0000000000000000000000000000000000000000..29193a589580bbce8ec5bb2bff1265f1fec7c468 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsockopt06 setsockopt06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsockopt06 setsockopt06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsockopt07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt07.sh new file mode 100644 index 0000000000000000000000000000000000000000..9b4abb4e2143394775184e8edc5d41ad90cf18c2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsockopt07 setsockopt07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsockopt07 setsockopt07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsockopt08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt08.sh new file mode 100644 index 0000000000000000000000000000000000000000..706c464a7ee0db660cb3d3824926f1154bf12d5e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsockopt08 setsockopt08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsockopt08 setsockopt08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsockopt09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt09.sh new file mode 100644 index 0000000000000000000000000000000000000000..b75e843ce9a76cf86adfd14816e3a5196ddca52a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsockopt09 setsockopt09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsockopt09 setsockopt09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setsockopt10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt10.sh new file mode 100644 index 0000000000000000000000000000000000000000..58ac4d420e6ae7bb7f72f447a423a99efab1331f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setsockopt10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setsockopt10 setsockopt10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setsockopt10 setsockopt10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_settimeofday01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday01.sh new file mode 100644 index 0000000000000000000000000000000000000000..228be841e72f74a357716d3aceaaf42aacb5424a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 settimeofday01 settimeofday01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls settimeofday01 settimeofday01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_settimeofday02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday02.sh new file mode 100644 index 0000000000000000000000000000000000000000..7cf52ef12535dc5060f2c6a0838e3cd0f4453e59 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_settimeofday02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 settimeofday02 settimeofday02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls settimeofday02 settimeofday02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setuid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5eb18821dec3ff4a7cb320c3d6a75c8d6e7cd261 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setuid01 setuid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setuid01 setuid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setuid01_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..4321b3840500a60108048f0f42c5cefc10b60042 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid01_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setuid01_16 setuid01_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setuid01_16 setuid01_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setuid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..c38e799309c4961b523b18b10da80467700f7834 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setuid03 setuid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setuid03 setuid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setuid03_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..1cebf19c668f5ec8fb88b1cf806b71716d3c11b1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid03_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setuid03_16 setuid03_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setuid03_16 setuid03_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setuid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6aff12f65150b5f3f7d36ac86d64d8af77ab6f1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setuid04 setuid04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setuid04 setuid04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setuid04_16.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04_16.sh new file mode 100644 index 0000000000000000000000000000000000000000..330011e102d37965b0e35e6d91811cc211a6210c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setuid04_16.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setuid04_16 setuid04_16 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setuid04_16 setuid04_16 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setxattr01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c6855d27bd12329b9ee560a2b3c70488d73d854e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setxattr01 setxattr01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setxattr01 setxattr01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setxattr02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ff013cbc78aec465c69c0d6c51543b67a456dd7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setxattr02 setxattr02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setxattr02 setxattr02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_setxattr03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr03.sh new file mode 100644 index 0000000000000000000000000000000000000000..3667f357ee495bb54a9a5635b1ace6e963594ead --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_setxattr03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 setxattr03 setxattr03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls setxattr03 setxattr03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sgetmask01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sgetmask01.sh new file mode 100644 index 0000000000000000000000000000000000000000..89d257bb93eb4588333b6df39c6c39dc26910a4d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sgetmask01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sgetmask01 sgetmask01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sgetmask01 sgetmask01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_shmat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c0aa15409206baac0d5d2ae8fcd22a0f51462856 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..bdb551e4e56449d043ae5d571b5b6584234f881b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat03.sh new file mode 100644 index 0000000000000000000000000000000000000000..75a8d8cf046b8648a58c10124f8ec459f079cedb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmat03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 shmat03 shmat03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls shmat03 shmat03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..523336408551f89d32a87c85db970324bff1f5c0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmctl02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl02.sh new file mode 100644 index 0000000000000000000000000000000000000000..90fd8318f16d2ed96473f879c75b8d9513e54bd7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..615d16896610bf304630196886fb2166f7b57eba --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl04.sh new file mode 100644 index 0000000000000000000000000000000000000000..6b75006df7bc9622ff3960cdf77965d6401f072a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmctl05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl05.sh new file mode 100644 index 0000000000000000000000000000000000000000..254a0179c12dff263453e6d10264dc9a118d249f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmctl06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl06.sh new file mode 100644 index 0000000000000000000000000000000000000000..de762ddda69eba803fceba3228b0f682b7fbf702 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmctl07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl07.sh new file mode 100644 index 0000000000000000000000000000000000000000..e47f4d970cdc376d9b6e88b923ec107c92cabdaf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmctl08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmctl08.sh new file mode 100644 index 0000000000000000000000000000000000000000..f4fe18223d86049a18d1f3c75704b9a4e76d778c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmdt01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmdt01.sh new file mode 100644 index 0000000000000000000000000000000000000000..61f933d8b23981e1887b17665ef3e3466152f04b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmdt02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmdt02.sh new file mode 100644 index 0000000000000000000000000000000000000000..b582af189ae754e72c645d20d0f6885dd766bb51 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmget02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget02.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb75e4656fd65a35b0c2d9e4baf466d0a5a79b32 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmget03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget03.sh new file mode 100644 index 0000000000000000000000000000000000000000..78819c6d3933a4d28402c0e234992cac4b8b9546 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmget04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget04.sh new file mode 100644 index 0000000000000000000000000000000000000000..a002f9ef1e2ec76d45f81e37fe1cf4ab468074f0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmget05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget05.sh new file mode 100644 index 0000000000000000000000000000000000000000..540c363eba8140dc48bcdfd6b121f2c698561ed4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_shmget06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_shmget06.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a94bbd2b46c4e3d3c8cf22e4b9105fd5e26ee8a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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 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 -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" + CHECK_RESULT $? 1 0 "syscalls 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_sigaction01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction01.sh new file mode 100644 index 0000000000000000000000000000000000000000..c10ac60e39761eaed91e18471827ec0a40abbf3b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigaction01 sigaction01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigaction01 sigaction01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sigaction02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4219807a375f5f67ac1d2676aae9c2a9d2bdbc2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaction02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigaction02 sigaction02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigaction02 sigaction02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sigaltstack01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack01.sh new file mode 100644 index 0000000000000000000000000000000000000000..bcbff2299e44f6f825a55bd1b60da4395f456d54 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigaltstack01 sigaltstack01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigaltstack01 sigaltstack01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sigaltstack02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack02.sh new file mode 100644 index 0000000000000000000000000000000000000000..50cb38192dc1eed86002f0288d50da38a46bd98e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigaltstack02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigaltstack02 sigaltstack02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigaltstack02 sigaltstack02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sighold02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sighold02.sh new file mode 100644 index 0000000000000000000000000000000000000000..45030ccbd66c1d2522e8b369621251cbd26a24a3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sighold02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sighold02 sighold02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sighold02 sighold02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_signal01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal01.sh new file mode 100644 index 0000000000000000000000000000000000000000..61f6e602048efeb8525db9df57db3ff0a3c9b23d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 signal01 signal01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls signal01 signal01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_signal02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3cd6cced78dbf650aadd2e5401cbe640f057205f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 signal02 signal02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls signal02 signal02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_signal03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal03.sh new file mode 100644 index 0000000000000000000000000000000000000000..b1cc203c61d109a183c88b805f3eb9a1340002e4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 signal03 signal03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls signal03 signal03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_signal04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal04.sh new file mode 100644 index 0000000000000000000000000000000000000000..df10dbd6b752ae875de37a503b227e70df8f90c3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 signal04 signal04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls signal04 signal04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_signal05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal05.sh new file mode 100644 index 0000000000000000000000000000000000000000..3465843fb0f64dc431ca96ade3f80eb3ff5de20e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 signal05 signal05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls signal05 signal05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_signal06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal06.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ae418fc9501557ec61c2243a6672c3ebb3e1cf5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signal06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 signal06 signal06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls signal06 signal06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_signalfd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd01.sh new file mode 100644 index 0000000000000000000000000000000000000000..99260d4e062073a5448b68dee4fac586d1686e3f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 signalfd01 signalfd01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls signalfd01 signalfd01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_signalfd4_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_01.sh new file mode 100644 index 0000000000000000000000000000000000000000..029341f1d2f23b3dadd0300b5ea06e5138025183 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_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 signalfd4_01 signalfd4_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 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" + CHECK_RESULT $? 1 0 "syscalls signalfd4_01 signalfd4_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_signalfd4_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_02.sh new file mode 100644 index 0000000000000000000000000000000000000000..80b24cdc6b56ae5a1ce05362bde70fa2503999ad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_signalfd4_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 signalfd4_02 signalfd4_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 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" + CHECK_RESULT $? 1 0 "syscalls signalfd4_02 signalfd4_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_sigpending02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigpending02.sh new file mode 100644 index 0000000000000000000000000000000000000000..9bc705b940688c3bc99729257c09068db60882cb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigpending02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigpending02 sigpending02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigpending02 sigpending02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sigprocmask01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigprocmask01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a676a2736a48a231e276f1a98352cb6c40ac229b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigprocmask01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigprocmask01 sigprocmask01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigprocmask01 sigprocmask01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sigrelse01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigrelse01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1028d17005491cb12f2b0b2637644f2712917456 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigrelse01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigrelse01 sigrelse01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigrelse01 sigrelse01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sigsuspend01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigsuspend01.sh new file mode 100644 index 0000000000000000000000000000000000000000..99bfaa78b7c513c8f00ca62d50f348ad74b3cf56 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigsuspend01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigsuspend01 sigsuspend01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigsuspend01 sigsuspend01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sigtimedwait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigtimedwait01.sh new file mode 100644 index 0000000000000000000000000000000000000000..801448552be5cab23e76b539afc8194080cd32cc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigtimedwait01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigtimedwait01 sigtimedwait01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigtimedwait01 sigtimedwait01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sigwait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwait01.sh new file mode 100644 index 0000000000000000000000000000000000000000..49a8f5e3aaed6c0d408928eb2b26697d73d3f889 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwait01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigwait01 sigwait01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigwait01 sigwait01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sigwaitinfo01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwaitinfo01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9e2bd2323f2d0d4a70353353c7950c5950df2302 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sigwaitinfo01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sigwaitinfo01 sigwaitinfo01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sigwaitinfo01 sigwaitinfo01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_socket01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket01.sh new file mode 100644 index 0000000000000000000000000000000000000000..b13d11734b31d0d11085b4198063dceea94e9d08 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 socket01 socket01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls socket01 socket01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_socket02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket02.sh new file mode 100644 index 0000000000000000000000000000000000000000..956921853e965444902aace5b88ac266bc04600a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socket02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 socket02 socket02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls socket02 socket02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_socketcall01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7cc741449e7e531b66a99b5ee5794fbf6d1c1a6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 socketcall01 socketcall01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls socketcall01 socketcall01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_socketcall02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall02.sh new file mode 100644 index 0000000000000000000000000000000000000000..a546587bc84a53fd6036a27273331ad6f9b314cf --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 socketcall02 socketcall02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls socketcall02 socketcall02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_socketcall03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall03.sh new file mode 100644 index 0000000000000000000000000000000000000000..2dde7a277e33dff54eb81f83cbff27f4e1f014cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketcall03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 socketcall03 socketcall03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls socketcall03 socketcall03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_socketpair01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7281497b20ba390f8d6291aba8e8166096dac7c5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 socketpair01 socketpair01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls socketpair01 socketpair01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_socketpair02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d6bcb437a80ffccf7b35cf2c562eca27adca916c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_socketpair02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 socketpair02 socketpair02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls socketpair02 socketpair02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sockioctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sockioctl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a922476862a03bdb8e1daaf1139662dafc3d7331 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sockioctl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sockioctl01 sockioctl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sockioctl01 sockioctl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_splice01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice01.sh new file mode 100644 index 0000000000000000000000000000000000000000..260a2df800a542d7273a29ce9fbe207b4b01f611 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 splice01 splice01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls splice01 splice01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_splice02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice02.sh new file mode 100644 index 0000000000000000000000000000000000000000..25ec1147d157709e4c30f903f1043dd18459ee50 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls splice02 splice02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls splice02 splice02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_splice03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice03.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e98143449c38094dc3953eecaf8db148ecca0cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 splice03 splice03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls splice03 splice03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_splice04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice04.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fbb9f575d94373a31e3e6d2d2ea4bda76d38d3f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 splice04 splice04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls splice04 splice04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_splice05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice05.sh new file mode 100644 index 0000000000000000000000000000000000000000..165d3da2b2d9b9afc2937e6092064a543984b44e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 splice05 splice05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls splice05 splice05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_splice06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice06.sh new file mode 100644 index 0000000000000000000000000000000000000000..90cc70b7651dbda66651bf91dbc5bf4d5723a6f3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_splice06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 splice06 splice06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls splice06 splice06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..d7966d3fa5e58a3deb84317eee717080839c0cc8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ssetmask01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ssetmask01 ssetmask01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ssetmask01 ssetmask01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_stat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb50bfd46343e61688dc87931bf7c74ffeac7995 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stat01 stat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls stat01 stat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_stat01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..789125e76aedc28ab0efbf6c57a803e4e988fa96 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat01_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 stat01_64 stat01_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 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" + CHECK_RESULT $? 1 0 "syscalls stat01_64 stat01_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_stat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f8775802537234bfd7d6800d34f0a6c56081b08 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stat02 stat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls stat02 stat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_stat02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..70cf81ea248e0ee1f294aa4be7832b6884f7833e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat02_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 stat02_64 stat02_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 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" + CHECK_RESULT $? 1 0 "syscalls stat02_64 stat02_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_stat03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03.sh new file mode 100644 index 0000000000000000000000000000000000000000..ffd036f85c6537bf3df51fb2e62f28abec931491 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stat03 stat03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls stat03 stat03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_stat03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..51c02ee3622dac3234fe0bd2fd6fa7f5a278596a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat03_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 stat03_64 stat03_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 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" + CHECK_RESULT $? 1 0 "syscalls stat03_64 stat03_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_stat04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04.sh new file mode 100644 index 0000000000000000000000000000000000000000..9ffb4901b77d200f2895a680294e9ae94af80de5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls stat04 symlink01 -T 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 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" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_stat04_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e7e93e01df5e7ac28c50b40d7f310a71a226541 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stat04_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 stat04_64 symlink01 -T stat04_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 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" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statfs01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01.sh new file mode 100644 index 0000000000000000000000000000000000000000..52698108f9197c99bb58f3f381f35f4254e3f967 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statfs01 statfs01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statfs01 statfs01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statfs01_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..1f6dbc16e079a44df840653d0a03b5ae1ce6813f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs01_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 statfs01_64 statfs01_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 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" + CHECK_RESULT $? 1 0 "syscalls statfs01_64 statfs01_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_statfs02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d79e6e3991cbdc04be81e0357003de38c91c684b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statfs02 statfs02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statfs02 statfs02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statfs02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..198589319fa1edaa327a7decdc306eedca4dc149 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs02_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 statfs02_64 statfs02_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 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" + CHECK_RESULT $? 1 0 "syscalls statfs02_64 statfs02_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_statfs03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03.sh new file mode 100644 index 0000000000000000000000000000000000000000..663aa182c459b706c68234f4c86ea981c7abbaac --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statfs03 statfs03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statfs03 statfs03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statfs03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..7ac1586eed19274e96b7f12c2cfde4136d33289b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statfs03_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 statfs03_64 statfs03_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 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" + CHECK_RESULT $? 1 0 "syscalls statfs03_64 statfs03_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_statvfs01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs01.sh new file mode 100644 index 0000000000000000000000000000000000000000..728b9e25483ad19ca168a45f395bcce0e7921640 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statvfs01 statvfs01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statvfs01 statvfs01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statvfs02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs02.sh new file mode 100644 index 0000000000000000000000000000000000000000..df2692f6ad2be55ff0a4cae1b52753be753daec2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statvfs02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statvfs02 statvfs02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statvfs02 statvfs02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx01.sh new file mode 100644 index 0000000000000000000000000000000000000000..051cb13ea664eeb1212942b93d7f7e55bce8dbec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx01 statx01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx01 statx01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx02.sh new file mode 100644 index 0000000000000000000000000000000000000000..d428b7e9b1fa69a2a99c06e327709481d09f3fc7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx02 statx02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx02 statx02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx03.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c8198a82fc6413edcf2fc2ff06a2f7fda610c40 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx03 statx03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx03 statx03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx04.sh new file mode 100644 index 0000000000000000000000000000000000000000..9605c958db888aa22ff8b8c1a7b953f2b849b0d0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx04 statx04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx04 statx04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx05.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6c93c6bf7bb4d49b8bce8f35b1fac0c59002773 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx05 statx05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx05 statx05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx06.sh new file mode 100644 index 0000000000000000000000000000000000000000..b9b0c09d9d20c89cce7b05769d1d424523d8b58d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx06 statx06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx06 statx06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx07.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1d08520fae1189792bed90db0752d44a5c3149b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx07 statx07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx07 statx07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx08.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a16de5bb42ff4024ce98d2582b16831a312d28e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx08 statx08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx08 statx08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx09.sh new file mode 100644 index 0000000000000000000000000000000000000000..ae6328a3cd3da1acd762205a04aeb11635925659 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx09 statx09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx09 statx09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx10.sh new file mode 100644 index 0000000000000000000000000000000000000000..4495c75d6bc5ecc82d2d9de076849f22d96cb2a7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx10 statx10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx10 statx10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx11.sh new file mode 100644 index 0000000000000000000000000000000000000000..98352c393eaa8c50232230e614146660590a800c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx11 statx11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx11 statx11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_statx12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx12.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c8a7f4847c0f3ae8890be6a7135790bf223b823 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_statx12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 statx12 statx12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls statx12 statx12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_stime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime01.sh new file mode 100644 index 0000000000000000000000000000000000000000..99ed2e91feaf96e93ba6dae758fa5153433a2aad --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stime01 stime01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls stime01 stime01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_stime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime02.sh new file mode 100644 index 0000000000000000000000000000000000000000..fe8c4d1d02cca34689e06f6fbfdb1e27d53aa617 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_stime02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 stime02 stime02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls stime02 stime02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_string01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_string01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8ac000d7f72b808ebe90131a1962f62d6ec8a4cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_string01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 string01 string01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls string01 string01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_swapoff01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff01.sh new file mode 100644 index 0000000000000000000000000000000000000000..dff995fc4b27bbed06d9435f64c61425dd7e04a5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 swapoff01 swapoff01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls swapoff01 swapoff01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_swapoff02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2d3fc1549b8e3ad039dc4344496a35b4d50f66a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapoff02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 swapoff02 swapoff02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls swapoff02 swapoff02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_swapon01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon01.sh new file mode 100644 index 0000000000000000000000000000000000000000..4b51ea1d5b8199aa23dfffb866a3e91e19f612be --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 swapon01 swapon01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls swapon01 swapon01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_swapon02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0048b74841e034e130e920ccb520570fbde598e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 swapon02 swapon02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls swapon02 swapon02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_swapon03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon03.sh new file mode 100644 index 0000000000000000000000000000000000000000..20e015767c9bdb8c3767bb3d5d609b628076c2a1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_swapon03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 swapon03 swapon03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls swapon03 swapon03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_switch01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_switch01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a01baa417528f42ffbbb63202e9503a2dc16f974 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_switch01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 switch01 endian_switch01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls switch01 endian_switch01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_symlink01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3ed7b14b2d7a1244e73afa17fbd24beba6d85388 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_symlink02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink02.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f9256372b3f05be84bca19675728d33a47fde29 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 symlink02 symlink02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls symlink02 symlink02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_symlink03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink03.sh new file mode 100644 index 0000000000000000000000000000000000000000..f12ff6589d3cb55e3f831c2fea3b4a9bf6141272 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 symlink03 symlink03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls symlink03 symlink03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_symlink04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink04.sh new file mode 100644 index 0000000000000000000000000000000000000000..976c6f80c6f9e507dbbb8f7a1ff83c0182b07c3c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlink04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 symlink04 symlink04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls symlink04 symlink04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_symlinkat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlinkat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6e555b6496bc97d30495977086c08880551c66af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_symlinkat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 symlinkat01 symlinkat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls symlinkat01 symlinkat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sync01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync01.sh new file mode 100644 index 0000000000000000000000000000000000000000..893c1c46f9818253c2b72b6008ea92eb5321fa47 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sync01 sync01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sync01 sync01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sync_file_range01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d7493cafbf4b3c95be12d6069f6183e97b2587a0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sync_file_range01 sync_file_range01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sync_file_range01 sync_file_range01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sync_file_range02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range02.sh new file mode 100644 index 0000000000000000000000000000000000000000..3a9983f168cbbac3cefacf254de27df77d596cc4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sync_file_range02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sync_file_range02 sync_file_range02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sync_file_range02 sync_file_range02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_syncfs01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syncfs01.sh new file mode 100644 index 0000000000000000000000000000000000000000..e85269ef9546c5f596c97c8b4e9c524faea7b197 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syncfs01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 syncfs01 syncfs01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls syncfs01 syncfs01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_syscall01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syscall01.sh new file mode 100644 index 0000000000000000000000000000000000000000..14e0c1c314bfdefdb8e278e767e2ccf6bcb7ee6d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syscall01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 syscall01 syscall01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls syscall01 syscall01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysconf01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysconf01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5865990b16ac72a8fdd97daa4e83ec94052e05dc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysconf01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysconf01 sysconf01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysconf01 sysconf01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysctl01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl01.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb52b165cc359abfa34d7d19ff949350b2dafcab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysctl01 sysctl01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysctl01 sysctl01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysctl03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl03.sh new file mode 100644 index 0000000000000000000000000000000000000000..e85b6218374397dded00f36839a2d782aa9845af --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysctl03 sysctl03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysctl03 sysctl03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysctl04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl04.sh new file mode 100644 index 0000000000000000000000000000000000000000..22f98a8419483558f6620e22c042bcdb9e194330 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysctl04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysctl04 sysctl04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysctl04 sysctl04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysfs01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs01.sh new file mode 100644 index 0000000000000000000000000000000000000000..9dbb9c88b647ca71e89f5fe05a25c086973427ea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysfs01 sysfs01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysfs01 sysfs01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysfs02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f37723b4ca0c0e2f3517c971bdb73a30e3745b70 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysfs02 sysfs02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysfs02 sysfs02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysfs03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs03.sh new file mode 100644 index 0000000000000000000000000000000000000000..a065698585c2a8f5115269eff907b20d33c93a9e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysfs03 sysfs03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysfs03 sysfs03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysfs04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs04.sh new file mode 100644 index 0000000000000000000000000000000000000000..2335d9bc3a6f800d688258ab1aad7c884217c138 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysfs04 sysfs04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysfs04 sysfs04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysfs05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs05.sh new file mode 100644 index 0000000000000000000000000000000000000000..ec73563231a71301d61057ac58df2fb50ada8d38 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysfs05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysfs05 sysfs05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysfs05 sysfs05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysinfo01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo01.sh new file mode 100644 index 0000000000000000000000000000000000000000..8d7a6a6b493f810aaa67c9358da1dd1e37732ed3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysinfo01 sysinfo01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysinfo01 sysinfo01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysinfo02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1be61f405ad3bbd925e5fc39cad3c50ec197487 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysinfo02 sysinfo02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysinfo02 sysinfo02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_sysinfo03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo03.sh new file mode 100644 index 0000000000000000000000000000000000000000..f0eaec2e0650177ca176477f3591b357bac0671b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_sysinfo03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 sysinfo03 sysinfo03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls sysinfo03 sysinfo03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_syslog11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog11.sh new file mode 100644 index 0000000000000000000000000000000000000000..eea9dd8f2cfda17bcae38ebe4795836fed6d6c87 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 syslog11 syslog11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls syslog11 syslog11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_syslog12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog12.sh new file mode 100644 index 0000000000000000000000000000000000000000..4f5c67d042205bb124ee7c70e7e11fc5fca283c8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_syslog12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 syslog12 syslog12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls syslog12 syslog12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tee01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee01.sh new file mode 100644 index 0000000000000000000000000000000000000000..b264673e6e654978fa024c2f33e1eb7b4730fb4e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 tee01 tee01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls tee01 tee01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tee02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee02.sh new file mode 100644 index 0000000000000000000000000000000000000000..279b239bc7a69b6b7304d91113cb58352fa6b357 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tee02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 tee02 tee02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls tee02 tee02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tgkill01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill01.sh new file mode 100644 index 0000000000000000000000000000000000000000..7268a63ee16316a3914b6dd4b8067cf4cdeabb11 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 tgkill01 tgkill01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls tgkill01 tgkill01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tgkill02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill02.sh new file mode 100644 index 0000000000000000000000000000000000000000..247dce1537cc063e7f6a46d7a4878abafc83159c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 tgkill02 tgkill02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls tgkill02 tgkill02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tgkill03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill03.sh new file mode 100644 index 0000000000000000000000000000000000000000..0e7430175d7659ee231f727aaaab89d12b9bc40d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tgkill03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 tgkill03 tgkill03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls tgkill03 tgkill03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_time01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_time01.sh new file mode 100644 index 0000000000000000000000000000000000000000..6a00b63786570a6e2b591df894a55f483cd7b156 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_timer_create01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create01.sh new file mode 100644 index 0000000000000000000000000000000000000000..f1120c9ee633c9d9fcd7d1e8e01ce8b75bd303a2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timer_create01 timer_create01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timer_create01 timer_create01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timer_create02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create02.sh new file mode 100644 index 0000000000000000000000000000000000000000..908d0113aefae1583b4100cc68207d557ff94fef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timer_create02 timer_create02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timer_create02 timer_create02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timer_create03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create03.sh new file mode 100644 index 0000000000000000000000000000000000000000..04bd9d0be2de4d92056a88325e14faca184d379b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_create03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timer_create03 timer_create03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timer_create03 timer_create03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timer_delete01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3f23c3dd177dbc0b47ce8fb8143149fee2ab7c38 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timer_delete01 timer_delete01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timer_delete01 timer_delete01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timer_delete02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete02.sh new file mode 100644 index 0000000000000000000000000000000000000000..93968600a7e578b2e8ec3f2ff6ce0c5e875e7247 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_delete02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timer_delete02 timer_delete02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timer_delete02 timer_delete02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timer_getoverrun01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_getoverrun01.sh new file mode 100644 index 0000000000000000000000000000000000000000..43338a00125f3f248577d1c3a492a19b82c8f006 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_getoverrun01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timer_getoverrun01 timer_getoverrun01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timer_getoverrun01 timer_getoverrun01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timer_gettime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_gettime01.sh new file mode 100644 index 0000000000000000000000000000000000000000..17ed604c4faaa3c0717affed2a51abc3b624c057 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_gettime01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timer_gettime01 timer_gettime01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timer_gettime01 timer_gettime01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timer_settime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime01.sh new file mode 100644 index 0000000000000000000000000000000000000000..52e922cef9d1769cbb1f7cc6eb4c046075539175 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timer_settime01 timer_settime01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timer_settime01 timer_settime01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timer_settime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime02.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c4cc74a67fdd875274e84f5736b0bec24ea717c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timer_settime02 timer_settime02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timer_settime02 timer_settime02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timer_settime03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime03.sh new file mode 100644 index 0000000000000000000000000000000000000000..3205f0a00cf09697aaad0a485e3aaf44cda0846d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timer_settime03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timer_settime03 timer_settime03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timer_settime03 timer_settime03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timerfd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd01.sh new file mode 100644 index 0000000000000000000000000000000000000000..3cfb556edf2746ea54d62460984a3114d0e12df2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timerfd01 timerfd01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timerfd01 timerfd01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timerfd02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd02.sh new file mode 100644 index 0000000000000000000000000000000000000000..485b9efdc5a86e45d878eeb9e3daa1ec2c0852bd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timerfd02 timerfd02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timerfd02 timerfd02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timerfd04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd04.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb4b246d1e4ede9ab18e445499bd81b2beead11b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timerfd04 timerfd04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timerfd04 timerfd04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timerfd_create01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_create01.sh new file mode 100644 index 0000000000000000000000000000000000000000..61e16e75b923924aba9efe720093387fe3eaee18 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_create01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timerfd_create01 timerfd_create01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timerfd_create01 timerfd_create01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timerfd_gettime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_gettime01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebb1996ca0f4e8e5af32dcced357b9946b21361d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_gettime01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timerfd_gettime01 timerfd_gettime01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timerfd_gettime01 timerfd_gettime01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timerfd_settime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime01.sh new file mode 100644 index 0000000000000000000000000000000000000000..43dc81b20d6ccf70cd2878da98e4c3dcfb05a6e9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timerfd_settime01 timerfd_settime01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timerfd_settime01 timerfd_settime01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_timerfd_settime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime02.sh new file mode 100644 index 0000000000000000000000000000000000000000..895d9b713d6e64be3d13b3465439f1215171c7db --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_timerfd_settime02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 timerfd_settime02 timerfd_settime02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls timerfd_settime02 timerfd_settime02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_times01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times01.sh new file mode 100644 index 0000000000000000000000000000000000000000..262a4676352e68aeaa822f3577a43dbfe7d683d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 times01 times01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls times01 times01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_times03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times03.sh new file mode 100644 index 0000000000000000000000000000000000000000..924e5e1f229b5d0423f21ee6dd613f15daa2fef0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_times03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 times03 times03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls times03 times03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tkill01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill01.sh new file mode 100644 index 0000000000000000000000000000000000000000..60ccfe95b114677025e5346e2023b9a70746e89e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 tkill01 tkill01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls tkill01 tkill01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_tkill02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill02.sh new file mode 100644 index 0000000000000000000000000000000000000000..5c492e70b568798e0dd3c71f8d190d2c8b9edc0a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_tkill02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 tkill02 tkill02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls tkill02 tkill02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_truncate02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02.sh new file mode 100644 index 0000000000000000000000000000000000000000..efcd49e6dc158197ab81c5ec77e32d87cb297199 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 truncate02 truncate02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls truncate02 truncate02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_truncate02_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..6374c68b03d878393f41af00ef89ee4ec90e1e04 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate02_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 truncate02_64 truncate02_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 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" + CHECK_RESULT $? 1 0 "syscalls truncate02_64 truncate02_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_truncate03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03.sh new file mode 100644 index 0000000000000000000000000000000000000000..690775a6a48d90368d36aa2cc0aca0014d88029a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 truncate03 truncate03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls truncate03 truncate03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_truncate03_64.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03_64.sh new file mode 100644 index 0000000000000000000000000000000000000000..cff38d55d064d001354855a5c7379bafba58a9d4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_truncate03_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 truncate03_64 truncate03_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 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" + CHECK_RESULT $? 1 0 "syscalls truncate03_64 truncate03_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_ulimit01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ulimit01.sh new file mode 100644 index 0000000000000000000000000000000000000000..1fba0e206d12c8959a633336d23d5eae9fa3de7b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ulimit01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ulimit01 ulimit01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ulimit01 ulimit01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_umask01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umask01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d9caf206c6481b750754932da6fba35d443802a9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umask01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 umask01 umask01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls umask01 umask01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_umount01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount01.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3f4de1e98e54ccfcd860b05a306709882fae8e1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 umount01 umount01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls umount01 umount01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_umount02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount02.sh new file mode 100644 index 0000000000000000000000000000000000000000..874dc9aac216882821d969d4902aea48bb192563 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 umount02 umount02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls umount02 umount02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_umount03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount03.sh new file mode 100644 index 0000000000000000000000000000000000000000..1baf4e50ed41ad1d0dfd343dfd5a32feaf7ce386 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 umount03 umount03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls umount03 umount03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_umount2_01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea5c37e5e00945b57c2e02790f83dc40802d4a45 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_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 umount2_01 umount2_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 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" + CHECK_RESULT $? 1 0 "syscalls umount2_01 umount2_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_umount2_02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_02.sh new file mode 100644 index 0000000000000000000000000000000000000000..2a3e8493d3c6403582709d1d695155d5ce21d17f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_umount2_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 umount2_02 umount2_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 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" + CHECK_RESULT $? 1 0 "syscalls umount2_02 umount2_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_uname01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname01.sh new file mode 100644 index 0000000000000000000000000000000000000000..90eee25a6b32a1167ea5b6ac1e7ea14697b9a407 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 uname01 uname01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls uname01 uname01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_uname02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname02.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2efba6d854bb02f665e5f9153da22bed50d5c05 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 uname02 uname02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls uname02 uname02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_uname04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname04.sh new file mode 100644 index 0000000000000000000000000000000000000000..d4bcfba7cd3dedab92f3167829a9970dc6ec5189 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_uname04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 uname04 uname04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls uname04 uname04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_unlink01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink01.sh new file mode 100644 index 0000000000000000000000000000000000000000..24e4dc332c9799ff325b7accfe7cffc8c4bac373 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 unlink01 symlink01 -T unlink01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls unlink01 symlink01 -T unlink01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_unlink05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink05.sh new file mode 100644 index 0000000000000000000000000000000000000000..60a5568e365be2678fb5bea43afb62526d639966 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 unlink05 unlink05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls unlink05 unlink05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_unlink07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink07.sh new file mode 100644 index 0000000000000000000000000000000000000000..36dc67a4a474a319dc662e26569fe35a1526b0d5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 unlink07 unlink07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls unlink07 unlink07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_unlink08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink08.sh new file mode 100644 index 0000000000000000000000000000000000000000..ea5c239458d9f930bfba07ed242e557b87e9b3f4 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlink08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 unlink08 unlink08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls unlink08 unlink08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..e46fd84164f9a7656e22fd5ac0e057b7e3901d9d --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unlinkat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 unlinkat01 unlinkat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls unlinkat01 unlinkat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_unshare01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare01.sh new file mode 100644 index 0000000000000000000000000000000000000000..ebdcfed4a16240c3a4796bf378ab8ffa60ae2cb8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 unshare01 unshare01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls unshare01 unshare01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_unshare02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare02.sh new file mode 100644 index 0000000000000000000000000000000000000000..f895e73de4ee01d026edb564caa28e84fc4329de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_unshare02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 unshare02 unshare02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls unshare02 unshare02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_userfaultfd01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_userfaultfd01.sh new file mode 100644 index 0000000000000000000000000000000000000000..eefcbf0dd167fc209f4dc3139e9583e6176600b3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_userfaultfd01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 userfaultfd01 userfaultfd01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls userfaultfd01 userfaultfd01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ustat01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat01.sh new file mode 100644 index 0000000000000000000000000000000000000000..fb926bfb3150d12eb44ef2ea53a96a89a5af2513 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ustat01 ustat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ustat01 ustat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_ustat02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat02.sh new file mode 100644 index 0000000000000000000000000000000000000000..30d10e5c5c8d7fe94cbe144e3a49f61f723b2b13 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_ustat02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 ustat02 ustat02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls ustat02 ustat02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_utime01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime01.sh new file mode 100644 index 0000000000000000000000000000000000000000..985ad8beb67c0e6aaa5fc75ddfb04152537a34d8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 utime01 utime01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls utime01 utime01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_utime01A.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime01A.sh new file mode 100644 index 0000000000000000000000000000000000000000..c2a2104985ca354db8b856d96b4c28d8d0bf8e94 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime01A.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 utime01A symlink01 -T utime01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 utime01A symlink01 -T utime01 + 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 utime01A symlink01 -T utime01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_utime02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime02.sh new file mode 100644 index 0000000000000000000000000000000000000000..92fb833affe38cfad572805eb23465106c7fa8cd --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 utime02 utime02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls utime02 utime02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_utime03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime03.sh new file mode 100644 index 0000000000000000000000000000000000000000..604296f183cd023d4700b79633fff545dfb09de3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 utime03 utime03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls utime03 utime03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_utime04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime04.sh new file mode 100644 index 0000000000000000000000000000000000000000..7a115385761a1c5622e4e71edf4b3b7acb516683 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 utime04 utime04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls utime04 utime04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_utime05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime05.sh new file mode 100644 index 0000000000000000000000000000000000000000..e790c21930aba33080b2e075a9b343b4825699c9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 utime05 utime05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls utime05 utime05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_utime06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime06.sh new file mode 100644 index 0000000000000000000000000000000000000000..91ea93b8395aa0ee3b0ca9970a7cf356b3aad23c --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utime06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 utime06 utime06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls utime06 utime06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..138335f508ed954bb8f86c12cfa291fb2fd3b389 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimensat01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 utimensat01 utimensat01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls utimensat01 utimensat01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_utimes01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimes01.sh new file mode 100644 index 0000000000000000000000000000000000000000..044f33f8418f954a4e6c67b1eded6bbfd1ff3e86 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_utimes01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 utimes01 utimes01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls utimes01 utimes01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vfork01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork01.sh new file mode 100644 index 0000000000000000000000000000000000000000..5f45a39ac9e4b572131992d33d4f08699e2ba8c7 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vfork01 vfork01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls vfork01 vfork01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vfork02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork02.sh new file mode 100644 index 0000000000000000000000000000000000000000..8e129fd29c24b5640d5d5146f869a9b39b3227ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vfork02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vfork02 vfork02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls vfork02 vfork02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vhangup01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup01.sh new file mode 100644 index 0000000000000000000000000000000000000000..87ade9bfec3e34a6ee5022cd6a1495d66bf74696 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vhangup01 vhangup01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls vhangup01 vhangup01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vhangup02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup02.sh new file mode 100644 index 0000000000000000000000000000000000000000..fc6007d7aa892908129170f914b351167315b0ce --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vhangup02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vhangup02 vhangup02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls vhangup02 vhangup02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vmsplice01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice01.sh new file mode 100644 index 0000000000000000000000000000000000000000..a2213bcbed4d1c114ee2876fe36fde866eeb526f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vmsplice01 vmsplice01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls vmsplice01 vmsplice01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vmsplice02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice02.sh new file mode 100644 index 0000000000000000000000000000000000000000..2d24ce66af1dd062fb33248dec5682ccc0e64a35 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vmsplice02 vmsplice02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls vmsplice02 vmsplice02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vmsplice03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice03.sh new file mode 100644 index 0000000000000000000000000000000000000000..dc85f00dd00d9d0428a3e5fd8fb81257d95ea5ab --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vmsplice03 vmsplice03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls vmsplice03 vmsplice03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_vmsplice04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice04.sh new file mode 100644 index 0000000000000000000000000000000000000000..63852dd2867a7bce427fbcf4a5c081731e647ea6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_vmsplice04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 vmsplice04 vmsplice04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls vmsplice04 vmsplice04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_wait01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait01.sh new file mode 100644 index 0000000000000000000000000000000000000000..aff8c3d854873ac4f380d52bf360bb27b33d5815 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 wait01 wait01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls wait01 wait01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_wait02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait02.sh new file mode 100644 index 0000000000000000000000000000000000000000..08b465062bfaa53bece66847240a46271222793a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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_syscalls/oe_test_ltp_syscalls_wait401.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait401.sh new file mode 100644 index 0000000000000000000000000000000000000000..85e7f9dd7a05a59dea9b2cc16d68c3ae4cd35d77 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait401.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 wait401 wait401 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls wait401 wait401 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_wait402.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait402.sh new file mode 100644 index 0000000000000000000000000000000000000000..2ac42a44c441e71141c2910e0b97793519927879 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait402.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 wait402 wait402 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls wait402 wait402 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_wait403.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait403.sh new file mode 100644 index 0000000000000000000000000000000000000000..f6ee2cd69f8409c0559c90fc20cb51b9600decd0 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_wait403.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 wait403 wait403 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls wait403 wait403 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..bb4b0c0b3f3dc9d4f32c6affd25ca1d82ac1b716 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid01 waitid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid01 waitid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..715ff723e0f35fa3983bb84fd9b6227694bcdbd1 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid02 waitid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid02 waitid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..14af5627d51691e7291766c5089ef1b6ffce2f41 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid03 waitid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid03 waitid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid04.sh new file mode 100644 index 0000000000000000000000000000000000000000..bbbb355a691796449b3f1e0e6984ef8d199432ea --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid04 waitid04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid04 waitid04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid05.sh new file mode 100644 index 0000000000000000000000000000000000000000..ab42bbd5cf555cd2b7ddf0a3c9863c799521a310 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid05 waitid05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid05 waitid05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid06.sh new file mode 100644 index 0000000000000000000000000000000000000000..a29d40977fb21ea1c3b8597340fd9c4b71c05b2a --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid06 waitid06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid06 waitid06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid07.sh new file mode 100644 index 0000000000000000000000000000000000000000..cc22e899fbecb9abdc4d70f599af793197cdb1ec --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid07 waitid07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid07 waitid07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid08.sh new file mode 100644 index 0000000000000000000000000000000000000000..e4423d0b575f5ad4c9af8e6409a26689d152a91b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid08 waitid08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid08 waitid08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid09.sh new file mode 100644 index 0000000000000000000000000000000000000000..c8511b4a7e655e9a3377aef4323cdf450351adae --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid09 waitid09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid09 waitid09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid10.sh new file mode 100644 index 0000000000000000000000000000000000000000..7c56a59b1026cdab2c4fc64dc6343df9dc0e9858 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid10 waitid10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid10 waitid10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitid11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid11.sh new file mode 100644 index 0000000000000000000000000000000000000000..fd4013a91277f8cf1d24a3a31bbc79634e34bbf5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitid11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitid11 waitid11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitid11 waitid11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid01.sh new file mode 100644 index 0000000000000000000000000000000000000000..315ad6d2a6ccdb2eb1b5499585c0a57691f1617f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid01 waitpid01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid01 waitpid01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid02.sh new file mode 100644 index 0000000000000000000000000000000000000000..0259cfff731f6210509d32e03d944d4e2a15e420 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid02 waitpid02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 waitpid02 waitpid02 + 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 waitpid02 waitpid02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid03.sh new file mode 100644 index 0000000000000000000000000000000000000000..e14893ed6115348de3343b69122bd646ce4bece2 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid03 waitpid03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid03 waitpid03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid04.sh new file mode 100644 index 0000000000000000000000000000000000000000..3fc5fc661bb85f14bb57459e893c061b9ce10377 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid04 waitpid04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid04 waitpid04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid05.sh new file mode 100644 index 0000000000000000000000000000000000000000..e882ebbbf60cc75c24857089c61ed67226f0bbce --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid05 waitpid05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 waitpid05 waitpid05 + 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 waitpid05 waitpid05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid06.sh new file mode 100644 index 0000000000000000000000000000000000000000..961ad76ce408687eeceef79ac54e1c91470967b9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid06 waitpid06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid06 waitpid06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid07.sh new file mode 100644 index 0000000000000000000000000000000000000000..754d910aabb9db2098aa1afa38f4dac4f3f41501 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid07 waitpid07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid07 waitpid07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid08.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid08.sh new file mode 100644 index 0000000000000000000000000000000000000000..25b61f6aa8b23ddb65a9bff5aa38fe500d3c01b9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid08 waitpid08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid08 waitpid08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid09.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid09.sh new file mode 100644 index 0000000000000000000000000000000000000000..ef59254ac774579250be1e24a9d0d2fe1711ce1b --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid09 waitpid09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid09 waitpid09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid10.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid10.sh new file mode 100644 index 0000000000000000000000000000000000000000..b7cabd6c7afd1cee0de356c438b5ccf8c60f02f8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid10.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid10 waitpid10 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid10 waitpid10 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid11.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid11.sh new file mode 100644 index 0000000000000000000000000000000000000000..eb19d6894cfb5e70991f7477dfa88e0a5f133ecc --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid11.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid11 waitpid11 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid11 waitpid11 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid12.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid12.sh new file mode 100644 index 0000000000000000000000000000000000000000..c80f253d66f1b62b9620234c7dafba9acadca486 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid12.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid12 waitpid12 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid12 waitpid12 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_waitpid13.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid13.sh new file mode 100644 index 0000000000000000000000000000000000000000..d3f16547aef40ee30911400f306966e811b3f2a9 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_waitpid13.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 waitpid13 waitpid13 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls waitpid13 waitpid13 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_write01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write01.sh new file mode 100644 index 0000000000000000000000000000000000000000..2c382d62a0a219e91e9161c472cde218ef0bd8e8 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_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_syscalls 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 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" + CHECK_RESULT $? 1 0 "syscalls 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/oe_test_ltp_syscalls_write02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write02.sh new file mode 100644 index 0000000000000000000000000000000000000000..37c16085cf66acade6867688b7602d53a43a8656 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 write02 write02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls write02 write02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_write03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write03.sh new file mode 100644 index 0000000000000000000000000000000000000000..45d49f3f27a8915a4c09eb293827d728bd97b01f --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 write03 write03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls write03 write03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_write04.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write04.sh new file mode 100644 index 0000000000000000000000000000000000000000..5cd004dfa22ab7f2ea9a0f380e7ed138a81dcf15 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 write04 write04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls write04 write04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_write05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write05.sh new file mode 100644 index 0000000000000000000000000000000000000000..a688bb6f79a49dada48882bd383926f20e4f3bed --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 write05 write05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls write05 write05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_write06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write06.sh new file mode 100644 index 0000000000000000000000000000000000000000..c15d34e8bc6e6e5793a3d07e1b3cc36f159ac73e --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_write06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 write06 write06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls write06 write06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_writev01.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev01.sh new file mode 100644 index 0000000000000000000000000000000000000000..09beb6e312da3f6d26c5ea9bbd9d68ca1ce4e226 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 writev01 writev01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls writev01 writev01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_writev02.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6992d04d4a9a981776b215d226bc7879900efc62 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 writev02 writev02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls writev02 writev02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_writev03.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev03.sh new file mode 100644 index 0000000000000000000000000000000000000000..d22a34a64755955bed914b6a05a8f539e751e386 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 writev03 writev03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls writev03 writev03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_writev05.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev05.sh new file mode 100644 index 0000000000000000000000000000000000000000..9fba2a9aa2a9c23b0567f75fb63831f1760e6331 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 writev05 writev05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls writev05 writev05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_writev06.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev06.sh new file mode 100644 index 0000000000000000000000000000000000000000..23d64312416c817039587c02badea639b6b89e66 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 writev06 writev06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls writev06 writev06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_writev07.sh b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev07.sh new file mode 100644 index 0000000000000000000000000000000000000000..16fcd7d2378b51bf6e78603a8d3f1f0e147a5dc5 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_syscalls/oe_test_ltp_syscalls_writev07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR 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 writev07 writev07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /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 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" + CHECK_RESULT $? 1 0 "syscalls writev07 writev07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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 new file mode 100644 index 0000000000000000000000000000000000000000..018c62e2652d44ff0333ca13b1028910d24ca1a3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_uevent uevent01 uevent01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "uevent uevent01 uevent01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_uevent02.sh b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent02.sh new file mode 100644 index 0000000000000000000000000000000000000000..6c0c2056bfa42f7ca94a6d78050de2a2c781fda3 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_uevent uevent02 uevent02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "uevent uevent02 uevent02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -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_uevent03.sh b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent03.sh new file mode 100644 index 0000000000000000000000000000000000000000..ff945fbe96f460e5b34df1d8d12733aeb649bf04 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_uevent/oe_test_ltp_uevent_uevent03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_uevent uevent03 uevent03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "uevent uevent03 uevent03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..80d2dbbc272fc862f15c2bf77d471ccc0ef7fbbb --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue01.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_watchqueue wqueue01 wqueue01 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "watchqueue wqueue01 wqueue01 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..695e3f2b9f7439546b7b80d8ef992e8a676f7a18 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue02.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_watchqueue wqueue02 wqueue02 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "watchqueue wqueue02 wqueue02 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..436dadbaf27f4fb4cd0be285a0a3f3fa04cf09de --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue03.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_watchqueue wqueue03 wqueue03 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "watchqueue wqueue03 wqueue03 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..2062c88f54967de549235969a41daca46ce3a479 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue04.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_watchqueue wqueue04 wqueue04 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "watchqueue wqueue04 wqueue04 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..3aeb17368a920a11425af66d6776a63a042addf6 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue05.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_watchqueue wqueue05 wqueue05 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "watchqueue wqueue05 wqueue05 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..bc244962fa31827c660cc3d4de5ae449d2036bca --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue06.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_watchqueue wqueue06 wqueue06 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "watchqueue wqueue06 wqueue06 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..db06ea6f4f0417160324c426551af680319d1e03 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue07.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_watchqueue wqueue07 wqueue07 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "watchqueue wqueue07 wqueue07 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..a201fe3938eeff649020c43905e66a47159a39ef --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue08.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_watchqueue wqueue08 wqueue08 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "watchqueue wqueue08 wqueue08 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file 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 new file mode 100644 index 0000000000000000000000000000000000000000..3a4653a64e4c9047fa3bf84773a14ded7ae1ba90 --- /dev/null +++ b/testcases/system-test/ltp-test/ltp_watchqueue/oe_test_ltp_watchqueue_wqueue09.sh @@ -0,0 +1,64 @@ +#!/usr/bin/bash + +# Copyright (c) 2022 ISCAS .ALL rights reserved. +# This program is licensed under Mulan PSL v2. +# You can use it according to the terms and conditions of the Mulan PSL v2. +# http://license.coscl.org.cn/MulanPSL2 +# THIS PROGRAM IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, +# EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, +# MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +# See the Mulan PSL v2 for more details. + +# ############################################# +# @Author : honghua +# @Contact : honghua@iscas.ac.cn +# @Date : +# @License : Mulan PSL v2 +# @Desc : test ltp_watchqueue wqueue09 wqueue09 +# ############################################ + +source "$OET_PATH/libs/locallibs/common_lib.sh" + +function pre_test() { + LOG_INFO "Start environment preparation." + EXECUTE_T="360m" + OLD_LANG=$LANG + export LANG=en_US.UTF-8 + dnf install -y git + cd /opt || exit 255 + git clone https://gitee.com/devops_dev/ltp.git + DNF_INSTALL "gcc make pkgconf autoconf bison flex m4 kernel-headers" + DNF_INSTALL "glibc-headers asciidoc clang findutils iproute numactl-devel libtirpc libtirpc-devel perl-JSON" + DNF_INSTALL "perl-libwww-perl pkg-config libmnl-devel libmnl rubygem-asciidoctor automake" + cd /opt/ltp || exit 255 + make autotools + if [[ "$COMPILER" == "clang" ]]; then + ./configure CC=clang + else + ./configure + fi + make && make install + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_swap.ko* + insmod /usr/lib/modules/"$(uname -r)"/kernel/fs/proc/etmem_scan.ko* + rm -rf /opt/ltp/output.log + rm -rf /opt/ltp/results/*.log + LOG_INFO "End of environmental preparation!" +} + +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" + CHECK_RESULT $? 1 0 "watchqueue wqueue09 wqueue09 failed" + LOG_INFO "Finish test!" +} + +function post_test() { + LOG_INFO "start environment cleanup." + DNF_REMOVE "$@" + rm -rf /opt/ltp + LOG_INFO "Finish environment cleanup!" +} + +main "$@" \ No newline at end of file